@epam/ai-dial-ui-kit 0.9.0-dev.68 → 0.9.0-dev.69
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/dial-ui-kit.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,W,ge,ie,ge),de[ge+W]=!0)}if(ge=null,U!==void 0&&(s(U),ge=""+U),r(B)&&(s(B.key),ge=""+B.key),"key"in B){U={};for(var Z in B)Z!=="key"&&(U[Z]=B[Z])}else U=B;return ge&&a(U,typeof k=="function"?k.displayName||k.name||"Unknown":k),c(k,ge,be,re,o(),U,Q,j)}function u(k){typeof k=="object"&&k!==null&&k.$$typeof===g&&k._store&&(k._store.validated=1)}var h=p,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),T=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,N=Array.isArray,q=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(k){return k()}};var L,V={},H=h.react_stack_bottom_frame.bind(h,n)(),A=q(i(n)),de={};wn.Fragment=v,wn.jsx=function(k,B,U,W,re){var be=1e4>T.recentlyCreatedOwnerStacks++;return d(k,B,U,!1,W,re,be?Error("react-stack-top-frame"):H,be?q(i(k)):A)},wn.jsxs=function(k,B,U,W,re){var be=1e4>T.recentlyCreatedOwnerStacks++;return d(k,B,U,!0,W,re,be?Error("react-stack-top-frame"):H,be?q(i(k)):A)}})()),wn}var Mh;function sb(){return Mh||(Mh=1,process.env.NODE_ENV==="production"?Kr.exports=eb():Kr.exports=tb()),Kr.exports}var m=sb();const su="-",ib=e=>{const t=nb(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:r=>{const a=r.split(su);return a[0]===""&&a.length!==1&&a.shift(),$g(a,t)||ob(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&i[r]?[...l,...i[r]]:l}}},$g=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],i=t.nextPart.get(s),o=i?$g(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const n=e.join(su);return t.validators.find(({validator:r})=>r(n))?.classGroupId},Ih=/^\[(.+)\]$/,ob=e=>{if(Ih.test(e)){const t=Ih.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},nb=e=>{const{theme:t,classGroups:s}=e,i={nextPart:new Map,validators:[]};for(const o in s)dd(s[o],i,o,t);return i},dd=(e,t,s,i)=>{e.forEach(o=>{if(typeof o=="string"){const n=o===""?t:Ah(t,o);n.classGroupId=s;return}if(typeof o=="function"){if(rb(o)){dd(o(i),t,s,i);return}t.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([n,r])=>{dd(r,Ah(t,n),s,i)})})},Ah=(e,t)=>{let s=e;return t.split(su).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},rb=e=>e.isThemeGetter,ab=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=new Map,i=new Map;const o=(n,r)=>{s.set(n,r),t++,t>e&&(t=0,i=s,s=new Map)};return{get(n){let r=s.get(n);if(r!==void 0)return r;if((r=i.get(n))!==void 0)return o(n,r),r},set(n,r){s.has(n)?s.set(n,r):o(n,r)}}},ud="!",hd=":",lb=hd.length,cb=e=>{const{prefix:t,experimentalParseClassName:s}=e;let i=o=>{const n=[];let r=0,a=0,l=0,c;for(let f=0;f<o.length;f++){let v=o[f];if(r===0&&a===0){if(v===hd){n.push(o.slice(l,f)),l=f+lb;continue}if(v==="/"){c=f;continue}}v==="["?r++:v==="]"?r--:v==="("?a++:v===")"&&a--}const d=n.length===0?o:o.substring(l),u=db(d),h=u!==d,g=c&&c>l?c-l:void 0;return{modifiers:n,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+hd,n=i;i=r=>r.startsWith(o)?n(r.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(s){const o=i;i=n=>s({className:n,parseClassName:o})}return i},db=e=>e.endsWith(ud)?e.substring(0,e.length-1):e.startsWith(ud)?e.substring(1):e,ub=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let n=[];return i.forEach(r=>{r[0]==="["||t[r]?(o.push(...n.sort(),r),n=[]):n.push(r)}),o.push(...n.sort()),o}},hb=e=>({cache:ab(e.cacheSize),parseClassName:cb(e),sortModifiers:ub(e),...ib(e)}),pb=/\s+/,gb=(e,t)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:n}=t,r=[],a=e.trim().split(pb);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:v}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let C=!!v,w=i(C?f.substring(0,v):f);if(!w){if(!C){l=d+(l.length>0?" "+l:l);continue}if(w=i(f),!w){l=d+(l.length>0?" "+l:l);continue}C=!1}const b=n(h).join(":"),x=g?b+ud:b,y=x+w;if(r.includes(y))continue;r.push(y);const S=o(w,C);for(let E=0;E<S.length;++E){const R=S[E];r.push(x+R)}l=d+(l.length>0?" "+l:l)}return l};function fb(){let e=0,t,s,i="";for(;e<arguments.length;)(t=arguments[e++])&&(s=qg(t))&&(i&&(i+=" "),i+=s);return i}const qg=e=>{if(typeof e=="string")return e;let t,s="";for(let i=0;i<e.length;i++)e[i]&&(t=qg(e[i]))&&(s&&(s+=" "),s+=t);return s};function mb(e,...t){let s,i,o,n=r;function r(l){const c=t.reduce((d,u)=>u(d),e());return s=hb(c),i=s.cache.get,o=s.cache.set,n=a,a(l)}function a(l){const c=i(l);if(c)return c;const d=gb(l,s);return o(l,d),d}return function(){return n(fb.apply(null,arguments))}}const at=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},Kg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vb=/^\d+\/\d+$/,Cb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wb=/\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$/,bb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ho=e=>vb.test(e),Te=e=>!!e&&!Number.isNaN(Number(e)),Ys=e=>!!e&&Number.isInteger(Number(e)),oc=e=>e.endsWith("%")&&Te(e.slice(0,-1)),ks=e=>Cb.test(e),Sb=()=>!0,Rb=e=>wb.test(e)&&!bb.test(e),Xg=()=>!1,Fb=e=>xb.test(e),Eb=e=>yb.test(e),Db=e=>!me(e)&&!ve(e),Pb=e=>Yo(e,Jg,Xg),me=e=>Kg.test(e),Ci=e=>Yo(e,ef,Rb),nc=e=>Yo(e,Ab,Te),Lh=e=>Yo(e,Zg,Xg),Tb=e=>Yo(e,Qg,Eb),Yr=e=>Yo(e,tf,Fb),ve=e=>Yg.test(e),bn=e=>Xo(e,ef),kb=e=>Xo(e,Lb),Oh=e=>Xo(e,Zg),Mb=e=>Xo(e,Jg),Ib=e=>Xo(e,Qg),Xr=e=>Xo(e,tf,!0),Yo=(e,t,s)=>{const i=Kg.exec(e);return i?i[1]?t(i[1]):s(i[2]):!1},Xo=(e,t,s=!1)=>{const i=Yg.exec(e);return i?i[1]?t(i[1]):s:!1},Zg=e=>e==="position"||e==="percentage",Qg=e=>e==="image"||e==="url",Jg=e=>e==="length"||e==="size"||e==="bg-size",ef=e=>e==="length",Ab=e=>e==="number",Lb=e=>e==="family-name",tf=e=>e==="shadow",Ob=()=>{const e=at("color"),t=at("font"),s=at("text"),i=at("font-weight"),o=at("tracking"),n=at("leading"),r=at("breakpoint"),a=at("container"),l=at("spacing"),c=at("radius"),d=at("shadow"),u=at("inset-shadow"),h=at("text-shadow"),g=at("drop-shadow"),f=at("blur"),v=at("perspective"),C=at("aspect"),w=at("ease"),b=at("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...y(),ve,me],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],F=()=>[ve,me,l],D=()=>[ho,"full","auto",...F()],P=()=>[Ys,"none","subgrid",ve,me],T=()=>["auto",{span:["full",Ys,ve,me]},Ys,ve,me],M=()=>[Ys,"auto",ve,me],N=()=>["auto","min","max","fr",ve,me],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...F()],H=()=>[ho,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],A=()=>[e,ve,me],de=()=>[...y(),Oh,Lh,{position:[ve,me]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",Mb,Pb,{size:[ve,me]}],U=()=>[oc,bn,Ci],W=()=>["","none","full",c,ve,me],re=()=>["",Te,bn,Ci],be=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[Te,oc,Oh,Lh],ge=()=>["","none",f,ve,me],ie=()=>["none",Te,ve,me],Z=()=>["none",Te,ve,me],_=()=>[Te,ve,me],ae=()=>[ho,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ks],breakpoint:[ks],color:[Sb],container:[ks],"drop-shadow":[ks],ease:["in","out","in-out"],font:[Db],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ks],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ks],shadow:[ks],spacing:["px",Te],text:[ks],"text-shadow":[ks],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ho,me,ve,C]}],container:["container"],columns:[{columns:[Te,me,ve,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ys,"auto",ve,me]}],basis:[{basis:[ho,"full","auto",a,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,ho,"auto","initial","none",me]}],grow:[{grow:["",Te,ve,me]}],shrink:[{shrink:["",Te,ve,me]}],order:[{order:[Ys,"first","last","none",ve,me]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],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":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",s,bn,Ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,nc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oc,me]}],"font-family":[{font:[kb,me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ve,me]}],"line-clamp":[{"line-clamp":[Te,"none",ve,nc]}],leading:[{leading:[n,...F()]}],"list-image":[{"list-image":["none",ve,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ve,Ci]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Te,"auto",ve,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ys,ve,me],radial:["",ve,me],conic:[Ys,ve,me]},Ib,Tb]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ve,me]}],"outline-w":[{outline:["",Te,bn,Ci]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,Xr,Yr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,Xr,Yr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Te,Ci]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,Xr,Yr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Te,ve,me]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ve,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,me]}],filter:[{filter:["","none",ve,me]}],blur:[{blur:ge()}],brightness:[{brightness:[Te,ve,me]}],contrast:[{contrast:[Te,ve,me]}],"drop-shadow":[{"drop-shadow":["","none",g,Xr,Yr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Te,ve,me]}],"hue-rotate":[{"hue-rotate":[Te,ve,me]}],invert:[{invert:["",Te,ve,me]}],saturate:[{saturate:[Te,ve,me]}],sepia:[{sepia:["",Te,ve,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,me]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ve,me]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ve,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ve,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ve,me]}],"backdrop-invert":[{"backdrop-invert":["",Te,ve,me]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ve,me]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ve,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ve,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ve,me]}],ease:[{ease:["linear","initial",w,ve,me]}],delay:[{delay:[Te,ve,me]}],animate:[{animate:["none",b,ve,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ve,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[ve,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",ve,me]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Te,bn,Ci,nc]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nb=mb(Ob);function ne(...e){return Nb(pe(e))}var Ma=(e=>(e.Description="description",e.Error="error",e))(Ma||{});const lr=({text:e,className:t,variant:s=Ma.Description,...i})=>e?m.jsx("span",{...i,role:"alert",className:ne("dial-tiny-text",s===Ma.Error?"text-error":"text-secondary",t),children:e}):null,ls=({...e})=>m.jsx(lr,{...e,variant:Ma.Error});var ze=(e=>(e.Primary="primary",e.Neutral="neutral",e.Error="error",e.Success="Success",e.Secondary="secondary",e.Tertiary="tertiary",e))(ze||{}),ke=(e=>(e.Solid="solid",e.Outlined="outlined",e.Ghost="ghost",e.Link="link",e))(ke||{});const Nh={[ze.Primary]:{[ke.Solid]:"dial-primary-solid-button",[ke.Ghost]:"dial-primary-ghost-button",[ke.Link]:"dial-primary-link-button"},[ze.Neutral]:{[ke.Outlined]:"dial-neutral-outlined-button"},[ze.Error]:{[ke.Solid]:"dial-error-solid-button",[ke.Ghost]:"dial-error-ghost-button"},[ze.Success]:{[ke.Ghost]:"dial-success-ghost-button"},[ze.Secondary]:{[ke.Ghost]:"dial-secondary-ghost-button"},[ze.Tertiary]:{[ke.Ghost]:"dial-tertiary-ghost-button"}},sf=(e=ze.Primary,t=ke.Solid)=>{const s=Nh[e]?.[t];return s||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`),Nh[ze.Primary][ke.Solid])},Hb=7,Gb=2,of=p.createContext(null),nf=()=>{const e=p.useContext(of);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},Bb=({initialOpen:e=!1,placement:t="bottom",isTriggerClickable:s=!1,open:i,onOpenChange:o}={})=>{const[n,r]=p.useState(e),a=p.useRef(null),l=i??n,c=o??r,d=Ie.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:Ie.autoUpdate,middleware:[Ie.offset(Hb+Gb),Ie.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),Ie.shift({padding:5}),Ie.arrow({element:a})]}),u=Ie.useHover(d.context,{move:!1,enabled:i==null,mouseOnly:s,delay:{open:500,close:0}}),h=Ie.useFocus(d.context,{enabled:i==null}),g=Ie.useDismiss(d.context),f=Ie.useRole(d.context,{role:"tooltip"}),v=Ie.useInteractions([u,h,g,f]);return p.useEffect(()=>{if(!l)return;const C=d.refs.reference.current;if(!(C instanceof Element))return;const w=new IntersectionObserver(([b])=>{b.isIntersecting||c(!1)},{root:null,threshold:0});return w.observe(C),()=>w.disconnect()},[l,d.refs.reference,c]),p.useMemo(()=>({open:l,setOpen:c,arrowRef:a,...v,...d}),[l,c,v,d])},iu=({children:e,...t})=>{const s=Bb(t);return m.jsx(of.Provider,{value:s,children:e})},ou=({style:e,...t})=>{const s=nf(),i=p.useRef(null),o=Ie.useMergeRefs([s.refs.setFloating,i]);return s.open?m.jsx(Ie.FloatingPortal,{id:"tooltip-portal",children:m.jsxs("div",{ref:o,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:pe("z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny-text shadow max-w-[300px]",s.getFloatingProps(t).className),children:[t.children,m.jsx(Ie.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"stroke-primary text-[var(--bg-layer-0,_#000000)]"})]})}):null},nu=({children:e,asChild:t=!1,...s})=>{const i=nf(),o=t&&p.isValidElement(e),n=o?e.props?.ref:null,r=Ie.useMergeRefs([i.refs.setReference,...n?[n]:[]]);return o?p.cloneElement(e,i.getReferenceProps({...e.props,...s,ref:r})):m.jsx("span",{ref:r,...i.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},At=({hideTooltip:e,tooltip:t,children:s,triggerClassName:i,contentClassName:o,...n})=>m.jsxs(iu,{...n,children:[m.jsx(nu,{className:pe(i,"truncate"),children:s}),m.jsx(ou,{className:pe("text-primary",o,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]});var Rt=(e=>(e.Small="small",e.Standard="standard",e))(Rt||{});const di=({variant:e,appearance:t=ke.Solid,size:s=Rt.Standard,className:i,icon:o,tooltipProps:n,type:r="button",...a})=>{const l=ne(e&&sf(e,t),s===Rt.Small?"h-[24px] w-[24px]":"h-[40px] w-[40px]","dial-icon-button disabled:cursor-not-allowed focus-visible:outline outline-offset-0 disabled:text-controls-secondary-disable",i),c=m.jsx("button",{...a,type:r,className:l,"aria-label":a["aria-label"],children:o});return n?m.jsx(At,{...n,children:c}):c},Vb="w-[24px] h-[24px] border border-solid rounded-[6px] border-transparent p-1 text-secondary hover:text-controls-accent-primary-hover active:text-controls-accent-primary-active focus-within:border-focus";var vt=(e=>(e[e.LG=24]="LG",e[e.MD=20]="MD",e[e.SM=16]="SM",e))(vt||{});const Ht=18,J={size:Ht,stroke:2},zb=({caption:e,onClick:t})=>{if(!e)return null;const s=m.jsx(di,{"aria-label":e,className:Vb,icon:m.jsx(z.IconInfoCircle,{size:vt.SM}),onClick:t});return e?m.jsx(At,{tooltip:e,triggerClassName:"flex justify-center items-center",children:s}):s},Wi=({label:e,required:t,className:s,caption:i,...o})=>e?m.jsxs("label",{...o,className:ne("dial-tiny-text text-secondary flex items-center gap-1",s),children:[typeof e=="string"?m.jsx("span",{className:"min-h-4",children:e}):e,t&&m.jsx("span",{className:"text-accent-primary",children:"*"}),m.jsx(zb,{caption:i})]}):null,Ye=({icon:e,className:t})=>e?m.jsx("span",{className:pe("flex-shrink-0",t),children:e}):null,ss=({label:e,variant:t,appearance:s=ke.Solid,size:i=Rt.Standard,className:o,textClassName:n,iconAfter:r,iconBefore:a,hideTitleOnMobile:l,type:c="button",tooltipProps:d,...u})=>{const h=pe(l?"hidden sm:inline":"inline",n),g=ne(t&&sf(t,s),i===Rt.Small?"dial-tiny-semi-text":"dial-small-semi-text",s!==ke.Link&&(i===Rt.Small?"h-[24px] px-2":"h-[40px] px-3"),"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",o),f=m.jsxs("button",{...u,type:c,className:g,"aria-label":typeof e=="string"&&e||u["aria-label"],children:[m.jsx(Ye,{icon:a}),e&&m.jsx("span",{className:h,children:e}),m.jsx(Ye,{icon:r})]});return d?m.jsx(At,{...d,children:f}):f};var as=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(as||{});const Wb=e=>({info:m.jsx(z.IconInfoCircle,{...e}),error:m.jsx(z.IconAlertCircle,{...e}),warning:m.jsx(z.IconAlertTriangle,{...e}),success:m.jsx(z.IconCircleCheck,{...e})}),jb={[as.Info]:"bg-info border-info text-info",[as.Success]:"bg-success border-success text-success",[as.Warning]:"bg-warning border-warning text-warning",[as.Error]:"bg-error border-error text-error"},_b="items-center justify-between gap-2 p-3 border border-solid dial-small-text-150 rounded flex",rf=({variant:e=as.Info,message:t,className:s,iconSize:i=24,iconStroke:o=2,closable:n=!1,onClose:r,children:a,...l})=>{const c=p.useMemo(()=>Wb({size:i,stroke:o})[e],[e,i,o]);return m.jsxs("div",{...l,role:"alert",className:ne(_b,jb[e],s),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ye,{icon:c}),m.jsx("div",{className:"text-primary",children:t})]}),a,n&&m.jsx(ss,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:m.jsx(z.IconX,{size:vt.SM}),onClick:r})]})},Ub="flex items-center justify-center text-secondary",$b="shrink-0 grow-0 basis-auto animate-spin-steps",qb=e=>Se.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),cr=({size:e=18,className:t,iconClassName:s,fullWidth:i=!0,ariaLabel:o="Loading"})=>m.jsx("div",{role:"status",className:pe({[Ub]:!0,"w-full h-full":i,[t||""]:!!t}),children:m.jsx(Ye,{icon:m.jsx(qb,{width:e,height:e,className:pe($b,s),role:"img","aria-label":o})})}),Kb="text-primary",ft=({text:e,className:t,contentClassName:s,hideTooltip:i,id:o,customTooltipContent:n,...r})=>{const a=p.useRef(null),[l,c]=p.useState(!1),[d,u]=p.useState(""),h=p.useRef(null),g=()=>{const w=a.current;if(!w)return;u(w.textContent??"");const b=w.clientWidth,x=w.scrollWidth,y=Math.ceil(w.getBoundingClientRect().width);c(x>b||x>y)},f=p.useCallback(()=>{h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(g)},[]);p.useEffect(()=>{f();const w=()=>f();window.addEventListener("resize",w);let b=null;return"ResizeObserver"in window&&a.current&&(b=new ResizeObserver(()=>f()),b.observe(a.current)),()=>{window.removeEventListener("resize",w),b&&b.disconnect(),h.current&&cancelAnimationFrame(h.current)}},[e,f]);const v=p.useMemo(()=>typeof e=="string"?e:d,[d,e]),C=p.useMemo(()=>i?"":n||(l?v:""),[n,v,i,l]);return m.jsxs(iu,{...r,children:[m.jsx(nu,{asChild:!0,onMouseEnter:f,onFocusCapture:f,children:m.jsx("span",{id:o,className:ne("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":l?v:void 0,onMouseEnter:f,onFocus:f,ref:a,children:e})}),m.jsx(ou,{className:ne(Kb,s,!C&&"hidden"),children:C})]})},pd="checkbox-container",gd=({label:e,id:t,checked:s,indeterminate:i,disabled:o,ariaLabel:n,onChange:r,className:a,...l})=>{const c=p.useCallback(g=>{r?.(g.target.checked,t)},[r,t]),d=pe("flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",`${s||i?"":'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded'}`,o?"pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4":"",a),u=pe("border rounded",o?"bg-layer-4 border-icon-secondary":""),h=()=>i?m.jsx(z.IconMinus,{className:u,...J}):s?m.jsx(z.IconCheck,{className:u,...J}):null;return m.jsxs("label",{...l,className:d,htmlFor:t,"aria-description":l["aria-description"]||pd,children:[h(),e&&(typeof e=="string"?m.jsx(ft,{text:e,className:"ml-2 text-primary"}):e),m.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:c,id:t,checked:s,"aria-checked":i?"mixed":s,"aria-disabled":o||void 0,"aria-label":e?void 0:n,className:"invisible w-0 h-0"})]})};var Bt=(e=>(e.VALID="valid",e.ERROR="error",e))(Bt||{});const Yb=(e,t)=>{if(t===e.id)switch(e.status){case Bt.VALID:return"border-accent-secondary text-primary";case Bt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case Bt.VALID:return"border-primary text-primary";case Bt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},Xb=(e,t)=>{if(t===e.id)switch(e.status){case Bt.VALID:return"bg-accent-secondary";case Bt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case Bt.VALID:return"bg-accent-secondary";case Bt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},Zb=({step:e,index:t,currentStep:s,onChangeStep:i})=>{const o="h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny-text cursor-pointer dial-step",n="w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white",r=()=>s===e.id&&e.status===Bt.ERROR?m.jsx(z.IconExclamationCircle,{stroke:2,size:vt.SM}):s!==e.id&&e.status===Bt.VALID?m.jsx(z.IconCheck,{stroke:2,size:vt.SM}):t+1;return m.jsxs("button",{className:pe(o,Yb(e,s)),onClick:()=>i(e.id),children:[m.jsx("span",{className:pe(n,Xb(e,s)),children:r()}),m.jsx("span",{children:e.name})]})},Qb=({steps:e,currentStep:t,onChangeStep:s})=>{const i=o=>{const n=e.findIndex(a=>a.id===t),r=e.findIndex(a=>a.id===o);(o!==t&&e[n].status===Bt.VALID||r<n)&&s(o)};return m.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((o,n)=>m.jsx(Zb,{currentStep:t,onChangeStep:i,step:o,index:n},o.id))})},ru=({name:e,value:t,label:s,description:i,checked:o=!1,inputId:n,className:r,labelClassName:a,disabled:l,onChange:c,descriptionClassName:d,caption:u})=>{const h=`${n}-desc`,g=pe("dial-small-text cursor-pointer py-[1px]",l?"text-secondary":"text-primary",a),f=pe("cursor-pointer dial-input-radio",!!s&&"mr-2",r),v=pe("flex flex-col",!!i&&"mb-2"),C=pe("dial-tiny-text mt-2 ml-[26px] text-secondary",d),w=b=>{l||b.target.checked&&c?.(t)};return m.jsxs("div",{className:v,children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx("input",{type:"radio",id:n,name:e,value:t,checked:o,disabled:l,"aria-describedby":o&&i?h:void 0,className:f,onChange:w}),(s||u)&&m.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[s&&m.jsx("label",{className:g,htmlFor:n,"aria-describedby":u?"caption":"",children:s}),u&&m.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:u})]})]}),o&&i&&m.jsx("div",{id:h,className:C,children:i})]})};var Un=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Un||{});const Jb="w-full flex gap-2",e1={[Un.Vertical]:"flex-col",[Un.Horizontal]:"flex-row items-end"},au=({id:e,label:t,required:s,description:i,error:o,orientation:n=Un.Vertical,labelVisuallyHidden:r=!1,className:a,labelClassName:l,errorClassName:c,childrenClassName:d,captionDescription:u,readonly:h,value:g,defaultEmptyText:f,children:v})=>{const C=`${e}-label`,w=i?`${e}-desc`:void 0,b=o?`${e}-err`:void 0,x=`${e}-caption-desc`,y=[w,b].filter(Boolean).join(" ")||void 0,S=p.useCallback(()=>typeof o=="boolean"?null:typeof o=="string"||typeof o>"u"?o?m.jsx("div",{id:b,"aria-live":"polite",className:c,children:m.jsx(ls,{text:o})}):null:m.jsx("div",{id:b,role:"alert","aria-live":"polite",className:c,children:o}),[o,c,b]),E=p.useCallback(()=>g?typeof g=="string"||typeof g=="number"?m.jsx("span",{"aria-readonly":"true",children:g}):g:m.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:f??"None"}),[g,f]);return m.jsxs("div",{role:"group","aria-labelledby":t?C:void 0,"aria-describedby":y,className:ne(Jb,e1[n],a),children:[t&&m.jsx("div",{id:C,className:ne(n==="horizontal"&&"shrink-0"),children:m.jsx(Wi,{htmlFor:e,label:t,required:s,className:ne(r&&"sr-only",l),caption:i})}),m.jsxs("div",{className:ne("min-w-0 w-full",d),children:[h?m.jsx("div",{className:"dial-input px-3 py-2",children:E()}):v,u&&m.jsx("div",{id:x,className:ne({"dial-tiny-text text-secondary mt-1":!0,"text-error":!!o}),children:u}),S()]})]})};var Ai=(e=>(e.Row="Row",e.Column="Column",e))(Ai||{});const t1="flex",s1="pb-1 mt-2",i1={[Ai.Column]:"flex-col gap-y-3",[Ai.Row]:"flex-row gap-x-6"},Ia=({fieldTitle:e,radioClassName:t,containerClassName:s,selectedItemClassName:i,selectedLabelClassName:o,radioGroupClassName:n,inputContainerClassName:r,selectedInputContainerClassName:a,groupLabelClassName:l,formItemChildrenClassName:c,labelClassName:d,disabled:u,elementId:h,radioButtons:g,activeRadioButton:f,orientation:v,onChange:C})=>m.jsx(au,{id:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:m.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ne(t1,i1[v],n),children:g.map(w=>m.jsxs("div",{className:ne("flex flex-col",r,w.id===f&&a),children:[m.jsx(ru,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ne(d,w.id===f&&o),label:w.name,caption:w.caption,checked:w.id===f,onChange:()=>C(w.id)}),w.id===f&&w.content?m.jsx("div",{className:ne(s1,i),children:w.content}):null]},w.id))})}),dr=({icon:e,title:t,description:s,containerClassName:i,titleClassName:o,descriptionClassName:n})=>m.jsxs("div",{className:ne("h-full w-full flex flex-col items-center justify-center text-secondary",i),"aria-label":"no-data-container",children:[e||m.jsx(z.IconClipboardX,{width:60,height:60,stroke:.5}),m.jsx("span",{className:ne("dial-small-text mt-2 text-primary",o),"aria-label":"no-results-title",children:t}),s&&m.jsx("span",{className:ne("mt-1 text-primary",n),"aria-label":"no-results-description",children:s})]}),rc=48,af=({containerClassName:e,children:t,width:s=280,title:i,iconSize:o=24,iconStroke:n=1.5,titleClassName:r,additionalButtons:a,isOpened:l,onToggle:c})=>{const[d,u]=p.useState(s),[h,g]=p.useState(!0),f=p.useMemo(()=>typeof l=="boolean",[l]),v=f?l:h;p.useEffect(()=>{f&&u(l?s:rc)},[f,l,s]);const C=ne(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",v&&"hidden",r]),w=ne(["flex flex-row gap-2 cursor-pointer text-secondary py-2 items-center",v?"justify-end px-4":"justify-center"]),b=x=>{const y=!v;if(f){u(y?s:rc),c?.(y,x);return}u(y?s:rc),g(y)};return m.jsxs("div",{className:ne(["rounded flex flex-col justify-between",e]),style:{width:`${d}px`},"aria-label":"collapsible-sidebar",children:[m.jsx("div",{className:ne(["flex-1 p-4 min-h-0 overflow-auto",!v&&"hidden"]),children:t}),m.jsx("div",{className:C,children:i}),m.jsxs("div",{className:ne("border-t border-tertiary h-12",w),children:[v&&a,m.jsx(di,{className:"hover:text-accent-primary",onClick:b,"aria-label":"sidebar-state",size:Rt.Small,icon:v?m.jsx(z.IconChevronsLeft,{size:o,stroke:n}):m.jsx(z.IconChevronsRight,{size:o,stroke:n})})]})]})},o1=({label:e,text:t,tooltip:s,children:i,postfix:o,className:n})=>m.jsxs("div",{className:ne("flex flex-col",i?"":"max-w-[200px]",n),children:[e&&m.jsx("label",{className:"dial-tiny-text mb-2 text-secondary",children:e}),i||m.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[m.jsx(At,{triggerClassName:"text-primary flex-1 min-w-0",tooltip:s||t,children:t}),o||null]})]});var cl=(e=>(e.Default="default",e))(cl||{});const n1={[cl.Default]:"border-icon-secondary bg-layer-3"},yo=({tag:e,className:t,remove:s,variant:i=cl.Default,iconBefore:o,bordered:n=!0})=>{const r=n1[i],a=ne("flex items-center gap-1 dial-tiny-text rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return m.jsxs("div",{className:a,children:[m.jsx(Ye,{icon:o}),m.jsx(ft,{text:e}),s&&m.jsx(ss,{className:"p-0",iconAfter:m.jsx(z.IconX,{size:vt.SM}),onClick:l=>s(l)})]},e)},lf=p.createContext({dragDropManager:void 0});function qt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Hh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Gh=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bh={INIT:"@@redux/INIT"+Gh(),REPLACE:"@@redux/REPLACE"+Gh()};function r1(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a1(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(d1(e))return"date";if(c1(e))return"error";var s=l1(e);switch(s){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return s}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function l1(e){return typeof e.constructor=="function"?e.constructor.name:null}function c1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function d1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function po(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=a1(e)),t}function cf(e,t,s){var i;if(typeof t=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?qt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof s>"u"&&(s=t,t=void 0),typeof s<"u"){if(typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?qt(1):"Expected the enhancer to be a function. Instead, received: '"+po(s)+"'");return s(cf)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?qt(2):"Expected the root reducer to be a function. Instead, received: '"+po(e)+"'");var o=e,n=t,r=[],a=r,l=!1;function c(){a===r&&(a=r.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?qt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return n}function u(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?qt(4):"Expected the listener to be a function. Instead, received: '"+po(v)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?qt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var C=!0;return c(),a.push(v),function(){if(C){if(l)throw new Error(process.env.NODE_ENV==="production"?qt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");C=!1,c();var b=a.indexOf(v);a.splice(b,1),r=null}}}function h(v){if(!r1(v))throw new Error(process.env.NODE_ENV==="production"?qt(7):"Actions must be plain objects. Instead, the actual type was: '"+po(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?qt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?qt(9):"Reducers may not dispatch actions.");try{l=!0,n=o(n,v)}finally{l=!1}for(var C=r=a,w=0;w<C.length;w++){var b=C[w];b()}return v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?qt(10):"Expected the nextReducer to be a function. Instead, received: '"+po(v));o=v,h({type:Bh.REPLACE})}function f(){var v,C=u;return v={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?qt(11):"Expected the observer to be an object. Instead, received: '"+po(b)+"'");function x(){b.next&&b.next(d())}x();var y=C(x);return{unsubscribe:y}}},v[Hh]=function(){return this},v}return h({type:Bh.INIT}),i={dispatch:h,subscribe:u,getState:d,replaceReducer:g},i[Hh]=f,i}function Pe(e,t,...s){if(u1()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let i;if(t===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;i=new Error(t.replace(/%s/g,function(){return s[o++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function u1(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function h1(e,t,s){return t.split(".").reduce((i,o)=>i&&i[o]?i[o]:s||null,e)}function p1(e,t){return e.filter(s=>s!==t)}function df(e){return typeof e=="object"}function g1(e,t){const s=new Map,i=n=>{s.set(n,s.has(n)?s.get(n)+1:1)};e.forEach(i),t.forEach(i);const o=[];return s.forEach((n,r)=>{n===1&&o.push(r)}),o}function f1(e,t){return e.filter(s=>t.indexOf(s)>-1)}const lu="dnd-core/INIT_COORDS",dl="dnd-core/BEGIN_DRAG",cu="dnd-core/PUBLISH_DRAG_SOURCE",ul="dnd-core/HOVER",hl="dnd-core/DROP",pl="dnd-core/END_DRAG";function Vh(e,t){return{type:lu,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const m1={type:lu,payload:{clientOffset:null,sourceClientOffset:null}};function v1(e){return function(s=[],i={publishSource:!0}){const{publishSource:o=!0,clientOffset:n,getSourceClientOffset:r}=i,a=e.getMonitor(),l=e.getRegistry();e.dispatch(Vh(n)),C1(s,a,l);const c=x1(s,a);if(c==null){e.dispatch(m1);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");w1(r),d=r(c)}e.dispatch(Vh(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;b1(h),l.pinSource(c);const g=l.getSourceType(c);return{type:dl,payload:{itemType:g,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}}function C1(e,t,s){Pe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(i){Pe(s.getSource(i),"Expected sourceIds to be registered.")})}function w1(e){Pe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function b1(e){Pe(df(e),"Item must be an object.")}function x1(e,t){let s=null;for(let i=e.length-1;i>=0;i--)if(t.canDragSource(e[i])){s=e[i];break}return s}function y1(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function S1(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){y1(e,o,s[o])})}return e}function R1(e){return function(s={}){const i=e.getMonitor(),o=e.getRegistry();F1(i),P1(i).forEach((r,a)=>{const l=E1(r,a,o,i),c={type:hl,payload:{dropResult:S1({},s,l)}};e.dispatch(c)})}}function F1(e){Pe(e.isDragging(),"Cannot call drop while not dragging."),Pe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function E1(e,t,s,i){const o=s.getTarget(e);let n=o?o.drop(i,e):void 0;return D1(n),typeof n>"u"&&(n=t===0?{}:i.getDropResult()),n}function D1(e){Pe(typeof e>"u"||df(e),"Drop result must either be an object or undefined.")}function P1(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function T1(e){return function(){const s=e.getMonitor(),i=e.getRegistry();k1(s);const o=s.getSourceId();return o!=null&&(i.getSource(o,!0).endDrag(s,o),i.unpinSource()),{type:pl}}}function k1(e){Pe(e.isDragging(),"Cannot call endDrag while not dragging.")}function fd(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function M1(e){return function(s,{clientOffset:i}={}){I1(s);const o=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return L1(o,r,a),A1(o,n,r),O1(o,n,r),{type:ul,payload:{targetIds:o,clientOffset:i||null}}}}function I1(e){Pe(Array.isArray(e),"Expected targetIds to be an array.")}function A1(e,t,s){Pe(t.isDragging(),"Cannot call hover while not dragging."),Pe(!t.didDrop(),"Cannot call hover after drop.");for(let i=0;i<e.length;i++){const o=e[i];Pe(e.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(o);Pe(n,"Expected targetIds to be registered.")}}function L1(e,t,s){for(let i=e.length-1;i>=0;i--){const o=e[i],n=t.getTargetType(o);fd(n,s)||e.splice(i,1)}}function O1(e,t,s){e.forEach(function(i){s.getTarget(i).hover(t,i)})}function N1(e){return function(){if(e.getMonitor().isDragging())return{type:cu}}}function H1(e){return{beginDrag:v1(e),publishDragSource:N1(e),hover:M1(e),drop:R1(e),endDrag:T1(e)}}class G1{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:s}=this.store;function i(n){return(...r)=>{const a=n.apply(t,r);typeof a<"u"&&s(a)}}const o=H1(this);return Object.keys(o).reduce((n,r)=>{const a=o[r];return n[r]=i(a),n},{})}dispatch(t){this.store.dispatch(t)}constructor(t,s){this.isSetUp=!1,this.handleRefCountChange=()=>{const i=this.store.getState().refCount>0;this.backend&&(i&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!i&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=s,t.subscribe(this.handleRefCountChange)}}function B1(e,t){return{x:e.x+t.x,y:e.y+t.y}}function uf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function V1(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:i}=e;return!t||!s||!i?null:uf(B1(t,i),s)}function z1(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:uf(t,s)}const In=[],du=[];In.__IS_NONE__=!0;du.__IS_ALL__=!0;function W1(e,t){return e===In?!1:e===du||typeof t>"u"?!0:f1(t,e).length>0}class j1{subscribeToStateChange(t,s={}){const{handlerIds:i}=s;Pe(typeof t=="function","listener must be a function."),Pe(typeof i>"u"||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const n=()=>{const r=this.store.getState(),a=r.stateId;try{a===o||a===o+1&&!W1(r.dirtyHandlerIds,i)||t()}finally{o=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){Pe(typeof t=="function","listener must be a function.");let s=this.store.getState().dragOffset;const i=()=>{const o=this.store.getState().dragOffset;o!==s&&(s=o,t())};return this.store.subscribe(i)}canDragSource(t){if(!t)return!1;const s=this.registry.getSource(t);return Pe(s,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:s.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const s=this.registry.getTarget(t);if(Pe(s,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();return fd(i,o)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(Pe(s,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const i=this.registry.getSourceType(t),o=this.getItemType();return i!==o?!1:s.isDragging(this,t)}isOverTarget(t,s={shallow:!1}){if(!t)return!1;const{shallow:i}=s;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),n=this.getItemType();if(n&&!fd(o,n))return!1;const r=this.getTargetIds();if(!r.length)return!1;const a=r.indexOf(t);return i?a===r.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return V1(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return z1(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const zh=typeof global<"u"?global:self,hf=zh.MutationObserver||zh.WebKitMutationObserver;function pf(e){return function(){const s=setTimeout(o,0),i=setInterval(o,50);function o(){clearTimeout(s),clearInterval(i),e()}}}function _1(e){let t=1;const s=new hf(e),i=document.createTextNode("");return s.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}const U1=typeof hf=="function"?_1:pf;class $1{enqueueTask(t){const{queue:s,requestFlush:i}=this;s.length||(i(),this.flushing=!0),s[s.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const s=this.index;if(this.index++,t[s].call(),this.index>this.capacity){for(let i=0,o=t.length-this.index;i<o;i++)t[i]=t[i+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=U1(this.flush),this.requestErrorThrow=pf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class q1{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,s){this.onError=t,this.release=s,this.task=null}}class K1{create(t){const s=this.freeTasks,i=s.length?s.pop():new q1(this.onError,o=>s[s.length]=o);return i.task=t,i}constructor(t){this.onError=t,this.freeTasks=[]}}const gf=new $1,Y1=new K1(gf.registerPendingError);function X1(e){gf.enqueueTask(Y1.create(e))}const uu="dnd-core/ADD_SOURCE",hu="dnd-core/ADD_TARGET",pu="dnd-core/REMOVE_SOURCE",gl="dnd-core/REMOVE_TARGET";function Z1(e){return{type:uu,payload:{sourceId:e}}}function Q1(e){return{type:hu,payload:{targetId:e}}}function J1(e){return{type:pu,payload:{sourceId:e}}}function ex(e){return{type:gl,payload:{targetId:e}}}function tx(e){Pe(typeof e.canDrag=="function","Expected canDrag to be a function."),Pe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Pe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function sx(e){Pe(typeof e.canDrop=="function","Expected canDrop to be a function."),Pe(typeof e.hover=="function","Expected hover to be a function."),Pe(typeof e.drop=="function","Expected beginDrag to be a function.")}function md(e,t){if(t&&Array.isArray(e)){e.forEach(s=>md(s,!1));return}Pe(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Xt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Xt||(Xt={}));let ix=0;function ox(){return ix++}function nx(e){const t=ox().toString();switch(e){case Xt.SOURCE:return`S${t}`;case Xt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Wh(e){switch(e[0]){case"S":return Xt.SOURCE;case"T":return Xt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function jh(e,t){const s=e.entries();let i=!1;do{const{done:o,value:[,n]}=s.next();if(n===t)return!0;i=!!o}while(!i);return!1}class rx{addSource(t,s){md(t),tx(s);const i=this.addHandler(Xt.SOURCE,t,s);return this.store.dispatch(Z1(i)),i}addTarget(t,s){md(t,!0),sx(s);const i=this.addHandler(Xt.TARGET,t,s);return this.store.dispatch(Q1(i)),i}containsHandler(t){return jh(this.dragSources,t)||jh(this.dropTargets,t)}getSource(t,s=!1){return Pe(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Pe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Pe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Pe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Wh(t)===Xt.SOURCE}isTargetId(t){return Wh(t)===Xt.TARGET}removeSource(t){Pe(this.getSource(t),"Expected an existing source."),this.store.dispatch(J1(t)),X1(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Pe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(ex(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);Pe(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){Pe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,i){const o=nx(t);return this.types.set(o,s),t===Xt.SOURCE?this.dragSources.set(o,i):t===Xt.TARGET&&this.dropTargets.set(o,i),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const ax=(e,t)=>e===t;function lx(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function cx(e,t,s=ax){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!s(e[i],t[i]))return!1;return!0}function dx(e=In,t){switch(t.type){case ul:break;case uu:case hu:case gl:case pu:return In;case dl:case cu:case pl:case hl:default:return du}const{targetIds:s=[],prevTargetIds:i=[]}=t.payload,o=g1(s,i);if(!(o.length>0||!cx(s,i)))return In;const r=i[i.length-1],a=s[s.length-1];return r!==a&&(r&&o.push(r),a&&o.push(a)),o}function ux(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function hx(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){ux(e,o,s[o])})}return e}const _h={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function px(e=_h,t){const{payload:s}=t;switch(t.type){case lu:case dl:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case ul:return lx(e.clientOffset,s.clientOffset)?e:hx({},e,{clientOffset:s.clientOffset});case pl:case hl:return _h;default:return e}}function gx(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function go(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){gx(e,o,s[o])})}return e}const fx={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function mx(e=fx,t){const{payload:s}=t;switch(t.type){case dl:return go({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case cu:return go({},e,{isSourcePublic:!0});case ul:return go({},e,{targetIds:s.targetIds});case gl:return e.targetIds.indexOf(s.targetId)===-1?e:go({},e,{targetIds:p1(e.targetIds,s.targetId)});case hl:return go({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case pl:return go({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function vx(e=0,t){switch(t.type){case uu:case hu:return e+1;case pu:case gl:return e-1;default:return e}}function Cx(e=0){return e+1}function wx(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function bx(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){wx(e,o,s[o])})}return e}function xx(e={},t){return{dirtyHandlerIds:dx(e.dirtyHandlerIds,{type:t.type,payload:bx({},t.payload,{prevTargetIds:h1(e,"dragOperation.targetIds",[])})}),dragOffset:px(e.dragOffset,t),refCount:vx(e.refCount,t),dragOperation:mx(e.dragOperation,t),stateId:Cx(e.stateId)}}function yx(e,t=void 0,s={},i=!1){const o=Sx(i),n=new j1(o,new rx(o)),r=new G1(o,n),a=e(r,t,s);return r.receiveBackend(a),r}function Sx(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return cf(xx,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Rx(e,t){if(e==null)return{};var s=Fx(e,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function Fx(e,t){if(e==null)return{};var s={},i=Object.keys(e),o,n;for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&(s[o]=e[o]);return s}let Uh=0;const fa=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Ex=p.memo(function(t){var{children:s}=t,i=Rx(t,["children"]);const[o,n]=Dx(i);return p.useEffect(()=>{if(n){const r=ff();return++Uh,()=>{--Uh===0&&(r[fa]=null)}}},[]),m.jsx(lf.Provider,{value:o,children:s})});function Dx(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Px(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function Px(e,t=ff(),s,i){const o=t;return o[fa]||(o[fa]={dragDropManager:yx(e,t,s,i)}),o[fa]}function ff(){return typeof global<"u"?global:window}var ac,$h;function Tx(){return $h||($h=1,ac=function e(t,s){if(t===s)return!0;if(t&&s&&typeof t=="object"&&typeof s=="object"){if(t.constructor!==s.constructor)return!1;var i,o,n;if(Array.isArray(t)){if(i=t.length,i!=s.length)return!1;for(o=i;o--!==0;)if(!e(t[o],s[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if(n=Object.keys(t),i=n.length,i!==Object.keys(s).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(s,n[o]))return!1;for(o=i;o--!==0;){var r=n[o];if(!e(t[r],s[r]))return!1}return!0}return t!==t&&s!==s}),ac}var kx=Tx();const Mx=Qw(kx),Li=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Ix(e,t,s){const[i,o]=p.useState(()=>t(e)),n=p.useCallback(()=>{const r=t(e);Mx(i,r)||(o(r),s&&s())},[i,e,s]);return Li(n),[i,n]}function Ax(e,t,s){const[i,o]=Ix(e,t,s);return Li(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(o,{handlerIds:[r]})},[e,o]),i}function mf(e,t,s){return Ax(t,e||(()=>({})),()=>s.reconnect())}function vf(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),p.useMemo(()=>typeof e=="function"?e():e,s)}function Lx(e){return p.useMemo(()=>e.hooks.dragSource(),[e])}function Ox(e){return p.useMemo(()=>e.hooks.dragPreview(),[e])}let lc=!1,cc=!1;class Nx{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Pe(!lc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return lc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{lc=!1}}isDragging(){if(!this.sourceId)return!1;Pe(!cc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return cc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{cc=!1}}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,s){return this.internalMonitor.isOverTarget(t,s)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let dc=!1;class Hx{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;Pe(!dc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return dc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{dc=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Gx(e,t,s){const i=s.getRegistry(),o=i.addTarget(e,t);return[o,()=>i.removeTarget(o)]}function Bx(e,t,s){const i=s.getRegistry(),o=i.addSource(e,t);return[o,()=>i.removeSource(o)]}function vd(e,t,s,i){let o;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<n.length;l++){const c=n[l];if(!a(c))return!1;const d=e[c],u=t[c];if(o=void 0,o===!1||o===void 0&&d!==u)return!1}return!0}function Cd(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vx(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function zx(e){return(t=null,s=null)=>{if(!p.isValidElement(t)){const n=t;return e(n,s),n}const i=t;return Vx(i),Wx(i,s?n=>e(n,s):e)}}function Cf(e){const t={};return Object.keys(e).forEach(s=>{const i=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const o=zx(i);t[s]=()=>o}}),t}function qh(e,t){typeof e=="function"?e(t):e.current=t}function Wx(e,t){const s=e.ref;return Pe(typeof s!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),s?p.cloneElement(e,{ref:i=>{qh(s,i),qh(t,i)}}):p.cloneElement(e,{ref:t})}class jx{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,s=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return s&&this.disconnectDragSource(),this.handlerId?t?(s&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),s):(this.lastConnectedDragSource=t,s):s}reconnectDragPreview(t=!1){const s=this.dragPreview,i=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!s){this.lastConnectedDragPreview=s;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=s,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,s,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!vd(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!vd(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Cf({dragSource:(s,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Cd(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Cd(s)?this.dragPreviewRef=s:this.dragPreviewNode=s,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class _x{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const s=this.dropTarget;if(this.handlerId){if(!s){this.lastConnectedDropTarget=s;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=s,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,s,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!vd(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Cf({dropTarget:(s,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Cd(s)?this.dropTargetRef=s:this.dropTargetNode=s,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Zo(){const{dragDropManager:e}=p.useContext(lf);return Pe(e!=null,"Expected drag drop context"),e}function Ux(e,t){const s=Zo(),i=p.useMemo(()=>new jx(s.getBackend()),[s]);return Li(()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource()),[i,e]),Li(()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,t]),i}function $x(){const e=Zo();return p.useMemo(()=>new Nx(e),[e])}class qx{beginDrag(){const t=this.spec,s=this.monitor;let i=null;return typeof t.item=="object"?i=t.item:typeof t.item=="function"?i=t.item(s):i={},i??null}canDrag(){const t=this.spec,s=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(s):!0}isDragging(t,s){const i=this.spec,o=this.monitor,{isDragging:n}=i;return n?n(o):s===t.getSourceId()}endDrag(){const t=this.spec,s=this.monitor,i=this.connector,{end:o}=t;o&&o(s.getItem(),s),i.reconnect()}constructor(t,s,i){this.spec=t,this.monitor=s,this.connector=i}}function Kx(e,t,s){const i=p.useMemo(()=>new qx(e,t,s),[t,s]);return p.useEffect(()=>{i.spec=e},[e]),i}function Yx(e){return p.useMemo(()=>{const t=e.type;return Pe(t!=null,"spec.type must be defined"),t},[e])}function Xx(e,t,s){const i=Zo(),o=Kx(e,t,s),n=Yx(e);Li(function(){if(n!=null){const[a,l]=Bx(n,o,i);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[i,t,s,o,n])}function Zx(e,t){const s=vf(e,t);Pe(!s.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=$x(),o=Ux(s.options,s.previewOptions);return Xx(s,i,o),[mf(s.collect,i,o),Lx(o),Ox(o)]}function Qx(e){return p.useMemo(()=>e.hooks.dropTarget(),[e])}function Jx(e){const t=Zo(),s=p.useMemo(()=>new _x(t.getBackend()),[t]);return Li(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function e0(){const e=Zo();return p.useMemo(()=>new Hx(e),[e])}function t0(e){const{accept:t}=e;return p.useMemo(()=>(Pe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class s0{canDrop(){const t=this.spec,s=this.monitor;return t.canDrop?t.canDrop(s.getItem(),s):!0}hover(){const t=this.spec,s=this.monitor;t.hover&&t.hover(s.getItem(),s)}drop(){const t=this.spec,s=this.monitor;if(t.drop)return t.drop(s.getItem(),s)}constructor(t,s){this.spec=t,this.monitor=s}}function i0(e,t){const s=p.useMemo(()=>new s0(e,t),[t]);return p.useEffect(()=>{s.spec=e},[e]),s}function o0(e,t,s){const i=Zo(),o=i0(e,t),n=t0(e);Li(function(){const[a,l]=Gx(n,o,i);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[i,t,o,s,n.map(r=>r.toString()).join("|")])}function wf(e,t){const s=vf(e,t),i=e0(),o=Jx(s.options);return o0(s,i,o),[mf(s.collect,i,o),Qx(o)]}const Kh="column",n0="flex items-center",r0="mr-3 cursor-move text-secondary",a0=({id:e,children:t,className:s,onFind:i,onMove:o,ariaLabel:n="Drag item"})=>{const r=p.useRef(null),a=p.useRef(null),l=typeof i=="function"?i(e):-1,[{isDragging:c},d,u]=Zx(()=>({type:Kh,item:{id:e,originalIndex:l},collect:g=>{const f=g.getItem();return{isDragging:g.isDragging()&&f?.id===e}},end:(g,f)=>{if(!g)return;!f.didDrop()&&typeof o=="function"&&g.originalIndex>-1&&o(g.id,g.originalIndex)}}),[e,l,o]),[,h]=wf(()=>({accept:Kh,hover:g=>{if(!(!g||g.id===e)&&typeof i=="function"&&typeof o=="function"){const f=i(e);o(g.id,f)}}}),[i,o,e]);return u(h(a)),d(r),m.jsxs("div",{ref:a,className:ne(n0,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[m.jsx("div",{ref:r,className:r0,"aria-label":n,children:m.jsx(z.IconGripVertical,{...J})}),t]})},l0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M3.68628 10.3945C3.91003 10.408 4.10927 10.4422 4.2832 10.4978L4.28394 10.4971C4.5167 10.5698 4.71621 10.6662 4.87939 10.7871C4.9994 10.876 5.10332 10.974 5.18994 11.0815L5.27051 11.1929L5.27197 11.1943L5.34009 11.3079C5.38301 11.3838 5.42067 11.4597 5.45288 11.5356L5.49683 11.6492L5.49756 11.6514L5.53198 11.7649C5.56274 11.877 5.5838 11.9867 5.59497 12.0938C5.61194 12.23 5.62059 12.3501 5.62061 12.4534C5.62061 12.6166 5.57231 12.7639 5.47559 12.8906C5.41544 12.9694 5.325 13.0198 5.21997 13.0503C5.11455 13.0809 4.98537 13.0942 4.83691 13.0942C4.73711 13.0942 4.62608 13.0838 4.50439 13.0635C4.37577 13.0415 4.26002 12.9966 4.16089 12.9272L4.15869 12.9258C4.04118 12.8396 3.98657 12.7121 3.98657 12.5625C3.98655 12.2721 3.94576 12.0552 3.87231 11.9033L3.87158 11.9011C3.81572 11.7798 3.69406 11.7026 3.45337 11.7026C3.33114 11.7027 3.25307 11.7292 3.20435 11.7671C3.14221 11.8149 3.10061 11.864 3.07617 11.9128C3.04149 11.985 3.02355 12.0599 3.02124 12.1384V14.7905L3.02637 14.8652C3.03466 14.9384 3.05266 15.0073 3.07983 15.0725L3.10254 15.1201C3.12874 15.1672 3.16488 15.2124 3.21167 15.2556C3.2602 15.2978 3.33572 15.3259 3.45337 15.3259C3.56813 15.3259 3.65533 15.3041 3.71997 15.2673C3.78314 15.2313 3.83208 15.1772 3.86646 15.0996C3.94535 14.9186 3.98655 14.7002 3.98657 14.4412C3.98657 14.3004 4.04381 14.1839 4.1499 14.0991L4.19824 14.0647C4.33673 13.9762 4.55866 13.9431 4.83691 13.9431C5.09384 13.9431 5.30559 13.9858 5.43604 14.1013C5.55182 14.204 5.62061 14.3293 5.62061 14.4749C5.62057 14.7549 5.57953 15.0125 5.49536 15.2461L5.45654 15.3442C5.36294 15.5677 5.23261 15.7627 5.06543 15.928L4.99146 15.9968C4.58057 16.3629 4.03856 16.541 3.37793 16.541L3.12671 16.5278C3.00679 16.5188 2.87303 16.495 2.72607 16.4575C2.61505 16.4287 2.50136 16.3894 2.38696 16.3396L2.27197 16.2861C2.1155 16.2094 1.9705 16.0983 1.83691 15.9558L1.83618 15.9551C1.70598 15.8128 1.59909 15.6391 1.51392 15.4365L1.51318 15.4351C1.42797 15.2251 1.38722 14.9736 1.38721 14.6843V12.345C1.38721 12.1069 1.41644 11.892 1.47656 11.7026C1.52068 11.5616 1.57629 11.4337 1.64355 11.3196L1.7146 11.2097C1.81013 11.07 1.92167 10.9524 2.04932 10.8582C2.17206 10.7676 2.29884 10.6909 2.42871 10.6289L2.54297 10.5798C2.81231 10.4716 3.11394 10.4081 3.44678 10.3879L3.45337 10.3872L3.68628 10.3945Z",fill:"currentColor"}),Se.createElement("path",{d:"M8.10791 11.7371C8.33261 11.7371 8.5218 11.8023 8.61255 11.9758C8.68772 12.1131 8.72383 12.2741 8.72388 12.4534V12.7522H9.03003C9.21461 12.7522 9.37781 12.7845 9.5127 12.8562C9.68704 12.9456 9.7463 13.149 9.74634 13.3843C9.74634 13.612 9.68105 13.8034 9.50537 13.894L9.5061 13.8948C9.36923 13.9665 9.20861 14.0002 9.03003 14.0002H8.72388V14.3064C8.72388 14.4941 8.68994 14.6588 8.61768 14.7942L8.61841 14.7949C8.5293 14.9647 8.334 15.0226 8.10791 15.0227C7.87257 15.0227 7.66761 14.9685 7.5769 14.8L7.57617 14.7993C7.50612 14.6659 7.47583 14.4988 7.47583 14.3064V14.0002H7.18579C6.99507 14.0002 6.82804 13.9669 6.69214 13.894C6.52182 13.8026 6.46069 13.6102 6.46069 13.3843C6.46073 13.1491 6.51509 12.944 6.68335 12.8533L6.68481 12.8525L6.79102 12.8079C6.90305 12.7697 7.03293 12.7522 7.177 12.7522H7.47583V12.4534C7.47587 12.2683 7.50712 12.1056 7.57617 11.9707L7.5769 11.9685L7.61646 11.9092C7.72038 11.7825 7.90134 11.7371 8.10791 11.7371Z",fill:"currentColor"}),Se.createElement("path",{d:"M12.728 11.7371C12.9527 11.7371 13.1419 11.8023 13.2327 11.9758C13.3078 12.1131 13.3439 12.2741 13.344 12.4534V12.7522H13.6501C13.8347 12.7522 13.9979 12.7845 14.1328 12.8562C14.3072 12.9456 14.3664 13.149 14.3665 13.3843C14.3665 13.612 14.3012 13.8034 14.1255 13.894L14.1262 13.8948C13.9894 13.9665 13.8287 14.0002 13.6501 14.0002H13.344V14.3064C13.344 14.4941 13.3101 14.6588 13.2378 14.7942L13.2385 14.7949C13.1494 14.9647 12.9541 15.0226 12.728 15.0227C12.4927 15.0227 12.2877 14.9685 12.197 14.8L12.1963 14.7993C12.1262 14.6659 12.0959 14.4988 12.0959 14.3064V14.0002H11.8059C11.6152 14.0002 11.4482 13.9669 11.3123 13.894C11.1419 13.8026 11.0808 13.6102 11.0808 13.3843C11.0808 13.1491 11.1352 12.944 11.3035 12.8533L11.3049 12.8525L11.4111 12.8079C11.5232 12.7697 11.653 12.7522 11.7971 12.7522H12.0959V12.4534C12.096 12.2683 12.1272 12.1056 12.1963 11.9707L12.197 11.9685L12.2366 11.9092C12.3405 11.7825 12.5215 11.7371 12.728 11.7371Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),c0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M4.29639 10.3945C4.50665 10.4083 4.69413 10.4433 4.85815 10.5L4.85889 10.4993C5.07789 10.5733 5.26574 10.6715 5.41919 10.7944C5.53204 10.8849 5.62958 10.9843 5.71069 11.0933L5.78613 11.2053L5.78687 11.2068L5.85059 11.3218C5.89058 11.3983 5.92606 11.4746 5.95605 11.551L5.99707 11.666L5.9978 11.6682L6.05566 11.8945C6.0708 11.9689 6.08168 12.0422 6.08862 12.1143C6.10449 12.252 6.11279 12.3734 6.11279 12.4775C6.11276 12.6403 6.06824 12.7876 5.97803 12.9155C5.92155 12.9956 5.83545 13.0472 5.73486 13.0789C5.63441 13.1104 5.51212 13.1243 5.37231 13.1243C5.32505 13.1243 5.27524 13.1215 5.2229 13.1162L5.05811 13.0928C4.93553 13.0701 4.82533 13.024 4.73145 12.9529L4.72998 12.9514C4.61882 12.8632 4.56958 12.7352 4.56958 12.5874C4.56955 12.2926 4.5312 12.0715 4.46191 11.9165L4.46045 11.9143C4.4319 11.8474 4.38931 11.8003 4.33154 11.7686C4.27185 11.7358 4.18944 11.7158 4.07812 11.7158C3.96626 11.7158 3.89622 11.7421 3.85254 11.7788C3.79519 11.8265 3.75637 11.8759 3.73315 11.926C3.70026 11.9999 3.68262 12.0771 3.68042 12.1582V14.8425L3.68555 14.9187C3.69337 14.9937 3.71038 15.0643 3.73608 15.1311L3.75732 15.1802C3.78176 15.2276 3.81496 15.2727 3.85767 15.3157L3.89575 15.3442C3.93843 15.3699 3.99697 15.386 4.07812 15.386C4.18296 15.386 4.26146 15.3647 4.31982 15.3289C4.37727 15.2935 4.4233 15.2389 4.45605 15.1589C4.53037 14.9746 4.56957 14.7522 4.56958 14.4888C4.56958 14.3307 4.63662 14.2007 4.7666 14.1116L4.82007 14.0801C4.95284 14.0119 5.14337 13.9856 5.37231 13.9856C5.61445 13.9856 5.81633 14.0298 5.94067 14.1489C6.04986 14.2536 6.11274 14.379 6.11279 14.5225C6.11279 14.8453 6.06245 15.1386 5.95972 15.3999C5.85998 15.6574 5.71501 15.8781 5.52466 16.0598L5.52393 16.0591C5.13817 16.4307 4.62871 16.6128 4.00708 16.6128C3.95774 16.6128 3.87811 16.6081 3.77124 16.5996C3.65793 16.5904 3.53127 16.5659 3.39331 16.5278C3.28866 16.4984 3.18149 16.4584 3.07397 16.4077L2.96631 16.3535C2.81858 16.2752 2.68196 16.1624 2.55688 16.0181L2.55615 16.0166C2.43435 15.8725 2.33453 15.6972 2.25513 15.4929L2.25439 15.4915C2.17508 15.28 2.13721 15.0267 2.13721 14.7349V12.3669C2.13721 12.1269 2.16476 11.9109 2.2207 11.7202L2.26538 11.5825C2.3136 11.4491 2.37234 11.3289 2.44263 11.2229C2.53187 11.0816 2.63607 10.9621 2.7561 10.8662C2.87117 10.7743 2.98996 10.6964 3.11206 10.6333L3.11353 10.6326L3.22046 10.5828C3.47384 10.4727 3.75793 10.4085 4.0708 10.3879L4.07812 10.3872L4.29639 10.3945Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H8.625C8.21079 16.5 7.875 16.1642 7.875 15.75C7.875 15.3358 8.21079 15 8.625 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),d0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M3.62109 10.571C3.83849 10.5842 4.03206 10.618 4.20117 10.6721L4.2019 10.6714C4.42776 10.742 4.62121 10.8352 4.77979 10.9526C4.89663 11.0392 4.99793 11.135 5.08228 11.2397L5.16064 11.3474L5.16211 11.3489L5.22803 11.4595C5.26973 11.5332 5.30659 11.6069 5.33789 11.6807L5.38037 11.7905L5.3811 11.7935L5.44116 12.0117C5.45675 12.0826 5.46834 12.1524 5.47559 12.2212L5.49463 12.4087C5.49888 12.4674 5.50049 12.5222 5.50049 12.5728C5.50045 12.7317 5.45415 12.8755 5.35986 12.999C5.30088 13.0762 5.2117 13.1246 5.10938 13.1543C5.0067 13.1841 4.88146 13.1975 4.7373 13.1975C4.64029 13.1975 4.53244 13.1872 4.41431 13.1675C4.28898 13.1461 4.17557 13.1026 4.07886 13.0349L4.07739 13.0334C3.96236 12.9491 3.90894 12.8243 3.90894 12.6782C3.90893 12.3968 3.86925 12.187 3.79834 12.0403L3.79761 12.0381C3.74418 11.922 3.62816 11.847 3.39551 11.8469C3.27715 11.8469 3.20179 11.873 3.15527 11.9092C3.09597 11.9548 3.05572 12.0012 3.03223 12.0476L3.03296 12.0483C2.99919 12.1182 2.98102 12.1906 2.97876 12.2666V14.8396L2.98389 14.9114C2.99188 14.9821 3.00888 15.049 3.03516 15.1121L3.05786 15.1582C3.08304 15.2033 3.11768 15.2464 3.1626 15.2878C3.2089 15.3285 3.28115 15.356 3.39551 15.356C3.50633 15.3559 3.58982 15.3349 3.65186 15.2996C3.71249 15.2651 3.75936 15.2131 3.79248 15.1384L3.84302 15.0007C3.88665 14.8554 3.90893 14.6891 3.90894 14.5005C3.90894 14.363 3.96502 14.2494 4.0686 14.1665L4.11621 14.1328C4.25147 14.0465 4.46739 14.0134 4.7373 14.0134C4.98658 14.0134 5.19278 14.0552 5.32031 14.168C5.43323 14.268 5.5004 14.3903 5.50049 14.5327C5.50049 14.8049 5.46077 15.0556 5.37891 15.2827L5.34155 15.3779C5.23762 15.6261 5.08621 15.8373 4.88892 16.0115L4.88965 16.0122C4.49029 16.3681 3.96383 16.541 3.32227 16.541C3.27168 16.541 3.18935 16.5367 3.07837 16.5286C3.02014 16.5242 2.95789 16.5158 2.89307 16.5044L2.68799 16.4597C2.5801 16.4317 2.47025 16.3938 2.35913 16.3455L2.2478 16.2935C2.09553 16.2188 1.95433 16.1112 1.82446 15.9727L1.82373 15.9712C1.69712 15.8328 1.593 15.6642 1.51025 15.4673L1.50952 15.4658C1.42669 15.2616 1.38721 15.0172 1.38721 14.7363V12.4666C1.38723 12.2355 1.41597 12.0273 1.47437 11.8433C1.53119 11.6615 1.60684 11.502 1.70361 11.3665L1.77686 11.2676C1.85263 11.1732 1.9374 11.0913 2.03101 11.0222C2.15024 10.9342 2.27322 10.8598 2.39941 10.7996L2.40015 10.7988L2.51074 10.7512C2.77229 10.6462 3.0652 10.5848 3.38818 10.5652L3.39551 10.5645L3.62109 10.571Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36914 11.28C9.50263 11.28 9.62352 11.3063 9.72583 11.3643L9.7251 11.365C9.85906 11.4379 9.90454 11.5838 9.90454 11.7429C9.9045 11.7567 9.90157 11.7778 9.89941 11.7935C9.89658 11.814 9.89242 11.8422 9.88696 11.8777C9.87611 11.9455 9.8639 12.0222 9.85034 12.1062C9.84553 12.136 9.84018 12.1643 9.83569 12.1912H10.0525C10.1919 12.1912 10.3171 12.2148 10.4216 12.2688L10.4209 12.2695C10.5686 12.3412 10.6128 12.5089 10.6128 12.6863C10.6128 12.8587 10.5617 13.0123 10.4194 13.0898L10.4187 13.0906C10.3122 13.1472 10.1885 13.1726 10.0525 13.1726H9.67529L9.55225 13.8589H9.75952C9.89706 13.8589 10.0206 13.8819 10.1243 13.9343C10.2748 14.005 10.3198 14.1752 10.3198 14.354C10.3198 14.5291 10.2702 14.6875 10.1243 14.7627L10.1235 14.7634C10.0176 14.8164 9.89461 14.8403 9.75952 14.8403H9.38452L9.33398 15.1677L9.33325 15.1714C9.30492 15.3271 9.26297 15.4669 9.20728 15.5903L9.20801 15.5911C9.17656 15.6626 9.13001 15.7228 9.06592 15.7646C9.00162 15.8065 8.92683 15.8247 8.84839 15.8247C8.72 15.8247 8.60307 15.8041 8.50122 15.7581L8.49976 15.7573C8.35755 15.6908 8.31299 15.5386 8.31299 15.3787C8.31299 15.3406 8.31787 15.2939 8.32617 15.241L8.35913 15.0242C8.36863 14.9624 8.37948 14.9012 8.38989 14.8403H7.92847L7.87793 15.1677L7.8772 15.1714C7.84887 15.3271 7.80691 15.4669 7.75122 15.5903L7.75195 15.5911C7.72046 15.6627 7.6734 15.7228 7.60913 15.7646C7.54487 15.8064 7.47071 15.8247 7.39233 15.8247C7.26394 15.8247 7.14702 15.8041 7.04517 15.7581L7.0437 15.7573C6.90149 15.6908 6.85693 15.5387 6.85693 15.3787C6.85694 15.3406 6.86181 15.2939 6.87012 15.241L6.90308 15.0242C6.91257 14.9624 6.92342 14.9012 6.93384 14.8403H6.6687C6.52906 14.8403 6.40313 14.8167 6.29663 14.7634L6.29297 14.762C6.15355 14.6853 6.10844 14.5261 6.1084 14.354C6.1084 14.1782 6.1487 14.0079 6.29297 13.9358C6.39784 13.882 6.52535 13.8589 6.6687 13.8589H7.09497L7.21802 13.1726H6.95361C6.81311 13.1726 6.68646 13.1475 6.57935 13.0906L6.57788 13.0898C6.43874 13.0135 6.39332 12.8568 6.39331 12.6863C6.39331 12.5105 6.43361 12.3402 6.57788 12.2681C6.68271 12.2144 6.81036 12.1912 6.95361 12.1912H7.38721L7.46045 11.7561C7.47174 11.6625 7.50842 11.5673 7.56372 11.4712C7.63824 11.3418 7.76255 11.2801 7.91309 11.28C8.04657 11.28 8.16746 11.3063 8.26978 11.3643L8.26904 11.365C8.403 11.4379 8.44849 11.5838 8.44849 11.7429C8.44844 11.7567 8.44552 11.7778 8.44336 11.7935C8.44053 11.814 8.43636 11.8422 8.43091 11.8777C8.42006 11.9455 8.40784 12.0222 8.39429 12.1062C8.38947 12.136 8.38413 12.1643 8.37964 12.1912H8.84326L8.9165 11.7561C8.92779 11.6625 8.96448 11.5673 9.01978 11.4712C9.0943 11.3418 9.21861 11.2801 9.36914 11.28ZM8.09619 13.8589H8.55103L8.67407 13.1726H8.21924L8.09619 13.8589Z",fill:"currentColor"})),u0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M4.43188 10.4409C4.65285 10.4409 4.85471 10.4869 4.99951 10.6152L4.99878 10.6159C5.13097 10.7305 5.21409 10.881 5.25146 11.0576C5.28474 11.2148 5.30052 11.3869 5.30054 11.5724V15.4323C5.30054 15.6193 5.28417 15.7927 5.25146 15.9516L5.2522 15.9523C5.21779 16.1313 5.13551 16.2842 4.99951 16.3976L4.99878 16.3969C4.85386 16.52 4.65269 16.5646 4.43188 16.5646C4.21337 16.5646 4.01411 16.5195 3.86792 16.3976L3.86353 16.394C3.73466 16.2798 3.65263 16.1299 3.6123 15.9553L3.61157 15.9516C3.57826 15.7941 3.5625 15.6205 3.5625 15.4323V11.5724C3.56252 11.3869 3.5783 11.2148 3.61157 11.0576C3.64882 10.8815 3.72996 10.7302 3.85986 10.6152L3.86133 10.6137C4.00804 10.4875 4.2103 10.4409 4.43188 10.4409Z",fill:"currentColor"}),Se.createElement("path",{d:"M8.07129 10.4474C8.18434 10.4599 8.28945 10.4924 8.3811 10.55L8.38184 10.5493C8.45754 10.5942 8.52569 10.6451 8.58472 10.7016L8.64111 10.7602L8.64331 10.7631L8.69385 10.8298C8.72596 10.8768 8.75504 10.9284 8.78101 10.9836L8.81763 11.0685L8.81909 11.0729L9.85986 13.8928V11.2692C9.85986 11.0565 9.89522 10.8654 9.98291 10.7119L9.98364 10.7104L10.0349 10.6393C10.1656 10.4886 10.3781 10.4409 10.5974 10.4409C10.8635 10.4409 11.125 10.4947 11.2529 10.6965C11.3535 10.8508 11.3928 11.0487 11.3928 11.2692V15.4323C11.3928 15.6163 11.3809 15.7863 11.3577 15.9413L11.3584 15.9421C11.3349 16.1167 11.2678 16.2708 11.1467 16.3881C11.0102 16.5202 10.8106 16.5646 10.5974 16.5646H10.0554C9.86994 16.5646 9.69972 16.5199 9.56104 16.416C9.44129 16.3261 9.3452 16.215 9.27466 16.0842C9.21353 15.9706 9.16292 15.8593 9.12378 15.7509L8.14893 13.1091V15.7363C8.14893 15.9493 8.11322 16.1406 8.02661 16.2958L8.02588 16.2973C7.90706 16.5052 7.66112 16.5646 7.41138 16.5646C7.14233 16.5646 6.88122 16.5106 6.75 16.312C6.64812 16.1572 6.60791 15.9581 6.60791 15.7363V11.5724C6.60792 11.3882 6.61818 11.2193 6.63867 11.0671V11.0641L6.66724 10.9367C6.7042 10.8142 6.76699 10.706 6.85986 10.6188C6.9982 10.4862 7.19704 10.4409 7.41138 10.4409H7.95337L8.07129 10.4474Z",fill:"currentColor"}),Se.createElement("path",{d:"M13.5688 10.4409C13.7898 10.4409 13.9917 10.4869 14.1365 10.6152L14.1357 10.6159C14.2679 10.7305 14.3511 10.881 14.3884 11.0576C14.4217 11.2148 14.4375 11.3869 14.4375 11.5724V15.4323C14.4375 15.6193 14.4211 15.7927 14.3884 15.9516L14.3892 15.9523C14.3548 16.1313 14.2725 16.2842 14.1365 16.3976L14.1357 16.3969C13.9908 16.52 13.7897 16.5646 13.5688 16.5646C13.3503 16.5646 13.1511 16.5195 13.0049 16.3976L13.0005 16.394C12.8716 16.2798 12.7896 16.1299 12.7493 15.9553L12.7485 15.9516C12.7152 15.7941 12.6995 15.6205 12.6995 15.4323V11.5724C12.6995 11.3869 12.7153 11.2148 12.7485 11.0576C12.7858 10.8815 12.8669 10.7302 12.9968 10.6152L12.9983 10.6137C13.145 10.4875 13.3473 10.4409 13.5688 10.4409Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50385C10.7457 1.52087 10.9072 1.59681 11.0303 1.71991L14.7803 5.46991C14.9208 5.61054 15 5.80136 15 6.00018V9.00018C14.9998 9.41423 14.6641 9.75018 14.25 9.75018C13.8359 9.75018 13.5002 9.41423 13.5 9.00018V6.75018H11.25C10.8523 6.75018 10.4707 6.59192 10.1895 6.31073C9.90824 6.02951 9.7501 5.64788 9.75 5.25018V3.00018H5.25C5.05109 3.00018 4.86038 3.07926 4.71973 3.21991C4.57919 3.36054 4.5 3.55136 4.5 3.75018V9.00018C4.4998 9.41423 4.16409 9.75018 3.75 9.75018C3.33591 9.75018 3.0002 9.41423 3 9.00018V3.75018C3 3.15353 3.23734 2.5813 3.65918 2.15936C4.08114 1.73741 4.65326 1.50018 5.25 1.50018H10.5L10.574 1.50385ZM11.25 5.25018H12.4395L11.25 4.06073V5.25018Z",fill:"currentColor"})),h0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M6.76831 10.8267C6.93291 10.8267 7.08404 10.8408 7.22021 10.8691L7.35205 10.9021L7.35278 10.9028L7.46851 10.9431C7.57872 10.986 7.67614 11.038 7.75928 11.0991C7.84245 11.1591 7.91481 11.2265 7.97388 11.3005L8.02881 11.3767L8.02954 11.3774L8.11011 11.5254C8.13317 11.5747 8.15233 11.6249 8.16797 11.6755C8.19815 11.7711 8.21863 11.8631 8.22656 11.9502C8.23376 12.0294 8.23755 12.096 8.23755 12.1479C8.23753 12.318 8.17338 12.4626 8.04639 12.572C7.92503 12.676 7.77653 12.7265 7.60913 12.7266C7.4711 12.7266 7.34146 12.6749 7.22241 12.583C7.1027 12.4905 7.02328 12.3741 7.02319 12.2329C7.02319 12.0468 6.98759 11.9498 6.94775 11.907L6.94629 11.9055C6.90561 11.8606 6.83878 11.8294 6.72583 11.8293C6.58234 11.8293 6.48534 11.856 6.42334 11.896C6.4086 11.9056 6.38747 11.9281 6.37061 11.981C6.35372 12.0341 6.34351 12.1099 6.34351 12.2117C6.34581 12.2878 6.36799 12.3546 6.40869 12.4153C6.45761 12.4821 6.52298 12.549 6.60718 12.6138L6.73608 12.7053C6.78632 12.7386 6.84449 12.7751 6.9104 12.8145C7.04454 12.8945 7.16167 12.9644 7.2605 13.0232L7.44507 13.1426C7.50565 13.1844 7.56597 13.2284 7.62524 13.2744C7.74715 13.3666 7.8562 13.4715 7.95337 13.5886C8.05276 13.7085 8.13297 13.8432 8.1936 13.9922C8.25599 14.1456 8.28891 14.3172 8.29395 14.5049V14.5364C8.29395 14.7339 8.26896 14.9141 8.21777 15.0754V15.0776C8.11696 15.3776 7.94914 15.6082 7.7124 15.761L7.71313 15.7617C7.62701 15.8179 7.53944 15.8644 7.45166 15.9016L7.36304 15.936C7.30225 15.9571 7.24075 15.9753 7.1792 15.9902L6.99243 16.0261C6.87331 16.0431 6.75886 16.0529 6.65039 16.0554H6.61304C6.41017 16.0554 6.22414 16.0345 6.05786 15.9917C5.89914 15.9495 5.75823 15.8922 5.63892 15.8196L5.63745 15.8188C5.52025 15.7449 5.42093 15.6589 5.34155 15.561C5.26338 15.4674 5.20001 15.3681 5.15332 15.2644C5.10802 15.1659 5.07431 15.0659 5.05371 14.9656C5.03361 14.8676 5.02297 14.7738 5.02295 14.6851C5.02295 14.5014 5.0798 14.3447 5.20898 14.2375L5.20972 14.2368L5.30493 14.1731C5.40409 14.1186 5.51594 14.0918 5.63745 14.0918C5.79553 14.0919 5.94175 14.1407 6.07251 14.2354L6.12451 14.2764C6.2216 14.3622 6.27861 14.4745 6.2959 14.6067L6.30103 14.6741L6.31055 14.7847C6.32502 14.8796 6.35383 14.9312 6.38306 14.9568C6.43071 14.9963 6.50789 15.0238 6.63135 15.0242C6.76743 15.0198 6.85874 14.9863 6.91772 14.9355L6.91846 14.9341L6.95361 14.8938C6.98575 14.8434 7.00924 14.7604 7.00928 14.6287C7.00928 14.4903 6.96843 14.3706 6.8877 14.2661L6.88696 14.2646C6.80068 14.1504 6.68858 14.0439 6.55078 13.946L6.55005 13.9453C6.40626 13.841 6.25592 13.7396 6.10034 13.6421C5.93262 13.5343 5.77326 13.4207 5.62427 13.303L5.62354 13.3022C5.46846 13.1772 5.34021 13.0351 5.24121 12.8752C5.13746 12.7076 5.0852 12.514 5.08008 12.2988V12.2388L5.0874 12.0505C5.10126 11.869 5.13388 11.7086 5.18628 11.5708V11.5693L5.2478 11.4382C5.31532 11.3136 5.40255 11.2077 5.51074 11.1233L5.62207 11.0464C5.73813 10.9764 5.87099 10.9263 6.01831 10.894C6.21201 10.8494 6.43196 10.8267 6.67603 10.8267H6.76831Z",fill:"currentColor"}),Se.createElement("path",{d:"M14.2266 10.8062C14.3565 10.8062 14.4736 10.8329 14.5693 10.8933L14.5701 10.8926L14.5715 10.894L14.5737 10.8948L14.573 10.8955C14.6342 10.9321 14.6895 10.9722 14.7363 11.0171L14.781 11.064L14.7825 11.0662L14.8235 11.1204C14.8363 11.1392 14.8492 11.159 14.8608 11.1797L14.9246 11.3159L14.9253 11.3181L15.9163 14.0024V11.4705C15.9163 11.2922 15.9461 11.1369 16.0159 11.0149L16.054 10.9607C16.1527 10.8467 16.3175 10.8062 16.5022 10.8062C16.7284 10.8062 16.9271 10.8532 17.0229 11.0017C17.1032 11.1237 17.1379 11.2847 17.1379 11.4705V15.0535C17.1379 15.21 17.1275 15.3541 17.1079 15.4849L17.1086 15.4856C17.0896 15.6273 17.0355 15.7491 16.9409 15.8408C16.837 15.9414 16.6806 15.9784 16.5022 15.9785H16.0356C15.8837 15.9785 15.7483 15.9422 15.6394 15.8606C15.5419 15.7874 15.4638 15.6974 15.4065 15.5911C15.3549 15.4953 15.3125 15.4018 15.2798 15.3113L14.3459 12.7815V15.3149C14.3459 15.4932 14.316 15.6489 14.2471 15.7727L14.2463 15.7734C14.158 15.9281 13.9711 15.9784 13.76 15.9785C13.53 15.9785 13.3292 15.9315 13.2312 15.783C13.151 15.6609 13.1169 15.5006 13.1169 15.3149V11.7319C13.117 11.575 13.126 11.4319 13.1433 11.3035V11.3013L13.166 11.1987C13.1955 11.1009 13.2454 11.0157 13.3176 10.9475L13.3594 10.9124C13.4627 10.8363 13.6027 10.8062 13.76 10.8062H14.2266Z",fill:"currentColor"}),Se.createElement("path",{d:"M3.62183 10.73C3.8058 10.73 3.96571 10.7696 4.07959 10.8677C4.185 10.9586 4.25306 11.0796 4.28613 11.2229C4.31675 11.3557 4.33154 11.5018 4.33154 11.6602V14.3606C4.33154 14.617 4.29481 14.8413 4.21655 15.0293C4.15993 15.1652 4.09098 15.286 4.00928 15.3896L3.92285 15.4878C3.80762 15.6056 3.67869 15.6971 3.5376 15.7625L3.53833 15.7632C3.40115 15.8269 3.27011 15.872 3.14722 15.8979L3.14795 15.8987C3.09669 15.9112 3.04501 15.9213 2.99414 15.9294L2.8418 15.9478C2.74998 15.9548 2.68156 15.9587 2.64111 15.9587C2.3706 15.9587 2.13396 15.928 1.93506 15.8643C1.73937 15.8022 1.56914 15.7204 1.42749 15.6174C1.28776 15.5158 1.17335 15.3984 1.08691 15.2651L1.02686 15.1685C0.970789 15.0715 0.926873 14.9732 0.895752 14.874L0.896484 14.8733C0.852315 14.745 0.821564 14.6203 0.806396 14.499L0.805664 14.4968C0.793555 14.3806 0.786621 14.2779 0.786621 14.1899C0.786659 14.0481 0.829716 13.9196 0.914062 13.8091C0.968035 13.7386 1.04873 13.6949 1.13965 13.6685C1.231 13.642 1.34202 13.6297 1.46851 13.6296C1.55651 13.6297 1.65224 13.6393 1.75415 13.6567C1.8653 13.6758 1.96539 13.7157 2.05151 13.7783C2.15785 13.853 2.20677 13.9666 2.20679 14.0977C2.20679 14.3421 2.24112 14.5246 2.302 14.6528L2.32178 14.6865C2.37332 14.7613 2.46833 14.8095 2.64111 14.8096C2.74386 14.8095 2.80532 14.7883 2.8396 14.762L2.84106 14.7605L2.90552 14.7019C2.92253 14.6822 2.9356 14.6623 2.94507 14.6426L2.97803 14.5518C2.98565 14.5209 2.98953 14.4889 2.99048 14.4565V11.9641H2.17236C2.0293 11.9641 1.8922 11.9536 1.76221 11.9312L1.76001 11.9304C1.62252 11.9035 1.50268 11.8482 1.40698 11.7612L1.40625 11.7598C1.30008 11.6602 1.25688 11.5177 1.25684 11.3547C1.25684 11.1882 1.29936 11.0419 1.40625 10.9417C1.49986 10.8517 1.6187 10.7951 1.75635 10.7681L1.9585 10.7395C2.02775 10.7333 2.09935 10.73 2.17236 10.73H3.62183Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0061 10.8398C11.1058 10.8474 11.2146 10.8676 11.3313 10.8984L11.332 10.8977C11.4562 10.9275 11.5817 10.9747 11.7078 11.0376L11.803 11.0896C11.8653 11.1277 11.926 11.1727 11.9839 11.2244L12.0688 11.3071L12.0696 11.3079L12.1472 11.4001C12.2197 11.4965 12.2807 11.608 12.3303 11.7327L12.3772 11.8674C12.417 12.0081 12.4358 12.1667 12.4358 12.3406V14.4111C12.4358 14.649 12.4035 14.8579 12.3347 15.0337L12.334 15.0352C12.2654 15.204 12.1782 15.349 12.071 15.4666C11.9653 15.5823 11.8439 15.6747 11.7085 15.7412L11.7078 15.7405C11.5864 15.8034 11.4622 15.8534 11.335 15.8877C11.2172 15.9189 11.1066 15.9387 11.0061 15.9463C10.9136 15.9532 10.8413 15.9573 10.793 15.9573H10.675L10.4626 15.9463C10.362 15.9387 10.2518 15.919 10.1338 15.8877C10.0122 15.8554 9.8873 15.8055 9.75952 15.7405C9.62706 15.6742 9.50578 15.5832 9.39624 15.4688L9.39551 15.468C9.28579 15.3506 9.19561 15.2056 9.12451 15.0366L9.12378 15.0352C9.05226 14.8589 9.01835 14.6495 9.01831 14.4111V12.3406C9.01831 12.105 9.05259 11.8998 9.12451 11.7297C9.19368 11.5618 9.28389 11.4184 9.39697 11.3027C9.50677 11.1905 9.62826 11.1014 9.76099 11.0376C9.82393 11.0062 9.88688 10.9792 9.94849 10.957L9.94922 10.9563L10.1323 10.8992L10.1345 10.8984L10.3066 10.8604C10.3612 10.8506 10.4136 10.8436 10.4626 10.8398L10.675 10.8289H10.793C10.8413 10.8289 10.9136 10.8329 11.0061 10.8398ZM10.738 11.9473C10.6399 11.9473 10.5796 11.9688 10.5439 11.9963L10.5432 11.9971C10.4934 12.0354 10.4596 12.0746 10.4385 12.1135L10.4377 12.1143C10.4103 12.1641 10.3949 12.222 10.3931 12.2886V14.5393L10.4062 14.6309L10.4385 14.7151L10.4392 14.7158L10.481 14.7766C10.4976 14.7958 10.5181 14.8147 10.5417 14.833L10.5732 14.8521C10.6101 14.8689 10.6637 14.8806 10.738 14.8806C10.8345 14.8805 10.8925 14.8598 10.9255 14.8345C10.9743 14.7969 11.0075 14.7565 11.0288 14.7158C11.054 14.6605 11.0699 14.5993 11.0757 14.5327V12.2944L11.0588 12.197C11.051 12.167 11.0406 12.138 11.0281 12.1106C11.0069 12.0728 10.9738 12.0343 10.9255 11.9971L10.9233 11.9949C10.8905 11.9684 10.8335 11.9474 10.738 11.9473Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),p0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),Se.createElement("path",{d:"M2.39355 10.5C2.53545 10.5 2.6592 10.5122 2.75757 10.5417C2.88987 10.5815 2.99161 10.6954 3.07251 10.8289L3.15747 10.9885L3.25195 11.2031L3.25269 11.2046L3.35229 11.4683C3.38786 11.5664 3.42601 11.6752 3.46655 11.7942L3.76318 12.6665L3.76392 12.6687L3.76904 12.6848L3.79907 12.5911L3.94849 12.1348C3.99515 11.9948 4.03674 11.8689 4.073 11.7576L4.07373 11.7561L4.1814 11.4434C4.21489 11.3495 4.24596 11.265 4.27515 11.1907L4.36084 10.9849C4.38855 10.9239 4.41584 10.8705 4.44214 10.8252C4.51581 10.6953 4.61188 10.5823 4.74243 10.5417H4.7439L4.82153 10.5227C4.90321 10.5069 4.99686 10.5 5.09985 10.5H5.67041C5.87137 10.5 6.05265 10.5425 6.17505 10.6619L6.17944 10.6655C6.29073 10.7714 6.35329 10.9108 6.375 11.072C6.39695 11.2133 6.40721 11.3701 6.40723 11.5415V15.5149C6.4072 15.7232 6.3696 15.9065 6.27686 16.0474C6.16065 16.2235 5.92578 16.2751 5.67041 16.2751C5.43573 16.2751 5.21924 16.2184 5.11157 16.0378L5.10938 16.0342C5.03005 15.8921 4.9966 15.7149 4.99658 15.5149V12.8335L4.4436 14.4456L4.44141 14.4521C4.39239 14.576 4.32667 14.6919 4.24658 14.8008L4.24731 14.8015C4.14341 14.9438 3.9882 15.008 3.80933 15.0081H3.73096C3.55351 15.008 3.40015 14.9437 3.29004 14.8081L3.28857 14.8066C3.20076 14.6954 3.13356 14.575 3.08862 14.4463L2.53564 12.8496V15.5149C2.53562 15.7149 2.50218 15.8921 2.42285 16.0342L2.42212 16.0356C2.31692 16.2193 2.09741 16.2751 1.86182 16.2751C1.60639 16.2751 1.37154 16.2236 1.25537 16.0474C1.16263 15.9065 1.12502 15.7232 1.125 15.5149V11.5415C1.12501 11.3697 1.13426 11.2129 1.15356 11.072L1.1543 11.0691L1.17993 10.9526C1.21308 10.8409 1.26884 10.7425 1.35059 10.6633L1.39966 10.6223C1.52082 10.5332 1.68333 10.5 1.86182 10.5H2.39355Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.1106 10.5C9.62746 10.5 10.0624 10.6251 10.4026 10.8875L10.5256 10.9944C10.6405 11.1071 10.7342 11.238 10.8062 11.3862C10.9039 11.5876 10.9497 11.8187 10.9497 12.074V14.4983C10.9497 14.7119 10.927 14.9051 10.8779 15.0754C10.8306 15.2398 10.7676 15.3875 10.689 15.5156L10.6875 15.5186C10.6079 15.6408 10.5165 15.7481 10.4143 15.8386C10.3155 15.9261 10.2132 15.9989 10.1074 16.0547L10.1067 16.054C9.86566 16.1854 9.58987 16.2585 9.28271 16.2751H7.97681C7.77408 16.2751 7.59145 16.2335 7.46704 16.1169C7.35471 16.0115 7.2898 15.8714 7.26489 15.7097C7.24266 15.5651 7.23194 15.4033 7.23193 15.2256V11.5415C7.23195 11.3663 7.2426 11.2069 7.26489 11.0647C7.28985 10.9032 7.35482 10.7635 7.46704 10.6582C7.59145 10.5416 7.77403 10.5 7.97681 10.5H9.1106ZM8.72095 15.0447H9.07544C9.15931 15.0426 9.23737 15.0225 9.31055 14.9839L9.31348 14.9817L9.35815 14.9553C9.40066 14.926 9.43743 14.8876 9.46802 14.8381L9.46875 14.8367L9.49438 14.7861C9.51748 14.7305 9.53172 14.6593 9.53174 14.5686V12.2615C9.53174 12.1256 9.50631 12.0248 9.46509 11.9517L9.46362 11.9495C9.42061 11.8696 9.36785 11.8162 9.30762 11.7825C9.25706 11.7542 9.19978 11.7342 9.1355 11.7231L9.06885 11.7151H8.72095V15.0447Z",fill:"currentColor"})),g0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6416 10.3784C3.95675 10.4068 4.24355 10.4808 4.49927 10.6033L4.68896 10.7058C4.75102 10.7437 4.81209 10.7853 4.87207 10.8303C4.99897 10.9227 5.10899 11.0375 5.20459 11.1724C5.30765 11.311 5.38613 11.4733 5.44116 11.6558L5.47998 11.8008C5.51306 11.9504 5.52903 12.1125 5.52905 12.2856C5.52905 12.6011 5.47828 12.8867 5.37305 13.1382L5.37378 13.1389C5.28434 13.3557 5.15787 13.5441 4.99512 13.7014L4.92334 13.7666C4.52343 14.1103 3.97203 14.269 3.2959 14.269H2.95166V15.4292C2.95165 15.614 2.93964 15.7845 2.91577 15.9397C2.8883 16.1182 2.81511 16.2739 2.68652 16.3909L2.68579 16.3901C2.54556 16.5202 2.34254 16.5645 2.12329 16.5645C1.90696 16.5644 1.70685 16.5194 1.56738 16.3887L1.56519 16.3865C1.44288 16.2679 1.37145 16.1152 1.34399 15.9404L1.34326 15.936C1.32257 15.7822 1.31251 15.613 1.3125 15.4292V11.5042C1.31251 11.3204 1.3225 11.1524 1.34326 11.001L1.34399 10.9973L1.37256 10.8691C1.40991 10.7455 1.47366 10.6362 1.56738 10.5483C1.70673 10.4148 1.90677 10.3689 2.12329 10.3689H3.50464L3.6416 10.3784ZM2.95166 12.9053H3.31787C3.43267 12.8984 3.53116 12.8714 3.61597 12.8269C3.69435 12.7857 3.75967 12.7244 3.81226 12.6387L3.84448 12.5728C3.8728 12.5 3.88989 12.4058 3.88989 12.2856C3.88984 12.1374 3.85971 12.0411 3.81812 11.9795L3.81519 11.9744C3.76419 11.8937 3.70357 11.8366 3.63428 11.7979C3.56584 11.7635 3.47692 11.7377 3.36328 11.7253H2.95166V12.9053Z",fill:"currentColor"}),Se.createElement("path",{d:"M9.85181 10.3689C9.96017 10.369 10.0701 10.3945 10.1792 10.4392L10.2876 10.4897L10.2935 10.4927L10.2993 10.4963C10.4209 10.5712 10.5226 10.6619 10.5879 10.7725C10.6503 10.8716 10.6882 10.9809 10.6882 11.0969C10.6882 11.1892 10.6526 11.2993 10.6077 11.4089L10.6069 11.4082C10.5828 11.4685 10.5524 11.5379 10.5154 11.6147C10.4774 11.6937 10.4326 11.7792 10.3813 11.8704L9.1582 14.0391V15.4373C9.1582 15.6164 9.14303 15.7853 9.11279 15.9426C9.07918 16.1138 9.00547 16.2635 8.88647 16.3799L8.88721 16.3806C8.75142 16.5164 8.5562 16.5644 8.34668 16.5645C8.13595 16.5644 7.94219 16.5154 7.80249 16.3843L7.80103 16.3828C7.68055 16.2661 7.60635 16.1157 7.57251 15.9434C7.54226 15.786 7.52783 15.6164 7.52783 15.4373V14.0398L6.12085 11.5283L6.11938 11.5261C6.0459 11.3891 6.00587 11.2453 6.00586 11.0969C6.00589 10.986 6.03681 10.8798 6.09155 10.7812L6.09302 10.7791L6.15015 10.6963C6.21492 10.6176 6.30071 10.5509 6.39771 10.4941L6.4043 10.4905L6.5127 10.4392C6.6213 10.3943 6.73162 10.369 6.84155 10.3689C7.06446 10.369 7.25232 10.4649 7.39307 10.6399L7.48096 10.752C7.5635 10.8656 7.6337 10.9873 7.69263 11.116L8.34668 12.4878L9.00073 11.116C9.07902 10.945 9.177 10.7867 9.29443 10.6421L9.29517 10.6414L9.35083 10.5791C9.48615 10.443 9.65571 10.3689 9.85181 10.3689Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),qe=(e,t)=>m.jsx(e,{size:t.size??J.size,stroke:t.stroke??J.stroke,className:t.className}),wi=(e,t)=>m.jsx(e,{width:Number(t.size??J.size),height:Number(t.size??J.size),className:t.className}),Yh={".bmp":e=>qe(z.IconFileTypeBmp,e),".cpp":e=>wi(l0,e),".c":e=>wi(c0,e),".cs":e=>wi(d0,e),".css":e=>qe(z.IconFileTypeCss,e),".csv":e=>qe(z.IconFileTypeCsv,e),".doc":e=>qe(z.IconFileTypeDoc,e),".docx":e=>qe(z.IconFileTypeDocx,e),".html":e=>qe(z.IconFileTypeHtml,e),".ini":e=>wi(u0,e),".jpg":e=>qe(z.IconFileTypeJpg,e),".js":e=>qe(z.IconFileTypeJs,e),".json":e=>wi(h0,e),".jsx":e=>qe(z.IconFileTypeJsx,e),".md":e=>wi(p0,e),".pdf":e=>qe(z.IconFileTypePdf,e),".php":e=>qe(z.IconFileTypePhp,e),".png":e=>qe(z.IconFileTypePng,e),".ppt":e=>qe(z.IconFileTypePpt,e),".py":e=>wi(g0,e),".rs":e=>qe(z.IconFileTypeRs,e),".sql":e=>qe(z.IconFileTypeSql,e),".svg":e=>qe(z.IconFileTypeSvg,e),".ts":e=>qe(z.IconFileTypeTs,e),".tsx":e=>qe(z.IconFileTypeTsx,e),".txt":e=>qe(z.IconFileTypeTxt,e),".vue":e=>qe(z.IconFileTypeVue,e),".xls":e=>qe(z.IconFileTypeXls,e),".xml":e=>qe(z.IconFileTypeXml,e),".zip":e=>qe(z.IconFileTypeZip,e),default:e=>qe(z.IconFile,e)},gu=({extension:e,size:t=J.size,stroke:s=J.stroke,className:i,decorative:o=!1,label:n,indicator:r})=>{const a=(()=>{if(!e)return"";const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(Yh[a]??Yh.default)({size:t,stroke:s}),d=typeof n=="string"?n:`${a.slice(1).toUpperCase()} file icon`;return m.jsxs("span",{className:pe("inline-flex relative",i),...o?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[m.jsx(Ye,{icon:c,className:"inline-block align-middle"}),r&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},$n=({label:e="Shared entity",size:t=14,className:s,containerClassName:i,stroke:o=1.5,sharedIndicatorTooltip:n})=>m.jsx(At,{tooltip:n||"Shared",children:m.jsx(Ye,{className:ne("text-accent-primary flex bg-layer-3",i),icon:m.jsx(z.IconArrowUpRight,{size:t,stroke:o,"aria-label":typeof e=="string"?e:void 0,className:s,role:"img"})})}),fl=({name:e,className:t,shared:s=!1,iconSize:i=Ht,details:o,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,fileExtension:a,hideTooltip:l=!1,isInvalidName:c=!1,tooltipContent:d})=>{const u=a||(e.includes(".")?e.split(".").pop():void 0);return m.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[m.jsx(gu,{extension:u,size:i,className:"text-secondary",indicator:s?m.jsx($n,{className:n,sharedIndicatorTooltip:r}):null,label:"File type icon"}),m.jsxs("div",{className:pe(["w-full flex min-w-0",o&&"flex-col gap-1"]),children:[m.jsx(ft,{className:pe(["dial-small-text flex-1 min-w-0",c?"text-secondary":"text-primary"]),text:e,id:"name",hideTooltip:l,customTooltipContent:d}),o]})]})},ml=({name:e,className:t,shared:s=!1,loading:i=!1,iconSize:o=Ht,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,hideTooltip:a=!1,isInvalidName:l=!1,tooltipContent:c})=>{const d=()=>i?m.jsx(cr,{size:o}):m.jsx(Ye,{icon:m.jsx(z.IconFolder,{...J,size:o}),className:"inline-block align-middle"});return m.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[m.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[d(),s&&m.jsx("span",{className:"absolute z-50 -bottom-0.5 -left-0.5",children:m.jsx($n,{className:n,sharedIndicatorTooltip:r})})]}),m.jsx(ft,{className:pe("dial-small-text flex-1 min-w-0",l?"text-secondary":"text-primary"),text:e,id:"name",hideTooltip:a,customTooltipContent:c})]})};var qn=(e=>(e.Left="left",e.Right="right",e))(qn||{}),ot=function(){return ot=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot.apply(this,arguments)},Xh={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Zh={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Zr={width:"20px",height:"20px",position:"absolute",zIndex:1},f0={top:ot(ot({},Xh),{top:"-5px"}),right:ot(ot({},Zh),{left:void 0,right:"-5px"}),bottom:ot(ot({},Xh),{top:void 0,bottom:"-5px"}),left:ot(ot({},Zh),{left:"-5px"}),topRight:ot(ot({},Zr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ot(ot({},Zr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ot(ot({},Zr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ot(ot({},Zr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},m0=p.memo(function(e){var t=e.onResizeStart,s=e.direction,i=e.children,o=e.replaceStyles,n=e.className,r=p.useCallback(function(c){t(c,s)},[t,s]),a=p.useCallback(function(c){t(c,s)},[t,s]),l=p.useMemo(function(){return ot(ot({position:"absolute",userSelect:"none"},f0[s]),o??{})},[o,s]);return m.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:i})}),v0=(function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},e(t,s)};return function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(t,s);function i(){this.constructor=t}t.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})(),ms=function(){return ms=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ms.apply(this,arguments)},C0={width:"auto",height:"auto"},Qr=function(e,t,s){return Math.max(Math.min(e,s),t)},Qh=function(e,t,s){var i=Math.round(e/t);return i*t+s*(i-1)},fo=function(e,t){return new RegExp(e,"i").test(t)},Jr=function(e){return!!(e.touches&&e.touches.length)},w0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Jh=function(e,t,s){s===void 0&&(s=0);var i=t.reduce(function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n},0),o=Math.abs(t[i]-e);return s===0||o<s?t[i]:e},uc=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},ea=function(e,t,s,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return s*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return i*o}}return e},b0=function(e,t,s,i,o,n,r){return i=ea(i,e.width,t,s),o=ea(o,e.height,t,s),n=ea(n,e.width,t,s),r=ea(r,e.height,t,s),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof r>"u"?void 0:Number(r)}},x0=function(e){return Array.isArray(e)?e:[e,e]},y0=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ep="__resizable_base__",S0=(function(e){v0(t,e);function t(s){var i,o,n,r,a=e.call(this,s)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(ep):c.className+=ep,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(o=(i=a.propsSize)===null||i===void 0?void 0:i.width)!==null&&o!==void 0?o:"auto",height:(r=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&r!==void 0?r:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||C0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var s=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;r!=="relative"&&(this.resizable.style.position="relative"),s=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:s,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var s=this,i=this.props.size,o=function(a){var l;if(typeof s.state[a]>"u"||s.state[a]==="auto")return"auto";if(s.propsSize&&s.propsSize[a]&&(!((l=s.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%"))){if(s.state[a].toString().endsWith("%"))return s.state[a].toString();var c=s.getParentSize(),d=Number(s.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return uc(s.state[a])},n=i&&typeof i.width<"u"&&!this.state.isResizing?uc(i.width):o("width"),r=i&&typeof i.height<"u"&&!this.state.isResizing?uc(i.height):o("height");return{width:n,height:r}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var s=this.appendBase();if(!s)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),s.style.position="relative",s.style.minWidth="100%",s.style.minHeight="100%";var n={width:s.offsetWidth,height:s.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(s),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var s=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:s.flexBasis!=="auto"?s.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(s,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===s&&(typeof o>"u"||o==="auto")?"auto":s},t.prototype.calculateNewMaxFromBoundary=function(s,i){var o=this.props.boundsByDirection,n=this.state.direction,r=o&&fo("left",n),a=o&&fo("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=r?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(s=s&&s<l?s:l),c&&Number.isFinite(c)&&(i=i&&i<c?i:c),{maxWidth:s,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(s,i){var o=this.props.scale||1,n=x0(this.props.resizeRatio||1),r=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,h=u.lockAspectRatio,g=u.lockAspectRatioExtraHeight,f=u.lockAspectRatioExtraWidth,v=d.width,C=d.height,w=g||0,b=f||0;return fo("right",c)&&(v=d.width+(s-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),fo("left",c)&&(v=d.width-(s-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),fo("bottom",c)&&(C=d.height+(i-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),fo("top",c)&&(C=d.height-(i-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),{newWidth:v,newHeight:C}},t.prototype.calculateNewSizeFromAspectRatio=function(s,i,o,n){var r=this.props,a=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,c=r.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof o.width>"u"||o.width<0?s:o.width,h=typeof n.height>"u"?10:n.height,g=typeof o.height>"u"||o.height<0?i:o.height,f=l||0,v=c||0;if(a){var C=(h-f)*this.ratio+v,w=(g-f)*this.ratio+v,b=(d-v)/this.ratio+f,x=(u-v)/this.ratio+f,y=Math.max(d,C),S=Math.min(u,w),E=Math.max(h,b),R=Math.min(g,x);s=Qr(s,y,S),i=Qr(i,E,R)}else s=Qr(s,d,u),i=Qr(i,h,g);return{newWidth:s,newHeight:i}},t.prototype.setBoundingClientRect=function(){var s=1/(this.props.scale||1);if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var o=i.getBoundingClientRect();this.parentLeft=o.left*s,this.parentTop=o.top*s}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*s,this.targetTop=n.top*s}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,l=r.top,c=r.right,d=r.bottom;this.resizableLeft=a*s,this.resizableRight=c*s,this.resizableTop=l*s,this.resizableBottom=d*s}},t.prototype.onResizeStart=function(s,i){if(!(!this.resizable||!this.window)){var o=0,n=0;if(s.nativeEvent&&w0(s.nativeEvent)?(o=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&Jr(s.nativeEvent)&&(o=s.nativeEvent.touches[0].clientX,n=s.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var r=this.props.onResizeStart(s,i,this.resizable);if(r===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:o,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:ms(ms({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(s.target).cursor||"auto"}),direction:i,flexBasis:a};this.setState(u)}},t.prototype.onMouseMove=function(s){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Jr(s))try{s.preventDefault(),s.stopPropagation()}catch{}var o=this.props,n=o.maxWidth,r=o.maxHeight,a=o.minWidth,l=o.minHeight,c=Jr(s)?s.touches[0].clientX:s.clientX,d=Jr(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,g=u.original,f=u.width,v=u.height,C=this.getParentSize(),w=b0(C,this.window.innerWidth,this.window.innerHeight,n,r,a,l);n=w.maxWidth,r=w.maxHeight,a=w.minWidth,l=w.minHeight;var b=this.calculateNewSizeFromDirection(c,d),x=b.newHeight,y=b.newWidth,S=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(y=Jh(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Jh(x,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(y,x,{width:S.maxWidth,height:S.maxHeight},{width:a,height:l});if(y=E.newWidth,x=E.newHeight,this.props.grid){var R=Qh(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),F=Qh(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),D=this.props.snapGap||0,P=D===0||Math.abs(R-y)<=D?R:y,T=D===0||Math.abs(F-x)<=D?F:x;y=P,x=T}var M={width:y-g.width,height:x-g.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var N=y/C.width*100;y="".concat(N,"%")}else if(f.endsWith("vw")){var q=y/this.window.innerWidth*100;y="".concat(q,"vw")}else if(f.endsWith("vh")){var L=y/this.window.innerHeight*100;y="".concat(L,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var N=x/C.height*100;x="".concat(N,"%")}else if(v.endsWith("vw")){var q=x/this.window.innerWidth*100;x="".concat(q,"vw")}else if(v.endsWith("vh")){var L=x/this.window.innerHeight*100;x="".concat(L,"vh")}}var V={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?V.flexBasis=V.width:this.flexDir==="column"&&(V.flexBasis=V.height);var H=this.state.width!==V.width,A=this.state.height!==V.height,de=this.state.flexBasis!==V.flexBasis,k=H||A||de;k&&Ko.flushSync(function(){i.setState(V)}),this.props.onResize&&k&&this.props.onResize(s,h,this.resizable,M)}},t.prototype.onMouseUp=function(s){var i,o,n=this.state,r=n.isResizing,a=n.direction;n.original,!(!r||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(s,a,this.resizable,this.delta),this.props.size&&this.setState({width:(i=this.props.size.width)!==null&&i!==void 0?i:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:ms(ms({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(s){var i,o;this.setState({width:(i=s.width)!==null&&i!==void 0?i:"auto",height:(o=s.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var s=this,i=this.props,o=i.enable,n=i.handleStyles,r=i.handleClasses,a=i.handleWrapperStyle,l=i.handleWrapperClass,c=i.handleComponent;if(!o)return null;var d=Object.keys(o).map(function(u){return o[u]!==!1?m.jsx(m0,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return m.jsx("div",{className:l,style:a,children:d})},t.prototype.render=function(){var s=this,i=Object.keys(this.props).reduce(function(r,a){return y0.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),o=ms(ms(ms({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return m.jsxs(n,ms({style:o,className:this.props.className},i,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(p.PureComponent);const R0=({side:e,className:t})=>{const s=e===qn.Left,i=s?z.IconChevronLeft:z.IconChevronRight;return m.jsx("div",{className:t,children:m.jsx(i,{className:pe("h-full",s&&"-ml-6")})})},F0=({side:e,isResizing:t,customHandler:s,handlerClassName:i})=>{const o=ne("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",i),n=m.jsx(R0,{side:e,className:o});return s?m.jsx("div",{className:o,children:s}):n},bf=({children:e,minWidth:t,maxWidth:s,width:i,defaultWidth:o,onResizeStop:n,onResize:r,side:a=qn.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=p.useState(!1),[h,g]=p.useState(o),f=i!==void 0,v=f?i:h,C=p.useRef(null),w=p.useCallback(()=>{u(!0)},[]),b=p.useCallback(()=>{u(!1);const y=C.current?.resizable?.getBoundingClientRect(),S=y?Math.round(y.width):t;f||g(S),n?.(S)},[n,f,t]),x=p.useMemo(()=>{const y=a===qn.Left,S=m.jsx(F0,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:v,height:"100%"}:void 0,defaultSize:f?void 0:{width:v,height:"100%"},minWidth:t,maxWidth:s,enable:{left:y,right:!y},handleClasses:{right:"group",left:"group"},handleStyles:{right:{right:"-8px",zIndex:10},left:{left:0,zIndex:10}},handleComponent:{left:y?S:void 0,right:y?void 0:S},onResizeStart:w,onResize:(E,R,F)=>{const D=Math.round(F.offsetWidth);r?.(D)},onResizeStop:b}},[a,f,v,t,s,c,l,d,w,b,r]);return m.jsx(S0,{ref:C,...x,children:m.jsx("div",{className:"group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all",children:e})})},xf=({enabled:e=!0,children:t,...s})=>e?m.jsx(bf,{...s,children:t}):t;var Zt=(e=>(e.Default="default",e.Text="text",e.Circular="circular",e.Rectangular="rectangular",e))(Zt||{}),An=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(An||{}),Aa=(e=>(e.Circle="circle",e.Square="square",e))(Aa||{});const E0=e=>{if(typeof e=="number")return e;switch(e){case An.Small:return 32;case An.Large:return 64;case An.Default:default:return 40}},bo=({active:e=!0,paragraph:t=!0,avatar:s=!1,showTitle:i=!0,loading:o=!0,children:n,variant:r=Zt.Default,width:a,height:l,className:c,...d})=>{if(!o&&n)return m.jsx(m.Fragment,{children:n});const u=ne("bg-layer-3",e&&"animate-pulse",c);if(r!==Zt.Default){const F=ne(u,r===Zt.Circular&&"rounded-full",r===Zt.Rectangular&&"rounded",r===Zt.Text&&"rounded"),D={};return a&&(D.width=typeof a=="number"?`${a}px`:a),l&&(D.height=typeof l=="number"?`${l}px`:l),m.jsx("div",{className:F,style:D,...d})}const h=!!s,g=!!i,f=!!t,v=typeof s=="object"?s:{},C=typeof i=="object"?i:{},w=typeof t=="object"?t:{},b=E0(v.size),x=v.shape??Aa.Circle,y=C.width??"38%",S=w.rows??3,E=w.width,R=F=>E?Array.isArray(E)?E[F]??"100%":E:F===S-1?"61%":"100%";return m.jsxs("div",{...d,className:ne("flex gap-4",c),children:[h&&m.jsx("div",{className:ne(u,x===Aa.Circle?"rounded-full":"rounded","flex-shrink-0"),style:{width:b,height:b}}),m.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[g&&m.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:y}}),f&&m.jsx("div",{className:"flex flex-col gap-3",children:Array.from({length:S}).map((F,D)=>m.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:R(D)}},D))})]})]})};var Oi=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&s&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const i=this.getListeners(e,s,!1);i&&(i.delete(t),i.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:i}=this,o=a=>{const l=i?()=>i.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(s,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&o(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)o(()=>l(s,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function Ns(e){return e==null||e===""?null:e}function te(e){return e!=null&&e!==""}function Xe(e){return!te(e)}function wd(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Kn(e,t){const s=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return s===i}function D0(e,t,s=!1){const i=e==null,o=t==null;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),i&&o)return 0;if(i)return-1;if(o)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!s)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var P0=/[&<>"']/g,T0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qo(e){return e?.toString().toString()??null}function Ln(e){return Qo(e)?.replace(P0,t=>T0[t])??null}function rs(e){return e.eRootDiv.getRootNode()}function Je(e){return rs(e).activeElement}function pt(e){const{gos:t,eRootDiv:s}=e;let i=null;const o=t.get("getDocument");return o&&te(o)?i=o():s&&(i=s.ownerDocument),i&&te(i)?i:document}function yf(e){const t=Je(e);return t===null||t===pt(e).body}function Sf(e){return pt(e).defaultView||window}function fu(e){let t=null,s=null;try{t=pt(e).fullscreenElement}catch{}finally{t||(t=rs(e));const i=t.querySelector("body");i?s=i:t instanceof ShadowRoot?s=t:t instanceof Document?s=t?.documentElement:s=t}return s}function k0(e){return fu(e)?.clientWidth??(window.innerWidth||-1)}function M0(e){return fu(e)?.clientHeight??(window.innerHeight||-1)}function us(e,t,s){s==null||typeof s=="string"&&s==""?Rf(e,t):hs(e,t,s)}function hs(e,t,s){e.setAttribute(Ff(t),s.toString())}function Rf(e,t){e.removeAttribute(Ff(t))}function Ff(e){return`aria-${e}`}function Ni(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function I0(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function A0(e){return e.getAttribute("aria-label")}function Vo(e,t){us(e,"label",t)}function Yn(e,t){us(e,"labelledby",t)}function Ef(e,t){us(e,"live",t)}function L0(e,t){us(e,"atomic",t)}function O0(e,t){us(e,"relevant",t)}function N0(e,t){us(e,"invalid",t)}function H0(e,t){us(e,"disabled",t)}function Df(e,t){us(e,"hidden",t)}function bd(e,t){hs(e,"expanded",t)}function G0(e,t){hs(e,"setsize",t)}function B0(e,t){hs(e,"posinset",t)}function V0(e,t){hs(e,"rowcount",t)}function Pf(e,t){hs(e,"rowindex",t)}function z0(e,t){hs(e,"rowspan",t)}function W0(e,t){hs(e,"colcount",t)}function Tf(e,t){hs(e,"colindex",t)}function j0(e,t){hs(e,"colspan",t)}function _0(e,t){hs(e,"sort",t)}function U0(e){Rf(e,"sort")}function kf(e,t){us(e,"selected",t)}function $0(e,t){us(e,"controls",t)}function q0(e,t){$0(e,t.id),Yn(t,e.id)}function tp(e,t){us(e,"owns",t)}function vl(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var K0="[tabindex], input, select, button, textarea, [href]",Mf="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function On(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Mf)?!1:Ws(e)}function Qe(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-hidden",!t),i||Df(e,!t)}function Y0(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-invisible",!t),i||Df(e,!t)}function Xn(e,t){const s="disabled",i=t?n=>n.setAttribute(s,""):n=>n.removeAttribute(s);i(e);const o=e.querySelectorAll("input")??[];for(const n of o)i(n)}function Ei(e,t,s){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++i>s)break}else if(e===s)break}return!1}function ji(e){const{height:t,width:s,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:g,marginLeft:f,boxSizing:v}=window.getComputedStyle(e),C=Number.parseFloat;return{height:C(t||"0"),width:C(s||"0"),borderTopWidth:C(i||"0"),borderRightWidth:C(o||"0"),borderBottomWidth:C(n||"0"),borderLeftWidth:C(r||"0"),paddingTop:C(a||"0"),paddingRight:C(l||"0"),paddingBottom:C(c||"0"),paddingLeft:C(d||"0"),marginTop:C(u||"0"),marginRight:C(h||"0"),marginBottom:C(g||"0"),marginLeft:C(f||"0"),boxSizing:v}}function mu(e){const t=ji(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Zn(e){const t=ji(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function If(e){const{height:t,marginBottom:s,marginTop:i}=ji(e);return Math.floor(t+s+i)}function La(e){const{width:t,marginLeft:s,marginRight:i}=ji(e);return Math.floor(t+s+i)}function Af(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:n}=ji(e);return{top:t.top+(s||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(n||0)}}function Oa(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function Na(e,t,s){s&&(t*=-1),e.scrollLeft=t}function Lt(e){for(;e?.firstChild;)e.firstChild.remove()}function ni(e){e?.parentNode&&e.remove()}function Lf(e){return!!e.offsetParent}function Ws(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Lf(e)||window.getComputedStyle(e).visibility!=="visible")}function vu(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ma(e){return()=>{const t=e();return t?Cu(t)||Of(t):!0}}function Cu(e){return e.clientWidth<e.scrollWidth}function Of(e){return e.clientHeight<e.scrollHeight}function Ha(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):xs(e,t)}function xs(e,t){t=wu(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Nn(e,t){t=wu(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function wu(e){return typeof e=="number"?`${e}px`:e}function bu(e){return e instanceof Node||e instanceof HTMLElement}function Vt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function js(e,t,s){const o=Sf(e).ResizeObserver,n=o?new o(s):null;return n?.observe(t),()=>n?.disconnect()}function _s(e,t){const s=Sf(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var Nf="data-ref",hc;function sp(){return hc??(hc=document.createTextNode(" ")),hc.cloneNode()}function ur(e){const{attrs:t,children:s,cls:i,ref:o,role:n,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),o&&a.setAttribute(Nf,o),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(s)if(typeof s=="string")a.textContent=s;else{let l=!0;for(const c of s)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(sp()),l=!1),a.append(ur(c)),a.appendChild(sp())))}return a}var X0=["touchstart","touchend","touchmove","touchcancel","scroll"],Z0=["wheel"],pc={},Hf=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof pc[s]=="boolean")return pc[s];const i=document.createElement(e[s]||"div");return s="on"+s,pc[s]=s in i}})();function Q0(e,t){return!t||!e?!1:ey(t).indexOf(e)>=0}function J0(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function ey(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():J0(t)}function ty(e,t,s){const i=sy(t);let o;i!=null&&(o={passive:i}),e.addEventListener(t,s,o)}var sy=e=>{const t=X0.includes(e),s=Z0.includes(e);if(t)return!0;if(s)return!1};function Gf(e,t,s){if(s===0)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=s}var Hn=(e,t)=>{const s=e.identifier;for(let i=0,o=t.length;i<o;++i){const n=t[i];if(n.identifier===s)return n}return null};function Qn(e,t){return e.gos.isElementInThisInstance(t.target)}function iy(e,t,s){const o=e.getBoundingClientRect().height,n=k0(s)-2,r=M0(s)-2;if(!e.offsetParent)return;const l=Af(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-o/2,h=d-l.left-10;const g=pt(s),f=g.defaultView||window,v=f.pageYOffset||g.documentElement.scrollTop,C=f.pageXOffset||g.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+C&&(h=n+C-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+v&&(u=r+v-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var va=(e,...t)=>{for(const s of t){const[i,o,n,r]=s;i.addEventListener(o,n,r),e.push(s)}},xu=e=>{if(e){for(const[t,s,i,o]of e)t.removeEventListener(s,i,o);e.length=0}},Js=e=>{e.cancelable&&e.preventDefault()};function oy(e,t){return t}function Bf(e){return e?.getLocaleTextFunc()??oy}function ny(e,t,s,i){const o=t[s];return e.getLocaleTextFunc()(s,typeof o=="function"?o(i):o,i)}function ry(e){return(t,s,i)=>e({key:t,defaultValue:s,variableValues:i})}function ay(e){return(t,s,i)=>{let o=e?.[t];if(o&&i?.length){let n=0;for(;!(n>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[n++])}return o??s}}var Es=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,s){this.localEventService||(this.localEventService=new Oi),this.localEventService.addEventListener(e,t,s)}removeEventListener(e,t,s){this.localEventService?.removeEventListener(e,t,s)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const s=[];for(const i of Object.keys(t)){const o=t[i];o&&s.push(this._setupListener(e,i,o))}return s}_setupListener(e,t,s){if(this.destroyed)return()=>null;let i;if(ly(e))e.__addEventListener(t,s),i=()=>(e.__removeEventListener(t,s),null);else{const o=cy(e);e instanceof HTMLElement?ty(e,t,s):o?e.addListener(t,s):e.addEventListener(t,s),i=o?()=>(e.removeListener(t,s),null):()=>(e.removeEventListener(t,s),null)}return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}setupPropertyListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const i=()=>(s.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,i=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=o.changeSet.id}const n={type:"propertyChanged",changeSet:o.changeSet,source:o.source};t(n)};for(const o of e)this.setupPropertyListener(o,i)}getLocaleTextFunc(){return Bf(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function ly(e){return e.__addEventListener!==void 0}function cy(e){return e.eventServiceType==="global"}var O=class extends Es{},ip={};function yu(e,t){ip[t]||(e(),ip[t]=!0)}var dy={pending:!1,funcs:[]},uy={pending:!1,funcs:[]};function xd(e,t="setTimeout",s){const i=t==="raf"?uy:dy;if(i.funcs.push(e),i.pending)return;i.pending=!0;const o=()=>{const n=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const r of n)r()};t==="raf"?_s(s,o):window.setTimeout(o,0)}function ut(e,t,s){let i;return function(...o){const n=this;window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(n,o)},s)}}function op(e,t){let s=0;return function(...i){const o=this,n=Date.now();n-s<t||(s=n,e.apply(o,i))}}function hy(e,t,s,i=100){const o=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-o>i;(t()||c)&&(s(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var Vf=new Set(["__proto__","constructor","prototype"]);function py(e,t){if(e!=null){if(Array.isArray(e)){for(let s=0;s<e.length;s++)t(s.toString(),e[s]);return}for(const s of Object.keys(e).filter(i=>!Vf.has(i)))t(s,e[s])}}function Ft(e,t,s=!0,i=!1){te(t)&&py(t,(o,n)=>{let r=e[o];r!==n&&(i&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[o]=r),np(n)&&np(r)&&!Array.isArray(r)?Ft(r,n,s,i):(s||n!==void 0)&&(e[o]=n))})}function np(e){return typeof e=="object"&&e!==null}var Su=class Is{static applyGlobalGridOptions(t){if(!Is.gridOptions)return{...t};let s={};return Ft(s,Is.gridOptions,!0,!0),Is.mergeStrategy==="deep"?Ft(s,t,!0,!0):s={...s,...t},Is.gridOptions.context&&(s.context=Is.gridOptions.context),t.context&&(Is.mergeStrategy==="deep"&&s.context&&Ft(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(Is.mergeStrategy==="deep"){const i=zf(t);if(i&&typeof i=="object"&&typeof s=="object")return Is.applyGlobalGridOptions({[t]:s})[t]}return s}};Su.gridOptions=void 0;Su.mergeStrategy="shallow";var Ru=Su;function zf(e){return Ru.gridOptions?.[e]}var Wf={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1},jf="https://www.ag-grid.com";function Hi(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function Gn(e,...t){yu(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Do(e,...t){yu(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var _f=new Set,Ga={},Di={},Ca,Uf=!1,$f=!1,gy=!1;function fy(e){const[t,s]=e.version.split(".")||[],[i,o]=Ca.split(".")||[];return t===i&&s===o}function my(e){Ca||(Ca=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;e.version?fy(e)||Do(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Ca}.`)):Do(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&Do(`${s.message}`)}function Jn(e,t,s=!1){s||(Uf=!0),my(e);const i=e.rowModels??["all"];_f.add(e);let o;t!==void 0?($f=!0,Di[t]===void 0&&(Di[t]={}),o=Di[t]):o=Ga;for(const n of i)o[n]===void 0&&(o[n]={}),o[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)Jn(n,t,s)}function vy(e){delete Di[e]}function yd(e,t,s){const i=o=>!!Ga[o]?.[e]||!!Di[t]?.[o]?.[e];return i(s)||i("all")}function Fu(){return $f}function Cy(e,t){const s=Di[e]??{};return[...Object.values(Ga.all??{}),...Object.values(s.all??{}),...Object.values(Ga[t]??{}),...Object.values(s[t]??{})]}function wy(){return new Set(_f)}function by(e,t){const s=Di[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function xy(){return Uf}function yy(){return gy}var qf=class{static register(e){Jn(e,void 0)}static registerModules(e){for(const t of e)Jn(t,void 0)}},ee="34.3.0",rp=2e3,ap=100,Kf="_version_",Yf=null,Po=`${jf}/javascript-data-grid`;function Sy(e){Yf=e}function Ry(e){Po=e}function Xf(e,t,s){return Yf?.(e,t)??[Py(e,t,s)]}function Eu(e,t,s,i,o){e(`${i?"warning":"error"} #${t}`,...Xf(t,s,o))}function Fy(e){if(!e)return String(e);const t={};for(const s of Object.keys(e))typeof e[s]!="object"&&typeof e[s]!="function"&&(t[s]=e[s]);return JSON.stringify(t)}function Ey(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Fy(e)),t}function Ba(e){return e===void 0?"undefined":e===null?"null":e}function Sd(e,t){return`${e}?${t.toString()}`}function Dy(e,t,s){const i=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let o=Sd(e,t);for(const[n,r]of i){if(n===Kf)continue;const a=o.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>ap?r.slice(0,r.length-c)+l:r.slice(0,ap)+l;t.set(n,d),o=Sd(e,t)}return o}function Zf(e,t){const s=new URLSearchParams;if(s.append(Kf,ee),t)for(const n of Object.keys(t))s.append(n,Ey(t[n]));const i=`${Po}/errors/${e}`,o=Sd(i,s);return o.length<=rp?o:Dy(i,s,rp)}var Py=(e,t,s)=>{const i=Zf(e,t);return`${`${s?s+`
|
|
6
|
+
<%s key={someKey} {...props} />`,W,ge,ie,ge),de[ge+W]=!0)}if(ge=null,U!==void 0&&(s(U),ge=""+U),r(B)&&(s(B.key),ge=""+B.key),"key"in B){U={};for(var Z in B)Z!=="key"&&(U[Z]=B[Z])}else U=B;return ge&&a(U,typeof k=="function"?k.displayName||k.name||"Unknown":k),c(k,ge,be,re,o(),U,Q,j)}function u(k){typeof k=="object"&&k!==null&&k.$$typeof===g&&k._store&&(k._store.validated=1)}var h=p,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),T=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,N=Array.isArray,q=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(k){return k()}};var L,V={},H=h.react_stack_bottom_frame.bind(h,n)(),A=q(i(n)),de={};wn.Fragment=v,wn.jsx=function(k,B,U,W,re){var be=1e4>T.recentlyCreatedOwnerStacks++;return d(k,B,U,!1,W,re,be?Error("react-stack-top-frame"):H,be?q(i(k)):A)},wn.jsxs=function(k,B,U,W,re){var be=1e4>T.recentlyCreatedOwnerStacks++;return d(k,B,U,!0,W,re,be?Error("react-stack-top-frame"):H,be?q(i(k)):A)}})()),wn}var Mh;function sb(){return Mh||(Mh=1,process.env.NODE_ENV==="production"?Kr.exports=eb():Kr.exports=tb()),Kr.exports}var m=sb();const su="-",ib=e=>{const t=nb(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:r=>{const a=r.split(su);return a[0]===""&&a.length!==1&&a.shift(),$g(a,t)||ob(r)},getConflictingClassGroupIds:(r,a)=>{const l=s[r]||[];return a&&i[r]?[...l,...i[r]]:l}}},$g=(e,t)=>{if(e.length===0)return t.classGroupId;const s=e[0],i=t.nextPart.get(s),o=i?$g(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const n=e.join(su);return t.validators.find(({validator:r})=>r(n))?.classGroupId},Ih=/^\[(.+)\]$/,ob=e=>{if(Ih.test(e)){const t=Ih.exec(e)[1],s=t?.substring(0,t.indexOf(":"));if(s)return"arbitrary.."+s}},nb=e=>{const{theme:t,classGroups:s}=e,i={nextPart:new Map,validators:[]};for(const o in s)dd(s[o],i,o,t);return i},dd=(e,t,s,i)=>{e.forEach(o=>{if(typeof o=="string"){const n=o===""?t:Ah(t,o);n.classGroupId=s;return}if(typeof o=="function"){if(rb(o)){dd(o(i),t,s,i);return}t.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([n,r])=>{dd(r,Ah(t,n),s,i)})})},Ah=(e,t)=>{let s=e;return t.split(su).forEach(i=>{s.nextPart.has(i)||s.nextPart.set(i,{nextPart:new Map,validators:[]}),s=s.nextPart.get(i)}),s},rb=e=>e.isThemeGetter,ab=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=new Map,i=new Map;const o=(n,r)=>{s.set(n,r),t++,t>e&&(t=0,i=s,s=new Map)};return{get(n){let r=s.get(n);if(r!==void 0)return r;if((r=i.get(n))!==void 0)return o(n,r),r},set(n,r){s.has(n)?s.set(n,r):o(n,r)}}},ud="!",hd=":",lb=hd.length,cb=e=>{const{prefix:t,experimentalParseClassName:s}=e;let i=o=>{const n=[];let r=0,a=0,l=0,c;for(let f=0;f<o.length;f++){let v=o[f];if(r===0&&a===0){if(v===hd){n.push(o.slice(l,f)),l=f+lb;continue}if(v==="/"){c=f;continue}}v==="["?r++:v==="]"?r--:v==="("?a++:v===")"&&a--}const d=n.length===0?o:o.substring(l),u=db(d),h=u!==d,g=c&&c>l?c-l:void 0;return{modifiers:n,hasImportantModifier:h,baseClassName:u,maybePostfixModifierPosition:g}};if(t){const o=t+hd,n=i;i=r=>r.startsWith(o)?n(r.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(s){const o=i;i=n=>s({className:n,parseClassName:o})}return i},db=e=>e.endsWith(ud)?e.substring(0,e.length-1):e.startsWith(ud)?e.substring(1):e,ub=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let n=[];return i.forEach(r=>{r[0]==="["||t[r]?(o.push(...n.sort(),r),n=[]):n.push(r)}),o.push(...n.sort()),o}},hb=e=>({cache:ab(e.cacheSize),parseClassName:cb(e),sortModifiers:ub(e),...ib(e)}),pb=/\s+/,gb=(e,t)=>{const{parseClassName:s,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:n}=t,r=[],a=e.trim().split(pb);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:h,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:v}=s(d);if(u){l=d+(l.length>0?" "+l:l);continue}let C=!!v,w=i(C?f.substring(0,v):f);if(!w){if(!C){l=d+(l.length>0?" "+l:l);continue}if(w=i(f),!w){l=d+(l.length>0?" "+l:l);continue}C=!1}const b=n(h).join(":"),x=g?b+ud:b,y=x+w;if(r.includes(y))continue;r.push(y);const S=o(w,C);for(let E=0;E<S.length;++E){const R=S[E];r.push(x+R)}l=d+(l.length>0?" "+l:l)}return l};function fb(){let e=0,t,s,i="";for(;e<arguments.length;)(t=arguments[e++])&&(s=qg(t))&&(i&&(i+=" "),i+=s);return i}const qg=e=>{if(typeof e=="string")return e;let t,s="";for(let i=0;i<e.length;i++)e[i]&&(t=qg(e[i]))&&(s&&(s+=" "),s+=t);return s};function mb(e,...t){let s,i,o,n=r;function r(l){const c=t.reduce((d,u)=>u(d),e());return s=hb(c),i=s.cache.get,o=s.cache.set,n=a,a(l)}function a(l){const c=i(l);if(c)return c;const d=gb(l,s);return o(l,d),d}return function(){return n(fb.apply(null,arguments))}}const at=e=>{const t=s=>s[e]||[];return t.isThemeGetter=!0,t},Kg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vb=/^\d+\/\d+$/,Cb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wb=/\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$/,bb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ho=e=>vb.test(e),Te=e=>!!e&&!Number.isNaN(Number(e)),Ys=e=>!!e&&Number.isInteger(Number(e)),oc=e=>e.endsWith("%")&&Te(e.slice(0,-1)),ks=e=>Cb.test(e),Sb=()=>!0,Rb=e=>wb.test(e)&&!bb.test(e),Xg=()=>!1,Fb=e=>xb.test(e),Eb=e=>yb.test(e),Db=e=>!me(e)&&!ve(e),Pb=e=>Yo(e,Jg,Xg),me=e=>Kg.test(e),Ci=e=>Yo(e,ef,Rb),nc=e=>Yo(e,Ab,Te),Lh=e=>Yo(e,Zg,Xg),Tb=e=>Yo(e,Qg,Eb),Yr=e=>Yo(e,tf,Fb),ve=e=>Yg.test(e),bn=e=>Xo(e,ef),kb=e=>Xo(e,Lb),Oh=e=>Xo(e,Zg),Mb=e=>Xo(e,Jg),Ib=e=>Xo(e,Qg),Xr=e=>Xo(e,tf,!0),Yo=(e,t,s)=>{const i=Kg.exec(e);return i?i[1]?t(i[1]):s(i[2]):!1},Xo=(e,t,s=!1)=>{const i=Yg.exec(e);return i?i[1]?t(i[1]):s:!1},Zg=e=>e==="position"||e==="percentage",Qg=e=>e==="image"||e==="url",Jg=e=>e==="length"||e==="size"||e==="bg-size",ef=e=>e==="length",Ab=e=>e==="number",Lb=e=>e==="family-name",tf=e=>e==="shadow",Ob=()=>{const e=at("color"),t=at("font"),s=at("text"),i=at("font-weight"),o=at("tracking"),n=at("leading"),r=at("breakpoint"),a=at("container"),l=at("spacing"),c=at("radius"),d=at("shadow"),u=at("inset-shadow"),h=at("text-shadow"),g=at("drop-shadow"),f=at("blur"),v=at("perspective"),C=at("aspect"),w=at("ease"),b=at("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...y(),ve,me],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],F=()=>[ve,me,l],D=()=>[ho,"full","auto",...F()],P=()=>[Ys,"none","subgrid",ve,me],T=()=>["auto",{span:["full",Ys,ve,me]},Ys,ve,me],M=()=>[Ys,"auto",ve,me],N=()=>["auto","min","max","fr",ve,me],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...F()],H=()=>[ho,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],A=()=>[e,ve,me],de=()=>[...y(),Oh,Lh,{position:[ve,me]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",Mb,Pb,{size:[ve,me]}],U=()=>[oc,bn,Ci],W=()=>["","none","full",c,ve,me],re=()=>["",Te,bn,Ci],be=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[Te,oc,Oh,Lh],ge=()=>["","none",f,ve,me],ie=()=>["none",Te,ve,me],Z=()=>["none",Te,ve,me],_=()=>[Te,ve,me],ae=()=>[ho,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ks],breakpoint:[ks],color:[Sb],container:[ks],"drop-shadow":[ks],ease:["in","out","in-out"],font:[Db],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ks],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ks],shadow:[ks],spacing:["px",Te],text:[ks],"text-shadow":[ks],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ho,me,ve,C]}],container:["container"],columns:[{columns:[Te,me,ve,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Ys,"auto",ve,me]}],basis:[{basis:[ho,"full","auto",a,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,ho,"auto","initial","none",me]}],grow:[{grow:["",Te,ve,me]}],shrink:[{shrink:["",Te,ve,me]}],order:[{order:[Ys,"first","last","none",ve,me]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],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":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",s,bn,Ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,nc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oc,me]}],"font-family":[{font:[kb,me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ve,me]}],"line-clamp":[{"line-clamp":[Te,"none",ve,nc]}],leading:[{leading:[n,...F()]}],"list-image":[{"list-image":["none",ve,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ve,Ci]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Te,"auto",ve,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ys,ve,me],radial:["",ve,me],conic:[Ys,ve,me]},Ib,Tb]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ve,me]}],"outline-w":[{outline:["",Te,bn,Ci]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",d,Xr,Yr]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,Xr,Yr]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Te,Ci]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,Xr,Yr]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Te,ve,me]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ve,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,me]}],filter:[{filter:["","none",ve,me]}],blur:[{blur:ge()}],brightness:[{brightness:[Te,ve,me]}],contrast:[{contrast:[Te,ve,me]}],"drop-shadow":[{"drop-shadow":["","none",g,Xr,Yr]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Te,ve,me]}],"hue-rotate":[{"hue-rotate":[Te,ve,me]}],invert:[{invert:["",Te,ve,me]}],saturate:[{saturate:[Te,ve,me]}],sepia:[{sepia:["",Te,ve,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,me]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ve,me]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ve,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ve,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ve,me]}],"backdrop-invert":[{"backdrop-invert":["",Te,ve,me]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ve,me]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ve,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ve,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ve,me]}],ease:[{ease:["linear","initial",w,ve,me]}],delay:[{delay:[Te,ve,me]}],animate:[{animate:["none",b,ve,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ve,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[ve,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",ve,me]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Te,bn,Ci,nc]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nb=mb(Ob);function ne(...e){return Nb(pe(e))}var Ma=(e=>(e.Description="description",e.Error="error",e))(Ma||{});const lr=({text:e,className:t,variant:s=Ma.Description,...i})=>e?m.jsx("span",{...i,role:"alert",className:ne("dial-tiny-text",s===Ma.Error?"text-error":"text-secondary",t),children:e}):null,ls=({...e})=>m.jsx(lr,{...e,variant:Ma.Error});var ze=(e=>(e.Primary="primary",e.Neutral="neutral",e.Error="error",e.Success="Success",e.Secondary="secondary",e.Tertiary="tertiary",e))(ze||{}),ke=(e=>(e.Solid="solid",e.Outlined="outlined",e.Ghost="ghost",e.Link="link",e))(ke||{});const Nh={[ze.Primary]:{[ke.Solid]:"dial-primary-solid-button",[ke.Ghost]:"dial-primary-ghost-button",[ke.Link]:"dial-primary-link-button"},[ze.Neutral]:{[ke.Outlined]:"dial-neutral-outlined-button"},[ze.Error]:{[ke.Solid]:"dial-error-solid-button",[ke.Ghost]:"dial-error-ghost-button"},[ze.Success]:{[ke.Ghost]:"dial-success-ghost-button"},[ze.Secondary]:{[ke.Ghost]:"dial-secondary-ghost-button"},[ze.Tertiary]:{[ke.Ghost]:"dial-tertiary-ghost-button"}},sf=(e=ze.Primary,t=ke.Solid)=>{const s=Nh[e]?.[t];return s||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`),Nh[ze.Primary][ke.Solid])},Hb=7,Gb=2,of=p.createContext(null),nf=()=>{const e=p.useContext(of);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},Bb=({initialOpen:e=!1,placement:t="bottom",isTriggerClickable:s=!1,open:i,onOpenChange:o}={})=>{const[n,r]=p.useState(e),a=p.useRef(null),l=i??n,c=o??r,d=Ie.useFloating({placement:t,open:l,onOpenChange:c,whileElementsMounted:Ie.autoUpdate,middleware:[Ie.offset(Hb+Gb),Ie.flip({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:5}),Ie.shift({padding:5}),Ie.arrow({element:a})]}),u=Ie.useHover(d.context,{move:!1,enabled:i==null,mouseOnly:s,delay:{open:500,close:0}}),h=Ie.useFocus(d.context,{enabled:i==null}),g=Ie.useDismiss(d.context),f=Ie.useRole(d.context,{role:"tooltip"}),v=Ie.useInteractions([u,h,g,f]);return p.useEffect(()=>{if(!l)return;const C=d.refs.reference.current;if(!(C instanceof Element))return;const w=new IntersectionObserver(([b])=>{b.isIntersecting||c(!1)},{root:null,threshold:0});return w.observe(C),()=>w.disconnect()},[l,d.refs.reference,c]),p.useMemo(()=>({open:l,setOpen:c,arrowRef:a,...v,...d}),[l,c,v,d])},iu=({children:e,...t})=>{const s=Bb(t);return m.jsx(of.Provider,{value:s,children:e})},ou=({style:e,...t})=>{const s=nf(),i=p.useRef(null),o=Ie.useMergeRefs([s.refs.setFloating,i]);return s.open?m.jsx(Ie.FloatingPortal,{id:"tooltip-portal",children:m.jsxs("div",{ref:o,style:{...s.floatingStyles,...e},...s.getFloatingProps(t),className:pe("z-[55] whitespace-pre-wrap break-words rounded border border-primary bg-layer-0 px-2 py-1 dial-tiny-text shadow max-w-[300px]",s.getFloatingProps(t).className),children:[t.children,m.jsx(Ie.FloatingArrow,{ref:s.arrowRef,context:s.context,fill:"currentColor",strokeWidth:1,className:"stroke-primary text-[var(--bg-layer-0,_#000000)]"})]})}):null},nu=({children:e,asChild:t=!1,...s})=>{const i=nf(),o=t&&p.isValidElement(e),n=o?e.props?.ref:null,r=Ie.useMergeRefs([i.refs.setReference,...n?[n]:[]]);return o?p.cloneElement(e,i.getReferenceProps({...e.props,...s,ref:r})):m.jsx("span",{ref:r,...i.getReferenceProps(s),className:s.className??"dial-tooltip-trigger text-left",children:e})},At=({hideTooltip:e,tooltip:t,children:s,triggerClassName:i,contentClassName:o,...n})=>m.jsxs(iu,{...n,children:[m.jsx(nu,{className:pe(i,"truncate"),children:s}),m.jsx(ou,{className:pe("text-primary",o,"max-w-[300px]",(e||!t)&&"hidden"),children:t})]});var Rt=(e=>(e.Small="small",e.Standard="standard",e))(Rt||{});const di=({variant:e,appearance:t=ke.Solid,size:s=Rt.Standard,className:i,icon:o,tooltipProps:n,type:r="button",...a})=>{const l=ne(e&&sf(e,t),s===Rt.Small?"h-[24px] w-[24px]":"h-[40px] w-[40px]","dial-icon-button disabled:cursor-not-allowed focus-visible:outline outline-offset-0 disabled:text-controls-secondary-disable",i),c=m.jsx("button",{...a,type:r,className:l,"aria-label":a["aria-label"],children:o});return n?m.jsx(At,{...n,children:c}):c},Vb="w-[24px] h-[24px] border border-solid rounded-[6px] border-transparent flex items-center justify-center text-secondary hover:text-controls-accent-primary-hover active:text-controls-accent-primary-active focus-within:border-focus";var vt=(e=>(e[e.LG=24]="LG",e[e.MD=20]="MD",e[e.SM=16]="SM",e))(vt||{});const Ht=18,J={size:Ht,stroke:2},zb=({caption:e,onClick:t})=>{if(!e)return null;const s=m.jsx(di,{"aria-label":e,className:Vb,icon:m.jsx(z.IconInfoCircle,{size:vt.SM}),onClick:t});return e?m.jsx(At,{tooltip:e,triggerClassName:"flex justify-center items-center",children:s}):s},Wi=({label:e,required:t,className:s,caption:i,...o})=>e?m.jsxs("label",{...o,className:ne("dial-tiny-text text-secondary flex items-center gap-1",s),children:[typeof e=="string"?m.jsx("span",{className:"min-h-4",children:e}):e,t&&m.jsx("span",{className:"text-accent-primary",children:"*"}),m.jsx(zb,{caption:i})]}):null,Ye=({icon:e,className:t})=>e?m.jsx("span",{className:pe("flex-shrink-0",t),children:e}):null,ss=({label:e,variant:t,appearance:s=ke.Solid,size:i=Rt.Standard,className:o,textClassName:n,iconAfter:r,iconBefore:a,hideTitleOnMobile:l,type:c="button",tooltipProps:d,...u})=>{const h=pe(l?"hidden sm:inline":"inline",n),g=ne(t&&sf(t,s),i===Rt.Small?"dial-tiny-semi-text":"dial-small-semi-text",s!==ke.Link&&(i===Rt.Small?"h-[24px] px-2":"h-[40px] px-3"),"disabled:cursor-not-allowed focus-visible:outline outline-offset-0",o),f=m.jsxs("button",{...u,type:c,className:g,"aria-label":typeof e=="string"&&e||u["aria-label"],children:[m.jsx(Ye,{icon:a}),e&&m.jsx("span",{className:h,children:e}),m.jsx(Ye,{icon:r})]});return d?m.jsx(At,{...d,children:f}):f};var as=(e=>(e.Info="info",e.Success="success",e.Warning="warning",e.Error="error",e))(as||{});const Wb=e=>({info:m.jsx(z.IconInfoCircle,{...e}),error:m.jsx(z.IconAlertCircle,{...e}),warning:m.jsx(z.IconAlertTriangle,{...e}),success:m.jsx(z.IconCircleCheck,{...e})}),jb={[as.Info]:"bg-info border-info text-info",[as.Success]:"bg-success border-success text-success",[as.Warning]:"bg-warning border-warning text-warning",[as.Error]:"bg-error border-error text-error"},_b="items-center justify-between gap-2 p-3 border border-solid dial-small-text-150 rounded flex",rf=({variant:e=as.Info,message:t,className:s,iconSize:i=24,iconStroke:o=2,closable:n=!1,onClose:r,children:a,...l})=>{const c=p.useMemo(()=>Wb({size:i,stroke:o})[e],[e,i,o]);return m.jsxs("div",{...l,role:"alert",className:ne(_b,jb[e],s),children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Ye,{icon:c}),m.jsx("div",{className:"text-primary",children:t})]}),a,n&&m.jsx(ss,{className:"ml-2 text-secondary hover:text-primary","aria-label":"Close alert",iconBefore:m.jsx(z.IconX,{size:vt.SM}),onClick:r})]})},Ub="flex items-center justify-center text-secondary",$b="shrink-0 grow-0 basis-auto animate-spin-steps",qb=e=>Se.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M24 39V46.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.4,d:"M9 24H1.5",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.5,d:"M8.0918 8.0918L13.3994 13.3994",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.6,d:"M24 1.5V9",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.7,d:"M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.8,d:"M46.5 24H39",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.9,d:"M34.6055 34.6055L39.9082 39.9082",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),Se.createElement("path",{opacity:.3,d:"M13.3936 34.6055L8.08594 39.9131",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"})),cr=({size:e=18,className:t,iconClassName:s,fullWidth:i=!0,ariaLabel:o="Loading"})=>m.jsx("div",{role:"status",className:pe({[Ub]:!0,"w-full h-full":i,[t||""]:!!t}),children:m.jsx(Ye,{icon:m.jsx(qb,{width:e,height:e,className:pe($b,s),role:"img","aria-label":o})})}),Kb="text-primary",ft=({text:e,className:t,contentClassName:s,hideTooltip:i,id:o,customTooltipContent:n,...r})=>{const a=p.useRef(null),[l,c]=p.useState(!1),[d,u]=p.useState(""),h=p.useRef(null),g=()=>{const w=a.current;if(!w)return;u(w.textContent??"");const b=w.clientWidth,x=w.scrollWidth,y=Math.ceil(w.getBoundingClientRect().width);c(x>b||x>y)},f=p.useCallback(()=>{h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(g)},[]);p.useEffect(()=>{f();const w=()=>f();window.addEventListener("resize",w);let b=null;return"ResizeObserver"in window&&a.current&&(b=new ResizeObserver(()=>f()),b.observe(a.current)),()=>{window.removeEventListener("resize",w),b&&b.disconnect(),h.current&&cancelAnimationFrame(h.current)}},[e,f]);const v=p.useMemo(()=>typeof e=="string"?e:d,[d,e]),C=p.useMemo(()=>i?"":n||(l?v:""),[n,v,i,l]);return m.jsxs(iu,{...r,children:[m.jsx(nu,{asChild:!0,onMouseEnter:f,onFocusCapture:f,children:m.jsx("span",{id:o,className:ne("block truncate flex-1 min-w-0 max-w-full text-left",t),"aria-label":l?v:void 0,onMouseEnter:f,onFocus:f,ref:a,children:e})}),m.jsx(ou,{className:ne(Kb,s,!C&&"hidden"),children:C})]})},pd="checkbox-container",gd=({label:e,id:t,checked:s,indeterminate:i,disabled:o,ariaLabel:n,onChange:r,className:a,...l})=>{const c=p.useCallback(g=>{r?.(g.target.checked,t)},[r,t]),d=pe("flex flex-row items-center cursor-pointer text-accent-primary small-medium min-w-0",`${s||i?"":'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded'}`,o?"pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4":"",a),u=pe("border rounded",o?"bg-layer-4 border-icon-secondary":""),h=()=>i?m.jsx(z.IconMinus,{className:u,...J}):s?m.jsx(z.IconCheck,{className:u,...J}):null;return m.jsxs("label",{...l,className:d,htmlFor:t,"aria-description":l["aria-description"]||pd,children:[h(),e&&(typeof e=="string"?m.jsx(ft,{text:e,className:"ml-2 text-primary"}):e),m.jsx("input",{type:"checkbox",role:"checkbox",name:t,onChange:c,id:t,checked:s,"aria-checked":i?"mixed":s,"aria-disabled":o||void 0,"aria-label":e?void 0:n,className:"invisible w-0 h-0"})]})};var Bt=(e=>(e.VALID="valid",e.ERROR="error",e))(Bt||{});const Yb=(e,t)=>{if(t===e.id)switch(e.status){case Bt.VALID:return"border-accent-secondary text-primary";case Bt.ERROR:return"border-red-900 text-primary";default:return"border-accent-primary text-primary"}switch(e.status){case Bt.VALID:return"border-primary text-primary";case Bt.ERROR:return"border-red-900 text-error";default:return"border-primary text-secondary"}},Xb=(e,t)=>{if(t===e.id)switch(e.status){case Bt.VALID:return"bg-accent-secondary";case Bt.ERROR:return"bg-red-400";default:return"bg-accent-primary"}switch(e.status){case Bt.VALID:return"bg-accent-secondary";case Bt.ERROR:return"bg-red-400";default:return"bg-layer-4"}},Zb=({step:e,index:t,currentStep:s,onChangeStep:i})=>{const o="h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny-text cursor-pointer dial-step",n="w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white",r=()=>s===e.id&&e.status===Bt.ERROR?m.jsx(z.IconExclamationCircle,{stroke:2,size:vt.SM}):s!==e.id&&e.status===Bt.VALID?m.jsx(z.IconCheck,{stroke:2,size:vt.SM}):t+1;return m.jsxs("button",{className:pe(o,Yb(e,s)),onClick:()=>i(e.id),children:[m.jsx("span",{className:pe(n,Xb(e,s)),children:r()}),m.jsx("span",{children:e.name})]})},Qb=({steps:e,currentStep:t,onChangeStep:s})=>{const i=o=>{const n=e.findIndex(a=>a.id===t),r=e.findIndex(a=>a.id===o);(o!==t&&e[n].status===Bt.VALID||r<n)&&s(o)};return m.jsx("div",{id:"steps",className:"flex gap-x-3",children:e.map((o,n)=>m.jsx(Zb,{currentStep:t,onChangeStep:i,step:o,index:n},o.id))})},ru=({name:e,value:t,label:s,description:i,checked:o=!1,inputId:n,className:r,labelClassName:a,disabled:l,onChange:c,descriptionClassName:d,caption:u})=>{const h=`${n}-desc`,g=pe("dial-small-text cursor-pointer py-[1px]",l?"text-secondary":"text-primary",a),f=pe("cursor-pointer dial-input-radio",!!s&&"mr-2",r),v=pe("flex flex-col",!!i&&"mb-2"),C=pe("dial-tiny-text mt-2 ml-[26px] text-secondary",d),w=b=>{l||b.target.checked&&c?.(t)};return m.jsxs("div",{className:v,children:[m.jsxs("div",{className:"flex flex-row",children:[m.jsx("input",{type:"radio",id:n,name:e,value:t,checked:o,disabled:l,"aria-describedby":o&&i?h:void 0,className:f,onChange:w}),(s||u)&&m.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[s&&m.jsx("label",{className:g,htmlFor:n,"aria-describedby":u?"caption":"",children:s}),u&&m.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:u})]})]}),o&&i&&m.jsx("div",{id:h,className:C,children:i})]})};var Un=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Un||{});const Jb="w-full flex gap-2",e1={[Un.Vertical]:"flex-col",[Un.Horizontal]:"flex-row items-end"},au=({id:e,label:t,required:s,description:i,error:o,orientation:n=Un.Vertical,labelVisuallyHidden:r=!1,className:a,labelClassName:l,errorClassName:c,childrenClassName:d,captionDescription:u,readonly:h,value:g,defaultEmptyText:f,children:v})=>{const C=`${e}-label`,w=i?`${e}-desc`:void 0,b=o?`${e}-err`:void 0,x=`${e}-caption-desc`,y=[w,b].filter(Boolean).join(" ")||void 0,S=p.useCallback(()=>typeof o=="boolean"?null:typeof o=="string"||typeof o>"u"?o?m.jsx("div",{id:b,"aria-live":"polite",className:c,children:m.jsx(ls,{text:o})}):null:m.jsx("div",{id:b,role:"alert","aria-live":"polite",className:c,children:o}),[o,c,b]),E=p.useCallback(()=>g?typeof g=="string"||typeof g=="number"?m.jsx("span",{"aria-readonly":"true",children:g}):g:m.jsx("span",{className:"flex min-h-4","aria-readonly":"true",children:f??"None"}),[g,f]);return m.jsxs("div",{role:"group","aria-labelledby":t?C:void 0,"aria-describedby":y,className:ne(Jb,e1[n],a),children:[t&&m.jsx("div",{id:C,className:ne(n==="horizontal"&&"shrink-0"),children:m.jsx(Wi,{htmlFor:e,label:t,required:s,className:ne(r&&"sr-only",l),caption:i})}),m.jsxs("div",{className:ne("min-w-0 w-full",d),children:[h?m.jsx("div",{className:"dial-input px-3 py-2",children:E()}):v,u&&m.jsx("div",{id:x,className:ne({"dial-tiny-text text-secondary mt-1":!0,"text-error":!!o}),children:u}),S()]})]})};var Ai=(e=>(e.Row="Row",e.Column="Column",e))(Ai||{});const t1="flex",s1="pb-1 mt-2",i1={[Ai.Column]:"flex-col gap-y-3",[Ai.Row]:"flex-row gap-x-6"},Ia=({fieldTitle:e,radioClassName:t,containerClassName:s,selectedItemClassName:i,selectedLabelClassName:o,radioGroupClassName:n,inputContainerClassName:r,selectedInputContainerClassName:a,groupLabelClassName:l,formItemChildrenClassName:c,labelClassName:d,disabled:u,elementId:h,radioButtons:g,activeRadioButton:f,orientation:v,onChange:C})=>m.jsx(au,{id:h,label:e,labelClassName:l||d,className:s,childrenClassName:c,children:m.jsx("div",{role:"radiogroup","aria-label":e,"aria-disabled":u||void 0,className:ne(t1,i1[v],n),children:g.map(w=>m.jsxs("div",{className:ne("flex flex-col",r,w.id===f&&a),children:[m.jsx(ru,{name:h,value:w.id,inputId:w.id,disabled:u,className:t,labelClassName:ne(d,w.id===f&&o),label:w.name,caption:w.caption,checked:w.id===f,onChange:()=>C(w.id)}),w.id===f&&w.content?m.jsx("div",{className:ne(s1,i),children:w.content}):null]},w.id))})}),dr=({icon:e,title:t,description:s,containerClassName:i,titleClassName:o,descriptionClassName:n})=>m.jsxs("div",{className:ne("h-full w-full flex flex-col items-center justify-center text-secondary",i),"aria-label":"no-data-container",children:[e||m.jsx(z.IconClipboardX,{width:60,height:60,stroke:.5}),m.jsx("span",{className:ne("dial-small-text mt-2 text-primary",o),"aria-label":"no-results-title",children:t}),s&&m.jsx("span",{className:ne("mt-1 text-primary",n),"aria-label":"no-results-description",children:s})]}),rc=48,af=({containerClassName:e,children:t,width:s=280,title:i,iconSize:o=24,iconStroke:n=1.5,titleClassName:r,additionalButtons:a,isOpened:l,onToggle:c})=>{const[d,u]=p.useState(s),[h,g]=p.useState(!0),f=p.useMemo(()=>typeof l=="boolean",[l]),v=f?l:h;p.useEffect(()=>{f&&u(l?s:rc)},[f,l,s]);const C=ne(["transform rotate-180 [writing-mode:tb-rl] py-4 px-3",v&&"hidden",r]),w=ne(["flex flex-row gap-2 cursor-pointer text-secondary py-2 items-center",v?"justify-end px-4":"justify-center"]),b=x=>{const y=!v;if(f){u(y?s:rc),c?.(y,x);return}u(y?s:rc),g(y)};return m.jsxs("div",{className:ne(["rounded flex flex-col justify-between",e]),style:{width:`${d}px`},"aria-label":"collapsible-sidebar",children:[m.jsx("div",{className:ne(["flex-1 p-4 min-h-0 overflow-auto",!v&&"hidden"]),children:t}),m.jsx("div",{className:C,children:i}),m.jsxs("div",{className:ne("border-t border-tertiary h-12",w),children:[v&&a,m.jsx(di,{className:"hover:text-accent-primary",onClick:b,"aria-label":"sidebar-state",size:Rt.Small,icon:v?m.jsx(z.IconChevronsLeft,{size:o,stroke:n}):m.jsx(z.IconChevronsRight,{size:o,stroke:n})})]})]})},o1=({label:e,text:t,tooltip:s,children:i,postfix:o,className:n})=>m.jsxs("div",{className:ne("flex flex-col",i?"":"max-w-[200px]",n),children:[e&&m.jsx("label",{className:"dial-tiny-text mb-2 text-secondary",children:e}),i||m.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[m.jsx(At,{triggerClassName:"text-primary flex-1 min-w-0",tooltip:s||t,children:t}),o||null]})]});var cl=(e=>(e.Default="default",e))(cl||{});const n1={[cl.Default]:"border-icon-secondary bg-layer-3"},yo=({tag:e,className:t,remove:s,variant:i=cl.Default,iconBefore:o,bordered:n=!0})=>{const r=n1[i],a=ne("flex items-center gap-1 dial-tiny-text rounded p-1 h-[22px] text-primary",r,n?"border":"border-transparent",t);return m.jsxs("div",{className:a,children:[m.jsx(Ye,{icon:o}),m.jsx(ft,{text:e}),s&&m.jsx(ss,{className:"p-0",iconAfter:m.jsx(z.IconX,{size:vt.SM}),onClick:l=>s(l)})]},e)},lf=p.createContext({dragDropManager:void 0});function qt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Hh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Gh=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bh={INIT:"@@redux/INIT"+Gh(),REPLACE:"@@redux/REPLACE"+Gh()};function r1(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a1(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(d1(e))return"date";if(c1(e))return"error";var s=l1(e);switch(s){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return s}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function l1(e){return typeof e.constructor=="function"?e.constructor.name:null}function c1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function d1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function po(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=a1(e)),t}function cf(e,t,s){var i;if(typeof t=="function"&&typeof s=="function"||typeof s=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?qt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof s>"u"&&(s=t,t=void 0),typeof s<"u"){if(typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?qt(1):"Expected the enhancer to be a function. Instead, received: '"+po(s)+"'");return s(cf)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?qt(2):"Expected the root reducer to be a function. Instead, received: '"+po(e)+"'");var o=e,n=t,r=[],a=r,l=!1;function c(){a===r&&(a=r.slice())}function d(){if(l)throw new Error(process.env.NODE_ENV==="production"?qt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return n}function u(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?qt(4):"Expected the listener to be a function. Instead, received: '"+po(v)+"'");if(l)throw new Error(process.env.NODE_ENV==="production"?qt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var C=!0;return c(),a.push(v),function(){if(C){if(l)throw new Error(process.env.NODE_ENV==="production"?qt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");C=!1,c();var b=a.indexOf(v);a.splice(b,1),r=null}}}function h(v){if(!r1(v))throw new Error(process.env.NODE_ENV==="production"?qt(7):"Actions must be plain objects. Instead, the actual type was: '"+po(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?qt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(l)throw new Error(process.env.NODE_ENV==="production"?qt(9):"Reducers may not dispatch actions.");try{l=!0,n=o(n,v)}finally{l=!1}for(var C=r=a,w=0;w<C.length;w++){var b=C[w];b()}return v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?qt(10):"Expected the nextReducer to be a function. Instead, received: '"+po(v));o=v,h({type:Bh.REPLACE})}function f(){var v,C=u;return v={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?qt(11):"Expected the observer to be an object. Instead, received: '"+po(b)+"'");function x(){b.next&&b.next(d())}x();var y=C(x);return{unsubscribe:y}}},v[Hh]=function(){return this},v}return h({type:Bh.INIT}),i={dispatch:h,subscribe:u,getState:d,replaceReducer:g},i[Hh]=f,i}function Pe(e,t,...s){if(u1()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let i;if(t===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;i=new Error(t.replace(/%s/g,function(){return s[o++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function u1(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function h1(e,t,s){return t.split(".").reduce((i,o)=>i&&i[o]?i[o]:s||null,e)}function p1(e,t){return e.filter(s=>s!==t)}function df(e){return typeof e=="object"}function g1(e,t){const s=new Map,i=n=>{s.set(n,s.has(n)?s.get(n)+1:1)};e.forEach(i),t.forEach(i);const o=[];return s.forEach((n,r)=>{n===1&&o.push(r)}),o}function f1(e,t){return e.filter(s=>t.indexOf(s)>-1)}const lu="dnd-core/INIT_COORDS",dl="dnd-core/BEGIN_DRAG",cu="dnd-core/PUBLISH_DRAG_SOURCE",ul="dnd-core/HOVER",hl="dnd-core/DROP",pl="dnd-core/END_DRAG";function Vh(e,t){return{type:lu,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const m1={type:lu,payload:{clientOffset:null,sourceClientOffset:null}};function v1(e){return function(s=[],i={publishSource:!0}){const{publishSource:o=!0,clientOffset:n,getSourceClientOffset:r}=i,a=e.getMonitor(),l=e.getRegistry();e.dispatch(Vh(n)),C1(s,a,l);const c=x1(s,a);if(c==null){e.dispatch(m1);return}let d=null;if(n){if(!r)throw new Error("getSourceClientOffset must be defined");w1(r),d=r(c)}e.dispatch(Vh(n,d));const h=l.getSource(c).beginDrag(a,c);if(h==null)return;b1(h),l.pinSource(c);const g=l.getSourceType(c);return{type:dl,payload:{itemType:g,item:h,sourceId:c,clientOffset:n||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}}function C1(e,t,s){Pe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(i){Pe(s.getSource(i),"Expected sourceIds to be registered.")})}function w1(e){Pe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function b1(e){Pe(df(e),"Item must be an object.")}function x1(e,t){let s=null;for(let i=e.length-1;i>=0;i--)if(t.canDragSource(e[i])){s=e[i];break}return s}function y1(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function S1(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){y1(e,o,s[o])})}return e}function R1(e){return function(s={}){const i=e.getMonitor(),o=e.getRegistry();F1(i),P1(i).forEach((r,a)=>{const l=E1(r,a,o,i),c={type:hl,payload:{dropResult:S1({},s,l)}};e.dispatch(c)})}}function F1(e){Pe(e.isDragging(),"Cannot call drop while not dragging."),Pe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function E1(e,t,s,i){const o=s.getTarget(e);let n=o?o.drop(i,e):void 0;return D1(n),typeof n>"u"&&(n=t===0?{}:i.getDropResult()),n}function D1(e){Pe(typeof e>"u"||df(e),"Drop result must either be an object or undefined.")}function P1(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function T1(e){return function(){const s=e.getMonitor(),i=e.getRegistry();k1(s);const o=s.getSourceId();return o!=null&&(i.getSource(o,!0).endDrag(s,o),i.unpinSource()),{type:pl}}}function k1(e){Pe(e.isDragging(),"Cannot call endDrag while not dragging.")}function fd(e,t){return t===null?e===null:Array.isArray(e)?e.some(s=>s===t):e===t}function M1(e){return function(s,{clientOffset:i}={}){I1(s);const o=s.slice(0),n=e.getMonitor(),r=e.getRegistry(),a=n.getItemType();return L1(o,r,a),A1(o,n,r),O1(o,n,r),{type:ul,payload:{targetIds:o,clientOffset:i||null}}}}function I1(e){Pe(Array.isArray(e),"Expected targetIds to be an array.")}function A1(e,t,s){Pe(t.isDragging(),"Cannot call hover while not dragging."),Pe(!t.didDrop(),"Cannot call hover after drop.");for(let i=0;i<e.length;i++){const o=e[i];Pe(e.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");const n=s.getTarget(o);Pe(n,"Expected targetIds to be registered.")}}function L1(e,t,s){for(let i=e.length-1;i>=0;i--){const o=e[i],n=t.getTargetType(o);fd(n,s)||e.splice(i,1)}}function O1(e,t,s){e.forEach(function(i){s.getTarget(i).hover(t,i)})}function N1(e){return function(){if(e.getMonitor().isDragging())return{type:cu}}}function H1(e){return{beginDrag:v1(e),publishDragSource:N1(e),hover:M1(e),drop:R1(e),endDrag:T1(e)}}class G1{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:s}=this.store;function i(n){return(...r)=>{const a=n.apply(t,r);typeof a<"u"&&s(a)}}const o=H1(this);return Object.keys(o).reduce((n,r)=>{const a=o[r];return n[r]=i(a),n},{})}dispatch(t){this.store.dispatch(t)}constructor(t,s){this.isSetUp=!1,this.handleRefCountChange=()=>{const i=this.store.getState().refCount>0;this.backend&&(i&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!i&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=s,t.subscribe(this.handleRefCountChange)}}function B1(e,t){return{x:e.x+t.x,y:e.y+t.y}}function uf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function V1(e){const{clientOffset:t,initialClientOffset:s,initialSourceClientOffset:i}=e;return!t||!s||!i?null:uf(B1(t,i),s)}function z1(e){const{clientOffset:t,initialClientOffset:s}=e;return!t||!s?null:uf(t,s)}const In=[],du=[];In.__IS_NONE__=!0;du.__IS_ALL__=!0;function W1(e,t){return e===In?!1:e===du||typeof t>"u"?!0:f1(t,e).length>0}class j1{subscribeToStateChange(t,s={}){const{handlerIds:i}=s;Pe(typeof t=="function","listener must be a function."),Pe(typeof i>"u"||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const n=()=>{const r=this.store.getState(),a=r.stateId;try{a===o||a===o+1&&!W1(r.dirtyHandlerIds,i)||t()}finally{o=a}};return this.store.subscribe(n)}subscribeToOffsetChange(t){Pe(typeof t=="function","listener must be a function.");let s=this.store.getState().dragOffset;const i=()=>{const o=this.store.getState().dragOffset;o!==s&&(s=o,t())};return this.store.subscribe(i)}canDragSource(t){if(!t)return!1;const s=this.registry.getSource(t);return Pe(s,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:s.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const s=this.registry.getTarget(t);if(Pe(s,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();return fd(i,o)&&s.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const s=this.registry.getSource(t,!0);if(Pe(s,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const i=this.registry.getSourceType(t),o=this.getItemType();return i!==o?!1:s.isDragging(this,t)}isOverTarget(t,s={shallow:!1}){if(!t)return!1;const{shallow:i}=s;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),n=this.getItemType();if(n&&!fd(o,n))return!1;const r=this.getTargetIds();if(!r.length)return!1;const a=r.indexOf(t);return i?a===r.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return V1(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return z1(this.store.getState().dragOffset)}constructor(t,s){this.store=t,this.registry=s}}const zh=typeof global<"u"?global:self,hf=zh.MutationObserver||zh.WebKitMutationObserver;function pf(e){return function(){const s=setTimeout(o,0),i=setInterval(o,50);function o(){clearTimeout(s),clearInterval(i),e()}}}function _1(e){let t=1;const s=new hf(e),i=document.createTextNode("");return s.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}const U1=typeof hf=="function"?_1:pf;class $1{enqueueTask(t){const{queue:s,requestFlush:i}=this;s.length||(i(),this.flushing=!0),s[s.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const s=this.index;if(this.index++,t[s].call(),this.index>this.capacity){for(let i=0,o=t.length-this.index;i<o;i++)t[i]=t[i+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=U1(this.flush),this.requestErrorThrow=pf(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class q1{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,s){this.onError=t,this.release=s,this.task=null}}class K1{create(t){const s=this.freeTasks,i=s.length?s.pop():new q1(this.onError,o=>s[s.length]=o);return i.task=t,i}constructor(t){this.onError=t,this.freeTasks=[]}}const gf=new $1,Y1=new K1(gf.registerPendingError);function X1(e){gf.enqueueTask(Y1.create(e))}const uu="dnd-core/ADD_SOURCE",hu="dnd-core/ADD_TARGET",pu="dnd-core/REMOVE_SOURCE",gl="dnd-core/REMOVE_TARGET";function Z1(e){return{type:uu,payload:{sourceId:e}}}function Q1(e){return{type:hu,payload:{targetId:e}}}function J1(e){return{type:pu,payload:{sourceId:e}}}function ex(e){return{type:gl,payload:{targetId:e}}}function tx(e){Pe(typeof e.canDrag=="function","Expected canDrag to be a function."),Pe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Pe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function sx(e){Pe(typeof e.canDrop=="function","Expected canDrop to be a function."),Pe(typeof e.hover=="function","Expected hover to be a function."),Pe(typeof e.drop=="function","Expected beginDrag to be a function.")}function md(e,t){if(t&&Array.isArray(e)){e.forEach(s=>md(s,!1));return}Pe(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Xt;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Xt||(Xt={}));let ix=0;function ox(){return ix++}function nx(e){const t=ox().toString();switch(e){case Xt.SOURCE:return`S${t}`;case Xt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Wh(e){switch(e[0]){case"S":return Xt.SOURCE;case"T":return Xt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function jh(e,t){const s=e.entries();let i=!1;do{const{done:o,value:[,n]}=s.next();if(n===t)return!0;i=!!o}while(!i);return!1}class rx{addSource(t,s){md(t),tx(s);const i=this.addHandler(Xt.SOURCE,t,s);return this.store.dispatch(Z1(i)),i}addTarget(t,s){md(t,!0),sx(s);const i=this.addHandler(Xt.TARGET,t,s);return this.store.dispatch(Q1(i)),i}containsHandler(t){return jh(this.dragSources,t)||jh(this.dropTargets,t)}getSource(t,s=!1){return Pe(this.isSourceId(t),"Expected a valid source ID."),s&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Pe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Pe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Pe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Wh(t)===Xt.SOURCE}isTargetId(t){return Wh(t)===Xt.TARGET}removeSource(t){Pe(this.getSource(t),"Expected an existing source."),this.store.dispatch(J1(t)),X1(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Pe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(ex(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const s=this.getSource(t);Pe(s,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=s}unpinSource(){Pe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,s,i){const o=nx(t);return this.types.set(o,s),t===Xt.SOURCE?this.dragSources.set(o,i):t===Xt.TARGET&&this.dropTargets.set(o,i),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const ax=(e,t)=>e===t;function lx(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function cx(e,t,s=ax){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!s(e[i],t[i]))return!1;return!0}function dx(e=In,t){switch(t.type){case ul:break;case uu:case hu:case gl:case pu:return In;case dl:case cu:case pl:case hl:default:return du}const{targetIds:s=[],prevTargetIds:i=[]}=t.payload,o=g1(s,i);if(!(o.length>0||!cx(s,i)))return In;const r=i[i.length-1],a=s[s.length-1];return r!==a&&(r&&o.push(r),a&&o.push(a)),o}function ux(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function hx(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){ux(e,o,s[o])})}return e}const _h={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function px(e=_h,t){const{payload:s}=t;switch(t.type){case lu:case dl:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case ul:return lx(e.clientOffset,s.clientOffset)?e:hx({},e,{clientOffset:s.clientOffset});case pl:case hl:return _h;default:return e}}function gx(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function go(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){gx(e,o,s[o])})}return e}const fx={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function mx(e=fx,t){const{payload:s}=t;switch(t.type){case dl:return go({},e,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case cu:return go({},e,{isSourcePublic:!0});case ul:return go({},e,{targetIds:s.targetIds});case gl:return e.targetIds.indexOf(s.targetId)===-1?e:go({},e,{targetIds:p1(e.targetIds,s.targetId)});case hl:return go({},e,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case pl:return go({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function vx(e=0,t){switch(t.type){case uu:case hu:return e+1;case pu:case gl:return e-1;default:return e}}function Cx(e=0){return e+1}function wx(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function bx(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){wx(e,o,s[o])})}return e}function xx(e={},t){return{dirtyHandlerIds:dx(e.dirtyHandlerIds,{type:t.type,payload:bx({},t.payload,{prevTargetIds:h1(e,"dragOperation.targetIds",[])})}),dragOffset:px(e.dragOffset,t),refCount:vx(e.refCount,t),dragOperation:mx(e.dragOperation,t),stateId:Cx(e.stateId)}}function yx(e,t=void 0,s={},i=!1){const o=Sx(i),n=new j1(o,new rx(o)),r=new G1(o,n),a=e(r,t,s);return r.receiveBackend(a),r}function Sx(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return cf(xx,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Rx(e,t){if(e==null)return{};var s=Fx(e,t),i,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function Fx(e,t){if(e==null)return{};var s={},i=Object.keys(e),o,n;for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&(s[o]=e[o]);return s}let Uh=0;const fa=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Ex=p.memo(function(t){var{children:s}=t,i=Rx(t,["children"]);const[o,n]=Dx(i);return p.useEffect(()=>{if(n){const r=ff();return++Uh,()=>{--Uh===0&&(r[fa]=null)}}},[]),m.jsx(lf.Provider,{value:o,children:s})});function Dx(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Px(e.backend,e.context,e.options,e.debugMode),s=!e.context;return[t,s]}function Px(e,t=ff(),s,i){const o=t;return o[fa]||(o[fa]={dragDropManager:yx(e,t,s,i)}),o[fa]}function ff(){return typeof global<"u"?global:window}var ac,$h;function Tx(){return $h||($h=1,ac=function e(t,s){if(t===s)return!0;if(t&&s&&typeof t=="object"&&typeof s=="object"){if(t.constructor!==s.constructor)return!1;var i,o,n;if(Array.isArray(t)){if(i=t.length,i!=s.length)return!1;for(o=i;o--!==0;)if(!e(t[o],s[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if(n=Object.keys(t),i=n.length,i!==Object.keys(s).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(s,n[o]))return!1;for(o=i;o--!==0;){var r=n[o];if(!e(t[r],s[r]))return!1}return!0}return t!==t&&s!==s}),ac}var kx=Tx();const Mx=Qw(kx),Li=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Ix(e,t,s){const[i,o]=p.useState(()=>t(e)),n=p.useCallback(()=>{const r=t(e);Mx(i,r)||(o(r),s&&s())},[i,e,s]);return Li(n),[i,n]}function Ax(e,t,s){const[i,o]=Ix(e,t,s);return Li(function(){const r=e.getHandlerId();if(r!=null)return e.subscribeToStateChange(o,{handlerIds:[r]})},[e,o]),i}function mf(e,t,s){return Ax(t,e||(()=>({})),()=>s.reconnect())}function vf(e,t){const s=[...t||[]];return t==null&&typeof e!="function"&&s.push(e),p.useMemo(()=>typeof e=="function"?e():e,s)}function Lx(e){return p.useMemo(()=>e.hooks.dragSource(),[e])}function Ox(e){return p.useMemo(()=>e.hooks.dragPreview(),[e])}let lc=!1,cc=!1;class Nx{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Pe(!lc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return lc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{lc=!1}}isDragging(){if(!this.sourceId)return!1;Pe(!cc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return cc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{cc=!1}}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,s){return this.internalMonitor.isOverTarget(t,s)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let dc=!1;class Hx{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,s){return this.internalMonitor.subscribeToStateChange(t,s)}canDrop(){if(!this.targetId)return!1;Pe(!dc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return dc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{dc=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function Gx(e,t,s){const i=s.getRegistry(),o=i.addTarget(e,t);return[o,()=>i.removeTarget(o)]}function Bx(e,t,s){const i=s.getRegistry(),o=i.addSource(e,t);return[o,()=>i.removeSource(o)]}function vd(e,t,s,i){let o;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<n.length;l++){const c=n[l];if(!a(c))return!1;const d=e[c],u=t[c];if(o=void 0,o===!1||o===void 0&&d!==u)return!1}return!0}function Cd(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Vx(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function zx(e){return(t=null,s=null)=>{if(!p.isValidElement(t)){const n=t;return e(n,s),n}const i=t;return Vx(i),Wx(i,s?n=>e(n,s):e)}}function Cf(e){const t={};return Object.keys(e).forEach(s=>{const i=e[s];if(s.endsWith("Ref"))t[s]=e[s];else{const o=zx(i);t[s]=()=>o}}),t}function qh(e,t){typeof e=="function"?e(t):e.current=t}function Wx(e,t){const s=e.ref;return Pe(typeof s!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),s?p.cloneElement(e,{ref:i=>{qh(s,i),qh(t,i)}}):p.cloneElement(e,{ref:t})}class jx{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,s=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return s&&this.disconnectDragSource(),this.handlerId?t?(s&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),s):(this.lastConnectedDragSource=t,s):s}reconnectDragPreview(t=!1){const s=this.dragPreview,i=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!s){this.lastConnectedDragPreview=s;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=s,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,s,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!vd(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!vd(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Cf({dragSource:(s,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,Cd(s)?this.dragSourceRef=s:this.dragSourceNode=s,this.reconnectDragSource()},dragPreview:(s,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,Cd(s)?this.dragPreviewRef=s:this.dragPreviewNode=s,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class _x{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const s=this.dropTarget;if(this.handlerId){if(!s){this.lastConnectedDropTarget=s;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=s,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,s,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!vd(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Cf({dropTarget:(s,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,Cd(s)?this.dropTargetRef=s:this.dropTargetNode=s,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Zo(){const{dragDropManager:e}=p.useContext(lf);return Pe(e!=null,"Expected drag drop context"),e}function Ux(e,t){const s=Zo(),i=p.useMemo(()=>new jx(s.getBackend()),[s]);return Li(()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource()),[i,e]),Li(()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,t]),i}function $x(){const e=Zo();return p.useMemo(()=>new Nx(e),[e])}class qx{beginDrag(){const t=this.spec,s=this.monitor;let i=null;return typeof t.item=="object"?i=t.item:typeof t.item=="function"?i=t.item(s):i={},i??null}canDrag(){const t=this.spec,s=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(s):!0}isDragging(t,s){const i=this.spec,o=this.monitor,{isDragging:n}=i;return n?n(o):s===t.getSourceId()}endDrag(){const t=this.spec,s=this.monitor,i=this.connector,{end:o}=t;o&&o(s.getItem(),s),i.reconnect()}constructor(t,s,i){this.spec=t,this.monitor=s,this.connector=i}}function Kx(e,t,s){const i=p.useMemo(()=>new qx(e,t,s),[t,s]);return p.useEffect(()=>{i.spec=e},[e]),i}function Yx(e){return p.useMemo(()=>{const t=e.type;return Pe(t!=null,"spec.type must be defined"),t},[e])}function Xx(e,t,s){const i=Zo(),o=Kx(e,t,s),n=Yx(e);Li(function(){if(n!=null){const[a,l]=Bx(n,o,i);return t.receiveHandlerId(a),s.receiveHandlerId(a),l}},[i,t,s,o,n])}function Zx(e,t){const s=vf(e,t);Pe(!s.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=$x(),o=Ux(s.options,s.previewOptions);return Xx(s,i,o),[mf(s.collect,i,o),Lx(o),Ox(o)]}function Qx(e){return p.useMemo(()=>e.hooks.dropTarget(),[e])}function Jx(e){const t=Zo(),s=p.useMemo(()=>new _x(t.getBackend()),[t]);return Li(()=>(s.dropTargetOptions=e||null,s.reconnect(),()=>s.disconnectDropTarget()),[e]),s}function e0(){const e=Zo();return p.useMemo(()=>new Hx(e),[e])}function t0(e){const{accept:t}=e;return p.useMemo(()=>(Pe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class s0{canDrop(){const t=this.spec,s=this.monitor;return t.canDrop?t.canDrop(s.getItem(),s):!0}hover(){const t=this.spec,s=this.monitor;t.hover&&t.hover(s.getItem(),s)}drop(){const t=this.spec,s=this.monitor;if(t.drop)return t.drop(s.getItem(),s)}constructor(t,s){this.spec=t,this.monitor=s}}function i0(e,t){const s=p.useMemo(()=>new s0(e,t),[t]);return p.useEffect(()=>{s.spec=e},[e]),s}function o0(e,t,s){const i=Zo(),o=i0(e,t),n=t0(e);Li(function(){const[a,l]=Gx(n,o,i);return t.receiveHandlerId(a),s.receiveHandlerId(a),l},[i,t,o,s,n.map(r=>r.toString()).join("|")])}function wf(e,t){const s=vf(e,t),i=e0(),o=Jx(s.options);return o0(s,i,o),[mf(s.collect,i,o),Qx(o)]}const Kh="column",n0="flex items-center",r0="mr-3 cursor-move text-secondary",a0=({id:e,children:t,className:s,onFind:i,onMove:o,ariaLabel:n="Drag item"})=>{const r=p.useRef(null),a=p.useRef(null),l=typeof i=="function"?i(e):-1,[{isDragging:c},d,u]=Zx(()=>({type:Kh,item:{id:e,originalIndex:l},collect:g=>{const f=g.getItem();return{isDragging:g.isDragging()&&f?.id===e}},end:(g,f)=>{if(!g)return;!f.didDrop()&&typeof o=="function"&&g.originalIndex>-1&&o(g.id,g.originalIndex)}}),[e,l,o]),[,h]=wf(()=>({accept:Kh,hover:g=>{if(!(!g||g.id===e)&&typeof i=="function"&&typeof o=="function"){const f=i(e);o(g.id,f)}}}),[i,o,e]);return u(h(a)),d(r),m.jsxs("div",{ref:a,className:ne(n0,s),style:{opacity:c?0:1},"aria-roledescription":"Draggable item",children:[m.jsx("div",{ref:r,className:r0,"aria-label":n,children:m.jsx(z.IconGripVertical,{...J})}),t]})},l0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M3.68628 10.3945C3.91003 10.408 4.10927 10.4422 4.2832 10.4978L4.28394 10.4971C4.5167 10.5698 4.71621 10.6662 4.87939 10.7871C4.9994 10.876 5.10332 10.974 5.18994 11.0815L5.27051 11.1929L5.27197 11.1943L5.34009 11.3079C5.38301 11.3838 5.42067 11.4597 5.45288 11.5356L5.49683 11.6492L5.49756 11.6514L5.53198 11.7649C5.56274 11.877 5.5838 11.9867 5.59497 12.0938C5.61194 12.23 5.62059 12.3501 5.62061 12.4534C5.62061 12.6166 5.57231 12.7639 5.47559 12.8906C5.41544 12.9694 5.325 13.0198 5.21997 13.0503C5.11455 13.0809 4.98537 13.0942 4.83691 13.0942C4.73711 13.0942 4.62608 13.0838 4.50439 13.0635C4.37577 13.0415 4.26002 12.9966 4.16089 12.9272L4.15869 12.9258C4.04118 12.8396 3.98657 12.7121 3.98657 12.5625C3.98655 12.2721 3.94576 12.0552 3.87231 11.9033L3.87158 11.9011C3.81572 11.7798 3.69406 11.7026 3.45337 11.7026C3.33114 11.7027 3.25307 11.7292 3.20435 11.7671C3.14221 11.8149 3.10061 11.864 3.07617 11.9128C3.04149 11.985 3.02355 12.0599 3.02124 12.1384V14.7905L3.02637 14.8652C3.03466 14.9384 3.05266 15.0073 3.07983 15.0725L3.10254 15.1201C3.12874 15.1672 3.16488 15.2124 3.21167 15.2556C3.2602 15.2978 3.33572 15.3259 3.45337 15.3259C3.56813 15.3259 3.65533 15.3041 3.71997 15.2673C3.78314 15.2313 3.83208 15.1772 3.86646 15.0996C3.94535 14.9186 3.98655 14.7002 3.98657 14.4412C3.98657 14.3004 4.04381 14.1839 4.1499 14.0991L4.19824 14.0647C4.33673 13.9762 4.55866 13.9431 4.83691 13.9431C5.09384 13.9431 5.30559 13.9858 5.43604 14.1013C5.55182 14.204 5.62061 14.3293 5.62061 14.4749C5.62057 14.7549 5.57953 15.0125 5.49536 15.2461L5.45654 15.3442C5.36294 15.5677 5.23261 15.7627 5.06543 15.928L4.99146 15.9968C4.58057 16.3629 4.03856 16.541 3.37793 16.541L3.12671 16.5278C3.00679 16.5188 2.87303 16.495 2.72607 16.4575C2.61505 16.4287 2.50136 16.3894 2.38696 16.3396L2.27197 16.2861C2.1155 16.2094 1.9705 16.0983 1.83691 15.9558L1.83618 15.9551C1.70598 15.8128 1.59909 15.6391 1.51392 15.4365L1.51318 15.4351C1.42797 15.2251 1.38722 14.9736 1.38721 14.6843V12.345C1.38721 12.1069 1.41644 11.892 1.47656 11.7026C1.52068 11.5616 1.57629 11.4337 1.64355 11.3196L1.7146 11.2097C1.81013 11.07 1.92167 10.9524 2.04932 10.8582C2.17206 10.7676 2.29884 10.6909 2.42871 10.6289L2.54297 10.5798C2.81231 10.4716 3.11394 10.4081 3.44678 10.3879L3.45337 10.3872L3.68628 10.3945Z",fill:"currentColor"}),Se.createElement("path",{d:"M8.10791 11.7371C8.33261 11.7371 8.5218 11.8023 8.61255 11.9758C8.68772 12.1131 8.72383 12.2741 8.72388 12.4534V12.7522H9.03003C9.21461 12.7522 9.37781 12.7845 9.5127 12.8562C9.68704 12.9456 9.7463 13.149 9.74634 13.3843C9.74634 13.612 9.68105 13.8034 9.50537 13.894L9.5061 13.8948C9.36923 13.9665 9.20861 14.0002 9.03003 14.0002H8.72388V14.3064C8.72388 14.4941 8.68994 14.6588 8.61768 14.7942L8.61841 14.7949C8.5293 14.9647 8.334 15.0226 8.10791 15.0227C7.87257 15.0227 7.66761 14.9685 7.5769 14.8L7.57617 14.7993C7.50612 14.6659 7.47583 14.4988 7.47583 14.3064V14.0002H7.18579C6.99507 14.0002 6.82804 13.9669 6.69214 13.894C6.52182 13.8026 6.46069 13.6102 6.46069 13.3843C6.46073 13.1491 6.51509 12.944 6.68335 12.8533L6.68481 12.8525L6.79102 12.8079C6.90305 12.7697 7.03293 12.7522 7.177 12.7522H7.47583V12.4534C7.47587 12.2683 7.50712 12.1056 7.57617 11.9707L7.5769 11.9685L7.61646 11.9092C7.72038 11.7825 7.90134 11.7371 8.10791 11.7371Z",fill:"currentColor"}),Se.createElement("path",{d:"M12.728 11.7371C12.9527 11.7371 13.1419 11.8023 13.2327 11.9758C13.3078 12.1131 13.3439 12.2741 13.344 12.4534V12.7522H13.6501C13.8347 12.7522 13.9979 12.7845 14.1328 12.8562C14.3072 12.9456 14.3664 13.149 14.3665 13.3843C14.3665 13.612 14.3012 13.8034 14.1255 13.894L14.1262 13.8948C13.9894 13.9665 13.8287 14.0002 13.6501 14.0002H13.344V14.3064C13.344 14.4941 13.3101 14.6588 13.2378 14.7942L13.2385 14.7949C13.1494 14.9647 12.9541 15.0226 12.728 15.0227C12.4927 15.0227 12.2877 14.9685 12.197 14.8L12.1963 14.7993C12.1262 14.6659 12.0959 14.4988 12.0959 14.3064V14.0002H11.8059C11.6152 14.0002 11.4482 13.9669 11.3123 13.894C11.1419 13.8026 11.0808 13.6102 11.0808 13.3843C11.0808 13.1491 11.1352 12.944 11.3035 12.8533L11.3049 12.8525L11.4111 12.8079C11.5232 12.7697 11.653 12.7522 11.7971 12.7522H12.0959V12.4534C12.096 12.2683 12.1272 12.1056 12.1963 11.9707L12.197 11.9685L12.2366 11.9092C12.3405 11.7825 12.5215 11.7371 12.728 11.7371Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),c0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M4.29639 10.3945C4.50665 10.4083 4.69413 10.4433 4.85815 10.5L4.85889 10.4993C5.07789 10.5733 5.26574 10.6715 5.41919 10.7944C5.53204 10.8849 5.62958 10.9843 5.71069 11.0933L5.78613 11.2053L5.78687 11.2068L5.85059 11.3218C5.89058 11.3983 5.92606 11.4746 5.95605 11.551L5.99707 11.666L5.9978 11.6682L6.05566 11.8945C6.0708 11.9689 6.08168 12.0422 6.08862 12.1143C6.10449 12.252 6.11279 12.3734 6.11279 12.4775C6.11276 12.6403 6.06824 12.7876 5.97803 12.9155C5.92155 12.9956 5.83545 13.0472 5.73486 13.0789C5.63441 13.1104 5.51212 13.1243 5.37231 13.1243C5.32505 13.1243 5.27524 13.1215 5.2229 13.1162L5.05811 13.0928C4.93553 13.0701 4.82533 13.024 4.73145 12.9529L4.72998 12.9514C4.61882 12.8632 4.56958 12.7352 4.56958 12.5874C4.56955 12.2926 4.5312 12.0715 4.46191 11.9165L4.46045 11.9143C4.4319 11.8474 4.38931 11.8003 4.33154 11.7686C4.27185 11.7358 4.18944 11.7158 4.07812 11.7158C3.96626 11.7158 3.89622 11.7421 3.85254 11.7788C3.79519 11.8265 3.75637 11.8759 3.73315 11.926C3.70026 11.9999 3.68262 12.0771 3.68042 12.1582V14.8425L3.68555 14.9187C3.69337 14.9937 3.71038 15.0643 3.73608 15.1311L3.75732 15.1802C3.78176 15.2276 3.81496 15.2727 3.85767 15.3157L3.89575 15.3442C3.93843 15.3699 3.99697 15.386 4.07812 15.386C4.18296 15.386 4.26146 15.3647 4.31982 15.3289C4.37727 15.2935 4.4233 15.2389 4.45605 15.1589C4.53037 14.9746 4.56957 14.7522 4.56958 14.4888C4.56958 14.3307 4.63662 14.2007 4.7666 14.1116L4.82007 14.0801C4.95284 14.0119 5.14337 13.9856 5.37231 13.9856C5.61445 13.9856 5.81633 14.0298 5.94067 14.1489C6.04986 14.2536 6.11274 14.379 6.11279 14.5225C6.11279 14.8453 6.06245 15.1386 5.95972 15.3999C5.85998 15.6574 5.71501 15.8781 5.52466 16.0598L5.52393 16.0591C5.13817 16.4307 4.62871 16.6128 4.00708 16.6128C3.95774 16.6128 3.87811 16.6081 3.77124 16.5996C3.65793 16.5904 3.53127 16.5659 3.39331 16.5278C3.28866 16.4984 3.18149 16.4584 3.07397 16.4077L2.96631 16.3535C2.81858 16.2752 2.68196 16.1624 2.55688 16.0181L2.55615 16.0166C2.43435 15.8725 2.33453 15.6972 2.25513 15.4929L2.25439 15.4915C2.17508 15.28 2.13721 15.0267 2.13721 14.7349V12.3669C2.13721 12.1269 2.16476 11.9109 2.2207 11.7202L2.26538 11.5825C2.3136 11.4491 2.37234 11.3289 2.44263 11.2229C2.53187 11.0816 2.63607 10.9621 2.7561 10.8662C2.87117 10.7743 2.98996 10.6964 3.11206 10.6333L3.11353 10.6326L3.22046 10.5828C3.47384 10.4727 3.75793 10.4085 4.0708 10.3879L4.07812 10.3872L4.29639 10.3945Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H8.625C8.21079 16.5 7.875 16.1642 7.875 15.75C7.875 15.3358 8.21079 15 8.625 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),d0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M3.62109 10.571C3.83849 10.5842 4.03206 10.618 4.20117 10.6721L4.2019 10.6714C4.42776 10.742 4.62121 10.8352 4.77979 10.9526C4.89663 11.0392 4.99793 11.135 5.08228 11.2397L5.16064 11.3474L5.16211 11.3489L5.22803 11.4595C5.26973 11.5332 5.30659 11.6069 5.33789 11.6807L5.38037 11.7905L5.3811 11.7935L5.44116 12.0117C5.45675 12.0826 5.46834 12.1524 5.47559 12.2212L5.49463 12.4087C5.49888 12.4674 5.50049 12.5222 5.50049 12.5728C5.50045 12.7317 5.45415 12.8755 5.35986 12.999C5.30088 13.0762 5.2117 13.1246 5.10938 13.1543C5.0067 13.1841 4.88146 13.1975 4.7373 13.1975C4.64029 13.1975 4.53244 13.1872 4.41431 13.1675C4.28898 13.1461 4.17557 13.1026 4.07886 13.0349L4.07739 13.0334C3.96236 12.9491 3.90894 12.8243 3.90894 12.6782C3.90893 12.3968 3.86925 12.187 3.79834 12.0403L3.79761 12.0381C3.74418 11.922 3.62816 11.847 3.39551 11.8469C3.27715 11.8469 3.20179 11.873 3.15527 11.9092C3.09597 11.9548 3.05572 12.0012 3.03223 12.0476L3.03296 12.0483C2.99919 12.1182 2.98102 12.1906 2.97876 12.2666V14.8396L2.98389 14.9114C2.99188 14.9821 3.00888 15.049 3.03516 15.1121L3.05786 15.1582C3.08304 15.2033 3.11768 15.2464 3.1626 15.2878C3.2089 15.3285 3.28115 15.356 3.39551 15.356C3.50633 15.3559 3.58982 15.3349 3.65186 15.2996C3.71249 15.2651 3.75936 15.2131 3.79248 15.1384L3.84302 15.0007C3.88665 14.8554 3.90893 14.6891 3.90894 14.5005C3.90894 14.363 3.96502 14.2494 4.0686 14.1665L4.11621 14.1328C4.25147 14.0465 4.46739 14.0134 4.7373 14.0134C4.98658 14.0134 5.19278 14.0552 5.32031 14.168C5.43323 14.268 5.5004 14.3903 5.50049 14.5327C5.50049 14.8049 5.46077 15.0556 5.37891 15.2827L5.34155 15.3779C5.23762 15.6261 5.08621 15.8373 4.88892 16.0115L4.88965 16.0122C4.49029 16.3681 3.96383 16.541 3.32227 16.541C3.27168 16.541 3.18935 16.5367 3.07837 16.5286C3.02014 16.5242 2.95789 16.5158 2.89307 16.5044L2.68799 16.4597C2.5801 16.4317 2.47025 16.3938 2.35913 16.3455L2.2478 16.2935C2.09553 16.2188 1.95433 16.1112 1.82446 15.9727L1.82373 15.9712C1.69712 15.8328 1.593 15.6642 1.51025 15.4673L1.50952 15.4658C1.42669 15.2616 1.38721 15.0172 1.38721 14.7363V12.4666C1.38723 12.2355 1.41597 12.0273 1.47437 11.8433C1.53119 11.6615 1.60684 11.502 1.70361 11.3665L1.77686 11.2676C1.85263 11.1732 1.9374 11.0913 2.03101 11.0222C2.15024 10.9342 2.27322 10.8598 2.39941 10.7996L2.40015 10.7988L2.51074 10.7512C2.77229 10.6462 3.0652 10.5848 3.38818 10.5652L3.39551 10.5645L3.62109 10.571Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36914 11.28C9.50263 11.28 9.62352 11.3063 9.72583 11.3643L9.7251 11.365C9.85906 11.4379 9.90454 11.5838 9.90454 11.7429C9.9045 11.7567 9.90157 11.7778 9.89941 11.7935C9.89658 11.814 9.89242 11.8422 9.88696 11.8777C9.87611 11.9455 9.8639 12.0222 9.85034 12.1062C9.84553 12.136 9.84018 12.1643 9.83569 12.1912H10.0525C10.1919 12.1912 10.3171 12.2148 10.4216 12.2688L10.4209 12.2695C10.5686 12.3412 10.6128 12.5089 10.6128 12.6863C10.6128 12.8587 10.5617 13.0123 10.4194 13.0898L10.4187 13.0906C10.3122 13.1472 10.1885 13.1726 10.0525 13.1726H9.67529L9.55225 13.8589H9.75952C9.89706 13.8589 10.0206 13.8819 10.1243 13.9343C10.2748 14.005 10.3198 14.1752 10.3198 14.354C10.3198 14.5291 10.2702 14.6875 10.1243 14.7627L10.1235 14.7634C10.0176 14.8164 9.89461 14.8403 9.75952 14.8403H9.38452L9.33398 15.1677L9.33325 15.1714C9.30492 15.3271 9.26297 15.4669 9.20728 15.5903L9.20801 15.5911C9.17656 15.6626 9.13001 15.7228 9.06592 15.7646C9.00162 15.8065 8.92683 15.8247 8.84839 15.8247C8.72 15.8247 8.60307 15.8041 8.50122 15.7581L8.49976 15.7573C8.35755 15.6908 8.31299 15.5386 8.31299 15.3787C8.31299 15.3406 8.31787 15.2939 8.32617 15.241L8.35913 15.0242C8.36863 14.9624 8.37948 14.9012 8.38989 14.8403H7.92847L7.87793 15.1677L7.8772 15.1714C7.84887 15.3271 7.80691 15.4669 7.75122 15.5903L7.75195 15.5911C7.72046 15.6627 7.6734 15.7228 7.60913 15.7646C7.54487 15.8064 7.47071 15.8247 7.39233 15.8247C7.26394 15.8247 7.14702 15.8041 7.04517 15.7581L7.0437 15.7573C6.90149 15.6908 6.85693 15.5387 6.85693 15.3787C6.85694 15.3406 6.86181 15.2939 6.87012 15.241L6.90308 15.0242C6.91257 14.9624 6.92342 14.9012 6.93384 14.8403H6.6687C6.52906 14.8403 6.40313 14.8167 6.29663 14.7634L6.29297 14.762C6.15355 14.6853 6.10844 14.5261 6.1084 14.354C6.1084 14.1782 6.1487 14.0079 6.29297 13.9358C6.39784 13.882 6.52535 13.8589 6.6687 13.8589H7.09497L7.21802 13.1726H6.95361C6.81311 13.1726 6.68646 13.1475 6.57935 13.0906L6.57788 13.0898C6.43874 13.0135 6.39332 12.8568 6.39331 12.6863C6.39331 12.5105 6.43361 12.3402 6.57788 12.2681C6.68271 12.2144 6.81036 12.1912 6.95361 12.1912H7.38721L7.46045 11.7561C7.47174 11.6625 7.50842 11.5673 7.56372 11.4712C7.63824 11.3418 7.76255 11.2801 7.91309 11.28C8.04657 11.28 8.16746 11.3063 8.26978 11.3643L8.26904 11.365C8.403 11.4379 8.44849 11.5838 8.44849 11.7429C8.44844 11.7567 8.44552 11.7778 8.44336 11.7935C8.44053 11.814 8.43636 11.8422 8.43091 11.8777C8.42006 11.9455 8.40784 12.0222 8.39429 12.1062C8.38947 12.136 8.38413 12.1643 8.37964 12.1912H8.84326L8.9165 11.7561C8.92779 11.6625 8.96448 11.5673 9.01978 11.4712C9.0943 11.3418 9.21861 11.2801 9.36914 11.28ZM8.09619 13.8589H8.55103L8.67407 13.1726H8.21924L8.09619 13.8589Z",fill:"currentColor"})),u0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M4.43188 10.4409C4.65285 10.4409 4.85471 10.4869 4.99951 10.6152L4.99878 10.6159C5.13097 10.7305 5.21409 10.881 5.25146 11.0576C5.28474 11.2148 5.30052 11.3869 5.30054 11.5724V15.4323C5.30054 15.6193 5.28417 15.7927 5.25146 15.9516L5.2522 15.9523C5.21779 16.1313 5.13551 16.2842 4.99951 16.3976L4.99878 16.3969C4.85386 16.52 4.65269 16.5646 4.43188 16.5646C4.21337 16.5646 4.01411 16.5195 3.86792 16.3976L3.86353 16.394C3.73466 16.2798 3.65263 16.1299 3.6123 15.9553L3.61157 15.9516C3.57826 15.7941 3.5625 15.6205 3.5625 15.4323V11.5724C3.56252 11.3869 3.5783 11.2148 3.61157 11.0576C3.64882 10.8815 3.72996 10.7302 3.85986 10.6152L3.86133 10.6137C4.00804 10.4875 4.2103 10.4409 4.43188 10.4409Z",fill:"currentColor"}),Se.createElement("path",{d:"M8.07129 10.4474C8.18434 10.4599 8.28945 10.4924 8.3811 10.55L8.38184 10.5493C8.45754 10.5942 8.52569 10.6451 8.58472 10.7016L8.64111 10.7602L8.64331 10.7631L8.69385 10.8298C8.72596 10.8768 8.75504 10.9284 8.78101 10.9836L8.81763 11.0685L8.81909 11.0729L9.85986 13.8928V11.2692C9.85986 11.0565 9.89522 10.8654 9.98291 10.7119L9.98364 10.7104L10.0349 10.6393C10.1656 10.4886 10.3781 10.4409 10.5974 10.4409C10.8635 10.4409 11.125 10.4947 11.2529 10.6965C11.3535 10.8508 11.3928 11.0487 11.3928 11.2692V15.4323C11.3928 15.6163 11.3809 15.7863 11.3577 15.9413L11.3584 15.9421C11.3349 16.1167 11.2678 16.2708 11.1467 16.3881C11.0102 16.5202 10.8106 16.5646 10.5974 16.5646H10.0554C9.86994 16.5646 9.69972 16.5199 9.56104 16.416C9.44129 16.3261 9.3452 16.215 9.27466 16.0842C9.21353 15.9706 9.16292 15.8593 9.12378 15.7509L8.14893 13.1091V15.7363C8.14893 15.9493 8.11322 16.1406 8.02661 16.2958L8.02588 16.2973C7.90706 16.5052 7.66112 16.5646 7.41138 16.5646C7.14233 16.5646 6.88122 16.5106 6.75 16.312C6.64812 16.1572 6.60791 15.9581 6.60791 15.7363V11.5724C6.60792 11.3882 6.61818 11.2193 6.63867 11.0671V11.0641L6.66724 10.9367C6.7042 10.8142 6.76699 10.706 6.85986 10.6188C6.9982 10.4862 7.19704 10.4409 7.41138 10.4409H7.95337L8.07129 10.4474Z",fill:"currentColor"}),Se.createElement("path",{d:"M13.5688 10.4409C13.7898 10.4409 13.9917 10.4869 14.1365 10.6152L14.1357 10.6159C14.2679 10.7305 14.3511 10.881 14.3884 11.0576C14.4217 11.2148 14.4375 11.3869 14.4375 11.5724V15.4323C14.4375 15.6193 14.4211 15.7927 14.3884 15.9516L14.3892 15.9523C14.3548 16.1313 14.2725 16.2842 14.1365 16.3976L14.1357 16.3969C13.9908 16.52 13.7897 16.5646 13.5688 16.5646C13.3503 16.5646 13.1511 16.5195 13.0049 16.3976L13.0005 16.394C12.8716 16.2798 12.7896 16.1299 12.7493 15.9553L12.7485 15.9516C12.7152 15.7941 12.6995 15.6205 12.6995 15.4323V11.5724C12.6995 11.3869 12.7153 11.2148 12.7485 11.0576C12.7858 10.8815 12.8669 10.7302 12.9968 10.6152L12.9983 10.6137C13.145 10.4875 13.3473 10.4409 13.5688 10.4409Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50385C10.7457 1.52087 10.9072 1.59681 11.0303 1.71991L14.7803 5.46991C14.9208 5.61054 15 5.80136 15 6.00018V9.00018C14.9998 9.41423 14.6641 9.75018 14.25 9.75018C13.8359 9.75018 13.5002 9.41423 13.5 9.00018V6.75018H11.25C10.8523 6.75018 10.4707 6.59192 10.1895 6.31073C9.90824 6.02951 9.7501 5.64788 9.75 5.25018V3.00018H5.25C5.05109 3.00018 4.86038 3.07926 4.71973 3.21991C4.57919 3.36054 4.5 3.55136 4.5 3.75018V9.00018C4.4998 9.41423 4.16409 9.75018 3.75 9.75018C3.33591 9.75018 3.0002 9.41423 3 9.00018V3.75018C3 3.15353 3.23734 2.5813 3.65918 2.15936C4.08114 1.73741 4.65326 1.50018 5.25 1.50018H10.5L10.574 1.50385ZM11.25 5.25018H12.4395L11.25 4.06073V5.25018Z",fill:"currentColor"})),h0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M6.76831 10.8267C6.93291 10.8267 7.08404 10.8408 7.22021 10.8691L7.35205 10.9021L7.35278 10.9028L7.46851 10.9431C7.57872 10.986 7.67614 11.038 7.75928 11.0991C7.84245 11.1591 7.91481 11.2265 7.97388 11.3005L8.02881 11.3767L8.02954 11.3774L8.11011 11.5254C8.13317 11.5747 8.15233 11.6249 8.16797 11.6755C8.19815 11.7711 8.21863 11.8631 8.22656 11.9502C8.23376 12.0294 8.23755 12.096 8.23755 12.1479C8.23753 12.318 8.17338 12.4626 8.04639 12.572C7.92503 12.676 7.77653 12.7265 7.60913 12.7266C7.4711 12.7266 7.34146 12.6749 7.22241 12.583C7.1027 12.4905 7.02328 12.3741 7.02319 12.2329C7.02319 12.0468 6.98759 11.9498 6.94775 11.907L6.94629 11.9055C6.90561 11.8606 6.83878 11.8294 6.72583 11.8293C6.58234 11.8293 6.48534 11.856 6.42334 11.896C6.4086 11.9056 6.38747 11.9281 6.37061 11.981C6.35372 12.0341 6.34351 12.1099 6.34351 12.2117C6.34581 12.2878 6.36799 12.3546 6.40869 12.4153C6.45761 12.4821 6.52298 12.549 6.60718 12.6138L6.73608 12.7053C6.78632 12.7386 6.84449 12.7751 6.9104 12.8145C7.04454 12.8945 7.16167 12.9644 7.2605 13.0232L7.44507 13.1426C7.50565 13.1844 7.56597 13.2284 7.62524 13.2744C7.74715 13.3666 7.8562 13.4715 7.95337 13.5886C8.05276 13.7085 8.13297 13.8432 8.1936 13.9922C8.25599 14.1456 8.28891 14.3172 8.29395 14.5049V14.5364C8.29395 14.7339 8.26896 14.9141 8.21777 15.0754V15.0776C8.11696 15.3776 7.94914 15.6082 7.7124 15.761L7.71313 15.7617C7.62701 15.8179 7.53944 15.8644 7.45166 15.9016L7.36304 15.936C7.30225 15.9571 7.24075 15.9753 7.1792 15.9902L6.99243 16.0261C6.87331 16.0431 6.75886 16.0529 6.65039 16.0554H6.61304C6.41017 16.0554 6.22414 16.0345 6.05786 15.9917C5.89914 15.9495 5.75823 15.8922 5.63892 15.8196L5.63745 15.8188C5.52025 15.7449 5.42093 15.6589 5.34155 15.561C5.26338 15.4674 5.20001 15.3681 5.15332 15.2644C5.10802 15.1659 5.07431 15.0659 5.05371 14.9656C5.03361 14.8676 5.02297 14.7738 5.02295 14.6851C5.02295 14.5014 5.0798 14.3447 5.20898 14.2375L5.20972 14.2368L5.30493 14.1731C5.40409 14.1186 5.51594 14.0918 5.63745 14.0918C5.79553 14.0919 5.94175 14.1407 6.07251 14.2354L6.12451 14.2764C6.2216 14.3622 6.27861 14.4745 6.2959 14.6067L6.30103 14.6741L6.31055 14.7847C6.32502 14.8796 6.35383 14.9312 6.38306 14.9568C6.43071 14.9963 6.50789 15.0238 6.63135 15.0242C6.76743 15.0198 6.85874 14.9863 6.91772 14.9355L6.91846 14.9341L6.95361 14.8938C6.98575 14.8434 7.00924 14.7604 7.00928 14.6287C7.00928 14.4903 6.96843 14.3706 6.8877 14.2661L6.88696 14.2646C6.80068 14.1504 6.68858 14.0439 6.55078 13.946L6.55005 13.9453C6.40626 13.841 6.25592 13.7396 6.10034 13.6421C5.93262 13.5343 5.77326 13.4207 5.62427 13.303L5.62354 13.3022C5.46846 13.1772 5.34021 13.0351 5.24121 12.8752C5.13746 12.7076 5.0852 12.514 5.08008 12.2988V12.2388L5.0874 12.0505C5.10126 11.869 5.13388 11.7086 5.18628 11.5708V11.5693L5.2478 11.4382C5.31532 11.3136 5.40255 11.2077 5.51074 11.1233L5.62207 11.0464C5.73813 10.9764 5.87099 10.9263 6.01831 10.894C6.21201 10.8494 6.43196 10.8267 6.67603 10.8267H6.76831Z",fill:"currentColor"}),Se.createElement("path",{d:"M14.2266 10.8062C14.3565 10.8062 14.4736 10.8329 14.5693 10.8933L14.5701 10.8926L14.5715 10.894L14.5737 10.8948L14.573 10.8955C14.6342 10.9321 14.6895 10.9722 14.7363 11.0171L14.781 11.064L14.7825 11.0662L14.8235 11.1204C14.8363 11.1392 14.8492 11.159 14.8608 11.1797L14.9246 11.3159L14.9253 11.3181L15.9163 14.0024V11.4705C15.9163 11.2922 15.9461 11.1369 16.0159 11.0149L16.054 10.9607C16.1527 10.8467 16.3175 10.8062 16.5022 10.8062C16.7284 10.8062 16.9271 10.8532 17.0229 11.0017C17.1032 11.1237 17.1379 11.2847 17.1379 11.4705V15.0535C17.1379 15.21 17.1275 15.3541 17.1079 15.4849L17.1086 15.4856C17.0896 15.6273 17.0355 15.7491 16.9409 15.8408C16.837 15.9414 16.6806 15.9784 16.5022 15.9785H16.0356C15.8837 15.9785 15.7483 15.9422 15.6394 15.8606C15.5419 15.7874 15.4638 15.6974 15.4065 15.5911C15.3549 15.4953 15.3125 15.4018 15.2798 15.3113L14.3459 12.7815V15.3149C14.3459 15.4932 14.316 15.6489 14.2471 15.7727L14.2463 15.7734C14.158 15.9281 13.9711 15.9784 13.76 15.9785C13.53 15.9785 13.3292 15.9315 13.2312 15.783C13.151 15.6609 13.1169 15.5006 13.1169 15.3149V11.7319C13.117 11.575 13.126 11.4319 13.1433 11.3035V11.3013L13.166 11.1987C13.1955 11.1009 13.2454 11.0157 13.3176 10.9475L13.3594 10.9124C13.4627 10.8363 13.6027 10.8062 13.76 10.8062H14.2266Z",fill:"currentColor"}),Se.createElement("path",{d:"M3.62183 10.73C3.8058 10.73 3.96571 10.7696 4.07959 10.8677C4.185 10.9586 4.25306 11.0796 4.28613 11.2229C4.31675 11.3557 4.33154 11.5018 4.33154 11.6602V14.3606C4.33154 14.617 4.29481 14.8413 4.21655 15.0293C4.15993 15.1652 4.09098 15.286 4.00928 15.3896L3.92285 15.4878C3.80762 15.6056 3.67869 15.6971 3.5376 15.7625L3.53833 15.7632C3.40115 15.8269 3.27011 15.872 3.14722 15.8979L3.14795 15.8987C3.09669 15.9112 3.04501 15.9213 2.99414 15.9294L2.8418 15.9478C2.74998 15.9548 2.68156 15.9587 2.64111 15.9587C2.3706 15.9587 2.13396 15.928 1.93506 15.8643C1.73937 15.8022 1.56914 15.7204 1.42749 15.6174C1.28776 15.5158 1.17335 15.3984 1.08691 15.2651L1.02686 15.1685C0.970789 15.0715 0.926873 14.9732 0.895752 14.874L0.896484 14.8733C0.852315 14.745 0.821564 14.6203 0.806396 14.499L0.805664 14.4968C0.793555 14.3806 0.786621 14.2779 0.786621 14.1899C0.786659 14.0481 0.829716 13.9196 0.914062 13.8091C0.968035 13.7386 1.04873 13.6949 1.13965 13.6685C1.231 13.642 1.34202 13.6297 1.46851 13.6296C1.55651 13.6297 1.65224 13.6393 1.75415 13.6567C1.8653 13.6758 1.96539 13.7157 2.05151 13.7783C2.15785 13.853 2.20677 13.9666 2.20679 14.0977C2.20679 14.3421 2.24112 14.5246 2.302 14.6528L2.32178 14.6865C2.37332 14.7613 2.46833 14.8095 2.64111 14.8096C2.74386 14.8095 2.80532 14.7883 2.8396 14.762L2.84106 14.7605L2.90552 14.7019C2.92253 14.6822 2.9356 14.6623 2.94507 14.6426L2.97803 14.5518C2.98565 14.5209 2.98953 14.4889 2.99048 14.4565V11.9641H2.17236C2.0293 11.9641 1.8922 11.9536 1.76221 11.9312L1.76001 11.9304C1.62252 11.9035 1.50268 11.8482 1.40698 11.7612L1.40625 11.7598C1.30008 11.6602 1.25688 11.5177 1.25684 11.3547C1.25684 11.1882 1.29936 11.0419 1.40625 10.9417C1.49986 10.8517 1.6187 10.7951 1.75635 10.7681L1.9585 10.7395C2.02775 10.7333 2.09935 10.73 2.17236 10.73H3.62183Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0061 10.8398C11.1058 10.8474 11.2146 10.8676 11.3313 10.8984L11.332 10.8977C11.4562 10.9275 11.5817 10.9747 11.7078 11.0376L11.803 11.0896C11.8653 11.1277 11.926 11.1727 11.9839 11.2244L12.0688 11.3071L12.0696 11.3079L12.1472 11.4001C12.2197 11.4965 12.2807 11.608 12.3303 11.7327L12.3772 11.8674C12.417 12.0081 12.4358 12.1667 12.4358 12.3406V14.4111C12.4358 14.649 12.4035 14.8579 12.3347 15.0337L12.334 15.0352C12.2654 15.204 12.1782 15.349 12.071 15.4666C11.9653 15.5823 11.8439 15.6747 11.7085 15.7412L11.7078 15.7405C11.5864 15.8034 11.4622 15.8534 11.335 15.8877C11.2172 15.9189 11.1066 15.9387 11.0061 15.9463C10.9136 15.9532 10.8413 15.9573 10.793 15.9573H10.675L10.4626 15.9463C10.362 15.9387 10.2518 15.919 10.1338 15.8877C10.0122 15.8554 9.8873 15.8055 9.75952 15.7405C9.62706 15.6742 9.50578 15.5832 9.39624 15.4688L9.39551 15.468C9.28579 15.3506 9.19561 15.2056 9.12451 15.0366L9.12378 15.0352C9.05226 14.8589 9.01835 14.6495 9.01831 14.4111V12.3406C9.01831 12.105 9.05259 11.8998 9.12451 11.7297C9.19368 11.5618 9.28389 11.4184 9.39697 11.3027C9.50677 11.1905 9.62826 11.1014 9.76099 11.0376C9.82393 11.0062 9.88688 10.9792 9.94849 10.957L9.94922 10.9563L10.1323 10.8992L10.1345 10.8984L10.3066 10.8604C10.3612 10.8506 10.4136 10.8436 10.4626 10.8398L10.675 10.8289H10.793C10.8413 10.8289 10.9136 10.8329 11.0061 10.8398ZM10.738 11.9473C10.6399 11.9473 10.5796 11.9688 10.5439 11.9963L10.5432 11.9971C10.4934 12.0354 10.4596 12.0746 10.4385 12.1135L10.4377 12.1143C10.4103 12.1641 10.3949 12.222 10.3931 12.2886V14.5393L10.4062 14.6309L10.4385 14.7151L10.4392 14.7158L10.481 14.7766C10.4976 14.7958 10.5181 14.8147 10.5417 14.833L10.5732 14.8521C10.6101 14.8689 10.6637 14.8806 10.738 14.8806C10.8345 14.8805 10.8925 14.8598 10.9255 14.8345C10.9743 14.7969 11.0075 14.7565 11.0288 14.7158C11.054 14.6605 11.0699 14.5993 11.0757 14.5327V12.2944L11.0588 12.197C11.051 12.167 11.0406 12.138 11.0281 12.1106C11.0069 12.0728 10.9738 12.0343 10.9255 11.9971L10.9233 11.9949C10.8905 11.9684 10.8335 11.9474 10.738 11.9473Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V9C15 9.41421 14.6642 9.75 14.25 9.75C13.8358 9.75 13.5 9.41421 13.5 9V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),p0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"}),Se.createElement("path",{d:"M2.39355 10.5C2.53545 10.5 2.6592 10.5122 2.75757 10.5417C2.88987 10.5815 2.99161 10.6954 3.07251 10.8289L3.15747 10.9885L3.25195 11.2031L3.25269 11.2046L3.35229 11.4683C3.38786 11.5664 3.42601 11.6752 3.46655 11.7942L3.76318 12.6665L3.76392 12.6687L3.76904 12.6848L3.79907 12.5911L3.94849 12.1348C3.99515 11.9948 4.03674 11.8689 4.073 11.7576L4.07373 11.7561L4.1814 11.4434C4.21489 11.3495 4.24596 11.265 4.27515 11.1907L4.36084 10.9849C4.38855 10.9239 4.41584 10.8705 4.44214 10.8252C4.51581 10.6953 4.61188 10.5823 4.74243 10.5417H4.7439L4.82153 10.5227C4.90321 10.5069 4.99686 10.5 5.09985 10.5H5.67041C5.87137 10.5 6.05265 10.5425 6.17505 10.6619L6.17944 10.6655C6.29073 10.7714 6.35329 10.9108 6.375 11.072C6.39695 11.2133 6.40721 11.3701 6.40723 11.5415V15.5149C6.4072 15.7232 6.3696 15.9065 6.27686 16.0474C6.16065 16.2235 5.92578 16.2751 5.67041 16.2751C5.43573 16.2751 5.21924 16.2184 5.11157 16.0378L5.10938 16.0342C5.03005 15.8921 4.9966 15.7149 4.99658 15.5149V12.8335L4.4436 14.4456L4.44141 14.4521C4.39239 14.576 4.32667 14.6919 4.24658 14.8008L4.24731 14.8015C4.14341 14.9438 3.9882 15.008 3.80933 15.0081H3.73096C3.55351 15.008 3.40015 14.9437 3.29004 14.8081L3.28857 14.8066C3.20076 14.6954 3.13356 14.575 3.08862 14.4463L2.53564 12.8496V15.5149C2.53562 15.7149 2.50218 15.8921 2.42285 16.0342L2.42212 16.0356C2.31692 16.2193 2.09741 16.2751 1.86182 16.2751C1.60639 16.2751 1.37154 16.2236 1.25537 16.0474C1.16263 15.9065 1.12502 15.7232 1.125 15.5149V11.5415C1.12501 11.3697 1.13426 11.2129 1.15356 11.072L1.1543 11.0691L1.17993 10.9526C1.21308 10.8409 1.26884 10.7425 1.35059 10.6633L1.39966 10.6223C1.52082 10.5332 1.68333 10.5 1.86182 10.5H2.39355Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.1106 10.5C9.62746 10.5 10.0624 10.6251 10.4026 10.8875L10.5256 10.9944C10.6405 11.1071 10.7342 11.238 10.8062 11.3862C10.9039 11.5876 10.9497 11.8187 10.9497 12.074V14.4983C10.9497 14.7119 10.927 14.9051 10.8779 15.0754C10.8306 15.2398 10.7676 15.3875 10.689 15.5156L10.6875 15.5186C10.6079 15.6408 10.5165 15.7481 10.4143 15.8386C10.3155 15.9261 10.2132 15.9989 10.1074 16.0547L10.1067 16.054C9.86566 16.1854 9.58987 16.2585 9.28271 16.2751H7.97681C7.77408 16.2751 7.59145 16.2335 7.46704 16.1169C7.35471 16.0115 7.2898 15.8714 7.26489 15.7097C7.24266 15.5651 7.23194 15.4033 7.23193 15.2256V11.5415C7.23195 11.3663 7.2426 11.2069 7.26489 11.0647C7.28985 10.9032 7.35482 10.7635 7.46704 10.6582C7.59145 10.5416 7.77403 10.5 7.97681 10.5H9.1106ZM8.72095 15.0447H9.07544C9.15931 15.0426 9.23737 15.0225 9.31055 14.9839L9.31348 14.9817L9.35815 14.9553C9.40066 14.926 9.43743 14.8876 9.46802 14.8381L9.46875 14.8367L9.49438 14.7861C9.51748 14.7305 9.53172 14.6593 9.53174 14.5686V12.2615C9.53174 12.1256 9.50631 12.0248 9.46509 11.9517L9.46362 11.9495C9.42061 11.8696 9.36785 11.8162 9.30762 11.7825C9.25706 11.7542 9.19978 11.7342 9.1355 11.7231L9.06885 11.7151H8.72095V15.0447Z",fill:"currentColor"})),g0=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6416 10.3784C3.95675 10.4068 4.24355 10.4808 4.49927 10.6033L4.68896 10.7058C4.75102 10.7437 4.81209 10.7853 4.87207 10.8303C4.99897 10.9227 5.10899 11.0375 5.20459 11.1724C5.30765 11.311 5.38613 11.4733 5.44116 11.6558L5.47998 11.8008C5.51306 11.9504 5.52903 12.1125 5.52905 12.2856C5.52905 12.6011 5.47828 12.8867 5.37305 13.1382L5.37378 13.1389C5.28434 13.3557 5.15787 13.5441 4.99512 13.7014L4.92334 13.7666C4.52343 14.1103 3.97203 14.269 3.2959 14.269H2.95166V15.4292C2.95165 15.614 2.93964 15.7845 2.91577 15.9397C2.8883 16.1182 2.81511 16.2739 2.68652 16.3909L2.68579 16.3901C2.54556 16.5202 2.34254 16.5645 2.12329 16.5645C1.90696 16.5644 1.70685 16.5194 1.56738 16.3887L1.56519 16.3865C1.44288 16.2679 1.37145 16.1152 1.34399 15.9404L1.34326 15.936C1.32257 15.7822 1.31251 15.613 1.3125 15.4292V11.5042C1.31251 11.3204 1.3225 11.1524 1.34326 11.001L1.34399 10.9973L1.37256 10.8691C1.40991 10.7455 1.47366 10.6362 1.56738 10.5483C1.70673 10.4148 1.90677 10.3689 2.12329 10.3689H3.50464L3.6416 10.3784ZM2.95166 12.9053H3.31787C3.43267 12.8984 3.53116 12.8714 3.61597 12.8269C3.69435 12.7857 3.75967 12.7244 3.81226 12.6387L3.84448 12.5728C3.8728 12.5 3.88989 12.4058 3.88989 12.2856C3.88984 12.1374 3.85971 12.0411 3.81812 11.9795L3.81519 11.9744C3.76419 11.8937 3.70357 11.8366 3.63428 11.7979C3.56584 11.7635 3.47692 11.7377 3.36328 11.7253H2.95166V12.9053Z",fill:"currentColor"}),Se.createElement("path",{d:"M9.85181 10.3689C9.96017 10.369 10.0701 10.3945 10.1792 10.4392L10.2876 10.4897L10.2935 10.4927L10.2993 10.4963C10.4209 10.5712 10.5226 10.6619 10.5879 10.7725C10.6503 10.8716 10.6882 10.9809 10.6882 11.0969C10.6882 11.1892 10.6526 11.2993 10.6077 11.4089L10.6069 11.4082C10.5828 11.4685 10.5524 11.5379 10.5154 11.6147C10.4774 11.6937 10.4326 11.7792 10.3813 11.8704L9.1582 14.0391V15.4373C9.1582 15.6164 9.14303 15.7853 9.11279 15.9426C9.07918 16.1138 9.00547 16.2635 8.88647 16.3799L8.88721 16.3806C8.75142 16.5164 8.5562 16.5644 8.34668 16.5645C8.13595 16.5644 7.94219 16.5154 7.80249 16.3843L7.80103 16.3828C7.68055 16.2661 7.60635 16.1157 7.57251 15.9434C7.54226 15.786 7.52783 15.6164 7.52783 15.4373V14.0398L6.12085 11.5283L6.11938 11.5261C6.0459 11.3891 6.00587 11.2453 6.00586 11.0969C6.00589 10.986 6.03681 10.8798 6.09155 10.7812L6.09302 10.7791L6.15015 10.6963C6.21492 10.6176 6.30071 10.5509 6.39771 10.4941L6.4043 10.4905L6.5127 10.4392C6.6213 10.3943 6.73162 10.369 6.84155 10.3689C7.06446 10.369 7.25232 10.4649 7.39307 10.6399L7.48096 10.752C7.5635 10.8656 7.6337 10.9873 7.69263 11.116L8.34668 12.4878L9.00073 11.116C9.07902 10.945 9.177 10.7867 9.29443 10.6421L9.29517 10.6414L9.35083 10.5791C9.48615 10.443 9.65571 10.3689 9.85181 10.3689Z",fill:"currentColor"}),Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.574 1.50366C10.7457 1.52068 10.9072 1.59662 11.0303 1.71973L14.7803 5.46973C14.9209 5.61038 15 5.80109 15 6V14.25C15 14.8467 14.7628 15.4189 14.3408 15.8408C13.9189 16.2628 13.3467 16.5 12.75 16.5H12C11.5858 16.5 11.25 16.1642 11.25 15.75C11.25 15.3358 11.5858 15 12 15H12.75C12.9489 15 13.1396 14.9209 13.2803 14.7803C13.4209 14.6396 13.5 14.4489 13.5 14.25V6.75H11.25C10.8522 6.75 10.4708 6.59185 10.1895 6.31055C9.90815 6.02924 9.75 5.64783 9.75 5.25V3H5.25C5.05109 3 4.86038 3.07907 4.71973 3.21973C4.57907 3.36038 4.5 3.55109 4.5 3.75V9C4.5 9.41421 4.16421 9.75 3.75 9.75C3.33579 9.75 3 9.41421 3 9V3.75C3 3.15326 3.23722 2.58114 3.65918 2.15918C4.08114 1.73722 4.65326 1.5 5.25 1.5H10.5L10.574 1.50366ZM11.25 5.25H12.4395L11.25 4.06055V5.25Z",fill:"currentColor"})),qe=(e,t)=>m.jsx(e,{size:t.size??J.size,stroke:t.stroke??J.stroke,className:t.className}),wi=(e,t)=>m.jsx(e,{width:Number(t.size??J.size),height:Number(t.size??J.size),className:t.className}),Yh={".bmp":e=>qe(z.IconFileTypeBmp,e),".cpp":e=>wi(l0,e),".c":e=>wi(c0,e),".cs":e=>wi(d0,e),".css":e=>qe(z.IconFileTypeCss,e),".csv":e=>qe(z.IconFileTypeCsv,e),".doc":e=>qe(z.IconFileTypeDoc,e),".docx":e=>qe(z.IconFileTypeDocx,e),".html":e=>qe(z.IconFileTypeHtml,e),".ini":e=>wi(u0,e),".jpg":e=>qe(z.IconFileTypeJpg,e),".js":e=>qe(z.IconFileTypeJs,e),".json":e=>wi(h0,e),".jsx":e=>qe(z.IconFileTypeJsx,e),".md":e=>wi(p0,e),".pdf":e=>qe(z.IconFileTypePdf,e),".php":e=>qe(z.IconFileTypePhp,e),".png":e=>qe(z.IconFileTypePng,e),".ppt":e=>qe(z.IconFileTypePpt,e),".py":e=>wi(g0,e),".rs":e=>qe(z.IconFileTypeRs,e),".sql":e=>qe(z.IconFileTypeSql,e),".svg":e=>qe(z.IconFileTypeSvg,e),".ts":e=>qe(z.IconFileTypeTs,e),".tsx":e=>qe(z.IconFileTypeTsx,e),".txt":e=>qe(z.IconFileTypeTxt,e),".vue":e=>qe(z.IconFileTypeVue,e),".xls":e=>qe(z.IconFileTypeXls,e),".xml":e=>qe(z.IconFileTypeXml,e),".zip":e=>qe(z.IconFileTypeZip,e),default:e=>qe(z.IconFile,e)},gu=({extension:e,size:t=J.size,stroke:s=J.stroke,className:i,decorative:o=!1,label:n,indicator:r})=>{const a=(()=>{if(!e)return"";const u=e.trim().toLowerCase();return u.startsWith(".")?u:`.${u}`})(),c=(Yh[a]??Yh.default)({size:t,stroke:s}),d=typeof n=="string"?n:`${a.slice(1).toUpperCase()} file icon`;return m.jsxs("span",{className:pe("inline-flex relative",i),...o?{"aria-hidden":!0}:{role:"img","aria-label":d},children:[m.jsx(Ye,{icon:c,className:"inline-block align-middle"}),r&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:r})]})},$n=({label:e="Shared entity",size:t=14,className:s,containerClassName:i,stroke:o=1.5,sharedIndicatorTooltip:n})=>m.jsx(At,{tooltip:n||"Shared",children:m.jsx(Ye,{className:ne("text-accent-primary flex bg-layer-3",i),icon:m.jsx(z.IconArrowUpRight,{size:t,stroke:o,"aria-label":typeof e=="string"?e:void 0,className:s,role:"img"})})}),fl=({name:e,className:t,shared:s=!1,iconSize:i=Ht,details:o,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,fileExtension:a,hideTooltip:l=!1,isInvalidName:c=!1,tooltipContent:d})=>{const u=a||(e.includes(".")?e.split(".").pop():void 0);return m.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[m.jsx(gu,{extension:u,size:i,className:"text-secondary",indicator:s?m.jsx($n,{className:n,sharedIndicatorTooltip:r}):null,label:"File type icon"}),m.jsxs("div",{className:pe(["w-full flex min-w-0",o&&"flex-col gap-1"]),children:[m.jsx(ft,{className:pe(["dial-small-text flex-1 min-w-0",c?"text-secondary":"text-primary"]),text:e,id:"name",hideTooltip:l,customTooltipContent:d}),o]})]})},ml=({name:e,className:t,shared:s=!1,loading:i=!1,iconSize:o=Ht,sharedIndicatorClassName:n,sharedIndicatorTooltip:r,hideTooltip:a=!1,isInvalidName:l=!1,tooltipContent:c})=>{const d=()=>i?m.jsx(cr,{size:o}):m.jsx(Ye,{icon:m.jsx(z.IconFolder,{...J,size:o}),className:"inline-block align-middle"});return m.jsxs("div",{className:ne("flex items-center gap-2 w-full",t),children:[m.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[d(),s&&m.jsx("span",{className:"absolute z-50 -bottom-0.5 -left-0.5",children:m.jsx($n,{className:n,sharedIndicatorTooltip:r})})]}),m.jsx(ft,{className:pe("dial-small-text flex-1 min-w-0",l?"text-secondary":"text-primary"),text:e,id:"name",hideTooltip:a,customTooltipContent:c})]})};var qn=(e=>(e.Left="left",e.Right="right",e))(qn||{}),ot=function(){return ot=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot.apply(this,arguments)},Xh={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Zh={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Zr={width:"20px",height:"20px",position:"absolute",zIndex:1},f0={top:ot(ot({},Xh),{top:"-5px"}),right:ot(ot({},Zh),{left:void 0,right:"-5px"}),bottom:ot(ot({},Xh),{top:void 0,bottom:"-5px"}),left:ot(ot({},Zh),{left:"-5px"}),topRight:ot(ot({},Zr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ot(ot({},Zr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ot(ot({},Zr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ot(ot({},Zr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},m0=p.memo(function(e){var t=e.onResizeStart,s=e.direction,i=e.children,o=e.replaceStyles,n=e.className,r=p.useCallback(function(c){t(c,s)},[t,s]),a=p.useCallback(function(c){t(c,s)},[t,s]),l=p.useMemo(function(){return ot(ot({position:"absolute",userSelect:"none"},f0[s]),o??{})},[o,s]);return m.jsx("div",{className:n||void 0,style:l,onMouseDown:r,onTouchStart:a,children:i})}),v0=(function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},e(t,s)};return function(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");e(t,s);function i(){this.constructor=t}t.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}})(),ms=function(){return ms=Object.assign||function(e){for(var t,s=1,i=arguments.length;s<i;s++){t=arguments[s];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ms.apply(this,arguments)},C0={width:"auto",height:"auto"},Qr=function(e,t,s){return Math.max(Math.min(e,s),t)},Qh=function(e,t,s){var i=Math.round(e/t);return i*t+s*(i-1)},fo=function(e,t){return new RegExp(e,"i").test(t)},Jr=function(e){return!!(e.touches&&e.touches.length)},w0=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Jh=function(e,t,s){s===void 0&&(s=0);var i=t.reduce(function(n,r,a){return Math.abs(r-e)<Math.abs(t[n]-e)?a:n},0),o=Math.abs(t[i]-e);return s===0||o<s?t[i]:e},uc=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},ea=function(e,t,s,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return s*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return i*o}}return e},b0=function(e,t,s,i,o,n,r){return i=ea(i,e.width,t,s),o=ea(o,e.height,t,s),n=ea(n,e.width,t,s),r=ea(r,e.height,t,s),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof r>"u"?void 0:Number(r)}},x0=function(e){return Array.isArray(e)?e:[e,e]},y0=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],ep="__resizable_base__",S0=(function(e){v0(t,e);function t(s){var i,o,n,r,a=e.call(this,s)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(ep):c.className+=ep,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(o=(i=a.propsSize)===null||i===void 0?void 0:i.width)!==null&&o!==void 0?o:"auto",height:(r=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&r!==void 0?r:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||C0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var s=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;r!=="relative"&&(this.resizable.style.position="relative"),s=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:s,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var s=this,i=this.props.size,o=function(a){var l;if(typeof s.state[a]>"u"||s.state[a]==="auto")return"auto";if(s.propsSize&&s.propsSize[a]&&(!((l=s.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%"))){if(s.state[a].toString().endsWith("%"))return s.state[a].toString();var c=s.getParentSize(),d=Number(s.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return uc(s.state[a])},n=i&&typeof i.width<"u"&&!this.state.isResizing?uc(i.width):o("width"),r=i&&typeof i.height<"u"&&!this.state.isResizing?uc(i.height):o("height");return{width:n,height:r}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var s=this.appendBase();if(!s)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),s.style.position="relative",s.style.minWidth="100%",s.style.minHeight="100%";var n={width:s.offsetWidth,height:s.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(s),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var s=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:s.flexBasis!=="auto"?s.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(s,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===s&&(typeof o>"u"||o==="auto")?"auto":s},t.prototype.calculateNewMaxFromBoundary=function(s,i){var o=this.props.boundsByDirection,n=this.state.direction,r=o&&fo("left",n),a=o&&fo("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=r?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=r?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=r?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(s=s&&s<l?s:l),c&&Number.isFinite(c)&&(i=i&&i<c?i:c),{maxWidth:s,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(s,i){var o=this.props.scale||1,n=x0(this.props.resizeRatio||1),r=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,h=u.lockAspectRatio,g=u.lockAspectRatioExtraHeight,f=u.lockAspectRatioExtraWidth,v=d.width,C=d.height,w=g||0,b=f||0;return fo("right",c)&&(v=d.width+(s-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),fo("left",c)&&(v=d.width-(s-d.x)*r/o,h&&(C=(v-b)/this.ratio+w)),fo("bottom",c)&&(C=d.height+(i-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),fo("top",c)&&(C=d.height-(i-d.y)*a/o,h&&(v=(C-w)*this.ratio+b)),{newWidth:v,newHeight:C}},t.prototype.calculateNewSizeFromAspectRatio=function(s,i,o,n){var r=this.props,a=r.lockAspectRatio,l=r.lockAspectRatioExtraHeight,c=r.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof o.width>"u"||o.width<0?s:o.width,h=typeof n.height>"u"?10:n.height,g=typeof o.height>"u"||o.height<0?i:o.height,f=l||0,v=c||0;if(a){var C=(h-f)*this.ratio+v,w=(g-f)*this.ratio+v,b=(d-v)/this.ratio+f,x=(u-v)/this.ratio+f,y=Math.max(d,C),S=Math.min(u,w),E=Math.max(h,b),R=Math.min(g,x);s=Qr(s,y,S),i=Qr(i,E,R)}else s=Qr(s,d,u),i=Qr(i,h,g);return{newWidth:s,newHeight:i}},t.prototype.setBoundingClientRect=function(){var s=1/(this.props.scale||1);if(this.props.bounds==="parent"){var i=this.parentNode;if(i){var o=i.getBoundingClientRect();this.parentLeft=o.left*s,this.parentTop=o.top*s}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*s,this.targetTop=n.top*s}if(this.resizable){var r=this.resizable.getBoundingClientRect(),a=r.left,l=r.top,c=r.right,d=r.bottom;this.resizableLeft=a*s,this.resizableRight=c*s,this.resizableTop=l*s,this.resizableBottom=d*s}},t.prototype.onResizeStart=function(s,i){if(!(!this.resizable||!this.window)){var o=0,n=0;if(s.nativeEvent&&w0(s.nativeEvent)?(o=s.nativeEvent.clientX,n=s.nativeEvent.clientY):s.nativeEvent&&Jr(s.nativeEvent)&&(o=s.nativeEvent.touches[0].clientX,n=s.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var r=this.props.onResizeStart(s,i,this.resizable);if(r===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:o,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:ms(ms({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(s.target).cursor||"auto"}),direction:i,flexBasis:a};this.setState(u)}},t.prototype.onMouseMove=function(s){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Jr(s))try{s.preventDefault(),s.stopPropagation()}catch{}var o=this.props,n=o.maxWidth,r=o.maxHeight,a=o.minWidth,l=o.minHeight,c=Jr(s)?s.touches[0].clientX:s.clientX,d=Jr(s)?s.touches[0].clientY:s.clientY,u=this.state,h=u.direction,g=u.original,f=u.width,v=u.height,C=this.getParentSize(),w=b0(C,this.window.innerWidth,this.window.innerHeight,n,r,a,l);n=w.maxWidth,r=w.maxHeight,a=w.minWidth,l=w.minHeight;var b=this.calculateNewSizeFromDirection(c,d),x=b.newHeight,y=b.newWidth,S=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(y=Jh(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Jh(x,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(y,x,{width:S.maxWidth,height:S.maxHeight},{width:a,height:l});if(y=E.newWidth,x=E.newHeight,this.props.grid){var R=Qh(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),F=Qh(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),D=this.props.snapGap||0,P=D===0||Math.abs(R-y)<=D?R:y,T=D===0||Math.abs(F-x)<=D?F:x;y=P,x=T}var M={width:y-g.width,height:x-g.height};if(this.delta=M,f&&typeof f=="string"){if(f.endsWith("%")){var N=y/C.width*100;y="".concat(N,"%")}else if(f.endsWith("vw")){var q=y/this.window.innerWidth*100;y="".concat(q,"vw")}else if(f.endsWith("vh")){var L=y/this.window.innerHeight*100;y="".concat(L,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var N=x/C.height*100;x="".concat(N,"%")}else if(v.endsWith("vw")){var q=x/this.window.innerWidth*100;x="".concat(q,"vw")}else if(v.endsWith("vh")){var L=x/this.window.innerHeight*100;x="".concat(L,"vh")}}var V={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?V.flexBasis=V.width:this.flexDir==="column"&&(V.flexBasis=V.height);var H=this.state.width!==V.width,A=this.state.height!==V.height,de=this.state.flexBasis!==V.flexBasis,k=H||A||de;k&&Ko.flushSync(function(){i.setState(V)}),this.props.onResize&&k&&this.props.onResize(s,h,this.resizable,M)}},t.prototype.onMouseUp=function(s){var i,o,n=this.state,r=n.isResizing,a=n.direction;n.original,!(!r||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(s,a,this.resizable,this.delta),this.props.size&&this.setState({width:(i=this.props.size.width)!==null&&i!==void 0?i:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:ms(ms({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(s){var i,o;this.setState({width:(i=s.width)!==null&&i!==void 0?i:"auto",height:(o=s.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var s=this,i=this.props,o=i.enable,n=i.handleStyles,r=i.handleClasses,a=i.handleWrapperStyle,l=i.handleWrapperClass,c=i.handleComponent;if(!o)return null;var d=Object.keys(o).map(function(u){return o[u]!==!1?m.jsx(m0,{direction:u,onResizeStart:s.onResizeStart,replaceStyles:n&&n[u],className:r&&r[u],children:c&&c[u]?c[u]:null},u):null});return m.jsx("div",{className:l,style:a,children:d})},t.prototype.render=function(){var s=this,i=Object.keys(this.props).reduce(function(r,a){return y0.indexOf(a)!==-1||(r[a]=s.props[a]),r},{}),o=ms(ms(ms({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return m.jsxs(n,ms({style:o,className:this.props.className},i,{ref:function(r){r&&(s.resizable=r)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(p.PureComponent);const R0=({side:e,className:t})=>{const s=e===qn.Left,i=s?z.IconChevronLeft:z.IconChevronRight;return m.jsx("div",{className:t,children:m.jsx(i,{className:pe("h-full",s&&"-ml-6")})})},F0=({side:e,isResizing:t,customHandler:s,handlerClassName:i})=>{const o=ne("invisible h-full w-0.5 group-hover:visible bg-accent-primary text-accent-primary cursor-col-resize transition-opacity",t&&"visible",i),n=m.jsx(R0,{side:e,className:o});return s?m.jsx("div",{className:o,children:s}):n},bf=({children:e,minWidth:t,maxWidth:s,width:i,defaultWidth:o,onResizeStop:n,onResize:r,side:a=qn.Right,resizeHandlerClassName:l,resizeHandler:c})=>{const[d,u]=p.useState(!1),[h,g]=p.useState(o),f=i!==void 0,v=f?i:h,C=p.useRef(null),w=p.useCallback(()=>{u(!0)},[]),b=p.useCallback(()=>{u(!1);const y=C.current?.resizable?.getBoundingClientRect(),S=y?Math.round(y.width):t;f||g(S),n?.(S)},[n,f,t]),x=p.useMemo(()=>{const y=a===qn.Left,S=m.jsx(F0,{side:a,isResizing:d,customHandler:c,handlerClassName:l});return{size:f?{width:v,height:"100%"}:void 0,defaultSize:f?void 0:{width:v,height:"100%"},minWidth:t,maxWidth:s,enable:{left:y,right:!y},handleClasses:{right:"group",left:"group"},handleStyles:{right:{right:"-8px",zIndex:10},left:{left:0,zIndex:10}},handleComponent:{left:y?S:void 0,right:y?void 0:S},onResizeStart:w,onResize:(E,R,F)=>{const D=Math.round(F.offsetWidth);r?.(D)},onResizeStop:b}},[a,f,v,t,s,c,l,d,w,b,r]);return m.jsx(S0,{ref:C,...x,children:m.jsx("div",{className:"group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all",children:e})})},xf=({enabled:e=!0,children:t,...s})=>e?m.jsx(bf,{...s,children:t}):t;var Zt=(e=>(e.Default="default",e.Text="text",e.Circular="circular",e.Rectangular="rectangular",e))(Zt||{}),An=(e=>(e.Small="small",e.Default="default",e.Large="large",e))(An||{}),Aa=(e=>(e.Circle="circle",e.Square="square",e))(Aa||{});const E0=e=>{if(typeof e=="number")return e;switch(e){case An.Small:return 32;case An.Large:return 64;case An.Default:default:return 40}},bo=({active:e=!0,paragraph:t=!0,avatar:s=!1,showTitle:i=!0,loading:o=!0,children:n,variant:r=Zt.Default,width:a,height:l,className:c,...d})=>{if(!o&&n)return m.jsx(m.Fragment,{children:n});const u=ne("bg-layer-3",e&&"animate-pulse",c);if(r!==Zt.Default){const F=ne(u,r===Zt.Circular&&"rounded-full",r===Zt.Rectangular&&"rounded",r===Zt.Text&&"rounded"),D={};return a&&(D.width=typeof a=="number"?`${a}px`:a),l&&(D.height=typeof l=="number"?`${l}px`:l),m.jsx("div",{className:F,style:D,...d})}const h=!!s,g=!!i,f=!!t,v=typeof s=="object"?s:{},C=typeof i=="object"?i:{},w=typeof t=="object"?t:{},b=E0(v.size),x=v.shape??Aa.Circle,y=C.width??"38%",S=w.rows??3,E=w.width,R=F=>E?Array.isArray(E)?E[F]??"100%":E:F===S-1?"61%":"100%";return m.jsxs("div",{...d,className:ne("flex gap-4",c),children:[h&&m.jsx("div",{className:ne(u,x===Aa.Circle?"rounded-full":"rounded","flex-shrink-0"),style:{width:b,height:b}}),m.jsxs("div",{className:"flex-1 flex flex-col gap-3",children:[g&&m.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:y}}),f&&m.jsx("div",{className:"flex flex-col gap-3",children:Array.from({length:S}).map((F,D)=>m.jsx("div",{className:ne(u,"h-4 rounded"),style:{width:R(D)}},D))})]})]})};var Oi=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&s&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const i=this.getListeners(e,s,!1);i&&(i.delete(t),i.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:i}=this,o=a=>{const l=i?()=>i.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},n=this.getListeners(s,t,!1);if((n?.size??0)>0){const a=new Set(n);for(const l of a)n?.has(l)&&o(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)o(()=>l(s,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function Ns(e){return e==null||e===""?null:e}function te(e){return e!=null&&e!==""}function Xe(e){return!te(e)}function wd(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function Kn(e,t){const s=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return s===i}function D0(e,t,s=!1){const i=e==null,o=t==null;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),i&&o)return 0;if(i)return-1;if(o)return 1;function n(r,a){return r>a?1:r<a?-1:0}if(typeof e!="string"||!s)return n(e,t);try{return e.localeCompare(t)}catch{return n(e,t)}}var P0=/[&<>"']/g,T0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qo(e){return e?.toString().toString()??null}function Ln(e){return Qo(e)?.replace(P0,t=>T0[t])??null}function rs(e){return e.eRootDiv.getRootNode()}function Je(e){return rs(e).activeElement}function pt(e){const{gos:t,eRootDiv:s}=e;let i=null;const o=t.get("getDocument");return o&&te(o)?i=o():s&&(i=s.ownerDocument),i&&te(i)?i:document}function yf(e){const t=Je(e);return t===null||t===pt(e).body}function Sf(e){return pt(e).defaultView||window}function fu(e){let t=null,s=null;try{t=pt(e).fullscreenElement}catch{}finally{t||(t=rs(e));const i=t.querySelector("body");i?s=i:t instanceof ShadowRoot?s=t:t instanceof Document?s=t?.documentElement:s=t}return s}function k0(e){return fu(e)?.clientWidth??(window.innerWidth||-1)}function M0(e){return fu(e)?.clientHeight??(window.innerHeight||-1)}function us(e,t,s){s==null||typeof s=="string"&&s==""?Rf(e,t):hs(e,t,s)}function hs(e,t,s){e.setAttribute(Ff(t),s.toString())}function Rf(e,t){e.removeAttribute(Ff(t))}function Ff(e){return`aria-${e}`}function Ni(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function I0(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function A0(e){return e.getAttribute("aria-label")}function Vo(e,t){us(e,"label",t)}function Yn(e,t){us(e,"labelledby",t)}function Ef(e,t){us(e,"live",t)}function L0(e,t){us(e,"atomic",t)}function O0(e,t){us(e,"relevant",t)}function N0(e,t){us(e,"invalid",t)}function H0(e,t){us(e,"disabled",t)}function Df(e,t){us(e,"hidden",t)}function bd(e,t){hs(e,"expanded",t)}function G0(e,t){hs(e,"setsize",t)}function B0(e,t){hs(e,"posinset",t)}function V0(e,t){hs(e,"rowcount",t)}function Pf(e,t){hs(e,"rowindex",t)}function z0(e,t){hs(e,"rowspan",t)}function W0(e,t){hs(e,"colcount",t)}function Tf(e,t){hs(e,"colindex",t)}function j0(e,t){hs(e,"colspan",t)}function _0(e,t){hs(e,"sort",t)}function U0(e){Rf(e,"sort")}function kf(e,t){us(e,"selected",t)}function $0(e,t){us(e,"controls",t)}function q0(e,t){$0(e,t.id),Yn(t,e.id)}function tp(e,t){us(e,"owns",t)}function vl(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var K0="[tabindex], input, select, button, textarea, [href]",Mf="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function On(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(Mf)?!1:Ws(e)}function Qe(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-hidden",!t),i||Df(e,!t)}function Y0(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-invisible",!t),i||Df(e,!t)}function Xn(e,t){const s="disabled",i=t?n=>n.setAttribute(s,""):n=>n.removeAttribute(s);i(e);const o=e.querySelectorAll("input")??[];for(const n of o)i(n)}function Ei(e,t,s){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++i>s)break}else if(e===s)break}return!1}function ji(e){const{height:t,width:s,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:n,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:g,marginLeft:f,boxSizing:v}=window.getComputedStyle(e),C=Number.parseFloat;return{height:C(t||"0"),width:C(s||"0"),borderTopWidth:C(i||"0"),borderRightWidth:C(o||"0"),borderBottomWidth:C(n||"0"),borderLeftWidth:C(r||"0"),paddingTop:C(a||"0"),paddingRight:C(l||"0"),paddingBottom:C(c||"0"),paddingLeft:C(d||"0"),marginTop:C(u||"0"),marginRight:C(h||"0"),marginBottom:C(g||"0"),marginLeft:C(f||"0"),boxSizing:v}}function mu(e){const t=ji(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Zn(e){const t=ji(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function If(e){const{height:t,marginBottom:s,marginTop:i}=ji(e);return Math.floor(t+s+i)}function La(e){const{width:t,marginLeft:s,marginRight:i}=ji(e);return Math.floor(t+s+i)}function Af(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:n}=ji(e);return{top:t.top+(s||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(n||0)}}function Oa(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function Na(e,t,s){s&&(t*=-1),e.scrollLeft=t}function Lt(e){for(;e?.firstChild;)e.firstChild.remove()}function ni(e){e?.parentNode&&e.remove()}function Lf(e){return!!e.offsetParent}function Ws(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Lf(e)||window.getComputedStyle(e).visibility!=="visible")}function vu(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ma(e){return()=>{const t=e();return t?Cu(t)||Of(t):!0}}function Cu(e){return e.clientWidth<e.scrollWidth}function Of(e){return e.clientHeight<e.scrollHeight}function Ha(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):xs(e,t)}function xs(e,t){t=wu(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Nn(e,t){t=wu(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function wu(e){return typeof e=="number"?`${e}px`:e}function bu(e){return e instanceof Node||e instanceof HTMLElement}function Vt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function js(e,t,s){const o=Sf(e).ResizeObserver,n=o?new o(s):null;return n?.observe(t),()=>n?.disconnect()}function _s(e,t){const s=Sf(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var Nf="data-ref",hc;function sp(){return hc??(hc=document.createTextNode(" ")),hc.cloneNode()}function ur(e){const{attrs:t,children:s,cls:i,ref:o,role:n,tag:r}=e,a=document.createElement(r);if(i&&(a.className=i),o&&a.setAttribute(Nf,o),n&&a.setAttribute("role",n),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(s)if(typeof s=="string")a.textContent=s;else{let l=!0;for(const c of s)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(sp()),l=!1),a.append(ur(c)),a.appendChild(sp())))}return a}var X0=["touchstart","touchend","touchmove","touchcancel","scroll"],Z0=["wheel"],pc={},Hf=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof pc[s]=="boolean")return pc[s];const i=document.createElement(e[s]||"div");return s="on"+s,pc[s]=s in i}})();function Q0(e,t){return!t||!e?!1:ey(t).indexOf(e)>=0}function J0(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function ey(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():J0(t)}function ty(e,t,s){const i=sy(t);let o;i!=null&&(o={passive:i}),e.addEventListener(t,s,o)}var sy=e=>{const t=X0.includes(e),s=Z0.includes(e);if(t)return!0;if(s)return!1};function Gf(e,t,s){if(s===0)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=s}var Hn=(e,t)=>{const s=e.identifier;for(let i=0,o=t.length;i<o;++i){const n=t[i];if(n.identifier===s)return n}return null};function Qn(e,t){return e.gos.isElementInThisInstance(t.target)}function iy(e,t,s){const o=e.getBoundingClientRect().height,n=k0(s)-2,r=M0(s)-2;if(!e.offsetParent)return;const l=Af(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-o/2,h=d-l.left-10;const g=pt(s),f=g.defaultView||window,v=f.pageYOffset||g.documentElement.scrollTop,C=f.pageXOffset||g.documentElement.scrollLeft;n>0&&h+e.clientWidth>n+C&&(h=n+C-e.clientWidth),h<0&&(h=0),r>0&&u+e.clientHeight>r+v&&(u=r+v-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var va=(e,...t)=>{for(const s of t){const[i,o,n,r]=s;i.addEventListener(o,n,r),e.push(s)}},xu=e=>{if(e){for(const[t,s,i,o]of e)t.removeEventListener(s,i,o);e.length=0}},Js=e=>{e.cancelable&&e.preventDefault()};function oy(e,t){return t}function Bf(e){return e?.getLocaleTextFunc()??oy}function ny(e,t,s,i){const o=t[s];return e.getLocaleTextFunc()(s,typeof o=="function"?o(i):o,i)}function ry(e){return(t,s,i)=>e({key:t,defaultValue:s,variableValues:i})}function ay(e){return(t,s,i)=>{let o=e?.[t];if(o&&i?.length){let n=0;for(;!(n>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[n++])}return o??s}}var Es=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,s){this.localEventService||(this.localEventService=new Oi),this.localEventService.addEventListener(e,t,s)}removeEventListener(e,t,s){this.localEventService?.removeEventListener(e,t,s)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const s=[];for(const i of Object.keys(t)){const o=t[i];o&&s.push(this._setupListener(e,i,o))}return s}_setupListener(e,t,s){if(this.destroyed)return()=>null;let i;if(ly(e))e.__addEventListener(t,s),i=()=>(e.__removeEventListener(t,s),null);else{const o=cy(e);e instanceof HTMLElement?ty(e,t,s):o?e.addListener(t,s):e.addEventListener(t,s),i=o?()=>(e.removeListener(t,s),null):()=>(e.removeEventListener(t,s),null)}return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}setupPropertyListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const i=()=>(s.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(i),()=>(i(),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==i),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,i=o=>{if(o.changeSet){if(o.changeSet&&o.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=o.changeSet.id}const n={type:"propertyChanged",changeSet:o.changeSet,source:o.source};t(n)};for(const o of e)this.setupPropertyListener(o,i)}getLocaleTextFunc(){return Bf(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function ly(e){return e.__addEventListener!==void 0}function cy(e){return e.eventServiceType==="global"}var O=class extends Es{},ip={};function yu(e,t){ip[t]||(e(),ip[t]=!0)}var dy={pending:!1,funcs:[]},uy={pending:!1,funcs:[]};function xd(e,t="setTimeout",s){const i=t==="raf"?uy:dy;if(i.funcs.push(e),i.pending)return;i.pending=!0;const o=()=>{const n=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const r of n)r()};t==="raf"?_s(s,o):window.setTimeout(o,0)}function ut(e,t,s){let i;return function(...o){const n=this;window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(n,o)},s)}}function op(e,t){let s=0;return function(...i){const o=this,n=Date.now();n-s<t||(s=n,e.apply(o,i))}}function hy(e,t,s,i=100){const o=Date.now();let n=null,r=!1;const a=()=>{n!=null&&(window.clearInterval(n),n=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-o>i;(t()||c)&&(s(),r=!0,a())};l(),r||(n=window.setInterval(l,10))}var Vf=new Set(["__proto__","constructor","prototype"]);function py(e,t){if(e!=null){if(Array.isArray(e)){for(let s=0;s<e.length;s++)t(s.toString(),e[s]);return}for(const s of Object.keys(e).filter(i=>!Vf.has(i)))t(s,e[s])}}function Ft(e,t,s=!0,i=!1){te(t)&&py(t,(o,n)=>{let r=e[o];r!==n&&(i&&r==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(r={},e[o]=r),np(n)&&np(r)&&!Array.isArray(r)?Ft(r,n,s,i):(s||n!==void 0)&&(e[o]=n))})}function np(e){return typeof e=="object"&&e!==null}var Su=class Is{static applyGlobalGridOptions(t){if(!Is.gridOptions)return{...t};let s={};return Ft(s,Is.gridOptions,!0,!0),Is.mergeStrategy==="deep"?Ft(s,t,!0,!0):s={...s,...t},Is.gridOptions.context&&(s.context=Is.gridOptions.context),t.context&&(Is.mergeStrategy==="deep"&&s.context&&Ft(t.context,s.context,!0,!0),s.context=t.context),s}static applyGlobalGridOption(t,s){if(Is.mergeStrategy==="deep"){const i=zf(t);if(i&&typeof i=="object"&&typeof s=="object")return Is.applyGlobalGridOptions({[t]:s})[t]}return s}};Su.gridOptions=void 0;Su.mergeStrategy="shallow";var Ru=Su;function zf(e){return Ru.gridOptions?.[e]}var Wf={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:" ",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1},jf="https://www.ag-grid.com";function Hi(e,t,...s){e.get("debug")&&console.log("AG Grid: "+t,...s)}function Gn(e,...t){yu(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function Do(e,...t){yu(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var _f=new Set,Ga={},Di={},Ca,Uf=!1,$f=!1,gy=!1;function fy(e){const[t,s]=e.version.split(".")||[],[i,o]=Ca.split(".")||[];return t===i&&s===o}function my(e){Ca||(Ca=e.version);const t=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;e.version?fy(e)||Do(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Ca}.`)):Do(t(`'${e.moduleName}' is incompatible.`));const s=e.validate?.();s&&!s.isValid&&Do(`${s.message}`)}function Jn(e,t,s=!1){s||(Uf=!0),my(e);const i=e.rowModels??["all"];_f.add(e);let o;t!==void 0?($f=!0,Di[t]===void 0&&(Di[t]={}),o=Di[t]):o=Ga;for(const n of i)o[n]===void 0&&(o[n]={}),o[n][e.moduleName]=e;if(e.dependsOn)for(const n of e.dependsOn)Jn(n,t,s)}function vy(e){delete Di[e]}function yd(e,t,s){const i=o=>!!Ga[o]?.[e]||!!Di[t]?.[o]?.[e];return i(s)||i("all")}function Fu(){return $f}function Cy(e,t){const s=Di[e]??{};return[...Object.values(Ga.all??{}),...Object.values(s.all??{}),...Object.values(Ga[t]??{}),...Object.values(s[t]??{})]}function wy(){return new Set(_f)}function by(e,t){const s=Di[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}function xy(){return Uf}function yy(){return gy}var qf=class{static register(e){Jn(e,void 0)}static registerModules(e){for(const t of e)Jn(t,void 0)}},ee="34.3.0",rp=2e3,ap=100,Kf="_version_",Yf=null,Po=`${jf}/javascript-data-grid`;function Sy(e){Yf=e}function Ry(e){Po=e}function Xf(e,t,s){return Yf?.(e,t)??[Py(e,t,s)]}function Eu(e,t,s,i,o){e(`${i?"warning":"error"} #${t}`,...Xf(t,s,o))}function Fy(e){if(!e)return String(e);const t={};for(const s of Object.keys(e))typeof e[s]!="object"&&typeof e[s]!="function"&&(t[s]=e[s]);return JSON.stringify(t)}function Ey(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=Fy(e)),t}function Ba(e){return e===void 0?"undefined":e===null?"null":e}function Sd(e,t){return`${e}?${t.toString()}`}function Dy(e,t,s){const i=Array.from(t.entries()).sort((n,r)=>r[1].length-n[1].length);let o=Sd(e,t);for(const[n,r]of i){if(n===Kf)continue;const a=o.length-s;if(a<=0)break;const l="...",c=a+l.length,d=r.length-c>ap?r.slice(0,r.length-c)+l:r.slice(0,ap)+l;t.set(n,d),o=Sd(e,t)}return o}function Zf(e,t){const s=new URLSearchParams;if(s.append(Kf,ee),t)for(const n of Object.keys(t))s.append(n,Ey(t[n]));const i=`${Po}/errors/${e}`,o=Sd(i,s);return o.length<=rp?o:Dy(i,s,rp)}var Py=(e,t,s)=>{const i=Zf(e,t);return`${`${s?s+`
|
|
7
7
|
`:""}Visit ${i}`}${s?"":`
|
|
8
8
|
Alternatively register the ValidationModule to see the full message in the console.`}`};function $(...e){Eu(Gn,e[0],e[1],!0)}function Be(...e){Eu(Do,e[0],e[1],!1)}function Tn(e,t,s){Eu(Do,e,t,!1,s)}function Ty(e,t){const s=t[0];return`error #${s} `+Xf(s,t[1],e).join(" ")}function ys(...e){return Ty(void 0,e)}function Qf(e,t){return e.get("rowModelType")===t}function tt(e,t){return Qf(e,"clientSide")}function _i(e,t){return Qf(e,"serverSide")}function mt(e,t){return e.get("domLayout")===t}function Pi(e){return za(e)!==void 0}function Jf(e){return typeof e.get("getRowHeight")=="function"}function ky(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function ri(e,t,s=!1,i){const{gos:o,environment:n}=e;if(i==null&&(i=n.getDefaultRowHeight()),Jf(o)){if(s)return{height:i,estimated:!0};const l={node:t,data:t.data},c=o.getCallback("getRowHeight")(l);if(Rd(c))return c===0&&$(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&o.get("masterDetail"))return My(o);const r=o.get("rowHeight");return{height:r&&Rd(r)?r:i,estimated:!1}}function My(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return Rd(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Ti(e){const{environment:t,gos:s}=e,i=s.get("rowHeight");if(!i||Xe(i))return t.getDefaultRowHeight();const o=t.refreshRowHeightVariable();return o!==-1?o:($(24),t.getDefaultRowHeight())}function Rd(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function em(e,t,s){const i=t[e.getDomDataKey()];return i?i[s]:void 0}function Gi(e,t,s,i){const o=e.getDomDataKey();let n=t[o];Xe(n)&&(n={},t[o]=n),n[s]=i}function To(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function tm(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||mt(e,"print"))}function Cs(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Fd(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function sm(e){return e.get("grandTotalRow")}function im(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function om(e,t,s){return!!t.group&&!t.footer&&im(e,s)}function zo(e){const t=e.getCallback("getRowId");return t===void 0?t:s=>{let i=t(s);return typeof i!="string"&&(yu(()=>$(25,{id:i}),"getRowIdString"),i=String(i)),i}}function Iy(e,t){const s=e.get("groupHideParentOfSingleChild");return!!(s===!0||s==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Ay(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function ko(e){return e?.checkboxes??!0}function wa(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Va(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function gc(e){return e?.hideDisabledCheckboxes??!1}function Ly(e){return typeof e.get("rowSelection")!="string"}function ai(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function nm(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const s=e.get("suppressRowClickSelection"),i=e.get("suppressRowDeselection");return s&&i?!1:s?"enableDeselection":i?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function Oy(e){const t=nm(e);return t===!0||t==="enableSelection"}function Ny(e){const t=nm(e);return t===!0||t==="enableDeselection"}function Ed(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function za(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Wa(e){return za(e)==="multiRow"}function Hy(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function ja(e){const t=e.get("rowSelection");if(typeof t=="string"){const s=e.get("groupSelectsChildren"),i=e.get("groupSelectsFiltered");return s&&i?"filteredDescendants":s?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function rm(e,t=!0){const s=e.get("rowSelection");return typeof s!="object"?t?"all":void 0:s.mode==="multiRow"?s.selectAll:"all"}function Gy(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function er(e){const t=ja(e);return t==="descendants"||t==="filteredDescendants"}function lp(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function By(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function zt(e){return e.get("columnMenu")==="legacy"}function Vy(e){return!zt(e)}function zy(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function Wy(e,t,s){typeof e!="object"&&(e={});const i={...e};for(const o of s){const n=t[o];typeof n<"u"&&(i[o]=n)}return i}function jy(e,t){if(!e)return;const s={};let i=!1;for(const r of Object.keys(e))s[r]=e[r],i=!0;if(!i)return;const o={type:"gridOptionsChanged",options:s};t.dispatchEvent(o);const n={type:"componentStateChanged",...s};t.dispatchEvent(n)}function xe(e,t){return e.addCommon(t)}function ba(e,t){return e[t]??e.gridOptions?.[t]??zf(t)??Wf[t]}function cp({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var _y={resizable:!0,sortable:!0},Uy=0;function am(){return Uy++}function li(e){return e instanceof Ui}var Ui=class extends O{constructor(e,t,s,i){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=s,this.primary=i,this.isColumn=!0,this.instanceId=am(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Oi,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Ln(s)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:s,colFlex:i}}=this;t?.initCol(this);const o=e.hide;o!==void 0?this.visible=!o:this.visible=!e.initialHide,s?.initCol(this),i?.initCol(this)}setColDef(e,t,s){const i=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),i&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",s)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:s}}=this,i=e.get("suppressFieldDotNotation");this.fieldContainsDots=te(t)&&t.includes(".")&&!i,this.tooltipFieldContainsDots=te(s)&&s.includes(".")&&!i}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:s=>{const i=e.recreateColDef(this.colDef);this.setColDef(i,i,s.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const s=e.width,i=e.initialWidth;return s!=null?t=s:i!=null?t=i:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const s=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,s)}removeEventListener(e,t){const s=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,s)}createColumnFunctionCallbackParams(e){return xe(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??_y[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const s=this.createColumnFunctionCallbackParams(e);return t(s)}return!1}createColumnEvent(e,t){return xe(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Xe(this.sort)}isSorting(){return te(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return $(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const s=e===!0;this.visible!==s&&(this.visible=s,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let s=!0;for(;e;){if(!e.isPadding()){s=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:s}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return xe(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Xe(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.colSpan(t);return Math.max(s,1)}getRowSpan(e){if(Xe(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.rowSpan(t);return Math.max(s,1)}setActualWidth(e,t,s=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),s||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,s){const i=this.createColumnEvent(e,t);s&&Ft(i,s),this.colEventSvc.dispatchEvent(i)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function xt(e){return e instanceof xa}var xa=class extends O{constructor(e,t,s,i){super(),this.colGroupDef=e,this.groupId=t,this.padding=s,this.level=i,this.isColumn=!1,this.expandable=!1,this.instanceId=am(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)li(t)?e(t):xt(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)li(t)?e.push(t):xt(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,s=!1;const i=this.findChildrenRemovingPadding();for(let n=0,r=i.length;n<r;n++){const a=i[n];if(!a.isVisible())continue;const l=a.getColumnGroupShow();l==="open"?(e=!0,s=!0):l==="closed"?(t=!0,s=!0):(e=!0,t=!0)}const o=e&&t&&s;this.expandable!==o&&(this.expandable=o,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=s=>{for(const i of s)xt(i)&&i.isPadding()?t(i.children):e.push(i)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},$y={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function dp(e,t,s){const i={},o=e.gos;return Object.assign(i,o.get("defaultColGroupDef")),Object.assign(i,t),o.validateColDef(i,s),i}var qy=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=wd(e);let s=0;for(;;){let i=e??t;if(i?s!==0&&(i+="_"+s):i=s,!this.existingKeys[i]){const o=String(i);return e&&s>0&&$(273,{providedId:e,usedId:o}),this.existingKeys[o]=!0,o}s++}}};function We(e){if(e?.length)return e[e.length-1]}function ui(e,t,s){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const i=e.length;if(i!==t.length)return!1;for(let o=0;o<i;o++)if(e[o]!==t[o]&&!s?.(e[o],t[o]))return!1;return!0}function xn(e,t){if(e)for(const s of e)t(s)}function ds(e,t){const s=e.indexOf(t);s>=0&&e.splice(s,1)}function up(e,t,s){for(let i=0;i<t.length;i++)ds(e,t[i]);for(let i=t.length-1;i>=0;i--)e.splice(s,0,t[i])}var si="ag-Grid-AutoColumn",Du="ag-Grid-SelectionColumn",Pu="ag-Grid-RowNumbersColumn";function lm(e){const t=[],s=i=>{for(let o=0;o<i.length;o++){const n=i[o];li(n)?t.push(n):xt(n)&&s(n.getChildren())}};return s(e),t}function As(e){return e.reduce((t,s)=>t+s.getActualWidth(),0)}function _a(e,t,s){const i={};if(!t)return;Gs(null,t,n=>{i[n.getInstanceId()]=n}),s&&Gs(null,s,n=>{i[n.getInstanceId()]=null});const o=Object.values(i).filter(n=>n!=null);e.context.destroyBeans(o)}function Tu(e){return e.getId().startsWith(si)}function Us(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Du)??!1}function Hs(e){return(typeof e=="string"?e:"getColId"in e?e.getColId():e.colId)?.startsWith(Pu)??!1}function Ky(e){return Us(e)||Hs(e)}function Ua(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function Yy(e,t){return ui(e,t,(s,i)=>s.getColId()===i.getColId())}function Xy(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}function Mo(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function Bn(e,t){const s=e===t,i=e.getColDef()===t,o=e.getColId()==t;return s||i||o}var Zy=(e,t)=>(s,i)=>{const o={value1:void 0,value2:void 0};let n=!1;return e&&(e[s]!==void 0&&(o.value1=e[s],n=!0),te(i)&&e[i]!==void 0&&(o.value2=e[i],n=!0)),!n&&t&&(t[s]!==void 0&&(o.value1=t[s]),te(i)&&t[i]!==void 0&&(o.value2=t[i])),o},Qy=(e,t)=>{xt(e)&&e.setupExpandable(),e.originalParent=t};function Jy(e,t=null,s,i,o){const n=new qy,{existingCols:r,existingGroups:a,existingColKeys:l}=eS(i);n.addExistingKeys(l);const c=cm(e,t,0,s,r,n,a,o),{colGroupSvc:d}=e,u=d?.findMaxDepth(c,0)??0,h=d?d.balanceColumnTree(c,0,u,n):c;return Gs(null,h,Qy),{columnTree:h,treeDepth:u}}function eS(e){const t=[],s=[],i=[];return e&&Gs(null,e,o=>{if(xt(o)){const n=o;s.push(n)}else{const n=o;i.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:s,existingColKeys:i}}function cm(e,t,s,i,o,n,r,a){if(!t)return[];const{colGroupSvc:l}=e,c=new Array(t.length);for(let d=0;d<c.length;d++){const u=t[d];l&&rS(u)?c[d]=l.createProvidedColumnGroup(i,u,s,o,n,r,a):c[d]=tS(e,i,u,o,n,a)}return c}function tS(e,t,s,i,o,n){const r=iS(s,i);r&&i?.splice(r.idx,1);let a=r?.column;if(a){const l=Dd(e,s,a.getColId());a.setColDef(l,s,n),sS(e,a,l,n)}else{const l=o.getUniqueKey(s.colId,s.field),c=Dd(e,s,l);a=new Ui(c,s,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function dm(e,t,s,i,o,n,r,a){const{sortSvc:l,pinnedCols:c,colFlex:d}=e;s!==void 0&&t.setVisible(!s,a),l&&(l.updateColSort(t,i,a),o!==void 0&&l.setColSortIndex(t,o)),n!==void 0&&c?.setColPinned(t,n),r!==void 0&&d?.setColFlex(t,r)}function sS(e,t,s,i){dm(e,t,s.hide,s.sort,s.sortIndex,s.pinned,s.flex,i);const o=t.getFlex();if(!(o!=null&&o>0))if(s.width!=null)t.setActualWidth(s.width,i);else{const n=t.getActualWidth();t.setActualWidth(n,i)}}function iS(e,t){if(t)for(let s=0;s<t.length;s++){const i=t[s].getUserProvidedColDef();if(!i)continue;if(e.colId!=null){if(t[s].getId()===e.colId)return{idx:s,column:t[s]};continue}if(e.field!=null){if(i.field===e.field)return{idx:s,column:t[s]};continue}if(i===e)return{idx:s,column:t[s]}}}function Dd(e,t,s,i){const{gos:o,dataTypeSvc:n}=e,r={},a=o.get("defaultColDef");Ft(r,a,!1,!0);const l=oS(e,r,t,s);l&&nS(e,l,r);const c=r.cellDataType;Ft(r,t,!1,!0),c!==void 0&&(r.cellDataType=c);const d=o.get("autoGroupColumnDef"),u=Cs(o);return t.rowGroup&&d&&u&&Ft(r,{sort:d.sort,initialSort:d.initialSort},!1,!0),n&&(n.postProcess(r),n.validateColDef(r)),o.validateColDef(r,s,i),r}function oS(e,t,s,i){const o=e.dataTypeSvc?.updateColDefAndGetColumnType(t,s,i),n=s.type??o??t.type;return t.type=n,n?Ua(n):void 0}function nS(e,t,s){if(!t.length)return;const i=Object.assign({},$y),o=e.gos.get("columnTypes")||{};for(const n of Object.keys(o)){const r=o[n];n in i?$(34,{key:n}):(r.type&&$(35),i[n]=r)}for(const n of t){const r=i[n.trim()];r?Ft(s,r,!1,!0):$(36,{t:n})}}function rS(e){return e.children!==void 0}function Gs(e,t,s){if(t)for(let i=0;i<t.length;i++){const o=t[i];xt(o)&&Gs(o,o.getChildren(),s),s(o,e)}}function um(e,t){const s=[],i=[],o=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;a==="right"?o.push(r):a==="left"||a===!0?s.push(r):i.push(r)}),t.get("enableRtl")?[...o,...i,...s]:[...s,...i,...o]}function hm(e,t){let s=!0;return Gs(null,t,i=>{if(!xt(i))return;const o=i;if(!o.getColGroupDef()?.marryChildren)return;const a=[];for(const h of o.getLeafColumns()){const g=e.indexOf(h);a.push(g)}const l=Math.max.apply(Math,a),c=Math.min.apply(Math,a),d=l-c,u=o.getLeafColumns().length-1;d>u&&(s=!1)}),s}function pm(e,t){if(!e||e.length==0)return;const s=t(e[0]);for(let i=1;i<e.length;i++)if(s!==t(e[i]))return;return s}function gm(e,t,s){if(!t.length)return;const i=t.length===1?t[0]:null,o=pm(t,n=>n.getPinned());e.dispatchEvent({type:"columnPinned",pinned:o??null,columns:t,column:i,source:s})}function aS(e,t,s){if(!t.length)return;const i=t.length===1?t[0]:null,o=pm(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:o,columns:t,column:i,source:s})}function lS(e,t,s,i){e.dispatchEvent({type:t,columns:s,column:s&&s.length==1?s[0]:null,source:i})}function Wo(e,t,s,i,o=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:o,finished:s,source:i})}function cs(e,t,s){const{colModel:i,rowGroupColsSvc:o,pivotColsSvc:n,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:c,pivotResultCols:d,environment:u,valueColsSvc:h,eventSvc:g,gos:f}=e,v=i.getColDefCols()??[],C=a?.getColumns();if(!v.length&&!C?.length)return!1;if(t?.state&&!t.state.forEach)return $(32),!1;const w=(S,E,R,F,D)=>{if(!S)return;const P=Zy(E,t.defaultState),T=P("flex").value1;if(dm(e,S,P("hide").value1,P("sort").value1,P("sortIndex").value1,P("pinned").value1,T,s),T==null){const M=P("width").value1;if(M!=null){const N=S.getColDef().minWidth??u.getDefaultColumnMinWidth();N!=null&&M>=N&&S.setActualWidth(M,s)}}D||!S.isPrimary()||(h?.syncColumnWithState(S,s,P),o?.syncColumnWithState(S,s,P,R),n?.syncColumnWithState(S,s,P,F))},b=(S,E,R)=>{const F=fm(e,s),D=E.slice(),P={},T={},M=[],N=[],q=[];let L=0;const V=o?.columns.slice()??[],H=n?.columns.slice()??[];for(const k of S){const B=k.colId;if(B.startsWith(si)){M.push(k),q.push(k);continue}if(Us(B)){N.push(k),q.push(k);continue}const W=R(B);W?(w(W,k,P,T,!1),ds(D,W)):(q.push(k),L+=1)}const A=k=>w(k,null,P,T,!1);D.forEach(A),o?.sortColumns(hp.bind(o,P,V)),n?.sortColumns(hp.bind(n,T,H)),i.refreshCols(!1,s);const de=(k,B,U=[])=>{for(const W of B){const re=k(W.colId);ds(U,re),w(re,W,null,null,!0)}U.forEach(A)};return de(k=>r?.getColumn(k)??null,M,r?.getColumns()?.slice()),de(k=>a?.getColumn(k)??null,N,a?.getColumns()?.slice()),dS(t,i,f),c.refresh(s),g.dispatchEvent({type:"columnEverythingChanged",source:s}),F(),{unmatchedAndAutoStates:q,unmatchedCount:L}};l?.start();let{unmatchedAndAutoStates:x,unmatchedCount:y}=b(t.state||[],v,S=>i.getColDefCol(S));if(x.length>0||te(t.defaultState)){const S=d?.getPivotResultCols()?.list??[];y=b(x,S,E=>d?.getPivotResultCol(E)??null).unmatchedCount}return l?.finish(),y===0}function cS(e,t){const{colModel:s,autoColSvc:i,selectionColSvc:o,eventSvc:n,gos:r}=e,a=s.getColDefCols();if(!a?.length)return;const l=s.getColDefColTree(),c=lm(l),d=[];let u=1e3,h=1e3;const g=b=>{const x=mm(b);Xe(x.rowGroupIndex)&&x.rowGroup&&(x.rowGroupIndex=u++),Xe(x.pivotIndex)&&x.pivot&&(x.pivotIndex=h++),d.push(x)};i?.getColumns()?.forEach(g),o?.getColumns()?.forEach(g),c?.forEach(g),cs(e,{state:d},t);const f=i?.getColumns()??[],w=[...o?.getColumns()??[],...f,...a].map(b=>({colId:b.colId}));cs(e,{state:w,applyOrder:!0},t),n.dispatchEvent(xe(r,{type:"columnsReset",source:t}))}function fm(e,t){const{rowGroupColsSvc:s,pivotColsSvc:i,valueColsSvc:o,colModel:n,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:s?.columns.slice()??[],pivotColumns:i?.columns.slice()??[],valueColumns:o?.columns.slice()??[]},c=$a(e),d={};for(const u of c)d[u.colId]=u;return()=>{const u=(E,R,F,D)=>{const P=R.map(D),T=F.map(D);if(ui(P,T))return;const N=new Set(R);for(const L of F)N.delete(L)||N.add(L);const q=[...N];a.dispatchEvent({type:E,columns:q,column:q.length===1?q[0]:null,source:t})},h=E=>{const R=[];return n.forAllCols(F=>{const D=d[F.getColId()];D&&E(D,F)&&R.push(F)}),R},g=E=>E.getColId();u("columnRowGroupChanged",l.rowGroupColumns,s?.columns??[],g),u("columnPivotChanged",l.pivotColumns,i?.columns??[],g);const v=h((E,R)=>{const F=E.aggFunc!=null,D=F!=R.isValueActive(),P=F&&E.aggFunc!=R.getAggFunc();return D||P});v.length>0&&lS(a,"columnValueChanged",v,t),Wo(a,h((E,R)=>E.width!=R.getActualWidth()),!0,t),gm(a,h((E,R)=>E.pinned!=R.getPinned()),t),aS(a,h((E,R)=>E.hide==R.isVisible()),t);const y=h((E,R)=>E.sort!=R.getSort()||E.sortIndex!=R.getSortIndex());y.length>0&&r?.dispatchSortChangedEvents(t,y);const S=$a(e);hS(c,S,t,n,a)}}function $a(e){const{colModel:t,rowGroupColsSvc:s,pivotColsSvc:i}=e,o=t.getColDefCols();if(Xe(o)||!t.isAlive())return[];const n=s?.columns,r=i?.columns,a=[],l=d=>{const u=d.isRowGroupActive()&&n?n.indexOf(d):null,h=d.isPivotActive()&&r?r.indexOf(d):null,g=d.isValueActive()?d.getAggFunc():null,f=d.getSort()!=null?d.getSort():null,v=d.getSortIndex()!=null?d.getSortIndex():null;a.push({colId:d.getColId(),width:d.getActualWidth(),hide:!d.isVisible(),pinned:d.getPinned(),sort:f,sortIndex:v,aggFunc:g,rowGroup:d.isRowGroupActive(),rowGroupIndex:u,pivot:d.isPivotActive(),pivotIndex:h,flex:d.getFlex()??null})};t.forAllCols(d=>l(d));const c=new Map(t.getCols().map((d,u)=>[d.getColId(),u]));return a.sort((d,u)=>{const h=c.has(d.colId)?c.get(d.colId):-1,g=c.has(u.colId)?c.get(u.colId):-1;return h-g}),a}function mm(e){const t=(f,v)=>f??v??null,s=e.getColDef(),i=t(s.sort,s.initialSort),o=t(s.sortIndex,s.initialSortIndex),n=t(s.hide,s.initialHide),r=t(s.pinned,s.initialPinned),a=t(s.width,s.initialWidth),l=t(s.flex,s.initialFlex);let c=t(s.rowGroupIndex,s.initialRowGroupIndex),d=t(s.rowGroup,s.initialRowGroup);c==null&&!d&&(c=null,d=null);let u=t(s.pivotIndex,s.initialPivotIndex),h=t(s.pivot,s.initialPivot);u==null&&!h&&(u=null,h=null);const g=t(s.aggFunc,s.initialAggFunc);return{colId:e.getColId(),sort:i,sortIndex:o,hide:n,pinned:r,width:a,flex:l,rowGroup:d,rowGroupIndex:c,pivot:h,pivotIndex:u,aggFunc:g}}function dS(e,t,s){if(!e.applyOrder||!e.state)return;const i=[];for(const o of e.state)o.colId!=null&&i.push(o.colId);uS(t.cols,i,t,s)}function uS(e,t,s,i){if(e==null)return;let o=[];const n={};for(const a of t){if(n[a])continue;const l=e.map[a];l&&(o.push(l),n[a]=!0)}let r=0;for(const a of e.list){const l=a.getColId();if(n[l]!=null)continue;l.startsWith(si)?o.splice(r++,0,a):o.push(a)}if(o=um(o,i),!hm(o,s.getColTree())){$(39);return}e.list=o}function hS(e,t,s,i,o){const n={};for(const d of t)n[d.colId]=d;const r={};for(const d of e)n[d.colId]&&(r[d.colId]=!0);const a=e.filter(d=>r[d.colId]),l=t.filter(d=>r[d.colId]),c=[];l.forEach((d,u)=>{const h=a?.[u];if(h&&h.colId!==d.colId){const g=i.getCol(h.colId);g&&c.push(g)}}),c.length&&o.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:s})}var hp=(e,t,s,i)=>{const o=e[s.getId()],n=e[i.getId()],r=o!=null,a=n!=null;if(r&&a)return o-n;if(r)return-1;if(a)return 1;const l=t.indexOf(s),c=t.indexOf(i),d=l>=0,u=c>=0;return d&&u?l-c:d?-1:1},pS=class extends O{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(Mo(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Mo(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:s,colAutosize:i,rowGroupColsSvc:o,pivotColsSvc:n,valueColsSvc:r,visibleCols:a,eventSvc:l,groupHierarchyColSvc:c}=t,d=this.colDefs?fm(t,e):void 0;s?.expire();const u=this.colDefCols?.list,h=this.colDefCols?.tree,g=Jy(t,this.colDefs,!0,h,e);_a(t,this.colDefCols?.tree,g.columnTree);const f=g.columnTree,v=g.treeDepth,C=lm(f),w={};for(const b of C)w[b.getId()]=b;this.colDefCols={tree:f,treeDepth:v,list:C,map:w},this.createColumnsForService([c],this.colDefCols,e),o?.extractCols(e,u),n?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0,e),a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),d&&(this.changeEventsDispatching=!0,d(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&i?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const s=this.cols?.tree;this.saveColOrder();const{autoColSvc:i,selectionColSvc:o,rowNumbersSvc:n,quickFilter:r,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:c,visibleCols:d,colViewport:u,eventSvc:h}=this.beans,g=this.selectCols(a,this.colDefCols);this.createColumnsForService([i,o,n],g,t);const f=ky(this.gos,this.showingPivotResult);(!e||f)&&this.restoreColOrder(g),this.positionLockedCols(g),l?.refresh(),r?.refreshCols(),this.setColSpanActive(),c?.setAutoHeightActive(g),d.clear(),u.clear(),!ui(s,this.cols.tree)&&h.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,s){for(const i of e)i&&(i.createColumns(t,o=>{this.lastOrder=o(this.lastOrder),this.lastPivotOrder=o(this.lastPivotOrder)},s),i.addColumns(t))}selectCols(e,t){const s=e?.getPivotResultCols()??null;this.showingPivotResult=s!=null;const{map:i,list:o,tree:n,treeDepth:r}=s??t;return this.cols={list:o.slice(),map:{...i},tree:n.slice(),treeDepth:r},s&&(s.list.some(l=>this.cols?.map[l.getColId()]!==void 0)||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{valueColsSvc:e,selectionColSvc:t,gos:s}=this.beans,i=this.isPivotMode()&&!this.showingPivotResult,o=t?.isSelectionColumnEnabled(),n=s.get("rowNumbers"),r=e?.columns;return this.cols.list.filter(l=>{const c=Tu(l);if(i){const d=r?.includes(l);return c||d||o&&Us(l)||n&&Hs(l)}else return c||l.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,s){cs(this.beans,{state:e.map(i=>({colId:typeof i=="string"?i:i.getColId(),hide:!t}))},s)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const s=t.filter(u=>e.map[u.getId()]!=null);if(s.length===0)return;if(s.length===e.list.length){e.list=s;return}const i=u=>{const h=u.getOriginalParent();return h?h.getChildren().length>1?!0:i(h):!1};if(!s.some(u=>i(u))){const u=new Set(s);for(const h of e.list)u.has(h)||s.push(h);e.list=s;return}const o=new Map;for(let u=0;u<s.length;u++){const h=s[u];o.set(h,u)}const n=e.list.filter(u=>!o.has(u));if(n.length===0){e.list=s;return}const r=(u,h)=>{const g=h?h.getOriginalParent():u.getOriginalParent();if(!g)return null;let f=null,v=null;for(const C of g.getChildren())if(!(C===h||C===u)){if(C instanceof Ui){const w=o.get(C);if(w==null)continue;(f==null||f<w)&&(f=w,v=C);continue}C.forEachLeafColumn(w=>{const b=o.get(w);b!=null&&(f==null||f<b)&&(f=b,v=w)})}return v??r(u,g)},a=[],l=new Map;for(const u of n){const h=r(u,null);if(h==null){a.push(u);continue}const g=l.get(h);g===void 0?l.set(h,u):Array.isArray(g)?g.push(u):l.set(h,[g,u])}const c=new Array(e.list.length);let d=c.length-1;for(let u=a.length-1;u>=0;u--)c[d--]=a[u];for(let u=s.length-1;u>=0;u--){const h=s[u],g=l.get(h);if(g)if(Array.isArray(g))for(let f=g.length-1;f>=0;f--){const v=g[f];c[d--]=v}else c[d--]=g;c[d--]=h}e.list=c}positionLockedCols(e){e.list=um(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>e.getColDef().colSpan!=null)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:s,eventSvc:i}=this.beans;s.refresh(t),i.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Mo(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){_a(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:s,selectionColSvc:i,groupHierarchyColSvc:o}=this.beans;xn(this.colDefCols?.list,e),xn(s?.columns?.list,e),xn(i?.columns?.list,e),xn(o?.columns?.list,e),xn(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(t==null)return null;const{map:s,list:i}=t;if(typeof e=="string"&&s[e])return s[e];for(let a=0;a<i.length;a++)if(Bn(i[a],e))return i[a];const{autoColSvc:o,selectionColSvc:n,groupHierarchyColSvc:r}=this.beans;return o?.getColumn(e)??n?.getColumn(e)??r?.getColumn(e)??null}},vm=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let s;return typeof t!="number"?s=0:s=t+1,this.existingIds[e]=s,s}},Jo=class extends O{};function hr(e,t,s){return s&&e.addDestroyFunc(()=>t.destroyBean(s)),s??e}var we=null;function pp(e){return typeof e?.getGui=="function"}var pr=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.indexOf(" ")>=0){const i=(e||"").split(" ");if(i.length>1){for(const o of i)this.toggleCss(o,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},gS=0,gr=class extends Es{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=gS++,this.cssManager=new pr(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(s=>[s.selector,s])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Nf):null}applyElementsToComponent(e,t,s,i=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const o=this[t];if(o===we)this[t]=i??e;else{const n=s?.[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(e,t){const s=[];for(const i of e.childNodes??[])s.push(i);for(const i of s){if(!(i instanceof HTMLElement))continue;const o=this.createComponentFromElement(i,n=>{const r=n.getGui();if(r)for(const a of i.attributes??[])r.setAttribute(a.name,a.value)},t);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,t);const n=Array.prototype.slice.call(i.children);o.addItems(n)}this.swapComponentForNode(o,e,i)}else i.childNodes&&this.createChildComponentsFromTags(i,t)}}createComponentFromElement(e,t,s){const i=e.nodeName,o=this.getDataRefAttribute(e),n=i.indexOf("AG-")===0,r=n?this.componentSelectors.get(i):null;let a=null;if(r){const l=s&&o?s[o]:void 0;a=new r.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,o,s,a),a}swapComponentForNode(e,t,s){const i=e.getGui();t.replaceChild(i,s),t.insertBefore(document.createComment(s.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const s of e)s.setAttribute("tabindex",t.toString())}setTemplate(e,t,s){let i;typeof e=="string"||e==null?i=vu(e):i=ur(e),this.setTemplateFromElement(i,t,s)}setTemplateFromElement(e,t,s,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let o=0;o<t.length;o++){const n=t[o];this.componentSelectors.set(n.selector,n)}this.wireTemplate(e,s)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let s=t;return e==null?null:(s||(s=this.eGui),bu(e)?{element:e,parent:s}:{element:e.getGui(),parent:s})}prependChild(e,t){const{element:s,parent:i}=this.getContainerAndElement(e,t)||{};!s||!i||i.insertAdjacentElement("afterbegin",s)}appendChild(e,t){const{element:s,parent:i}=this.getContainerAndElement(e,t)||{};!s||!i||i.appendChild(s)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:s}=t;Y0(this.eGui,e,{skipAriaHidden:s})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:s}=t;Qe(this.eGui,e,{skipAriaHidden:s});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,s){this.eGui.addEventListener(e,t,s),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},et=class extends gr{};function Cm(e){return typeof e=="object"&&!!e.component}function fS(e,t){return new Le(s=>{s(window.setInterval(e,t))})}var Le=class kn{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(s=>this.onDone(s),s=>this.onReject(s))}static all(t){return t.length?new kn(s=>{let i=t.length;const o=new Array(i);t.forEach((n,r)=>{n.then(a=>{o[r]=a,i--,i===0&&s(o)})})}):kn.resolve()}static resolve(t=null){return new kn(s=>s(t))}then(t){return new kn(s=>{this.status===1?s(t(this.resolution)):this.waiters.push(i=>s(t(i)))})}onDone(t){this.status=1,this.resolution=t;for(const s of this.waiters)s(t)}onReject(t){}};function mS(e){return e?e.prototype&&"getGui"in e.prototype:!1}function wm(e,t,s,i){const{name:o}=s;let n,r,a,l,c,d;if(t){const u=t,h=u[o+"Selector"],g=h?h(i):null,f=v=>{typeof v=="string"?n=v:v!=null&&v!==!0&&(e.isFrameworkComponent(v)?a=v:r=v)};g?(f(g.component),l=g.params,c=g.popup,d=g.popupPosition):f(u[o])}return{compName:n,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var vS=class extends O{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,s,i=!1){return this.getCompDetails(this.gridOptions,e,t,s,i)}getCompDetails(e,t,s,i,o=!1){const{name:n,cellRenderer:r}=t;let{compName:a,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:u,popupPositionFromSelector:h}=wm(this.beans.frameworkOverrides,e,t,i),g,f;const v=x=>{const y=this.registry.getUserComponent(n,x);y&&(l=y.componentFromFramework?void 0:y.component,c=y.componentFromFramework?y.component:void 0,g=y.params,f=y.processParams)};if(a!=null&&v(a),l==null&&c==null&&s!=null&&v(s),l&&r&&!mS(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:x}=this.beans;o&&(a!==s||!s)?a?x?.isProvidedUserComp(a)||Be(50,{compName:a}):s?x||Be(260,{...this.gos.getModuleErrorParams(),propName:n,compName:s}):Be(216,{name:n}):s&&!x&&Be(146,{comp:s});return}const C=this.mergeParams(e,t,i,d,g,f),w=l==null,b=l??c;return{componentFromFramework:w,componentClass:b,params:C,type:t,popupFromSelector:u,popupPositionFromSelector:h,newAgStackInstance:()=>this.newAgStackInstance(b,w,C,t)}}newAgStackInstance(e,t,s,i){const o=!t;let n;o?n=new e:n=this.frameworkCompWrapper.wrap(e,i.mandatoryMethods,i.optionalMethods,i),this.createBean(n);const r=n.init?.(s);return r==null?Le.resolve(n):r.then(()=>n)}mergeParams(e,t,s,i=null,o,n){const r={...s,...o},l=e?.[t.name+"Params"];if(typeof l=="function"){const c=l(s);Ft(r,c)}else typeof l=="object"&&Ft(r,l);return Ft(r,i),n?n(r):r}},CS={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},wS={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},bS={name:"headerComponent",optionalMethods:["refresh"]},xS={name:"innerHeaderComponent"},yS={name:"innerHeaderGroupComponent"},SS={name:"headerGroupComponent"},RS={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},FS={name:"loadingCellRenderer",cellRenderer:!0},ES={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},DS={name:"loadingOverlayComponent",optionalMethods:["refresh"]},PS={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},TS={name:"tooltipComponent"},ku={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},kS={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},MS={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},IS={name:"loadingCellRenderer",cellRenderer:!0},AS={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},LS={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function OS(e,t){return e.getCompDetailsFromGridOptions(wS,"agDragAndDropImage",t,!0)}function NS(e,t,s){return e.getCompDetails(t,bS,"agColumnHeader",s)}function HS(e,t,s){return e.getCompDetails(t,xS,void 0,s)}function GS(e,t){const s=t.columnGroup.getColGroupDef();return e.getCompDetails(s,SS,"agColumnGroupHeader",t)}function BS(e,t,s){return e.getCompDetails(t,yS,void 0,s)}function VS(e,t){return e.getCompDetailsFromGridOptions(MS,void 0,t,!0)}function zS(e,t){return e.getCompDetailsFromGridOptions(IS,"agLoadingCellRenderer",t,!0)}function WS(e,t){return e.getCompDetailsFromGridOptions(AS,"agGroupRowRenderer",t,!0)}function jS(e,t){return e.getCompDetailsFromGridOptions(LS,"agDetailCellRenderer",t,!0)}function gp(e,t,s){return e.getCompDetails(t,RS,void 0,s)}function fp(e,t,s){return e.getCompDetails(t,FS,"agSkeletonCellRenderer",s,!0)}function bm(e,t,s){return e.getCompDetails(t,ES,"agCellEditor",s,!0)}function _S(e,t,s,i){const o=t.filter;return Cm(o)&&(t={filter:o.component,filterParams:t.filterParams}),e.getCompDetails(t,ku,i,s,!0)}function US(e,t,s){return e.getCompDetails(t,CS,"agDateInput",s,!0)}function $S(e,t){return e.getCompDetailsFromGridOptions(DS,"agLoadingOverlay",t,!0)}function qS(e,t){return e.getCompDetailsFromGridOptions(PS,"agNoRowsOverlay",t,!0)}function KS(e,t){return e.getCompDetails(t.colDef,TS,"agTooltipComponent",t,!0)}function YS(e,t,s,i){return e.getCompDetails(t,kS,i,s)}function xm(e,t){return wm(e,t,ku)}function fc(e,t,s){return e.mergeParams(t,ku,s)}function tr(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}function XS(e){return typeof e=="object"&&!!e.getComp}var I={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},Mu=class extends gr{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},mc,vc,Cc,wc,Pd,Td,bc;function hi(){return mc===void 0&&(mc=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),mc}function ym(){return vc===void 0&&(vc=/(firefox)/i.test(navigator.userAgent)),vc}function Sm(){return Cc===void 0&&(Cc=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Cc}function ki(){return wc===void 0&&(wc=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),wc}function kd(e){if(!e)return null;const t=e.tabIndex,s=e.getAttribute("tabIndex");return t===-1&&(s===null||s===""&&!ym())?null:t.toString()}function ZS(){if(bc!==void 0)return bc;if(!document.body)return-1;let e=1e6;const t=ym()?6e6:1e9,s=document.createElement("div");for(document.body.appendChild(s);;){const i=e*2;if(s.style.height=i+"px",i>t||s.clientHeight!==i)break;e=i}return s.remove(),bc=e,e}function QS(){return Td==null&&Rm(),Td}function Rm(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let s=t.offsetWidth-t.clientWidth;s===0&&t.clientWidth===0&&(s=null),t.parentNode&&t.remove(),s!=null&&(Td=s,Pd=s===0)}function Fm(){return Pd==null&&Rm(),Pd}var Iu="T",JS=new RegExp(`[${Iu} ]`),eR=new RegExp(`^\\d{4}-\\d{2}-\\d{2}(${Iu}\\d{2}:\\d{2}:\\d{2}\\D?)?`);function ws(e,t){return e.toString().padStart(t,"0")}function Wt(e,t=!0,s=Iu){if(!e)return null;let i=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(o=>ws(o,2)).join("-");return t&&(i+=s+[e.getHours(),e.getMinutes(),e.getSeconds()].map(o=>ws(o,2)).join(":")),i}function ta(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),ws(e.getDate(),2),ws(e.getHours(),2),`:${ws(e.getMinutes(),2)}`,`:${ws(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,ws(e.getDate(),2)].map(String):null}var xc=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},mp=["January","February","March","April","May","June","July","August","September","October","November","December"],yc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Md(e,t){if(t==null)return Wt(e,!1);const s=ws(e.getFullYear(),4),i={YYYY:()=>s.slice(s.length-4,s.length),YY:()=>s.slice(s.length-2,s.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>mp[e.getMonth()],MMM:()=>mp[e.getMonth()].slice(0,3),MM:()=>ws(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${xc(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${xc(e.getDate())}`,DD:()=>ws(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>yc[e.getDay()],ddd:()=>yc[e.getDay()].slice(0,3),dd:()=>yc[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${xc(e.getDay())}`,d:()=>`${e.getDay()}`},o=new RegExp(Object.keys(i).join("|"),"g");return t.replace(o,n=>n in i?i[n]():n)}function ya(e,t=!1){return!!Ot(e,t)}function tR(e){return ya(e,!0)}function Ot(e,t=!1,s){if(!e||!s&&!eR.test(e))return null;const[i,o]=e.split(JS);if(!i)return null;const n=i.split("-").map(g=>Number.parseInt(g,10));if(n.filter(g=>!isNaN(g)).length!==3)return null;const[r,a,l]=n,c=new Date(r,a-1,l);if(c.getFullYear()!==r||c.getMonth()!==a-1||c.getDate()!==l||!o&&t)return null;if(!o||o==="00:00:00")return c;const[d,u,h]=o.split(":").map(g=>Number.parseInt(g,10));if(d>=0&&d<24)c.setHours(d);else if(t)return null;if(u>=0&&u<60)c.setMinutes(u);else if(t)return null;if(h>=0&&h<60)c.setSeconds(h);else if(t)return null;return c}function Id(e){const{inputValue:t,allSuggestions:s,hideIrrelevant:i,filterByPercentageOfBestMatch:o}=e;let n=(s??[]).map((l,c)=>({value:l,relevance:sR(t,l),idx:c}));if(n.sort((l,c)=>l.relevance-c.relevance),i&&(n=n.filter(l=>l.relevance<Math.max(l.value.length,t.length))),n.length>0&&o&&o>0){const c=n[0].relevance*o;n=n.filter(d=>c-d.relevance<0)}const r=[],a=[];for(const l of n)r.push(l.value),a.push(l.idx);return{values:r,indices:a}}function sR(e,t){e.length<t.length&&([e,t]=[t,e]);let s=[],i=[];const o=e.length,n=t.length;for(let a=0;a<=n;a++)s[a]=a;let r=0;for(let a=1;a<=o;a++){i[0]=a;for(let l=1;l<=n;l++){const c=e[a-1],d=t[l-1];if(c.toLocaleLowerCase()===d.toLocaleLowerCase())++r,c===d&&++r,a>1&&l>1&&e[a-2].toLocaleLowerCase()===t[l-2].toLocaleLowerCase()&&(++r,e[a-2]===t[l-2]&&++r),a<o/2-10&&++r,i[l]=s[l-1];else{const u=i[l-1],h=s[l],g=s[l-1];i[l]=1+Math.min(u,h,g)}}[s,i]=[i,s]}return s[n]/(r+1)}function Em(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}var Ad=!1,qa=0;function iR(e){qa>0||(e.addEventListener("keydown",Ka),e.addEventListener("mousedown",Ka))}function oR(e){qa>0||(e.removeEventListener("keydown",Ka),e.removeEventListener("mousedown",Ka))}function Ka(e){const t=Ad,s=e.type==="keydown";s&&(e.ctrlKey||e.metaKey||e.altKey)||t!==s&&(Ad=s)}function nR(e){const t=pt(e);return iR(t),qa++,()=>{qa--,oR(t)}}function rR(){return Ad}function Io(e,t,s=!1){const i=K0;let o=Mf;t&&(o+=", "+t),s&&(o+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(i)).filter(l=>Ws(l)),r=Array.prototype.slice.apply(e.querySelectorAll(o));return r.length?((l,c)=>l.filter(d=>c.indexOf(d)===-1))(n,r):n}function Bi(e,t=!1,s=!1,i=!1){const o=Io(e,i?".ag-tab-guard":null,s),n=t?We(o):o[0];return n?(n.focus({preventScroll:!0}),!0):!1}function $i(e,t,s,i){const o=Io(t,s?':not([tabindex="-1"])':null),n=Je(e);let r;s?r=o.findIndex(l=>l.contains(n)):r=o.indexOf(n);const a=r+(i?-1:1);return a<0||a>=o.length?null:o[a]}function Dm(e,t=5){let s=0;for(;e&&kd(e)===null&&++s<=t;)e=e.parentElement;return kd(e)===null?null:e}var aR=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",lR=class extends gr{constructor(e,t,s){super(t,s),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(aR)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:s,labelAlignment:i,disabled:o}=this.config;o!=null&&this.setDisabled(o),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),s!=null&&this.setLabelWidth(s),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Lt(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Qe(t,!1),Ni(t,"presentation")):(Qe(t,!0),Ni(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const s=this.getGui().classList;return s.toggle("ag-label-align-left",e==="left"),s.toggle("ag-label-align-right",e==="right"),s.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(Ha(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Xn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},Pm=class extends lR{constructor(e,t,s,i){super(e,t,s),this.className=i}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:s}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),s!=null&&this.onValueChange(s),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),s=this.getLabel();s==null||s==""||A0(e)!==null?Yn(e,""):Yn(e,t??"")}setAriaLabel(e){return Vo(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return xs(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}};function cR(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}var Si=class extends Pm{constructor(e,t,s="text",i="input"){super(e,e?.template??cR(i),[],t),this.inputType=s,this.displayFieldTag=i,this.eLabel=we,this.eWrapper=we,this.eInput=we}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:s,className:i}=this;e.classList.add(`${i}-label`),t.classList.add(`${i}-input-wrapper`),s.classList.add(`${i}-input`),this.addCss("ag-input-field"),s.id=s.id||`ag-${this.getCompId()}-input`;const{inputName:o,inputWidth:n}=this.config;o!=null&&this.setInputName(o),n!=null&&this.setInputWidth(n),this.addInputListeners(),this.activateTabIndex([s])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Vt(this.eInput,"type",e))}getInputElement(){return this.eInput}setInputWidth(e){return Ha(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Vt(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Vo(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Xn(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Vt(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Vt(this.eInput,"autocomplete",t)}return this}},Au=class extends Si{constructor(e,t="ag-checkbox",s="checkbox"){super(e,t,s),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const s=this.eInput;s.checked=e,s.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,s){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:s});const i=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:i.id,name:i.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),s=this.selected=e.target.checked;this.refreshSelectedClass(s),this.dispatchChange(s,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},Lu={selector:"AG-CHECKBOX",component:Au},dR=class extends Au{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},qi=class extends Si{constructor(e,t="ag-text-field",s="text"){super(e,t,s)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const s=this.eInput;return s.value!==e&&(s.value=te(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=s=>{Em(s)&&s.key&&!e.test(s.key)&&s.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:s=>{s.clipboardData?.getData("text")?.split("").some(o=>!e.test(o))&&s.preventDefault()}})}},Cl={selector:"AG-INPUT-TEXT-FIELD",component:qi},uR=class extends Si{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const s=super.setValue(e,t);return this.eInput.value=e,s}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},hR={selector:"AG-INPUT-TEXT-AREA",component:uR},Ou=class extends qi{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const n=Number.parseFloat(e.value),r=isNaN(n)?"":this.normalizeValue(n.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:s,max:i,step:o}=this.config;typeof t=="number"&&this.setPrecision(t),typeof s=="number"&&this.setMin(s),typeof i=="number"&&this.setMax(i),typeof o=="number"&&this.setStep(o)}onWheel(e){Je(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const s=this.precision;if(s==null)return e;if(t){const o=Number.parseFloat(e).toFixed(s);return Number.parseFloat(o).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=s)return e;if(s>0)return`${i[0]}.${i[1].slice(0,s)}`}return i[0]}setMin(e){return this.min===e?this:(this.min=e,Vt(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Vt(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Vt(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(s=>super.setValue(s,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,s){if(te(s)){let i=this.isScientificNotation(s);if(i&&this.eInput.validity.valid)return e(s);if(!i){s=this.adjustPrecision(s);const o=this.normalizeValue(s);i=s!=o}if(i)return t(s)}return e(s)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},pR={selector:"AG-INPUT-NUMBER-FIELD",component:Ou},gR=class extends qi{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=hi();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Je(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Wt(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,Vt(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Wt(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,Vt(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Vt(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Ot(this.getValue())??void 0}setDate(e,t){this.setValue(Wt(e??null,this.includeTime),t)}},Tm={selector:"AG-INPUT-DATE-FIELD",component:gR},fR=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",mR="ag-active-item",vR=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}),CR=class extends gr{constructor(e,t,s){super(vR(e,t)),this.label=t,this.value=s,this.eText=we}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(mR,e),kf(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const s=this.getGui();B0(s,e),G0(s,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Cu(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},wR=class extends gr{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(fR)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case I.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const s=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(s)}break;case I.DOWN:case I.UP:e.preventDefault(),this.navigate(t);break;case I.PAGE_DOWN:case I.PAGE_UP:case I.PAGE_HOME:case I.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:s}=e,i=s??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();Lt(this.getGui()),this.listItems=[],this.refreshAriaRole()}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const s=this.options.findIndex(i=>i.value===e);if(s!==-1){const i=this.options[s];this.value=i.value,this.displayValue=i.text,this.highlightItem(this.listItems[s]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Ws(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const s=this.getGui(),{scrollTop:i,clientHeight:o}=s,{offsetTop:n,offsetHeight:r}=t;(n+r>i+o||n<i)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const s=new CR(this.cssIdentifier,t,e);s.setParentComponent(this);const i=this.createManagedBean(s);this.listItems.push(i),this.getGui().appendChild(i.getGui())}navigate(e){const t=e===I.DOWN;let s;const{listItems:i,highlightedItem:o}=this;if(!o)s=t?i[0]:We(i);else{let r=i.indexOf(o)+(t?1:-1);r=Math.min(Math.max(r,0),i.length-1),s=i[r]}this.highlightItem(s)}navigateToPage(e){const{listItems:t,highlightedItem:s}=this;if(!s||t.length===0)return;const i=t.indexOf(s),o=this.options.length-1,n=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/n);let a=-1;e===I.PAGE_HOME?a=0:e===I.PAGE_END?a=o:e===I.PAGE_DOWN?a=Math.min(i+r,o):e===I.PAGE_UP&&(a=Math.max(i-r,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){Ni(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((s,i)=>{s.setIndex(i+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},bR=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}",xR={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},yR=class extends Pm{constructor(e){if(super(e,e?.template||xR,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=we,this.eWrapper=we,this.eDisplayField=we,this.eIcon=we,this.registerCSS(bR),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:s,variableWidth:i,minPickerWidth:o,maxPickerWidth:n}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!i,s!=null&&this.setPickerMaxHeight(s),o!=null&&this.setPickerMinWidth(o),n!=null&&this.setPickerMaxWidth(n)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:s,inputWidth:i}=this.config;if(s){const o=this.beans.iconSvc.createIconNoSpan(s);o&&this.eIcon.appendChild(o)}i!=null&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),bd(e,!1),this.ariaRole&&Ni(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case I.UP:case I.DOWN:case I.ENTER:case I.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case I.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:s,pickerAriaLabelValue:i,modalPicker:o=!0},maxPickerHeight:n,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:c,eWrapper:d}=this,u={modal:o,eChild:e,closeOnEsc:!0,closedCallback:()=>{const v=yf(c);this.beforeHidePicker(),v&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(s,i),anchorToElement:d};e.style.position="absolute";const h=c.popupSvc,g=h.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=wu(La(d)),a&&(e.style.maxWidth=a)):Ha(e,a??La(d));const f=n??`${mu(h.getPopupParent())}px`;return e.style.setProperty("max-height",f),this.alignPickerToComponent(),g.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:s,gos:i},eWrapper:o,pickerComponent:n}=this,r=i.get("enableRtl")?"right":"left";s.positionPopupByComponent({type:t,eventSource:o,ePopup:n.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();bd(t,e);const s=this.eWrapper.classList;s.toggle("ag-picker-expanded",e),s.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Ha(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},SR=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}",Nu=class extends yR{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(SR)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:ma(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:s}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),s&&t==null&&(this.eDisplayField.textContent=s),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new wR("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),s=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",s),q0(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:i=>{i?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===I.TAB&&this.hidePicker(),t){case I.ENTER:case I.UP:case I.DOWN:case I.PAGE_UP:case I.PAGE_DOWN:case I.PAGE_HOME:case I.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case I.ESCAPE:super.onKeyDown(e);break;case I.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,s){const{listComponent:i,config:{placeholder:o},eDisplayField:n,tooltipFeature:r}=this;if(this.value===e||!i)return this;if(s||i.setValue(e,!0),i.getValue()===this.getValue())return this;let l=i.getDisplayValue();return l==null&&o&&(l=o),n.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},RR={selector:"AG-SELECT",component:Nu},FR=':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',Hu=typeof window!="object"||!window?.document?.fonts?.forEach,jo=(e,t,s,i,o,n)=>{if(Hu)return;i&&(e=`@layer ${CSS.escape(i)} { ${e} }`);let r=Ao.map.get(t);if(r||(r=[],Ao.map.set(t,r)),r.some(d=>d.css===e))return;const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.dataset.agGlobalCss=s,a.textContent=e;const l={css:e,el:a,priority:o};let c;for(const d of r){if(d.priority>o)break;c=d}if(c){c.el.insertAdjacentElement("afterend",a);const d=r.indexOf(c);r.splice(d+1,0,l)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),r.push(l)},km=(e,t,s,i)=>{jo(FR,e,"shared",t,0,s),i?.forEach((o,n)=>o.forEach(r=>jo(r,e,n,t,0,s)))},ER=e=>{Ao.grids.add(e)},DR=e=>{if(Ao.grids.delete(e),Ao.grids.size===0){Ao.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}},vp,Ao=(vp=typeof window=="object"?window:{}).agStyleInjectionState??(vp.agStyleInjectionState={map:new WeakMap,grids:new Set}),Et=e=>new Mm(e),ei="$default",PR=0,Mm=class{constructor({feature:e,params:t,modeParams:s={},css:i,cssImports:o}){this.feature=e,this.css=i,this.cssImports=o,this.modeParams={[ei]:{...s[ei]??{},...t??{}},...s}}use(e,t,s){let i=this._inject;if(i==null){let{css:o}=this;if(o){const n=`ag-theme-${this.feature??"part"}-${++PR}`;typeof o=="function"&&(o=o()),o=`:where(.${n}) {
|
|
9
9
|
${o}
|
|
@@ -63,7 +63,7 @@ See ${Zf(e,t)}`;return Array.isArray(i)?i.concat(n):[i,n]}var OT={1:"Charting Ag
|
|
|
63
63
|
`)}checkProperties(e,t,s,i,o){const n=["__ob__","__v_skip","__metadata__"],r=s4(Object.getOwnPropertyNames(e),[...n,...t,...s],s),a=Object.keys(r);for(const l of a){const c=r[l];let d=`invalid ${i} property '${l}' did you mean any of these: ${c.slice(0,8).join(", ")}.`;s.includes("context")&&(d+=`
|
|
64
64
|
If you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),Gn(d)}if(a.length>0&&o){const l=this.beans.frameworkOverrides.getDocLink(o);Gn(`to see all the valid ${i} properties please check: ${l}`)}}};function s4(e,t,s){const i={},o=e.filter(n=>!t.some(r=>r===n));if(o.length>0)for(const n of o)i[n]=Id({inputValue:n,allSuggestions:s}).values;return i}var i4=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),o4={moduleName:"Validation",version:ee,beans:[t4]};function Xv(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var n4=class extends O{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const s=(i,o)=>{i.hasChildren()&&e&&!o?i.childrenAfterFilter=i.childrenAfterGroup.filter(n=>{const r=n.childrenAfterFilter&&n.childrenAfterFilter.length>0,a=n.data&&this.filterManager.doesRowPassFilter({rowNode:n});return r||a}):i.childrenAfterFilter=i.childrenAfterGroup,Xv(i)};if(this.doingTreeDataFiltering()){const i=(n,r)=>{if(n.childrenAfterGroup)for(let a=0;a<n.childrenAfterGroup.length;a++){const l=n.childrenAfterGroup[a],c=r||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?i(n.childrenAfterGroup[a],c):s(l,c)}s(n,r)},o=n=>i(n,!1);t.executeFromRootNode(o)}else{const i=o=>s(o,!1);t.forEachChangedNodeDepthFirst(i,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}},r4=class extends Ku{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,s,i,o){this.comp=e;const n=hr(this,this.beans.context,o);this.eButtonShowMainFilter=s,this.eFloatingFilterBody=i,this.setGui(t,n),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(n),this.setupLeft(n),this.setupHover(n),this.setupFocus(n),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(n),this.setupUi(),n.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(n);const r=()=>this.onColDefChanged(n);n.addManagedListeners(this.column,{colDefChanged:r}),n.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&r()}}),n.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,s=e.colDef;return xe(t.gos,{colDef:s,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,s=!!e.floatingFilter;this.active=t&&s}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=Jt("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new en(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();Vo(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Je(t)===this.eGui)return;const o=$i(t,this.eGui,null,e.shiftKey);if(o){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),o.focus();return}const n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:n},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let s=this.column;do if(s=e?t.getColBefore(s):t.getColAfter(s),!s)break;while(!s.getColDef().filter||!s.getColDef().floatingFilter);return s}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case I.UP:case I.DOWN:case I.LEFT:case I.RIGHT:if(t)return;Vi(e);case I.ENTER:t&&Bi(this.eGui)&&e.preventDefault();break;case I.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const s=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&Ei(e.relatedTarget,"ag-floating-filter");if(s&&i&&e.target===this.eGui){const o=this.lastFocusEvent,n=!!(o&&o.key===I.TAB);if(o&&n){const r=o.shiftKey;Bi(this.eGui,r)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new qu(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!zt(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:s,gos:i}=this,o=n=>{if(n?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const r=this.comp.getFloatingFilterComp();r&&r.then(a=>{if(a){if(i.get("enableFilterHandlers")){const d=n;let u="filter";d?.afterFloatingFilter?u="ui":d?.afterDataChange?u="dataChanged":n?.source==="api"&&(u="api"),this.updateFloatingFilterParams(this.userCompDetails,u);return}const l=t?.getCurrentFloatingFilterParentModel(s),c=n?{...n,columns:n.columns??[],source:n.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,c)}})};[this.destroySyncListener]=e.addManagedListeners(s,{filterChanged:o}),t?.isFilterActive(s)&&o(null)}setupWidth(e){const t=()=>{const s=`${this.column.getActualWidth()}px`;this.comp.setWidth(s)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const s=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,o=this.active?i?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,n=this.comp.getFloatingFilterComp();!n||!o?this.updateCompDetails(e,o,s):n.then(r=>{!r||i?.areFilterCompsDifferent(this.userCompDetails??null,o)?this.updateCompDetails(e,o,s):this.updateFloatingFilterParams(o,"colDef")})}updateCompDetails(e,t,s){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),s&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let s=e.params;this.comp.getFloatingFilterComp()?.then(i=>{typeof i?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(s={...s,model:ht(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),i.refresh(s))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function a4(e,t){const s=e.colModel.getCol(t);if(!s){Be(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:s,positionBy:"auto"})}function l4(e){e.menuSvc?.hidePopupMenu()}var c4={moduleName:"SharedMenu",version:ee,beans:[kF],apiFunctions:{showColumnMenu:a4,hidePopupMenu:l4}},d4=class extends n2{postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getDefaultPopupParent(){return this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:s,event:i}=e,o=t.getBoundingClientRect(),n=this.getParentRect();this.setAlignedTo(t,s);let r=!1;const a=()=>{const l=this.keepXYWithinBounds(s,o.top-n.top,0),c=s.clientWidth>0?s.clientWidth:200;r||(s.style.minWidth=`${c}px`,r=!0);const u=n.right-n.left-c;let h;return this.gos.get("enableRtl")?(h=f(),h<0&&(h=g(),this.setAlignedStyles(s,"left")),h>u&&(h=0,this.setAlignedStyles(s,"right"))):(h=g(),h>u&&(h=f(),this.setAlignedStyles(s,"right")),h<0&&(h=0,this.setAlignedStyles(s,"left"))),{x:h,y:l};function g(){return o.right-n.left-2}function f(){return o.left-n.left-c}};this.positionPopup({ePopup:s,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e,"subMenu",s,t,i instanceof MouseEvent?i:void 0)})}callPostProcessPopup(e,t,s,i,o){const n=this.gos.getCallback("postProcessPopup");if(n){const{column:r,rowNode:a}=e;n({column:r,rowNode:a,ePopup:s,type:t,eventSource:i,mouseEvent:o})}}getActivePopups(){return this.popupList.map(e=>e.element)}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const s of this.popupList)t.applyThemeClasses(s.wrapper)}}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return Bs(e)}},Rl={moduleName:"Popup",version:ee,beans:[d4]},u4=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function h4(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function p4(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function g4(e,t){const s=e.colModel.getColDefCol(t);if(s)return e.colFilter?.destroyFilter(s,"api")}function f4(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function m4(e){return e.filterManager?.getFilterModel()??{}}function v4(e,t,s){const{gos:i,colModel:o,colFilter:n}=e;s&&!i.get("enableFilterHandlers")&&($(288),s=!1);const r=o.getColDefCol(t);return r?n?.getModelForColumn(r,s)??null:null}function C4(e,t,s){return e.filterManager?.setColumnFilterModel(t,s)??Promise.resolve()}function w4(e,t){const s=e.colModel.getCol(t);if(!s){Be(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:s,containerType:"columnFilter",positionBy:"auto"})}function b4(e){e.menuSvc?.hideFilterMenu()}function x4(e,t){const s=e.colModel.getCol(t);if(!s){Be(12,{colKey:t});return}return e.colFilter?.getHandler(s,!0)}function y4(e,t){const{colModel:s,colFilter:i,gos:o}=e;if(!o.get("enableFilterHandlers")){$(287);return}const{colId:n,action:r}=t;if(n){const a=s.getColById(n);a&&i?.updateModel(a,r)}else i?.updateAllModels(r)}var S4={filterHandler:()=>({doesFilterPass:()=>!0})},R4=class extends O{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...jm},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",s){const{colModel:i,dataTypeSvc:o,filterManager:n}=this.beans;if(o?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const r=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((c,d)=>{const u=e[d];r.push(this.setModelOnFilterWrapper(c,u)),l.delete(d)}),l.forEach(c=>{const d=i.getColDefCol(c)||i.getCol(c);if(!d){$(62,{colId:c});return}if(!d.isFilterAllowed()){$(63,{colId:c});return}const u=this.getOrCreateFilterWrapper(d,!0);if(!u){$(64,{colId:c});return}r.push(this.setModelOnFilterWrapper(u,e[c],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{r.push(this.setModelOnFilterWrapper(l,null))});Le.all(r).then(()=>{const l=this.getModel(!0),c=[];this.allColumnFilters.forEach((d,u)=>{const h=a?a[u]:null,g=l?l[u]:null;Kn(h,g)||c.push(d.column)}),c.length>0?n?.onFilterChanged({columns:c,source:t}):s&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:s,initialModel:i,beans:{colModel:o}}=this;if(s.forEach((n,r)=>{const a=this.getModelFromFilterWrapper(n);te(a)&&(t[r]=a)}),!e)for(const n of Object.keys(i)){const r=i[n];te(r)&&!s.has(n)&&o.getCol(n)?.isFilterAllowed()&&(t[n]=r)}return t}setState(e,t,s="api"){if(this.state.clear(),t)for(const i of Object.keys(t)){const o=t[i];this.state.set(i,{model:ht(this.model,i),state:o})}this.setModel(e,s,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let s=!1;return e.forEach((i,o)=>{const n=i.state;n!=null&&(s=!0,t[o]=n)}),s?t:void 0}getModelFromFilterWrapper(e){const s=e.column.getColId();if(e.isHandler)return ht(this.model,s);const i=e.filter;return i?typeof i.getModel!="function"?($(66),null):i.getModel():ht(this.initialModel,s)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=c=>c?c.isFilterActive?c.isFilterActive():($(67),!1):!1,{colModel:t,gos:s}=this.beans,i=!!Fd(s),o=c=>{if(!c.isPrimary())return!0;const u=!t.isPivotActive();return!c.isValueActive()||!u?!1:t.isPivotMode()?!0:i},n=[],r=[],a=(c,d,u)=>{d&&(o(c)?n.push(u):r.push(u))},l=[];return this.allColumnFilters.forEach(c=>{const d=c.column,u=d.getColId();if(c.isHandler)l.push(Le.resolve().then(()=>{a(d,this.isHandlerActive(d),{colId:u,isHandler:!0,handler:c.handler,handlerParams:c.handlerParams})}));else{const h=Xs(c);h&&l.push(h.then(g=>{a(d,e(g),{colId:u,isHandler:!1,comp:g})}))}}),Le.all(l).then(()=>{this.activeAggregateFilters=n,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){const s=[];return this.allColumnFilters.forEach(i=>{const o=i.column;if(i.isHandler)s.push(Le.resolve().then(()=>{this.setColFilterActive(o,this.isHandlerActive(o),e,t)}));else{const n=Xs(i);n&&s.push(n.then(r=>{this.setColFilterActive(o,r.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Le.all(s)}doFiltersPass(e,t,s){const{data:i,aggData:o}=e,n=s?this.activeAggregateFilters:this.activeColumnFilters,r=s?o:i,a=this.model;for(let l=0;l<n.length;l++){const c=n[l],{colId:d,isHandler:u}=c;if(d!==t)if(u){const{handler:h,handlerParams:g}=c;if(!h.doesFilterPass({node:e,data:r,model:ht(a,d),handlerParams:g}))return!1}else{const h=c.comp;if(typeof h.doesFilterPass!="function"){Be(91);continue}if(!h.doesFilterPass({node:e,data:r}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:s}=this.beans,i=()=>{this.isAlive()&&s?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:s}=e,i=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",s).then(()=>{this.allColumnFilters.forEach(o=>{const{column:n,isHandler:r}=o;i!==n.getColId()&&(r&&o.handler.onAnyFilterChanged?.(),Xs(o,r)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(s=>{const i=s.isHandler;i&&s.handler.onNewRowsLoaded?.();const o=Xs(s,i);o&&t.push(o.then(n=>{n.onNewRowsLoaded?.()}))}),Le.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:s,colModel:i}=this.beans;return(o,n)=>{const r=n?i.getCol(n):e;return r?s.getValue(r,o,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const s=t?.filter;return s?s.isFilterActive():ht(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=te(ht(this.model,e.getColId()));if(t)return t;const s=this.beans.groupFilter;return s?.isGroupFilter(e)?s.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?Xs(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const s=Xs(t);return s?s.then(i=>({comp:i,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const s=this.getOrCreateFilterWrapper(e,t);return s?.isHandler?s.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let s=this.cachedFilter(e);return!s&&t&&(s=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,s)),s}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return By(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":T2(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,s,i,o,n){const r=()=>{const c=this.createFilterCompParams(e,o,n),d=i(c,o);return _S(this.beans.userCompFactory,t,d,s)},a=r();return a?{compDetails:a,createFilterUi:c=>(c?r():a).newAgStackInstance()}:null}createFilterInstance(e,t,s,i){const o=this.beans.selectableFilter;o?.isSelectable(t)&&(t=o.getFilterDef(e,t));const{handler:n,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,s)??{},l=this.createFilterComp(e,t,s,i,!!n,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:n,handlerGenerator:a,handlerParams:r};const{compDetails:c,createFilterUi:d}=l;return this.isGlobalButtons&&(c.params?.buttons?.length||$(281,{colId:e.getColId()})),{compDetails:c,handler:n,handlerGenerator:a,handlerParams:r,createFilterUi:d}}createBaseFilterParams(e,t){const{filterManager:s,rowModel:i}=this.beans;return xe(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:o=>s?.doesRowPassOtherFilters(e.getColId(),o)??!0,rowModel:i})}createFilterCompParams(e,t,s,i){const o=this.filterChangedCallbackFactory(e),n=this.createBaseFilterParams(e,i);if(n.filterChangedCallback=o,n.filterModifiedCallback=i?()=>{}:r=>this.filterModified(e,r),t){const r=n,a=e.getColId(),l=ht(this.model,a);r.model=l,r.state=this.state.get(a)??{model:l},r.onModelChange=(c,d)=>{this.updateStoredModel(a,c),this.refreshHandlerAndUi(e,c,"ui",!1,d).then(()=>{o({...d,source:"columnFilter"})})},r.onStateChange=c=>{this.updateState(e,c),this.updateOrRefreshFilterUi(e)},r.onAction=(c,d,u)=>{this.updateModel(e,c,d),this.dispatchLocalEvent({type:"filterAction",column:e,action:c,event:u})},r.getHandler=()=>this.getHandler(e,!0),r.onUiChange=c=>this.filterUiChanged(e,c),r.source=s}return n}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,s){const i=t(),o={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(s),o}createFilterWrapper(e){const{compDetails:t,handler:s,handlerGenerator:i,handlerParams:o,createFilterUi:n}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),r=e.getColId();if(s)return delete this.initialModel[r],s.init?.({...o,source:"init",model:ht(this.model,r)}),{column:e,isHandler:!0,handler:s,handlerGenerator:i,handlerParams:o,filterUi:this.createFilterUiForHandler(t,n)};if(n){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,n,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,s){const{gos:i,frameworkOverrides:o,registry:n}=this.beans;let r;const a=g=>{const f=g.filter;if(Cm(f)){const v=f.handler;return v||(r=f.doesFilterPass,r?()=>({doesFilterPass:r}):void 0)}return typeof f=="string"?f:void 0},l=i.get("enableFilterHandlers"),c=l?a(t):void 0,d=g=>()=>this.createBean(n.createDynamicBean(g,!0));let u,h;if(typeof c=="string"){const g=i.get("filterHandlers")?.[c];g!=null?u=g:v2.has(c)&&(u=d(c),h=c)}else u=c;if(!u){let g;const{compName:f,jsComp:v,fwComp:C}=xm(o,t);f?g=f:v==null&&C==null&&t.filter===!0&&(g=s),h=this.handlerMap[g],h&&(u=d(h))}return u?{filterHandler:u,handlerNameOrCallback:r??h}:l?(tt(i)&&$(277,{colId:e.getColId()}),S4):void 0}createHandler(e,t,s){const i=this.createHandlerFunc(e,t,s);if(!i)return;const o=fc(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:n,filterHandler:r}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,o);return{handler:a,handlerParams:l,handlerGenerator:n??r}}createHandlerFromFunc(e,t,s){const i=e.getColDef(),o=t(xe(this.gos,{column:e,colDef:i})),n=this.createHandlerParams(e,s);return{handler:o,handlerParams:n}}createHandlerParams(e,t){const s=e.getColDef(),i=e.getColId(),o=this.filterChangedCallbackFactory(e);return xe(this.gos,{colDef:s,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:n=>this.beans.filterManager?.doesRowPassOtherFilters(i,n)??!0,onModelChange:(n,r)=>{this.updateStoredModel(i,n),this.refreshHandlerAndUi(e,n,"handler",!1,r).then(()=>{o({...r,source:"columnFilter"})})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:s,groupFilter:i}=this.beans;this.allColumnFilters.forEach((n,r)=>{let a;n.column.isPrimary()?a=t.getColDefCol(r):a=t.getCol(r),!(a&&a===n.column)&&(e.push(n.column),this.disposeFilterWrapper(n,"columnChanged"),this.disposeColumnListener(r))});const o=i&&e.every(n=>i.isGroupFilter(n));e.length>0&&!o&&s?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const s=this.beans.groupFilter;return s?.isGroupFilter(e)?s.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:s,frameworkOverrides:i,selectableFilter:o}=this.beans,n=h=>{const g=this.getOrCreateFilterUi(e);g?.then(f=>{h(tr(f))})},r=e.getColDef(),a=o?.isSelectable(r)?o.getFilterDef(e,r):r,l=L2(i,a,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",c=this.gos.get("enableFilterHandlers"),d=fc(s,a,this.createFilterCompParams(e,c,"init",!0)),u=xe(this.gos,{column:e,filterParams:d,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:n,showParentFilter:t});if(c){const h=u,g=e.getColId(),f=this.filterChangedCallbackFactory(e);h.onUiChange=v=>this.floatingFilterUiChanged(e,v),h.model=ht(this.model,g),h.onModelChange=(v,C)=>{this.updateStoredModel(g,v),this.refreshHandlerAndUi(e,v,"floating",!0,C).then(()=>{f({...C,source:"columnFilter"})})},h.getHandler=()=>this.getHandler(e,!0),h.source="init"}return YS(s,r,u,l)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,s,i){const o="paramsUpdated";if(e.isHandler){const n=t.getColId();delete this.initialModel[n],this.state.delete(n);const r=e.filterUi,a=this.createFilterUiForHandler(s,i);e.filterUi=a;const l=this.eventSvc;r?.created?r.promise.then(c=>{this.destroyBean(c),l.dispatchEvent({type:"filterDestroyed",source:o,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:o,column:t})}else this.destroyFilter(t,o)}destroyFilter(e,t="api"){const s=e.getColId(),i=this.allColumnFilters.get(s);this.disposeColumnListener(s),delete this.initialModel[s],i&&this.disposeFilterWrapper(i,t).then(o=>{o&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let s=!1;const{column:i,isHandler:o,filterUi:n}=e,r=i.getColId();o&&(s=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const a=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(n){if(n.created)return n.promise.then(l=>(s=o?s:!!l?.isFilterActive(),this.destroyBean(l),a(),s));a()}return Le.resolve(s)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const s=this.allColumnFilters.get(e);if(!s)return;const i=this.beans,o=s.column,n=o.getColDef(),r=o.isFilterAllowed(),a=this.getDefaultFilter(o),l=i.selectableFilter,c=l?.isSelectable(n)?l.getFilterDef(o,n):n,d=r?this.createHandlerFunc(o,c,this.getDefaultFilter(o)):void 0,u=!!d,h=s.isHandler;if(h!=u){this.destroyFilter(o,"paramsUpdated");return}const{compDetails:g,createFilterUi:f}=(r?this.createFilterComp(o,c,a,C=>C,u,"colDef"):null)??{compDetails:null,createFilterUi:null},v=g?.params??fc(i.userCompFactory,c,this.createFilterCompParams(o,u,"colDef"));if(h){const C=d?.handlerNameOrCallback??d?.filterHandler,w=ht(this.model,e);if(s.handlerGenerator!=C){const b=s.handler,{handler:x,handlerParams:y}=this.createHandlerFromFunc(o,d.filterHandler,v);s.handler=x,s.handlerParams=y,s.handlerGenerator=C,delete this.model[e],x.init?.({...y,source:"init",model:null}),this.destroyBean(b),w!=null&&this.beans.filterManager?.onFilterChanged({columns:[o],source:t})}else{const b=this.createHandlerParams(o,g?.params);s.handlerParams=b,s.handler.refresh?.({...b,source:"colDef",model:w})}}if(this.areFilterCompsDifferent(s.filterUi?.compDetails??null,g)||!s.filterUi||!g){this.destroyFilterUi(s,o,g,f);return}s.filterUi.filterParams=v,Xs(s,h)?.then(C=>{(C?.refresh?C.refresh(v):!0)===!1?this.destroyFilterUi(s,o,g,f):this.dispatchLocalEvent({type:"filterParamsChanged",column:o,params:v})})}refreshHandlerAndUi(e,t,s,i,o){const n=this.cachedFilter(e);if(!n)return i&&this.getOrCreateFilterWrapper(e,!0),Le.resolve();if(!n.isHandler)return Le.resolve();const{filterUi:r,handler:a,handlerParams:l}=n;return C2(()=>{if(r){const{created:c,filterParams:d}=r;if(c)return r.promise.then(u=>u?{filter:u,filterParams:d}:void 0);r.refreshed=!0}return Le.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},s,o)}setColumnFilterWrapper(e,t){const s=e.getColId();this.allColumnFilters.set(s,t),this.allColumnListeners.set(s,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(s)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:s}=e,{componentClass:i}=t;return!(s===i||s?.render&&i?.render&&s.render===i.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const s=this.getOrCreateFilterUi(t);return s?new Promise(i=>{s.then(o=>{i(tr(o))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:s})=>{this.setModelForColumn(e,t).then(()=>s())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:i,model:o}=this,n=e.getColId(),r=i.get(n);return r?r.model??null:ht(o,n)}const s=this.cachedFilter(e);return s?this.getModelFromFilterWrapper(s):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let s=()=>{};const i=new Promise(o=>{s=o});return this.columnModelUpdates.push({key:e,model:t,resolve:s}),i}return new Promise(s=>{this.setModelForColumnLegacy(e,t).then(i=>s(i))})}getStateForColumn(e){return this.state.get(e)??{model:ht(this.model,e)}}setModelForColumnLegacy(e,t){const s=this.beans.colModel.getColDefCol(e),i=s?this.getOrCreateFilterWrapper(s,!0):null;return i?this.setModelOnFilterWrapper(i,t):Le.resolve()}setColDefPropsForDataType(e,t,s){const i=e.filter,o=i===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):i;if(typeof o!="string")return;let n,r;const a=this.beans,{filterParams:l,filterValueGetter:c}=e;o==="agMultiColumnFilter"?{filterParams:n,filterValueGetter:r}=a.multiFilter?.getParamsForDataType(l,c,t,s)??{}:{filterParams:n,filterValueGetter:r}=E2(o,l,c,t,s,a,this.getLocaleTextFunc()),e.filterParams=n,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,s,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",s)),e.dispatchColEvent("filterChanged",s,i)}setModelOnFilterWrapper(e,t,s){return new Le(i=>{if(e.isHandler){const n=e.column,r=n.getColId(),a=this.model[r];if(this.updateStoredModel(r,t),s&&t===a){i();return}this.refreshHandlerAndUi(n,t,"api").then(()=>i());return}const o=Xs(e);if(o){o.then(n=>{if(typeof n?.setModel!="function"){$(65),i();return}(n.setModel(t)||Le.resolve()).then(()=>i())});return}i()})}updateStoredModel(e,t){te(t)?this.model[e]=t:delete this.model[e];const s=this.state.get(e),i={model:t,state:s?.state};this.state.set(e,i)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(s=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:s,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,s){const i=e.getColId(),o=this.cachedFilter(e),n=()=>o?.filterUi;Rp(t,n,()=>ht(this.model,i),()=>this.state.get(i),r=>this.updateState(e,r),r=>n()?.filterParams?.onModelChange(r,s),o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0)}updateAllModels(e,t){const s=[];this.allColumnFilters.forEach((i,o)=>{const n=this.beans.colModel.getColDefCol(o);n&&Rp(e,()=>i.filterUi,()=>ht(this.model,o),()=>this.state.get(o),r=>this.updateState(n,r),r=>{this.updateStoredModel(o,r),this.dispatchLocalEvent({type:"filterAction",column:n,action:e}),s.push(this.refreshHandlerAndUi(n,r,"ui"))},i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0)}),s.length&&Le.all(s).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Um(()=>this.cachedFilter(e)?.filterUi,()=>ht(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:s}=this;for(const o of s)if(o.source==="COLUMN_MENU")return!1;let i=!1;for(const o of e.keys()){const n=e.get(o);if(n.valid===!1)return!1;(n.model??null)!==ht(t,o)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:s}=this;return(s.get(e)?.model??null)!==ht(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const s=this.beans.filterPanelSvc;return s?.isActive?!!s.getState(e.getColId()):!1}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function F4(e){return!!e.filterManager?.isAnyFilterPresent()}function E4(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var D4=class extends O{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:i})=>this.onAdvFilterEnabledChanged(i),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:s}=this;this.alwaysPassFilter=s.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=s.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,s="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,s)}setFilterModel(e,t="api",s){if(this.isAdvFilterEnabled()){s||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){Fd(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:s,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Le.resolve()).then(()=>{const o={source:t,type:"filterChanged",columns:i};s&&Ft(o,s),this.eventSvc.dispatchEvent(o),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Fd(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){$(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}},P4=class extends O{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,s,i){e&&!e.isColumn||this.showPopup(e,o=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:s,mouseEvent:t,ePopup:o})},s,t.target,zt(this.gos),i)}showMenuAfterButtonClick(e,t,s,i){if(e&&!e.isColumn)return;let o=-1,n="left";const r=zt(this.gos);!r&&this.gos.get("enableRtl")&&(o=1,n="right");const a=r?void 0:4*o,l=r?void 0:4;this.showPopup(e,c=>{this.popupSvc?.positionPopupByComponent({type:s,eventSource:t,ePopup:c,nudgeX:a,nudgeY:l,alignSide:n,keepWithinBounds:!0,position:"under",column:e})},s,t,r,i)}showPopup(e,t,s,i,o,n){const r=e?this.createBean(new R2(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e){Be(57);return}const a=Dt({tag:"div",cls:`ag-menu${o?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:v=>this.trapFocusWithin(v,a)}),a.appendChild(r?.getGui());let l;const c=()=>r?.afterGuiDetached(),d=Vy(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,u=v=>{Ip(e,!1,"contextMenu");const C=v instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),C&&i&&Ws(i)&&Dm(i)?.focus({preventScroll:!0}),c(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,s,e),n?.()},h=this.getLocaleTextFunc(),g=o&&s!=="columnFilter"?h("ariaLabelColumnMenu","Column Menu"):h("ariaLabelColumnFilter","Column Filter"),f=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:u,positionCallback:()=>t(a),anchorToElement:d,ariaLabel:g});f&&(this.hidePopup=l=f.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:s,hidePopup:l})}),Ip(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,s,e)}trapFocusWithin(e,t){e.key!==I.TAB||e.defaultPrevented||$i(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),Bi(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,s){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:s??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},T4=class extends O{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,s){if(!t)return;const i=e.getColDef(),{selectableFilter:o,valueSvc:n}=this.beans,r=s??o?.getFilterValueGetter(e.getColId())??i.filterValueGetter;return r?this.executeFilterValueGetter(r,t.data,e,t,i):n.getValue(e,t)}executeFilterValueGetter(e,t,s,i,o){const{expressionSvc:n,valueSvc:r}=this.beans,a=xe(this.gos,{data:t,node:i,column:s,colDef:o,getValue:r.getValueCallback.bind(r,i)});return typeof e=="function"?e(a):n?.evaluate(e,a)}},k4={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},M4=class extends et{constructor(){super(k4,[Cl]),this.eFloatingFilterText=we}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const s=e,i=s.getHandler();if(i.getModelAsString){const o=i.getModelAsString(s.model);this.eFloatingFilterText.setValue(o)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const s=t.getModelAsString(e);this.eFloatingFilterText.setValue(s)}})}refresh(e){this.init(e)}},th=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const s=e.filterOptions??t;this.filterOptions!==s&&(this.filterOptions=s,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const s=[["displayKey"],["displayName"],["predicate","test"]],i=o=>o.some(n=>t[n]!=null)?!0:($(72,{keys:o}),!1);if(!s.every(i)){this.filterOptions=e.filter(o=>o===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const s=t[0];if(typeof s=="string")return s;if(s.displayKey)return s.displayKey;$(73)}else $(74)}getCustomOption(e){return this.customFilterOptions[e]}};function jn(e,t,s){return s==null?e.splice(t):e.splice(t,s)}function tl(e){return e==null||typeof e=="string"&&e.trim().length===0}function I4(e){return e==="AND"||e==="OR"?e:"AND"}function A4(e,t,s){if(e==null)return;const{predicate:i}=e;if(i!=null&&!t.some(o=>o==null))return i(t,s)}function L4(e,t){let s=e.length;return s>t&&(e.splice(t),$(78),s=t),s}function nr(e,t){const s=t.getCustomOption(e);if(s){const{numberOfInputs:o}=s;return o??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:e==="inRange"?2:1}var sh=class extends A2{constructor(e,t,s){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=s,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new th;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=I4(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions();const t=this.getGui();this.isReadOnly()?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,s)=>{const i=s===0?e:this.optionsFactory.defaultOption;t.setValue(i,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const s=!e.operator,i=!t.operator;if(!s&&i||s&&!i)return!1;let n;if(s){const r=e,a=t;n=this.areSimpleModelsEqual(r,a)}else{const r=e,a=t;n=r.operator===a.operator&&ui(r.conditions,a.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return n}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Le.resolve();if(e.operator){const i=e;let o=i.conditions;o==null&&(o=[],$(77));const n=L4(o,this.maxNumConditions),r=this.getNumConditions();if(n<r)this.removeConditionsAndOperators(n);else if(n>r)for(let l=r;l<n;l++)this.createJoinOperatorPanel(),this.createOption();const a=i.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),o.forEach((l,c)=>{this.eTypes[c].setValue(l.type,!0),this.setConditionIntoUi(l,c)})}else{const i=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(i.type,!0),this.setConditionIntoUi(i,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Le.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&($(79),t=1),this.maxNumConditions=t;let s=e.numAlwaysVisibleConditions??1;s<1&&($(80),s=1),s>t&&($(81),s=t),this.numAlwaysVisibleConditions=s}createOption(){const e=this.getGui(),t=this.createManagedBean(new Nu);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const s=this.createEValue();this.eConditionBodies.push(s),e.appendChild(s),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,o=>this.resetInput(o)),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=Dt({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),s=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,o=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,o),this.resetJoinOperatorOr(s,i,o),this.isReadOnly()||(t.onValueChange(this.listener),s.onValueChange(this.listener))}createJoinOperator(e,t,s){const i=this.createManagedBean(new dR);e.push(i);const o="ag-filter-condition-operator";return i.addCss(o),i.addCss(`${o}-${s}`),t.appendChild(i.getGui()),i}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const s of t)e.addOption(s);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,s=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:s?this.getLocaleTextFunc()(s.displayKey,s.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let s=0;s<this.getNumConditions();s++)this.isConditionUiComplete(s)?e=s:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const s=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<s){this.removeConditionsAndOperators(s+1);const i=e+1,o=s-i;o>0&&this.removeConditionsAndOperators(i,o),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((i,o)=>{const n=this.isConditionDisabled(o,e);i.setDisabled(n||this.filterListOptions.length<=1),o===1&&(Xn(this.eJoinPanels[0],n),this.eJoinAnds[0].setDisabled(n),this.eJoinOrs[0].setDisabled(n))}),this.eConditionBodies.forEach((i,o)=>{Qe(i,this.isConditionBodyVisible(o))});const s=(t??this.getJoinOperator())==="OR";for(const i of this.eJoinAnds)i.setValue(!s,!0);for(const i of this.eJoinOrs)i.setValue(s,!0);this.forEachInput((i,o,n,r)=>{this.setElementDisplayed(i,o<r),this.setElementDisabled(i,this.isConditionDisabled(n,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:s,eConditionBodies:i,eJoinPanels:o,eJoinAnds:n,eJoinOrs:r}=this;this.removeComponents(s,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(o,a,t),this.removeComponents(n,a,t),this.removeComponents(r,a,t)}removeElements(e,t,s){const i=jn(e,t,s);for(const o of i)ni(o)}removeComponents(e,t,s){const i=jn(e,t,s);for(const o of i)ni(o.getGui()),this.destroyBean(o)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const s=this.getInputs(0)[0];s instanceof Si&&this.isConditionBodyVisible(0)?t=s.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column))return;e.onStateChange({model:e.model});let t=-1,s=-1,i=!1;const o=this.getJoinOperator();for(let r=this.getNumConditions()-1;r>=0;r--)if(this.isConditionUiComplete(r))t===-1&&(t=r,s=r);else{const a=r>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(r-1),l=r<t;(a||l)&&(this.removeConditionsAndOperators(r,1),i=!0,l&&s--)}let n=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),n=!0),this.shouldAddNewConditionAtEnd(s===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),n=!0),n&&this.updateConditionStatusesAndValues(s,o),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=s}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}getPlaceholderText(e,t){let s=this.translate(e);if(typeof this.filterPlaceholder=="function"){const i=this.eTypes[t].getValue(),o=this.translate(i);s=this.filterPlaceholder({filterOptionKey:i,filterOption:o,placeholder:s})}else typeof this.filterPlaceholder=="string"&&(s=this.filterPlaceholder);return s}resetPlaceholder(){const e=this.getLocaleTextFunc();this.forEachInput((t,s,i,o)=>{if(!(t instanceof Si))return;const n=s===0&&o>1?"inRangeStart":s===0?"filterOoo":"inRangeEnd",r=s===0&&o>1?e("ariaFilterFromValue","Filter from value"):s===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(n,i)),t.setInputAriaLabel(r)})}setElementValue(e,t,s){e instanceof Si&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){pp(e)&&Qe(e.getGui(),t)}setElementDisabled(e,t){pp(e)&&Xn(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Si&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,s)=>{this.forEachPositionTypeInput(s,t,e)})}forEachPositionInput(e,t){const s=this.getConditionType(e);this.forEachPositionTypeInput(e,s,t)}forEachPositionTypeInput(e,t,s){const i=nr(t,this.optionsFactory),o=this.getInputs(e);for(let n=0;n<o.length;n++){const r=o[n];r!=null&&s(r,n,e,i)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return nr(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(s=>s==null))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,s)=>this.resetJoinOperatorAnd(t,s,this.joinOperatorId+s)),this.eJoinOrs.forEach((t,s)=>this.resetJoinOperatorOr(t,s,this.joinOperatorId+s)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const s=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(s).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,s){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),s)}resetJoinOperatorOr(e,t,s){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),s)}resetJoinOperator(e,t,s,i,o){this.updateJoinOperatorDisabled(e.setValue(s,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${o}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const e=(t,s)=>this.updateJoinOperatorDisabled(t,s);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const s=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((i,o,n)=>{n===t&&this.setElementValue(i,s[o]!=null?s[o]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,s,i)=>{this.setElementValue(t,s===0&&i===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,s=>{this.attachElementOnChange(s,this.listener)}))}hasInvalidInputs(){return!1}isReadOnly(){return!!this.params.readOnly}},Zv=class{constructor(e,t,s,i,o,n){this.alive=!0,this.context=e,this.eParent=o;const r=US(t,s,i);r&&r.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;o.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&a.setDate(l),c!=null&&a.setDisabled?.(c),n?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){Qe(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},ih=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function Qv(e,t){const{dateFrom:s,dateTo:i,type:o}=e||{};return[s&&Ot(s,void 0,!0)||null,i&&Ot(i,void 0,!0)||null].slice(0,nr(o,t))}var pg=1e3,gg=1/0,O4=class extends sh{constructor(){super("dateFilter",Qv,ih),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=pg,this.maxValidYear=gg,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,c)=>{const d=e[l];if(d!=null)if(isNaN(d))$(82,{param:l});else return d==null?c:Number(d);return c},s=t("minValidYear",pg),i=t("maxValidYear",gg);this.minValidYear=s,this.maxValidYear=i,s>i&&$(83);const{minValidDate:o,maxValidDate:n}=e,r=o instanceof Date?o:Ot(o);this.minValidDate=r;const a=n instanceof Date?n:Ot(n);this.maxValidDate=a,r&&a&&r>a&&$(84)}createDateCompWrapper(e){const{beans:{userCompFactory:t,context:s,gos:i},params:o}=this,n=new Zv(s,t,o.colDef,xe(i,{onDateChanged:()=>this.onUiChanged(),filterParams:o,location:"filter"}),e);return this.addDestroyFunc(()=>n.destroy()),n}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=Dt({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,s,i){const o=Dt({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(o),e.appendChild(o),s.push(this.createDateCompWrapper(o))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),jn(this.eConditionPanelsFrom,e,t),jn(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,s){const i=jn(e,t,s);for(const o of i)o.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:s,minValidYear:i,maxValidYear:o}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(s){if(e>s)return!1}else if(e.getUTCFullYear()>o)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput((s,i,o,n)=>{o!==e||!t||i>=n||(t=t&&this.isValidDateValue(s.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),s={},i=this.getValues(e),o=this.params.useIsoSeparator?"T":" ";return i.length>0&&(s.dateFrom=Wt(i[0],!0,o)),i.length>1&&(s.dateTo=Wt(i[1],!0,o)),{dateFrom:null,dateTo:null,filterType:this.filterType,type:t,...s}}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),s=e("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(t),i.setInputAriaLabel(s)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,o,n)=>{i<n&&t.push(s.getDate())}),t}translate(e){return e==="lessThan"?super.translate("before"):e==="greaterThan"?super.translate("after"):super.translate(e)}},Jv=class extends O{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,s=new th;this.optionsFactory=s,s.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(s,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,s=this.optionsFactory;s.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:s,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:s}=t,i=[];if(s){const r=t;i.push(...r.conditions??[])}else i.push(t);const o=s&&s==="OR"?"some":"every",n=this.params.getValue(e.node);return i[o](r=>this.individualConditionPasses(e,r,n))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:s,maxNumConditions:i}}=e;if(t==null)return;let n=Km(t)?t.conditions:[t];const r=s?.map(d=>typeof d=="string"?d:d.displayKey)??this.defaultOptions;if(!(!n||n.every(d=>r.find(u=>u===d.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const c=this.filterType;if((n&&!n.every(d=>d.filterType===c)||t.filterType!==c)&&(n=n.map(d=>({...d,filterType:c})),l=!0),typeof i=="number"&&n&&n.length>i&&(n=n.slice(0,i),l=!0),l){const d=n.length>1?{...t,filterType:c,conditions:n}:{...n[0],filterType:c};this.params={...e,model:d},e.onModelChange(d)}}individualConditionPasses(e,t,s){const i=this.optionsFactory,o=this.mapValuesFromModel(t,i),n=i.getCustomOption(t.type),r=A4(n,o,s);return r??(s==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,s,t,e))}},eC=class extends Jv{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:s,includeBlanksInGreaterThan:i,includeBlanksInLessThan:o,includeBlanksInRange:n}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(s)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(o)return!0;break;case"inRange":if(n)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,s){const i=s.type;if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const o=this.comparator(),n=e[0]!=null?o(e[0],t):0;switch(i){case"equals":return n===0;case"notEqual":return n!==0;case"greaterThan":return n>0;case"greaterThanOrEqual":return n>=0;case"lessThan":return n<0;case"lessThanOrEqual":return n<=0;case"inRange":{const r=o(e[1],t);return this.params.filterParams.inRangeInclusive?n>=0&&r<=0:n>0&&r<0}case"blank":return tl(t);case"notBlank":return!tl(t);default:return $(76,{filterModelType:i}),!0}}},tC={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},N4={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},oh=class extends O{constructor(e,t,s){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=s}getModelAsString(e,t){const s=this.getLocaleTextFunc(),i=t==="filterToolPanel";if(!e)return i?ti(this,"filterSummaryInactive"):null;if(e.operator!=null){const n=e,a=(n.conditions??[]).map(c=>this.getModelAsString(c,t)),l=n.operator==="AND"?"andCondition":"orCondition";return a.join(` ${ti(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return i?ti(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):s(e.type,e.type);{const n=e,r=this.optionsFactory.getCustomOption(n.type),{displayKey:a,displayName:l,numberOfInputs:c}=r||{};return a&&l&&c===0?s(a,l):this.conditionToString(n,i,n.type==="inRange"||c===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:s}=e;this.optionsFactory=t,this.filterParams=s}conditionForToolPanel(e,t,s,i,o,n){let r;const a=this.getTypeKey(e);return a&&(r=ti(this,a)),o&&n&&(r=this.getLocaleTextFunc()(o,n)),r!=null?t?`${r} ${ti(this,"filterSummaryInRangeValues",[s(),i()])}`:`${r} ${s()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},sC=class extends oh{constructor(e,t){super(e,t,s=>{const{dataTypeSvc:i,valueSvc:o}=this.beans,n=t.column,r=i?.getDateFormatterFunction(n),a=r?r(s??void 0):s;return o.formatValue(n,null,a)}),this.filterTypeKeys=tC}conditionToString(e,t,s,i,o){const{type:n}=e,r=Ot(e.dateFrom),a=Ot(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,c=t?this.formatValue.bind(this):h=>Md(h,l),d=()=>r!==null?c(r):"null",u=()=>a!==null?c(a):"null";if(t){const h=this.conditionForToolPanel(n,s,d,u,i,o);if(h!=null)return h}return s?`${d()}-${u()}`:r!=null?c(r):`${n}`}};function H4(e,t){const s=t;return s<e?-1:s>e?1:0}var G4=class extends eC{constructor(){super(Qv,ih),this.filterType="date",this.FilterModelFormatterClass=sC}comparator(){return this.params.filterParams.comparator??H4}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}},iC=class extends et{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let s;t?s=e.conditions[0]:s=e,this.lastType=s.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const s=e;return this.isTypeEditable(s.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const s=e;this.onModelUpdated(s.model)}}setParams(e){const t=new th;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const s=this.optionsFactory.defaultOption;t||(this.lastType=s),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(s);this.setEditable(i)}refresh(e){this.params=e;const t=e,s=this.reactive;if((!s||t.source==="colDef")&&this.updateParams(e),s){const{source:i,model:o}=t;if(i==="dataChanged"||i==="ui")return;this.onModelUpdated(o)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return t==null||t==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.readOnly&&this.hasSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},B4={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},V4=class extends iC{constructor(){super(B4,[Cl]),this.eReadOnlyText=we,this.eDateWrapper=we,this.FilterModelFormatterClass=sC,this.filterType="date",this.defaultOptions=ih}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const s=e?Ot(e.dateFrom):null;this.dateComp.setDate(s),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Qe(this.eDateWrapper,e),Qe(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const s=t.model,i=Wt(e),o=i==null?null:{...s??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(o,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=zu(e,this.defaultDebounceMs);return xe(this.gos,{onDateChanged:ut(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:s,params:i}=this;this.dateComp=new Zv(e,t,i.column.getColDef(),this.getDateComponentParams(),s,o=>{o.setInputAriaLabel(this.getAriaLabel(i))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},z4={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},W4=class extends et{constructor(){super(z4,[Cl]),this.eDateInput=we,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){const t=this.eDateInput.getInputElement(),s=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=s&&hi();const{minValidYear:i,maxValidYear:o,minValidDate:n,maxValidDate:r,buttons:a,includeTime:l,colDef:c}=e.filterParams||{},d=this.beans.dataTypeSvc,u=l??d?.getDateIncludesTimeFlag?.(c.cellDataType)??!1;if(s?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text",n&&i&&$(85),r&&o&&$(86),n&&r){const[h,g]=[n,r].map(f=>f instanceof Date?f:Ot(f));h&&g&&h.getTime()>g.getTime()&&$(87)}n?n instanceof Date?t.min=Md(n):t.min=n:i&&(t.min=`${i}-01-01`),r?r instanceof Date?t.max=Md(r):t.max=r:o&&(t.max=`${o}-12-31`),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return Ot(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,s=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(Wt(e,s))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},nh=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Yd(e){const{allowedCharPattern:t}=e??{};return t??null}function Xd(e){return e==null||isNaN(e)?null:e}function oC(e,t){const{filter:s,filterTo:i,type:o}=e||{};return[Xd(s),Xd(i)].slice(0,nr(o,t))}var j4=class extends sh{constructor(){super("numberFilter",oC,nh),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}setElementValue(e,t,s){const{numberFormatter:i}=this.params,o=!s&&i?i(t??null):t;super.setElementValue(e,o)}createEValue(){const e=Yd(this.params),t=Dt({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,s,i){const o=this.createManagedBean(i?new qi({allowedCharPattern:i}):new Ou);o.addCss(`ag-filter-${s}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())}removeEValues(e,t){const s=i=>this.removeComponents(i,e,t);s(this.eValuesFrom),s(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,o,n)=>{i<n&&t.push(Xd(this.stringToFloat(s.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}stringToFloat(e){if(typeof e=="number")return e;let t=Ns(e);t!=null&&t.trim()===""&&(t=null);const s=this.params.numberParser;return s?s(t):t==null||t.trim()==="-"?null:Number.parseFloat(t)}createCondition(e){const t=this.getConditionType(e),s={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(s.filter=i[0]),i.length>1&&(s.filterTo=i[1]),s}getInputs(e){const{eValuesFrom:t,eValuesTo:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{t.getInputElement().validity.valid||(e=!0)}),e}},nC=class extends oh{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=tC}conditionToString(e,t,s,i,o){const{filter:n,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const c=this.conditionForToolPanel(a,s,()=>l(n),()=>l(r),i,o);if(c!=null)return c}return s?`${l(n)}-${l(r)}`:n!=null?l(n):`${a}`}},_4=class extends eC{constructor(){super(oC,nh),this.filterType="number",this.FilterModelFormatterClass=nC}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},rC=class extends O{constructor(e){super(),this.params=e,this.eInput=we,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new qi(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const s=i=>this.onValueChanged(i);this.addManagedListeners(t,{input:s,keydown:s})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){const{eInput:s}=this;s.setInputAriaLabel(e),t!==void 0&&s.setAutoComplete(t)}};function Zd(e){const t=e?.trim();return t===""?e:t}function aC(e,t){const{filter:s,filterTo:i,type:o}=e||{};return[s||null,i||null].slice(0,nr(o,t))}var U4={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},lC=class extends iC{constructor(){super(...arguments),this.eFloatingFilterInputContainer=we,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(U4)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const t=e.browserAutoComplete??!1,{inputSvc:s,defaultDebounceMs:i,readOnly:o}=this;if(s.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=bl(e.filterParams),!o){const n=zu(e.filterParams,i),r=ut(this,this.syncUpWithParentFilter.bind(this),n);s.setValueChangedListener(r)}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,s=t.getValue();Lt(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(s,!0)}syncUpWithParentFilter(e){const t=e.key===I.ENTER,s=this.reactive;if(s&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:i,params:o,lastType:n}=this;let r=i.getValue();if(o.filterParams.trimInput&&(r=Zd(r),i.setValue(r,!0)),s){const a=o,l=a.model,c=this.convertValue(r),d=c==null?null:{...l??{filterType:this.filterType,type:n??this.optionsFactory.defaultOption},filter:c};a.onModelChange(d,{afterFloatingFilter:!0})}else o.parentFilterInstance(a=>{a?.onFloatingFilterChanged(n||null,r||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},$4=class extends O{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new Ou),this.eTextInput=this.createManagedBean(new qi),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),s=this.eTextInput.getGui();e.appendChild(t),e.appendChild(s),this.setupListeners(t,i=>this.onValueChanged(i)),this.setupListeners(s,i=>this.onValueChanged(i))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},q4=class extends lC{constructor(){super(...arguments),this.FilterModelFormatterClass=nC,this.filterType="number",this.defaultOptions=nh}updateParams(e){Yd(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=Yd(e.filterParams),this.allowedCharPattern?this.createManagedBean(new rC({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new $4)}convertValue(e){return e?Number(e):null}},rh=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],K4=class extends sh{constructor(){super("textFilter",aC,rh),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),s={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(s.filter=i[0]),i.length>1&&(s.filterTo=i[1]),s}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,o,n)=>{i<n&&t.push(Ns(s.getValue()))}),t}createEValue(){const e=Dt({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:s}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,s,"to"),e}createFromToElement(e,t,s){const i=this.createManagedBean(new qi);i.addCss(`ag-filter-${s}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const s=n=>this.removeComponents(n,e,t),{eValuesFrom:i,eValuesTo:o}=this;s(i),s(o)}},cC=class extends oh{constructor(){super(...arguments),this.filterTypeKeys=N4}conditionToString(e,t,s,i,o){const{filter:n,filterTo:r,type:a}=e;if(t){const l=d=>()=>ti(this,"filterSummaryTextQuote",[d]),c=this.conditionForToolPanel(a,s,l(n),l(r),i,o);if(c!=null)return c}return s?`${n}-${r}`:n!=null?`${n}`:`${a}`}},Y4=({filterOption:e,value:t,filterText:s})=>{if(s==null)return!1;switch(e){case"contains":return t.includes(s);case"notContains":return!t.includes(s);case"equals":return t===s;case"notEqual":return t!=s;case"startsWith":return t.indexOf(s)===0;case"endsWith":{const i=t.lastIndexOf(s);return i>=0&&i===t.length-s.length}default:return!1}},X4=e=>e,Z4=e=>e==null?null:e.toString().toLowerCase(),Q4=class extends Jv{constructor(){super(aC,rh),this.filterType="text",this.FilterModelFormatterClass=cC}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??Y4,this.formatter=t.textFormatter??(t.caseSensitive?X4:Z4)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,s,i){const o=e.map(h=>this.formatter(h))||[],n=this.formatter(t),{api:r,colDef:a,column:l,context:c,filterParams:{textFormatter:d}}=this.params;if(s.type==="blank")return tl(t);if(s.type==="notBlank")return!tl(t);const u={api:r,colDef:a,column:l,context:c,node:i.node,data:i.data,filterOption:s.type,value:n,textFormatter:d};return o.some(h=>this.matcher({...u,filterText:h}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=s=>{const i={...s},{filter:o,filterTo:n}=s;return o&&(i.filter=Zd(o)??null),n&&(i.filterTo=Zd(n)??null),i};return Km(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},J4=class extends lC{constructor(){super(...arguments),this.FilterModelFormatterClass=cC,this.filterType="text",this.defaultOptions=rh}createFloatingFilterInputService(){return this.createManagedBean(new rC)}};function ek(e){return!!e.quickFilter?.isFilterPresent()}function tk(e){return e.quickFilter?.getText()}function sk(e){e.quickFilter?.resetCache()}var ik=class extends O{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",s=>this.setFilter(s.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:s,pivotResultCols:i}=this.beans,o=t.isPivotMode(),n=e?.getColumns(),r=t.getColDefCols();let a=(o&&!s.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:r)??[];n&&(a=a.concat(n)),this.colsToUse=s.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(s=>t?this.doesRowPassCache(e,s):this.doesRowPassNoCache(e,s))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return te(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){$(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),s=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,s&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(s=>{const i=this.getTextForColumn(s,e);return te(i)&&i.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let s;e?(this.checkGenerateAggText(t),s=t.quickFilterAggregateText):s=this.getAggText(t);const{quickFilterParts:i,matcher:o}=this;return o(i,s)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let s=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const o=xe(this.gos,{value:s,node:t,data:t.data,column:e,colDef:i});s=i.getQuickFilterText(o)}return te(s)?s.toString().toUpperCase():null}getAggText(e){const t=[];for(const s of this.colsToUse){const i=this.getTextForColumn(s,e);te(i)&&t.push(i)}return t.join(`
|
|
65
65
|
`)}},ok={moduleName:"ClientSideRowModelFilter",version:ee,rowModels:["clientSide"],beans:[n4]},ah={moduleName:"FilterCore",version:ee,beans:[D4],apiFunctions:{isAnyFilterPresent:F4,onFilterChanged:E4},css:[u4],dependsOn:[ok]},dC={moduleName:"FilterValue",version:ee,beans:[T4]},Fl={moduleName:"ColumnFilter",version:ee,beans:[R4,P4],dynamicBeans:{headerFilterCellCtrl:r4},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:h4,getColumnFilterInstance:p4,destroyFilter:g4,setFilterModel:f4,getFilterModel:m4,getColumnFilterModel:v4,setColumnFilterModel:C4,showColumnFilter:w4,hideColumnFilter:b4,getColumnFilterHandler:x4,doFilterAction:y4},dependsOn:[ah,Rl,dC,c4]},nk={moduleName:"CustomFilter",version:ee,userComponents:{agReadOnlyFloatingFilter:M4},dependsOn:[Fl]},rk={moduleName:"TextFilter",version:ee,dependsOn:[Fl],userComponents:{agTextColumnFilter:{classImp:K4,params:{useForm:!0}},agTextColumnFloatingFilter:J4},dynamicBeans:{agTextColumnFilterHandler:Q4}},ak={moduleName:"NumberFilter",version:ee,dependsOn:[Fl],userComponents:{agNumberColumnFilter:{classImp:j4,params:{useForm:!0}},agNumberColumnFloatingFilter:q4},dynamicBeans:{agNumberColumnFilterHandler:_4}},lk={moduleName:"DateFilter",version:ee,dependsOn:[Fl],userComponents:{agDateColumnFilter:{classImp:O4,params:{useForm:!0}},agDateInput:W4,agDateColumnFloatingFilter:V4},dynamicBeans:{agDateColumnFilterHandler:G4}},ck={moduleName:"QuickFilterCore",version:ee,rowModels:["clientSide"],beans:[ik],dependsOn:[ah,dC]},dk={moduleName:"QuickFilter",version:ee,apiFunctions:{isQuickFilterPresent:ek,getQuickFilter:tk,resetQuickFilter:sk},dependsOn:[ck]},uk={moduleName:"ExternalFilter",version:ee,dependsOn:[ah]},hk=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",jc=(e,t,s)=>{const{editModelSvc:i}=e,o=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,n=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=o||n;return r?.length?r.join(s("tooltipValidationErrorSeparator",". ")):void 0},pk=class extends O{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,s,i){e&&t.destroyBean(e);const o=this.gos,n=Wc(o),{column:r,eGui:a}=t,l=r.getColDef();!i&&n&&!l.headerComponent&&(i=ma(()=>a.querySelector(".ag-header-cell-text")));const c="header",u=this.beans.colNames.getDisplayNameForColumn(r,"header",!0),h=s??u,g={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>s??l?.headerTooltipValueGetter?.(xe(o,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})};let f=this.createTooltipFeature(g);return f&&(f=t.createBean(f),t.setRefreshFunction("tooltip",()=>f.refreshTooltip())),f}setupHeaderGroupTooltip(e,t,s,i){e&&t.destroyBean(e);const o=this.gos,n=Wc(o),{column:r,eGui:a}=t,l=r.getColGroupDef();!i&&n&&!l?.headerGroupComponent&&(i=ma(()=>a.querySelector(".ag-header-group-text")));const c="headerGroup",u=this.beans.colNames.getDisplayNameForColumnGroup(r,"header"),h=s??u,g={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>s??l?.headerTooltipValueGetter?.(xe(o,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>{const v={column:r};return l&&(v.colDef=l),v}},f=this.createTooltipFeature(g);return f&&t.createBean(f)}enableCellTooltipFeature(e,t,s){const{beans:i}=this,{gos:o,editSvc:n}=i,{column:r,rowNode:a}=e;let l="cell";const c=()=>{const g=!!!n?.isEditing(e)&&jc(i,e,this.getLocaleTextFunc());if(g)return l="cellEditor",g;l="cell";const f=r.getColDef(),v=a.data;if(f.tooltipField&&te(v))return zn(v,f.tooltipField,r.isTooltipFieldContainsDots());const C=f.tooltipValueGetter;return C?C(xe(o,{location:"cell",colDef:r.getColDef(),column:r,rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,value:e.value,valueFormatted:e.valueFormatted})):null},d=Wc(o);s||(d&&!e.isCellRenderer()?s=()=>{const h=!!n?.isEditing(e);if(!h&&jc(i,e,this.getLocaleTextFunc()))return!0;if(!r.isTooltipEnabled())return!1;const v=ma(()=>{const C=e.eGui;return C.children.length===0?C:C.querySelector(".ag-cell-value")});return!h&&v()}:s=()=>!n?.isEditing(e));const u={getGui:()=>e.eGui,getLocation:()=>l,getTooltipValue:t!=null?()=>t:c,shouldDisplayTooltip:s,getAdditionalParams:()=>({column:r,colDef:r.getColDef(),rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(u,i)}setupFullWidthRowTooltip(e,t,s,i){const o={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>s,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},n=this.beans,r=n.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(o,n);if(a)return t.createBean(a,r)}setupCellEditorTooltip(e,t){const{beans:s}=this,{context:i}=s,o=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!o)return;const n={getGui:()=>o,getTooltipValue:()=>jc(s,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=s,l=a?.getRowValidationModel()?.getRowValidationMap(),c=a?.getCellValidationModel()?.getCellValidationMap(),d=!!l&&l.size>0,u=!!c&&c.size>0;return d||u}},r=this.createTooltipFeature(n,s);if(r)return e.createBean(r,i)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=te(t.tooltipField)||te(t.tooltipValueGetter)||te(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},gk=class extends s2{createTooltipComp(e,t){KS(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},uC={moduleName:"Tooltip",version:ee,beans:[pk],dynamicBeans:{tooltipFeature:Gm,highlightTooltipFeature:i2,tooltipStateManager:gk},userComponents:{agTooltipComponent:r2},dependsOn:[Rl],css:[hk]},xo=class{constructor(e){this.cellValueChanges=e}},_c=class extends xo{constructor(e,t,s,i){super(e),this.initialRange=t,this.finalRange=s,this.ranges=i}},fk=10,fg=class{constructor(e){this.actionStack=[],this.maxStackSize=e||fk,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},mk=class extends O{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},s=this.activeCellEdit!==null&&fv(this.activeCellEdit,t),i=this.activeRowEdit!==null&&IE(this.activeRowEdit,t);if(!(s||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:n,rowIndex:r,column:a,oldValue:l,value:c}=e,d={rowPinned:n,rowIndex:r,columnId:a.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const s=e.get("undoRedoCellEditingLimit");if(s<=0)return;this.undoStack=new fg(s),this.redoStack=new fg(s),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:o=>{o.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,o=>{this.gridBodyCtrl=o.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:s,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const o=this.undoRedo(s,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:o})}redo(e){const{eventSvc:t,undoStack:s,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const o=this.undoRedo(i,s,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:o})}undoRedo(e,t,s,i,o){if(!e)return!1;const n=e.pop();return n?.cellValueChanges?(this.processAction(n,r=>r[i],o),n instanceof _c?this.processRange(n.ranges||[n[s]]):this.processCell(n.cellValueChanges),t.push(n),!0):!1}processAction(e,t,s){for(const i of e.cellValueChanges){const{rowIndex:o,rowPinned:n,columnId:r}=i,a={rowIndex:o,rowPinned:n},l=zs(this.beans,a);l.displayed&&l.setDataValue(r,t(i),s)}}processRange(e){let t;const s=this.beans.rangeSvc;s.removeAllCellRanges(!0),e.forEach((i,o)=>{if(!i)return;const n=i.startRow,r=i.endRow;o===e.length-1&&(t={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:i.startColumn,columns:i.columns};s.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:s,rowPinned:i}=t,o={rowIndex:s,rowPinned:i},n=zs(this.beans,o),r={rowPinned:t.rowPinned,rowIndex:n.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(e){const{rowIndex:t,columnId:s,rowPinned:i}=e,{colModel:o,focusSvc:n,rangeSvc:r}=this.beans,a=o.getCol(s);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const c={rowIndex:t,column:a,rowPinned:i};n.setFocusedCell({...c,forceBrowserFocus:!0}),r?.setRangeToCell(c)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new xo(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const s=new xo(this.cellValueChanges);this.pushActionsToUndoStack(s)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new xo(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new _c(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:s}=this.beans;t&&ai(s)?e=new _c(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new xo(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const s=new xo(t??[]);this.pushActionsToUndoStack(s),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},vk=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",Ck={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},wk=class extends yl{constructor(){super(Ck,[Lu]),this.eEditor=we}initialiseEditor(e){const t=e.value??void 0,s=this.eEditor;s.setValue(t),s.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(s,{fieldValueChanged:o=>this.setAriaLabel(o.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),s=vl(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${s})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,s=this.getValue();return t?t({value:s,internalErrors:null,cellEditorParams:e}):null}},El=class extends yl{constructor(e){super(),this.cellEditorInput=e,this.eEditor=we}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:s}=this,{cellStartedEdit:i,eventKey:o,suppressPreventDefault:n}=e;s.getInputElement().setAttribute("title",""),t.init(s,e);let r,a=!0;i?(this.focusAfterAttached=!0,o===I.BACKSPACE||o===I.DELETE?r="":o&&o.length===1?n?a=!1:r=o:(r=t.getStartValue(),o!==I.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&r!=null&&s.setStartValue(r),this.addGuiEventListener("keydown",l=>{const{key:c}=l;(c===I.PAGE_UP||c===I.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;hi()||t.getFocusableElement().focus();const s=t.getInputElement();this.highlightAllOnFocus?s.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),s=e.getInputElement();t.focus(),s.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},bk={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},xk=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return bk}getAgComponents(){return[Tm]}init(e,t){this.eEditor=e,this.params=t;const{min:s,max:i,step:o,colDef:n}=t;s!=null&&e.setMin(s),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:s}=this,{min:i,max:o,getValidationErrors:n}=s;let r=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(i){const l=i instanceof Date?i:new Date(i);if(t<l){const c=l.toLocaleDateString();r.push(a("minDateValidation",`Date must be after ${c}`,[c]))}}if(o){const l=o instanceof Date?o:new Date(o);if(t>l){const c=l.toLocaleDateString();r.push(a("maxDateValidation",`Date must be before ${c}`,[c]))}}}return r.length||(r=null),n?n({value:t,cellEditorParams:s,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,s=e.getDate();return!te(s)&&!te(t.value)?t.value:s??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Wt(e,this.includeTime??!1)}},yk=class extends El{constructor(){super(new xk(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},Sk={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},Rk=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return Sk}getAgComponents(){return[Tm]}init(e,t){this.eEditor=e,this.params=t;const{min:s,max:i,step:o,colDef:n}=t;s!=null&&e.setMin(s),i!=null&&e.setMax(i),o!=null&&e.setStep(o),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,s=e.getInputElement().value,i=this.formatDate(this.parseDate(s??void 0)),{min:o,max:n,getValidationErrors:r}=t;let a=[];if(i){const l=new Date(i),c=this.getLocaleTextFunc();if(o){const d=new Date(o);if(l<d){const u=d.toLocaleDateString();a.push(c("minDateValidation",`Date must be after ${u}`,[u]))}}if(n){const d=new Date(n);if(l>d){const u=d.toLocaleDateString();a.push(c("maxDateValidation",`Date must be before ${u}`,[u]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,s=this.formatDate(t.getDate());return!te(s)&&!te(e.value)?e.value:e.parseValue(s??"")}getStartValue(){return Wt(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):Ot(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Wt(e??null,this.includeTime??!1)??void 0}},Fk=class extends El{constructor(){super(new Rk(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},Ek={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},Dk=class extends yl{constructor(){super(Ek,[hR]),this.eEditor=we}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:s,eventKey:i,maxLength:o,cols:n,rows:r}=e;this.focusAfterAttached=s,t.getInputElement().setAttribute("title",""),t.setMaxLength(o||200).setCols(n||60).setRows(r||10);let a;s?(this.focusAfterAttached=!0,i===I.BACKSPACE||i===I.DELETE?a="":i&&i.length===1?a=i:(a=this.getStartValue(e),i!==I.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}onKeyDown(e){const t=e.key;(t===I.LEFT||t===I.UP||t===I.RIGHT||t===I.DOWN||e.shiftKey&&t===I.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:s}=this,i=this.getLocaleTextFunc();e.setInputAriaLabel(i("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),s&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:s}=t,i=e.getValue();return!te(i)&&!te(s)?s:t.parseValue(i)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:s}=e,i=this.getLocaleTextFunc(),o=this.getValue();let n=[];return typeof o=="string"&&t!=null&&o.length>t&&n.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),s?s({value:o,internalErrors:n,cellEditorParams:e}):n}},Pk={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},Tk=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return Pk}getAgComponents(){return[pR]}init(e,t){this.eEditor=e,this.params=t;const{max:s,min:i,precision:o,step:n}=t;s!=null&&e.setMax(s),i!=null&&e.setMin(i),o!=null&&e.setPrecision(o),n!=null&&e.setStep(n);const r=e.getInputElement();t.preventStepping?e.addManagedElementListeners(r,{keydown:this.preventStepping}):t.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:s,getValidationErrors:i}=e,n=this.eEditor.getInputElement().valueAsNumber,r=this.getLocaleTextFunc();let a=[];return typeof n=="number"&&(t!=null&&n<t&&a.push(r("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),s!=null&&n>s&&a.push(r("maxValueValidation",`Must be less than or equal to ${s}.`,[String(s)]))),a.length||(a=null),i?i({value:n,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===I.UP||e.key===I.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,s=e.getValue();if(!te(s)&&!te(t.value))return t.value;let i=t.parseValue(s);if(i==null)return i;if(typeof i=="string"){if(i==="")return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){hi()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},kk=class extends El{constructor(){super(new Tk(()=>this.getLocaleTextFunc()))}},Mk={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},Ik=class extends yl{constructor(){super(Mk,[RR]),this.eEditor=we,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:s,gos:i}=this,{values:o,value:n,eventKey:r}=e;if(Xe(o)){$(58);return}this.startedByEnter=r!=null?r===I.ENTER:!1;let a=!1;o.forEach(u=>{const h={value:u},g=s.formatValue(e.column,null,u),f=g!=null;h.text=f?g:u,t.addOption(h),a=a||n===u}),a?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),c!=null&&t.setPickerMaxWidth(c),i.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:s}=e,i=this.getValue();let o=[];if(t&&!t.includes(i)){const n=this.getLocaleTextFunc();o.push(n("invalidSelectionValidation","Invalid selection."))}else o=null;return s?s({value:i,internalErrors:o,cellEditorParams:e}):o}},Ak={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},Lk=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return Ak}getAgComponents(){return[Cl]}init(e,t){this.eEditor=e,this.params=t;const s=t.maxLength;s!=null&&e.setMaxLength(s)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:s}=e,i=this.getValue(),o=this.getLocaleTextFunc();let n=[];return t!=null&&typeof i=="string"&&i.length>t&&n.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),n.length||(n=null),s?s({value:i,cellEditorParams:e,internalErrors:n}):n}getValue(){const{eEditor:e,params:t}=this,s=e.getValue();return!te(s)&&!te(t.value)?t.value:t.parseValue(s)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){hi()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),s=te(t)&&t.length||0;s&&e.getInputElement().setSelectionRange(s,s)}},mg=class extends El{constructor(){super(new Lk(()=>this.getLocaleTextFunc()))}};function Ok(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function Nk(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function hC(e,t,s="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,s),"ensureVisible")}function pC(e,t,s){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,s),"ensureVisible")}function Hk(e,t,s=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,s),"ensureVisible")}function Gk(e){e.undoRedo?.undo("api")}function Bk(e){e.undoRedo?.redo("api")}function Vk(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function zk(e){const t=e.editModelSvc?.getEditMap(),s=[];return t?.forEach((i,o)=>{const{rowIndex:n,rowPinned:r}=o;i.forEach((a,l)=>{const{editorValue:c,pendingValue:d,sourceValue:u,state:h}=a,g=Os(a);let f=c??d;f===ts&&(f=void 0);const v={newValue:f,oldValue:u,state:h,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:n,rowPinned:r};(h==="editing"||h==="changed"&&g)&&s.push(v)})}),s}function Wk(e,t=!1){const{editSvc:s}=e;if(s?.isBatchEditing()){if(t)for(const i of e.editModelSvc?.getEditPositions()??[])i.state==="editing"&&s.revertSingleCellEdit(i);else Ri(e,{persist:!0});No(e,void 0,{cancel:t})}else s?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function jk(e,t){const s=Ke(e,t);return e.editSvc?.isEditing(s)??!1}function _k(e,t){const{key:s,colKey:i,rowIndex:o,rowPinned:n}=t,{editSvc:r,colModel:a}=e,l=a.getCol(i);if(!l){$(12,{colKey:i});return}const d=zs(e,{rowIndex:o,rowPinned:n||null});if(!d){$(290,{rowIndex:o,rowPinned:n});return}if(!l.isCellEditable(d))return;n==null&&pC(e,o),hC(e,i),r?.startEditing({rowNode:d,column:l},{event:s?new KeyboardEvent("keydown",{key:s}):void 0,source:"api"})}function Uk(e){return e.editSvc?.validateEdit()||null}function $k(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function qk(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var Kk={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},Yk=class extends Mu{constructor(e){super(Kk),this.params=e}postConstruct(){Gi(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,s=i=>{Gd(this.gos,i,t.node,t.column,!0)||t.onKeyDown(i)};this.addManagedElementListeners(e,{keydown:s})}};function Xk(e,{column:t},s,i,o="ui"){if(s instanceof KeyboardEvent&&(s.key===I.TAB||s.key===I.ENTER||s.key===I.F2||s.key===I.BACKSPACE&&i))return!0;if(s?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const r=t?.getColDef(),a=Zk(e.gos,r),l=s?.type;return l==="click"&&s?.detail===1&&a===1||l==="dblclick"&&s?.detail===2&&a===2?!0:o==="api"?i??!1:!1}function Zk(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function Qd(e,{rowNode:t,column:s},i="ui"){const o=s.getColDef().editable,n=e.editModelSvc;return s.isColumnFunc(t,o)||!!n&&n.hasEdits({rowNode:t,column:s},{withOpenEditor:!0})}function Qk(e,t,s="ui"){const i=Qd(e,t,s);return i===!0||s==="ui"?i:e.colModel.getCols().some(n=>Qd(e,{rowNode:t.rowNode,column:n},s))}var sl=(e,t=!1)=>{if(e!==void 0)return Os(e)||t&&e.state==="editing"};function gC(e,t,s=!1){return sl(e.editModelSvc?.getEdit(t),s)}var fC=(e,t,s)=>{if(e)for(let i=0,o=e.length;i<o;++i){const n=e[i];if(n.data&&(sl(t?.getEdit({rowNode:n,column:s}))||sl(t?.getEdit({rowNode:n.pinnedSibling,column:s})))||fC(n.childrenAfterGroup,t,s))return!0}};function mC(e,t){const{column:s,rowNode:i}=t;return e.gos.get("groupTotalRow")&&!i?.footer?!1:fC(i?.childrenAfterGroup,e.editModelSvc,s)}function vC(e,{rowNode:t,column:s}){if(t=t.pinnedSibling,!!t)return sl(e.editModelSvc?.getEdit({rowNode:t,column:s}))}var Jk=class extends O{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:s}=this;if(t?.isBatchEditing()&&t.isEditing()){const o=gC(s,e)||mC(s,e)||vC(s,e);this.applyBatchingStyle(o)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},eM=class extends O{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:s}=this;let i=e.rowNode,o=t?.getEditRow(i);const n=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!o&&i.pinnedSibling&&(i=i.pinnedSibling,o=t?.getEditRow(i)),o){const r=Array.from(o.keys()).some(a=>{const l={rowNode:i,column:a};return gC(s,l,!0)||mC(s,l)||vC(s,l)});this.applyStyle(n,r);return}this.applyStyle(n)}applyStyle(e=!1,t=!1){const s=this.editSvc?.isBatchEditing()??!1,i=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:o})=>{o.toggleCss("ag-row-editing",i&&t),o.toggleCss("ag-row-batch-edit",i&&t&&s),o.toggleCss("ag-row-inline-editing",t),o.toggleCss("ag-row-not-inline-editing",!t),o.toggleCss("ag-row-editing-invalid",i&&t&&e)})}},tM=({rowModel:e,pinnedRowModel:t,editModelSvc:s},i)=>{const o=new Set;e.forEachNode(n=>i.has(n)&&o.add(n)),t?.forEachPinnedRow("top",n=>i.has(n)&&o.add(n)),t?.forEachPinnedRow("bottom",n=>i.has(n)&&o.add(n));for(const n of i)o.has(n)||s.removeEdits({rowNode:n});return o},sM=({editModelSvc:e},t,s)=>{for(const i of t)e?.getEditRow(i)?.forEach((o,n)=>!s.has(n)&&e.removeEdits({rowNode:i,column:n}))},iM=e=>()=>{const t=new Set(e.colModel.getCols()),s=e.editModelSvc.getEditMap(!0),i=new Set(s.keys());sM(e,tM(e,i),t)},oM=new Set(["undo","redo","paste","bulk","rangeSvc"]),nM=new Set(["ui","api"]),CC={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},rM=new Set(Object.keys(CC)),aM=new Set(["paste","rangeSvc","renderer","cellClear","redo","undo"]),ua={cancel:!0,source:"api"},lM={cancel:!1,source:"api"},Co={checkSiblings:!0},Rn={force:!0,suppressFlash:!0},cM=class extends O{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:i})=>{this.stopEditing(void 0,ua),this.createStrategy(i)});const t=iM(e),s=()=>{const i=this.model.getCellValidationModel().getCellValidationMap().size>0,o=this.model.getRowValidationModel().getRowValidationMap().size>0;return i||o?this.stopEditing(void 0,ua):this.isEditing()&&(this.isBatchEditing()?No(e,this.model.getEditPositions()):this.stopEditing(void 0,lM)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:s,filterChanged:s,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,ua)):(this.stopEditing(void 0,ua),this.batch=!1)}createStrategy(e){const{beans:t,gos:s,strategy:i}=this,o=vg(s,e);if(i){if(i.beanName===o)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(o,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,s,i="ui"){const o=Xk(this.beans,e,t,s,i);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}shouldStopEditing(e,t,s="ui"){return this.strategy?.shouldStop(e,t,s)??null}shouldCancelEditing(e,t,s="ui"){return this.strategy?.shouldCancel(e,t,s)??null}validateEdit(){return R5(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??Co)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:s=!0,event:i=null,source:o="ui",ignoreEventKey:n=!1,silent:r}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const a=Ke(this.beans,e);if(a&&!a.comp){a.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const l=this.shouldStartEditing(e,i,s,o);if(l===!1&&o!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,o)&&!t.continueEditing&&this.stopEditing(void 0,{source:o}),l&&this.isBatchEditing()&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start({position:e,event:i,source:o,ignoreEventKey:n,startedEdit:s,silent:r})}stopEditing(e,t){const{event:s,cancel:i,source:o="ui",forceCancel:n,forceStop:r}=t||{},{beans:a,model:l}=this;if(rM.has(o)&&this.isBatchEditing())return this.bulkRefresh(e),!1;const c=this.committing?CC[o]:o;if(!(this.committing||this.isEditing(e)||this.isBatchEditing()&&l.hasEdits(e,Co))||!this.strategy||this.stopping)return!1;this.stopping=!0;const u=Ke(a,e);u&&(u.onEditorAttachedFuncs=[]);let h=l.getEditMap(!0),g=!1;const f=!i&&(!!this.shouldStopEditing(e,s,c)||this.committing&&!this.batch)||(r??!1),v=i&&!!this.shouldCancelEditing(e,s,c)||(n??!1);if(f||v){Ri(a,{persist:!0,isCancelling:v||i,isStopping:f});const C=l.getEditMap(),w=this.processEdits(C,i,o);this.strategy?.stop(i,s);for(const b of w)l.clearEditValue(b);this.bulkRefresh(void 0,h);for(const b of l.getEditPositions(C)){const x=Ke(a,b),y=Os(b);x?.refreshCell({force:!0,suppressFlash:!y})}h=C,g||(g=f)}else if(s instanceof KeyboardEvent&&this.batch&&this.strategy?.midBatchInputsAllowed(e)&&this.isEditing(e,{withOpenEditor:!0})){const{key:C}=s,w=C===I.ENTER,b=C===I.ESCAPE,x=C===I.TAB;(w||x||b)&&(w||x?Ri(a,{persist:!0}):b&&this.revertSingleCellEdit(u),this.isBatchEditing()?this.strategy?.cleanupEditors():No(a,l.getEditPositions(),{event:s,cancel:b}),s.preventDefault(),this.bulkRefresh(e,h,{suppressFlash:!0}),h=l.getEditMap())}else Ri(a,{persist:!0}),h=l.getEditMap();return g&&e&&this.model.removeEdits(e),this.navigateAfterEdit(t,u?.cellPosition),$d(a),this.model.hasEdits()||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap()),this.bulkRefresh(),v&&this.beans.rowRenderer.refreshRows({rowNodes:Array.from(h.keys())}),this.isBatchEditing()&&(this.beans.rowRenderer.refreshRows({suppressFlash:!0,force:!0}),g&&f&&this.dispatchBatchEvent("batchEditingStopped",h)),this.stopping=!1,g}navigateAfterEdit(e,t){if(!e||!t)return;const{event:s,suppressNavigateAfterEdit:i}=e;if(!(s instanceof KeyboardEvent)||i)return;const{key:n,shiftKey:r}=s,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(n!==I.ENTER||!a)return;const l=r?I.UP:I.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t=!1,s){const i=Array.from(e.keys()),o=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,n=[];for(const r of i){const a=e.get(r);for(const l of a.keys()){const c=a.get(l),d={rowNode:r,column:l},u=Os(c);!t&&u&&!o&&(this.setNodeDataValue(r,l,c.pendingValue,void 0,s)||n.push(d))}}return n}setNodeDataValue(e,t,s,i,o="edit"){const{beans:n}=this,r=Ke(n,{rowNode:e,column:t}),a=nM.has(o)?"edit":o;r&&(r.suppressRefreshCell=!0),this.commitNextEdit();const l=e.setDataValue(t,s,a);return r&&(r.suppressRefreshCell=!1),i&&r?.refreshCell(Rn),l}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let s=Rn;t?.forceRefreshOfEditCellsOnly&&(s={...dM(e),...Rn}),this.beans.rowRenderer.refreshCells(s)}dispatchEditValuesChanged({rowNode:e,column:t},s={}){if(!e||!t||!s)return;const{pendingValue:i,sourceValue:o}=s,{rowIndex:n,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:n,rowPinned:r,column:t,source:"api",data:a,newValue:i,oldValue:o,value:i,colDef:t.getColDef()})}bulkRefresh(e={},t,s={}){const{beans:i,gos:o}=this,{editModelSvc:n,rowModel:r}=i;tt(o)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),s):t&&n?.getEditMap(!1)?.forEach((a,l)=>{for(const c of a.keys())this.refCell({rowNode:l,column:c},a.get(c),s)}))}refCell({rowNode:e,column:t},s,i={}){const{beans:o,gos:n}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const c=e.sibling;c&&a.add(c);let d=e.parent;for(;d;)d.sibling?.footer&&n.get("groupTotalRow")||!d.parent&&d.sibling&&n.get("grandTotalRow")?a.add(d.sibling):a.add(d),d=d.parent;for(const u of r)this.dispatchEditValuesChanged({rowNode:u,column:t},s);for(const u of r)Ke(o,{rowNode:u,column:t})?.refreshCell(i);for(const u of a)Ke(o,{rowNode:u,column:t})?.refreshCell(i)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:s}=e,{gos:i,beans:o}=this;if(s.group){if(i.get("treeData")){if(!s.data&&!i.get("enableGroupEdit"))return!1}else if(!i.get("enableGroupEdit"))return!1}const n=vg(i)==="fullRow"?Qk(o,e,t):Qd(o,e,t);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,s=!0){if(this.hasValidationErrors(e)){const i=Ke(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),s&&(!i?.hasBrowserFocus()&&i?.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(i&&this.revertSingleCellEdit(i),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const s=Ke(this.beans,e);s?.comp?.getCellEditor()&&(No(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),Uo(this.beans,e,{silent:!0}),zi(this.beans),s?.refreshCell(Rn),t&&(s?.focusCell(),s?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){zi(this.beans);const t=Ke(this.beans,e);t&&(t.refreshCell(Rn),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let s=!1;return e?.rowNode?(s||(s=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(s||(s=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(s||(s=this.model.getCellValidationModel().getCellValidationMap().size>0),s||(s=this.model.getRowValidationModel().getRowValidationMap().size>0)),s}moveToNextCell(e,t,s,i="ui"){let o;const n=this.isEditing(),r=n&&this.checkNavWithValidation(void 0,s)==="block-stop";return e instanceof Ho&&n&&(o=this.strategy?.moveToNextEditingCell(e,t,s,i,r)),o===null||(o=o||!!this.beans.focusSvc.focusedHeader,o===!1&&!r&&this.stopEditing()),o}getCellDataValue({rowNode:e,column:t},s=!0){if(!e||!t)return;let i=this.model.getEdit({rowNode:e,column:t});const o=e.pinnedSibling;if(o){const r=this.model.getEdit({rowNode:o,column:t});r&&(i=r)}const n=s?i?.editorValue??i?.pendingValue:i?.pendingValue;return n===ts||!i?i?.sourceValue??this.valueSvc.getValue(t,e,!1,"api"):n}addStopEditingWhenGridLosesFocus(e){C5(this,this.beans,e)}createPopupEditorWrapper(e){return new Yk(e)}commitNextEdit(){this.committing=!0}setDataValue(e,t,s){try{if((!this.isEditing()||this.committing)&&!aM.has(s))return;const{beans:i}=this;this.strategy??(this.strategy=this.createStrategy());const o=this.isBatchEditing()?"ui":this.committing?s??"api":"api";if(!s||oM.has(s))return Ta(i,e,t,s,void 0,{persist:!0}),this.setNodeDataValue(e.rowNode,e.column,t,!0,s);const n=this.model.getEdit(e);if(n){if(n.pendingValue===t)return!1;if(n.sourceValue!==t)return Ta(i,e,t,s,void 0,{persist:!0}),this.stopEditing(e,{source:o,suppressNavigateAfterEdit:!0}),!0;if(n.sourceValue===t)return i.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...n,pendingValue:t}),!0}return Ta(i,e,t,s,void 0,{persist:!0}),this.stopEditing(e,{source:o,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){x5(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){if(!this.batch||!this.model.hasRowEdits(e.rowNode,Co))return;const{rowNode:i,column:o}=e,{compDetails:n,valueToDisplay:r}=t;if(n){const{params:l}=n;return l.data=this.model.getEditRowDataValue(i,Co),{compDetails:n}}const a=this.model.getEditRow(e.rowNode,Co);if(r!==void 0&&a?.has(o))return{valueToDisplay:this.valueSvc.getValue(o,i)}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,s,i){this.strategy?.dispatchCellEvent(e,t,s,i)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return xe(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},s){if(!s||s.length===0)return;const{beans:i,rangeSvc:o,valueSvc:n}=this;Ri(i,{persist:!0});const r=this.model.getEditMap(!0),a=r.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),s.forEach(c=>{if(o?.forEachRowInRange(c,d=>{const u=zs(i,d);if(u===void 0)return;const h=r.get(u)??new Map;for(const g of c.columns)if(g&&this.isCellEditable({rowNode:u,column:g},"api")){const f=n.getValue(g,u,!0,"api");let v=n.parseValue(g,u??null,a,f);Number.isNaN(v)&&(v=null),h.set(g,{editorValue:void 0,pendingValue:v,sourceValue:f,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}h.size>0&&r.set(u,h)}),this.setEditMap(r),this.batch){this.cleanupEditors(),$d(i),this.bulkRefresh();return}this.commitNextEdit(),this.stopEditing(void 0,{source:"bulk"}),this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(r)})}),this.bulkRefresh();const l=Ke(i,{rowNode:e,column:t});l&&l.focusCell(!0)}createCellStyleFeature(e,t){return new Jk(e,t)}createRowStyleFeature(e,t){return new eM(e,t)}setEditingCells(e,t){const{beans:s}=this,{colModel:i,valueSvc:o}=s,n=new Map;for(let{colId:r,column:a,colKey:l,rowIndex:c,rowPinned:d,newValue:u,state:h}of e){const g=r?i.getCol(r):l?i.getCol(l):a;if(!g)continue;const f=zs(s,{rowIndex:c,rowPinned:d});if(!f)continue;const v=o.getValue(g,f,!0,"api");if(!t?.forceRefreshOfEditCellsOnly&&!Os({pendingValue:u,sourceValue:v})&&h!=="editing")continue;let C=n.get(f);C||(C=new Map,n.set(f,C)),u===void 0&&(u=ts),C.set(g,{editorValue:void 0,pendingValue:u,sourceValue:v,state:h??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(n,t)}onCellFocused(e){const t=Ke(this.beans,e);if(!t||!this.isEditing(t,Co))return;const s=this.model.getEdit(t);if(!s||!Os(s))return;const o=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(o,"pendingChange")}allowedFocusTargetOnValidation(e){return Ke(this.beans,e)}};function dM(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function vg(e,t){return t??e.get("editType")??"singleCell"}var wC=class extends O{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const s=e.previousParams,{editSvc:i,beans:o}=this,n=e.type==="cellFocused"?e.sourceEvent:null;s&&(t=Ke(o,s));const{gos:r,editModelSvc:a}=o,l=e.type==="cellFocusCleared";if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:c,rowIndex:d,rowPinned:u}=e,h={column:c,rowNode:zs(o,{rowIndex:d,rowPinned:u})},g=r.get("invalidEditValueMode")==="block";if(g)return;const f=!g,v=!!a?.getCellValidationModel().hasCellValidation(h),C=f&&v;(s||l?i.stopEditing(void 0,{cancel:C,source:l&&f?"api":void 0,event:n}):!0)||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){const s=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const o of s){if(i.all.push(o),(this.model.getCellValidationModel().getCellValidation(o)?.errorMessages?.length??0)>0){i.fail.push(o);continue}i.pass.push(o)}if(e)for(const o of s)Ja(this.beans,o,{cancel:e}),this.model.stop(o);else{const o=this.processValidationResults(i);if(o.destroy.length>0)for(const n of o.destroy)Ja(this.beans,n,{event:t,cancel:e}),this.model.stop(n);if(o.keep.length>0)for(const n of o.keep){const r=Ke(this.beans,n);this.editSvc?.cellEditingInvalidCommitBlocks()||r&&this.editSvc.revertSingleCellEdit(r)}}return!0}cleanupEditors({rowNode:e}={},t){Ri(this.beans,{persist:!1});const s=this.model.getEditPositions(),i=[];if(e)for(const o of s)o.rowNode!==e&&i.push(o);else for(const o of s)i.push(o);No(this.beans,i),$d(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,s=t?.getCellEditor();if(s?.focusIn)s.focusIn();else{const i=this.beans.gos.get("editType")==="fullRow";e.focusCell(i),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:s=!1,startedEdit:i,position:o,cells:n=this.model.getEditPositions()}=e,r=t instanceof KeyboardEvent&&!s&&t.key||void 0;b5(this.beans,n,o,r,t,i)}dispatchCellEvent(e,t,s,i){const o=Ke(this.beans,e);o&&this.eventSvc.dispatchEvent({...o.createEvent(t??null,s),...i})}dispatchRowEvent(e,t,s){if(s)return;const i=Qu(this.beans,e);i&&this.eventSvc.dispatchEvent(i.createRowEvent(t))}shouldStop(e,t,s="ui"){const i=this.editSvc.isBatchEditing();return i&&s==="api"?!0:i&&(s==="ui"||s==="edit")?!1:s==="api"?!0:t instanceof KeyboardEvent&&!i?t.key===I.ENTER:null}shouldCancel(e,t,s="ui"){const i=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!i&&t.key===I.ESCAPE||i&&s==="api"||s==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const s=[];if(e.forEach((i,o)=>{i.forEach((n,r)=>{n.state==="editing"&&s.push({...n,rowNode:o,column:r})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),s.length>0){const i=s.at(-1),o=i.pendingValue===ts?void 0:i.pendingValue;this.start({position:i,event:new KeyboardEvent("keydown",{key:o}),source:"api"});const n=Ke(this.beans,i);n&&this.setFocusInOnEditor(n)}}destroy(){this.cleanupEditors(),super.destroy()}},uM=class extends wC{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,s="ui"){const{rowNode:i}=e||{};if(!Qu(this.beans,{rowNode:this.rowNode}))return!0;const n=super.shouldStop({rowNode:this.rowNode},t,s);return n!==null?n:this.rowNode?i!==this.rowNode:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:s,startedEdit:i,event:o,ignoreEventKey:n}=e,{rowNode:r}=t;this.rowNode!==r&&super.cleanupEditors(t),this.dispatchRowEvent({rowNode:r},"rowEditingStarted",s),this.startedRows.push(r);const a=this.beans.visibleCols.allCols,l=[];for(const c of a){if(!c.isCellEditable(r))continue;const d={rowNode:r,column:c};l.push(d),this.model.hasEdits(d)||this.model.start(d)}this.rowNode=r,this.setupEditors({cells:l,position:t,startedEdit:i,event:o,ignoreEventKey:n})}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){const{rowNode:s}=this;if(s&&!this.model.hasRowEdits(s))return!1;const i=[];if(e||this.model.getEditMap().forEach((o,n)=>{if(!(!o||o.size===0)){for(const r of o.values())if(Os(r)){i.push(n);break}}}),zi(this.beans),!e&&this.editSvc?.checkNavWithValidation({rowNode:s})==="block-stop")return!1;super.stop(e,t);for(const o of i)this.dispatchRowEvent({rowNode:o},"rowValueChanged");return this.cleanupEditors({rowNode:s},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,s=e.previousParams;if(s?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const i=Ke(this.beans,s);this.gos.get("invalidEditValueMode")==="block"&&i&&(this.model.getCellValidationModel().getCellValidation(i)||this.model.getRowValidationModel().getRowValidation(i))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(const s of this.startedRows)this.dispatchRowEvent({rowNode:s},"rowEditingStopped");this.startedRows.length=0}moveToNextEditingCell(e,t,s,i="ui",o=!1){const n=e.cellPosition;let r;this.model.suspend(!0);try{r=this.beans.navigation?.findNextCellToFocusOn(n,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(r===!1)return null;if(r==null)return!1;const a=r.cellPosition,l=e.isCellEditable(),c=r.isCellEditable(),d=a&&n.rowIndex===a.rowIndex&&n.rowPinned===a.rowPinned;l&&this.setFocusOutOnEditor(e),this.restoreEditors();const u=this.gos.get("suppressStartEditOnTab");return c&&!o?u?r.focusCell(!0,s):(r.comp?.getCellEditor()||Uo(this.beans,r,{event:s,cellStartedEdit:!0}),this.setFocusInOnEditor(r),r.focusCell(!1,s)):(c&&o&&this.setFocusInOnEditor(r),r.focusCell(!0,s)),!d&&!o&&(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:s}),this.cleanupEditors(r,!0),u?r.focusCell(!0,s):this.editSvc.startEditing(r,{startedEdit:!0,event:s,source:i,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:s},i)=>{if(s!=="editing")return;const o=Ke(this.beans,{rowNode:t,column:i});o&&!o.comp?.getCellEditor()&&Uo(this.beans,o,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}},hM=class extends wC{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,s="ui"){const i=super.shouldStop(e,t,s);if(i!==null)return i;const{rowNode:o,column:n}=e||{};return(!this.rowNode||!this.column)&&o&&n?null:this.rowNode!==o||this.column!==n}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:s,event:i,ignoreEventKey:o}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:s,event:i,ignoreEventKey:o})}dispatchRowEvent(e,t,s){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:s}=this.beans,{rowIndex:i,column:o,rowPinned:n}=e,r=zs(this.beans,{rowIndex:i,rowPinned:n}),a=Ud(o),l=t.getCol(a),c=e.previousParams;if(c){const d=Ud(c.column);if(c?.rowIndex===i&&d===a&&c?.rowPinned===n)return}s?.isEditing({rowNode:r,column:l},{withOpenEditor:!0})&&e.type==="cellFocused"||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,s,i="ui",o=!1){const n=this.beans.focusSvc.getFocusedCell();n&&(e=Fo(this.beans,n)??e);const r=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),o||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:s}));try{a=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const c=a.cellPosition,d=e.isCellEditable(),u=a.isCellEditable(),h=c&&r.rowIndex===c.rowIndex&&r.rowPinned===c.rowPinned;d&&!o&&this.setFocusOutOnEditor(e);const g=this.gos.get("suppressStartEditOnTab");if(!h&&!o&&(super.cleanupEditors(a,!0),g?a.focusCell(!0,s):this.editSvc.startEditing(a,{startedEdit:!0,event:s,source:i,ignoreEventKey:!0})),u&&!o){if(a.focusCell(!1,s),g)a.focusCell(!0,s);else if(!a.comp?.getCellEditor()){const f=this.editSvc?.isEditing(a,{withOpenEditor:!0});Uo(this.beans,a,{event:s,cellStartedEdit:!0,silent:f}),this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else u&&o&&this.setFocusInOnEditor(a),a.focusCell(!0,s);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},gi={moduleName:"EditCore",version:ee,beans:[v5,cM],apiFunctions:{getEditingCells:zk,getEditRowValues:Vk,getCellEditorInstances:w5,startEditingCell:_k,stopEditing:Wk,isEditing:jk,validateEdit:Uk},dynamicBeans:{singleCell:hM,fullRow:uM},dependsOn:[Rl,uC],css:[vk]},pM={moduleName:"UndoRedoEdit",version:ee,beans:[mk],apiFunctions:{undoCellEditing:Gk,redoCellEditing:Bk,getCurrentUndoSize:$k,getCurrentRedoSize:qk},dependsOn:[gi]},gM={moduleName:"TextEditor",version:ee,userComponents:{agCellEditor:mg,agTextCellEditor:mg},dependsOn:[gi]},fM={moduleName:"NumberEditor",version:ee,userComponents:{agNumberCellEditor:{classImp:kk}},dependsOn:[gi]},mM={moduleName:"DateEditor",version:ee,userComponents:{agDateCellEditor:yk,agDateStringCellEditor:Fk},dependsOn:[gi]},vM={moduleName:"CheckboxEditor",version:ee,userComponents:{agCheckboxCellEditor:wk},dependsOn:[gi]},CM={moduleName:"SelectEditor",version:ee,userComponents:{agSelectCellEditor:Ik},dependsOn:[gi]},wM={moduleName:"LargeTextEditor",version:ee,userComponents:{agLargeTextCellEditor:Dk},dependsOn:[gi]},bM={moduleName:"CustomEditor",version:ee,dependsOn:[gi]},xM=class extends O{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Mo(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),Xy(e))}createColumns(e,t){const s=()=>{_a(this.beans,this.columns?.tree),this.columns=null},i=e.treeDepth,n=(this.columns?.treeDepth??-1)==i,r=this.generateSelectionCols();if(Yy(r,this.columns?.list??[])&&n)return;s();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,d=l?.balanceTreeForAutoCols(r,c)??[];this.columns={list:r,tree:d,treeDepth:c,map:{}},t(h=>{if(!h)return null;const g=h.filter(f=>!Us(f));return[...r,...g]})}updateColumns(e){const t=Mo(e.source);for(const s of this.columns?.list??[]){const i=this.createSelectionColDef(e.currentValue);s.setColDef(i,null,t),cs(this.beans,{state:[{...i,colId:s.getColId()}]},t)}}getColumn(e){return this.columns?.list.find(t=>Bn(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,s=e.get("rowSelection");if(typeof s!="object"||!Pi(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if(s.checkboxLocation==="autoGroupColumn"&&i)return!1;const o=!!ko(s),n=wa(s);return o||n}createSelectionColDef(e){const{gos:t}=this,s=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:o,spanRows:n,...r}=s??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(a,l,c,d){const u=c.isSelected(),h=d.isSelected();return u===h?0:u?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...r,colId:Du,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const s=new Ui(e,null,t,!1);return this.createBean(s),[s]}onSelectionOptionsChanged(e,t,s){const i=t&&typeof t!="string"?ko(t):void 0,o=e&&typeof e!="string"?ko(e):void 0,n=i!==o,r=t&&typeof t!="string"?wa(t):void 0,a=e&&typeof e!="string"?wa(e):void 0,l=r!==a,c=Va(e),d=Va(t);(n||l||c!==d)&&this.beans.colModel.refreshAll(s)}destroy(){_a(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,s){if(!this.columns?.list.length)return;const i=e.length+t.length+s.length;if(i===0)return;const o=this.columns.list[0];if(!o.isVisible())return;const n=()=>{let l;switch(o.pinned){case"left":case!0:l=e;break;case"right":l=s;break;default:l=t}l&&ds(l,o)};(this.beans.rowNumbersSvc?.getColumn(Pu)?2:1)===i&&n()}};function yM(e,t){if(!t.nodes.every(r=>r.rowPinned&&!vr(r)?($(59),!1):r.id===void 0?($(60),!1):!0))return;const{nodes:i,source:o,newValue:n}=t;e.selectionSvc?.setNodesSelected({nodes:i,source:o??"api",newValue:n})}function SM(e,t,s="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:s,selectAll:t})}function RM(e,t,s="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:s,selectAll:t})}function FM(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function EM(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function DM(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function PM(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function TM(e){return e.selectionSvc?.getSelectedNodes()??[]}function kM(e){return e.selectionSvc?.getSelectedRows()??[]}var MM=class extends eE{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=za(e),this.groupSelectsDescendants=er(e),this.groupSelectsFiltered=ja(e)==="filteredDescendants",this.masterSelectsDetail=lp(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=er(e),s=za(e),i=ja(e)==="filteredDescendants";this.masterSelectsDetail=lp(e)==="detail",(t!==this.groupSelectsDescendants||i!==this.groupSelectsFiltered||s!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=s)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,s){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,s);if(i==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes():this.selectRange(i.deselect,!1,s),this.selectRange(i.select,!0,s);{const o=i.checkFilteredNodes?xC(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:o,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:s})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:s,nodes:i,event:o,source:n,keepDescendants:r=!1}){if(i.length===0)return 0;const{gos:a}=this;if(!Pi(a)&&e)return $(132),0;if(i.length>1&&!this.isMultiSelect())return $(130),0;let l=0;for(let c=0;c<i.length;c++){const d=i[c],u=wo(d);if(u.rowPinned&&!vr(u)){$(59);continue}if(u.id===void 0){$(60);continue}this.groupSelectsFiltered&&u.group&&!a.get("treeData")||this.selectRowNode(u,e,o,n)&&(this.detailSelection.delete(u.id),l++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(l+=this.selectChildren(u,e,n))}return s||(i.length===1&&n==="api"&&this.selectionCtx.setRoot(wo(i[0])),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(wo(i[0]),r,n)),l>0&&(this.updateGroupsFromChildrenSelections(n),this.dispatchSelectionChanged(n))),l}selectRange(e,t,s){let i=0;return e.forEach(o=>{const n=wo(o);if(n.group&&this.groupSelectsDescendants)return;this.selectRowNode(n,t,void 0,s)&&i++}),i>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s)),i}selectChildren(e,t,s){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:s,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((s,i)=>{e(s)&&t.set(i,s)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:s,rowModel:i}=this.beans;if(!tt(s))return!1;const o=i.rootNode;if(!o)return!1;t||(t=new ir(!0,o),t.active=!1);let n=!1;return t.forEachChangedNodeDepthFirst(r=>{if(r!==o){const a=this.calculateSelectedFromChildren(r);n=this.selectRowNode(r,a===null?!1:a,void 0,e)||n}}),n}clearOtherNodes(e,t,s){const i=new Map;let o=0;return this.selectedNodes.forEach(n=>{const r=n.id==e.id;if((t?!AM(e,n):!0)&&!r){const l=this.selectedNodes.get(n.id);o+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:s}),this.groupSelectsDescendants&&n.parent&&i.set(n.parent.id,n.parent)}}),i.forEach(n=>{const r=this.calculateSelectedFromChildren(n);this.selectRowNode(n,r===null?!1:r,void 0,s)}),o}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new ci(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!tt(e))return;const s=t.getTopLevelNodes();if(s===null)return;const i=[];function o(n){for(let r=0,a=n.length;r<a;r++){const l=n[r];l.isSelected()?i.push(l):l.group&&l.childrenAfterGroup&&o(l.childrenAfterGroup)}}return o(s),i}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const s=tt(this.gos);let i=!1;const o=n=>{const r=this.selectRowNode(wo(n),!1,void 0,e);i||(i=r)};if(t==="currentPage"||t==="filtered"){if(!s){Be(102);return}this.getNodesToSelect(t).forEach(o)}else this.selectedNodes.forEach(o),this.reset(e);if(this.selectionCtx.selectAll=!1,s&&this.groupSelectsDescendants){const n=this.updateGroupsFromChildrenSelections(e);i||(i=n)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,s=0;return this.getNodesToSelect(e).forEach(i=>{this.groupSelectsDescendants&&i.group||(i.isSelected()?t++:i.selectable&&s++)}),{selectedCount:t,notSelectedCount:s}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:s}=this.getSelectedCounts(e);return bC(t,s)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],s=o=>t.push(o);if(e==="currentPage")return this.forEachNodeOnPage(o=>{if(!o.group){s(o);return}if(!o.expanded&&!o.footer){const n=r=>{s(r),r.childrenAfterFilter?.forEach(n)};n(o);return}this.groupSelectsDescendants||s(o)}),t;const i=this.beans.rowModel;return e==="filtered"?(i.forEachNodeAfterFilter(s),t):(i.forEachNode(s),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:s}=this.beans,i=t.getFirstRow(),o=t.getLastRow();for(let n=i;n<=o;n++){const r=s.getRow(n);r&&e(r)}}selectAllRowNodes(e){const{gos:t,selectionCtx:s}=this;if(!Pi(t)){$(132);return}if(Ly(t)&&!Wa(t)){$(130);return}if(!this.canSelectAll())return;const{source:i,selectAll:o}=e;let n=!1;if(this.getNodesToSelect(o).forEach(r=>{const a=this.selectRowNode(wo(r),!0,void 0,i);n||(n=a)}),s.selectAll=!0,tt(t)&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(i);n||(n=r)}n&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,s){if(e||(e=[]),!Array.isArray(e)){Be(103);return}const i=new Set(e),o=[];this.beans.rowModel.forEachNode(n=>{i.has(n.id)&&o.push(n)}),s&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:o,source:t})}canSelectAll(){return tt(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:s}=this.beans;if(!Pi(t))return;const i="selectableChanged",o=e!==void 0,n=tt(t)&&this.groupSelectsDescendants,r=[],a=l=>{if(o&&!l.group)return;if(n&&l.group){const d=l.childrenAfterGroup?.some(u=>u.selectable)??!1;this.setRowSelectable(l,d,!0);return}!this.updateRowSelectable(l,!0)&&l.isSelected()&&r.push(l)};if(n){if(e===void 0){const l=s.rootNode;e=l?new ir(!1,l):void 0}e?.forEachChangedNodeDepthFirst(a,!o,!o)}else s.forEachNode(a);r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:i}),!o&&n&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const s=e.detailNode?.detailGridInfo?.api;if(!s)return;const i=IM(s);if(e.isSelected()!==i&&this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!i){const n=this.detailSelection.get(e.id)??new Set;for(const r of s.getSelectedNodes())n.add(r.id);this.detailSelection.set(e.id,n)}}setDetailSelectionState(e,t,s){if(this.masterSelectsDetail){if(!Wa(t)){$(269);return}switch(e.isSelected()){case!0:{s.selectAll();break}case!1:{s.deselectAll();break}case void 0:{const i=this.detailSelection.get(e.id);if(i){const o=[];for(const n of i){const r=s.getRowNode(n);r&&o.push(r)}s.setNodesSelected({nodes:o,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function wo(e){return vr(e)?e.pinnedSibling:e.footer?e.sibling:e}function IM(e){let t=0,s=0;return e.forEachNode(i=>{i.isSelected()?t++:i.selectable&&s++}),bC(t,s)}function bC(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function AM(e,t){let s=t.parent;for(;s;){if(s===e)return!0;s=s.parent}return!1}function xC(e){const t=e.isSelected()===!1,s=e.childrenAfterFilter?.some(xC)??!1;return t||s}var LM={moduleName:"SharedRowSelection",version:ee,beans:[xM],apiFunctions:{setNodesSelected:yM,selectAll:SM,deselectAll:RM,selectAllFiltered:FM,deselectAllFiltered:EM,selectAllOnCurrentPage:DM,deselectAllOnCurrentPage:PM,getSelectedNodes:TM,getSelectedRows:kM}},OM={moduleName:"RowSelection",version:ee,rowModels:["clientSide","infinite","viewport"],beans:[MM],dependsOn:[LM]};function NM(e){e.expansionSvc?.expandAll(!0)}function HM(e){e.expansionSvc?.expandAll(!1)}function yC(e){e.rowModel?.onRowHeightChanged()}function SC(e){if(e.rowAutoHeight?.active){$(3);return}e.rowModel?.resetRowHeights()}function GM(e,t,s){const i=GT(e);if(i){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){Be(238);return}i.setRowCount(t,s);return}Be(28);return}Sl(e)?.setRowCount(t,s)}function BM(e){return _i(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function VM(e){return e.rowModel.isLastRowIndexKnown()}var zM={moduleName:"CsrmSsrmSharedApi",version:ee,apiFunctions:{expandAll:NM,collapseAll:HM}},WM={moduleName:"RowModelSharedApi",version:ee,apiFunctions:{onRowHeightChanged:yC,resetRowHeights:SC}},jM={moduleName:"SsrmInfiniteSharedApi",version:ee,apiFunctions:{setRowCount:GM,getCacheBlockState:BM,isLastRowIndexKnown:VM}},_M=class extends O{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(i=>{if(!i){Be(18),t||Be(20);return}if(this.isGridApi(i))return i;const o=i;return"current"in o?o.current?.api:(o.api||Be(19),o.api)}).filter(i=>!!i&&!i.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const s=[];return e.columns?e.columns.forEach(i=>{s.push(t(i))}):e.column&&s.push(t(e.column)),s}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":$(21);break}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const s of e.columnGroups){let i=null;s&&(i=t.getProvidedColGroup(s.getGroupId())),!(s&&!i)&&t.setColumnGroupOpened(i,s.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let s=null;const i=this.beans,{colResize:o,ctrlsSvc:n,colModel:r}=i;if(t&&(s=r.getColDefCol(t.getColId())),t&&!s)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const u=e.api.getColumnState().map(h=>({colId:h.colId}));cs(i,{state:u,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const u=e.api.getColumnState().map(h=>({colId:h.colId,hide:h.hide}));cs(i,{state:u},"alignedGridChanged")}break;case"columnPinned":{const u=e.api.getColumnState().map(h=>({colId:h.colId,pinned:h.pinned}));cs(i,{state:u},"alignedGridChanged")}break;case"columnResized":{const d=e,u={};for(const h of a)u[h.getId()]={key:h.getColId(),newWidth:h.getActualWidth()};for(const h of d.flexColumns??[])u[h.getId()]&&delete u[h.getId()];o?.setColumnWidths(Object.values(u),!1,d.finished,"alignedGridChanged");break}}const c=n.getGridBodyCtrl().isVerticalScrollShowing();for(const d of this.getAlignedGridApis())d.setGridOption("alwaysShowVerticalScroll",c)}},UM={moduleName:"AlignedGrids",version:ee,beans:[_M],dependsOn:[yv]},$M=class extends O{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},Cg(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){const{selectionSvc:t,pinnedRowModel:s,groupStage:i}=this.beans;t?.reset("rowDataChanged"),s?.isManual()&&s.reset(),this.dispatchRowDataUpdateStarted(e),this.allNodesMap=Object.create(null),this.nextId=0;const o=Cg(this.rootNode),n=new Array(e.length);o._leafs=n;let r=0;const a=i?.getNestedDataGetter(),l=a?new Set:null,c=(d,u)=>{const h=d.level+1;for(let g=0,f=u.length;g<f;++g){const v=u[g];if(!v)continue;const C=this.createRowNode(v,h);if(C.sourceRowIndex=r,n[r++]=C,l&&!l.has(v)){l.add(v),C.treeParent=d;const w=a(v);w&&c(C,w)}}};c(o,e),n.length=r}setImmutableRowData(e,t){const{rootNode:s,gos:i}=this;this.dispatchRowDataUpdateStarted(t);const o=zo(i),n=e.changedRowNodes,{adds:r,updates:a}=n,l=new Set,c=[],d=this.beans.groupStage?.getNestedDataGetter();let u=i.get("suppressMaintainUnsortedOrder")?void 0:!1,h=-1,g=!1;const f=(w,b)=>{if(!u&&u!==void 0){const x=w.sourceRowIndex;u=x<=h,h=x}w.data!==b&&(w.updateData(b),r.has(w)||a.add(w),!w.selectable&&w.isSelected()&&c.push(w))},v=(w,b,x)=>{for(let y=0,S=b.length;y<S;++y){const E=b[y];if(!E)continue;let R=this.getRowNode(o({data:E,level:x}));if(R?(f(R,E),g||(g=!!d&&R.treeParent!==w)):(R=this.createRowNode(E,x),r.add(R)),!d||l.has(R)){l.add(R);continue}l.add(R),R.treeParent=w;const F=d(E);F&&v(R,F,x+1)}};v(s,t,0);const C=this.deleteUnusedNodes(l,n,c)||u||r.size>0;if(C){const w=s._leafs??(s._leafs=[]);u===void 0?ZM(w,l,n):XM(w,l)&&(n.reordered=!0)}(C||g||a.size)&&(e.rowDataUpdated=!0,this.deselect(c))}deleteUnusedNodes(e,{removals:t},s){const i=this.rootNode._leafs;for(let o=0,n=i.length;o<n;o++){const r=i[o];e.has(r)||(t.add(r),r.isSelected()&&s.push(r),this.deleteNode(r))}return t.size>0}updateRowData(e,t){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return $(268),{remove:[],update:[],add:[]};const s=[],i=zo(this.gos),o=this.executeRemove(i,e,t,s),n=this.executeUpdate(i,e,t,s),r=this.executeAdd(e,t);return this.deselect(s),{remove:o,update:n,add:r}}executeRemove(e,{remove:t},{adds:s,updates:i,removals:o},n){const r=this.rootNode._leafs,a=r?.length,l=t?.length;if(!l||!a)return[];let c=0,d=a,u=0,h;const g=new Array(l);for(let f=0;f<l;++f){const v=this.lookupNode(e,t[f]);if(!v)continue;const C=v.sourceRowIndex;C<d&&(d=C),C>u&&(u=C),v.isSelected()&&n.push(v),this.deleteNode(v),s.delete(v)?(h??(h=new Set),h.add(v)):(i.delete(v),o.add(v)),g[c++]=v}return g.length=c,c&&YM(r,d,u,o,h),g}executeUpdate(e,{update:t},{adds:s,updates:i},o){const n=t?.length;if(!n)return[];const r=new Array(n);let a=0;for(let l=0;l<n;l++){const c=t[l],d=this.lookupNode(e,c);d&&(d.updateData(c),!d.selectable&&d.isSelected()&&o.push(d),r[a++]=d,s.has(d)||i.add(d))}return r.length=a,r}executeAdd(e,t){var s;const i=(s=this.rootNode)._leafs??(s._leafs=[]),o=i.length,n=e.add,r=n?.length;if(!r)return[];const a=o+r;let l=this.sanitizeAddIndex(i,e.addIndex);if(l<o){for(let u=o-1,h=a-1;u>=l;--u){const g=i[u];g.sourceRowIndex=h,i[h--]=g}t.reordered=!0}i.length=a;const c=new Array(r),d=t.adds;for(let u=0;u<r;u++){const h=this.createRowNode(n[u],0);d.add(h),h.sourceRowIndex=l,i[l]=h,c[u]=h,l++}return c}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",s=this.beans.selectionSvc;e.length&&s?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),s?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:s?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t){const s=new ci(this.beans);s.parent=this.rootNode,s.level=t,s.group=!1,s.expanded=!1,s.setDataAndId(e,String(this.nextId++));const i=s.id,o=this.allNodesMap;return o[i]&&$(2,{nodeId:i}),o[i]=s,s}deleteNode(e){e.clearRowTopAndRowIndex();const t=e.id,s=this.allNodesMap;s[t]===e&&delete s[t];const i=e.pinnedSibling;i&&this.beans.pinnedRowModel?.pinRow(i,null)}lookupNode(e,t){if(!e)return KM(this.rootNode._leafs,t);const s=e({data:t,level:0}),i=this.allNodesMap[s];return i||(Be(4,{id:s}),null)}sanitizeAddIndex(e,t){const s=e.length;if(typeof t!="number"||t<0||t>=s||Number.isNaN(t))return s;t=Math.ceil(t);const i=this.gos;return t>0&&i.get("treeData")&&i.get("getDataPath")&&(t=qM(e,t)),t}},qM=(e,t)=>{for(let s=0,i=e.length;s<i;s++)if(e[s]?.rowIndex==t-1)return s+1;return t},Cg=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e._leafs?.length!==0&&(e._leafs=[]);const t=[],s=[],i=[],o=[];e.childrenAfterGroup=t,e.childrenAfterSort=s,e.childrenAfterAggFilter=i,e.childrenAfterFilter=o;const n=e.sibling;return n&&(n.childrenAfterGroup=t,n.childrenAfterSort=s,n.childrenAfterAggFilter=i,n.childrenAfterFilter=o,n.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},KM=(e,t)=>{if(e)for(let s=0,i=e.length;s<i;s++){const o=e[s];if(o.data===t)return o}return Be(5,{data:t}),null},YM=(e,t,s,i,o)=>{t=Math.max(0,t);for(let n=t,r=e.length;n<r;++n){const a=e[n];n<=s&&(i.has(a)||o?.has(a))||(a.sourceRowIndex=t,e[t++]=a)}e.length=t},XM=(e,t)=>{const s=t.size;e.length=s;let i=0,o=!1,n=!1;for(const r of t){const a=r.sourceRowIndex;a===i?n||(n=o):(a>=0?n=!0:o=!0,r.sourceRowIndex=i,e[i]=r),++i}return n},ZM=(e,t,{removals:s,adds:i})=>{const o=e.length;e.length=t.size;let n=0;for(let r=0;r<o;++r){const a=e[r];s.has(a)||(n!==r&&(a.sourceRowIndex=n,e[n]=a),++n)}for(const r of i)r.sourceRowIndex<0&&(r.sourceRowIndex=n,e[n++]=r);e.length=n},RC=e=>{const t=e.childrenAfterSort,s=e.sibling;if(s&&(s.childrenAfterSort=t),!!t)for(let i=0,o=t.length-1;i<=o;i++){const n=t[i],r=i===0,a=i===o;n.firstChild!==r&&(n.firstChild=r,n.dispatchRowEvent("firstChildChanged")),n.lastChild!==a&&(n.lastChild=a,n.dispatchRowEvent("lastChildChanged")),n.childIndex!==i&&(n.childIndex=i,n.dispatchRowEvent("childIndexChanged"))}},QM=class extends O{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e){const t=this.beans.sortSvc.getSortOptions(),s=t.length>0&&!!e.changedRowNodes&&this.gos.get("deltaSort");this.sort(t,s,e.changedRowNodes,e.changedPath)}sort(e,t,s,i){const{gos:o,colModel:n,rowGroupColsSvc:r,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:c}=this.beans,d=o.get("groupMaintainOrder"),u=n.getCols().some(b=>b.isRowGroupActive()),h=r?.columns,g=n.isPivotMode(),f=o.getCallback("postSortRows");let v=!1,C;const w=b=>{const x=g&&b.leafGroup;let y=d&&u&&!b.leafGroup;y&&(C??(C=this.shouldSortContainsGroupCols(e)),y&&(y=!C));let S=null;if(y){let E=!1;if(h){const R=b.level+1;R<h.length&&(E=h[R].getSort()===null)}E||(S=t6(b))}else!e.length||x||(t&&s?S=JM(a,b,s,i,e):S=a.doFullSort(b.childrenAfterAggFilter,e));if(S||(S=b.childrenAfterAggFilter?.slice(0)??[]),v||(v=b.childrenAfterSort?.[0]!==S[0]),b.childrenAfterSort=S,RC(b),f){const E={nodes:b.childrenAfterSort};f(E)}};if(i?.forEachChangedNodeDepthFirst(w),v&&o.get("groupHideOpenParents")){const b=c?.getShowRowGroupCols();b?.length&&l.refreshCells({columns:b,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(Cs(this.gos)){for(let s=0;s<t;++s){const i=e[s].column;if(i.isPrimary()&&i.isRowGroupActive())return!0}return!1}for(let s=0;s<t;++s)if(e[s].column.getColDef().showRowGroup)return!0;return!1}},JM=(e,t,s,i,o)=>{const n=t.childrenAfterAggFilter,r=t.childrenAfterSort;if(!r)return e.doFullSort(n,o);const a=new Set,l=[],{updates:c,adds:d}=s;for(let h=0,g=n.length;h<g;++h){const f=n[h];c.has(f)||d.has(f)||i&&!i.canSkip(f)?l.push({currentPos:l.length,rowNode:f}):a.add(f)}const u=r.filter(h=>a.has(h)).map((h,g)=>({currentPos:g,rowNode:h}));return l.sort((h,g)=>e.compareRowNodes(o,h,g)),e6(e,o,l,u)},e6=(e,t,s,i)=>{let o=0,n=0;const r=s.length,a=i.length,l=new Array(r+a);let c=0;for(;o<r&&n<a;){const d=s[o],u=i[n];e.compareRowNodes(t,d,u)<0?(l[c++]=d.rowNode,++o):(l[c++]=u.rowNode,++n)}for(;o<r;)l[c++]=s[o++].rowNode;for(;n<a;)l[c++]=i[n++].rowNode;return l},t6=e=>{const t=e.childrenAfterSort,s=e.childrenAfterAggFilter,i=t?.length,o=s?.length;if(!i||!o)return null;const n=new Array(o),r=new Set;for(let l=0;l<o;++l)r.add(s[l]);let a=0;for(let l=0;l<i;++l){const c=t[l];r.delete(c)&&(n[a++]=c)}if(r.size===0&&a===i)return t;for(const l of r)n[a++]=l;return n.length=a,n},s6=class extends O{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.rowDataUpdatedPending=!1,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingModel=!1,this.rowNodesCountReady=!1,this.stages=[],this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=ut(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new ci(e);this.rootNode=t,this.nodeManager=this.createBean(new $M(t));const s=this.refreshModel.bind(this,{step:"group"}),i=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:i,columnRowGroupChanged:s,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:s,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,s=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(i=>!!i);this.stages=s;for(let i=s.length-1;i>=0;--i)for(const o of s[i].refreshProps)t.set(o,i);this.addManagedPropertyListeners([...t.keys()],i=>{const o=i.changeSet?.properties;o&&this.onPropChange(o)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,s,i){let o,n=!1;do{o=!1;const r=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(r,s),c=Math.min(a,i);for(let d=l;d<=c;d++){const u=this.getRow(d);if(u.rowHeightEstimated){const h=ri(this.beans,u);u.setRowHeight(h.height),o=!0,n=!0}}o&&this.setRowTopAndRowIndex()}while(o);return n}onPropChange(e){const{nodeManager:t,gos:s,beans:i}=this,o=i.groupStage;if(!t)return;const n=new Set(e),r=o?.onPropChange(n);let a;n.has("rowData")?a=s.get("rowData"):r&&(a=o?.extractData()),a&&!Array.isArray(a)&&(a=null,$(1));const l={step:"nothing",changedProps:n};a&&(!r&&!this.isEmpty()&&a.length>0&&s.exists("getRowId")&&!s.get("resetRowDataOnUpdate")?(l.keepRenderedRows=!0,l.animate=!s.get("suppressAnimationFrame"),l.changedRowNodes=new Ea,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0));const c=l.rowDataUpdated?"group":this.getRefreshedStage(e);c&&(l.step=c,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:s}=this,i=t.length;let o=i;for(let n=0,r=e.length;n<r&&o;++n)o=Math.min(o,s.get(e[n])??o);return o<i?t[o].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:s}=this,i=t.environment.getDefaultRowHeight();let o=0;const n=mt(this.gos,"normal");for(let r=0,a=s.length;r<a;++r){const l=s[r],c=l.id;if(c!=null&&e?.add(c),l.rowHeight==null){const d=ri(t,l,n,i);l.setRowHeight(d.height,d.estimated)}l.setRowTop(o),l.setRowIndex(r),o+=l.rowHeight}}clearRowTopAndRowIndex(e,t){const s=e.active,i=r=>{r?.id!=null&&!t.has(r.id)&&r.clearRowTopAndRowIndex()},o=r=>{i(r),i(r.detailNode),i(r.sibling);const a=r.childrenAfterGroup;if(!r.hasChildren()||!a)return;const l=r.level==-1;if(!(s&&!l&&!r.expanded))for(let d=0,u=a.length;d<u;++d)o(a[d])},n=this.rootNode;n&&o(n)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const i=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+i}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:s,rowsToDisplay:i}=this;if(!s||!i.length||i[0]===s)return e;const n=s.childrenAfterSort,r=l=>{let c=n[l];if(this.gos.get("groupHideOpenParents"))for(;c.expanded&&c.childrenAfterSort&&c.childrenAfterSort.length>0;)c=c.childrenAfterSort[0];return c.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(i,e,n,r):r(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:s}=this;if(!t||!s.length||s[0]===t)return e;let o=this.getRow(e);o.footer&&(o=o.sibling);let n=o.parent;for(;n&&n!==t;)o=n,n=o.parent;const r=t.childrenAfterSort?.indexOf(o)??-1;return r>=0?r:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:To(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const i=t.length===0||t.some(o=>o.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:i,keepRenderedRows:!0,animate:To(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:To(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new ir(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:s,rowDataUpdated:i}=e;return!(!t||s||!i||t.removals.size||t.adds.size)}refreshModel(e){const{nodeManager:t,beans:s,eventSvc:i,started:o,refreshingModel:n}=this;if(!t)return;const r=!!e.rowDataUpdated,a=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&r));if(o&&r&&i.dispatchEvent({type:"rowDataUpdated"}),!o||n||s.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e)){this.rowDataUpdatedPending||(this.rowDataUpdatedPending=r);return}switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.refreshingModel=!0,s.masterDetailSvc?.refreshModel(e),r&&e.step!=="group"&&s.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(a);case"pivot":this.doPivot(a);case"aggregate":this.doAggregate(a);case"filter_aggregates":this.doFilterAggregates(a);case"sort":this.doSort(e.changedRowNodes,a);case"map":this.doRowsToDisplay()}const l=new Set;this.setRowTopAndRowIndex(l),this.clearRowTopAndRowIndex(a,l),this.refreshingModel=!1,i.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let s=!1,i=!1;const o=[],n=er(this.gos);return this.forEachNodeAfterFilterAndSort(r=>{if(i)return;if(s&&(r===t||r===e)&&(i=!0,n&&r.group)){FC(o,r);return}if(!s){if(r!==t&&r!==e)return;s=!0,t===e&&(i=!0)}(!r.group||!n)&&o.push(r)}),o}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,s=t.length;if(this.isEmpty()||s===0)return-1;let i=0,o=s-1;if(e<=0)return 0;if(t[o].rowTop<=e)return o;let r=-1,a=-1;for(;;){const l=Math.floor((i+o)/2),c=t[l];if(this.isRowInPixel(c,e)||(c.rowTop<e?i=l+1:c.rowTop>e&&(o=l-1),r===i&&a===o))return l;r=i,a=o}}isRowInPixel(e,t){const s=e.rowTop,i=s+e.rowHeight;return s<=t&&i>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let s=0,i=t.length;s<i;++s)e(t[s],s)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let s=0,i=t.length;s<i;++s)e(t[s],s)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,s=>s.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,s=>s.childrenAfterSort)}forEachPivotNode(e,t,s){const{colModel:i,rowGroupColsSvc:o}=this.beans;if(!i.isPivotMode())return;if(!o?.columns.length){e(this.rootNode,0);return}const n=s?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,r=>r.leafGroup?null:r[n])}depthFirstSearchRowNodes(e,t=!1,s=n=>n.childrenAfterGroup,i=this.rootNode,o=0){let n=o;if(!i)return n;const r=i===this.rootNode;if(r||e(i,n++),i.hasChildren()&&!i.footer){const a=s(i);if(a){const l=this.beans.footerSvc;n=l?.addTotalRows(n,i,e,t,r,"top")??n;for(const c of a)n=this.depthFirstSearchRowNodes(e,t,s,c,n);return l?.addTotalRows(n,i,e,t,r,"bottom")??n}}return n}doAggregate(e){const t=this.rootNode;t&&this.beans.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode,s=this.beans.filterAggStage;if(s){s.execute({rowNode:t,changedPath:e});return}t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){const s=this.beans.sortStage;if(s){s.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t});return}t.forEachChangedNodeDepthFirst(i=>{i.childrenAfterSort=i.childrenAfterAggFilter.slice(0),RC(i)})}doGrouping(e){const t=this.rootNode,i=this.beans.groupStage?.execute({rowNode:t,changedRowNodes:e.changedRowNodes,changedPath:e.changedPath,afterColumnsChanged:!!e.afterColumnsChanged});if(i===void 0){const o=t._leafs;t.childrenAfterGroup=o,t.updateHasChildren();const n=t.sibling;n&&(n.childrenAfterGroup=o)}(i||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;if(t){t.execute({rowNode:this.rootNode,changedPath:e});return}e.forEachChangedNodeDepthFirst(s=>{s.childrenAfterFilter=s.childrenAfterGroup,Xv(s)},!0)}doPivot(e){this.beans.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return typeof t=="object"?t:typeof e=="string"&&e.indexOf(Od)===0?this.beans.groupStage?.getNode(e):void 0}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const s=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),s)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:s,asyncTransactions:i}=this;if(!e)return;t.valueCache?.onDataChanged();const o=[],n=[],r=new Ea;for(const{rowDataTransaction:a,callback:l}of i??[]){this.rowNodesCountReady=!0;const c=e.updateRowData(a,r);o.push(c),l&&n.push(l.bind(null,c))}this.commitTransactions(r),n.length>0&&setTimeout(()=>{for(let a=0,l=n.length;a<l;a++)n[a]()},0),o.length>0&&s.dispatchEvent({type:"asyncTransactionsFlushed",results:o}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const s=new Ea,i=t.updateRowData(e,s);return this.commitTransactions(s),i}commitTransactions(e){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{beans:e,rootNode:t}=this,s=e.flattenStage;if(s){this.rowsToDisplay=s.execute({rowNode:t});return}const i=this.rootNode.childrenAfterSort??[];for(const o of i)o.setUiLevel(0);this.rowsToDisplay=i}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const s=e.sibling;s?.setRowHeight(s.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const s=t.detailNode;s?.setRowHeight(s.rowHeight,!0);const i=t.sibling;i?.setRowHeight(i.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},FC=(e,t)=>{const s=t.childrenAfterGroup;if(s)for(let i=0,o=s.length;i<o;++i){const n=s[i];n.data&&e.push(n),n.group&&FC(e,n)}};function i6(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function o6(e,t){const s=pi(e);s&&((!t||t==="everything")&&(t="group"),s.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function n6(e){return pi(e)?.isEmpty()??!0}function r6(e,t){pi(e)?.forEachLeafNode(t)}function a6(e,t){pi(e)?.forEachNodeAfterFilter(t)}function l6(e,t){pi(e)?.forEachNodeAfterFilterAndSort(t)}function c6(e,t){return e.frameworkOverrides.wrapIncoming(()=>pi(e)?.updateRowData(t))}function d6(e,t,s){e.frameworkOverrides.wrapIncoming(()=>pi(e)?.batchUpdateRowData(t,s))}function u6(e){e.frameworkOverrides.wrapIncoming(()=>pi(e)?.flushAsyncTransactions())}function h6(e){return e.selectionSvc?.getBestCostNodeSelection()}var p6={moduleName:"ClientSideRowModel",version:ee,rowModels:["clientSide"],beans:[s6,QM],dependsOn:[$v]},g6={moduleName:"ClientSideRowModelApi",version:ee,apiFunctions:{onGroupExpandedOrCollapsed:i6,refreshClientSideRowModel:o6,isRowDataEmpty:n6,forEachLeafNode:r6,forEachNodeAfterFilter:a6,forEachNodeAfterFilterAndSort:l6,applyTransaction:c6,applyTransactionAsync:d6,flushAsyncTransactions:u6,getBestCostNodeSelection:h6,resetRowHeights:SC,onRowHeightChanged:yC},dependsOn:[zM,WM]},f6=class extends O{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:s,columnKeys:i,skipRowGroups:o,exportRowNumbers:n}=t,r=this.getColumnsToExport({allColumns:s,skipRowGroups:o,columnKeys:i,exportRowNumbers:n});return[this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t)].reduce((a,l)=>l(a),e).parse()}processRow(e,t,s,i){const o=t.shouldRowBeSkipped||(()=>!1),r=t.rowPositions!=null||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!r,l=this.colModel.isPivotMode()?i.leafGroup:!i.group,c=!!i.footer,d=i.allChildrenCount===1&&i.childrenAfterGroup?.length===1&&Iy(this.gos,i);if(!l&&!c&&(t.skipRowGroups||d||a)||t.onlySelected&&!i.isSelected()||t.skipPinnedTop&&i.rowPinned==="top"||t.skipPinnedBottom&&i.rowPinned==="bottom"||i.stub||i.level===-1&&!l&&!c||o(xe(this.gos,{node:i})))return;const g=e.onNewBodyRow(i);if(s.forEach((f,v)=>{g.onColumn(f,v,i)}),t.getCustomContentBelowRow){const f=t.getCustomContentBelowRow(xe(this.gos,{node:i}));f&&e.addCustomContent(f)}}appendContent(e){return t=>{const s=e.appendContent;return s&&t.addCustomContent(s),t}}prependContent(e){return t=>{const s=e.prependContent;return s&&t.addCustomContent(s),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return s=>{if(!e.skipColumnGroupHeaders){const i=new vm,{colGroupSvc:o}=this.beans,n=o?o.createColumnGroups({columns:t,idCreator:i,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(n,s,e.processGroupHeaderCallback)}return s}}exportHeaders(e,t){return s=>{if(!e.skipColumnHeaders){const i=s.onNewHeaderRow();t.forEach((o,n)=>{i.onColumn(o,n,void 0)})}return s}}processPinnedTopRows(e,t){return s=>{const i=this.processRow.bind(this,s,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="top").sort((o,n)=>o.rowIndex-n.rowIndex).map(o=>this.pinnedRowModel?.getPinnedTopRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",i),s}}processRows(e,t){return s=>{const i=this.rowModel,o=tt(this.gos),n=_i(this.gos),r=!o&&e.onlySelected,a=this.processRow.bind(this,s,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(c=>c.rowPinned==null).sort((c,d)=>c.rowIndex-d.rowIndex).map(c=>i.getRow(c.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())o?i.forEachPivotNode(a,!0,l==="filteredAndSorted"):n?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);else if(e.onlySelectedAllPages||r){const c=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(c),c.forEach(a)}else l==="all"?i.forEachNode(a):o||n?i.forEachNodeAfterFilterAndSort(a,!0):i.forEachNode(a);return s}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:s}=this.beans;if(!t||!s)return;const i=t.getSortOptions(),o=(n,r)=>n.rowIndex!=null&&r.rowIndex!=null?n.rowIndex-r.rowIndex:n.level===r.level?n.parent?.id===r.parent?.id?s.compareRowNodes(i,{rowNode:n,currentPos:n.rowIndex??-1},{rowNode:r,currentPos:r.rowIndex??-1}):o(n.parent,r.parent):n.level>r.level?o(n.parent,r):o(n,r.parent);e.sort(o)}processPinnedBottomRows(e,t){return s=>{const i=this.processRow.bind(this,s,e,t);return e.rowPositions?e.rowPositions.filter(o=>o.rowPinned==="bottom").sort((o,n)=>o.rowIndex-n.rowIndex).map(o=>this.pinnedRowModel?.getPinnedBottomRow(o.rowIndex)).forEach(i):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",i),s}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:s=!1,exportRowNumbers:i=!1,columnKeys:o}=e,{colModel:n,gos:r,visibleCols:a}=this,l=n.isPivotMode(),c=h=>Us(h)?!1:!Hs(h)||i;if(o?.length)return n.getColsForKeys(o).filter(c);const d=r.get("treeData");let u=[];return t&&!l?u=n.getCols():u=a.allCols,u=u.filter(h=>c(h)&&(s&&!d?!Tu(h):!0)),u}recursivelyAddHeaderGroups(e,t,s){const i=[];for(const o of e){const n=o;if(n.getChildren)for(const r of n.getChildren()??[])i.push(r)}e.length>0&&it(e[0])&&this.doAddHeaderHeader(t,e,s),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,t,s)}doAddHeaderHeader(e,t,s){const i=e.onNewHeaderGroupingRow();let o=0;for(const n of t){const r=n;let a;s?a=s(xe(this.gos,{columnGroup:r})):a=this.beans.colNames.getDisplayNameForColumnGroup(r,"header");const c=(r.isExpandable()?r.getLeafColumns():[]).reduce((d,u,h,g)=>{let f=We(d);return u.getColumnGroupShow()==="open"?(!f||f[1]!=null)&&(f=[h],d.push(f)):f&&f[1]==null&&(f[1]=h-1),h===g.length-1&&f&&f[1]==null&&(f[1]=h),d},[]);i.onColumn(r,a||"",o++,r.getLeafColumns().length-1,c)}}},m6={moduleName:"SharedExport",version:ee,beans:[f6]},wg=`\r
|
|
66
|
-
`,v6=class extends UT{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:s}=e;this.suppressQuotes=t,this.columnSeparator=s}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,wg),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((s,i)=>{i!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(s.data.value||""),s.mergeAcross&&this.appendEmptyCells(s.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,s,i){s!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,s){t!=0&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue(e,t,t,"csv",s);this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():($(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=wg),this.isFirstLine=!1}},C6=class extends _T{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){$(51);return}const t=this.getMergedParams(e),s=this.getData(t),i=new Blob(["\uFEFF",s],{type:"text/plain"}),o=typeof t.fileName=="function"?t.fileName(xe(this.gos,{})):t.fileName;$T(this.getFileName(o),i)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const s=t?Object.assign({},e):this.getMergedParams(e);return this.getData(s)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:s,rowGroupColsSvc:i,valueSvc:o,gos:n}=this,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:u}=e;return new v6({colModel:t,colNames:s,valueSvc:o,gos:n,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:u||",",rowGroupColsSvc:i})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function w6(e,t){return e.csvCreator?.getDataAsCsv(t)}function b6(e,t){e.csvCreator?.exportDataAsCsv(t)}var x6={moduleName:"CsvExport",version:ee,beans:[C6],apiFunctions:{getDataAsCsv:w6,exportDataAsCsv:b6},dependsOn:[m6]},y6=class extends O{constructor(e,t,s){super(),this.id=e,this.parentCache=t,this.params=s,this.state="needsLoading",this.version=0,this.startRow=e*s.blockSize,this.endRow=this.startRow+s.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,s){this.successCommon(e,{rowData:t,rowCount:s})}isRequestMostRecentAndLive(e){const t=e===this.version,s=this.isAlive();return t&&s}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:s,beans:i,rowNodes:o}=this;for(let n=0;n<e;n++){const r=s+n,a=new ci(i);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(r),a.setRowTop(t*r),o.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:s,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:s,pageStatus:i}}}setDataAndId(e,t,s){te(t)?e.setDataAndId(t,s.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Xe(this.params.datasource.getRows)){$(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:s,params:{sortModel:i,filterModel:o},gos:n}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,s),failCallback:this.pageLoadFailed.bind(this,s),sortModel:i,filterModel:o,context:xe(n,{}).context}}forEachNode(e,t,s){this.rowNodes.forEach((i,o)=>{this.startRow+o<s&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const s=e-this.startRow;return this.rowNodes[s]}processServerResult(e){const{rowNodes:t,beans:s}=this;t.forEach((o,n)=>{const r=e.rowData?e.rowData[n]:void 0;!o.id&&o.alreadyRendered&&r&&(t[n]=new ci(s),t[n].setRowIndex(o.rowIndex),t[n].setRowTop(o.rowTop),t[n].setRowHeight(o.rowHeight),o.clearRowTopAndRowIndex()),this.setDataAndId(t[n],r,this.startRow+n)});const i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){for(const e of this.rowNodes)e.clearRowTopAndRowIndex();super.destroy()}},S6=2,R6=class extends O{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const s=Math.floor(e/this.params.blockSize);let i=this.blocks[s];if(!i){if(t)return;i=this.createBlock(s)}return i.getRow(e)}createBlock(e){const t=this.params,s=this.createBean(new y6(e,this,t));return this.blocks[s.id]=s,this.blockCount++,this.purgeBlocksIfNeeded(s),t.rowNodeBlockLoader.addBlock(s),s}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Hi(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(r=>r!=e),s=(r,a)=>a.lastAccessed-r.lastAccessed;t.sort(s);const i=this.params.maxBlocksInCache>0,o=i?this.params.maxBlocksInCache-1:null,n=S6-1;t.forEach((r,a)=>{const l=r.state==="needsLoading"&&a>=n,c=i?a>=o:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(r)||this.isBlockFocused(r))return;this.removeBlockFromCache(r)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:s,endRow:i}=e;return t.rowIndex>=s&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:s}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,s-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:s,overflowSize:i}=this.params,n=(e.id+1)*s+i;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,t){this.rowCount=e,te(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const s of this.getBlocksInOrder())s.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(s,i)=>s.id-i.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const s=[];let i=-1,o=!1;const n={value:0};let r=!1;for(const l of this.getBlocksInOrder())if(!r){if(o&&i+1!==l.id){r=!0;continue}i=l.id,l.forEachNode(c=>{const d=c===e||c===t;(o||d)&&s.push(c),d&&(o=!o)},n,this.rowCount)}return r||o?[]:s}},F6=class extends O{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new ci(e);this.rootNode=t,t.level=-1,this.rowHeight=Ti(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Ti(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!Kn(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;zo(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:s,rowNodeBlockLoader:i,eventSvc:o,gos:n}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:s?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:n.get("infiniteInitialRowCount"),maxBlocksInCache:n.get("maxBlocksInCache"),rowHeight:Ti(e),overflowSize:n.get("cacheOverflowSize"),blockSize:n.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new R6(this.cacheParams)),o.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(s=>{s.id===e&&(t=s)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),s=this.getRowCount()-1;return t>s?s:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function E6(e){Sl(e)?.refreshCache()}function D6(e){Sl(e)?.purgeCache()}function P6(e){return Sl(e)?.getRowCount()}var T6=class extends O{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=Ay(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=ut(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){ds(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Hi(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(s=>s.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const s of t)s.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:s,state:i}=t.getBlockStateJson();e[s]=i}),e}printCacheStatus(){Hi(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},k6={moduleName:"InfiniteRowModelCore",version:ee,rowModels:["infinite"],beans:[F6,T6]},M6={moduleName:"InfiniteRowModel",version:ee,apiFunctions:{refreshInfiniteCache:E6,purgeInfiniteCache:D6,getInfiniteRowCount:P6},dependsOn:[k6,jM]},I6="↑",A6="↓",L6={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},O6=class extends et{constructor(){super(L6),this.eValue=we,this.eDelta=we,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const s=Math.abs(t),i=e.formatValue(s),o=te(i)?i:s,n=t>=0,r=this.eDelta;n?r.textContent=I6+o:r.textContent=A6+o,r.classList.toggle("ag-value-change-delta-up",n),r.classList.toggle("ag-value-change-delta-down",!n)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Lt(this.eDelta)}refresh(e,t=!1){const{value:s,valueFormatted:i}=e,{eValue:o,lastValue:n,beans:r}=this;if(s===n||(te(i)?o.textContent=i:te(s)?o.textContent=s:Lt(o),r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=s&&typeof s=="object"&&"toNumber"in s?s.toNumber():s,l=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const c=a-l;this.showDelta(e,c)}return n&&o.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=s,!0}},N6=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",H6={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},G6=class extends et{constructor(){super(H6),this.eCurrent=we,this.refreshCount=0,this.registerCSS(N6)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:s}=this,i=Dt({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=s.textContent,this.getGui().insertBefore(i,s),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let s=e.value;if(Xe(s)&&(s=""),s===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=s;const i=this.eCurrent;return te(e.valueFormatted)?i.textContent=e.valueFormatted:te(e.value)?i.textContent=s:Lt(i),!0}},B6=class extends O{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,s=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const o=this.animations[t];o.delete(e);const n=Date.now(),r=n+s,a=n+s+i,l={phase:"flash",flashEndTime:r,fadeEndTime:a};o.set(e,l);const c=`ag-cell-${t}`,d=`${c}-animation`,{comp:u,eGui:{style:h}}=e;u.toggleCss(c,!0),u.toggleCss(d,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),s)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const s of Object.keys(this.animations)){const i=this.animations[s],o=`ag-cell-${s}`,n=`${o}-animation`;for(const[r,a]of i){if(!r.isAlive()||!r.comp){i.delete(r);continue}const{phase:l,flashEndTime:c,fadeEndTime:d}=a,u=l==="flash"?c:d;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}const{comp:g,eGui:{style:f}}=r;switch(l){case"flash":g.toggleCss(o,!1),g.toggleCss(n,!0),f.transition=`background-color ${d-c}ms`,f.transitionDelay=`${c-e}ms`,t=Math.min(d,t??1/0),a.phase="fade";break;case"fade":g.toggleCss(o,!1),g.toggleCss(n,!1),f.removeProperty("transition"),f.removeProperty("transition-delay"),i.delete(r);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const s=kE(e.cellPosition);t.cells[s]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function V6(e,t={}){const{cellFlashSvc:s}=e;s&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))s.flashCell(i,t)})}var z6={moduleName:"HighlightChanges",version:ee,beans:[B6],userComponents:{agAnimateShowChangeCellRenderer:O6,agAnimateSlideCellRenderer:G6},apiFunctions:{flashCells:V6}};function W6(e){return e.stateSvc?.getState()??{}}function j6(e,t,s){return e.stateSvc?.setState(t,s)}function bg(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=_6(e)),e.version=ee,e}function _6(e){return e.cellSelection=U6(e,"rangeSelection"),e}function U6(e,t){if(e&&typeof e=="object")return e[t]}var $6=class extends O{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=ut(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=ut(this,()=>{this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowGroupExpansion",void 0)):(this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("ssrmRowGroupExpansion",void 0))},0),this.onRowSelectedDebounced=ut(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:s}=this.beans;this.isClientSideRowModel=tt(e);const i=bg(e.get("initialState")??{}),o=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const n=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>n(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&s?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:c})=>{c==="gridInitializing"&&(r(),n(()=>{this.setupStateOnColumnsInitialised(i,!!o),s?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),n(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),n(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const s=bg(e);delete s.partialColumnState,this.cachedState=s,this.startSuppressEvents();const i="api",o=t?new Set(t):void 0;this.setGridReadyState(s,i,o),this.setColumnsInitialisedState(s,i,!!o,o),this.setRowCountState(s,i,o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(s,i,o),this.stopSuppressEvents(i)})}setGridReadyState(e,t,s){t==="api"&&!s?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,s,i){this.setColumnState(e,t,s,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const s=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:s("aggregation"),columnMoved:s("columnOrder"),columnPinned:s("columnPinning"),columnResized:s("columnSizing"),columnVisible:s("columnVisibility"),columnPivotChanged:s("pivot"),columnPivotModeChanged:s("pivot"),columnRowGroupChanged:s("rowGroup"),sortChanged:s("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,s){const{filter:i,rowGroupExpansion:o,ssrmRowGroupExpansion:n,rowSelection:r,pagination:a}=e,l=(d,u)=>!s?.has(d)&&(u||t==="api");l("filter",i)&&this.setFilterState(i),l("rowGroupExpansion",o)&&this.setRowGroupExpansionState(n,o,t),l("rowSelection",r)&&this.setRowSelectionState(r,t),l("pagination",a)&&this.setPaginationState(a,t);const c=this.updateCachedState.bind(this);c("filter",this.getFilterState()),this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(c("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),c("rowGroupExpansion",void 0)):(c("rowGroupExpansion",this.getRowGroupExpansionState()),c("ssrmRowGroupExpansion",void 0)),c("rowSelection",this.getRowSelectionState()),c("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(t("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),t("rowGroupExpansion",void 0)):(t("rowGroupExpansion",this.getRowGroupExpansionState()),t("ssrmRowGroupExpansion",void 0))},i=()=>t("filter",this.getFilterState()),{gos:o,colFilter:n}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:s,columnRowGroupChanged:s,rowDataUpdated:()=>{(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(s)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:r=>{(r.newPage||r.newPageSize)&&t("pagination",this.getPaginationState())}}),n&&this.addManagedListeners(n,{filterStateChanged:i})}setFirstDataRenderedState(e,t,s){const{scroll:i,cellSelection:o,focusedCell:n,columnOrder:r,rowPinning:a}=e,l=(u,h)=>!s?.has(u)&&(h||t==="api");l("focusedCell",n)&&this.setFocusedCellState(n),l("cellSelection",o)&&this.setCellSelectionState(o),l("scroll",i)&&this.setScrollState(i),l("rowPinning",a)&&this.setRowPinningState(a),this.setColumnPivotState(!!r?.orderedColIds,t);const c=this.updateCachedState.bind(this);c("sideBar",this.getSideBarState()),c("focusedCell",this.getFocusedCellState());const d=this.getRangeSelectionState();c("rangeSelection",d),c("cellSelection",d),c("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:s,cellFocusCleared:s,cellSelectionChanged:i=>{if(i.finished){const o=this.getRangeSelectionState();t("rangeSelection",o),t("cellSelection",o)}},bodyScrollEnd:()=>t("scroll",this.getScrollState()),pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return VT($a(e),e.colModel.isPivotMode())}setColumnState(e,t,s,i){const{sort:o,rowGroup:n,aggregation:r,pivot:a,columnPinning:l,columnVisibility:c,columnSizing:d,columnOrder:u}=e;let h=!1;const g=(T,M)=>{const N=!i?.has(T)&&!!(M||t==="api");return h||(h=N),N},f={},v=T=>{let M=f[T];return M||(M={colId:T},f[T]=M,M)},C={},w=g("sort",o);w&&o?.sortModel.forEach(({colId:T,sort:M},N)=>{const q=v(T);q.sort=M,q.sortIndex=N}),(w||!s)&&(C.sort=null,C.sortIndex=null);const b=g("rowGroup",n);b&&n?.groupColIds.forEach((T,M)=>{const N=v(T);N.rowGroup=!0,N.rowGroupIndex=M}),(b||!s)&&(C.rowGroup=null,C.rowGroupIndex=null);const x=g("aggregation",r);x&&r?.aggregationModel.forEach(({colId:T,aggFunc:M})=>{v(T).aggFunc=M}),(x||!s)&&(C.aggFunc=null);const y=g("pivot",a);y&&(a?.pivotColIds.forEach((T,M)=>{const N=v(T);N.pivot=!0,N.pivotIndex=M}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(y||!s)&&(C.pivot=null,C.pivotIndex=null);const S=g("columnPinning",l);if(S){for(const T of l?.leftColIds??[])v(T).pinned="left";for(const T of l?.rightColIds??[])v(T).pinned="right"}(S||!s)&&(C.pinned=null);const E=g("columnVisibility",c);if(E)for(const T of c?.hiddenColIds??[])v(T).hide=!0;(E||!s)&&(C.hide=null);const R=g("columnSizing",d);if(R)for(const{colId:T,flex:M,width:N}of d?.columnSizingModel??[]){const q=v(T);q.flex=M??null,q.width=N}(R||!s)&&(C.flex=null);const F=u?.orderedColIds,D=!!F?.length&&!i?.has("columnOrder"),P=D?F.map(T=>v(T)):Object.values(f);(P.length||h)&&(this.columnStates=P,cs(this.beans,{state:P,applyOrder:D,defaultState:C},t))}setColumnPivotState(e,t){const s=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans,{pivotResultCols:n,colGroupSvc:r}=o;if(n?.isPivotResultColsPresent()){if(s){const a=[];for(const l of s)n.getPivotResultCol(l.colId)&&a.push(l);cs(o,{state:a,applyOrder:e},t)}i&&r?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return zT(t)}setColumnGroupState(e,t,s){const i=this.beans.colGroupSvc;if(!i||s?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const o=new Set(e.columnGroup?.openColumnGroupIds),r=i.getColumnGroupState().map(({groupId:a})=>{const l=o.has(a);return l&&o.delete(a),{groupId:a,open:l}});for(const a of o)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),i.setColumnGroupState(r,t)}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);const s=e?.getFilterState(),i=e?.getAdvFilterModel()??void 0;return t||i||s?{filterModel:t,columnFilterState:s,advancedFilterModel:i}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:s,columnFilterState:i,advancedFilterModel:o}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};(s!==void 0||i!==void 0)&&t?.setFilterState(s??null,i??null,"columnFilter"),o!==void 0&&t?.setAdvFilterModel(o??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:s,type:i,startRow:o,endRow:n,columns:r,startColumn:a}=t;return{id:s,type:i,startRow:o,endRow:n,colIds:r.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:s,colModel:i,visibleCols:o}=this.beans;if(!ai(t)||!s)return;const n=[];for(const r of e?.cellRanges??[]){const a=[];for(const c of r.colIds){const d=i.getCol(c);d&&a.push(d)}if(!a.length)continue;let l=i.getCol(r.startColId);if(!l){const c=o.allCols,d=new Set(a);l=c.find(u=>d.has(u))}n.push({...r,columns:a,startColumn:l})}s.setCellRanges(n)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:s}=e?.getVScrollPosition()??{top:0};return s||t?{top:s,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:s}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:o,animationFrameSvc:n,ctrlsSvc:r}=this.beans;i.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(s),r.getScrollFeature()?.setVerticalScrollPosition(t),o.redraw({afterScroll:!0}),n?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:s,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:s,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:s}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:i,rowIndex:o,rowPinned:n}=e;t.setFocusedCell({column:s.getCol(i),rowIndex:o,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const s=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!s&&!i))return{page:s,pageSize:i}}setPaginationState(e,t){const{pagination:s,gos:i}=this.beans;if(!s)return;const{pageSize:o,page:n}=e??{page:0,pageSize:i.get("paginationPageSize")},r=t==="gridInitializing";o&&!i.get("paginationAutoPageSize")&&s.setPageSize(o,r?"initialState":"pageSizeSelector"),typeof n=="number"&&(r?s.setPage(n):s.goToPage(n))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}getRowGroupExpansionState(){const{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,s){const i=this.beans.expansionSvc;if(!i)return;const o=t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};i.setExpansionState(o,s)}updateColumnState(e){const t=this.getColumnState();let s=!1;const i=this.cachedState;for(const o of Object.keys(t)){const n=t[o];Kn(n,i[o])||(s=!0)}this.cachedState={...i,...t},s&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const s=this.cachedState[e];this.setCachedStateValue(e,t),Kn(t,s)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},q6={moduleName:"GridState",version:ee,beans:[$6],apiFunctions:{getState:W6,setState:j6}};function K6(e){return e.rowModel.isLastRowIndexKnown()}function Y6(e){return e.pagination?.getPageSize()??100}function X6(e){return e.pagination?.getCurrentPage()??0}function Z6(e){return e.pagination?.getTotalPages()??1}function Q6(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function J6(e){e.pagination?.goToNextPage()}function eI(e){e.pagination?.goToPreviousPage()}function tI(e){e.pagination?.goToFirstPage()}function sI(e){e.pagination?.goToLastPage()}function iI(e,t){e.pagination?.goToPage(t)}var oI=class extends O{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,s=()=>{const i=Math.max(Ti(t),1),o=Math.floor(e/i);t.pagination.setPageSize(o,"autoCalculated")};this.isBodyRendered?ut(this,s,50)():(s(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},Fn="paginationPageSizeSelector",nI={tag:"span",cls:"ag-paging-page-size"},rI=class extends et{constructor(){super(nI),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(Fn,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Lt(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Fn)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),s=!t||!e.includes(t);if(s){const o=this.gos.exists("paginationPageSize"),n=this.gos.get(Fn)!==!0;$(94,{pageSizeSet:o,pageSizesSet:n,pageSizeOptions:e,paginationPageSizeOption:t}),n||$(95,{paginationPageSizeOption:t,paginationPageSizeSelector:Fn}),e.unshift("")}const i=String(s?"":t);this.selectPageSizeComp?(ui(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=s}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const s=this.getLocaleTextFunc(),i=s("pageSizeSelectorLabel","Page Size:"),o=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Nu).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(Fn);return!Array.isArray(t)||!t?.length?e:[...t].sort((s,i)=>s-i)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},aI={selector:"AG-PAGE-SIZE-SELECTOR",component:rI},lI=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",cI=class extends sE{constructor(){super(),this.btFirst=we,this.btPrevious=we,this.btNext=we,this.btLast=we,this.lbRecordCount=we,this.lbFirstRowOnPage=we,this.lbLastRowOnPage=we,this.lbCurrent=we,this.lbTotal=we,this.pageSizeComp=we,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(lI)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[aI]);const{btFirst:t,btPrevious:s,btNext:i,btLast:o}=this;this.activateTabIndex([t,s,i,o]),t.insertAdjacentElement("afterbegin",Jt(e?"last":"first",this.beans)),s.insertAdjacentElement("afterbegin",Jt(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",Jt(e?"previous":"next",this.beans)),o.insertAdjacentElement("afterbegin",Jt(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:n=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(n):bF(this.beans,n),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:s}=e;this.addManagedListeners(t,{click:s,keydown:i=>{(i.key===I.ENTER||i.key===I.SPACE)&&(i.preventDefault(),s())}})}wF(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):jT(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),s=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),o=e===s-1;this.nextButtonDisabled=o||i,this.lastButtonDisabled=!t||i||e===s-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){H0(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),s=this.pagination.getMasterRowCount(),i=e?s:null,o=this.pagination.getCurrentPage(),n=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=n*o+1,a=r+n-1,e&&a>i&&(a=i));const l=r+n-1,c=!e&&s<l,d=this.formatNumber(r);this.lbFirstRowOnPage.textContent=d;let u;const h=this.getLocaleTextFunc();c?u=h("pageLastRowUnknown","?"):u=this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const f=t>0?o+1:0,v=this.formatNumber(f);this.lbCurrent.textContent=v;let C,w;if(e)C=this.formatNumber(t),w=this.formatNumber(i);else{const b=h("more","more");C=b,w=b}this.lbTotal.textContent=C,this.lbRecordCount.textContent=w,this.announceAriaStatus(d,u,w,v,C)}announceAriaStatus(e,t,s,i,o){const n=this.getLocaleTextFunc(),r=n("page","Page"),a=n("to","to"),l=n("of","of"),c=`${e} ${a} ${t} ${l} ${s}`,d=`${r} ${i} ${l} ${o}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),d!==this.ariaPageStatus&&(this.ariaPageStatus=d,this.ariaAnnounce?.announceValue(d,"paginationPage"))}},dI={selector:"AG-PAGINATION",component:cI},uI=class extends O{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return dI}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:s}=this.beans;s?.isEditing()&&(s.isBatchEditing()?s.cleanupEditors():s.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return te(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:te(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:te(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:te(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const s=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}s!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const s=this.pageSize,i=t-1;this.totalPages=Math.floor(i/s)+1,this.adjustCurrentPageIfInvalid();const o=this.currentPage,n=s*o;let r=s*(o+1)-1;if(r>i&&(r=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(n),r===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:s}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*s,this.bottomDisplayedRowIndex=t*(s+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:s=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:s,newPageSize:i,keepRenderedRows:t})}},hI={moduleName:"Pagination",version:ee,beans:[uI,oI],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:K6,paginationGetPageSize:Y6,paginationGetCurrentPage:X6,paginationGetTotalPages:Z6,paginationGetRowCount:Q6,paginationGoToNextPage:J6,paginationGoToPreviousPage:eI,paginationGoToFirstPage:tI,paginationGoToLastPage:sI,paginationGoToPage:iI},dependsOn:[Rl]};function pI(e,t={}){const s=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(s))}function EC(e,t,s,i,o){t&&(i&&t.parent&&t.parent.level!==-1&&EC(e,t.parent,s,i,o),t.setExpanded(s,void 0,o))}function gI(e,t){return e.rowModel.getRowNode(t)}function fI(e,t,s,i){e.rowRenderer.addRenderedRowListener(t,s,i)}function mI(e){return e.rowRenderer.getRenderedNodes()}function vI(e,t,s){e.rowModel.forEachNode(t,s)}function CI(e){return e.rowRenderer.firstRenderedRow}function wI(e){return e.rowRenderer.lastRenderedRow}function bI(e,t){return e.rowModel.getRow(t)}function xI(e){return e.rowModel.getRowCount()}var yI={moduleName:"RowApi",version:ee,apiFunctions:{redrawRows:pI,setRowNodeExpanded:EC,getRowNode:gI,addRenderedRowListener:fI,getRenderedNodes:mI,forEachNode:vI,getFirstDisplayedRowIndex:CI,getLastDisplayedRowIndex:wI,getDisplayedRowAtIndex:bI,getDisplayedRowCount:xI}},SI={moduleName:"ScrollApi",version:ee,apiFunctions:{getVerticalPixelRange:Ok,getHorizontalPixelRange:Nk,ensureColumnVisible:hC,ensureIndexVisible:pC,ensureNodeVisible:Hk}};function RI(e,t,s){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,o=`aria-${t}`;s===null?i.removeAttribute(o):i.setAttribute(o,s)}function FI(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function EI(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function DI(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function PI(e){e.animationFrameSvc?.flushAllFrames()}function TI(e){return{rowHeight:Ti(e),headerHeight:mr(e)}}function kI(e,t={}){const s=[];for(const n of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const r=n.getCellRenderer();r!=null&&s.push(tr(r))}if(t.columns?.length)return s;const i=[],o=qd(t.rowNodes);for(const n of e.rowRenderer.getAllRowCtrls()){if(o&&!Kd(n.rowNode,o)||!n.isFullWidth())continue;const r=n.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){const l=r[a];l!=null&&i.push(tr(l))}}return[...i,...s]}var MI={moduleName:"RenderApi",version:ee,apiFunctions:{setGridAriaProperty:RI,refreshCells:FI,refreshHeader:EI,isAnimationFrameQueueEmpty:DI,flushAllAnimationFrames:PI,getSizesForCurrentTheme:TI,getCellRendererInstances:kI}};function II(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function DC({colAutosize:e,visibleCols:t},s,i){Array.isArray(s)?e?.autoSizeCols({colKeys:s,skipHeader:i,source:"api"}):e?.autoSizeCols({...s,colKeys:s.colIds??t.allCols,source:"api"})}function AI(e,t){t&&typeof t=="object"?DC(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var LI=class extends O{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let s=!1;const i=t.type;if(i==="fitGridWidth"||i==="fitProvidedWidth")s=!0;else if(i==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const o=e.get("rowData");s=o!=null&&o.length>0&&tt(e)}s&&this.beans.colDelayRenderSvc?.hideColumns(i)}}autoSizeCols(e){const{eventSvc:t,visibleCols:s}=this.beans;this.innerAutoSizeCols(e).then(i=>{const o=c=>Wo(t,Array.from(c),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return o(i);const n=xg(this.beans),r=c=>s.leftCols.some(d=>Bn(d,c)),a=c=>s.rightCols.some(d=>Bn(d,c)),l=e.colKeys.filter(c=>!Us(c)&&!Hs(c)&&!r(c)&&!a(c));this.sizeColumnsToFit(n,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(c=>({...c,key:c.colId})),colKeys:l,onlyScaleUp:!0}),o(i)})}innerAutoSizeCols(e){return new Promise((t,s)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,s));const{colKeys:i,skipHeader:o,skipHeaderGroups:n,stopAtGroup:r,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:c=[],source:d="api"}=e,{animationFrameSvc:u,renderStatus:h,colModel:g,autoWidthCalc:f,visibleCols:v}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&h&&(!h.areHeaderCellsRendered()||!h.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,s)});return}this.timesDelayed=0;const C=new Set;let w=-1;const b=Object.fromEntries(c.map(({colId:S,...E})=>[S,E])),x=o??this.gos.get("skipHeaderOnAutoSize"),y=n??x;for(;w!==0;){w=0;const S=[];for(const E of i){if(!E||Ky(E))continue;const R=g.getCol(E);if(!R||C.has(R))continue;const F=f.getPreferredWidthForColumn(R,x);if(F>0){const D=b[R.colId]??{};D.minWidth??(D.minWidth=l),D.maxWidth??(D.maxWidth=a);const P=OI(R,F,D);R.setActualWidth(P,d),C.add(R),w++}S.push(R)}S.length&&v.refresh(d)}y||this.autoSizeColumnGroupsByColumns(i,d,r),t(C)})}autoSizeColumn(e,t,s){this.autoSizeCols({colKeys:[e],skipHeader:s,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,s){const{colModel:i,ctrlsSvc:o}=this.beans,n=new Set,r=i.getColsForKeys(e);for(const l of r){let c=l.getParent();for(;c&&c!=s;)c.isPadding()||n.add(c),c=c.getParent()}let a;for(const l of n){for(const c of o.getHeaderRowContainerCtrls())if(a=c.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const s=this.gos.get("skipHeaderOnAutoSize"),i=()=>{this.autoSizeColumn(t,"uiColumnResized",s)};e.addEventListener("dblclick",i);const o=new bi(e);return o.addEventListener("doubleTap",i),()=>{e.removeEventListener("dblclick",i),o.destroy()}}addColumnGroupResize(e,t,s){const i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{const n=[],r=t.getDisplayedLeafColumns();for(const a of r)a.getColDef().suppressAutoSize||n.push(a.getColId());n.length>0&&this.autoSizeCols({colKeys:n,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),s()};return e.addEventListener("dblclick",o),()=>e.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const s=xg(this.beans);if(s>0){this.sizeColumnsToFit(s,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):$(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",s,i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,s,i));return}const o={};for(const{key:f,...v}of i?.columnLimits??[])o[typeof f=="string"?f:f.getColId()]=v;const n=this.beans.visibleCols.allCols;if(e<=0||!n.length)return;const r=As(n);if(i?.onlyScaleUp&&r>e||e===r&&n.every(v=>{if(v.colDef.suppressSizeToFit)return!0;const C=o?.[v.getId()],w=C?.minWidth??i?.defaultMinWidth,b=C?.maxWidth??i?.defaultMaxWidth,x=v.getActualWidth();return(w==null||x>=w)&&(b==null||x<=b)}))return;const l=[],c=[];for(const f of n){const v=i?.colKeys?.some(C=>Bn(f,C))??!0;f.getColDef().suppressSizeToFit||!v?c.push(f):l.push(f)}const d=l.slice(0);let u=!1;const h=f=>{ds(l,f),c.push(f)};for(const f of l){f.resetActualWidth(t);const v=o?.[f.getId()],C=v?.minWidth??i?.defaultMinWidth,w=v?.maxWidth??i?.defaultMaxWidth,b=f.getActualWidth();typeof C=="number"&&b<C?f.setActualWidth(C,t,!0):typeof w=="number"&&b>w&&f.setActualWidth(w,t,!0)}for(;!u;){u=!0;const f=e-As(c);if(f<=0)for(const v of l){const C=o?.[v.getId()]?.minWidth??i?.defaultMinWidth??v.minWidth;v.setActualWidth(C,t,!0)}else{const v=f/As(l);let C=f;for(let w=l.length-1;w>=0;w--){const b=l[w],x=o?.[b.getId()],y=x?.minWidth??i?.defaultMinWidth,S=x?.maxWidth??i?.defaultMaxWidth,E=b.getMinWidth(),R=b.getMaxWidth(),F=typeof y=="number"&&y>E?y:E,D=typeof S=="number"&&S<R?S:R;let P=Math.round(b.getActualWidth()*v);P<F?(P=F,h(b),u=!1):P>D?(P=D,h(b),u=!1):w===0&&(P=C),b.setActualWidth(P,t,!0),C-=P}}}for(const f of d)f.fireColumnWidthChangedEvent(t);const g=this.beans.visibleCols;g.setLeftValues(t),g.updateBodyWidths(),!s&&Wo(this.eventSvc,d,!0,t)}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,s=e.get("autoSizeStrategy");s?.type!=="fitGridWidth"&&s?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const i=s.type;if(i==="fitGridWidth"){const{columnLimits:o,defaultMinWidth:n,defaultMaxWidth:r}=s,a=o?.map(({colId:l,minWidth:c,maxWidth:d})=>({key:l,minWidth:c,maxWidth:d}));this.sizeColumnsToFitGridBody({defaultMinWidth:n,defaultMaxWidth:r,columnLimits:a})}else i==="fitProvidedWidth"&&this.sizeColumnsToFit(s.width,"sizeColumnsToFit");t?.revealColumns(i)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const s="autosizeColumns";e?this.autoSizeCols({...t,source:s,colKeys:e}):this.autoSizeAllColumns({...t,source:s}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function OI(e,t,s={}){const i=s.minWidth??e.getMinWidth();t<i&&(t=i);const o=s.maxWidth??e.getMaxWidth();return t>o&&(t=o),t}function xg({ctrlsSvc:e,scrollVisibleSvc:t}){const s=e.getGridBodyCtrl(),o=s.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Zn(s.eGridBody)-o}var NI={moduleName:"ColumnAutoSize",version:ee,beans:[LI],apiFunctions:{sizeColumnsToFit:II,autoSizeColumns:DC,autoSizeAllColumns:AI},dependsOn:[xv]},HI=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function GI(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function BI(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function VI(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function zI(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function WI(e,t,s){return e.pinnedRowModel?.forEachPinnedRow(t,s)}var jI={moduleName:"PinnedRow",version:ee,beans:[YF],css:[HI],apiFunctions:{getPinnedTopRowCount:GI,getPinnedBottomRowCount:BI,getPinnedTopRow:VI,getPinnedBottomRow:zI,forEachPinnedRow:WI},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},_I=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const s of this.spannedNodes)s!==this.lastNode&&(t+=s.rowHeight);return e-t}},UI=class extends O{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:s,pinnedRowModel:i,rowModel:o,valueSvc:n,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),c=new Map,d=s.getCallback("isFullWidthRow"),u=a.equals,h=a.spanRows,g=typeof h=="function";let f=null,v=null,C;const w=(x,y)=>{f=x,v=null,C=y},b=x=>{const y=!x.isExpandable()&&!x.group&&!x.detail&&(d?!d({rowNode:x}):!0);if(x.rowIndex==null||!y){w(null,null);return}if(f==null||x.level!==f.level||x.footer||v&&x.rowIndex-1!==v?.getLastNode().rowIndex){w(x,n.getValue(t,x));return}const S=n.getValue(t,x);if(g){const E=xe(s,{valueA:C,nodeA:f,valueB:S,nodeB:x,column:t,colDef:a});if(!h(E)){w(x,S);return}}else if(u?!u(C,S):C!==S){w(x,S);return}if(!v){const E=l?.get(f);E?.firstNode===f?(E.reset(),v=E):v=new _I(t,f),c.set(f,v)}v.addSpannedNode(x),c.set(x,v)};switch(e){case"center":o.forEachDisplayedNode?.(x=>{(!r||r.isRowInPage(x.rowIndex))&&b(x)}),this.centerValueNodeMap=c;break;case"top":i?.forEachPinnedRow("top",b),this.topValueNodeMap=c;break;case"bottom":i?.forEachPinnedRow("bottom",b),this.bottomValueNodeMap=c;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},$I=class extends O{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=ut(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=ut(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const s=this.createManagedBean(new UI(e));this.spanningColumns.set(e,s),s.buildCache("top"),s.buildCache("bottom"),s.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const s=this.spanningColumns.get(e);return s?s.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:s}=this.beans,i=e.column,o=e.rowIndex,n=this.spanningColumns.get(i);if(!n)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(o);break;case"bottom":r=t?.getPinnedBottomRow(o);break;default:r=s.getRow(o)}if(r)return n.getCellSpan(r)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const s=this.spanningColumns.get(e);if(s)return s.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[s,i]of this.spanningColumns)if(i.isCellSpanning(e)){const o=i.getCellSpan(e);t(s,o)}}destroy(){super.destroy(),this.spanningColumns.clear()}},qI=class extends Ho{constructor(e,t,s){super(e.col,e.firstNode,s,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,s,i,o,n,r){this.eWrapper=s,super.setComp(e,t,s,i,o,n,r),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||Pf(e,t.rowIndex)}setAriaRowSpan(){z0(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(xl(t)){this.focusedCellPosition=void 0;return}const s=this.isCellFocused();s||(this.focusedCellPosition=void 0),e&&s&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},KI=class extends el{onRowIndexChanged(){super.onRowIndexChanged();for(const e of this.getAllCellCtrls())e.refreshAriaRowIndex()}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new qI(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},YI=class extends O{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,s=this.getCtrlsMap(e),i=s.size,o=this.getAllRelevantRowControls(e),n=new Map;let r=!1;for(const l of o)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(c,d)=>{if(n.has(d.firstNode))return;const u=s.get(d.firstNode);if(u){n.set(d.firstNode,u),s.delete(d.firstNode);return}r=!0;const h=new KI(d.firstNode,this.beans,!1,!1,!1);n.set(d.firstNode,h)});this.setCtrlsMap(e,n);const a=n.size===i;if(!(!r&&a)){for(const l of s.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,s=t?.getCellSpanByPosition(e);if(!s)return;const i=this.getCtrlsMap(e.rowPinned).get(s.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},XI={moduleName:"CellSpan",version:ee,beans:[$I,YI]},ZI=class extends O{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,s=e.colDef,i=s.cellClassRules,o=this.getCellClassParams(e,s);eh(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,o,n=>t.toggleCss(n,!0),n=>t.toggleCss(n,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,s=t.cellStyle;if(!s)return;let i;if(typeof s=="function"){const o=this.getCellClassParams(e,t);i=s(o)}else i=s;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,s=e.colDef,i=this.getCellClassParams(e,s);for(const n of this.staticClasses)t.toggleCss(n,!1);const o=this.beans.cellStyles.getStaticCellClasses(s,i);this.staticClasses=o;for(const n of o)t.toggleCss(n,!0)}getCellClassParams(e,t){const{value:s,rowNode:i}=this.cellCtrl;return xe(this.beans.gos,{value:s,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},QI=class extends O{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,s,i){eh(this.beans.expressionSvc,void 0,e.cellClassRules,t,s,i),this.processStaticCellClasses(e,t,s)}getStaticCellClasses(e,t){const{cellClass:s}=e;if(!s)return[];let i;return typeof s=="function"?i=s(t):i=s,typeof i=="string"&&(i=[i]),i||[]}createCellCustomStyleFeature(e,t){return new ZI(e,t)}processStaticCellClasses(e,t,s){this.getStaticCellClasses(e,t).forEach(o=>{s(o)})}},JI={moduleName:"CellStyle",version:ee,beans:[QI]},eA={moduleName:"RowStyle",version:ee,beans:[B5]};function tA(e,t){return!!e.colHover?.isHovered(t)}var sA=class extends O{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=s=>{const{beans:i,gos:o,element:n,columns:r}=this,a=i.colHover;if(s??!!o.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(n,{mouseover:a.setMouseOver.bind(a,r),mouseout:a.clearMouseOver.bind(a)});else{for(const c of this.destroyManagedListeners)c();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},iA="ag-column-hover",oA=class extends O{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,s){const i=()=>{const o=this.isHovered(s);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}onCellColumnHover(e,t){if(!t)return;const s=this.isHovered(e);t.toggleCss(iA,s)}addHeaderFilterColumnHoverListener(e,t,s,i){this.createHoverFeature(e,[s],i);const o=()=>{const n=this.isHovered(s);t.toggleCss("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:o}),o()}createHoverFeature(e,t,s){e.createManagedBean(new sA(t,s))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},nA={moduleName:"ColumnHover",version:ee,beans:[oA],apiFunctions:{isColumnHovered:tA}},rA=class extends O{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const s=this.wrapSvc?.wrap(e,t)??t,i=!Pa.has(e),o=i?this.asyncListeners:this.syncListeners;o.has(e)||o.set(e,new Set),o.get(e).add(s),this.eventSvc.addListener(e,s,i)}removeListener(e,t){const s=this.wrapSvc?.unwrap(e,t)??t,o=!!this.asyncListeners.get(e)?.delete(s);o||this.syncListeners.get(e)?.delete(s),this.eventSvc.removeListener(e,s,o)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,s=(n,r)=>{Pa.has(n)&&t(n,r)},i=(n,r)=>{Pa.has(n)||t(n,r)};this.globalListenerPairs.set(e,{syncListener:s,asyncListener:i});const o=this.eventSvc;o.addGlobalListener(s,!1),o.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:s,globalListenerPairs:i}=this,o=s?.unwrapGlobal(e)??e;if(i.has(o)){const{syncListener:r,asyncListener:a}=i.get(o);t.removeGlobalListener(r,!1),t.removeGlobalListener(a,!0),i.delete(e)}else this.syncGlobalListeners.delete(o),t.removeGlobalListener(o,!1)}destroyEventListeners(e,t){e.forEach((s,i)=>{s.forEach(o=>this.eventSvc.removeListener(i,o,t)),s.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const s of e)this.eventSvc.removeGlobalListener(s,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:s,asyncListener:i})=>{t.removeGlobalListener(s,!1),t.removeGlobalListener(i,!0)}),e.clear()}};function aA(e,t,s){e.apiEventSvc?.addListener(t,s)}function lA(e,t,s){e.apiEventSvc?.removeListener(t,s)}function cA(e,t){e.apiEventSvc?.addGlobalListener(t)}function dA(e,t){e.apiEventSvc?.removeGlobalListener(t)}var uA={moduleName:"EventApi",version:ee,apiFunctions:{addEventListener:aA,addGlobalListener:cA,removeEventListener:lA,removeGlobalListener:dA},beans:[rA]},hA={moduleName:"Locale",version:ee,beans:[BT]},pA=class extends O{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=ut(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:s,pinnedRowModel:i}=this.beans,o=e.autoHeightCols;let n=!1;const r=a=>{const l=a.__autoHeights;let c=ri(this.beans,a).height;for(const d of o){let u=l?.[d.getColId()];const h=s?.getCellSpan(d,a);if(h){if(h.getLastNode()!==a)continue;if(u=s?.getCellSpan(d,a)?.getLastNodeAutoHeight(),!u)return}if(u==null){if(this.colSpanSkipCell(d,a))continue;return}c=Math.max(u,c)}c!==a.rowHeight&&(a.setRowHeight(c),n=!0)};i?.forEachPinnedRow?.("top",r),i?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),n&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,s){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[s.getId()];return}const i=e.__autoHeights[s.getId()];e.__autoHeights[s.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:s,colViewport:i,visibleCols:o}=this.beans;if(!s.colSpanActive)return!1;let n=[];switch(e.getPinned()){case"left":n=o.getLeftColsForRow(t);break;case"right":n=o.getRightColsForRow(t);break;case null:n=i.getColsWithinViewport(t);break}return!n.includes(e)}setupCellAutoHeight(e,t,s){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:o,column:n}=e,r=this.beans,a=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!s.isAlive())return;const{paddingTop:u,paddingBottom:h,borderBottomWidth:g,borderTopWidth:f}=ji(i),v=u+h+g+f,w=t.offsetHeight+v;if(d<5){const x=!pt(r)?.contains(t),y=w==0;if(x||y){window.setTimeout(()=>a(d+1),0);return}}this.setRowAutoHeight(o,w,n)},l=()=>a(0);l();const c=js(r,t,l);return s.addDestroyFunc(()=>{c(),this.setRowAutoHeight(o,void 0,n)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:s}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(s).filter(o=>o.isAutoHeight())),t.length!==0){if(!s.__autoHeights)return!1;for(const i of t){const o=s.__autoHeights[i.getColId()];if(!o||s.rowHeight<o)return!1}}return!0}},gA={moduleName:"RowAutoHeight",version:ee,beans:[pA]},fA={moduleName:"AllCommunity",version:ee,dependsOn:[p6,x6,M6,o4,gM,fM,mM,vM,CM,wM,bM,pM,rk,ak,lk,nk,dk,uk,q6,UM,hI,yv,yI,SI,MI,NI,$E,jI,OM,xT,JI,nA,eA,uA,RT,z6,uC,hA,gA,UE,g6,XI]};function ce(e,t={}){const s=Object.keys(t).map(i=>{const o=t[i];return o!=null?`${i}=${o}`:null}).filter(Boolean).join(";");return[e,s].filter(i=>i.length>0).join(":")}var oe={grid(e){return ce("ag-grid-root",{gridId:e})},headerGroupCell(e){return ce("ag-header-group-cell",{colId:e})},headerCell(e){return ce("ag-header-cell",{colId:e})},headerCheckbox(e){return ce("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return ce("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return ce("ag-floating-filter",{colId:e})},floatingFilterButton(e){return ce("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return ce("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return ce("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return ce(`ag-${e.source}-picker-display`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},numberFilterInstanceInput(e){return ce(`ag-${e.source}-number-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},textFilterInstanceInput(e){return ce(`ag-${e.source}-text-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},dateFilterInstanceInput(e){return ce(`ag-${e.source}-date-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceMiniFilterInput(e){return ce(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return ce(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return ce(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return ce(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return ce("ag-advanced-filter-input")},advancedFilterButton(e){return ce("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return ce("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return ce("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return ce("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return ce("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return ce("ag-advanced-filter-builder-add-item-button")},rowNode(e){return ce("ag-row",{"row-id":e})},cell(e,t){return ce("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return oe.cell(e,si)},checkbox(e,t){return ce("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return oe.checkbox(e,Du)},autoGroupColumnCheckbox(e){return oe.checkbox(e,si)},dragHandle(e,t){return ce("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return ce("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return ce("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return oe.groupContracted(e,si)},autoGroupExpanded(e){return oe.groupExpanded(e,si)},rowNumber(e){return oe.cell(e,Pu)},menu(){return ce("ag-menu")},menuOption(e){return ce("ag-menu-option",{option:e})},sideBar(){return ce("ag-side-bar")},sideBarButton(e){return ce("ag-side-button",{label:e})},columnToolPanel(){return ce("ag-column-panel")},pivotModeSelect(){return ce("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return ce("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return ce("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return ce("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return ce("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return ce("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,s){return ce("ag-column-drop-cell-drag-handle",{source:e,area:t,label:s})},columnDropCellCancelButton(e,t,s){return ce("ag-column-drop-cell-cancel",{source:e,area:t,label:s})},columnDropArea(e,t){return ce("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return ce("ag-filter-panel")},filterToolPanelAddFilterButton(){return ce("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return ce("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return ce("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return ce("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return ce("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return ce("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return ce("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return ce("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return ce("ag-status-bar-selected-row-count")},statusBarAggregations(){return ce("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return ce("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return ce("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return ce("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return ce("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return ce("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return ce("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return ce("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return ce("ag-fill-handle")},columnChooserCloseButton(){return ce("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return ce("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return ce("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return ce("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return ce("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return ce("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return ce("ag-overlay")}},PC="data-testid";function ue(e,t){e?.setAttribute(PC,t)}function mA(e){PC=e}var vA=class extends O{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=ut(this,()=>this.setupAllTestIds(),500),t=ut(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){const e=rs(this.beans),t=pv(this.beans),s=e.querySelector(`[grid-id="${t}"]`);ue(s,oe.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(n=>{ue(n,oe.headerGroupCell(n.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(n=>{const r=n.getAttribute("col-id"),l=n.classList.contains("ag-floating-filter")?oe.floatingFilter(r):oe.headerCell(r);ue(n,l),ue(n.querySelector(".ag-header-cell-filter-button"),oe.headerFilterButton(r)),ue(n.querySelector(".ag-header-cell-menu-button"),oe.headerCellMenuButton(r)),ue(n.querySelector(".ag-header-cell-resize"),oe.headerResizeHandle(r)),ue(n.querySelector(".ag-checkbox input[type=checkbox]"),oe.headerCheckbox(r)),ue(n.querySelector(".ag-floating-filter-button button"),oe.floatingFilterButton(r)),this.setupFilterInstance(n.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:r})});const i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),ue(e.querySelector(".ag-advanced-filter input[type=text]"),oe.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(n=>{ue(n,oe.advancedFilterButton(n.textContent))}),ue(e.querySelector("button.ag-advanced-filter-builder-button"),oe.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((n,r)=>{ue(n,r===0?oe.advancedFilterPanelMaximiseButton():oe.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(n=>{ue(n,oe.advancedFilterPill(n.querySelector(".ag-picker-field-display")?.textContent))}),ue(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),oe.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(n=>{const r=n.getAttribute("row-id");ue(n,oe.rowNode(r)),n.querySelectorAll(".ag-cell").forEach(a=>{const l=a.getAttribute("col-id");ue(a,oe.cell(r,l)),ue(a.querySelector(".ag-selection-checkbox input[type=checkbox]"),oe.checkbox(r,l)),ue(a.querySelector(".ag-drag-handle"),oe.dragHandle(r,l)),ue(a.querySelector(".ag-group-contracted"),oe.groupContracted(r,l)),ue(a.querySelector(".ag-group-expanded"),oe.groupExpanded(r,l))})}),e.querySelectorAll(".ag-menu-list").forEach(n=>{ue(n,oe.menu()),n.querySelectorAll(".ag-menu-option").forEach(r=>{ue(r,oe.menuOption(r.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(n=>{ue(n,oe.sideBar()),n.querySelectorAll(".ag-side-button button").forEach(r=>{ue(r,oe.sideBarButton(r.querySelector(".ag-side-button-label")?.textContent))}),n.querySelectorAll(".ag-column-panel").forEach(r=>{ue(r,oe.columnToolPanel()),ue(r.querySelector(".ag-pivot-mode-select input[type=checkbox]"),oe.pivotModeSelect()),ue(r.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),oe.columnPanelSelectHeaderCheckbox()),ue(r.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),oe.columnPanelSelectHeaderFilter()),r.querySelectorAll(".ag-column-select-list").forEach(a=>{a.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");ue(l.querySelector(".ag-column-group-closed-icon"),oe.columnSelectListItemGroupClosedIcon(c)),ue(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),oe.columnSelectListItemCheckbox(c)),ue(l.querySelector(".ag-drag-handle"),oe.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(r,"toolbar")}),n.querySelectorAll(".ag-filter-panel").forEach(r=>{ue(r,oe.filterToolPanel()),ue(r.querySelector("button.ag-filter-add-button"),oe.filterToolPanelAddFilterButton()),r.querySelectorAll(".ag-filter-card").forEach(a=>{const l=a.querySelector(".ag-filter-card-title")?.textContent,c=a.querySelector(".ag-filter-type-select");ue(c,oe.filterToolPanelFilterTypeSelector(l)),a.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),n.querySelectorAll(".ag-filter-toolpanel").forEach(r=>{ue(r.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),oe.filterToolPanelSearchInput()),r.querySelectorAll(".ag-filter-toolpanel-group").forEach(a=>{const l=a.querySelector(".ag-filter-toolpanel-group-title")?.textContent;ue(a,oe.filterToolPanelGroup(l)),ue(a.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),oe.filterToolPanelGroupCollapsedIcon(l));const c=a.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),ue(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),oe.statusBarTotalAndFilteredRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),oe.statusBarTotalRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),oe.statusBarFilteredRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),oe.statusBarSelectedRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),oe.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(n=>{ue(n.querySelector(".ag-paging-page-size .ag-picker-field-display"),oe.paginationPanelSizePickerDisplay(n.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),n.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbFirstRowOnPage":ue(r,oe.paginationPanelFirstRowOnPage(r.textContent));break;case"lbLastRowOnPage":ue(r,oe.paginationPanelLastRowOnPage(r.textContent));break;case"lbRecordCount":ue(r,oe.paginationPanelRecordCount(r.textContent));break}}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(r=>{ue(r,oe.paginationSummaryPanelButton(r.getAttribute("aria-label")?.toLowerCase()))}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbCurrent":ue(r,oe.paginationSummaryPanelCurrentPage(r.textContent));break;case"lbTotal":ue(r,oe.paginationSummaryPanelTotalPage(r.textContent));break}})}),ue(e.querySelector(".ag-fill-handle"),oe.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(n=>{ue(n.querySelector(".ag-panel-title-bar-button-icon"),oe.columnChooserCloseButton()),ue(n.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),oe.columnChooserSearchBarCheckbox()),ue(n.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),oe.columnChooserSearchBarFilter()),n.querySelectorAll(".ag-column-select-list").forEach(r=>{r.querySelectorAll(".ag-column-select-virtual-list-item").forEach(a=>{const l=a.getAttribute("aria-label");ue(a.querySelector(".ag-column-group-closed-icon"),oe.columnChooserListItemGroupClosedIcon(l)),ue(a.querySelector(".ag-column-select-checkbox input[type=checkbox]"),oe.columnChooserListItemCheckbox(l)),ue(a.querySelector(".ag-drag-handle"),oe.columnChooserListItemDragHandle(l))})})}),ue(e.querySelector(".ag-overlay-wrapper"),oe.overlay());const o=e.querySelector(".ag-column-drop-wrapper");o&&this.setupColumnDropArea(o,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(r=>{ue(r,oe.filterInstancePickerDisplay(t))});const s=e.querySelector('.ag-filter-body input[type="number"]');ue(s,oe.numberFilterInstanceInput(t));const i=e.querySelector('.ag-filter-body input[type="text"]');ue(i,oe.textFilterInstanceInput(t));const o=e.querySelector('.ag-filter-body input[type="date"]');ue(o,oe.dateFilterInstanceInput(t));const n=e.querySelector('.ag-mini-filter input[type="text"]');ue(n,oe.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(r=>{const a=r.querySelector(".ag-checkbox-label")?.textContent,l=r.querySelector('input[type="checkbox"]');ue(l,oe.setFilterInstanceItem(t,a))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(r=>{ue(r,oe.setFilterApplyPanelButton(t,r.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(r=>{const a=r.querySelector(".ag-radio-button-label")?.textContent;ue(r.querySelector("input[type=radio]"),oe.filterConditionRadioButton(t,a))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(s=>{const i=s.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");ue(s,oe.columnDropArea(t,i)),s.querySelectorAll(".ag-column-drop-cell").forEach(o=>{const n=o.querySelector(".ag-column-drop-cell-text")?.textContent;ue(o.querySelector(".ag-drag-handle"),oe.columnDropCellDragHandle(t,i,n)),ue(o.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),oe.columnDropCellCancelButton(t,i,n))})})}},CA={moduleName:"Testing",version:ee,beans:[vA]};function wA({testIdAttribute:e}={}){e&&mA(e),qf.registerModules([CA])}var yt=p.createContext({}),TC=p.createContext("default"),Cr=(e,t,s,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const n=e.newAgStackInstance();let r,a,l=!1;return n.then(c=>{if(l){t.destroyBean(c);return}r=c,a=r.getGui(),s.appendChild(a),yg(i,r)}),()=>{l=!0,r&&(a?.remove(),t.destroyBean(r),i&&yg(i,void 0))}},yg=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const s=e;s.current=t}},Yt=(...e)=>e.filter(s=>s!=null&&s!=="").join(" "),es=class kC{constructor(...t){this.classesMap={};for(const s of t)this.classesMap[s]=!0}setClass(t,s){if(!!this.classesMap[t]==s)return this;const o=new kC;return o.classesMap={...this.classesMap},o.classesMap[t]=s,o}toString(){return Object.keys(this.classesMap).filter(s=>this.classesMap[s]).join(" ")}},tn=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,s=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===s()},Jd=p.version?.split(".")[0],MC=Jd==="16"||Jd==="17";function bA(){return Jd==="19"}var ka=!1;function xA(e){return ka||setTimeout(()=>ka=!1,0),ka=!0,e()}var rr=(e,t)=>{!MC&&e&&!ka?Ko.flushSync(t):t()},yA=e=>{MC?e():p.startTransition(e)};function SA(e,t,s){return p.useSyncExternalStore?p.useSyncExternalStore(e,t):s}function il(e,t,s){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(s||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const i=[],o=[],n=new Map,r=new Map;for(let a=0;a<t.length;a++){const l=t[a];r.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];n.set(l.instanceId,l),r.has(l.instanceId)&&i.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;n.has(c)||o.push(l)}return i.length===e.length&&o.length===0?e:i.length===0&&o.length===t.length?t:i.length===0?o:o.length===0?i:[...i,...o]}var IC=p.forwardRef((e,t)=>{const{registry:s,context:i}=p.useContext(yt),o=p.useRef(null),n=p.useRef(null),r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(),[d,u]=p.useState(),[h,g]=p.useState(),[f,v]=p.useState(),[C,w]=p.useState(()=>new es),[b,x]=p.useState(()=>new es("ag-hidden")),[y,S]=p.useState(()=>new es("ag-hidden")),[E,R]=p.useState(()=>new es("ag-invisible"));p.useImperativeHandle(t,()=>({refresh(){return!1}})),p.useLayoutEffect(()=>Cr(d,i,n.current),[d]);const F=p.useCallback(H=>{if(o.current=H,!H||i.isDestroyed()){c.current=i.destroyBean(c.current);return}const A={setInnerRenderer:(k,B)=>{u(k),v(B)},setChildCount:k=>g(k),toggleCss:(k,B)=>w(U=>U.setClass(k,B)),setContractedDisplayed:k=>S(B=>B.setClass("ag-hidden",!k)),setExpandedDisplayed:k=>x(B=>B.setClass("ag-hidden",!k)),setCheckboxVisible:k=>R(B=>B.setClass("ag-invisible",!k)),setCheckboxSpacing:k=>R(B=>B.setClass("ag-group-checkbox-spacing",k))},de=s.createDynamicBean("groupCellRendererCtrl",!0);de&&(c.current=i.createBean(de),c.current.init(A,H,r.current,a.current,l.current,IC,e))},[]),D=p.useMemo(()=>`ag-cell-wrapper ${C.toString()}`,[C]),P=p.useMemo(()=>`ag-group-expanded ${b.toString()}`,[b]),T=p.useMemo(()=>`ag-group-contracted ${y.toString()}`,[y]),M=p.useMemo(()=>`ag-group-checkbox ${E.toString()}`,[E]),N=d?.componentFromFramework,q=N?d.componentClass:void 0,L=d==null&&f!=null,V=Qo(f);return p.createElement("span",{className:D,ref:F,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},p.createElement("span",{className:P,ref:a}),p.createElement("span",{className:T,ref:l}),p.createElement("span",{className:M,ref:r}),p.createElement("span",{className:"ag-group-value",ref:n},L?V:N?p.createElement(q,{...d.params}):null),p.createElement("span",{className:"ag-group-child-count"},h))}),Sg=IC,lh=p.createContext({setMethods:()=>{}}),RA=e=>{const{initialProps:t,addUpdateCallback:s,CustomComponentClass:i,setMethods:o}=e,[{key:n,...r},a]=p.useState(t);return p.useEffect(()=>{s(l=>a(l))},[]),p.createElement(lh.Provider,{value:{setMethods:o}},p.createElement(i,{key:n,...r}))},FA=p.memo(RA),EA=0;function Rg(){return`agPortalKey_${++EA}`}var AC=class{constructor(e,t,s,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=s,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Rg(),this.portalKey=Rg(),this.instanceCreated=this.isStatelessComponent()?Le.resolve(!1):new Le(o=>{this.resolveInstanceCreated=o})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),s=document.createElement(t||"div");return s.classList.add("ag-react-container"),e.reactContainer=s,s}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const s=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!s){setTimeout(()=>this.callMethod(e,t));return}const i=s[e];if(i)return i.apply(s,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Le(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Ko.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return p.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const s=this[`${e}Component`];if(!this.suppressFallbackMethods&&s)return s.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function Dl(e,t,s){for(const i of e){const o=t[i];o&&(s[i]=o)}}var Ut=class extends AC{constructor(){super(...arguments),this.awaitUpdateCallback=new Le(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=FA}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:s=>this.setMethods(s),addUpdateCallback:s=>{this.updateCallback=()=>(s(this.getProps()),new Le(i=>{setTimeout(()=>{i()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,Dl(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Le(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},DA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},PA=class extends Ut{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},TA=class extends Ut{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:s,shake:i}=this;return e.label=t,e.icon=s,e.shake=i,e}},kA=class extends Ut{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Le(s=>{this.resolveFilterPassCallback=s});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},MA=class extends Ut{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function LC(e,t){e.parentFilterInstance(s=>{(s.setModel(t)||Le.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var IA=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=s=>this.updateModel(s)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),LC(this.floatingFilterParams,e)}},AA=class extends Ut{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),LC(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},LA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},OA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},NA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}},HA=class extends Ut{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},GA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}},BA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},VA=class extends Ut{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function ch(){$(231)}var zA=1e3,WA=class{constructor(e,t,s){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=s||zA}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,s){this.portals=[...this.portals,e],this.waitForInstance(t,s),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,s=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-s>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){rr(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,s)})}}},jA=({ctrl:e})=>{const t=e.isAlive(),{context:s}=p.useContext(yt),[i,o]=p.useState(),[n,r]=p.useState(),a=p.useRef(),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=p.useRef();t&&!h.current&&(h.current=new pr(()=>l.current));const g=p.useCallback(w=>{if(l.current=w,!w||!e.isAlive()||s.isDestroyed()){a.current=s.destroyBean(a.current);return}a.current=s.createBean(new Jo);const b=()=>{const y=e.getSelectAllGui();y&&(c.current?.insertAdjacentElement("afterend",y),a.current.addDestroyFunc(()=>y.remove()))},x={setWidth:y=>{l.current&&(l.current.style.width=y)},toggleCss:(y,S)=>h.current.toggleCss(y,S),setUserStyles:y=>r(y),setAriaSort:y=>{l.current&&(y?_0(l.current,y):U0(l.current))},setUserCompDetails:y=>o(y),getUserCompInstance:()=>u.current||void 0,refreshSelectAllGui:b,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(x,w,c.current,d.current,a.current),b()},[]);p.useLayoutEffect(()=>Cr(i,s,d.current,u),[i]),p.useEffect(()=>{e.setDragSource(l.current)},[i]);const f=p.useMemo(()=>!!(i?.componentFromFramework&&tn(i.componentClass)),[i]),v=i?.componentFromFramework,C=i?.componentClass;return p.createElement("div",{ref:g,style:n,className:"ag-header-cell",role:"columnheader"},p.createElement("div",{ref:c,className:"ag-header-cell-resize",role:"presentation"}),p.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?f?p.createElement(C,{...i.params}):p.createElement(C,{...i.params,ref:u}):null))},_A=p.memo(jA),UA=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},$A=({ctrl:e})=>{const{context:t,gos:s}=p.useContext(yt),[i,o]=p.useState(),[n,r]=p.useState(()=>new es("ag-header-cell","ag-floating-filter")),[a,l]=p.useState(()=>new es),[c,d]=p.useState(()=>new es("ag-floating-filter-button","ag-hidden")),[u,h]=p.useState("false"),[g,f]=p.useState(),[,v]=p.useState(1),C=p.useRef(),w=p.useRef(null),b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=p.useRef(),E=p.useRef(),R=k=>{k!=null&&S.current&&S.current(k)},F=p.useCallback(k=>{if(w.current=k,!k||!e.isAlive()||t.isDestroyed()){C.current=t.destroyBean(C.current);return}C.current=t.createBean(new Jo),E.current=new Le(U=>{S.current=U});const B={toggleCss:(U,W)=>r(re=>re.setClass(U,W)),setUserStyles:U=>o(U),addOrRemoveBodyCssClass:(U,W)=>l(re=>re.setClass(U,W)),setButtonWrapperDisplayed:U=>{d(W=>W.setClass("ag-hidden",!U)),h(U?"false":"true")},setWidth:U=>{w.current&&(w.current.style.width=U)},setCompDetails:U=>f(U),getFloatingFilterComp:()=>E.current?E.current:null,setMenuIcon:U=>y.current?.appendChild(U)};e.setComp(B,k,y.current,b.current,C.current)},[]);p.useLayoutEffect(()=>Cr(g,t,b.current,R),[g]);const D=p.useMemo(()=>n.toString(),[n]),P=p.useMemo(()=>a.toString(),[a]),T=p.useMemo(()=>c.toString(),[c]),M=p.useMemo(()=>!!(g&&g.componentFromFramework&&tn(g.componentClass)),[g]),N=p.useMemo(()=>s.get("reactiveCustomComponents"),[]),q=p.useMemo(()=>s.get("enableFilterHandlers"),[]),[L,V]=p.useState();p.useEffect(()=>{if(g?.componentFromFramework)if(N){const k=q?UA:IA,B=new k(g.params,()=>v(U=>U+1));R(B),V(B)}else ch()},[g]);const H=L?.getProps(),A=g?.componentFromFramework,de=g?.componentClass;return p.createElement("div",{ref:F,style:i,className:D,role:"gridcell"},p.createElement("div",{ref:b,className:P,role:"presentation"},A?N?H&&p.createElement(lh.Provider,{value:{setMethods:k=>L.setMethods(k)}},p.createElement(de,{...H})):p.createElement(de,{...g.params,ref:M?()=>{}:R}):null),p.createElement("div",{ref:x,"aria-hidden":u,className:T,role:"presentation"},p.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},qA=p.memo($A),KA=({ctrl:e})=>{const{context:t}=p.useContext(yt),[s,i]=p.useState(),[o,n]=p.useState(()=>new es),[r,a]=p.useState(()=>new es),[l,c]=p.useState("false"),[d,u]=p.useState(),[h,g]=p.useState(),f=p.useRef(),v=p.useRef(null),C=p.useRef(null),w=p.useRef(null),b=p.useRef(),x=p.useCallback(D=>{if(v.current=D,!D||!e.isAlive()||t.isDestroyed()){f.current=t.destroyBean(f.current);return}f.current=t.createBean(new Jo);const P={setWidth:T=>{v.current&&(v.current.style.width=T)},toggleCss:(T,M)=>n(N=>N.setClass(T,M)),setUserStyles:T=>i(T),setHeaderWrapperHidden:T=>{const M=w.current;M&&(T?M.style.setProperty("display","none"):M.style.removeProperty("display"))},setHeaderWrapperMaxHeight:T=>{const M=w.current;M&&(T!=null?M.style.setProperty("max-height",`${T}px`):M.style.removeProperty("max-height"),M.classList.toggle("ag-header-cell-comp-wrapper-limited-height",T!=null))},setUserCompDetails:T=>g(T),setResizableDisplayed:T=>{a(M=>M.setClass("ag-hidden",!T)),c(T?"false":"true")},setAriaExpanded:T=>u(T),getUserCompInstance:()=>b.current||void 0};e.setComp(P,D,C.current,w.current,f.current)},[]);p.useLayoutEffect(()=>Cr(h,t,w.current),[h]),p.useEffect(()=>{v.current&&e.setDragSource(v.current)},[h]);const y=p.useMemo(()=>!!(h?.componentFromFramework&&tn(h.componentClass)),[h]),S=p.useMemo(()=>"ag-header-group-cell "+o.toString(),[o]),E=p.useMemo(()=>"ag-header-cell-resize "+r.toString(),[r]),R=h?.componentFromFramework,F=h?.componentClass;return p.createElement("div",{ref:x,style:s,className:S,role:"columnheader","aria-expanded":d},p.createElement("div",{ref:w,className:"ag-header-cell-comp-wrapper",role:"presentation"},R?y?p.createElement(F,{...h.params}):p.createElement(F,{...h.params,ref:b}):null),p.createElement("div",{ref:C,"aria-hidden":l,className:E}))},YA=p.memo(KA),XA=({ctrl:e})=>{const{gos:t,context:s}=p.useContext(yt),{topOffset:i,rowHeight:o}=p.useMemo(()=>e.getTopAndHeight(),[]),n=p.useMemo(()=>t.get("tabIndex"),[]),[r,a]=p.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[c,d]=p.useState(()=>o+"px"),[u,h]=p.useState(()=>i+"px"),g=p.useRef(null),[f,v]=p.useState(()=>e.getUpdatedHeaderCtrls()),C=p.useRef(),w=p.useRef(null),b=p.useCallback(S=>{if(w.current=S,!S||!e.isAlive()||s.isDestroyed()){C.current=s.destroyBean(C.current);return}C.current=s.createBean(new Jo);const E={setHeight:R=>d(R),setTop:R=>h(R),setHeaderCtrls:(R,F,D)=>{const P=g.current,T=il(P,R,F);T!==P&&(g.current=T,rr(D,()=>v(T)))},setWidth:R=>{w.current&&(w.current.style.width=R)},setRowIndex:R=>{a(R)}};e.setComp(E,C.current,!1)},[]),x=p.useMemo(()=>({height:c,top:u}),[c,u]),y=p.useCallback(S=>{switch(e.type){case"group":return p.createElement(YA,{ctrl:S,key:S.instanceId});case"filter":return p.createElement(qA,{ctrl:S,key:S.instanceId});default:return p.createElement(_A,{ctrl:S,key:S.instanceId})}},[]);return p.createElement("div",{ref:b,className:l,role:"row",style:x,tabIndex:n,"aria-rowindex":r},f.map(y))},ZA=p.memo(XA),QA=({pinned:e})=>{const[t,s]=p.useState(!0),[i,o]=p.useState([]),{context:n}=p.useContext(yt),r=p.useRef(null),a=p.useRef(null),l=p.useRef(),c=e==="left",d=e==="right",u=!c&&!d,h=p.useCallback(v=>{if(r.current=v,!v||n.isDestroyed()){l.current=n.destroyBean(l.current);return}l.current=n.createBean(new TF(e));const C={setDisplayed:s,setCtrls:w=>o(w),setCenterWidth:w=>{a.current&&(a.current.style.width=w)},setViewportScrollLeft:w=>{r.current&&(r.current.scrollLeft=w)},setPinnedContainerWidth:w=>{r.current&&(r.current.style.width=w,r.current.style.minWidth=w,r.current.style.maxWidth=w)}};l.current.setComp(C,r.current)},[]),g=t?"":"ag-hidden",f=()=>i.map(v=>p.createElement(ZA,{ctrl:v,key:v.instanceId}));return c?p.createElement("div",{ref:h,className:"ag-pinned-left-header "+g,"aria-hidden":!t,role:"rowgroup"},f()):d?p.createElement("div",{ref:h,className:"ag-pinned-right-header "+g,"aria-hidden":!t,role:"rowgroup"},f()):u?p.createElement("div",{ref:h,className:"ag-header-viewport "+g,role:"rowgroup",tabIndex:-1},p.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},f())):null},Uc=p.memo(QA),JA=()=>{const[e,t]=p.useState(()=>new es),[s,i]=p.useState(),{context:o}=p.useContext(yt),n=p.useRef(null),r=p.useRef(),a=p.useCallback(d=>{if(n.current=d,!d||o.isDestroyed()){r.current=o.destroyBean(r.current);return}r.current=o.createBean(new FF);const u={toggleCss:(h,g)=>t(f=>f.setClass(h,g)),setHeightAndMinHeight:h=>i(h)};r.current.setComp(u,d,d)},[]),l=p.useMemo(()=>"ag-header "+e.toString(),[e]),c=p.useMemo(()=>({height:s,minHeight:s}),[s]);return p.createElement("div",{ref:a,className:l,style:c,role:"presentation"},p.createElement(Uc,{pinned:"left"}),p.createElement(Uc,{pinned:null}),p.createElement(Uc,{pinned:"right"}))},e8=p.memo(JA),t8=(e,t)=>{p.useEffect(()=>{const s=t.current;if(s){const i=s.parentElement;if(i){const o=document.createComment(e);return i.insertBefore(o,s),()=>{o.remove()}}}},[e])},yi=t8,s8=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Le(s=>{this.resolveInstanceCreated=s}),this.onValueChange=s=>this.updateValue(s),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},i8=e=>{const t=p.useRef(e),s=p.useRef(),i=p.useRef(!1),o=p.useRef(!1),[,n]=p.useState(0);i.current&&(o.current=!0),p.useEffect(()=>(i.current||(s.current=t.current(),i.current=!0),n(r=>r+1),()=>{o.current&&s.current?.()}),[])},o8=e=>{const[t,s]=p.useState(),i=p.useContext(yt),{context:o,popupSvc:n,gos:r,editSvc:a}=i,{editDetails:l,cellCtrl:c,eParentCell:d}=e;return i8(()=>{const{compDetails:u}=l,h=r.get("stopEditingWhenCellsLoseFocus");let g,f;if(!o.isDestroyed()){f=o.createBean(a.createPopupEditorWrapper(u.params));const v=f.getGui();if(e.jsChildComp){const S=e.jsChildComp.getGui();S&&v.appendChild(S)}const{column:C,rowNode:w}=c,b={column:C,rowNode:w,type:"popupCellEditor",eventSource:d,ePopup:v,position:l.popupPosition,keepWithinBounds:!0},x=n?.positionPopupByComponent.bind(n,b),y=n?.addPopup({modal:h,eChild:v,closeOnEsc:!0,closedCallback:()=>{c.onPopupEditorClosed()},anchorToElement:d,positionCallback:x,ariaOwns:d});g=y?y.hideFunc:void 0,s(f),e.jsChildComp?.afterGuiAttached?.()}return()=>{g?.(),o.destroyBean(f)}}),p.useLayoutEffect(()=>()=>{c.isCellFocused()&&t?.getGui().contains(Je(i))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Ko.createPortal(e.wrappedContent,t.getGui()):null},Fg=p.memo(o8),n8=(e,t,s)=>{const{compProxy:i}=e;s(i);const o=i.getProps(),n=tn(t);return p.createElement(lh.Provider,{value:{setMethods:r=>i.setMethods(r)}},n?p.createElement(t,{...o}):p.createElement(t,{...o,ref:r=>i.setRef(r)}))},Eg=(e,t,s)=>e.compProxy?n8(e,t,s):p.createElement(t,{...e.compDetails.params,ref:s}),r8=(e,t,s,i,o)=>{const n=e.compDetails,r=n.componentClass,a=n.componentFromFramework&&!e.popup,l=n.componentFromFramework&&e.popup,c=!n.componentFromFramework&&e.popup;return a?Eg(e,r,t):l?p.createElement(Fg,{editDetails:e,cellCtrl:i,eParentCell:s,wrappedContent:Eg(e,r,t)}):c&&o?p.createElement(Fg,{editDetails:e,cellCtrl:i,eParentCell:s,jsChildComp:o}):null},a8=(e,t,s,i,o,n)=>{const{context:r}=p.useContext(yt),a=p.useCallback(()=>{const l=o.current;if(!l)return;const c=l.getGui();c&&c.parentElement&&c.remove(),r.destroyBean(l),o.current=void 0},[]);p.useEffect(()=>{const l=e!=null,c=e?.compDetails&&!e.compDetails.componentFromFramework,d=t&&s==null;if(!(l&&c&&!d)){a();return}const h=e.compDetails;if(o.current){const f=o.current,C=f.refresh!=null&&e.force==!1?f.refresh(h.params):!1;if(C===!0||C===void 0)return;a()}h.newAgStackInstance().then(f=>{if(!f)return;const v=f.getGui();if(!v)return;(t?s:n.current).appendChild(v),o.current=f})},[e,t,i]),p.useEffect(()=>a,[])},OC=a8,l8=({cellCtrl:e,parent:t})=>{const s=p.useRef(),i=p.useMemo(()=>{const{loadingComp:o}=e.getDeferLoadingCellRenderer();return o?{value:void 0,compDetails:o,force:!1}:void 0},[e]);if(OC(i,!1,void 0,1,s,t),i?.compDetails?.componentFromFramework){const o=i.compDetails.componentClass;return p.createElement(o,{...i.compDetails.params})}return p.createElement(p.Fragment,null)},c8=({cellCtrl:e,printLayout:t,editingCell:s})=>{const i=p.useContext(yt),{context:o}=i,{column:{colIdSanitised:n},instanceId:r}=e,a=p.useRef(),[l,c]=p.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,u]=p.useState(),[h,g]=p.useState(1),[f,v]=p.useState(),[C,w]=p.useState(!1),[b,x]=p.useState(!1),[y,S]=p.useState(!1),[E,R]=p.useState(),F=p.useMemo(()=>e.isForceWrapper(),[e]),D=p.useMemo(()=>e.getCellAriaRole(),[e]),P=p.useRef(null),T=p.useRef(null),M=p.useRef(null),N=p.useRef(),q=p.useRef(),L=p.useRef(),V=p.useRef([]),H=p.useRef(),A=p.useRef(),[de,k]=p.useState(0),B=p.useCallback(se=>{A.current=se,k(le=>le+1)},[]),U=l!=null&&(C||y||b)&&(d==null||!!d.popup),W=F||U,re=p.useMemo(()=>e.getCellValueClass(),[e]),be=p.useCallback(se=>{if(q.current=se,se){const le=se.isCancelBeforeStart&&se.isCancelBeforeStart();setTimeout(()=>{le?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(se))})}},[e]),Q=p.useRef();Q.current||(Q.current=new pr(()=>P.current)),OC(l,W,A.current,de,N,P);const j=p.useRef();p.useLayoutEffect(()=>{const se=j.current,le=l;if(j.current=l,se==null||se.compDetails==null||le==null||le.compDetails==null)return;H.current?.refreshVisibility();const Fe=se.compDetails,Oe=le.compDetails;if(Fe.componentClass!=Oe.componentClass||M.current?.refresh==null)return;M.current.refresh(Oe.params)!=!0&&g(Ee=>Ee+1)},[l]),p.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||o.isDestroyed())return;const le=d.compDetails,Fe=d.popup===!0,Oe=le.newAgStackInstance();return Oe.then(Ce=>{if(!Ce)return;const Ee=Ce.getGui();be(Ce),Fe||((F?L:P).current?.appendChild(Ee),Ce.afterGuiAttached?.()),R(Ce)}),()=>{Oe.then(Ce=>{const Ee=Ce.getGui();e.disableEditorTooltipFeature(),o.destroyBean(Ce),be(void 0),R(void 0),Ee?.remove()})}},[d]);const ge=p.useCallback(se=>{if(L.current=se,!se||o.isDestroyed()||!e.isAlive()){const Oe=V.current;V.current=[];for(const Ce of Oe)Ce();return}let le;const Fe=Oe=>{Oe&&(se.insertAdjacentElement("afterbegin",Oe.getGui()),V.current.push(()=>{ni(Oe.getGui()),o.destroyBean(Oe),H.current===le&&(H.current=void 0)}))};C&&Fe(e.createSelectionCheckbox()),y&&Fe(e.createDndSource()),b&&(le=e.createRowDragComp(),H.current=le,le&&(Fe(le),le.refreshVisibility()))},[e,o,y,b,C]),ie=p.useCallback(()=>{const se=!e.isCellSpanning()||T.current,le=P.current;if(!le||!se||!e||!e.isAlive()||o.isDestroyed()){a.current=o.destroyBean(a.current);return}a.current=o.createBean(new Jo);const Fe={toggleCss:(Ce,Ee)=>Q.current.toggleCss(Ce,Ee),setUserStyles:Ce=>v(Ce),getFocusableElement:()=>P.current,setIncludeSelection:Ce=>w(Ce),setIncludeRowDrag:Ce=>x(Ce),setIncludeDndSource:Ce=>S(Ce),getCellEditor:()=>q.current??null,getCellRenderer:()=>M.current??N.current,getParentOfValue:()=>A.current??L.current??P.current,setRenderDetails:(Ce,Ee,je)=>{const _e=()=>{c(Ae=>Ae?.compDetails!==Ce||Ae?.value!==Ee||Ae?.force!==je?{value:Ee,compDetails:Ce,force:je}:Ae)};if(Ce?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Ae,onReady:Tt}=e.getDeferLoadingCellRenderer();if(Ae){c({value:void 0,compDetails:Ae,force:!1}),Tt.then(()=>yA(_e));return}}_e()},setEditDetails:(Ce,Ee,je,_e)=>{if(Ce){let Ae;Ce.componentFromFramework&&(_e?Ae=new s8(Ce.params,()=>g(Tt=>Tt+1)):ch()),u({compDetails:Ce,popup:Ee,popupPosition:je,compProxy:Ae}),Ee||c(void 0)}else e.hasBrowserFocus()&&Fe.getFocusableElement().focus({preventScroll:!0}),q.current=void 0,u(void 0)},refreshEditStyles:(Ce,Ee)=>{if(!P.current)return;const{current:je}=Q;je.toggleCss("ag-cell-value",!W),je.toggleCss("ag-cell-inline-editing",!!Ce&&!Ee),je.toggleCss("ag-cell-popup-editing",!!Ce&&!!Ee),je.toggleCss("ag-cell-not-inline-editing",!Ce||!!Ee)}},Oe=L.current||void 0;e.setComp(Fe,le,T.current??void 0,Oe,t,s,a.current)},[]),Z=p.useCallback(se=>{P.current=se,ie()},[]),_=p.useCallback(se=>{T.current=se,ie()},[]),ae=p.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&tn(l.compDetails.componentClass)),[l]);p.useLayoutEffect(()=>{if(!P.current)return;const{current:se}=Q;se.toggleCss("ag-cell-value",!W),se.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),se.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),se.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const G=()=>{const{compDetails:se,value:le}=l;if(!se)return le?.toString?.()??le;if(se.componentFromFramework){const Fe=se.componentClass;return p.createElement(p.Suspense,{fallback:p.createElement(l8,{cellCtrl:e,parent:P})},ae?p.createElement(Fe,{...se.params,key:h}):p.createElement(Fe,{...se.params,key:h,ref:M}))}},fe=()=>{const se=()=>l==null?null:W?p.createElement("span",{role:"presentation",id:`cell-${r}`,className:re,ref:B},G()):G(),le=Fe=>r8(Fe,be,P.current,e,E);return d!=null?d.popup?p.createElement(p.Fragment,null,se(),le(d)):le(d):se()},he=()=>p.createElement("div",{ref:Z,style:f,role:D,"col-id":n},W?p.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ge},fe()):fe());return e.isCellSpanning()?p.createElement("div",{ref:_,className:"ag-spanned-cell-wrapper",role:"presentation"},he()):he()},d8=p.memo(c8),u8=({rowCtrl:e,containerType:t})=>{const{context:s,gos:i,editSvc:o}=p.useContext(yt),n=p.useContext(TC)==="default",r=p.useRef(),a=p.useRef(e.getDomOrder()),l=e.isFullWidth(),c=e.rowNode.displayed,[d,u]=p.useState(()=>c?e.rowNode.getRowIndexString():null),[h,g]=p.useState(()=>e.rowId),[f,v]=p.useState(()=>e.businessKey),[C,w]=p.useState(()=>e.rowStyles),b=p.useRef(null),[x,y]=p.useState(()=>null),[S,E]=p.useState(),[R,F]=p.useState(()=>c?e.getInitialRowTop(t):void 0),[D,P]=p.useState(()=>c?e.getInitialTransform(t):void 0),T=p.useRef(null),M=p.useRef(),N=p.useRef(),q=p.useRef(!1),[L,V]=p.useState(0);p.useEffect(()=>{if(q.current||!S||L>10)return;const Z=T.current?.firstChild;Z?(e.setupDetailRowAutoHeight(Z),q.current=!0):V(_=>_+1)},[S,L]);const H=p.useRef();H.current||(H.current=new pr(()=>T.current));const A=p.useRef(()=>{}),de=p.useCallback(Z=>(A.current=Z,()=>{A.current=()=>{}}),[]),k=SA(de,()=>b.current,[]),B=n?k:x,U=p.useCallback(Z=>{if(T.current=Z,r.current=Z?s.createBean(new Jo):s.destroyBean(r.current),!Z){e.unsetComp(t);return}if(!e.isAlive()||s.isDestroyed())return;const _={setTop:F,setTransform:P,toggleCss:(ae,G)=>H.current.toggleCss(ae,G),setDomOrder:ae=>a.current=ae,setRowIndex:u,setRowId:g,setRowBusinessKey:v,setUserStyles:w,setCellCtrls:(ae,G)=>{const fe=b.current,he=il(fe,ae,a.current);he!==fe&&(b.current=he,n?A.current():rr(G,()=>y(he)))},showFullWidth:ae=>{N.current=ae.params,E(ae)},getFullWidthCellRenderer:()=>M.current,getFullWidthCellRendererParams:()=>N.current,refreshFullWidth:ae=>{const G=ae();return N.current=G,j.current?(E(fe=>({...fe,params:G})),!0):!M.current||!M.current.refresh?!1:M.current.refresh(G)}};e.setComp(_,Z,t,r.current)},[]);p.useLayoutEffect(()=>Cr(S,s,T.current,M),[S]);const W=p.useMemo(()=>{const Z={top:R,transform:D};return Object.assign(Z,C),Z},[R,D,C]),re=l&&S?.componentFromFramework,be=!l&&B!=null,Q=p.useMemo(()=>!!(S?.componentFromFramework&&tn(S.componentClass)),[S]),j=p.useRef(!1);p.useEffect(()=>{j.current=Q&&!!S&&!!i.get("reactiveCustomComponents")},[Q,S]);const ge=()=>B?.map(Z=>p.createElement(d8,{cellCtrl:Z,editingCell:o?.isEditing(Z,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:Z.instanceId})),ie=()=>{const Z=S.componentClass;return Q?p.createElement(Z,{...S.params}):p.createElement(Z,{...S.params,ref:M})};return p.createElement("div",{ref:U,role:"row",style:W,"row-index":d,"row-id":h,"row-business-key":f},be?ge():re?ie():null)},Dg=p.memo(u8),h8=({name:e})=>{const{context:t,gos:s}=p.useContext(yt),i=p.useMemo(()=>fr(e),[e]),o=p.useRef(null),n=p.useRef(null),r=p.useRef(null),a=p.useRef([]),l=p.useRef([]),[c,d]=p.useState(()=>[]),u=!!s.get("enableCellSpan")&&!!i.getSpannedRowCtrls,h=p.useRef([]),g=p.useRef([]),[f,v]=p.useState(()=>[]),C=p.useRef(!1),w=p.useRef(),b=p.useMemo(()=>Yt("ag-viewport",Qm(e)),[e]),x=p.useMemo(()=>Yt(Fa(e)),[e]),y=p.useMemo(()=>Yt("ag-spanning-container",Y2(e)),[e]),S=i.type==="center"||u,E=S?o:n;yi(" AG Row Container "+e+" ",E);const R=p.useCallback(()=>{const L=!S||o.current!=null,V=n.current!=null,H=!u||r.current!=null;return L&&V&&H},[]),F=p.useCallback(()=>o.current==null&&n.current==null&&r.current==null,[]),D=p.useCallback(()=>{if(F()&&(w.current=t.destroyBean(w.current)),!t.isDestroyed()&&R()){const L=A=>{const de=il(l.current,a.current,C.current);de!==l.current&&(l.current=de,rr(A,()=>d(de)))},V=A=>{const de=il(g.current,h.current,C.current);de!==g.current&&(g.current=de,rr(A,()=>v(de)))},H={setHorizontalScroll:A=>{o.current&&(o.current.scrollLeft=A)},setViewportHeight:A=>{o.current&&(o.current.style.height=A)},setRowCtrls:({rowCtrls:A,useFlushSync:de})=>{const k=!!de&&a.current.length>0&&A.length>0;a.current=A,L(k)},setSpannedRowCtrls:(A,de)=>{const k=!!de&&h.current.length>0&&A.length>0;h.current=A,V(k)},setDomOrder:A=>{C.current!=A&&(C.current=A,L(!1))},setContainerWidth:A=>{n.current&&(n.current.style.width=A)},setOffsetTop:A=>{n.current&&(n.current.style.transform=`translateY(${A})`)}};w.current=t.createBean(new nF(e)),w.current.setComp(H,n.current,r.current??void 0,o.current)}},[R,F]),P=p.useCallback(L=>{n.current=L,D()},[D]),T=p.useCallback(L=>{r.current=L,D()},[D]),M=p.useCallback(L=>{o.current=L,D()},[D]),N=()=>p.createElement("div",{className:x,ref:P,role:S?"presentation":"rowgroup"},c.map(L=>p.createElement(Dg,{rowCtrl:L,containerType:i.type,key:L.instanceId})));if(!S)return N();const q=()=>p.createElement("div",{className:y,ref:T,role:"presentation"},f.map(L=>p.createElement(Dg,{rowCtrl:L,containerType:i.type,key:L.instanceId})));return p.createElement("div",{className:b,ref:M,role:"rowgroup"},N(),u?q():null)},p8=p.memo(h8),g8=()=>{const e=p.useContext(yt),{context:t,overlays:s}=e,[i,o]=p.useState(""),[n,r]=p.useState(0),[a,l]=p.useState(0),[c,d]=p.useState("0px"),[u,h]=p.useState("0px"),[g,f]=p.useState("100%"),[v,C]=p.useState("0px"),[w,b]=p.useState("0px"),[x,y]=p.useState("100%"),[S,E]=p.useState(!0),[R,F]=p.useState(!0),[D,P]=p.useState(null),[T,M]=p.useState(""),[N,q]=p.useState(null),[L,V]=p.useState("ag-layout-normal"),H=p.useRef();H.current||(H.current=new pr(()=>A.current));const A=p.useRef(null),de=p.useRef(null),k=p.useRef(null),B=p.useRef(null),U=p.useRef(null),W=p.useRef(null),re=p.useRef(null),be=p.useRef([]),Q=p.useRef([]);yi(" AG Grid Body ",A),yi(" AG Pinned Top ",de),yi(" AG Sticky Top ",k),yi(" AG Middle ",W),yi(" AG Pinned Bottom ",re);const j=p.useCallback(Ee=>{if(A.current=Ee,!Ee||t.isDestroyed()){be.current=t.destroyBeans(be.current);for(const Ge of Q.current)Ge();Q.current=[];return}const je=(Ge,K)=>{Ge.appendChild(K),Q.current.push(()=>K.remove())},_e=Ge=>{const K=t.createBean(new Ge);return be.current.push(K),K},Ae=(Ge,K,He)=>{je(Ge,document.createComment(He)),je(Ge,_e(K).getGui())};Ae(Ee,hF," AG Fake Horizontal Scroll ");const Tt=s?.getOverlayWrapperCompClass();Tt&&Ae(Ee,Tt," AG Overlay Wrapper "),U.current&&Ae(U.current,gF," AG Fake Vertical Scroll ");const is={setRowAnimationCssOnBodyViewport:o,setColumnCount:Ge=>{A.current&&W0(A.current,Ge)},setRowCount:Ge=>{A.current&&V0(A.current,Ge)},setTopHeight:r,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:h,setStickyTopWidth:f,setTopInvisible:E,setBottomInvisible:F,setColumnMovingCss:(Ge,K)=>H.current.toggleCss(Ge,K),updateLayoutClasses:V,setAlwaysVerticalScrollClass:P,setPinnedTopBottomOverflowY:M,setCellSelectableCss:(Ge,K)=>q(K?Ge:null),setBodyViewportWidth:Ge=>{W.current&&(W.current.style.width=Ge)},registerBodyViewportResizeListener:Ge=>{if(W.current){const K=js(e,W.current,Ge);Q.current.push(()=>K())}},setStickyBottomHeight:C,setStickyBottomBottom:b,setStickyBottomWidth:y,setGridRootRole:Ge=>Ee.setAttribute("role",Ge)},kt=t.createBean(new cF);be.current.push(kt),kt.setComp(is,Ee,W.current,de.current,re.current,k.current,B.current)},[]),ge=p.useMemo(()=>Yt("ag-root","ag-unselectable",L),[L]),ie=p.useMemo(()=>Yt("ag-body-viewport",i,L,D,N),[i,L,D,N]),Z=p.useMemo(()=>Yt("ag-body",L),[L]),_=p.useMemo(()=>Yt("ag-floating-top",S?"ag-invisible":null,N),[N,S]),ae=p.useMemo(()=>Yt("ag-sticky-top",N),[N]),G=p.useMemo(()=>Yt("ag-sticky-bottom",v==="0px"?"ag-invisible":null,N),[N,v]),fe=p.useMemo(()=>Yt("ag-floating-bottom",R?"ag-invisible":null,N),[N,R]),he=p.useMemo(()=>({height:n,minHeight:n,overflowY:T}),[n,T]),se=p.useMemo(()=>({height:c,top:u,width:g}),[c,u,g]),le=p.useMemo(()=>({height:v,bottom:w,width:x}),[v,w,x]),Fe=p.useMemo(()=>({height:a,minHeight:a,overflowY:T}),[a,T]),Oe=Ee=>p.createElement(p8,{name:Ee,key:`${Ee}-container`}),Ce=({section:Ee,children:je,className:_e,style:Ae})=>p.createElement("div",{ref:Ee,className:_e,role:"presentation",style:Ae},je.map(Oe));return p.createElement("div",{ref:j,className:ge},p.createElement(e8,null),Ce({section:de,className:_,style:he,children:["topLeft","topCenter","topRight","topFullWidth"]}),p.createElement("div",{className:Z,ref:U,role:"presentation"},Ce({section:W,className:ie,children:["left","center","right","fullWidth"]})),Ce({section:k,className:ae,style:se,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),Ce({section:B,className:G,style:le,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),Ce({section:re,className:fe,style:Fe,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},f8=p.memo(g8),m8=(e,t)=>{const{children:s,eFocusableElement:i,onTabKeyDown:o,gridCtrl:n,forceFocusOutWhenTabGuardsAreEmpty:r,isEmpty:a}=e,{context:l}=p.useContext(yt),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=w=>{const b=w==null?void 0:parseInt(w,10).toString();for(const x of[c,d])b===void 0?x.current?.removeAttribute("tabindex"):x.current?.setAttribute("tabindex",b)};p.useImperativeHandle(t,()=>({forceFocusOutOfContainer(w){u.current?.forceFocusOutOfContainer(w)}}));const g=p.useCallback(()=>{const w=c.current,b=d.current;if(!w&&!b||l.isDestroyed()){u.current=l.destroyBean(u.current);return}if(w&&b){const x={setTabIndex:h};u.current=l.createBean(new dv({comp:x,eTopGuard:w,eBottomGuard:b,eFocusableElement:i,onTabKeyDown:o,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:y=>n.focusInnerElement(y),isEmpty:a}))}},[]),f=p.useCallback(w=>{c.current=w,g()},[g]),v=p.useCallback(w=>{d.current=w,g()},[g]),C=w=>{const b=w==="top"?Lo.TAB_GUARD_TOP:Lo.TAB_GUARD_BOTTOM;return p.createElement("div",{className:`${Lo.TAB_GUARD} ${b}`,role:"presentation",ref:w==="top"?f:v})};return p.createElement(p.Fragment,null,C("top"),s,C("bottom"))},v8=p.forwardRef(m8),C8=p.memo(v8),w8=({context:e})=>{const[t,s]=p.useState(""),[i,o]=p.useState(""),[n,r]=p.useState(null),[a,l]=p.useState(null),[c,d]=p.useState(!1),[u,h]=p.useState(),g=p.useRef(),f=p.useRef(null),v=p.useRef(),[C,w]=p.useState(null),b=p.useRef(()=>{}),x=p.useRef(),y=p.useRef([]),S=p.useCallback(()=>{},[]);yi(" AG Grid ",f);const E=p.useCallback(M=>{if(f.current=M,g.current=M?e.createBean(new uE):e.destroyBean(g.current),!M||e.isDestroyed())return;const N=g.current;b.current=N.focusInnerElement.bind(N);const q={destroyGridUi:()=>{},setRtlClass:s,forceFocusOutOfContainer:L=>{if(!L&&x.current?.isDisplayed()){x.current.forceFocusOutOfContainer(L);return}v.current?.forceFocusOutOfContainer(L)},updateLayoutClasses:o,getFocusableContainers:()=>{const L=[],V=f.current?.querySelector(".ag-root");V&&L.push({getGui:()=>V});for(const H of y.current)H.isDisplayed()&&L.push(H);return L},setCursor:r,setUserSelect:l};N.setComp(q,M,M),d(!0)},[]);p.useEffect(()=>{const M=g.current,N=f.current;if(!u||!M||!C||!N||e.isDestroyed())return;const q=[],{watermarkSelector:L,paginationSelector:V,sideBarSelector:H,statusBarSelector:A,gridHeaderDropZonesSelector:de}=M.getOptionalSelectors(),k=[];if(de){const U=e.createBean(new de.component),W=U.getGui();N.insertAdjacentElement("afterbegin",W),k.push(W),q.push(U)}if(H){const U=e.createBean(new H.component),W=U.getGui(),re=C.querySelector(".ag-tab-guard-bottom");re&&(re.insertAdjacentElement("beforebegin",W),k.push(W)),q.push(U),y.current.push(U)}const B=U=>{const W=e.createBean(new U),re=W.getGui();return N.insertAdjacentElement("beforeend",re),k.push(re),q.push(W),W};if(A&&B(A.component),V){const U=B(V.component);x.current=U,y.current.push(U)}return L&&B(L.component),()=>{e.destroyBeans(q);for(const U of k)U.remove()}},[u,C,e]);const R=p.useMemo(()=>Yt("ag-root-wrapper",t,i),[t,i]),F=p.useMemo(()=>Yt("ag-root-wrapper-body","ag-focus-managed",i),[i]),D=p.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:n??""}),[a,n]),P=p.useCallback(M=>{v.current=M,h(M!==null)},[]),T=p.useCallback(()=>!g.current?.isFocusable(),[]);return p.createElement("div",{ref:E,className:R,style:D,role:"presentation"},p.createElement("div",{className:F,ref:w,role:"presentation"},c&&C&&!e.isDestroyed()&&p.createElement(yt.Provider,{value:e.getBeans()},p.createElement(C8,{ref:P,eFocusableElement:C,onTabKeyDown:S,gridCtrl:g.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:T},p.createElement(f8,null)))))},b8=p.memo(w8),x8=class extends O{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},NC={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},y8={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...NC},HC=new Set(Object.keys(y8)),S8=new Set(Object.keys(NC)),GC=e=>{const t=p.useRef(),s=p.useRef(null),i=p.useRef(null),o=p.useRef([]),n=p.useRef([]),r=p.useRef(e),a=p.useRef(),l=p.useRef(),c=p.useRef(!1),[d,u]=p.useState(void 0),[,h]=p.useState(0),g=p.useCallback(w=>{if(s.current=w,!w){for(const T of o.current)T();o.current.length=0;return}const b=e.modules||[];i.current||(i.current=new WA(()=>h(T=>T+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),o.current.push(()=>{i.current?.destroy(),i.current=null}));const x=Wy(e.gridOptions,e,Object.keys(e).filter(T=>!HC.has(T))),y=()=>{if(c.current){const T=()=>a.current?.shouldQueueUpdates()?void 0:n.current.shift();let M=T();for(;M;)M(),M=T()}},S=new D8(y);a.current=S;const E=new x8,R={providedBeanInstances:{frameworkCompWrapper:new F8(i.current,x),renderStatus:E},modules:b,frameworkOverrides:S,setThemeOnGridDiv:!0},F=T=>{u(T),T.createBean(E),o.current.push(()=>{T.destroy()}),T.getBean("ctrlsSvc").whenReady({addDestroyFunc:M=>{o.current.push(M)}},()=>{if(T.isDestroyed())return;const M=t.current;M&&e.passGridApi?.(M)})},D=T=>{T.getBean("ctrlsSvc").whenReady({addDestroyFunc:M=>{o.current.push(M)}},()=>{for(const M of n.current)M();n.current.length=0,c.current=!0})},P=new HT;x.gridId??(x.gridId=l.current),t.current=P.create(w,x,F,D,R),o.current.push(()=>{t.current=void 0}),t.current&&(l.current=t.current.getGridId())},[]),f=p.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),v=p.useCallback(w=>{c.current&&!a.current?.shouldQueueUpdates()?w():n.current.push(w)},[]);p.useEffect(()=>{const w=R8(r.current,e);r.current=e,v(()=>{t.current&&jy(w,t.current)})},[e]);const C=!p.useSyncExternalStore||ba(e,"renderingMode")==="legacy"?"legacy":"default";return p.createElement("div",{style:f,className:e.className,ref:g},p.createElement(TC.Provider,{value:C},d&&!d.isDestroyed()?p.createElement(b8,{key:d.instanceId,context:d}):null,i.current?.getPortals()??null))};function R8(e,t){const s={};for(const i of Object.keys(t)){if(HC.has(i)){S8.has(i)&&$(274,{prop:i});continue}const o=t[i];e[i]!==o&&(s[i]=o)}return s}var F8=class extends WT{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const s=this.gridOptions;if(ba(s,"reactiveCustomComponents")){const r=(a=>{switch(a){case"filter":return ba(s,"enableFilterHandlers")?MA:kA;case"floatingFilterComponent":return ba(s,"enableFilterHandlers")?LA:AA;case"dateComponent":return PA;case"dragAndDropImageComponent":return TA;case"loadingOverlayComponent":return NA;case"noRowsOverlayComponent":return GA;case"statusPanel":return BA;case"toolPanel":return VA;case"menuItem":return HA;case"cellRenderer":return DA;case"innerHeaderComponent":return OA}})(t.name);if(r)return new r(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":ch();break}const o=!t.cellRenderer&&t.name!=="toolPanel";return new AC(e,this.parent,t,o)}},E8=p.forwardRef((e,t)=>{const s=p.useContext(yt),{registry:i,context:o,gos:n,rowModel:r}=s,[a,l]=p.useState(()=>new es),[c,d]=p.useState(()=>new es),[u,h]=p.useState(),[g,f]=p.useState(),v=p.useRef(),C=p.useRef(null),w=p.useRef(),b=p.useMemo(()=>by(e.api.getGridId(),u?.rowModelType??"clientSide"),[e]),x=p.useMemo(()=>a.toString()+" ag-details-row",[a]),y=p.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&p.useImperativeHandle(t,()=>({refresh(){return v.current?.refresh()??!1}})),e.template&&$(230);const S=p.useCallback(R=>{if(C.current=R,!R||o.isDestroyed()){v.current=o.destroyBean(v.current),w.current?.();return}const F={toggleCss:(P,T)=>l(M=>M.setClass(P,T)),toggleDetailGridCss:(P,T)=>d(M=>M.setClass(P,T)),setDetailGrid:P=>h(P),setRowData:P=>f(P),getGui:()=>C.current},D=i.createDynamicBean("detailCellRendererCtrl",!0);if(D&&(o.createBean(D),D.init(F,e),v.current=D,n.get("detailRowAutoHeight"))){const P=()=>{if(C.current==null)return;const T=C.current.clientHeight;T!=null&&T>0&&setTimeout(()=>{e.node.setRowHeight(T),(tt(n)||_i(n))&&r.onRowHeightChanged()},0)};w.current=js(s,R,P),P()}},[]),E=p.useCallback(R=>{v.current?.registerDetailWithMaster(R)},[]);return p.createElement("div",{className:x,ref:S},u&&p.createElement(GC,{className:y,...u,modules:b,rowData:g,passGridApi:E}))}),D8=class extends uv{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:Sg,agGroupRowRenderer:Sg,agDetailCellRenderer:E8},this.wrapIncoming=(t,s)=>s==="ensureVisible"?xA(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return bA()}},P8=class extends p.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return p.createElement(GC,{...this.props,passGridApi:this.setGridApi})}},BC=(e=>(e.Dropdown="dropdown",e.Menu="menu",e))(BC||{}),Gt=(e=>(e.Click="click",e.Hover="hover",e.ContextMenu="contextMenu",e))(Gt||{}),$o=(e=>(e.Item="item",e.Divider="divider",e.PlainText="plainText",e))($o||{});const T8=pe("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),k8=pe("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none"),M8=pe("flex w-full cursor-pointer items-center gap-3","focus-visible:border-none focus-visible:outline-none","hover:bg-accent-primary-alpha px-3","dial-small-text h-[34px] rounded text-primary"),I8="opacity-75 !cursor-not-allowed",A8="text-error",L8="my-1 border-t border-hover border-secondary",En=4,dh=({ariaLabel:e,className:t,size:s=24,onClose:i,...o})=>m.jsx(di,{"aria-label":e,className:ne("text-secondary hover:enabled:text-accent-primary",t,"w-auto h-auto"),onClick:i,icon:m.jsx(z.IconX,{size:s}),...o}),Pt=({children:e,menu:t,renderOverlay:s,trigger:i=[Gt.Click],placement:o,disabled:n=!1,open:r,defaultOpen:a=!1,onOpenChange:l,closable:c=!1,onClose:d,className:u,listClassName:h,outsidePressIgnoreRef:g,outsideClosable:f=!0,allowedPlacements:v,anchorToMouse:C=!1,matchReferenceWidth:w=!0,maxDropdownHeight:b})=>{const[x,y]=p.useState(a),S=r!==void 0,E=S?!!r:x,R=p.useRef(null),F=p.useCallback(j=>{S||y(j),l?.(j)},[S,l]),D=p.useId(),P=o===void 0,T=j=>"clientWidth"in j?j.clientWidth:j.getBoundingClientRect?.()?.width??0,{refs:M,floatingStyles:N,context:q}=Ie.useFloating({placement:o,open:E,onOpenChange:F,whileElementsMounted:Ie.autoUpdate,middleware:[Ie.offset({mainAxis:En,crossAxis:0}),P?Ie.autoPlacement({alignment:"start",crossAxis:!0,padding:En,allowedPlacements:v}):Ie.flip({padding:En}),Ie.shift({padding:En}),Ie.size({padding:En,apply({availableWidth:j,availableHeight:ge,elements:ie}){const Z=ie.floating,_=T(ie.reference);Z.style.setProperty("--fui-available-height",`${Math.floor(ge)}px`),Z.style.setProperty("--reference-width",w?`${Math.round(_)}px`:"0px"),w?Z.style.minWidth=`${Math.round(_)}px`:Z.style.removeProperty("min-width"),Z.style.maxWidth=`${Math.floor(j)}px`;const ae=Math.floor(ge);Z.style.maxHeight=`${b?Math.min(ae,b):ae}px`}})]}),L=Ie.useClick(q,{enabled:i.includes(Gt.Click)&&!n}),V=Ie.useHover(q,{enabled:i.includes(Gt.Hover)&&!n,move:!1,restMs:40,delay:{open:80,close:80}}),H=Ie.useDismiss(q,{bubbles:!0,referencePress:!1,outsidePress:j=>{if(!f)return!1;const ge=j.target;return!(g?.current&&ge instanceof Node&&g.current.contains(ge))}}),A=Ie.useRole(q,{role:"menu"}),{getReferenceProps:de,getFloatingProps:k}=Ie.useInteractions([L,V,H,A]),B=p.useCallback((j,ge)=>{M.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:j,y:ge,top:ge,left:j,right:j,bottom:ge})})},[M]),U=p.useCallback(j=>{!i.includes(Gt.ContextMenu)||n||(j.preventDefault(),C&&(B(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY)),F(!0))},[C,n,F,B,i]),W=p.useCallback(j=>{!C||n||(i.includes(Gt.ContextMenu)&&E&&F(!1),B(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY))},[C,n,B,E,i,F]);p.useEffect(()=>{n&&E&&F(!1)},[n,E,F]);const re=p.useCallback(j=>ge=>{j.disabled||(j.onClick?.({key:j.key,domEvent:ge}),t?.onClick?.({key:j.key,domEvent:ge}),F(!1))},[t,F]),be=p.useMemo(()=>s?s():t?m.jsxs(m.Fragment,{children:[t.header&&m.jsx(m.Fragment,{children:typeof t.header=="function"?t.header():t.header}),m.jsx("div",{role:"none",className:"py-1","aria-label":"dropdown",children:t.items.map(j=>j.type===$o.Divider?m.jsx("div",{role:"separator",className:L8},j.key):j.type===$o.PlainText?m.jsx("div",{className:ne("px-3 py-2 text-secondary dial-caption",j.className),children:j.label},j.key):m.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!j.disabled,className:pe(M8,j.disabled&&I8,j.danger&&A8,j.className),disabled:j.disabled,onClick:re(j),children:[j.icon&&m.jsx("span",{className:pe(j.danger&&"text-error",j.disabled&&"text-secondary"),children:m.jsx(Ye,{icon:j.icon})}),m.jsx("span",{className:pe("flex-1 truncate text-left",j.danger&&"text-error",j.disabled&&"text-secondary"),"aria-labelledby":"item-text",children:j.label})]},j.key))}),t.footer&&m.jsx(m.Fragment,{children:typeof t.footer=="function"?t.footer():t.footer})]}):null,[re,t,s]),Q=de({onContextMenu:U,onMouseDown:W});return p.useEffect(()=>{if(!E)return;const j=M.reference.current;let ge=null;if(j instanceof Element?ge=j:R.current instanceof Element&&(ge=R.current),!ge)return;const ie=new IntersectionObserver(([Z])=>{Z.isIntersecting||F(!1)},{root:null,threshold:0});return ie.observe(ge),()=>ie.disconnect()},[E,M.reference,F]),m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:M.setReference,className:pe(T8,n&&"!cursor-not-allowed opacity-75",u),"aria-haspopup":"menu","aria-expanded":E,"aria-controls":D,...Q,children:e}),E&&m.jsx(Ie.FloatingPortal,{children:m.jsx(Ie.FloatingFocusManager,{context:q,modal:!1,initialFocus:-1,returnFocus:!0,children:m.jsxs("div",{id:D,ref:M.setFloating,style:N,className:pe(k8,!w&&"w-max",h),...k(),children:[c&&m.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:m.jsx(dh,{ariaLabel:"Close dropdown",onClose:j=>{d?.(j),F(!1)}})}),be]})})})]})},O8="h-full w-full",Pg=".ag-checkbox-input",$c={accentColor:"var(--controls-bg-accent, #5C8DEA)",backgroundColor:"var(--bg-layer-3, #1D2439)",oddRowBackgroundColor:"var(--bg-layer-2, #161B2D)",selectedRowBackgroundColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderColor:"var(--bg-layer-4, #242C42)",rowBorder:"1px solid var(--stroke-tertiary, #0C101D)",rowHoverColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderRadius:3,browserColorScheme:"dark",chromeBackgroundColor:"var(--bg-layer-1, #0C101D)",foregroundColor:"var(--text-primary, ##EEF1F7)",headerFontSize:14,headerFontWeight:600,headerTextColor:"var(--text-secondary, #7F8792)",spacing:4,wrapperBorderRadius:3,fontSize:14,fontFamily:{googleFont:"var(--theme-font, var(--font-inter))"}},qc=40;var xi=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(xi||{});const N8=(e,t,s,i,o)=>{const n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return n===r?0:n?r?n>r?1:-1:o?1:-1:o?-1:1};var _n=(e=>(e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e))(_n||{});const VC="en-US",zC={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},H8="text-primary",Kc=40,WC={minWidth:Kc,width:Kc,maxWidth:Kc},G8={cellClass:"ag-grid-no-checkbox",...WC},B8={...WC};function V8(e,t){let s=null;return(...i)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...i),t)}}wA({testIdAttribute:"dataQA"});qf.registerModules([fA]);const uh=({columnDefs:e,rowData:t,additionalGridOptions:s,getContextMenuItems:i,className:o,ariaLabel:n="Data grid",wrapCustomCellRenderers:r=!0,disabledRowIds:a,selectedRowIds:l,onSelectionChange:c,onGridApiChange:d,getRowId:u=E=>String(E.id??JSON.stringify(E)),alternateOddRowColors:h=!1,filterPlaceholder:g="Enter value",emptyStateIcon:f,emptyStateTitle:v="No results found",emptyStateDescription:C="Sorry, we couldn't find any results for your search.",loading:w=!1,wrapperBorder:b=!0,withoutHeaderBorders:x=!1,allowDisabledContextMenu:y=!1,selectionMode:S})=>{const[E,R]=p.useState(qc),[F,D]=p.useState(),P=p.useId(),T=p.useRef(new Set),M=p.useRef(void 0),N=p.useMemo(()=>({...$c,oddRowBackgroundColor:h?$c.oddRowBackgroundColor:$c.backgroundColor,wrapperBorder:b}),[h,b]),q=p.useCallback(_=>{_.api.sizeColumnsToFit(),R(qc)},[]),L=p.useCallback(_=>{if(_.data){const ae=u(_.data),G=a?.has(ae)??!1,fe=G&&!y,he=_.value==null?"":String(_.value),se=i?.(_.data)??[];return m.jsx(Pt,{trigger:[Gt.ContextMenu],menu:{items:se},anchorToMouse:!0,matchReferenceWidth:!0,className:"w-full",disabled:fe,children:m.jsx("span",{className:"block min-w-0 h-full max-w-full",children:m.jsx(ft,{text:he,className:"max-w-full h-full",hideTooltip:G})})})}},[i,a,u,y]),V=p.useCallback(_=>_===xi.API||_===xi.ROW_DATA_CHANGED,[]),H=p.useCallback(_=>{if(!F)return;const G=(_.selectedNodes||[]).map(he=>he.data),fe=new Set(G.map(u));T.current=fe,M.current=_.source,V(_.source)||c?.(fe,G)},[F,u,V,c]),A=p.useMemo(()=>V8(_=>H?.(_),100),[H]),de=p.useCallback(_=>{if(!_.data)return null;const ae=u(_.data),G=_.node.isSelected(),fe=a?.has(ae),he=`row-select-${ae}`;return m.jsx("div",{className:"h-6 w-6 flex items-center justify-center",children:m.jsx(ru,{className:"w-[18px] h-[18px]",inputId:he,checked:G,disabled:fe,name:"gridradiobutton",value:"selected",onChange:()=>{fe||(_.node.setSelected(!0,!0,xi.CHECKBOX_SELECTED),_.api.refreshCells({columns:[_.column?.getColId()]}))}})})},[u,a]),k=p.useCallback(()=>{const _="dial-row-select",ae="dial-row-select-visible";return!l||l.size===0?_:`${_} ${ae}`},[l]),B=p.useCallback(()=>!l||l.size===0?"dial-row-not-select-header":k(),[k,l]),U=p.useMemo(()=>{if(S===_n.SINGLE)return{...G8,cellRenderer:de};if(S===_n.MULTIPLE)return{...B8,headerClass:()=>B(),cellClass:_=>{const ae=_.data?u(_.data):null;let G=k();return ae&&a?.has(ae)&&(G+=" opacity-50 pointer-events-none"),G}}},[S,de,B,u,k,a]),W=p.useCallback(_=>{const ae=typeof r=="function"?r(_):!!r;if(!_.cellRenderer)return{..._,cellRenderer:L};if(!ae)return _;const G=_.cellRenderer;return{..._,cellRenderer:he=>{const se=he.data?i?.(he.data)??[]:[];let le=null;if(typeof G=="function"){const Ce=G;le=m.jsx(Ce,{...he})}else le=L(he);const Fe=he.data?u(he.data):null,Oe=Fe?a?.has(Fe):!1;return m.jsx(Pt,{trigger:[Gt.ContextMenu],menu:{items:se},anchorToMouse:!0,matchReferenceWidth:!0,className:pe("w-full h-full",Oe&&"!cursor-not-allowed opacity-75"),disabled:Oe&&!y,children:m.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:le})})}}},[a,i,u,L,r,y]),re=p.useMemo(()=>r?(e??[]).map(W):e??[],[e,r,r?W:null]),be=p.useMemo(()=>({minWidth:150,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:g,buttons:["reset"]},comparator:N8.bind(void 0)}),[g]),Q=_=>{const ae=document.querySelector(Pg);ae&&ae.setAttribute("aria-description",pd);const G=re.map(fe=>({...fe,sort:void 0}));_.api.updateGridOptions({columnDefs:G,rowData:t}),_.api.sizeColumnsToFit(),D(_.api),s?.onGridReady?.(_),d?.(_.api)};p.useEffect(()=>{F&&t&&F.setGridOption("rowData",t)},[F,t]);const j=p.useCallback(()=>m.jsx(dr,{title:v,description:C,containerClassName:"gap-3",titleClassName:"mt-2 !text-lg",icon:f||m.jsx(z.IconZoomCancel,{size:100,stroke:.5,className:"text-secondary"})}),[v,C,f]),ge=p.useMemo(()=>{if(S)return{mode:S===_n.SINGLE?"singleRow":"multiRow",isRowSelectable:_=>{const ae=_.data?u(_.data):null;return ae?!a?.has(ae):!0}}},[a,u,S]);p.useEffect(()=>{F&&t&&T.current.size&&T.current.forEach(_=>{const ae=F.getRowNode(_);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,xi.API)})},[F,t]),p.useEffect(()=>{F&&l&&(F.deselectAll("all",xi.API),l.forEach(_=>{const ae=F.getRowNode(_);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,xi.API)}))},[F,l]);const ie=p.useCallback(_=>_.data?u(_.data):"",[u]),Z=p.useCallback(()=>{document.querySelectorAll(`.ag-row ${Pg}`).forEach(_=>{_.setAttribute("aria-description",pd)})},[]);return p.useEffect(()=>{const _=V(M.current);if(F&&l?.size&&_){const ae=Array.from(l)[0];if(ae){const G=F.getRowNode(ae);G&&F.ensureNodeVisible(G)}}},[F,V,l]),m.jsx("div",{className:pe(O8,o,S&&"with-selection-column",x&&"dial-without-header-borders"),"aria-label":n,role:"region","aria-busy":w,children:m.jsx("div",{className:"ag-theme-balham-dark h-full overflow-x-auto",role:"table","aria-describedby":P,children:m.jsx(P8,{rowModelType:"clientSide",headerHeight:qc,rowHeight:E,cellSelection:!1,theme:gP.withPart(qD).withParams({...N}),autoSizeStrategy:{type:"fitGridWidth"},columnDefs:re,defaultColDef:be,selectionColumnDef:U,onGridSizeChanged:q,onGridReady:Q,loading:w,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:j,rowData:t,rowSelection:ge,onSelectionChanged:A,getRowId:ie,onRowDataUpdated:Z,onBodyScroll:Z,onFirstDataRendered:Z,...s})})})};var ol=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(ol||{}),nl=(e=>(e.Mobile="mobile",e.Tablet="tablet",e))(nl||{});const ha=({tab:e,active:t,invalid:s,className:i,horizontal:o,onClick:n})=>{const r=ne("rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small-text hover:text-accent-primary",{"border-b-2 px-4":o,"border-l-2 px-3":!o}),a=ne(r,{"bg-layer-4":o,"bg-layer-1 text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-primary":!t&&!e.disabled,"border-b-accent-primary":t&&o&&!e.disabled,"border-l-accent-primary":t&&!o&&!e.disabled},i);return m.jsxs("button",{role:"tab",className:a,onClick:()=>n(e.id),disabled:e.disabled,children:[m.jsx(ft,{text:e.label,contentClassName:"max-w-[200px]",className:"max-w-[200px]"}),(s||e.invalid)&&m.jsx("div",{className:"text-error pl-1",children:m.jsx(z.IconExclamationCircle,{...J})}),e.warning&&m.jsx("div",{className:"text-warning pl-1",children:m.jsx(z.IconAlertTriangle,{...J})})]})},z8=12;var ii=(e=>(e.Undefined="undefined",e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e))(ii||{});const Tg=()=>typeof window<"u"&&window.innerWidth<640,Yc=()=>{if(typeof window>"u")return ii.Undefined;const e=window.innerWidth;return e>=1024?ii.Desktop:e<640?ii.Mobile:ii.Tablet},W8=()=>{const[e,t]=p.useState(()=>typeof window>"u"?ii.Desktop:Yc());return p.useEffect(()=>{t(Yc());const s=()=>t(Yc());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e},jC=({tabs:e,activeTab:t,onClick:s,orientation:i=ol.Horizontal,screenThreshold:o=nl.Tablet,smallScreenContainerClassName:n,smallScreenDropdownItemClassName:r,desktopDropdownClassName:a,desktopTabClassName:l})=>{const[c,d]=p.useState(!1),[u,h]=p.useState(!1),[g,f]=p.useState(!1),v=W8(),C=v===ii.Mobile||o===nl.Tablet&&v===ii.Tablet,w=i===ol.Horizontal,b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=e.find(P=>P.id===t),E=p.useMemo(()=>pe("flex gap-2",w?"flex-row flex-nowrap overflow-x-auto":"flex-col flex-wrap w-full"),[w]),R=p.useCallback(()=>{const P=x.current;P&&f(P.scrollWidth>P.clientWidth)},[]),F=p.useCallback(()=>{const P=y.current,T=x.current;if(!P||!T)return;const M=P.getBoundingClientRect(),N=T.getBoundingClientRect();if(M.width===0||N.width===0)return;const q=z8;let L=T.scrollLeft;if(M.left<N.left+q)L-=N.left+q-M.left;else if(M.right>N.right-q)L+=M.right-(N.right-q);else return;const V=Math.max(0,T.scrollWidth-T.clientWidth);L=Math.max(0,Math.min(L,V)),L!==T.scrollLeft&&T.scrollTo({left:L,behavior:"smooth"})},[]),D=p.useCallback(P=>{s(P),P===t&&F()},[s,t,F]);return p.useEffect(()=>{R();const P=new ResizeObserver(()=>R()),T=x.current;return T&&P.observe(T),()=>P.disconnect()},[e,R]),p.useEffect(()=>{F()},[t,F]),C?m.jsx("div",{role:"tablist",className:ne("h-11 flex items-center bg-layer-3 px-4",n),children:m.jsx(Pt,{trigger:[Gt.Click],open:c,onOpenChange:d,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],renderOverlay:()=>e.map(P=>m.jsx(ha,{tab:P,active:P.id===t,onClick:T=>{D(T),d(!1)},className:ne("w-full rounded-none h-11 items-center px-6",r)},P.id)),children:m.jsxs("div",{className:"flex gap-2 items-center h-11 cursor-pointer",children:[m.jsx(ha,{tab:S,active:!0,onClick:D,className:"rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"},t),m.jsx(Ye,{icon:m.jsx(z.IconChevronDown,{size:vt.SM}),className:pe("text-primary transition-transform",c&&"rotate-180")})]})})}):m.jsxs("div",{ref:b,className:"flex w-full items-start",children:[m.jsx("div",{ref:x,role:"tablist",className:E,children:e.map(P=>m.jsx("div",{ref:t===P.id?y:void 0,className:"w-full",children:m.jsx(ha,{tab:P,active:t===P.id,onClick:D,horizontal:w,className:ne("w-full",l)})},P.id))}),g&&m.jsx("div",{className:"flex items-center ml-2",children:m.jsx(Pt,{trigger:[Gt.Click],open:u,onOpenChange:h,placement:"bottom-end",renderOverlay:()=>e.map(P=>m.jsx(ha,{tab:P,active:P.id===t,onClick:T=>{D(T),h(!1)},className:"w-full rounded-none h-8 items-center px-3 py-2"},P.id)),children:m.jsx(ss,{iconBefore:m.jsx(z.IconDotsVertical,{size:Ht}),className:ne("w-8 h-8 flex items-center justify-center rounded border",u?"bg-layer-4 border-transparent":"border-primary",a)})})})]})},j8="w-full overflow-hidden",_8="flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap",_C="flex items-center gap-2 min-w-0 shrink-0 dial-small-text",U8="basis-[20%] flex-none",$8="flex-1 min-w-0",kg="inline-flex items-center gap-1 min-w-0 transition-colors",q8="text-secondary hover:text-accent-primary",K8="text-primary cursor-default",UC="flex-none inline-flex items-center leading-none text-secondary",Y8="items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary",$C=m.jsx(z.IconChevronRight,{size:vt.SM,"aria-hidden":"true"}),Mn=({label:e,href:t,onClick:s,disabled:i,isLast:o,separator:n=$C,className:r,iconBefore:a,labelClassName:l,onBeforeNavigate:c,...d})=>{const u=async C=>{if(c&&!o&&!await c()){C.preventDefault();return}s&&s(C)},h=ne(_C,o?$8:U8,r),g=(!!t||!!s)&&!o&&!i,f=g?ne(kg,q8):ne(kg,K8,i?"pointer-events-none opacity-75":""),v=typeof e=="string"?m.jsx(ft,{className:ne("cursor-pointer",l),text:e,id:"breadcrumb-item-content"}):m.jsx("span",{className:ne("flex-1 min-w-0 truncate cursor-pointer max-w-[300px]",l),"aria-label":"breadcrumb-item-content",children:e});return m.jsxs("li",{...d,className:h,"aria-label":d["aria-label"]||"breadcrumb-item",children:[g?m.jsxs("a",{href:t,onClick:u,className:f,children:[a,v]}):m.jsxs("span",{className:f,"aria-current":o?"page":void 0,"aria-disabled":i?"true":void 0,children:[a,v]}),!o&&m.jsx("span",{className:UC,"aria-label":"separator",children:n})]})},qC=({pathItems:e,separator:t=$C,ariaLabel:s="Breadcrumb",className:i,children:o,labelClassName:n,onBeforeNavigate:r})=>{const a=p.useMemo(()=>e?.length?e:p.Children.toArray(o).filter(p.isValidElement).map(d=>{const u=d.props,{labelClassName:h,isLast:g,separator:f,...v}=u;return v}),[e,o]),l=p.useCallback(async d=>{const u=parseInt(d.key,10),h=a[u];if(r&&!await r()){d.domEvent.preventDefault();return}h.onClick?h.onClick(d.domEvent):h.href&&(window.location.href=h.href)},[a,r]),c=p.useMemo(()=>{if(a.length===0)return null;if(a.length<=3)return a.map((v,C)=>p.createElement(Mn,{...v,key:`item-${C}`,isLast:C===a.length-1,separator:t,labelClassName:n,onBeforeNavigate:r}));const d=a.at(0),u=a.slice(1,-2),h=a.at(-2),g=a.at(-1);if(!d||!h||!g)return null;const f=u.map((v,C)=>({key:String(C+1),label:typeof v.label=="string"?v.label:`Item ${C+1}`,disabled:v.disabled}));return m.jsxs(m.Fragment,{children:[p.createElement(Mn,{...d,key:"item-0",separator:t,labelClassName:n,onBeforeNavigate:r}),m.jsxs("li",{className:ne(_C),children:[m.jsx(Pt,{menu:{items:f,onClick:l},placement:"bottom-start",matchReferenceWidth:!1,children:m.jsx("button",{type:"button","aria-label":"More breadcrumbs",className:Y8,children:m.jsx(z.IconDots,{size:vt.SM})})}),m.jsx("span",{className:UC,children:t})]}),p.createElement(Mn,{...h,key:`item-${a.length-2}`,separator:t,labelClassName:n,onBeforeNavigate:r}),p.createElement(Mn,{...g,key:`item-${a.length-1}`,isLast:!0,separator:t,labelClassName:n,onBeforeNavigate:r})]})},[a,t,n,l,r]);return m.jsx("nav",{"aria-label":s,className:ne(j8,i),children:m.jsx("ol",{className:_8,children:c})})},hh=(e,t)=>({appearance:i,...o})=>m.jsx(ss,{...o,variant:e,appearance:i||t}),KC=(e,t)=>({variant:i,...o})=>m.jsx(ss,{...o,variant:i||t,appearance:e}),Ss=hh(ze.Primary,ke.Solid),Fs=hh(ze.Neutral,ke.Outlined),YC=hh(ze.Error,ke.Outlined),X8=KC(ke.Link,ze.Primary),Z8=KC(ke.Ghost,ze.Primary),sn=(e,t)=>({appearance:i,...o})=>m.jsx(di,{...o,variant:e,appearance:i||t}),Q8=(e,t)=>({variant:i,...o})=>m.jsx(di,{...o,variant:i||t,appearance:e}),J8=sn(ze.Primary,ke.Solid),eL=sn(ze.Neutral,ke.Outlined),XC=sn(ze.Error,ke.Outlined),tL=sn(ze.Secondary,ke.Ghost),sL=sn(ze.Tertiary,ke.Ghost),iL=sn(ze.Success,ke.Ghost),oL=Q8(ke.Ghost,ze.Primary),ZC=({iconClassName:e,label:t,...s})=>t?m.jsx(YC,{...s,label:t,appearance:ke.Ghost,iconBefore:m.jsx(z.IconTrashX,{...J,className:e||""})}):m.jsx(XC,{...s,appearance:ke.Ghost,icon:m.jsx(z.IconTrashX,{...J,className:e||""})}),nL=({className:e="",value:t,onChange:s,error:i,containerClassName:o,resize:n=!1,labelProps:r,caption:a,id:l,...c})=>{const d=ne("dial-textarea dial-input px-3 py-2",c.invalid&&"dial-input-error",c.disabled&&"dial-input-disable",n?"resize":"resize-none",e);return m.jsxs("div",{className:ne("flex flex-col gap-y-2",o),children:[r&&m.jsx(Wi,{...r,htmlFor:l}),m.jsx("textarea",{id:l,value:t||"",className:d,onChange:u=>s?.(u.currentTarget.value),...c}),m.jsx(ls,{text:i}),!i&&m.jsx(lr,{text:a})]})},ph=({label:e,switchId:t,isOn:s=!1,disabled:i,onChange:o,caption:n})=>{const r=pe("flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",s?"flex-row-reverse":"flex-row",i?"pointer-events-none":"",i?s?"bg-controls-disable":"bg-layer-4":s?"bg-accent-primary":"bg-layer-4"),a=p.useCallback(l=>{l.stopPropagation(),o?.(!s)},[o,s]);return m.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[m.jsx("input",{type:"checkbox",onChange:a,id:t,disabled:i,className:"invisible w-0 h-0",checked:s}),m.jsx("label",{htmlFor:t,className:r,"aria-describedby":n&&"caption",children:m.jsx("span",{className:pe("size-3 rounded-full",i?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(e||n)&&m.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[e&&m.jsx("span",{className:pe("dial-small-text py-[1px]",i?"text-secondary":"text-primary"),"aria-label":"switch-title",children:e}),n&&m.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:n})]})]})};var jt=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e))(jt||{});const rL="z-[52] flex items-center justify-center bg-blackout md:p-4",Mg="divide-tertiary divide-y",aL="flex flex-row justify-between py-4 px-6 items-center",lL={[jt.Sm]:"dial-sm-popup",[jt.Md]:"dial-md-popup",[jt.Lg]:"dial-lg-popup"},Ki=({open:e=!1,header:t,portalId:s,className:i,overlayClassName:o,titleClassName:n,headerClassName:r,dividers:a=!0,dividerFooter:l=!0,children:c,footer:d,onClose:u,size:h=jt.Md,hideClose:g=!1,closeOnOutsideClick:f=!0,preventKeyboardOnOpen:v=!1})=>{const C=p.useRef(null),{refs:w,context:b}=Ie.useFloating({open:e,onOpenChange:F=>{F||u?.(null)}}),x=Ie.useRole(b,{role:"dialog"}),y=Ie.useDismiss(b,{outsidePress:f}),{getFloatingProps:S}=Ie.useInteractions([x,y]);if(!e)return null;const E=typeof t=="string"?"dial-popup-heading":void 0,R=F=>F?typeof F=="string"?m.jsx("h3",{id:E,className:pe("flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",n),children:m.jsx(At,{tooltip:F,children:F})}):F:m.jsx("span",{});return m.jsx(Ie.FloatingPortal,{id:s,children:m.jsx(Ie.FloatingOverlay,{className:pe(rL,o),children:m.jsx(Ie.FloatingFocusManager,{context:b,initialFocus:v?C:void 0,children:m.jsxs("div",{ref:w.setFloating,...S(),role:"dialog","aria-modal":"true","aria-labelledby":E,className:pe("dial-popup",lL[h],a&&Mg,i),children:[v&&m.jsx("div",{ref:C,tabIndex:-1,"aria-hidden":!0,className:"absolute size-px -m-px overflow-hidden opacity-0 pointer-events-none"}),m.jsxs("div",{className:ne(aL,r),children:[R(t),!g&&m.jsx(dh,{ariaLabel:"Close dialog",onClose:F=>u?.(F)})]}),m.jsx("div",{className:"flex-grow overflow-auto","aria-label":"popup-description",children:c}),l&&!d&&m.jsx("div",{className:Mg}),d]})})})})};var qo=(e=>(e.Info="info",e.Danger="danger",e))(qo||{});const cL="flex justify-end gap-2 px-6 py-4",dL="text-secondary dial-small-150 px-6 py-4",uL="Cancel",hL="Ok",Xc={[qo.Info]:{confirm:{variant:ze.Primary,appearance:ke.Solid},cancel:{variant:ze.Neutral,appearance:ke.Outlined}},[qo.Danger]:{container:"dial-danger-popup",confirm:{variant:ze.Error,appearance:ke.Solid},cancel:{variant:ze.Neutral,appearance:ke.Outlined}}},QC=({header:e,description:t,descriptionClassName:s,open:i=!1,confirmLabel:o=hL,cancelLabel:n=uL,isLoading:r=!1,disableConfirmButton:a=!1,className:l,confirmClassName:c,onClose:d,onConfirm:u,onCancel:h,children:g,dividers:f=!1,variant:v=qo.Info,size:C=jt.Sm,footer:w})=>{const b=r?null:m.jsxs("div",{className:cL,children:[m.jsx(Fs,{label:n,onClick:()=>h?h():d?.()}),m.jsx(ss,{variant:Xc[v].confirm?.variant,appearance:Xc[v].confirm?.appearance,className:c,label:o,disabled:a,onClick:()=>u()})]}),x=p.useCallback(()=>r?m.jsx("div",{className:"px-6 py-4 h-[120px]",children:m.jsx(cr,{size:50})}):g??(t?m.jsx("div",{className:pe(dL,s),children:t}):null),[g,t,r,s]);return m.jsx(Ki,{open:i,header:e,className:pe(Xc[v].container,l),dividers:f,onClose:()=>d?.(),footer:w??b,size:C,children:x()})},Zc=8,pL=24,JC=({initialTags:e=[],label:t,required:s,elementId:i,placeholder:o,captionDescription:n,errorText:r,invalid:a,disabled:l,collapseTagOverflow:c=!1,readOnly:d=!1,containerClassName:u,tagClassName:h,onChange:g})=>{const f=p.useRef(null),v=p.useRef([]),C=p.useRef(null),[w,b]=p.useState(e),[x,y]=p.useState(""),[S,E]=p.useState(!1),[R,F]=p.useState(e.length),D=p.useCallback(H=>A=>{v.current[H]=A},[]),P=p.useCallback(()=>{if(!c)return;const H=f.current;if(!H)return;const A=H.offsetWidth;if(A===0)return;const de=C.current?.offsetWidth??0,B=A-(d?0:pL)-Zc;let U=0,W=0;for(let re=0;re<w.length;re++){const be=v.current[re];if(!be)continue;const Q=be.offsetWidth+Zc;if(U+Q>B)break;U+=Q,W++}if(W<w.length&&W>0)for(;U+de>B&&W>0;){W--;const re=v.current[W]?.offsetWidth??0;U-=re+Zc}F(W)},[c,d,w.length]),T=H=>{const A=H.trim().replace(/,$/,"");if(A&&!w.includes(A)){const de=[A,...w];b(de),g?.(de)}},M=H=>{(H.key===","||H.key==="Enter")&&(H.preventDefault(),T(x),y(""))},N=()=>{x.trim()&&(T(x),y(""))},q=H=>{const A=w.filter((de,k)=>k!==H);b(A),g?.(A)},L=()=>r?m.jsx(ls,{text:r}):n?m.jsx(lr,{text:n}):null;p.useEffect(()=>{if(c)return;const H=new ResizeObserver(()=>{if(f.current){const A=f.current.scrollHeight>f.current.clientHeight+10;E(A)}});return f.current&&H.observe(f.current),()=>H.disconnect()},[w,c]),p.useEffect(()=>{if(!c){F(w.length);return}F(w.length);const H=new ResizeObserver(()=>{P()}),A=f.current;return A&&H.observe(A),P(),()=>H.disconnect()},[c,P,w]),p.useEffect(()=>{b(e)},[JSON.stringify(e)]);const V=m.jsxs("div",{ref:f,className:pe("flex gap-2 items-center relative",c?"flex-nowrap overflow-hidden w-full min-w-0":pe("flex-wrap",S?"flex-col-reverse":"flex-row"),u),children:[(c?w.slice(0,R):w).map((H,A)=>m.jsx(yo,{tag:H,className:h,remove:!l&&!d?()=>q(A):void 0},H+A)),c&&R<w.length&&m.jsx(At,{tooltip:w.slice(R).join(", "),triggerClassName:"inline-flex shrink-0 cursor-pointer",children:m.jsx(yo,{tag:`+${w.length-R}`})}),!d&&m.jsx("input",{id:i,type:"text",value:x,onChange:H=>y(H.target.value),onKeyDown:M,onBlur:N,className:pe("dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",c?"min-w-0":"min-w-[100px]"),placeholder:o??"",disabled:l}),c&&m.jsxs("div",{className:"absolute left-0 top-0 invisible pointer-events-none h-0 overflow-hidden whitespace-nowrap","aria-hidden":!0,children:[w.map((H,A)=>m.jsx("div",{ref:D(A),className:"inline-flex shrink-0",children:m.jsx(yo,{tag:H,className:h,remove:!l&&!d?()=>q(A):void 0})},`measure-${H}-${A}`)),m.jsx("div",{ref:C,className:"inline-flex shrink-0",children:m.jsx(yo,{tag:`+${w.length}`})})]})]});return d?V:m.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[m.jsx(Wi,{label:t,required:s,htmlFor:i}),m.jsx("div",{className:pe("dial-input min-h-[38px] p-[6px]",a&&"dial-input-error",l&&"dial-input-disable"),children:V}),L()]})},ew=({selectedItems:e,placeholder:t,collapseTagOverflow:s=!1,listClassName:i,listElementClassName:o})=>e?.length?m.jsx(JC,{readOnly:!0,initialTags:e,collapseTagOverflow:s,containerClassName:i,tagClassName:o}):t?m.jsx("span",{className:"text-secondary",children:t}):null,Qc=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z",fill:"currentColor"})),tw=({children:e,open:t,disabled:s=!1,selectedValue:i,valueClassName:o,inputClassName:n,onOpen:r,elementId:a,errorText:l,invalid:c,emptyValueText:d,placeholder:u,editable:h=!1,onValueChange:g,collapseTagOverflow:f=!1})=>{const v=Array.isArray(i)&&i.length>0,C=typeof i=="string"&&!!i.trim(),w=v||C?i:u?void 0:d,b=s?void 0:r,x=p.useCallback(R=>{g?.(R.target.value)},[g]),y=()=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:pe("dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between",n,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[m.jsx("input",{type:"text",className:pe("flex-1 min-w-0 bg-transparent outline-none border-none p-0 dial-small-text text-primary placeholder:text-secondary",o),value:typeof i=="string"?i:"",placeholder:u||d,onChange:x,disabled:s,id:a,"aria-label":"input-popup-field"}),!s&&m.jsx("button",{type:"button",className:"flex-shrink-0 cursor-pointer bg-transparent border-none p-0 ml-1",onClick:r,"aria-label":"open-popup",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]}),m.jsx(ls,{text:l})]}),S=()=>m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",className:"w-full",onClick:b,"aria-label":"open-popup",id:a,children:m.jsxs("div",{className:pe("dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between cursor-pointer",n,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[m.jsx(At,{tooltip:w==null?void 0:String(w),children:w||!u?m.jsx("span",{className:o,children:w}):m.jsx("span",{className:"text-secondary",children:u})}),!s&&m.jsx("div",{className:"flex-shrink-0",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]})}),m.jsx(ls,{text:l})]}),E=()=>m.jsx("div",{className:"w-full",onClick:b,children:m.jsxs("div",{className:pe("dial-input px-3 py-2 flex flex-row items-center w-full justify-between cursor-pointer",s&&"dial-input-disable"),children:[m.jsx(ew,{placeholder:u,selectedItems:w,collapseTagOverflow:f}),!s&&m.jsx("div",{className:"ml-1",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]})});return m.jsxs(m.Fragment,{children:[v?E():h?y():S(),t&&Ko.createPortal(e,document.body)]})},gL=({label:e,htmlFor:t,disabled:s,selectedValue:i,radioButtons:o,customInputValue:n,valueClassName:r,inputClassName:a,emptyValueText:l,onClose:c,header:d,portalId:u,onApply:h,onCancel:g,cancelButtonTitle:f="Cancel",applyButtonTitle:v="Apply",isValid:C,selectedRadioValue:w,onChangeRadioField:b,id:x,size:y=jt.Md})=>{const[S,E]=p.useState(!1),R=p.useCallback(()=>{s||E(!0)},[s]),F=p.useCallback(()=>{E(!1),c?.()},[c]),D=p.useCallback(()=>{g?.(),F()},[g,F]),P=p.useCallback(()=>{h(),F()},[h,F]);return m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(Wi,{label:e,htmlFor:t}),m.jsx(tw,{disabled:s,open:S,selectedValue:n??o.find(T=>T.id===i)?.name,valueClassName:r,inputClassName:pe(a,"py-2","px-3"),emptyValueText:l,onOpen:R,children:m.jsx(Ki,{open:S,onClose:D,header:d,portalId:u,size:y,footer:m.jsxs("div",{className:"flex flex-row items-center justify-end gap-2 px-6 py-4",children:[m.jsx(Fs,{label:f,onClick:D}),m.jsx(Ss,{label:v,onClick:P,disabled:!C})]}),children:m.jsx("div",{className:"px-6 py-4",children:m.jsx(Ia,{radioButtons:o,labelClassName:"dial-small-text",activeRadioButton:w,onChange:b,elementId:x,orientation:Ai.Column})})})})]})},fL="Create",mL="Cancel",vL="flex items-center justify-end gap-2 px-6 py-3",CL=({header:e,open:t=!1,submitLabel:s=fL,cancelLabel:i=mL,isLoading:o=!1,disableSubmitButton:n=!1,className:r,submitClassName:a,onClose:l,onSubmit:c,onCancel:d,children:u,dividers:h=!0,size:g=jt.Md,footer:f})=>{const v=o?null:m.jsxs("div",{className:vL,children:[m.jsx(Fs,{label:i,onClick:()=>d?d():l?.()}),m.jsx(Ss,{className:a,label:s,disabled:n,onClick:()=>c()})]}),C=p.useCallback(()=>o?m.jsx("div",{className:"px-6 py-4 h-[120px]",children:m.jsx(cr,{size:50})}):u??null,[u,o]);return m.jsx(Ki,{open:t,header:e,className:r,dividers:h,onClose:()=>l?.(),footer:f??v,size:g,children:C()})},wL=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Tab","Enter","Escape","Home","End","Insert"],sw=(e,t,s,i)=>{if((t==="number"||s!==void 0||i!==void 0)&&!wL.includes(e.key)&&!(e.ctrlKey||e.metaKey)&&!(e.key==="-"&&(e.currentTarget.selectionStart??0)===0&&!e.currentTarget.value.includes("-"))&&!(e.key==="."&&t==="number"&&!e.currentTarget.value.includes("."))){if(!/^[0-9]$/.test(e.key)){e.preventDefault();return}if(s!==void 0||i!==void 0){const n=e.currentTarget.value,r=e.currentTarget.selectionStart||0,a=n.slice(0,r)+e.key+n.slice(r),l=parseFloat(a);if(!isNaN(l)){if(s!==void 0&&l<+s){e.preventDefault();return}if(i!==void 0&&l>+i){e.preventDefault();return}}}}},bL="bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary",xL=({icon:e,onClick:t,disabled:s,size:i=Rt.Standard})=>m.jsx("div",{className:pe("border-l border-tertiary",i===Rt.Standard?"h-[40px] w-[44px]":"h-[24px] w-[32px]"),children:m.jsx(di,{className:pe(bL,i===Rt.Small&&"p-1"),icon:e,onClick:t,disabled:s,size:i})}),on=({labelProps:e,error:t,caption:s,id:i,containerClassName:o,...n})=>m.jsxs("div",{className:ne("flex flex-col gap-y-2",o),children:[e&&m.jsx(Wi,{...e,htmlFor:i}),m.jsx(iw,{id:i,...n}),m.jsx(ls,{text:t}),!t&&m.jsx(lr,{text:s})]}),iw=({invalid:e,disabled:t,prefix:s,className:i,postfix:o,iconBefore:n,iconAfter:r,wrapperClassName:a,type:l,inputRef:c,value:d,tooltipText:u,min:h,onChange:g,max:f,inputButtonProps:v,...C})=>{const w=p.useRef(null),b=Ie.useMergeRefs([c,w]);p.useEffect(()=>{const R=w.current;if(!R)return;const F=D=>{D.preventDefault()};return R.addEventListener("wheel",F,{passive:!1}),()=>{R.removeEventListener("wheel",F)}},[]);const x=l==="number"||h!==void 0||f!==void 0,y=R=>{sw(R,l,h,f)},S=R=>{const F=R.currentTarget.value;if(x&&F!==""){const D=parseFloat(F);if(isNaN(D)&&F!=="-"&&F!=="."||!isNaN(D)&&(h!==void 0&&D<+h||f!==void 0&&D>+f))return}g?.(F||void 0)},E=()=>m.jsxs("div",{className:ne("dial-input flex flex-row items-center gap-x-2 justify-between py-2",e&&"dial-input-error",t&&"dial-input-disable",!s&&"pl-3",!v&&"pr-3",a),"aria-label":"input-container",children:[s&&m.jsx("div",{className:"border-r border-tertiary",children:m.jsx(iw,{wrapperClassName:"!rounded-r-none",className:"truncate",value:s,disabled:!0,id:`${s}_textBefore`})}),m.jsx(Ye,{icon:n}),m.jsx("input",{ref:b,type:l,autoComplete:l==="password"?"new-password":"off",value:d??"",className:ne("border-0 bg-transparent w-full truncate",i),onChange:S,onKeyDown:y,min:h,disabled:t,max:f,...C}),o&&m.jsxs("p",{className:"text-secondary dial-small-text",children:[" ",o]}),m.jsx(Ye,{icon:r}),v&&m.jsx(xL,{...v,disabled:t})]});return t&&l!=="password"?m.jsx(At,{tooltip:u||d,children:E()}):E()},yL=/^0+\.(\d+)?$/,SL=/^0+/,RL=({integer:e,onChange:t,min:s,max:i,onKeyDown:o,onPaste:n,...r})=>{const a=d=>!d||d==="-"?d:String(d)?.match(yL)?String(d)?.replace(SL,"0"):Number(d),l=d=>{if([".","-","+","e","E"].includes(d.key)){d.preventDefault();return}sw(d,"number",s,i)},c=d=>{const u=d.clipboardData.getData("text"),h=u.replace(/\D/g,"");if(h!==u&&(d.preventDefault(),h)){const g=d.currentTarget,f=g.selectionStart??0,v=g.selectionEnd??0,C=g.value.slice(0,f)+h+g.value.slice(v);t?.(a(C))}};return m.jsx(on,{type:"number",min:s,max:i,onChange:d=>t?.(a(d)),onKeyDown:e?l:o,onPaste:e?c:n,...r})},FL=({onClick:e})=>m.jsx(z.IconEyeOff,{...J,className:"text-primary",onClick:e,role:"button","aria-label":"hide"}),EL=({onClick:e})=>m.jsx(z.IconEye,{...J,className:"text-primary",onClick:e,role:"button","aria-label":"show"}),DL=({...e})=>{const[t,s]=p.useState(!1),i=p.useCallback(o=>{s(o)},[]);return m.jsx(on,{type:t?"text":"password",...e,iconAfter:e.disabled?null:t?m.jsx(FL,{onClick:()=>i(!1)}):m.jsx(EL,{onClick:()=>i(!0)})})},PL={[Rt.Small]:{className:"dial-tiny-text",wrapperClassName:"pl-2 py-0",containerClassName:"h-[24px]",iconSize:16,iconStroke:1},[Rt.Standard]:{className:"dial-small-text",wrapperClassName:"",containerClassName:"",iconSize:20,iconStroke:1.5}},gh=({size:e=Rt.Standard,placeholder:t="Search...",value:s,onChange:i,...o})=>{const[n,r]=p.useState(s||"");p.useEffect(()=>{r(s||"")},[s]);const a=p.useCallback(u=>{r(u||""),i?.(u||"")},[i]),l=PL[e],c=p.useCallback(()=>{a("")},[a]),d=p.useMemo(()=>{if(n)return{icon:m.jsx(z.IconX,{size:l.iconSize,"aria-label":"Clear search",role:"button"}),onClick:c,size:e}},[c,n,e,l.iconSize]);return m.jsx(on,{placeholder:t,iconBefore:m.jsx(z.IconSearch,{size:l.iconSize,stroke:l.iconStroke}),value:n,onChange:a,inputButtonProps:d,containerClassName:l.containerClassName,className:l.className,wrapperClassName:l.wrapperClassName,...o})},TL="dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer",kL="w-full rounded flex flex-col",Jc="flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none",ML="bg-accent-primary-alpha",IL="bg-accent-primary-alpha border-l border-accent-primary border-1",Ig="opacity-75",AL=352,LL=m.jsx(z.IconChevronDown,{size:vt.SM}),ow=({options:e,selectedValues:t,handleRemoveTag:s})=>m.jsx("div",{className:"flex flex-wrap w-full items-center gap-1",children:t.map(i=>{const o=e.find(r=>r.value===i)?.label??i,n=e.find(r=>r.value===i)?.icon;return m.jsx(yo,{tag:o,remove:r=>s?.(r,i),iconBefore:n?m.jsx(Ye,{icon:n}):null,className:"max-w-full"},i)})});var rl=(e=>(e.Sm="sm",e.Md="md",e))(rl||{}),al=(e=>(e.Primary="Primary",e.Secondary="Secondary",e))(al||{});const nw=({options:e,multiple:t=!1,elementId:s,value:i,defaultValue:o,variant:n=al.Primary,size:r=rl.Md,prefix:a,customSelectedValue:l,placeholder:c="Select...",searchable:d=!1,searchPlaceholder:u,selectAll:h=!1,invalid:g,selectAllLabel:f="Select all",emptyStateTitle:v="No options available",emptyStateDescription:C,emptyStateIcon:w,disabled:b=!1,className:x,listClassName:y,closable:S=!1,header:E,footer:R,onClose:F,onChange:D,inlineSearch:P=!1,dismissRef:T,onFooterClick:M,open:N,onOpenChange:q,onInlineQueryChange:L,customMultiSelectTagsRenderer:V})=>{const H=p.useId(),[A,de]=p.useState(!1),k=N!==void 0,B=k?!!N:A,U=p.useCallback(K=>{k||de(K),q?.(K)},[k,q]),[W,re]=p.useState(P&&l||""),be=p.useRef(null),Q=p.useCallback(K=>{K!==W&&(re(K||""),L?.(K||""))},[L,W]),j=i!==void 0,[ge,ie]=p.useState(o),Z=j?i:ge,_=p.useMemo(()=>t?Array.isArray(Z)?Z:[]:typeof Z=="string"?[Z]:[],[Z,t]),ae=p.useMemo(()=>{const K=W.trim().toLowerCase();return K?e.filter(He=>He.label.toLowerCase().includes(K)):e},[e,W]);p.useEffect(()=>{!B&&!P&&Q("")},[P,B,Q]),p.useEffect(()=>{P&&!B&&l&&Q(l||"")},[l,P,B,Q]);const G=p.useCallback(K=>{j||ie(K),D?.(K)},[j,D]),fe=p.useCallback(K=>{if(t){const He=new Set(_);He.has(K)?He.delete(K):He.add(K),G(Array.from(He));return}if(G(K),P){const He=e.find(os=>os.value===K);He&&(Q(He.label),L?.(He.label))}U(!1)},[t,G,P,U,_,e,Q,L]),he=p.useCallback((K,He)=>{if(K.stopPropagation(),!t){G("");return}const os=_.filter(nn=>nn!==He);G(os)},[t,_,G]),se=p.useMemo(()=>ae.filter(K=>!K.disabled),[ae]),le=p.useMemo(()=>se.filter(K=>_.includes(K.value)).length,[se,_]),Fe=K=>{P&&!t&&!K&&fe(W),U(K)},Oe=se.length>0&&le===se.length,Ce=le>0&&!Oe,Ee=()=>{if(!(!t||se.length===0))if(Oe){const K=new Set(se.map(os=>os.value)),He=_.filter(os=>!K.has(os));G(He)}else{const K=new Set(_);se.forEach(He=>K.add(He.value)),G(Array.from(K))}},je=_.length>0;p.useEffect(()=>{B&&P&&!t&&!b&&requestAnimationFrame(()=>{const K=be.current;if(!K)return;K.focus();const He=K.value?.length??0;K.setSelectionRange?.(He,He)})},[B,P,t,b]);const _e=!t&&je?_[0]:void 0,Ae=p.useMemo(()=>_e?e.find(K=>K.value===_e):void 0,[e,_e]),Tt=p.useCallback(()=>!t||_.length===0?null:m.jsx(ow,{options:e,selectedValues:_,handleRemoveTag:he}),[t,e,_,he]),is=p.useCallback(()=>t?je?V?.(e,_,he)||Tt():m.jsx("span",{className:"text-secondary truncate",children:c}):Ae?m.jsxs(m.Fragment,{children:[Ae.icon&&m.jsx(Ye,{icon:Ae.icon}),m.jsx(ft,{text:a?`${a} ${Ae.label}`:Ae.label}),Ae?.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:Ae.description})]}):l&&i?l:m.jsx("span",{className:"text-secondary truncate",children:c}),[je,t,l,a,i,c,Tt,Ae,e,_,he,V]);p.useImperativeHandle(T,()=>({dismiss:()=>{U(!1)}}));const kt=p.useCallback(()=>{Q(_.length===1?Ae?.label??W:"")},[W,_.length,Q,Ae?.label]),Ge=p.useCallback(()=>{b||(U(!B),P&&!t&&(kt(),be.current?.focus()))},[b,P,B,t,kt,U]);return m.jsx(Pt,{open:B,onOpenChange:Fe,disabled:b,closable:S,onClose:F,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],maxDropdownHeight:d?null:AL,listClassName:y,renderOverlay:()=>m.jsxs("div",{id:`list-${s||H}`,role:"listbox","aria-multiselectable":t||void 0,className:kL,children:[E&&m.jsx(m.Fragment,{children:typeof E=="function"?E():E}),(d||S)&&e.length>8&&m.jsxs("div",{className:"flex items-center gap-2 px-2 pt-2",children:[d&&m.jsx(gh,{placeholder:u,onChange:Q,value:W,id:`search-${s||H}`,containerClassName:"w-full"}),S&&m.jsx(ss,{"aria-label":"Close select",className:"shrink-0",iconBefore:m.jsx(z.IconX,{size:vt.SM}),onClick:K=>{F?.(K),U(!1)}})]}),t&&h&&se.length>0&&m.jsx("div",{className:pe(Jc,"mt-2"),children:m.jsx(gd,{id:`${s||H}-selectAll`,label:f,checked:Oe,indeterminate:Ce,onChange:Ee,ariaLabel:f})}),m.jsx("div",{className:pe("overflow-y-auto max-h-[352px]",P&&ae.length===0?"":"py-1"),children:ae.length===0?!P&&m.jsx("div",{className:"px-2 py-3",children:m.jsx(dr,{icon:w??m.jsx(z.IconClipboardX,{size:vt.LG,stroke:.5}),title:v,description:C})}):ae.map(K=>{const He=_.includes(K.value);return t?m.jsxs("div",{role:"option","aria-selected":He,"aria-disabled":!!K.disabled,className:pe(Jc,He&&ML,K.disabled&&Ig,"w-full"),children:[m.jsx(gd,{id:`${s||H}-${K.value}`,label:m.jsxs("span",{className:"flex w-full flex-1 pl-2 min-w-0 items-center gap-2 text-primary",children:[K.icon&&m.jsx(Ye,{icon:K.icon}),m.jsx("span",{className:"truncate",children:K.label})]}),checked:He,disabled:K.disabled,onChange:()=>!K.disabled&&fe(K.value),ariaLabel:K.label}),K.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:K.description})]},K.value):m.jsx("button",{role:"option",type:"button","aria-selected":He,"aria-disabled":!!K.disabled,disabled:K.disabled,className:pe(Jc,He&&IL,K.disabled&&Ig),onClick:()=>!K.disabled&&fe(K.value),children:m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[K.icon&&m.jsx(Ye,{icon:K.icon}),m.jsx(ft,{text:K.label}),K.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:K.description})]})},K.value)})}),R&&m.jsx("div",{onClick:K=>{M?.(K),M&&U(!1)},children:typeof R=="function"?R():R})]}),children:m.jsxs("div",{role:"button",tabIndex:0,"aria-roledescription":"button to open select list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":`list-${s||H}`,className:ne(TL,b&&"opacity-75 !cursor-not-allowed",r===rl.Sm?"min-h-[25px] px-1.5 py-1":"min-h-[38px] px-3 py-2",g&&"dial-input-error",n===al.Secondary?"!bg-layer-4 !h-auto":"",x),onMouseDown:K=>{b||P&&!t&&(kt(),K.preventDefault())},onClick:()=>{Ge()},onKeyDown:K=>{(K.key===" "||K.code==="Space")&&(K.preventDefault(),Ge())},children:[P&&!t?m.jsx("div",{className:"flex min-w-0 items-center gap-2 text-primary flex-1",children:m.jsx("input",{id:`inline-${s||H}`,type:"text",placeholder:u??c,value:W||"",onChange:K=>Q(K.currentTarget.value.trimStart()),onFocus:()=>!b&&U(!0),onMouseDown:K=>{kt(),K.stopPropagation()},onClick:K=>{K.stopPropagation()},onKeyDown:K=>{K.stopPropagation()},className:"bg-transparent outline-none w-full dial-small-text",ref:be,disabled:b,"aria-disabled":b,autoComplete:"off"})}):m.jsx("div",{className:"flex w-full min-w-0 items-center gap-2 text-primary",children:is()}),!P&&m.jsx(Ye,{icon:LL,className:pe("text-primary",B&&"rotate-180")})]})})},OL=({label:e,required:t,captionDescription:s,containerClassName:i,selectClassName:o,error:n,id:r,caption:a,readonly:l,value:c,defaultEmptyText:d,...u})=>{const h=p.useCallback(()=>{if(!c||Array.isArray(c)&&c.length===0)return d??"None";if(Array.isArray(c))return m.jsx(ow,{options:u.options,selectedValues:c});{const g=u.options?.find(f=>f.value===c);return m.jsx("span",{"aria-readonly":!0,className:"text-primary",children:g?.label||c})}},[c,u.options,d]);return m.jsx(au,{id:r,label:e,required:t,description:a,error:n,captionDescription:s,className:i,readonly:l,value:h(),defaultEmptyText:d,children:m.jsx(nw,{className:o,value:c,elementId:r,invalid:!!n,...u})})};function rw(e){let t=null;return()=>(t==null&&(t=e()),t)}function NL(e,t){return e.filter(s=>s!==t)}function HL(e,t){const s=new Set,i=n=>s.add(n);e.forEach(i),t.forEach(i);const o=[];return s.forEach(n=>o.push(n)),o}class GL{enter(t){const s=this.entered.length,i=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(t));return this.entered=HL(this.entered.filter(i),[t]),s===0&&this.entered.length>0}leave(t){const s=this.entered.length;return this.entered=NL(this.entered.filter(this.isNodeInDocument),t),s>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class BL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const s={};Object.keys(this.config.exposeProperties).forEach(i=>{const o=this.config.exposeProperties[i];o!=null&&(s[i]={value:o(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,s)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,s){return s===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const fh="__NATIVE_FILE__",aw="__NATIVE_URL__",lw="__NATIVE_TEXT__",cw="__NATIVE_HTML__",Ag=Object.freeze(Object.defineProperty({__proto__:null,FILE:fh,HTML:cw,TEXT:lw,URL:aw},Symbol.toStringTag,{value:"Module"}));function ed(e,t,s){const i=t.reduce((o,n)=>o||e.getData(n),"");return i??s}const eu={[fh]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[cw]:{exposeProperties:{html:(e,t)=>ed(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[aw]:{exposeProperties:{urls:(e,t)=>ed(e,t,"").split(`
|
|
66
|
+
`,v6=class extends UT{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:s}=e;this.suppressQuotes=t,this.columnSeparator=s}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,wg),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((s,i)=>{i!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(s.data.value||""),s.mergeAcross&&this.appendEmptyCells(s.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,s,i){s!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,s){t!=0&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue(e,t,t,"csv",s);this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():($(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=wg),this.isFirstLine=!1}},C6=class extends _T{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){$(51);return}const t=this.getMergedParams(e),s=this.getData(t),i=new Blob(["\uFEFF",s],{type:"text/plain"}),o=typeof t.fileName=="function"?t.fileName(xe(this.gos,{})):t.fileName;$T(this.getFileName(o),i)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const s=t?Object.assign({},e):this.getMergedParams(e);return this.getData(s)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:s,rowGroupColsSvc:i,valueSvc:o,gos:n}=this,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:u}=e;return new v6({colModel:t,colNames:s,valueSvc:o,gos:n,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:u||",",rowGroupColsSvc:i})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function w6(e,t){return e.csvCreator?.getDataAsCsv(t)}function b6(e,t){e.csvCreator?.exportDataAsCsv(t)}var x6={moduleName:"CsvExport",version:ee,beans:[C6],apiFunctions:{getDataAsCsv:w6,exportDataAsCsv:b6},dependsOn:[m6]},y6=class extends O{constructor(e,t,s){super(),this.id=e,this.parentCache=t,this.params=s,this.state="needsLoading",this.version=0,this.startRow=e*s.blockSize,this.endRow=this.startRow+s.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,s){this.successCommon(e,{rowData:t,rowCount:s})}isRequestMostRecentAndLive(e){const t=e===this.version,s=this.isAlive();return t&&s}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:s,beans:i,rowNodes:o}=this;for(let n=0;n<e;n++){const r=s+n,a=new ci(i);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(r),a.setRowTop(t*r),o.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:s,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:s,pageStatus:i}}}setDataAndId(e,t,s){te(t)?e.setDataAndId(t,s.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(Xe(this.params.datasource.getRows)){$(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:s,params:{sortModel:i,filterModel:o},gos:n}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,s),failCallback:this.pageLoadFailed.bind(this,s),sortModel:i,filterModel:o,context:xe(n,{}).context}}forEachNode(e,t,s){this.rowNodes.forEach((i,o)=>{this.startRow+o<s&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const s=e-this.startRow;return this.rowNodes[s]}processServerResult(e){const{rowNodes:t,beans:s}=this;t.forEach((o,n)=>{const r=e.rowData?e.rowData[n]:void 0;!o.id&&o.alreadyRendered&&r&&(t[n]=new ci(s),t[n].setRowIndex(o.rowIndex),t[n].setRowTop(o.rowTop),t[n].setRowHeight(o.rowHeight),o.clearRowTopAndRowIndex()),this.setDataAndId(t[n],r,this.startRow+n)});const i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){for(const e of this.rowNodes)e.clearRowTopAndRowIndex();super.destroy()}},S6=2,R6=class extends O{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const s=Math.floor(e/this.params.blockSize);let i=this.blocks[s];if(!i){if(t)return;i=this.createBlock(s)}return i.getRow(e)}createBlock(e){const t=this.params,s=this.createBean(new y6(e,this,t));return this.blocks[s.id]=s,this.blockCount++,this.purgeBlocksIfNeeded(s),t.rowNodeBlockLoader.addBlock(s),s}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Hi(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(r=>r!=e),s=(r,a)=>a.lastAccessed-r.lastAccessed;t.sort(s);const i=this.params.maxBlocksInCache>0,o=i?this.params.maxBlocksInCache-1:null,n=S6-1;t.forEach((r,a)=>{const l=r.state==="needsLoading"&&a>=n,c=i?a>=o:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(r)||this.isBlockFocused(r))return;this.removeBlockFromCache(r)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:s,endRow:i}=e;return t.rowIndex>=s&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:s}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,s-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:s,overflowSize:i}=this.params,n=(e.id+1)*s+i;this.rowCount<n&&(this.rowCount=n)}}setRowCount(e,t){this.rowCount=e,te(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const s of this.getBlocksInOrder())s.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(s,i)=>s.id-i.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const s=[];let i=-1,o=!1;const n={value:0};let r=!1;for(const l of this.getBlocksInOrder())if(!r){if(o&&i+1!==l.id){r=!0;continue}i=l.id,l.forEachNode(c=>{const d=c===e||c===t;(o||d)&&s.push(c),d&&(o=!o)},n,this.rowCount)}return r||o?[]:s}},F6=class extends O{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new ci(e);this.rootNode=t,t.level=-1,this.rowHeight=Ti(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Ti(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!Kn(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;zo(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:s,rowNodeBlockLoader:i,eventSvc:o,gos:n}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:s?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:n.get("infiniteInitialRowCount"),maxBlocksInCache:n.get("maxBlocksInCache"),rowHeight:Ti(e),overflowSize:n.get("cacheOverflowSize"),blockSize:n.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new R6(this.cacheParams)),o.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(s=>{s.id===e&&(t=s)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),s=this.getRowCount()-1;return t>s?s:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function E6(e){Sl(e)?.refreshCache()}function D6(e){Sl(e)?.purgeCache()}function P6(e){return Sl(e)?.getRowCount()}var T6=class extends O{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=Ay(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=ut(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){ds(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Hi(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(s=>s.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const s of t)s.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:s,state:i}=t.getBlockStateJson();e[s]=i}),e}printCacheStatus(){Hi(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},k6={moduleName:"InfiniteRowModelCore",version:ee,rowModels:["infinite"],beans:[F6,T6]},M6={moduleName:"InfiniteRowModel",version:ee,apiFunctions:{refreshInfiniteCache:E6,purgeInfiniteCache:D6,getInfiniteRowCount:P6},dependsOn:[k6,jM]},I6="↑",A6="↓",L6={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},O6=class extends et{constructor(){super(L6),this.eValue=we,this.eDelta=we,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const s=Math.abs(t),i=e.formatValue(s),o=te(i)?i:s,n=t>=0,r=this.eDelta;n?r.textContent=I6+o:r.textContent=A6+o,r.classList.toggle("ag-value-change-delta-up",n),r.classList.toggle("ag-value-change-delta-down",!n)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Lt(this.eDelta)}refresh(e,t=!1){const{value:s,valueFormatted:i}=e,{eValue:o,lastValue:n,beans:r}=this;if(s===n||(te(i)?o.textContent=i:te(s)?o.textContent=s:Lt(o),r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=s&&typeof s=="object"&&"toNumber"in s?s.toNumber():s,l=n&&typeof n=="object"&&"toNumber"in n?n.toNumber():n;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const c=a-l;this.showDelta(e,c)}return n&&o.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=s,!0}},N6=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",H6={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},G6=class extends et{constructor(){super(H6),this.eCurrent=we,this.refreshCount=0,this.registerCSS(N6)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:s}=this,i=Dt({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=s.textContent,this.getGui().insertBefore(i,s),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let s=e.value;if(Xe(s)&&(s=""),s===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=s;const i=this.eCurrent;return te(e.valueFormatted)?i.textContent=e.valueFormatted:te(e.value)?i.textContent=s:Lt(i),!0}},B6=class extends O{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,s=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const o=this.animations[t];o.delete(e);const n=Date.now(),r=n+s,a=n+s+i,l={phase:"flash",flashEndTime:r,fadeEndTime:a};o.set(e,l);const c=`ag-cell-${t}`,d=`${c}-animation`,{comp:u,eGui:{style:h}}=e;u.toggleCss(c,!0),u.toggleCss(d,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),s)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const s of Object.keys(this.animations)){const i=this.animations[s],o=`ag-cell-${s}`,n=`${o}-animation`;for(const[r,a]of i){if(!r.isAlive()||!r.comp){i.delete(r);continue}const{phase:l,flashEndTime:c,fadeEndTime:d}=a,u=l==="flash"?c:d;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}const{comp:g,eGui:{style:f}}=r;switch(l){case"flash":g.toggleCss(o,!1),g.toggleCss(n,!0),f.transition=`background-color ${d-c}ms`,f.transitionDelay=`${c-e}ms`,t=Math.min(d,t??1/0),a.phase="fade";break;case"fade":g.toggleCss(o,!1),g.toggleCss(n,!1),f.removeProperty("transition"),f.removeProperty("transition-delay"),i.delete(r);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const s=kE(e.cellPosition);t.cells[s]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function V6(e,t={}){const{cellFlashSvc:s}=e;s&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))s.flashCell(i,t)})}var z6={moduleName:"HighlightChanges",version:ee,beans:[B6],userComponents:{agAnimateShowChangeCellRenderer:O6,agAnimateSlideCellRenderer:G6},apiFunctions:{flashCells:V6}};function W6(e){return e.stateSvc?.getState()??{}}function j6(e,t,s){return e.stateSvc?.setState(t,s)}function bg(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=_6(e)),e.version=ee,e}function _6(e){return e.cellSelection=U6(e,"rangeSelection"),e}function U6(e,t){if(e&&typeof e=="object")return e[t]}var $6=class extends O{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=ut(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=ut(this,()=>{this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowGroupExpansion",void 0)):(this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("ssrmRowGroupExpansion",void 0))},0),this.onRowSelectedDebounced=ut(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:s}=this.beans;this.isClientSideRowModel=tt(e);const i=bg(e.get("initialState")??{}),o=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const n=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>n(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&s?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:c})=>{c==="gridInitializing"&&(r(),n(()=>{this.setupStateOnColumnsInitialised(i,!!o),s?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),n(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),n(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const s=bg(e);delete s.partialColumnState,this.cachedState=s,this.startSuppressEvents();const i="api",o=t?new Set(t):void 0;this.setGridReadyState(s,i,o),this.setColumnsInitialisedState(s,i,!!o,o),this.setRowCountState(s,i,o),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(s,i,o),this.stopSuppressEvents(i)})}setGridReadyState(e,t,s){t==="api"&&!s?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,s,i){this.setColumnState(e,t,s,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const s=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:s("aggregation"),columnMoved:s("columnOrder"),columnPinned:s("columnPinning"),columnResized:s("columnSizing"),columnVisible:s("columnVisibility"),columnPivotChanged:s("pivot"),columnPivotModeChanged:s("pivot"),columnRowGroupChanged:s("rowGroup"),sortChanged:s("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,s){const{filter:i,rowGroupExpansion:o,ssrmRowGroupExpansion:n,rowSelection:r,pagination:a}=e,l=(d,u)=>!s?.has(d)&&(u||t==="api");l("filter",i)&&this.setFilterState(i),l("rowGroupExpansion",o)&&this.setRowGroupExpansionState(n,o,t),l("rowSelection",r)&&this.setRowSelectionState(r,t),l("pagination",a)&&this.setPaginationState(a,t);const c=this.updateCachedState.bind(this);c("filter",this.getFilterState()),this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(c("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),c("rowGroupExpansion",void 0)):(c("rowGroupExpansion",this.getRowGroupExpansionState()),c("ssrmRowGroupExpansion",void 0)),c("rowSelection",this.getRowSelectionState()),c("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(t("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),t("rowGroupExpansion",void 0)):(t("rowGroupExpansion",this.getRowGroupExpansionState()),t("ssrmRowGroupExpansion",void 0))},i=()=>t("filter",this.getFilterState()),{gos:o,colFilter:n}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:s,columnRowGroupChanged:s,rowDataUpdated:()=>{(o.get("groupDefaultExpanded")!==0||o.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(s)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:r=>{(r.newPage||r.newPageSize)&&t("pagination",this.getPaginationState())}}),n&&this.addManagedListeners(n,{filterStateChanged:i})}setFirstDataRenderedState(e,t,s){const{scroll:i,cellSelection:o,focusedCell:n,columnOrder:r,rowPinning:a}=e,l=(u,h)=>!s?.has(u)&&(h||t==="api");l("focusedCell",n)&&this.setFocusedCellState(n),l("cellSelection",o)&&this.setCellSelectionState(o),l("scroll",i)&&this.setScrollState(i),l("rowPinning",a)&&this.setRowPinningState(a),this.setColumnPivotState(!!r?.orderedColIds,t);const c=this.updateCachedState.bind(this);c("sideBar",this.getSideBarState()),c("focusedCell",this.getFocusedCellState());const d=this.getRangeSelectionState();c("rangeSelection",d),c("cellSelection",d),c("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:s,cellFocusCleared:s,cellSelectionChanged:i=>{if(i.finished){const o=this.getRangeSelectionState();t("rangeSelection",o),t("cellSelection",o)}},bodyScrollEnd:()=>t("scroll",this.getScrollState()),pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return VT($a(e),e.colModel.isPivotMode())}setColumnState(e,t,s,i){const{sort:o,rowGroup:n,aggregation:r,pivot:a,columnPinning:l,columnVisibility:c,columnSizing:d,columnOrder:u}=e;let h=!1;const g=(T,M)=>{const N=!i?.has(T)&&!!(M||t==="api");return h||(h=N),N},f={},v=T=>{let M=f[T];return M||(M={colId:T},f[T]=M,M)},C={},w=g("sort",o);w&&o?.sortModel.forEach(({colId:T,sort:M},N)=>{const q=v(T);q.sort=M,q.sortIndex=N}),(w||!s)&&(C.sort=null,C.sortIndex=null);const b=g("rowGroup",n);b&&n?.groupColIds.forEach((T,M)=>{const N=v(T);N.rowGroup=!0,N.rowGroupIndex=M}),(b||!s)&&(C.rowGroup=null,C.rowGroupIndex=null);const x=g("aggregation",r);x&&r?.aggregationModel.forEach(({colId:T,aggFunc:M})=>{v(T).aggFunc=M}),(x||!s)&&(C.aggFunc=null);const y=g("pivot",a);y&&(a?.pivotColIds.forEach((T,M)=>{const N=v(T);N.pivot=!0,N.pivotIndex=M}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(y||!s)&&(C.pivot=null,C.pivotIndex=null);const S=g("columnPinning",l);if(S){for(const T of l?.leftColIds??[])v(T).pinned="left";for(const T of l?.rightColIds??[])v(T).pinned="right"}(S||!s)&&(C.pinned=null);const E=g("columnVisibility",c);if(E)for(const T of c?.hiddenColIds??[])v(T).hide=!0;(E||!s)&&(C.hide=null);const R=g("columnSizing",d);if(R)for(const{colId:T,flex:M,width:N}of d?.columnSizingModel??[]){const q=v(T);q.flex=M??null,q.width=N}(R||!s)&&(C.flex=null);const F=u?.orderedColIds,D=!!F?.length&&!i?.has("columnOrder"),P=D?F.map(T=>v(T)):Object.values(f);(P.length||h)&&(this.columnStates=P,cs(this.beans,{state:P,applyOrder:D,defaultState:C},t))}setColumnPivotState(e,t){const s=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const o=this.beans,{pivotResultCols:n,colGroupSvc:r}=o;if(n?.isPivotResultColsPresent()){if(s){const a=[];for(const l of s)n.getPivotResultCol(l.colId)&&a.push(l);cs(o,{state:a,applyOrder:e},t)}i&&r?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return zT(t)}setColumnGroupState(e,t,s){const i=this.beans.colGroupSvc;if(!i||s?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const o=new Set(e.columnGroup?.openColumnGroupIds),r=i.getColumnGroupState().map(({groupId:a})=>{const l=o.has(a);return l&&o.delete(a),{groupId:a,open:l}});for(const a of o)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),i.setColumnGroupState(r,t)}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&Object.keys(t).length===0&&(t=void 0);const s=e?.getFilterState(),i=e?.getAdvFilterModel()??void 0;return t||i||s?{filterModel:t,columnFilterState:s,advancedFilterModel:i}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:s,columnFilterState:i,advancedFilterModel:o}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};(s!==void 0||i!==void 0)&&t?.setFilterState(s??null,i??null,"columnFilter"),o!==void 0&&t?.setAdvFilterModel(o??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:s,type:i,startRow:o,endRow:n,columns:r,startColumn:a}=t;return{id:s,type:i,startRow:o,endRow:n,colIds:r.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:s,colModel:i,visibleCols:o}=this.beans;if(!ai(t)||!s)return;const n=[];for(const r of e?.cellRanges??[]){const a=[];for(const c of r.colIds){const d=i.getCol(c);d&&a.push(d)}if(!a.length)continue;let l=i.getCol(r.startColId);if(!l){const c=o.allCols,d=new Set(a);l=c.find(u=>d.has(u))}n.push({...r,columns:a,startColumn:l})}s.setCellRanges(n)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:s}=e?.getVScrollPosition()??{top:0};return s||t?{top:s,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:s}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:o,animationFrameSvc:n,ctrlsSvc:r}=this.beans;i.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(s),r.getScrollFeature()?.setVerticalScrollPosition(t),o.redraw({afterScroll:!0}),n?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:s,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:s,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:s}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:i,rowIndex:o,rowPinned:n}=e;t.setFocusedCell({column:s.getCol(i),rowIndex:o,rowPinned:n,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const s=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!s&&!i))return{page:s,pageSize:i}}setPaginationState(e,t){const{pagination:s,gos:i}=this.beans;if(!s)return;const{pageSize:o,page:n}=e??{page:0,pageSize:i.get("paginationPageSize")},r=t==="gridInitializing";o&&!i.get("paginationAutoPageSize")&&s.setPageSize(o,r?"initialState":"pageSizeSelector"),typeof n=="number"&&(r?s.setPage(n):s.goToPage(n))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}getRowGroupExpansionState(){const{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,s){const i=this.beans.expansionSvc;if(!i)return;const o=t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};i.setExpansionState(o,s)}updateColumnState(e){const t=this.getColumnState();let s=!1;const i=this.cachedState;for(const o of Object.keys(t)){const n=t[o];Kn(n,i[o])||(s=!0)}this.cachedState={...i,...t},s&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const s=this.cachedState[e];this.setCachedStateValue(e,t),Kn(t,s)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},q6={moduleName:"GridState",version:ee,beans:[$6],apiFunctions:{getState:W6,setState:j6}};function K6(e){return e.rowModel.isLastRowIndexKnown()}function Y6(e){return e.pagination?.getPageSize()??100}function X6(e){return e.pagination?.getCurrentPage()??0}function Z6(e){return e.pagination?.getTotalPages()??1}function Q6(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function J6(e){e.pagination?.goToNextPage()}function eI(e){e.pagination?.goToPreviousPage()}function tI(e){e.pagination?.goToFirstPage()}function sI(e){e.pagination?.goToLastPage()}function iI(e,t){e.pagination?.goToPage(t)}var oI=class extends O{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,s=()=>{const i=Math.max(Ti(t),1),o=Math.floor(e/i);t.pagination.setPageSize(o,"autoCalculated")};this.isBodyRendered?ut(this,s,50)():(s(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},Fn="paginationPageSizeSelector",nI={tag:"span",cls:"ag-paging-page-size"},rI=class extends et{constructor(){super(nI),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(Fn,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){Lt(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(Fn)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),s=!t||!e.includes(t);if(s){const o=this.gos.exists("paginationPageSize"),n=this.gos.get(Fn)!==!0;$(94,{pageSizeSet:o,pageSizesSet:n,pageSizeOptions:e,paginationPageSizeOption:t}),n||$(95,{paginationPageSizeOption:t,paginationPageSizeSelector:Fn}),e.unshift("")}const i=String(s?"":t);this.selectPageSizeComp?(ui(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=s}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const s=this.getLocaleTextFunc(),i=s("pageSizeSelectorLabel","Page Size:"),o=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Nu).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(o).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(Fn);return!Array.isArray(t)||!t?.length?e:[...t].sort((s,i)=>s-i)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},aI={selector:"AG-PAGE-SIZE-SELECTOR",component:rI},lI=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}",cI=class extends sE{constructor(){super(),this.btFirst=we,this.btPrevious=we,this.btNext=we,this.btLast=we,this.lbRecordCount=we,this.lbFirstRowOnPage=we,this.lbLastRowOnPage=we,this.lbCurrent=we,this.lbTotal=we,this.pageSizeComp=we,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(lI)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[aI]);const{btFirst:t,btPrevious:s,btNext:i,btLast:o}=this;this.activateTabIndex([t,s,i,o]),t.insertAdjacentElement("afterbegin",Jt(e?"last":"first",this.beans)),s.insertAdjacentElement("afterbegin",Jt(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",Jt(e?"previous":"next",this.beans)),o.insertAdjacentElement("afterbegin",Jt(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:n=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(n):bF(this.beans,n),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:s}=e;this.addManagedListeners(t,{click:s,keydown:i=>{(i.key===I.ENTER||i.key===I.SPACE)&&(i.preventDefault(),s())}})}wF(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):jT(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),s=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),o=e===s-1;this.nextButtonDisabled=o||i,this.lastButtonDisabled=!t||i||e===s-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){H0(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),s=this.pagination.getMasterRowCount(),i=e?s:null,o=this.pagination.getCurrentPage(),n=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=n*o+1,a=r+n-1,e&&a>i&&(a=i));const l=r+n-1,c=!e&&s<l,d=this.formatNumber(r);this.lbFirstRowOnPage.textContent=d;let u;const h=this.getLocaleTextFunc();c?u=h("pageLastRowUnknown","?"):u=this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const f=t>0?o+1:0,v=this.formatNumber(f);this.lbCurrent.textContent=v;let C,w;if(e)C=this.formatNumber(t),w=this.formatNumber(i);else{const b=h("more","more");C=b,w=b}this.lbTotal.textContent=C,this.lbRecordCount.textContent=w,this.announceAriaStatus(d,u,w,v,C)}announceAriaStatus(e,t,s,i,o){const n=this.getLocaleTextFunc(),r=n("page","Page"),a=n("to","to"),l=n("of","of"),c=`${e} ${a} ${t} ${l} ${s}`,d=`${r} ${i} ${l} ${o}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),d!==this.ariaPageStatus&&(this.ariaPageStatus=d,this.ariaAnnounce?.announceValue(d,"paginationPage"))}},dI={selector:"AG-PAGINATION",component:cI},uI=class extends O{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return dI}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:s}=this.beans;s?.isEditing()&&(s.isBatchEditing()?s.cleanupEditors():s.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return te(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:te(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:te(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:te(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const s=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}s!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const s=this.pageSize,i=t-1;this.totalPages=Math.floor(i/s)+1,this.adjustCurrentPageIfInvalid();const o=this.currentPage,n=s*o;let r=s*(o+1)-1;if(r>i&&(r=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(n),r===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:s}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*s,this.bottomDisplayedRowIndex=t*(s+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:s=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:s,newPageSize:i,keepRenderedRows:t})}},hI={moduleName:"Pagination",version:ee,beans:[uI,oI],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:K6,paginationGetPageSize:Y6,paginationGetCurrentPage:X6,paginationGetTotalPages:Z6,paginationGetRowCount:Q6,paginationGoToNextPage:J6,paginationGoToPreviousPage:eI,paginationGoToFirstPage:tI,paginationGoToLastPage:sI,paginationGoToPage:iI},dependsOn:[Rl]};function pI(e,t={}){const s=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(s))}function EC(e,t,s,i,o){t&&(i&&t.parent&&t.parent.level!==-1&&EC(e,t.parent,s,i,o),t.setExpanded(s,void 0,o))}function gI(e,t){return e.rowModel.getRowNode(t)}function fI(e,t,s,i){e.rowRenderer.addRenderedRowListener(t,s,i)}function mI(e){return e.rowRenderer.getRenderedNodes()}function vI(e,t,s){e.rowModel.forEachNode(t,s)}function CI(e){return e.rowRenderer.firstRenderedRow}function wI(e){return e.rowRenderer.lastRenderedRow}function bI(e,t){return e.rowModel.getRow(t)}function xI(e){return e.rowModel.getRowCount()}var yI={moduleName:"RowApi",version:ee,apiFunctions:{redrawRows:pI,setRowNodeExpanded:EC,getRowNode:gI,addRenderedRowListener:fI,getRenderedNodes:mI,forEachNode:vI,getFirstDisplayedRowIndex:CI,getLastDisplayedRowIndex:wI,getDisplayedRowAtIndex:bI,getDisplayedRowCount:xI}},SI={moduleName:"ScrollApi",version:ee,apiFunctions:{getVerticalPixelRange:Ok,getHorizontalPixelRange:Nk,ensureColumnVisible:hC,ensureIndexVisible:pC,ensureNodeVisible:Hk}};function RI(e,t,s){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,o=`aria-${t}`;s===null?i.removeAttribute(o):i.setAttribute(o,s)}function FI(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function EI(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function DI(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function PI(e){e.animationFrameSvc?.flushAllFrames()}function TI(e){return{rowHeight:Ti(e),headerHeight:mr(e)}}function kI(e,t={}){const s=[];for(const n of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const r=n.getCellRenderer();r!=null&&s.push(tr(r))}if(t.columns?.length)return s;const i=[],o=qd(t.rowNodes);for(const n of e.rowRenderer.getAllRowCtrls()){if(o&&!Kd(n.rowNode,o)||!n.isFullWidth())continue;const r=n.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){const l=r[a];l!=null&&i.push(tr(l))}}return[...i,...s]}var MI={moduleName:"RenderApi",version:ee,apiFunctions:{setGridAriaProperty:RI,refreshCells:FI,refreshHeader:EI,isAnimationFrameQueueEmpty:DI,flushAllAnimationFrames:PI,getSizesForCurrentTheme:TI,getCellRendererInstances:kI}};function II(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function DC({colAutosize:e,visibleCols:t},s,i){Array.isArray(s)?e?.autoSizeCols({colKeys:s,skipHeader:i,source:"api"}):e?.autoSizeCols({...s,colKeys:s.colIds??t.allCols,source:"api"})}function AI(e,t){t&&typeof t=="object"?DC(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var LI=class extends O{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let s=!1;const i=t.type;if(i==="fitGridWidth"||i==="fitProvidedWidth")s=!0;else if(i==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const o=e.get("rowData");s=o!=null&&o.length>0&&tt(e)}s&&this.beans.colDelayRenderSvc?.hideColumns(i)}}autoSizeCols(e){const{eventSvc:t,visibleCols:s}=this.beans;this.innerAutoSizeCols(e).then(i=>{const o=c=>Wo(t,Array.from(c),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return o(i);const n=xg(this.beans),r=c=>s.leftCols.some(d=>Bn(d,c)),a=c=>s.rightCols.some(d=>Bn(d,c)),l=e.colKeys.filter(c=>!Us(c)&&!Hs(c)&&!r(c)&&!a(c));this.sizeColumnsToFit(n,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(c=>({...c,key:c.colId})),colKeys:l,onlyScaleUp:!0}),o(i)})}innerAutoSizeCols(e){return new Promise((t,s)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,s));const{colKeys:i,skipHeader:o,skipHeaderGroups:n,stopAtGroup:r,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:c=[],source:d="api"}=e,{animationFrameSvc:u,renderStatus:h,colModel:g,autoWidthCalc:f,visibleCols:v}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&h&&(!h.areHeaderCellsRendered()||!h.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,s)});return}this.timesDelayed=0;const C=new Set;let w=-1;const b=Object.fromEntries(c.map(({colId:S,...E})=>[S,E])),x=o??this.gos.get("skipHeaderOnAutoSize"),y=n??x;for(;w!==0;){w=0;const S=[];for(const E of i){if(!E||Ky(E))continue;const R=g.getCol(E);if(!R||C.has(R))continue;const F=f.getPreferredWidthForColumn(R,x);if(F>0){const D=b[R.colId]??{};D.minWidth??(D.minWidth=l),D.maxWidth??(D.maxWidth=a);const P=OI(R,F,D);R.setActualWidth(P,d),C.add(R),w++}S.push(R)}S.length&&v.refresh(d)}y||this.autoSizeColumnGroupsByColumns(i,d,r),t(C)})}autoSizeColumn(e,t,s){this.autoSizeCols({colKeys:[e],skipHeader:s,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,s){const{colModel:i,ctrlsSvc:o}=this.beans,n=new Set,r=i.getColsForKeys(e);for(const l of r){let c=l.getParent();for(;c&&c!=s;)c.isPadding()||n.add(c),c=c.getParent()}let a;for(const l of n){for(const c of o.getHeaderRowContainerCtrls())if(a=c.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const s=this.gos.get("skipHeaderOnAutoSize"),i=()=>{this.autoSizeColumn(t,"uiColumnResized",s)};e.addEventListener("dblclick",i);const o=new bi(e);return o.addEventListener("doubleTap",i),()=>{e.removeEventListener("dblclick",i),o.destroy()}}addColumnGroupResize(e,t,s){const i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{const n=[],r=t.getDisplayedLeafColumns();for(const a of r)a.getColDef().suppressAutoSize||n.push(a.getColId());n.length>0&&this.autoSizeCols({colKeys:n,skipHeader:i,stopAtGroup:t,source:"uiColumnResized"}),s()};return e.addEventListener("dblclick",o),()=>e.removeEventListener("dblclick",o)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const s=xg(this.beans);if(s>0){this.sizeColumnsToFit(s,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):$(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",s,i){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,s,i));return}const o={};for(const{key:f,...v}of i?.columnLimits??[])o[typeof f=="string"?f:f.getColId()]=v;const n=this.beans.visibleCols.allCols;if(e<=0||!n.length)return;const r=As(n);if(i?.onlyScaleUp&&r>e||e===r&&n.every(v=>{if(v.colDef.suppressSizeToFit)return!0;const C=o?.[v.getId()],w=C?.minWidth??i?.defaultMinWidth,b=C?.maxWidth??i?.defaultMaxWidth,x=v.getActualWidth();return(w==null||x>=w)&&(b==null||x<=b)}))return;const l=[],c=[];for(const f of n){const v=i?.colKeys?.some(C=>Bn(f,C))??!0;f.getColDef().suppressSizeToFit||!v?c.push(f):l.push(f)}const d=l.slice(0);let u=!1;const h=f=>{ds(l,f),c.push(f)};for(const f of l){f.resetActualWidth(t);const v=o?.[f.getId()],C=v?.minWidth??i?.defaultMinWidth,w=v?.maxWidth??i?.defaultMaxWidth,b=f.getActualWidth();typeof C=="number"&&b<C?f.setActualWidth(C,t,!0):typeof w=="number"&&b>w&&f.setActualWidth(w,t,!0)}for(;!u;){u=!0;const f=e-As(c);if(f<=0)for(const v of l){const C=o?.[v.getId()]?.minWidth??i?.defaultMinWidth??v.minWidth;v.setActualWidth(C,t,!0)}else{const v=f/As(l);let C=f;for(let w=l.length-1;w>=0;w--){const b=l[w],x=o?.[b.getId()],y=x?.minWidth??i?.defaultMinWidth,S=x?.maxWidth??i?.defaultMaxWidth,E=b.getMinWidth(),R=b.getMaxWidth(),F=typeof y=="number"&&y>E?y:E,D=typeof S=="number"&&S<R?S:R;let P=Math.round(b.getActualWidth()*v);P<F?(P=F,h(b),u=!1):P>D?(P=D,h(b),u=!1):w===0&&(P=C),b.setActualWidth(P,t,!0),C-=P}}}for(const f of d)f.fireColumnWidthChangedEvent(t);const g=this.beans.visibleCols;g.setLeftValues(t),g.updateBodyWidths(),!s&&Wo(this.eventSvc,d,!0,t)}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,s=e.get("autoSizeStrategy");s?.type!=="fitGridWidth"&&s?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const i=s.type;if(i==="fitGridWidth"){const{columnLimits:o,defaultMinWidth:n,defaultMaxWidth:r}=s,a=o?.map(({colId:l,minWidth:c,maxWidth:d})=>({key:l,minWidth:c,maxWidth:d}));this.sizeColumnsToFitGridBody({defaultMinWidth:n,defaultMaxWidth:r,columnLimits:a})}else i==="fitProvidedWidth"&&this.sizeColumnsToFit(s.width,"sizeColumnsToFit");t?.revealColumns(i)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const s="autosizeColumns";e?this.autoSizeCols({...t,source:s,colKeys:e}):this.autoSizeAllColumns({...t,source:s}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}};function OI(e,t,s={}){const i=s.minWidth??e.getMinWidth();t<i&&(t=i);const o=s.maxWidth??e.getMaxWidth();return t>o&&(t=o),t}function xg({ctrlsSvc:e,scrollVisibleSvc:t}){const s=e.getGridBodyCtrl(),o=s.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Zn(s.eGridBody)-o}var NI={moduleName:"ColumnAutoSize",version:ee,beans:[LI],apiFunctions:{sizeColumnsToFit:II,autoSizeColumns:DC,autoSizeAllColumns:AI},dependsOn:[xv]},HI=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function GI(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function BI(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function VI(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function zI(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function WI(e,t,s){return e.pinnedRowModel?.forEachPinnedRow(t,s)}var jI={moduleName:"PinnedRow",version:ee,beans:[YF],css:[HI],apiFunctions:{getPinnedTopRowCount:GI,getPinnedBottomRowCount:BI,getPinnedTopRow:VI,getPinnedBottomRow:zI,forEachPinnedRow:WI},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},_I=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const s of this.spannedNodes)s!==this.lastNode&&(t+=s.rowHeight);return e-t}},UI=class extends O{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:s,pinnedRowModel:i,rowModel:o,valueSvc:n,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),c=new Map,d=s.getCallback("isFullWidthRow"),u=a.equals,h=a.spanRows,g=typeof h=="function";let f=null,v=null,C;const w=(x,y)=>{f=x,v=null,C=y},b=x=>{const y=!x.isExpandable()&&!x.group&&!x.detail&&(d?!d({rowNode:x}):!0);if(x.rowIndex==null||!y){w(null,null);return}if(f==null||x.level!==f.level||x.footer||v&&x.rowIndex-1!==v?.getLastNode().rowIndex){w(x,n.getValue(t,x));return}const S=n.getValue(t,x);if(g){const E=xe(s,{valueA:C,nodeA:f,valueB:S,nodeB:x,column:t,colDef:a});if(!h(E)){w(x,S);return}}else if(u?!u(C,S):C!==S){w(x,S);return}if(!v){const E=l?.get(f);E?.firstNode===f?(E.reset(),v=E):v=new _I(t,f),c.set(f,v)}v.addSpannedNode(x),c.set(x,v)};switch(e){case"center":o.forEachDisplayedNode?.(x=>{(!r||r.isRowInPage(x.rowIndex))&&b(x)}),this.centerValueNodeMap=c;break;case"top":i?.forEachPinnedRow("top",b),this.topValueNodeMap=c;break;case"bottom":i?.forEachPinnedRow("bottom",b),this.bottomValueNodeMap=c;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},$I=class extends O{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=ut(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=ut(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const s=this.createManagedBean(new UI(e));this.spanningColumns.set(e,s),s.buildCache("top"),s.buildCache("bottom"),s.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const s=this.spanningColumns.get(e);return s?s.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:s}=this.beans,i=e.column,o=e.rowIndex,n=this.spanningColumns.get(i);if(!n)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(o);break;case"bottom":r=t?.getPinnedBottomRow(o);break;default:r=s.getRow(o)}if(r)return n.getCellSpan(r)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const s=this.spanningColumns.get(e);if(s)return s.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[s,i]of this.spanningColumns)if(i.isCellSpanning(e)){const o=i.getCellSpan(e);t(s,o)}}destroy(){super.destroy(),this.spanningColumns.clear()}},qI=class extends Ho{constructor(e,t,s){super(e.col,e.firstNode,s,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,s,i,o,n,r){this.eWrapper=s,super.setComp(e,t,s,i,o,n,r),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||Pf(e,t.rowIndex)}setAriaRowSpan(){z0(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(xl(t)){this.focusedCellPosition=void 0;return}const s=this.isCellFocused();s||(this.focusedCellPosition=void 0),e&&s&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},KI=class extends el{onRowIndexChanged(){super.onRowIndexChanged();for(const e of this.getAllCellCtrls())e.refreshAriaRowIndex()}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new qI(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},YI=class extends O{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,s=this.getCtrlsMap(e),i=s.size,o=this.getAllRelevantRowControls(e),n=new Map;let r=!1;for(const l of o)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(c,d)=>{if(n.has(d.firstNode))return;const u=s.get(d.firstNode);if(u){n.set(d.firstNode,u),s.delete(d.firstNode);return}r=!0;const h=new KI(d.firstNode,this.beans,!1,!1,!1);n.set(d.firstNode,h)});this.setCtrlsMap(e,n);const a=n.size===i;if(!(!r&&a)){for(const l of s.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,s=t?.getCellSpanByPosition(e);if(!s)return;const i=this.getCtrlsMap(e.rowPinned).get(s.firstNode);if(i)return i.getAllCellCtrls().find(o=>o.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},XI={moduleName:"CellSpan",version:ee,beans:[$I,YI]},ZI=class extends O{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,s=e.colDef,i=s.cellClassRules,o=this.getCellClassParams(e,s);eh(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,o,n=>t.toggleCss(n,!0),n=>t.toggleCss(n,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,s=t.cellStyle;if(!s)return;let i;if(typeof s=="function"){const o=this.getCellClassParams(e,t);i=s(o)}else i=s;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,s=e.colDef,i=this.getCellClassParams(e,s);for(const n of this.staticClasses)t.toggleCss(n,!1);const o=this.beans.cellStyles.getStaticCellClasses(s,i);this.staticClasses=o;for(const n of o)t.toggleCss(n,!0)}getCellClassParams(e,t){const{value:s,rowNode:i}=this.cellCtrl;return xe(this.beans.gos,{value:s,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},QI=class extends O{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,s,i){eh(this.beans.expressionSvc,void 0,e.cellClassRules,t,s,i),this.processStaticCellClasses(e,t,s)}getStaticCellClasses(e,t){const{cellClass:s}=e;if(!s)return[];let i;return typeof s=="function"?i=s(t):i=s,typeof i=="string"&&(i=[i]),i||[]}createCellCustomStyleFeature(e,t){return new ZI(e,t)}processStaticCellClasses(e,t,s){this.getStaticCellClasses(e,t).forEach(o=>{s(o)})}},JI={moduleName:"CellStyle",version:ee,beans:[QI]},eA={moduleName:"RowStyle",version:ee,beans:[B5]};function tA(e,t){return!!e.colHover?.isHovered(t)}var sA=class extends O{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=s=>{const{beans:i,gos:o,element:n,columns:r}=this,a=i.colHover;if(s??!!o.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(n,{mouseover:a.setMouseOver.bind(a,r),mouseout:a.clearMouseOver.bind(a)});else{for(const c of this.destroyManagedListeners)c();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},iA="ag-column-hover",oA=class extends O{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,s){const i=()=>{const o=this.isHovered(s);t.toggleCss("ag-column-hover",o)};e.addManagedEventListeners({columnHoverChanged:i}),i()}onCellColumnHover(e,t){if(!t)return;const s=this.isHovered(e);t.toggleCss(iA,s)}addHeaderFilterColumnHoverListener(e,t,s,i){this.createHoverFeature(e,[s],i);const o=()=>{const n=this.isHovered(s);t.toggleCss("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:o}),o()}createHoverFeature(e,t,s){e.createManagedBean(new sA(t,s))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},nA={moduleName:"ColumnHover",version:ee,beans:[oA],apiFunctions:{isColumnHovered:tA}},rA=class extends O{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const s=this.wrapSvc?.wrap(e,t)??t,i=!Pa.has(e),o=i?this.asyncListeners:this.syncListeners;o.has(e)||o.set(e,new Set),o.get(e).add(s),this.eventSvc.addListener(e,s,i)}removeListener(e,t){const s=this.wrapSvc?.unwrap(e,t)??t,o=!!this.asyncListeners.get(e)?.delete(s);o||this.syncListeners.get(e)?.delete(s),this.eventSvc.removeListener(e,s,o)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,s=(n,r)=>{Pa.has(n)&&t(n,r)},i=(n,r)=>{Pa.has(n)||t(n,r)};this.globalListenerPairs.set(e,{syncListener:s,asyncListener:i});const o=this.eventSvc;o.addGlobalListener(s,!1),o.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:s,globalListenerPairs:i}=this,o=s?.unwrapGlobal(e)??e;if(i.has(o)){const{syncListener:r,asyncListener:a}=i.get(o);t.removeGlobalListener(r,!1),t.removeGlobalListener(a,!0),i.delete(e)}else this.syncGlobalListeners.delete(o),t.removeGlobalListener(o,!1)}destroyEventListeners(e,t){e.forEach((s,i)=>{s.forEach(o=>this.eventSvc.removeListener(i,o,t)),s.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const s of e)this.eventSvc.removeGlobalListener(s,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:s,asyncListener:i})=>{t.removeGlobalListener(s,!1),t.removeGlobalListener(i,!0)}),e.clear()}};function aA(e,t,s){e.apiEventSvc?.addListener(t,s)}function lA(e,t,s){e.apiEventSvc?.removeListener(t,s)}function cA(e,t){e.apiEventSvc?.addGlobalListener(t)}function dA(e,t){e.apiEventSvc?.removeGlobalListener(t)}var uA={moduleName:"EventApi",version:ee,apiFunctions:{addEventListener:aA,addGlobalListener:cA,removeEventListener:lA,removeGlobalListener:dA},beans:[rA]},hA={moduleName:"Locale",version:ee,beans:[BT]},pA=class extends O{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=ut(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:s,pinnedRowModel:i}=this.beans,o=e.autoHeightCols;let n=!1;const r=a=>{const l=a.__autoHeights;let c=ri(this.beans,a).height;for(const d of o){let u=l?.[d.getColId()];const h=s?.getCellSpan(d,a);if(h){if(h.getLastNode()!==a)continue;if(u=s?.getCellSpan(d,a)?.getLastNodeAutoHeight(),!u)return}if(u==null){if(this.colSpanSkipCell(d,a))continue;return}c=Math.max(u,c)}c!==a.rowHeight&&(a.setRowHeight(c),n=!0)};i?.forEachPinnedRow?.("top",r),i?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),n&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,s){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[s.getId()];return}const i=e.__autoHeights[s.getId()];e.__autoHeights[s.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:s,colViewport:i,visibleCols:o}=this.beans;if(!s.colSpanActive)return!1;let n=[];switch(e.getPinned()){case"left":n=o.getLeftColsForRow(t);break;case"right":n=o.getRightColsForRow(t);break;case null:n=i.getColsWithinViewport(t);break}return!n.includes(e)}setupCellAutoHeight(e,t,s){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:o,column:n}=e,r=this.beans,a=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!s.isAlive())return;const{paddingTop:u,paddingBottom:h,borderBottomWidth:g,borderTopWidth:f}=ji(i),v=u+h+g+f,w=t.offsetHeight+v;if(d<5){const x=!pt(r)?.contains(t),y=w==0;if(x||y){window.setTimeout(()=>a(d+1),0);return}}this.setRowAutoHeight(o,w,n)},l=()=>a(0);l();const c=js(r,t,l);return s.addDestroyFunc(()=>{c(),this.setRowAutoHeight(o,void 0,n)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:s}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(s).filter(o=>o.isAutoHeight())),t.length!==0){if(!s.__autoHeights)return!1;for(const i of t){const o=s.__autoHeights[i.getColId()];if(!o||s.rowHeight<o)return!1}}return!0}},gA={moduleName:"RowAutoHeight",version:ee,beans:[pA]},fA={moduleName:"AllCommunity",version:ee,dependsOn:[p6,x6,M6,o4,gM,fM,mM,vM,CM,wM,bM,pM,rk,ak,lk,nk,dk,uk,q6,UM,hI,yv,yI,SI,MI,NI,$E,jI,OM,xT,JI,nA,eA,uA,RT,z6,uC,hA,gA,UE,g6,XI]};function ce(e,t={}){const s=Object.keys(t).map(i=>{const o=t[i];return o!=null?`${i}=${o}`:null}).filter(Boolean).join(";");return[e,s].filter(i=>i.length>0).join(":")}var oe={grid(e){return ce("ag-grid-root",{gridId:e})},headerGroupCell(e){return ce("ag-header-group-cell",{colId:e})},headerCell(e){return ce("ag-header-cell",{colId:e})},headerCheckbox(e){return ce("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return ce("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return ce("ag-floating-filter",{colId:e})},floatingFilterButton(e){return ce("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return ce("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return ce("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return ce(`ag-${e.source}-picker-display`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},numberFilterInstanceInput(e){return ce(`ag-${e.source}-number-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},textFilterInstanceInput(e){return ce(`ag-${e.source}-text-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},dateFilterInstanceInput(e){return ce(`ag-${e.source}-date-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceMiniFilterInput(e){return ce(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return ce(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return ce(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return ce(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return ce("ag-advanced-filter-input")},advancedFilterButton(e){return ce("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return ce("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return ce("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return ce("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return ce("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return ce("ag-advanced-filter-builder-add-item-button")},rowNode(e){return ce("ag-row",{"row-id":e})},cell(e,t){return ce("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return oe.cell(e,si)},checkbox(e,t){return ce("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return oe.checkbox(e,Du)},autoGroupColumnCheckbox(e){return oe.checkbox(e,si)},dragHandle(e,t){return ce("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return ce("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return ce("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return oe.groupContracted(e,si)},autoGroupExpanded(e){return oe.groupExpanded(e,si)},rowNumber(e){return oe.cell(e,Pu)},menu(){return ce("ag-menu")},menuOption(e){return ce("ag-menu-option",{option:e})},sideBar(){return ce("ag-side-bar")},sideBarButton(e){return ce("ag-side-button",{label:e})},columnToolPanel(){return ce("ag-column-panel")},pivotModeSelect(){return ce("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return ce("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return ce("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return ce("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return ce("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return ce("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,s){return ce("ag-column-drop-cell-drag-handle",{source:e,area:t,label:s})},columnDropCellCancelButton(e,t,s){return ce("ag-column-drop-cell-cancel",{source:e,area:t,label:s})},columnDropArea(e,t){return ce("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return ce("ag-filter-panel")},filterToolPanelAddFilterButton(){return ce("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return ce("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return ce("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return ce("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return ce("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return ce("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return ce("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return ce("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return ce("ag-status-bar-selected-row-count")},statusBarAggregations(){return ce("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return ce("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return ce("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return ce("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return ce("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return ce("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return ce("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return ce("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return ce("ag-fill-handle")},columnChooserCloseButton(){return ce("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return ce("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return ce("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return ce("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return ce("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return ce("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return ce("ag-overlay")}},PC="data-testid";function ue(e,t){e?.setAttribute(PC,t)}function mA(e){PC=e}var vA=class extends O{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=ut(this,()=>this.setupAllTestIds(),500),t=ut(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){const e=rs(this.beans),t=pv(this.beans),s=e.querySelector(`[grid-id="${t}"]`);ue(s,oe.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(n=>{ue(n,oe.headerGroupCell(n.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(n=>{const r=n.getAttribute("col-id"),l=n.classList.contains("ag-floating-filter")?oe.floatingFilter(r):oe.headerCell(r);ue(n,l),ue(n.querySelector(".ag-header-cell-filter-button"),oe.headerFilterButton(r)),ue(n.querySelector(".ag-header-cell-menu-button"),oe.headerCellMenuButton(r)),ue(n.querySelector(".ag-header-cell-resize"),oe.headerResizeHandle(r)),ue(n.querySelector(".ag-checkbox input[type=checkbox]"),oe.headerCheckbox(r)),ue(n.querySelector(".ag-floating-filter-button button"),oe.floatingFilterButton(r)),this.setupFilterInstance(n.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:r})});const i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),ue(e.querySelector(".ag-advanced-filter input[type=text]"),oe.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(n=>{ue(n,oe.advancedFilterButton(n.textContent))}),ue(e.querySelector("button.ag-advanced-filter-builder-button"),oe.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((n,r)=>{ue(n,r===0?oe.advancedFilterPanelMaximiseButton():oe.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(n=>{ue(n,oe.advancedFilterPill(n.querySelector(".ag-picker-field-display")?.textContent))}),ue(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),oe.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(n=>{const r=n.getAttribute("row-id");ue(n,oe.rowNode(r)),n.querySelectorAll(".ag-cell").forEach(a=>{const l=a.getAttribute("col-id");ue(a,oe.cell(r,l)),ue(a.querySelector(".ag-selection-checkbox input[type=checkbox]"),oe.checkbox(r,l)),ue(a.querySelector(".ag-drag-handle"),oe.dragHandle(r,l)),ue(a.querySelector(".ag-group-contracted"),oe.groupContracted(r,l)),ue(a.querySelector(".ag-group-expanded"),oe.groupExpanded(r,l))})}),e.querySelectorAll(".ag-menu-list").forEach(n=>{ue(n,oe.menu()),n.querySelectorAll(".ag-menu-option").forEach(r=>{ue(r,oe.menuOption(r.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(n=>{ue(n,oe.sideBar()),n.querySelectorAll(".ag-side-button button").forEach(r=>{ue(r,oe.sideBarButton(r.querySelector(".ag-side-button-label")?.textContent))}),n.querySelectorAll(".ag-column-panel").forEach(r=>{ue(r,oe.columnToolPanel()),ue(r.querySelector(".ag-pivot-mode-select input[type=checkbox]"),oe.pivotModeSelect()),ue(r.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),oe.columnPanelSelectHeaderCheckbox()),ue(r.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),oe.columnPanelSelectHeaderFilter()),r.querySelectorAll(".ag-column-select-list").forEach(a=>{a.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");ue(l.querySelector(".ag-column-group-closed-icon"),oe.columnSelectListItemGroupClosedIcon(c)),ue(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),oe.columnSelectListItemCheckbox(c)),ue(l.querySelector(".ag-drag-handle"),oe.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(r,"toolbar")}),n.querySelectorAll(".ag-filter-panel").forEach(r=>{ue(r,oe.filterToolPanel()),ue(r.querySelector("button.ag-filter-add-button"),oe.filterToolPanelAddFilterButton()),r.querySelectorAll(".ag-filter-card").forEach(a=>{const l=a.querySelector(".ag-filter-card-title")?.textContent,c=a.querySelector(".ag-filter-type-select");ue(c,oe.filterToolPanelFilterTypeSelector(l)),a.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),n.querySelectorAll(".ag-filter-toolpanel").forEach(r=>{ue(r.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),oe.filterToolPanelSearchInput()),r.querySelectorAll(".ag-filter-toolpanel-group").forEach(a=>{const l=a.querySelector(".ag-filter-toolpanel-group-title")?.textContent;ue(a,oe.filterToolPanelGroup(l)),ue(a.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),oe.filterToolPanelGroupCollapsedIcon(l));const c=a.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),ue(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),oe.statusBarTotalAndFilteredRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),oe.statusBarTotalRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),oe.statusBarFilteredRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),oe.statusBarSelectedRowCount()),ue(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),oe.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(n=>{ue(n.querySelector(".ag-paging-page-size .ag-picker-field-display"),oe.paginationPanelSizePickerDisplay(n.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),n.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbFirstRowOnPage":ue(r,oe.paginationPanelFirstRowOnPage(r.textContent));break;case"lbLastRowOnPage":ue(r,oe.paginationPanelLastRowOnPage(r.textContent));break;case"lbRecordCount":ue(r,oe.paginationPanelRecordCount(r.textContent));break}}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(r=>{ue(r,oe.paginationSummaryPanelButton(r.getAttribute("aria-label")?.toLowerCase()))}),n.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbCurrent":ue(r,oe.paginationSummaryPanelCurrentPage(r.textContent));break;case"lbTotal":ue(r,oe.paginationSummaryPanelTotalPage(r.textContent));break}})}),ue(e.querySelector(".ag-fill-handle"),oe.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(n=>{ue(n.querySelector(".ag-panel-title-bar-button-icon"),oe.columnChooserCloseButton()),ue(n.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),oe.columnChooserSearchBarCheckbox()),ue(n.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),oe.columnChooserSearchBarFilter()),n.querySelectorAll(".ag-column-select-list").forEach(r=>{r.querySelectorAll(".ag-column-select-virtual-list-item").forEach(a=>{const l=a.getAttribute("aria-label");ue(a.querySelector(".ag-column-group-closed-icon"),oe.columnChooserListItemGroupClosedIcon(l)),ue(a.querySelector(".ag-column-select-checkbox input[type=checkbox]"),oe.columnChooserListItemCheckbox(l)),ue(a.querySelector(".ag-drag-handle"),oe.columnChooserListItemDragHandle(l))})})}),ue(e.querySelector(".ag-overlay-wrapper"),oe.overlay());const o=e.querySelector(".ag-column-drop-wrapper");o&&this.setupColumnDropArea(o,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(r=>{ue(r,oe.filterInstancePickerDisplay(t))});const s=e.querySelector('.ag-filter-body input[type="number"]');ue(s,oe.numberFilterInstanceInput(t));const i=e.querySelector('.ag-filter-body input[type="text"]');ue(i,oe.textFilterInstanceInput(t));const o=e.querySelector('.ag-filter-body input[type="date"]');ue(o,oe.dateFilterInstanceInput(t));const n=e.querySelector('.ag-mini-filter input[type="text"]');ue(n,oe.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(r=>{const a=r.querySelector(".ag-checkbox-label")?.textContent,l=r.querySelector('input[type="checkbox"]');ue(l,oe.setFilterInstanceItem(t,a))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(r=>{ue(r,oe.setFilterApplyPanelButton(t,r.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(r=>{const a=r.querySelector(".ag-radio-button-label")?.textContent;ue(r.querySelector("input[type=radio]"),oe.filterConditionRadioButton(t,a))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(s=>{const i=s.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");ue(s,oe.columnDropArea(t,i)),s.querySelectorAll(".ag-column-drop-cell").forEach(o=>{const n=o.querySelector(".ag-column-drop-cell-text")?.textContent;ue(o.querySelector(".ag-drag-handle"),oe.columnDropCellDragHandle(t,i,n)),ue(o.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),oe.columnDropCellCancelButton(t,i,n))})})}},CA={moduleName:"Testing",version:ee,beans:[vA]};function wA({testIdAttribute:e}={}){e&&mA(e),qf.registerModules([CA])}var yt=p.createContext({}),TC=p.createContext("default"),Cr=(e,t,s,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const n=e.newAgStackInstance();let r,a,l=!1;return n.then(c=>{if(l){t.destroyBean(c);return}r=c,a=r.getGui(),s.appendChild(a),yg(i,r)}),()=>{l=!0,r&&(a?.remove(),t.destroyBean(r),i&&yg(i,void 0))}},yg=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const s=e;s.current=t}},Yt=(...e)=>e.filter(s=>s!=null&&s!=="").join(" "),es=class kC{constructor(...t){this.classesMap={};for(const s of t)this.classesMap[s]=!0}setClass(t,s){if(!!this.classesMap[t]==s)return this;const o=new kC;return o.classesMap={...this.classesMap},o.classesMap[t]=s,o}toString(){return Object.keys(this.classesMap).filter(s=>this.classesMap[s]).join(" ")}},tn=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,s=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===s()},Jd=p.version?.split(".")[0],MC=Jd==="16"||Jd==="17";function bA(){return Jd==="19"}var ka=!1;function xA(e){return ka||setTimeout(()=>ka=!1,0),ka=!0,e()}var rr=(e,t)=>{!MC&&e&&!ka?Ko.flushSync(t):t()},yA=e=>{MC?e():p.startTransition(e)};function SA(e,t,s){return p.useSyncExternalStore?p.useSyncExternalStore(e,t):s}function il(e,t,s){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(s||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const i=[],o=[],n=new Map,r=new Map;for(let a=0;a<t.length;a++){const l=t[a];r.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];n.set(l.instanceId,l),r.has(l.instanceId)&&i.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;n.has(c)||o.push(l)}return i.length===e.length&&o.length===0?e:i.length===0&&o.length===t.length?t:i.length===0?o:o.length===0?i:[...i,...o]}var IC=p.forwardRef((e,t)=>{const{registry:s,context:i}=p.useContext(yt),o=p.useRef(null),n=p.useRef(null),r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(),[d,u]=p.useState(),[h,g]=p.useState(),[f,v]=p.useState(),[C,w]=p.useState(()=>new es),[b,x]=p.useState(()=>new es("ag-hidden")),[y,S]=p.useState(()=>new es("ag-hidden")),[E,R]=p.useState(()=>new es("ag-invisible"));p.useImperativeHandle(t,()=>({refresh(){return!1}})),p.useLayoutEffect(()=>Cr(d,i,n.current),[d]);const F=p.useCallback(H=>{if(o.current=H,!H||i.isDestroyed()){c.current=i.destroyBean(c.current);return}const A={setInnerRenderer:(k,B)=>{u(k),v(B)},setChildCount:k=>g(k),toggleCss:(k,B)=>w(U=>U.setClass(k,B)),setContractedDisplayed:k=>S(B=>B.setClass("ag-hidden",!k)),setExpandedDisplayed:k=>x(B=>B.setClass("ag-hidden",!k)),setCheckboxVisible:k=>R(B=>B.setClass("ag-invisible",!k)),setCheckboxSpacing:k=>R(B=>B.setClass("ag-group-checkbox-spacing",k))},de=s.createDynamicBean("groupCellRendererCtrl",!0);de&&(c.current=i.createBean(de),c.current.init(A,H,r.current,a.current,l.current,IC,e))},[]),D=p.useMemo(()=>`ag-cell-wrapper ${C.toString()}`,[C]),P=p.useMemo(()=>`ag-group-expanded ${b.toString()}`,[b]),T=p.useMemo(()=>`ag-group-contracted ${y.toString()}`,[y]),M=p.useMemo(()=>`ag-group-checkbox ${E.toString()}`,[E]),N=d?.componentFromFramework,q=N?d.componentClass:void 0,L=d==null&&f!=null,V=Qo(f);return p.createElement("span",{className:D,ref:F,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},p.createElement("span",{className:P,ref:a}),p.createElement("span",{className:T,ref:l}),p.createElement("span",{className:M,ref:r}),p.createElement("span",{className:"ag-group-value",ref:n},L?V:N?p.createElement(q,{...d.params}):null),p.createElement("span",{className:"ag-group-child-count"},h))}),Sg=IC,lh=p.createContext({setMethods:()=>{}}),RA=e=>{const{initialProps:t,addUpdateCallback:s,CustomComponentClass:i,setMethods:o}=e,[{key:n,...r},a]=p.useState(t);return p.useEffect(()=>{s(l=>a(l))},[]),p.createElement(lh.Provider,{value:{setMethods:o}},p.createElement(i,{key:n,...r}))},FA=p.memo(RA),EA=0;function Rg(){return`agPortalKey_${++EA}`}var AC=class{constructor(e,t,s,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=s,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Rg(),this.portalKey=Rg(),this.instanceCreated=this.isStatelessComponent()?Le.resolve(!1):new Le(o=>{this.resolveInstanceCreated=o})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),s=document.createElement(t||"div");return s.classList.add("ag-react-container"),e.reactContainer=s,s}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const s=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!s){setTimeout(()=>this.callMethod(e,t));return}const i=s[e];if(i)return i.apply(s,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Le(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Ko.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return p.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const s=this[`${e}Component`];if(!this.suppressFallbackMethods&&s)return s.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function Dl(e,t,s){for(const i of e){const o=t[i];o&&(s[i]=o)}}var Ut=class extends AC{constructor(){super(...arguments),this.awaitUpdateCallback=new Le(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=FA}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:s=>this.setMethods(s),addUpdateCallback:s=>{this.updateCallback=()=>(s(this.getProps()),new Le(i=>{setTimeout(()=>{i()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,Dl(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Le(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},DA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},PA=class extends Ut{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},TA=class extends Ut{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:s,shake:i}=this;return e.label=t,e.icon=s,e.shake=i,e}},kA=class extends Ut{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Le(s=>{this.resolveFilterPassCallback=s});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},MA=class extends Ut{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function LC(e,t){e.parentFilterInstance(s=>{(s.setModel(t)||Le.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var IA=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=s=>this.updateModel(s)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),LC(this.floatingFilterParams,e)}},AA=class extends Ut{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),LC(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},LA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},OA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},NA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}},HA=class extends Ut{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},GA=class extends Ut{refresh(e){this.sourceParams=e,this.refreshProps()}},BA=class extends Ut{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},VA=class extends Ut{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function ch(){$(231)}var zA=1e3,WA=class{constructor(e,t,s){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=s||zA}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,s){this.portals=[...this.portals,e],this.waitForInstance(t,s),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,s=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-s>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){rr(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,s)})}}},jA=({ctrl:e})=>{const t=e.isAlive(),{context:s}=p.useContext(yt),[i,o]=p.useState(),[n,r]=p.useState(),a=p.useRef(),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=p.useRef();t&&!h.current&&(h.current=new pr(()=>l.current));const g=p.useCallback(w=>{if(l.current=w,!w||!e.isAlive()||s.isDestroyed()){a.current=s.destroyBean(a.current);return}a.current=s.createBean(new Jo);const b=()=>{const y=e.getSelectAllGui();y&&(c.current?.insertAdjacentElement("afterend",y),a.current.addDestroyFunc(()=>y.remove()))},x={setWidth:y=>{l.current&&(l.current.style.width=y)},toggleCss:(y,S)=>h.current.toggleCss(y,S),setUserStyles:y=>r(y),setAriaSort:y=>{l.current&&(y?_0(l.current,y):U0(l.current))},setUserCompDetails:y=>o(y),getUserCompInstance:()=>u.current||void 0,refreshSelectAllGui:b,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(x,w,c.current,d.current,a.current),b()},[]);p.useLayoutEffect(()=>Cr(i,s,d.current,u),[i]),p.useEffect(()=>{e.setDragSource(l.current)},[i]);const f=p.useMemo(()=>!!(i?.componentFromFramework&&tn(i.componentClass)),[i]),v=i?.componentFromFramework,C=i?.componentClass;return p.createElement("div",{ref:g,style:n,className:"ag-header-cell",role:"columnheader"},p.createElement("div",{ref:c,className:"ag-header-cell-resize",role:"presentation"}),p.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?f?p.createElement(C,{...i.params}):p.createElement(C,{...i.params,ref:u}):null))},_A=p.memo(jA),UA=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},$A=({ctrl:e})=>{const{context:t,gos:s}=p.useContext(yt),[i,o]=p.useState(),[n,r]=p.useState(()=>new es("ag-header-cell","ag-floating-filter")),[a,l]=p.useState(()=>new es),[c,d]=p.useState(()=>new es("ag-floating-filter-button","ag-hidden")),[u,h]=p.useState("false"),[g,f]=p.useState(),[,v]=p.useState(1),C=p.useRef(),w=p.useRef(null),b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=p.useRef(),E=p.useRef(),R=k=>{k!=null&&S.current&&S.current(k)},F=p.useCallback(k=>{if(w.current=k,!k||!e.isAlive()||t.isDestroyed()){C.current=t.destroyBean(C.current);return}C.current=t.createBean(new Jo),E.current=new Le(U=>{S.current=U});const B={toggleCss:(U,W)=>r(re=>re.setClass(U,W)),setUserStyles:U=>o(U),addOrRemoveBodyCssClass:(U,W)=>l(re=>re.setClass(U,W)),setButtonWrapperDisplayed:U=>{d(W=>W.setClass("ag-hidden",!U)),h(U?"false":"true")},setWidth:U=>{w.current&&(w.current.style.width=U)},setCompDetails:U=>f(U),getFloatingFilterComp:()=>E.current?E.current:null,setMenuIcon:U=>y.current?.appendChild(U)};e.setComp(B,k,y.current,b.current,C.current)},[]);p.useLayoutEffect(()=>Cr(g,t,b.current,R),[g]);const D=p.useMemo(()=>n.toString(),[n]),P=p.useMemo(()=>a.toString(),[a]),T=p.useMemo(()=>c.toString(),[c]),M=p.useMemo(()=>!!(g&&g.componentFromFramework&&tn(g.componentClass)),[g]),N=p.useMemo(()=>s.get("reactiveCustomComponents"),[]),q=p.useMemo(()=>s.get("enableFilterHandlers"),[]),[L,V]=p.useState();p.useEffect(()=>{if(g?.componentFromFramework)if(N){const k=q?UA:IA,B=new k(g.params,()=>v(U=>U+1));R(B),V(B)}else ch()},[g]);const H=L?.getProps(),A=g?.componentFromFramework,de=g?.componentClass;return p.createElement("div",{ref:F,style:i,className:D,role:"gridcell"},p.createElement("div",{ref:b,className:P,role:"presentation"},A?N?H&&p.createElement(lh.Provider,{value:{setMethods:k=>L.setMethods(k)}},p.createElement(de,{...H})):p.createElement(de,{...g.params,ref:M?()=>{}:R}):null),p.createElement("div",{ref:x,"aria-hidden":u,className:T,role:"presentation"},p.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},qA=p.memo($A),KA=({ctrl:e})=>{const{context:t}=p.useContext(yt),[s,i]=p.useState(),[o,n]=p.useState(()=>new es),[r,a]=p.useState(()=>new es),[l,c]=p.useState("false"),[d,u]=p.useState(),[h,g]=p.useState(),f=p.useRef(),v=p.useRef(null),C=p.useRef(null),w=p.useRef(null),b=p.useRef(),x=p.useCallback(D=>{if(v.current=D,!D||!e.isAlive()||t.isDestroyed()){f.current=t.destroyBean(f.current);return}f.current=t.createBean(new Jo);const P={setWidth:T=>{v.current&&(v.current.style.width=T)},toggleCss:(T,M)=>n(N=>N.setClass(T,M)),setUserStyles:T=>i(T),setHeaderWrapperHidden:T=>{const M=w.current;M&&(T?M.style.setProperty("display","none"):M.style.removeProperty("display"))},setHeaderWrapperMaxHeight:T=>{const M=w.current;M&&(T!=null?M.style.setProperty("max-height",`${T}px`):M.style.removeProperty("max-height"),M.classList.toggle("ag-header-cell-comp-wrapper-limited-height",T!=null))},setUserCompDetails:T=>g(T),setResizableDisplayed:T=>{a(M=>M.setClass("ag-hidden",!T)),c(T?"false":"true")},setAriaExpanded:T=>u(T),getUserCompInstance:()=>b.current||void 0};e.setComp(P,D,C.current,w.current,f.current)},[]);p.useLayoutEffect(()=>Cr(h,t,w.current),[h]),p.useEffect(()=>{v.current&&e.setDragSource(v.current)},[h]);const y=p.useMemo(()=>!!(h?.componentFromFramework&&tn(h.componentClass)),[h]),S=p.useMemo(()=>"ag-header-group-cell "+o.toString(),[o]),E=p.useMemo(()=>"ag-header-cell-resize "+r.toString(),[r]),R=h?.componentFromFramework,F=h?.componentClass;return p.createElement("div",{ref:x,style:s,className:S,role:"columnheader","aria-expanded":d},p.createElement("div",{ref:w,className:"ag-header-cell-comp-wrapper",role:"presentation"},R?y?p.createElement(F,{...h.params}):p.createElement(F,{...h.params,ref:b}):null),p.createElement("div",{ref:C,"aria-hidden":l,className:E}))},YA=p.memo(KA),XA=({ctrl:e})=>{const{gos:t,context:s}=p.useContext(yt),{topOffset:i,rowHeight:o}=p.useMemo(()=>e.getTopAndHeight(),[]),n=p.useMemo(()=>t.get("tabIndex"),[]),[r,a]=p.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[c,d]=p.useState(()=>o+"px"),[u,h]=p.useState(()=>i+"px"),g=p.useRef(null),[f,v]=p.useState(()=>e.getUpdatedHeaderCtrls()),C=p.useRef(),w=p.useRef(null),b=p.useCallback(S=>{if(w.current=S,!S||!e.isAlive()||s.isDestroyed()){C.current=s.destroyBean(C.current);return}C.current=s.createBean(new Jo);const E={setHeight:R=>d(R),setTop:R=>h(R),setHeaderCtrls:(R,F,D)=>{const P=g.current,T=il(P,R,F);T!==P&&(g.current=T,rr(D,()=>v(T)))},setWidth:R=>{w.current&&(w.current.style.width=R)},setRowIndex:R=>{a(R)}};e.setComp(E,C.current,!1)},[]),x=p.useMemo(()=>({height:c,top:u}),[c,u]),y=p.useCallback(S=>{switch(e.type){case"group":return p.createElement(YA,{ctrl:S,key:S.instanceId});case"filter":return p.createElement(qA,{ctrl:S,key:S.instanceId});default:return p.createElement(_A,{ctrl:S,key:S.instanceId})}},[]);return p.createElement("div",{ref:b,className:l,role:"row",style:x,tabIndex:n,"aria-rowindex":r},f.map(y))},ZA=p.memo(XA),QA=({pinned:e})=>{const[t,s]=p.useState(!0),[i,o]=p.useState([]),{context:n}=p.useContext(yt),r=p.useRef(null),a=p.useRef(null),l=p.useRef(),c=e==="left",d=e==="right",u=!c&&!d,h=p.useCallback(v=>{if(r.current=v,!v||n.isDestroyed()){l.current=n.destroyBean(l.current);return}l.current=n.createBean(new TF(e));const C={setDisplayed:s,setCtrls:w=>o(w),setCenterWidth:w=>{a.current&&(a.current.style.width=w)},setViewportScrollLeft:w=>{r.current&&(r.current.scrollLeft=w)},setPinnedContainerWidth:w=>{r.current&&(r.current.style.width=w,r.current.style.minWidth=w,r.current.style.maxWidth=w)}};l.current.setComp(C,r.current)},[]),g=t?"":"ag-hidden",f=()=>i.map(v=>p.createElement(ZA,{ctrl:v,key:v.instanceId}));return c?p.createElement("div",{ref:h,className:"ag-pinned-left-header "+g,"aria-hidden":!t,role:"rowgroup"},f()):d?p.createElement("div",{ref:h,className:"ag-pinned-right-header "+g,"aria-hidden":!t,role:"rowgroup"},f()):u?p.createElement("div",{ref:h,className:"ag-header-viewport "+g,role:"rowgroup",tabIndex:-1},p.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},f())):null},Uc=p.memo(QA),JA=()=>{const[e,t]=p.useState(()=>new es),[s,i]=p.useState(),{context:o}=p.useContext(yt),n=p.useRef(null),r=p.useRef(),a=p.useCallback(d=>{if(n.current=d,!d||o.isDestroyed()){r.current=o.destroyBean(r.current);return}r.current=o.createBean(new FF);const u={toggleCss:(h,g)=>t(f=>f.setClass(h,g)),setHeightAndMinHeight:h=>i(h)};r.current.setComp(u,d,d)},[]),l=p.useMemo(()=>"ag-header "+e.toString(),[e]),c=p.useMemo(()=>({height:s,minHeight:s}),[s]);return p.createElement("div",{ref:a,className:l,style:c,role:"presentation"},p.createElement(Uc,{pinned:"left"}),p.createElement(Uc,{pinned:null}),p.createElement(Uc,{pinned:"right"}))},e8=p.memo(JA),t8=(e,t)=>{p.useEffect(()=>{const s=t.current;if(s){const i=s.parentElement;if(i){const o=document.createComment(e);return i.insertBefore(o,s),()=>{o.remove()}}}},[e])},yi=t8,s8=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Le(s=>{this.resolveInstanceCreated=s}),this.onValueChange=s=>this.updateValue(s),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){Dl(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},i8=e=>{const t=p.useRef(e),s=p.useRef(),i=p.useRef(!1),o=p.useRef(!1),[,n]=p.useState(0);i.current&&(o.current=!0),p.useEffect(()=>(i.current||(s.current=t.current(),i.current=!0),n(r=>r+1),()=>{o.current&&s.current?.()}),[])},o8=e=>{const[t,s]=p.useState(),i=p.useContext(yt),{context:o,popupSvc:n,gos:r,editSvc:a}=i,{editDetails:l,cellCtrl:c,eParentCell:d}=e;return i8(()=>{const{compDetails:u}=l,h=r.get("stopEditingWhenCellsLoseFocus");let g,f;if(!o.isDestroyed()){f=o.createBean(a.createPopupEditorWrapper(u.params));const v=f.getGui();if(e.jsChildComp){const S=e.jsChildComp.getGui();S&&v.appendChild(S)}const{column:C,rowNode:w}=c,b={column:C,rowNode:w,type:"popupCellEditor",eventSource:d,ePopup:v,position:l.popupPosition,keepWithinBounds:!0},x=n?.positionPopupByComponent.bind(n,b),y=n?.addPopup({modal:h,eChild:v,closeOnEsc:!0,closedCallback:()=>{c.onPopupEditorClosed()},anchorToElement:d,positionCallback:x,ariaOwns:d});g=y?y.hideFunc:void 0,s(f),e.jsChildComp?.afterGuiAttached?.()}return()=>{g?.(),o.destroyBean(f)}}),p.useLayoutEffect(()=>()=>{c.isCellFocused()&&t?.getGui().contains(Je(i))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Ko.createPortal(e.wrappedContent,t.getGui()):null},Fg=p.memo(o8),n8=(e,t,s)=>{const{compProxy:i}=e;s(i);const o=i.getProps(),n=tn(t);return p.createElement(lh.Provider,{value:{setMethods:r=>i.setMethods(r)}},n?p.createElement(t,{...o}):p.createElement(t,{...o,ref:r=>i.setRef(r)}))},Eg=(e,t,s)=>e.compProxy?n8(e,t,s):p.createElement(t,{...e.compDetails.params,ref:s}),r8=(e,t,s,i,o)=>{const n=e.compDetails,r=n.componentClass,a=n.componentFromFramework&&!e.popup,l=n.componentFromFramework&&e.popup,c=!n.componentFromFramework&&e.popup;return a?Eg(e,r,t):l?p.createElement(Fg,{editDetails:e,cellCtrl:i,eParentCell:s,wrappedContent:Eg(e,r,t)}):c&&o?p.createElement(Fg,{editDetails:e,cellCtrl:i,eParentCell:s,jsChildComp:o}):null},a8=(e,t,s,i,o,n)=>{const{context:r}=p.useContext(yt),a=p.useCallback(()=>{const l=o.current;if(!l)return;const c=l.getGui();c&&c.parentElement&&c.remove(),r.destroyBean(l),o.current=void 0},[]);p.useEffect(()=>{const l=e!=null,c=e?.compDetails&&!e.compDetails.componentFromFramework,d=t&&s==null;if(!(l&&c&&!d)){a();return}const h=e.compDetails;if(o.current){const f=o.current,C=f.refresh!=null&&e.force==!1?f.refresh(h.params):!1;if(C===!0||C===void 0)return;a()}h.newAgStackInstance().then(f=>{if(!f)return;const v=f.getGui();if(!v)return;(t?s:n.current).appendChild(v),o.current=f})},[e,t,i]),p.useEffect(()=>a,[])},OC=a8,l8=({cellCtrl:e,parent:t})=>{const s=p.useRef(),i=p.useMemo(()=>{const{loadingComp:o}=e.getDeferLoadingCellRenderer();return o?{value:void 0,compDetails:o,force:!1}:void 0},[e]);if(OC(i,!1,void 0,1,s,t),i?.compDetails?.componentFromFramework){const o=i.compDetails.componentClass;return p.createElement(o,{...i.compDetails.params})}return p.createElement(p.Fragment,null)},c8=({cellCtrl:e,printLayout:t,editingCell:s})=>{const i=p.useContext(yt),{context:o}=i,{column:{colIdSanitised:n},instanceId:r}=e,a=p.useRef(),[l,c]=p.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,u]=p.useState(),[h,g]=p.useState(1),[f,v]=p.useState(),[C,w]=p.useState(!1),[b,x]=p.useState(!1),[y,S]=p.useState(!1),[E,R]=p.useState(),F=p.useMemo(()=>e.isForceWrapper(),[e]),D=p.useMemo(()=>e.getCellAriaRole(),[e]),P=p.useRef(null),T=p.useRef(null),M=p.useRef(null),N=p.useRef(),q=p.useRef(),L=p.useRef(),V=p.useRef([]),H=p.useRef(),A=p.useRef(),[de,k]=p.useState(0),B=p.useCallback(se=>{A.current=se,k(le=>le+1)},[]),U=l!=null&&(C||y||b)&&(d==null||!!d.popup),W=F||U,re=p.useMemo(()=>e.getCellValueClass(),[e]),be=p.useCallback(se=>{if(q.current=se,se){const le=se.isCancelBeforeStart&&se.isCancelBeforeStart();setTimeout(()=>{le?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(se))})}},[e]),Q=p.useRef();Q.current||(Q.current=new pr(()=>P.current)),OC(l,W,A.current,de,N,P);const j=p.useRef();p.useLayoutEffect(()=>{const se=j.current,le=l;if(j.current=l,se==null||se.compDetails==null||le==null||le.compDetails==null)return;H.current?.refreshVisibility();const Fe=se.compDetails,Oe=le.compDetails;if(Fe.componentClass!=Oe.componentClass||M.current?.refresh==null)return;M.current.refresh(Oe.params)!=!0&&g(Ee=>Ee+1)},[l]),p.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||o.isDestroyed())return;const le=d.compDetails,Fe=d.popup===!0,Oe=le.newAgStackInstance();return Oe.then(Ce=>{if(!Ce)return;const Ee=Ce.getGui();be(Ce),Fe||((F?L:P).current?.appendChild(Ee),Ce.afterGuiAttached?.()),R(Ce)}),()=>{Oe.then(Ce=>{const Ee=Ce.getGui();e.disableEditorTooltipFeature(),o.destroyBean(Ce),be(void 0),R(void 0),Ee?.remove()})}},[d]);const ge=p.useCallback(se=>{if(L.current=se,!se||o.isDestroyed()||!e.isAlive()){const Oe=V.current;V.current=[];for(const Ce of Oe)Ce();return}let le;const Fe=Oe=>{Oe&&(se.insertAdjacentElement("afterbegin",Oe.getGui()),V.current.push(()=>{ni(Oe.getGui()),o.destroyBean(Oe),H.current===le&&(H.current=void 0)}))};C&&Fe(e.createSelectionCheckbox()),y&&Fe(e.createDndSource()),b&&(le=e.createRowDragComp(),H.current=le,le&&(Fe(le),le.refreshVisibility()))},[e,o,y,b,C]),ie=p.useCallback(()=>{const se=!e.isCellSpanning()||T.current,le=P.current;if(!le||!se||!e||!e.isAlive()||o.isDestroyed()){a.current=o.destroyBean(a.current);return}a.current=o.createBean(new Jo);const Fe={toggleCss:(Ce,Ee)=>Q.current.toggleCss(Ce,Ee),setUserStyles:Ce=>v(Ce),getFocusableElement:()=>P.current,setIncludeSelection:Ce=>w(Ce),setIncludeRowDrag:Ce=>x(Ce),setIncludeDndSource:Ce=>S(Ce),getCellEditor:()=>q.current??null,getCellRenderer:()=>M.current??N.current,getParentOfValue:()=>A.current??L.current??P.current,setRenderDetails:(Ce,Ee,je)=>{const _e=()=>{c(Ae=>Ae?.compDetails!==Ce||Ae?.value!==Ee||Ae?.force!==je?{value:Ee,compDetails:Ce,force:je}:Ae)};if(Ce?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Ae,onReady:Tt}=e.getDeferLoadingCellRenderer();if(Ae){c({value:void 0,compDetails:Ae,force:!1}),Tt.then(()=>yA(_e));return}}_e()},setEditDetails:(Ce,Ee,je,_e)=>{if(Ce){let Ae;Ce.componentFromFramework&&(_e?Ae=new s8(Ce.params,()=>g(Tt=>Tt+1)):ch()),u({compDetails:Ce,popup:Ee,popupPosition:je,compProxy:Ae}),Ee||c(void 0)}else e.hasBrowserFocus()&&Fe.getFocusableElement().focus({preventScroll:!0}),q.current=void 0,u(void 0)},refreshEditStyles:(Ce,Ee)=>{if(!P.current)return;const{current:je}=Q;je.toggleCss("ag-cell-value",!W),je.toggleCss("ag-cell-inline-editing",!!Ce&&!Ee),je.toggleCss("ag-cell-popup-editing",!!Ce&&!!Ee),je.toggleCss("ag-cell-not-inline-editing",!Ce||!!Ee)}},Oe=L.current||void 0;e.setComp(Fe,le,T.current??void 0,Oe,t,s,a.current)},[]),Z=p.useCallback(se=>{P.current=se,ie()},[]),_=p.useCallback(se=>{T.current=se,ie()},[]),ae=p.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&tn(l.compDetails.componentClass)),[l]);p.useLayoutEffect(()=>{if(!P.current)return;const{current:se}=Q;se.toggleCss("ag-cell-value",!W),se.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),se.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),se.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const G=()=>{const{compDetails:se,value:le}=l;if(!se)return le?.toString?.()??le;if(se.componentFromFramework){const Fe=se.componentClass;return p.createElement(p.Suspense,{fallback:p.createElement(l8,{cellCtrl:e,parent:P})},ae?p.createElement(Fe,{...se.params,key:h}):p.createElement(Fe,{...se.params,key:h,ref:M}))}},fe=()=>{const se=()=>l==null?null:W?p.createElement("span",{role:"presentation",id:`cell-${r}`,className:re,ref:B},G()):G(),le=Fe=>r8(Fe,be,P.current,e,E);return d!=null?d.popup?p.createElement(p.Fragment,null,se(),le(d)):le(d):se()},he=()=>p.createElement("div",{ref:Z,style:f,role:D,"col-id":n},W?p.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ge},fe()):fe());return e.isCellSpanning()?p.createElement("div",{ref:_,className:"ag-spanned-cell-wrapper",role:"presentation"},he()):he()},d8=p.memo(c8),u8=({rowCtrl:e,containerType:t})=>{const{context:s,gos:i,editSvc:o}=p.useContext(yt),n=p.useContext(TC)==="default",r=p.useRef(),a=p.useRef(e.getDomOrder()),l=e.isFullWidth(),c=e.rowNode.displayed,[d,u]=p.useState(()=>c?e.rowNode.getRowIndexString():null),[h,g]=p.useState(()=>e.rowId),[f,v]=p.useState(()=>e.businessKey),[C,w]=p.useState(()=>e.rowStyles),b=p.useRef(null),[x,y]=p.useState(()=>null),[S,E]=p.useState(),[R,F]=p.useState(()=>c?e.getInitialRowTop(t):void 0),[D,P]=p.useState(()=>c?e.getInitialTransform(t):void 0),T=p.useRef(null),M=p.useRef(),N=p.useRef(),q=p.useRef(!1),[L,V]=p.useState(0);p.useEffect(()=>{if(q.current||!S||L>10)return;const Z=T.current?.firstChild;Z?(e.setupDetailRowAutoHeight(Z),q.current=!0):V(_=>_+1)},[S,L]);const H=p.useRef();H.current||(H.current=new pr(()=>T.current));const A=p.useRef(()=>{}),de=p.useCallback(Z=>(A.current=Z,()=>{A.current=()=>{}}),[]),k=SA(de,()=>b.current,[]),B=n?k:x,U=p.useCallback(Z=>{if(T.current=Z,r.current=Z?s.createBean(new Jo):s.destroyBean(r.current),!Z){e.unsetComp(t);return}if(!e.isAlive()||s.isDestroyed())return;const _={setTop:F,setTransform:P,toggleCss:(ae,G)=>H.current.toggleCss(ae,G),setDomOrder:ae=>a.current=ae,setRowIndex:u,setRowId:g,setRowBusinessKey:v,setUserStyles:w,setCellCtrls:(ae,G)=>{const fe=b.current,he=il(fe,ae,a.current);he!==fe&&(b.current=he,n?A.current():rr(G,()=>y(he)))},showFullWidth:ae=>{N.current=ae.params,E(ae)},getFullWidthCellRenderer:()=>M.current,getFullWidthCellRendererParams:()=>N.current,refreshFullWidth:ae=>{const G=ae();return N.current=G,j.current?(E(fe=>({...fe,params:G})),!0):!M.current||!M.current.refresh?!1:M.current.refresh(G)}};e.setComp(_,Z,t,r.current)},[]);p.useLayoutEffect(()=>Cr(S,s,T.current,M),[S]);const W=p.useMemo(()=>{const Z={top:R,transform:D};return Object.assign(Z,C),Z},[R,D,C]),re=l&&S?.componentFromFramework,be=!l&&B!=null,Q=p.useMemo(()=>!!(S?.componentFromFramework&&tn(S.componentClass)),[S]),j=p.useRef(!1);p.useEffect(()=>{j.current=Q&&!!S&&!!i.get("reactiveCustomComponents")},[Q,S]);const ge=()=>B?.map(Z=>p.createElement(d8,{cellCtrl:Z,editingCell:o?.isEditing(Z,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:Z.instanceId})),ie=()=>{const Z=S.componentClass;return Q?p.createElement(Z,{...S.params}):p.createElement(Z,{...S.params,ref:M})};return p.createElement("div",{ref:U,role:"row",style:W,"row-index":d,"row-id":h,"row-business-key":f},be?ge():re?ie():null)},Dg=p.memo(u8),h8=({name:e})=>{const{context:t,gos:s}=p.useContext(yt),i=p.useMemo(()=>fr(e),[e]),o=p.useRef(null),n=p.useRef(null),r=p.useRef(null),a=p.useRef([]),l=p.useRef([]),[c,d]=p.useState(()=>[]),u=!!s.get("enableCellSpan")&&!!i.getSpannedRowCtrls,h=p.useRef([]),g=p.useRef([]),[f,v]=p.useState(()=>[]),C=p.useRef(!1),w=p.useRef(),b=p.useMemo(()=>Yt("ag-viewport",Qm(e)),[e]),x=p.useMemo(()=>Yt(Fa(e)),[e]),y=p.useMemo(()=>Yt("ag-spanning-container",Y2(e)),[e]),S=i.type==="center"||u,E=S?o:n;yi(" AG Row Container "+e+" ",E);const R=p.useCallback(()=>{const L=!S||o.current!=null,V=n.current!=null,H=!u||r.current!=null;return L&&V&&H},[]),F=p.useCallback(()=>o.current==null&&n.current==null&&r.current==null,[]),D=p.useCallback(()=>{if(F()&&(w.current=t.destroyBean(w.current)),!t.isDestroyed()&&R()){const L=A=>{const de=il(l.current,a.current,C.current);de!==l.current&&(l.current=de,rr(A,()=>d(de)))},V=A=>{const de=il(g.current,h.current,C.current);de!==g.current&&(g.current=de,rr(A,()=>v(de)))},H={setHorizontalScroll:A=>{o.current&&(o.current.scrollLeft=A)},setViewportHeight:A=>{o.current&&(o.current.style.height=A)},setRowCtrls:({rowCtrls:A,useFlushSync:de})=>{const k=!!de&&a.current.length>0&&A.length>0;a.current=A,L(k)},setSpannedRowCtrls:(A,de)=>{const k=!!de&&h.current.length>0&&A.length>0;h.current=A,V(k)},setDomOrder:A=>{C.current!=A&&(C.current=A,L(!1))},setContainerWidth:A=>{n.current&&(n.current.style.width=A)},setOffsetTop:A=>{n.current&&(n.current.style.transform=`translateY(${A})`)}};w.current=t.createBean(new nF(e)),w.current.setComp(H,n.current,r.current??void 0,o.current)}},[R,F]),P=p.useCallback(L=>{n.current=L,D()},[D]),T=p.useCallback(L=>{r.current=L,D()},[D]),M=p.useCallback(L=>{o.current=L,D()},[D]),N=()=>p.createElement("div",{className:x,ref:P,role:S?"presentation":"rowgroup"},c.map(L=>p.createElement(Dg,{rowCtrl:L,containerType:i.type,key:L.instanceId})));if(!S)return N();const q=()=>p.createElement("div",{className:y,ref:T,role:"presentation"},f.map(L=>p.createElement(Dg,{rowCtrl:L,containerType:i.type,key:L.instanceId})));return p.createElement("div",{className:b,ref:M,role:"rowgroup"},N(),u?q():null)},p8=p.memo(h8),g8=()=>{const e=p.useContext(yt),{context:t,overlays:s}=e,[i,o]=p.useState(""),[n,r]=p.useState(0),[a,l]=p.useState(0),[c,d]=p.useState("0px"),[u,h]=p.useState("0px"),[g,f]=p.useState("100%"),[v,C]=p.useState("0px"),[w,b]=p.useState("0px"),[x,y]=p.useState("100%"),[S,E]=p.useState(!0),[R,F]=p.useState(!0),[D,P]=p.useState(null),[T,M]=p.useState(""),[N,q]=p.useState(null),[L,V]=p.useState("ag-layout-normal"),H=p.useRef();H.current||(H.current=new pr(()=>A.current));const A=p.useRef(null),de=p.useRef(null),k=p.useRef(null),B=p.useRef(null),U=p.useRef(null),W=p.useRef(null),re=p.useRef(null),be=p.useRef([]),Q=p.useRef([]);yi(" AG Grid Body ",A),yi(" AG Pinned Top ",de),yi(" AG Sticky Top ",k),yi(" AG Middle ",W),yi(" AG Pinned Bottom ",re);const j=p.useCallback(Ee=>{if(A.current=Ee,!Ee||t.isDestroyed()){be.current=t.destroyBeans(be.current);for(const Ge of Q.current)Ge();Q.current=[];return}const je=(Ge,K)=>{Ge.appendChild(K),Q.current.push(()=>K.remove())},_e=Ge=>{const K=t.createBean(new Ge);return be.current.push(K),K},Ae=(Ge,K,He)=>{je(Ge,document.createComment(He)),je(Ge,_e(K).getGui())};Ae(Ee,hF," AG Fake Horizontal Scroll ");const Tt=s?.getOverlayWrapperCompClass();Tt&&Ae(Ee,Tt," AG Overlay Wrapper "),U.current&&Ae(U.current,gF," AG Fake Vertical Scroll ");const is={setRowAnimationCssOnBodyViewport:o,setColumnCount:Ge=>{A.current&&W0(A.current,Ge)},setRowCount:Ge=>{A.current&&V0(A.current,Ge)},setTopHeight:r,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:h,setStickyTopWidth:f,setTopInvisible:E,setBottomInvisible:F,setColumnMovingCss:(Ge,K)=>H.current.toggleCss(Ge,K),updateLayoutClasses:V,setAlwaysVerticalScrollClass:P,setPinnedTopBottomOverflowY:M,setCellSelectableCss:(Ge,K)=>q(K?Ge:null),setBodyViewportWidth:Ge=>{W.current&&(W.current.style.width=Ge)},registerBodyViewportResizeListener:Ge=>{if(W.current){const K=js(e,W.current,Ge);Q.current.push(()=>K())}},setStickyBottomHeight:C,setStickyBottomBottom:b,setStickyBottomWidth:y,setGridRootRole:Ge=>Ee.setAttribute("role",Ge)},kt=t.createBean(new cF);be.current.push(kt),kt.setComp(is,Ee,W.current,de.current,re.current,k.current,B.current)},[]),ge=p.useMemo(()=>Yt("ag-root","ag-unselectable",L),[L]),ie=p.useMemo(()=>Yt("ag-body-viewport",i,L,D,N),[i,L,D,N]),Z=p.useMemo(()=>Yt("ag-body",L),[L]),_=p.useMemo(()=>Yt("ag-floating-top",S?"ag-invisible":null,N),[N,S]),ae=p.useMemo(()=>Yt("ag-sticky-top",N),[N]),G=p.useMemo(()=>Yt("ag-sticky-bottom",v==="0px"?"ag-invisible":null,N),[N,v]),fe=p.useMemo(()=>Yt("ag-floating-bottom",R?"ag-invisible":null,N),[N,R]),he=p.useMemo(()=>({height:n,minHeight:n,overflowY:T}),[n,T]),se=p.useMemo(()=>({height:c,top:u,width:g}),[c,u,g]),le=p.useMemo(()=>({height:v,bottom:w,width:x}),[v,w,x]),Fe=p.useMemo(()=>({height:a,minHeight:a,overflowY:T}),[a,T]),Oe=Ee=>p.createElement(p8,{name:Ee,key:`${Ee}-container`}),Ce=({section:Ee,children:je,className:_e,style:Ae})=>p.createElement("div",{ref:Ee,className:_e,role:"presentation",style:Ae},je.map(Oe));return p.createElement("div",{ref:j,className:ge},p.createElement(e8,null),Ce({section:de,className:_,style:he,children:["topLeft","topCenter","topRight","topFullWidth"]}),p.createElement("div",{className:Z,ref:U,role:"presentation"},Ce({section:W,className:ie,children:["left","center","right","fullWidth"]})),Ce({section:k,className:ae,style:se,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),Ce({section:B,className:G,style:le,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),Ce({section:re,className:fe,style:Fe,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},f8=p.memo(g8),m8=(e,t)=>{const{children:s,eFocusableElement:i,onTabKeyDown:o,gridCtrl:n,forceFocusOutWhenTabGuardsAreEmpty:r,isEmpty:a}=e,{context:l}=p.useContext(yt),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=w=>{const b=w==null?void 0:parseInt(w,10).toString();for(const x of[c,d])b===void 0?x.current?.removeAttribute("tabindex"):x.current?.setAttribute("tabindex",b)};p.useImperativeHandle(t,()=>({forceFocusOutOfContainer(w){u.current?.forceFocusOutOfContainer(w)}}));const g=p.useCallback(()=>{const w=c.current,b=d.current;if(!w&&!b||l.isDestroyed()){u.current=l.destroyBean(u.current);return}if(w&&b){const x={setTabIndex:h};u.current=l.createBean(new dv({comp:x,eTopGuard:w,eBottomGuard:b,eFocusableElement:i,onTabKeyDown:o,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:y=>n.focusInnerElement(y),isEmpty:a}))}},[]),f=p.useCallback(w=>{c.current=w,g()},[g]),v=p.useCallback(w=>{d.current=w,g()},[g]),C=w=>{const b=w==="top"?Lo.TAB_GUARD_TOP:Lo.TAB_GUARD_BOTTOM;return p.createElement("div",{className:`${Lo.TAB_GUARD} ${b}`,role:"presentation",ref:w==="top"?f:v})};return p.createElement(p.Fragment,null,C("top"),s,C("bottom"))},v8=p.forwardRef(m8),C8=p.memo(v8),w8=({context:e})=>{const[t,s]=p.useState(""),[i,o]=p.useState(""),[n,r]=p.useState(null),[a,l]=p.useState(null),[c,d]=p.useState(!1),[u,h]=p.useState(),g=p.useRef(),f=p.useRef(null),v=p.useRef(),[C,w]=p.useState(null),b=p.useRef(()=>{}),x=p.useRef(),y=p.useRef([]),S=p.useCallback(()=>{},[]);yi(" AG Grid ",f);const E=p.useCallback(M=>{if(f.current=M,g.current=M?e.createBean(new uE):e.destroyBean(g.current),!M||e.isDestroyed())return;const N=g.current;b.current=N.focusInnerElement.bind(N);const q={destroyGridUi:()=>{},setRtlClass:s,forceFocusOutOfContainer:L=>{if(!L&&x.current?.isDisplayed()){x.current.forceFocusOutOfContainer(L);return}v.current?.forceFocusOutOfContainer(L)},updateLayoutClasses:o,getFocusableContainers:()=>{const L=[],V=f.current?.querySelector(".ag-root");V&&L.push({getGui:()=>V});for(const H of y.current)H.isDisplayed()&&L.push(H);return L},setCursor:r,setUserSelect:l};N.setComp(q,M,M),d(!0)},[]);p.useEffect(()=>{const M=g.current,N=f.current;if(!u||!M||!C||!N||e.isDestroyed())return;const q=[],{watermarkSelector:L,paginationSelector:V,sideBarSelector:H,statusBarSelector:A,gridHeaderDropZonesSelector:de}=M.getOptionalSelectors(),k=[];if(de){const U=e.createBean(new de.component),W=U.getGui();N.insertAdjacentElement("afterbegin",W),k.push(W),q.push(U)}if(H){const U=e.createBean(new H.component),W=U.getGui(),re=C.querySelector(".ag-tab-guard-bottom");re&&(re.insertAdjacentElement("beforebegin",W),k.push(W)),q.push(U),y.current.push(U)}const B=U=>{const W=e.createBean(new U),re=W.getGui();return N.insertAdjacentElement("beforeend",re),k.push(re),q.push(W),W};if(A&&B(A.component),V){const U=B(V.component);x.current=U,y.current.push(U)}return L&&B(L.component),()=>{e.destroyBeans(q);for(const U of k)U.remove()}},[u,C,e]);const R=p.useMemo(()=>Yt("ag-root-wrapper",t,i),[t,i]),F=p.useMemo(()=>Yt("ag-root-wrapper-body","ag-focus-managed",i),[i]),D=p.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:n??""}),[a,n]),P=p.useCallback(M=>{v.current=M,h(M!==null)},[]),T=p.useCallback(()=>!g.current?.isFocusable(),[]);return p.createElement("div",{ref:E,className:R,style:D,role:"presentation"},p.createElement("div",{className:F,ref:w,role:"presentation"},c&&C&&!e.isDestroyed()&&p.createElement(yt.Provider,{value:e.getBeans()},p.createElement(C8,{ref:P,eFocusableElement:C,onTabKeyDown:S,gridCtrl:g.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:T},p.createElement(f8,null)))))},b8=p.memo(w8),x8=class extends O{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},NC={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},y8={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...NC},HC=new Set(Object.keys(y8)),S8=new Set(Object.keys(NC)),GC=e=>{const t=p.useRef(),s=p.useRef(null),i=p.useRef(null),o=p.useRef([]),n=p.useRef([]),r=p.useRef(e),a=p.useRef(),l=p.useRef(),c=p.useRef(!1),[d,u]=p.useState(void 0),[,h]=p.useState(0),g=p.useCallback(w=>{if(s.current=w,!w){for(const T of o.current)T();o.current.length=0;return}const b=e.modules||[];i.current||(i.current=new WA(()=>h(T=>T+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),o.current.push(()=>{i.current?.destroy(),i.current=null}));const x=Wy(e.gridOptions,e,Object.keys(e).filter(T=>!HC.has(T))),y=()=>{if(c.current){const T=()=>a.current?.shouldQueueUpdates()?void 0:n.current.shift();let M=T();for(;M;)M(),M=T()}},S=new D8(y);a.current=S;const E=new x8,R={providedBeanInstances:{frameworkCompWrapper:new F8(i.current,x),renderStatus:E},modules:b,frameworkOverrides:S,setThemeOnGridDiv:!0},F=T=>{u(T),T.createBean(E),o.current.push(()=>{T.destroy()}),T.getBean("ctrlsSvc").whenReady({addDestroyFunc:M=>{o.current.push(M)}},()=>{if(T.isDestroyed())return;const M=t.current;M&&e.passGridApi?.(M)})},D=T=>{T.getBean("ctrlsSvc").whenReady({addDestroyFunc:M=>{o.current.push(M)}},()=>{for(const M of n.current)M();n.current.length=0,c.current=!0})},P=new HT;x.gridId??(x.gridId=l.current),t.current=P.create(w,x,F,D,R),o.current.push(()=>{t.current=void 0}),t.current&&(l.current=t.current.getGridId())},[]),f=p.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),v=p.useCallback(w=>{c.current&&!a.current?.shouldQueueUpdates()?w():n.current.push(w)},[]);p.useEffect(()=>{const w=R8(r.current,e);r.current=e,v(()=>{t.current&&jy(w,t.current)})},[e]);const C=!p.useSyncExternalStore||ba(e,"renderingMode")==="legacy"?"legacy":"default";return p.createElement("div",{style:f,className:e.className,ref:g},p.createElement(TC.Provider,{value:C},d&&!d.isDestroyed()?p.createElement(b8,{key:d.instanceId,context:d}):null,i.current?.getPortals()??null))};function R8(e,t){const s={};for(const i of Object.keys(t)){if(HC.has(i)){S8.has(i)&&$(274,{prop:i});continue}const o=t[i];e[i]!==o&&(s[i]=o)}return s}var F8=class extends WT{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const s=this.gridOptions;if(ba(s,"reactiveCustomComponents")){const r=(a=>{switch(a){case"filter":return ba(s,"enableFilterHandlers")?MA:kA;case"floatingFilterComponent":return ba(s,"enableFilterHandlers")?LA:AA;case"dateComponent":return PA;case"dragAndDropImageComponent":return TA;case"loadingOverlayComponent":return NA;case"noRowsOverlayComponent":return GA;case"statusPanel":return BA;case"toolPanel":return VA;case"menuItem":return HA;case"cellRenderer":return DA;case"innerHeaderComponent":return OA}})(t.name);if(r)return new r(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":ch();break}const o=!t.cellRenderer&&t.name!=="toolPanel";return new AC(e,this.parent,t,o)}},E8=p.forwardRef((e,t)=>{const s=p.useContext(yt),{registry:i,context:o,gos:n,rowModel:r}=s,[a,l]=p.useState(()=>new es),[c,d]=p.useState(()=>new es),[u,h]=p.useState(),[g,f]=p.useState(),v=p.useRef(),C=p.useRef(null),w=p.useRef(),b=p.useMemo(()=>by(e.api.getGridId(),u?.rowModelType??"clientSide"),[e]),x=p.useMemo(()=>a.toString()+" ag-details-row",[a]),y=p.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&p.useImperativeHandle(t,()=>({refresh(){return v.current?.refresh()??!1}})),e.template&&$(230);const S=p.useCallback(R=>{if(C.current=R,!R||o.isDestroyed()){v.current=o.destroyBean(v.current),w.current?.();return}const F={toggleCss:(P,T)=>l(M=>M.setClass(P,T)),toggleDetailGridCss:(P,T)=>d(M=>M.setClass(P,T)),setDetailGrid:P=>h(P),setRowData:P=>f(P),getGui:()=>C.current},D=i.createDynamicBean("detailCellRendererCtrl",!0);if(D&&(o.createBean(D),D.init(F,e),v.current=D,n.get("detailRowAutoHeight"))){const P=()=>{if(C.current==null)return;const T=C.current.clientHeight;T!=null&&T>0&&setTimeout(()=>{e.node.setRowHeight(T),(tt(n)||_i(n))&&r.onRowHeightChanged()},0)};w.current=js(s,R,P),P()}},[]),E=p.useCallback(R=>{v.current?.registerDetailWithMaster(R)},[]);return p.createElement("div",{className:x,ref:S},u&&p.createElement(GC,{className:y,...u,modules:b,rowData:g,passGridApi:E}))}),D8=class extends uv{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:Sg,agGroupRowRenderer:Sg,agDetailCellRenderer:E8},this.wrapIncoming=(t,s)=>s==="ensureVisible"?xA(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return bA()}},P8=class extends p.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return p.createElement(GC,{...this.props,passGridApi:this.setGridApi})}},BC=(e=>(e.Dropdown="dropdown",e.Menu="menu",e))(BC||{}),Gt=(e=>(e.Click="click",e.Hover="hover",e.ContextMenu="contextMenu",e))(Gt||{}),$o=(e=>(e.Item="item",e.Divider="divider",e.PlainText="plainText",e))($o||{});const T8=pe("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),k8=pe("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none"),M8=pe("flex w-full cursor-pointer items-center gap-3","focus-visible:border-none focus-visible:outline-none","hover:bg-accent-primary-alpha px-3","dial-small-text h-[34px] rounded text-primary"),I8="opacity-75 !cursor-not-allowed",A8="text-error",L8="my-1 border-t border-hover border-secondary",En=4,dh=({ariaLabel:e,className:t,size:s=24,onClose:i,...o})=>m.jsx(di,{"aria-label":e,className:ne("text-secondary hover:enabled:text-accent-primary",t,"w-auto h-auto"),onClick:i,icon:m.jsx(z.IconX,{size:s}),...o}),Pt=({children:e,menu:t,renderOverlay:s,trigger:i=[Gt.Click],placement:o,disabled:n=!1,open:r,defaultOpen:a=!1,onOpenChange:l,closable:c=!1,onClose:d,className:u,listClassName:h,outsidePressIgnoreRef:g,outsideClosable:f=!0,allowedPlacements:v,anchorToMouse:C=!1,matchReferenceWidth:w=!0,maxDropdownHeight:b})=>{const[x,y]=p.useState(a),S=r!==void 0,E=S?!!r:x,R=p.useRef(null),F=p.useCallback(j=>{S||y(j),l?.(j)},[S,l]),D=p.useId(),P=o===void 0,T=j=>"clientWidth"in j?j.clientWidth:j.getBoundingClientRect?.()?.width??0,{refs:M,floatingStyles:N,context:q}=Ie.useFloating({placement:o,open:E,onOpenChange:F,whileElementsMounted:Ie.autoUpdate,middleware:[Ie.offset({mainAxis:En,crossAxis:0}),P?Ie.autoPlacement({alignment:"start",crossAxis:!0,padding:En,allowedPlacements:v}):Ie.flip({padding:En}),Ie.shift({padding:En}),Ie.size({padding:En,apply({availableWidth:j,availableHeight:ge,elements:ie}){const Z=ie.floating,_=T(ie.reference);Z.style.setProperty("--fui-available-height",`${Math.floor(ge)}px`),Z.style.setProperty("--reference-width",w?`${Math.round(_)}px`:"0px"),w?Z.style.minWidth=`${Math.round(_)}px`:Z.style.removeProperty("min-width"),Z.style.maxWidth=`${Math.floor(j)}px`;const ae=Math.floor(ge);Z.style.maxHeight=`${b?Math.min(ae,b):ae}px`}})]}),L=Ie.useClick(q,{enabled:i.includes(Gt.Click)&&!n}),V=Ie.useHover(q,{enabled:i.includes(Gt.Hover)&&!n,move:!1,restMs:40,delay:{open:80,close:80}}),H=Ie.useDismiss(q,{bubbles:!0,referencePress:!1,outsidePress:j=>{if(!f)return!1;const ge=j.target;return!(g?.current&&ge instanceof Node&&g.current.contains(ge))}}),A=Ie.useRole(q,{role:"menu"}),{getReferenceProps:de,getFloatingProps:k}=Ie.useInteractions([L,V,H,A]),B=p.useCallback((j,ge)=>{M.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:j,y:ge,top:ge,left:j,right:j,bottom:ge})})},[M]),U=p.useCallback(j=>{!i.includes(Gt.ContextMenu)||n||(j.preventDefault(),C&&(B(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY)),F(!0))},[C,n,F,B,i]),W=p.useCallback(j=>{!C||n||(i.includes(Gt.ContextMenu)&&E&&F(!1),B(j.clientX,j.clientY),R.current=document.elementFromPoint(j.clientX,j.clientY))},[C,n,B,E,i,F]);p.useEffect(()=>{n&&E&&F(!1)},[n,E,F]);const re=p.useCallback(j=>ge=>{j.disabled||(j.onClick?.({key:j.key,domEvent:ge}),t?.onClick?.({key:j.key,domEvent:ge}),F(!1))},[t,F]),be=p.useMemo(()=>s?s():t?m.jsxs(m.Fragment,{children:[t.header&&m.jsx(m.Fragment,{children:typeof t.header=="function"?t.header():t.header}),m.jsx("div",{role:"none",className:"py-1","aria-label":"dropdown",children:t.items.map(j=>j.type===$o.Divider?m.jsx("div",{role:"separator",className:L8},j.key):j.type===$o.PlainText?m.jsx("div",{className:ne("px-3 py-2 text-secondary dial-caption",j.className),children:j.label},j.key):m.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!j.disabled,className:pe(M8,j.disabled&&I8,j.danger&&A8,j.className),disabled:j.disabled,onClick:re(j),children:[j.icon&&m.jsx("span",{className:pe(j.danger&&"text-error",j.disabled&&"text-secondary"),children:m.jsx(Ye,{icon:j.icon})}),m.jsx("span",{className:pe("flex-1 truncate text-left",j.danger&&"text-error",j.disabled&&"text-secondary"),"aria-labelledby":"item-text",children:j.label})]},j.key))}),t.footer&&m.jsx(m.Fragment,{children:typeof t.footer=="function"?t.footer():t.footer})]}):null,[re,t,s]),Q=de({onContextMenu:U,onMouseDown:W});return p.useEffect(()=>{if(!E)return;const j=M.reference.current;let ge=null;if(j instanceof Element?ge=j:R.current instanceof Element&&(ge=R.current),!ge)return;const ie=new IntersectionObserver(([Z])=>{Z.isIntersecting||F(!1)},{root:null,threshold:0});return ie.observe(ge),()=>ie.disconnect()},[E,M.reference,F]),m.jsxs(m.Fragment,{children:[m.jsx("span",{ref:M.setReference,className:pe(T8,n&&"!cursor-not-allowed opacity-75",u),"aria-haspopup":"menu","aria-expanded":E,"aria-controls":D,...Q,children:e}),E&&m.jsx(Ie.FloatingPortal,{children:m.jsx(Ie.FloatingFocusManager,{context:q,modal:!1,initialFocus:-1,returnFocus:!0,children:m.jsxs("div",{id:D,ref:M.setFloating,style:N,className:pe(k8,!w&&"w-max",h),...k(),children:[c&&m.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:m.jsx(dh,{ariaLabel:"Close dropdown",onClose:j=>{d?.(j),F(!1)}})}),be]})})})]})},O8="h-full w-full",Pg=".ag-checkbox-input",$c={accentColor:"var(--controls-bg-accent, #5C8DEA)",backgroundColor:"var(--bg-layer-3, #1D2439)",oddRowBackgroundColor:"var(--bg-layer-2, #161B2D)",selectedRowBackgroundColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderColor:"var(--bg-layer-4, #242C42)",rowBorder:"1px solid var(--stroke-tertiary, #0C101D)",rowHoverColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderRadius:3,browserColorScheme:"dark",chromeBackgroundColor:"var(--bg-layer-1, #0C101D)",foregroundColor:"var(--text-primary, ##EEF1F7)",headerFontSize:14,headerFontWeight:600,headerTextColor:"var(--text-secondary, #7F8792)",spacing:4,wrapperBorderRadius:3,fontSize:14,fontFamily:{googleFont:"var(--theme-font, var(--font-inter))"}},qc=40;var xi=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(xi||{});const N8=(e,t,s,i,o)=>{const n=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return n===r?0:n?r?n>r?1:-1:o?1:-1:o?-1:1};var _n=(e=>(e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e))(_n||{});const VC="en-US",zC={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},H8="text-primary",Kc=40,WC={minWidth:Kc,width:Kc,maxWidth:Kc},G8={cellClass:"ag-grid-no-checkbox",...WC},B8={...WC};function V8(e,t){let s=null;return(...i)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...i),t)}}wA({testIdAttribute:"dataQA"});qf.registerModules([fA]);const uh=({columnDefs:e,rowData:t,additionalGridOptions:s,getContextMenuItems:i,className:o,ariaLabel:n="Data grid",wrapCustomCellRenderers:r=!0,disabledRowIds:a,selectedRowIds:l,onSelectionChange:c,onGridApiChange:d,getRowId:u=E=>String(E.id??JSON.stringify(E)),alternateOddRowColors:h=!1,filterPlaceholder:g="Enter value",emptyStateIcon:f,emptyStateTitle:v="No results found",emptyStateDescription:C="Sorry, we couldn't find any results for your search.",loading:w=!1,wrapperBorder:b=!0,withoutHeaderBorders:x=!1,allowDisabledContextMenu:y=!1,selectionMode:S})=>{const[E,R]=p.useState(qc),[F,D]=p.useState(),P=p.useId(),T=p.useRef(new Set),M=p.useRef(void 0),N=p.useMemo(()=>({...$c,oddRowBackgroundColor:h?$c.oddRowBackgroundColor:$c.backgroundColor,wrapperBorder:b}),[h,b]),q=p.useCallback(_=>{_.api.sizeColumnsToFit(),R(qc)},[]),L=p.useCallback(_=>{if(_.data){const ae=u(_.data),G=a?.has(ae)??!1,fe=G&&!y,he=_.value==null?"":String(_.value),se=i?.(_.data)??[];return m.jsx(Pt,{trigger:[Gt.ContextMenu],menu:{items:se},anchorToMouse:!0,matchReferenceWidth:!0,className:"w-full",disabled:fe,children:m.jsx("span",{className:"block min-w-0 h-full max-w-full",children:m.jsx(ft,{text:he,className:"max-w-full h-full",hideTooltip:G})})})}},[i,a,u,y]),V=p.useCallback(_=>_===xi.API||_===xi.ROW_DATA_CHANGED,[]),H=p.useCallback(_=>{if(!F)return;const G=(_.selectedNodes||[]).map(he=>he.data),fe=new Set(G.map(u));T.current=fe,M.current=_.source,V(_.source)||c?.(fe,G)},[F,u,V,c]),A=p.useMemo(()=>V8(_=>H?.(_),100),[H]),de=p.useCallback(_=>{if(!_.data)return null;const ae=u(_.data),G=_.node.isSelected(),fe=a?.has(ae),he=`row-select-${ae}`;return m.jsx("div",{className:"h-6 w-6 flex items-center justify-center",children:m.jsx(ru,{className:"w-[18px] h-[18px]",inputId:he,checked:G,disabled:fe,name:"gridradiobutton",value:"selected",onChange:()=>{fe||(_.node.setSelected(!0,!0,xi.CHECKBOX_SELECTED),_.api.refreshCells({columns:[_.column?.getColId()]}))}})})},[u,a]),k=p.useCallback(()=>{const _="dial-row-select",ae="dial-row-select-visible";return!l||l.size===0?_:`${_} ${ae}`},[l]),B=p.useCallback(()=>!l||l.size===0?"dial-row-not-select-header":k(),[k,l]),U=p.useMemo(()=>{if(S===_n.SINGLE)return{...G8,cellRenderer:de};if(S===_n.MULTIPLE)return{...B8,headerClass:()=>B(),cellClass:_=>{const ae=_.data?u(_.data):null;let G=k();return ae&&a?.has(ae)&&(G+=" opacity-50 pointer-events-none"),G}}},[S,de,B,u,k,a]),W=p.useCallback(_=>{const ae=typeof r=="function"?r(_):!!r;if(!_.cellRenderer)return{..._,cellRenderer:L};if(!ae)return _;const G=_.cellRenderer;return{..._,cellRenderer:he=>{const se=he.data?i?.(he.data)??[]:[];let le=null;if(typeof G=="function"){const Ce=G;le=m.jsx(Ce,{...he})}else le=L(he);const Fe=he.data?u(he.data):null,Oe=Fe?a?.has(Fe):!1;return m.jsx(Pt,{trigger:[Gt.ContextMenu],menu:{items:se},anchorToMouse:!0,matchReferenceWidth:!0,className:pe("w-full h-full",Oe&&"!cursor-not-allowed opacity-75"),disabled:Oe&&!y,children:m.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:le})})}}},[a,i,u,L,r,y]),re=p.useMemo(()=>r?(e??[]).map(W):e??[],[e,r,r?W:null]),be=p.useMemo(()=>({minWidth:150,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:g,buttons:["reset"]},comparator:N8.bind(void 0)}),[g]),Q=_=>{const ae=document.querySelector(Pg);ae&&ae.setAttribute("aria-description",pd);const G=re.map(fe=>({...fe,sort:void 0}));_.api.updateGridOptions({columnDefs:G,rowData:t}),_.api.sizeColumnsToFit(),D(_.api),s?.onGridReady?.(_),d?.(_.api)};p.useEffect(()=>{F&&t&&F.setGridOption("rowData",t)},[F,t]);const j=p.useCallback(()=>m.jsx(dr,{title:v,description:C,containerClassName:"gap-3",titleClassName:"mt-2 !text-lg",icon:f||m.jsx(z.IconZoomCancel,{size:100,stroke:.5,className:"text-secondary"})}),[v,C,f]),ge=p.useMemo(()=>{if(S)return{mode:S===_n.SINGLE?"singleRow":"multiRow",isRowSelectable:_=>{const ae=_.data?u(_.data):null;return ae?!a?.has(ae):!0}}},[a,u,S]);p.useEffect(()=>{F&&t&&T.current.size&&T.current.forEach(_=>{const ae=F.getRowNode(_);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,xi.API)})},[F,t]),p.useEffect(()=>{F&&l&&(F.deselectAll("all",xi.API),l.forEach(_=>{const ae=F.getRowNode(_);ae&&!ae.isSelected()&&ae.setSelected(!0,!1,xi.API)}))},[F,l]);const ie=p.useCallback(_=>_.data?u(_.data):"",[u]),Z=p.useCallback(()=>{document.querySelectorAll(`.ag-row ${Pg}`).forEach(_=>{_.setAttribute("aria-description",pd)})},[]);return p.useEffect(()=>{const _=V(M.current);if(F&&l?.size&&_){const ae=Array.from(l)[0];if(ae){const G=F.getRowNode(ae);G&&F.ensureNodeVisible(G)}}},[F,V,l]),m.jsx("div",{className:pe(O8,o,S&&"with-selection-column",x&&"dial-without-header-borders"),"aria-label":n,role:"region","aria-busy":w,children:m.jsx("div",{className:"ag-theme-balham-dark h-full overflow-x-auto",role:"table","aria-describedby":P,children:m.jsx(P8,{rowModelType:"clientSide",headerHeight:qc,rowHeight:E,cellSelection:!1,theme:gP.withPart(qD).withParams({...N}),autoSizeStrategy:{type:"fitGridWidth"},columnDefs:re,defaultColDef:be,selectionColumnDef:U,onGridSizeChanged:q,onGridReady:Q,loading:w,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:j,rowData:t,rowSelection:ge,onSelectionChanged:A,getRowId:ie,onRowDataUpdated:Z,onBodyScroll:Z,onFirstDataRendered:Z,...s})})})};var ol=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(ol||{}),nl=(e=>(e.Mobile="mobile",e.Tablet="tablet",e))(nl||{});const ha=({tab:e,active:t,invalid:s,className:i,horizontal:o,onClick:n})=>{const r=ne("rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small-text hover:text-accent-primary",{"border-b-2 px-4":o,"border-l-2 px-3":!o}),a=ne(r,{"bg-layer-4":o,"bg-layer-1 text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-primary":!t&&!e.disabled,"border-b-accent-primary":t&&o&&!e.disabled,"border-l-accent-primary":t&&!o&&!e.disabled},i);return m.jsxs("button",{role:"tab",className:a,onClick:()=>n(e.id),disabled:e.disabled,children:[m.jsx(ft,{text:e.label,contentClassName:"max-w-[200px]",className:"max-w-[200px]"}),(s||e.invalid)&&m.jsx("div",{className:"text-error pl-1",children:m.jsx(z.IconExclamationCircle,{...J})}),e.warning&&m.jsx("div",{className:"text-warning pl-1",children:m.jsx(z.IconAlertTriangle,{...J})})]})},z8=12;var ii=(e=>(e.Undefined="undefined",e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e))(ii||{});const Tg=()=>typeof window<"u"&&window.innerWidth<640,Yc=()=>{if(typeof window>"u")return ii.Undefined;const e=window.innerWidth;return e>=1024?ii.Desktop:e<640?ii.Mobile:ii.Tablet},W8=()=>{const[e,t]=p.useState(()=>typeof window>"u"?ii.Desktop:Yc());return p.useEffect(()=>{t(Yc());const s=()=>t(Yc());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e},jC=({tabs:e,activeTab:t,onClick:s,orientation:i=ol.Horizontal,screenThreshold:o=nl.Tablet,smallScreenContainerClassName:n,smallScreenDropdownItemClassName:r,desktopDropdownClassName:a,desktopTabClassName:l})=>{const[c,d]=p.useState(!1),[u,h]=p.useState(!1),[g,f]=p.useState(!1),v=W8(),C=v===ii.Mobile||o===nl.Tablet&&v===ii.Tablet,w=i===ol.Horizontal,b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=e.find(P=>P.id===t),E=p.useMemo(()=>pe("flex gap-2",w?"flex-row flex-nowrap overflow-x-auto":"flex-col flex-wrap w-full"),[w]),R=p.useCallback(()=>{const P=x.current;P&&f(P.scrollWidth>P.clientWidth)},[]),F=p.useCallback(()=>{const P=y.current,T=x.current;if(!P||!T)return;const M=P.getBoundingClientRect(),N=T.getBoundingClientRect();if(M.width===0||N.width===0)return;const q=z8;let L=T.scrollLeft;if(M.left<N.left+q)L-=N.left+q-M.left;else if(M.right>N.right-q)L+=M.right-(N.right-q);else return;const V=Math.max(0,T.scrollWidth-T.clientWidth);L=Math.max(0,Math.min(L,V)),L!==T.scrollLeft&&T.scrollTo({left:L,behavior:"smooth"})},[]),D=p.useCallback(P=>{s(P),P===t&&F()},[s,t,F]);return p.useEffect(()=>{R();const P=new ResizeObserver(()=>R()),T=x.current;return T&&P.observe(T),()=>P.disconnect()},[e,R]),p.useEffect(()=>{F()},[t,F]),C?m.jsx("div",{role:"tablist",className:ne("h-11 flex items-center bg-layer-3 px-4",n),children:m.jsx(Pt,{trigger:[Gt.Click],open:c,onOpenChange:d,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],renderOverlay:()=>e.map(P=>m.jsx(ha,{tab:P,active:P.id===t,onClick:T=>{D(T),d(!1)},className:ne("w-full rounded-none h-11 items-center px-6",r)},P.id)),children:m.jsxs("div",{className:"flex gap-2 items-center h-11 cursor-pointer",children:[m.jsx(ha,{tab:S,active:!0,onClick:D,className:"rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"},t),m.jsx(Ye,{icon:m.jsx(z.IconChevronDown,{size:vt.SM}),className:pe("text-primary transition-transform",c&&"rotate-180")})]})})}):m.jsxs("div",{ref:b,className:"flex w-full items-start",children:[m.jsx("div",{ref:x,role:"tablist",className:E,children:e.map(P=>m.jsx("div",{ref:t===P.id?y:void 0,className:"w-full",children:m.jsx(ha,{tab:P,active:t===P.id,onClick:D,horizontal:w,className:ne("w-full",l)})},P.id))}),g&&m.jsx("div",{className:"flex items-center ml-2",children:m.jsx(Pt,{trigger:[Gt.Click],open:u,onOpenChange:h,placement:"bottom-end",renderOverlay:()=>e.map(P=>m.jsx(ha,{tab:P,active:P.id===t,onClick:T=>{D(T),h(!1)},className:"w-full rounded-none h-8 items-center px-3 py-2"},P.id)),children:m.jsx(ss,{iconBefore:m.jsx(z.IconDotsVertical,{size:Ht}),className:ne("w-8 h-8 flex items-center justify-center rounded border",u?"bg-layer-4 border-transparent":"border-primary",a)})})})]})},j8="w-full overflow-hidden",_8="flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap",_C="flex items-center gap-2 min-w-0 shrink-0 dial-small-text",U8="basis-[20%] flex-none",$8="flex-1 min-w-0",kg="inline-flex items-center gap-1 min-w-0 transition-colors",q8="text-secondary hover:text-accent-primary",K8="text-primary cursor-default",UC="flex-none inline-flex items-center leading-none text-secondary",Y8="items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary",$C=m.jsx(z.IconChevronRight,{size:vt.SM,"aria-hidden":"true"}),Mn=({label:e,href:t,onClick:s,disabled:i,isLast:o,separator:n=$C,className:r,iconBefore:a,labelClassName:l,onBeforeNavigate:c,...d})=>{const u=async C=>{if(c&&!o&&!await c()){C.preventDefault();return}s&&s(C)},h=ne(_C,o?$8:U8,r),g=(!!t||!!s)&&!o&&!i,f=g?ne(kg,q8):ne(kg,K8,i?"pointer-events-none opacity-75":""),v=typeof e=="string"?m.jsx(ft,{className:ne("cursor-pointer",l),text:e,id:"breadcrumb-item-content"}):m.jsx("span",{className:ne("flex-1 min-w-0 truncate cursor-pointer max-w-[300px]",l),"aria-label":"breadcrumb-item-content",children:e});return m.jsxs("li",{...d,className:h,"aria-label":d["aria-label"]||"breadcrumb-item",children:[g?m.jsxs("a",{href:t,onClick:u,className:f,children:[a,v]}):m.jsxs("span",{className:f,"aria-current":o?"page":void 0,"aria-disabled":i?"true":void 0,children:[a,v]}),!o&&m.jsx("span",{className:UC,"aria-label":"separator",children:n})]})},qC=({pathItems:e,separator:t=$C,ariaLabel:s="Breadcrumb",className:i,children:o,labelClassName:n,onBeforeNavigate:r})=>{const a=p.useMemo(()=>e?.length?e:p.Children.toArray(o).filter(p.isValidElement).map(d=>{const u=d.props,{labelClassName:h,isLast:g,separator:f,...v}=u;return v}),[e,o]),l=p.useCallback(async d=>{const u=parseInt(d.key,10),h=a[u];if(r&&!await r()){d.domEvent.preventDefault();return}h.onClick?h.onClick(d.domEvent):h.href&&(window.location.href=h.href)},[a,r]),c=p.useMemo(()=>{if(a.length===0)return null;if(a.length<=3)return a.map((v,C)=>p.createElement(Mn,{...v,key:`item-${C}`,isLast:C===a.length-1,separator:t,labelClassName:n,onBeforeNavigate:r}));const d=a.at(0),u=a.slice(1,-2),h=a.at(-2),g=a.at(-1);if(!d||!h||!g)return null;const f=u.map((v,C)=>({key:String(C+1),label:typeof v.label=="string"?v.label:`Item ${C+1}`,disabled:v.disabled}));return m.jsxs(m.Fragment,{children:[p.createElement(Mn,{...d,key:"item-0",separator:t,labelClassName:n,onBeforeNavigate:r}),m.jsxs("li",{className:ne(_C),children:[m.jsx(Pt,{menu:{items:f,onClick:l},placement:"bottom-start",matchReferenceWidth:!1,children:m.jsx("button",{type:"button","aria-label":"More breadcrumbs",className:Y8,children:m.jsx(z.IconDots,{size:vt.SM})})}),m.jsx("span",{className:UC,children:t})]}),p.createElement(Mn,{...h,key:`item-${a.length-2}`,separator:t,labelClassName:n,onBeforeNavigate:r}),p.createElement(Mn,{...g,key:`item-${a.length-1}`,isLast:!0,separator:t,labelClassName:n,onBeforeNavigate:r})]})},[a,t,n,l,r]);return m.jsx("nav",{"aria-label":s,className:ne(j8,i),children:m.jsx("ol",{className:_8,children:c})})},hh=(e,t)=>({appearance:i,...o})=>m.jsx(ss,{...o,variant:e,appearance:i||t}),KC=(e,t)=>({variant:i,...o})=>m.jsx(ss,{...o,variant:i||t,appearance:e}),Ss=hh(ze.Primary,ke.Solid),Fs=hh(ze.Neutral,ke.Outlined),YC=hh(ze.Error,ke.Outlined),X8=KC(ke.Link,ze.Primary),Z8=KC(ke.Ghost,ze.Primary),sn=(e,t)=>({appearance:i,...o})=>m.jsx(di,{...o,variant:e,appearance:i||t}),Q8=(e,t)=>({variant:i,...o})=>m.jsx(di,{...o,variant:i||t,appearance:e}),J8=sn(ze.Primary,ke.Solid),eL=sn(ze.Neutral,ke.Outlined),XC=sn(ze.Error,ke.Outlined),tL=sn(ze.Secondary,ke.Ghost),sL=sn(ze.Tertiary,ke.Ghost),iL=sn(ze.Success,ke.Ghost),oL=Q8(ke.Ghost,ze.Primary),ZC=({iconClassName:e,label:t,...s})=>t?m.jsx(YC,{...s,label:t,appearance:ke.Ghost,iconBefore:m.jsx(z.IconTrashX,{...J,className:e||""})}):m.jsx(XC,{...s,appearance:ke.Ghost,icon:m.jsx(z.IconTrashX,{...J,className:e||""})}),nL=({className:e="",value:t,onChange:s,error:i,containerClassName:o,resize:n=!1,labelProps:r,caption:a,id:l,...c})=>{const d=ne("dial-textarea dial-input px-3 py-2",c.invalid&&"dial-input-error",c.disabled&&"dial-input-disable",n?"resize":"resize-none",e);return m.jsxs("div",{className:ne("flex flex-col gap-y-1",o),children:[r&&m.jsx(Wi,{...r,htmlFor:l}),m.jsx("textarea",{id:l,value:t||"",className:d,onChange:u=>s?.(u.currentTarget.value),...c}),m.jsx(ls,{text:i}),!i&&m.jsx(lr,{text:a})]})},ph=({label:e,switchId:t,isOn:s=!1,disabled:i,onChange:o,caption:n})=>{const r=pe("flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",s?"flex-row-reverse":"flex-row",i?"pointer-events-none":"",i?s?"bg-controls-disable":"bg-layer-4":s?"bg-accent-primary":"bg-layer-4"),a=p.useCallback(l=>{l.stopPropagation(),o?.(!s)},[o,s]);return m.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[m.jsx("input",{type:"checkbox",onChange:a,id:t,disabled:i,className:"invisible w-0 h-0",checked:s}),m.jsx("label",{htmlFor:t,className:r,"aria-describedby":n&&"caption",children:m.jsx("span",{className:pe("size-3 rounded-full",i?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(e||n)&&m.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[e&&m.jsx("span",{className:pe("dial-small-text py-[1px]",i?"text-secondary":"text-primary"),"aria-label":"switch-title",children:e}),n&&m.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:n})]})]})};var jt=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e))(jt||{});const rL="z-[52] flex items-center justify-center bg-blackout md:p-4",Mg="divide-tertiary divide-y",aL="flex flex-row justify-between py-4 px-6 items-center",lL={[jt.Sm]:"dial-sm-popup",[jt.Md]:"dial-md-popup",[jt.Lg]:"dial-lg-popup"},Ki=({open:e=!1,header:t,portalId:s,className:i,overlayClassName:o,titleClassName:n,headerClassName:r,dividers:a=!0,dividerFooter:l=!0,children:c,footer:d,onClose:u,size:h=jt.Md,hideClose:g=!1,closeOnOutsideClick:f=!0,preventKeyboardOnOpen:v=!1})=>{const C=p.useRef(null),{refs:w,context:b}=Ie.useFloating({open:e,onOpenChange:F=>{F||u?.(null)}}),x=Ie.useRole(b,{role:"dialog"}),y=Ie.useDismiss(b,{outsidePress:f}),{getFloatingProps:S}=Ie.useInteractions([x,y]);if(!e)return null;const E=typeof t=="string"?"dial-popup-heading":void 0,R=F=>F?typeof F=="string"?m.jsx("h3",{id:E,className:pe("flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",n),children:m.jsx(At,{tooltip:F,children:F})}):F:m.jsx("span",{});return m.jsx(Ie.FloatingPortal,{id:s,children:m.jsx(Ie.FloatingOverlay,{className:pe(rL,o),children:m.jsx(Ie.FloatingFocusManager,{context:b,initialFocus:v?C:void 0,children:m.jsxs("div",{ref:w.setFloating,...S(),role:"dialog","aria-modal":"true","aria-labelledby":E,className:pe("dial-popup",lL[h],a&&Mg,i),children:[v&&m.jsx("div",{ref:C,tabIndex:-1,"aria-hidden":!0,className:"absolute size-px -m-px overflow-hidden opacity-0 pointer-events-none"}),m.jsxs("div",{className:ne(aL,r),children:[R(t),!g&&m.jsx(dh,{ariaLabel:"Close dialog",onClose:F=>u?.(F)})]}),m.jsx("div",{className:"flex-grow overflow-auto","aria-label":"popup-description",children:c}),l&&!d&&m.jsx("div",{className:Mg}),d]})})})})};var qo=(e=>(e.Info="info",e.Danger="danger",e))(qo||{});const cL="flex justify-end gap-2 px-6 py-4",dL="text-secondary dial-small-150 px-6 py-4",uL="Cancel",hL="Ok",Xc={[qo.Info]:{confirm:{variant:ze.Primary,appearance:ke.Solid},cancel:{variant:ze.Neutral,appearance:ke.Outlined}},[qo.Danger]:{container:"dial-danger-popup",confirm:{variant:ze.Error,appearance:ke.Solid},cancel:{variant:ze.Neutral,appearance:ke.Outlined}}},QC=({header:e,description:t,descriptionClassName:s,open:i=!1,confirmLabel:o=hL,cancelLabel:n=uL,isLoading:r=!1,disableConfirmButton:a=!1,className:l,confirmClassName:c,onClose:d,onConfirm:u,onCancel:h,children:g,dividers:f=!1,variant:v=qo.Info,size:C=jt.Sm,footer:w})=>{const b=r?null:m.jsxs("div",{className:cL,children:[m.jsx(Fs,{label:n,onClick:()=>h?h():d?.()}),m.jsx(ss,{variant:Xc[v].confirm?.variant,appearance:Xc[v].confirm?.appearance,className:c,label:o,disabled:a,onClick:()=>u()})]}),x=p.useCallback(()=>r?m.jsx("div",{className:"px-6 py-4 h-[120px]",children:m.jsx(cr,{size:50})}):g??(t?m.jsx("div",{className:pe(dL,s),children:t}):null),[g,t,r,s]);return m.jsx(Ki,{open:i,header:e,className:pe(Xc[v].container,l),dividers:f,onClose:()=>d?.(),footer:w??b,size:C,children:x()})},Zc=8,pL=24,JC=({initialTags:e=[],label:t,required:s,elementId:i,placeholder:o,captionDescription:n,errorText:r,invalid:a,disabled:l,collapseTagOverflow:c=!1,readOnly:d=!1,containerClassName:u,tagClassName:h,onChange:g})=>{const f=p.useRef(null),v=p.useRef([]),C=p.useRef(null),[w,b]=p.useState(e),[x,y]=p.useState(""),[S,E]=p.useState(!1),[R,F]=p.useState(e.length),D=p.useCallback(H=>A=>{v.current[H]=A},[]),P=p.useCallback(()=>{if(!c)return;const H=f.current;if(!H)return;const A=H.offsetWidth;if(A===0)return;const de=C.current?.offsetWidth??0,B=A-(d?0:pL)-Zc;let U=0,W=0;for(let re=0;re<w.length;re++){const be=v.current[re];if(!be)continue;const Q=be.offsetWidth+Zc;if(U+Q>B)break;U+=Q,W++}if(W<w.length&&W>0)for(;U+de>B&&W>0;){W--;const re=v.current[W]?.offsetWidth??0;U-=re+Zc}F(W)},[c,d,w.length]),T=H=>{const A=H.trim().replace(/,$/,"");if(A&&!w.includes(A)){const de=[A,...w];b(de),g?.(de)}},M=H=>{(H.key===","||H.key==="Enter")&&(H.preventDefault(),T(x),y(""))},N=()=>{x.trim()&&(T(x),y(""))},q=H=>{const A=w.filter((de,k)=>k!==H);b(A),g?.(A)},L=()=>r?m.jsx(ls,{text:r}):n?m.jsx(lr,{text:n}):null;p.useEffect(()=>{if(c)return;const H=new ResizeObserver(()=>{if(f.current){const A=f.current.scrollHeight>f.current.clientHeight+10;E(A)}});return f.current&&H.observe(f.current),()=>H.disconnect()},[w,c]),p.useEffect(()=>{if(!c){F(w.length);return}F(w.length);const H=new ResizeObserver(()=>{P()}),A=f.current;return A&&H.observe(A),P(),()=>H.disconnect()},[c,P,w]),p.useEffect(()=>{b(e)},[JSON.stringify(e)]);const V=m.jsxs("div",{ref:f,className:pe("flex gap-2 items-center relative",c?"flex-nowrap overflow-hidden w-full min-w-0":pe("flex-wrap",S?"flex-col-reverse":"flex-row"),u),children:[(c?w.slice(0,R):w).map((H,A)=>m.jsx(yo,{tag:H,className:h,remove:!l&&!d?()=>q(A):void 0},H+A)),c&&R<w.length&&m.jsx(At,{tooltip:w.slice(R).join(", "),triggerClassName:"inline-flex shrink-0 cursor-pointer",children:m.jsx(yo,{tag:`+${w.length-R}`})}),!d&&m.jsx("input",{id:i,type:"text",value:x,onChange:H=>y(H.target.value),onKeyDown:M,onBlur:N,className:pe("dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",c?"min-w-0":"min-w-[100px]"),placeholder:o??"",disabled:l}),c&&m.jsxs("div",{className:"absolute left-0 top-0 invisible pointer-events-none h-0 overflow-hidden whitespace-nowrap","aria-hidden":!0,children:[w.map((H,A)=>m.jsx("div",{ref:D(A),className:"inline-flex shrink-0",children:m.jsx(yo,{tag:H,className:h,remove:!l&&!d?()=>q(A):void 0})},`measure-${H}-${A}`)),m.jsx("div",{ref:C,className:"inline-flex shrink-0",children:m.jsx(yo,{tag:`+${w.length}`})})]})]});return d?V:m.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[m.jsx(Wi,{label:t,required:s,htmlFor:i}),m.jsx("div",{className:pe("dial-input min-h-[38px] p-[6px]",a&&"dial-input-error",l&&"dial-input-disable"),children:V}),L()]})},ew=({selectedItems:e,placeholder:t,collapseTagOverflow:s=!1,listClassName:i,listElementClassName:o})=>e?.length?m.jsx(JC,{readOnly:!0,initialTags:e,collapseTagOverflow:s,containerClassName:i,tagClassName:o}):t?m.jsx("span",{className:"text-secondary",children:t}):null,Qc=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z",fill:"currentColor"})),tw=({children:e,open:t,disabled:s=!1,selectedValue:i,valueClassName:o,inputClassName:n,onOpen:r,elementId:a,errorText:l,invalid:c,emptyValueText:d,placeholder:u,editable:h=!1,onValueChange:g,collapseTagOverflow:f=!1})=>{const v=Array.isArray(i)&&i.length>0,C=typeof i=="string"&&!!i.trim(),w=v||C?i:u?void 0:d,b=s?void 0:r,x=p.useCallback(R=>{g?.(R.target.value)},[g]),y=()=>m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:pe("dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between",n,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[m.jsx("input",{type:"text",className:pe("flex-1 min-w-0 bg-transparent outline-none border-none p-0 dial-small-text text-primary placeholder:text-secondary",o),value:typeof i=="string"?i:"",placeholder:u||d,onChange:x,disabled:s,id:a,"aria-label":"input-popup-field"}),!s&&m.jsx("button",{type:"button",className:"flex-shrink-0 cursor-pointer bg-transparent border-none p-0 ml-1",onClick:r,"aria-label":"open-popup",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]}),m.jsx(ls,{text:l})]}),S=()=>m.jsxs(m.Fragment,{children:[m.jsx("button",{type:"button",className:"w-full",onClick:b,"aria-label":"open-popup",id:a,children:m.jsxs("div",{className:pe("dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between cursor-pointer",n,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[m.jsx(At,{tooltip:w==null?void 0:String(w),children:w||!u?m.jsx("span",{className:o,children:w}):m.jsx("span",{className:"text-secondary",children:u})}),!s&&m.jsx("div",{className:"flex-shrink-0",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]})}),m.jsx(ls,{text:l})]}),E=()=>m.jsx("div",{className:"w-full",onClick:b,children:m.jsxs("div",{className:pe("dial-input px-3 py-2 flex flex-row items-center w-full justify-between cursor-pointer",s&&"dial-input-disable"),children:[m.jsx(ew,{placeholder:u,selectedItems:w,collapseTagOverflow:f}),!s&&m.jsx("div",{className:"ml-1",children:m.jsx(Ye,{icon:m.jsx(Qc,{role:"img",width:Ht,height:Ht})})})]})});return m.jsxs(m.Fragment,{children:[v?E():h?y():S(),t&&Ko.createPortal(e,document.body)]})},gL=({label:e,htmlFor:t,disabled:s,selectedValue:i,radioButtons:o,customInputValue:n,valueClassName:r,inputClassName:a,emptyValueText:l,onClose:c,header:d,portalId:u,onApply:h,onCancel:g,cancelButtonTitle:f="Cancel",applyButtonTitle:v="Apply",isValid:C,selectedRadioValue:w,onChangeRadioField:b,id:x,size:y=jt.Md})=>{const[S,E]=p.useState(!1),R=p.useCallback(()=>{s||E(!0)},[s]),F=p.useCallback(()=>{E(!1),c?.()},[c]),D=p.useCallback(()=>{g?.(),F()},[g,F]),P=p.useCallback(()=>{h(),F()},[h,F]);return m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsx(Wi,{label:e,htmlFor:t}),m.jsx(tw,{disabled:s,open:S,selectedValue:n??o.find(T=>T.id===i)?.name,valueClassName:r,inputClassName:pe(a,"py-2","px-3"),emptyValueText:l,onOpen:R,children:m.jsx(Ki,{open:S,onClose:D,header:d,portalId:u,size:y,footer:m.jsxs("div",{className:"flex flex-row items-center justify-end gap-2 px-6 py-4",children:[m.jsx(Fs,{label:f,onClick:D}),m.jsx(Ss,{label:v,onClick:P,disabled:!C})]}),children:m.jsx("div",{className:"px-6 py-4",children:m.jsx(Ia,{radioButtons:o,labelClassName:"dial-small-text",activeRadioButton:w,onChange:b,elementId:x,orientation:Ai.Column})})})})]})},fL="Create",mL="Cancel",vL="flex items-center justify-end gap-2 px-6 py-3",CL=({header:e,open:t=!1,submitLabel:s=fL,cancelLabel:i=mL,isLoading:o=!1,disableSubmitButton:n=!1,className:r,submitClassName:a,onClose:l,onSubmit:c,onCancel:d,children:u,dividers:h=!0,size:g=jt.Md,footer:f})=>{const v=o?null:m.jsxs("div",{className:vL,children:[m.jsx(Fs,{label:i,onClick:()=>d?d():l?.()}),m.jsx(Ss,{className:a,label:s,disabled:n,onClick:()=>c()})]}),C=p.useCallback(()=>o?m.jsx("div",{className:"px-6 py-4 h-[120px]",children:m.jsx(cr,{size:50})}):u??null,[u,o]);return m.jsx(Ki,{open:t,header:e,className:r,dividers:h,onClose:()=>l?.(),footer:f??v,size:g,children:C()})},wL=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Tab","Enter","Escape","Home","End","Insert"],sw=(e,t,s,i)=>{if((t==="number"||s!==void 0||i!==void 0)&&!wL.includes(e.key)&&!(e.ctrlKey||e.metaKey)&&!(e.key==="-"&&(e.currentTarget.selectionStart??0)===0&&!e.currentTarget.value.includes("-"))&&!(e.key==="."&&t==="number"&&!e.currentTarget.value.includes("."))){if(!/^[0-9]$/.test(e.key)){e.preventDefault();return}if(s!==void 0||i!==void 0){const n=e.currentTarget.value,r=e.currentTarget.selectionStart||0,a=n.slice(0,r)+e.key+n.slice(r),l=parseFloat(a);if(!isNaN(l)){if(s!==void 0&&l<+s){e.preventDefault();return}if(i!==void 0&&l>+i){e.preventDefault();return}}}}},bL="bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary",xL=({icon:e,onClick:t,disabled:s,size:i=Rt.Standard})=>m.jsx("div",{className:pe("border-l border-tertiary",i===Rt.Standard?"h-[40px] w-[44px]":"h-[24px] w-[32px]"),children:m.jsx(di,{className:pe(bL,i===Rt.Small&&"p-1"),icon:e,onClick:t,disabled:s,size:i})}),on=({labelProps:e,error:t,caption:s,id:i,containerClassName:o,...n})=>m.jsxs("div",{className:ne("flex flex-col gap-y-1",o),children:[e&&m.jsx(Wi,{...e,htmlFor:i}),m.jsx(iw,{id:i,...n}),m.jsx(ls,{text:t}),!t&&m.jsx(lr,{text:s})]}),iw=({invalid:e,disabled:t,prefix:s,className:i,postfix:o,iconBefore:n,iconAfter:r,wrapperClassName:a,type:l,inputRef:c,value:d,tooltipText:u,min:h,onChange:g,max:f,inputButtonProps:v,...C})=>{const w=p.useRef(null),b=Ie.useMergeRefs([c,w]);p.useEffect(()=>{const R=w.current;if(!R)return;const F=D=>{D.preventDefault()};return R.addEventListener("wheel",F,{passive:!1}),()=>{R.removeEventListener("wheel",F)}},[]);const x=l==="number"||h!==void 0||f!==void 0,y=R=>{sw(R,l,h,f)},S=R=>{const F=R.currentTarget.value;if(x&&F!==""){const D=parseFloat(F);if(isNaN(D)&&F!=="-"&&F!=="."||!isNaN(D)&&(h!==void 0&&D<+h||f!==void 0&&D>+f))return}g?.(F||void 0)},E=()=>m.jsxs("div",{className:ne("dial-input flex flex-row items-center gap-x-2 justify-between py-2",e&&"dial-input-error",t&&"dial-input-disable",!s&&"pl-3",!v&&"pr-3",a),"aria-label":"input-container",children:[s&&m.jsx("div",{className:"border-r border-tertiary",children:m.jsx(iw,{wrapperClassName:"!rounded-r-none",className:"truncate",value:s,disabled:!0,id:`${s}_textBefore`})}),m.jsx(Ye,{icon:n}),m.jsx("input",{ref:b,type:l,autoComplete:l==="password"?"new-password":"off",value:d??"",className:ne("border-0 bg-transparent w-full truncate",t&&"cursor-not-allowed",i),onChange:S,onKeyDown:y,min:h,disabled:t,max:f,...C}),o&&m.jsxs("p",{className:"text-secondary dial-small-text",children:[" ",o]}),m.jsx(Ye,{icon:r}),v&&m.jsx(xL,{...v,disabled:t})]});return t&&l!=="password"?m.jsx(At,{tooltip:u||d,children:E()}):E()},yL=/^0+\.(\d+)?$/,SL=/^0+/,RL=({integer:e,onChange:t,min:s,max:i,onKeyDown:o,onPaste:n,...r})=>{const a=d=>!d||d==="-"?d:String(d)?.match(yL)?String(d)?.replace(SL,"0"):Number(d),l=d=>{if([".","-","+","e","E"].includes(d.key)){d.preventDefault();return}sw(d,"number",s,i)},c=d=>{const u=d.clipboardData.getData("text"),h=u.replace(/\D/g,"");if(h!==u&&(d.preventDefault(),h)){const g=d.currentTarget,f=g.selectionStart??0,v=g.selectionEnd??0,C=g.value.slice(0,f)+h+g.value.slice(v);t?.(a(C))}};return m.jsx(on,{type:"number",min:s,max:i,onChange:d=>t?.(a(d)),onKeyDown:e?l:o,onPaste:e?c:n,...r})},FL=({onClick:e})=>m.jsx(z.IconEyeOff,{...J,className:"text-primary",onClick:e,role:"button","aria-label":"hide"}),EL=({onClick:e})=>m.jsx(z.IconEye,{...J,className:"text-primary",onClick:e,role:"button","aria-label":"show"}),DL=({...e})=>{const[t,s]=p.useState(!1),i=p.useCallback(o=>{s(o)},[]);return m.jsx(on,{type:t?"text":"password",...e,iconAfter:e.disabled?null:t?m.jsx(FL,{onClick:()=>i(!1)}):m.jsx(EL,{onClick:()=>i(!0)})})},PL={[Rt.Small]:{className:"dial-tiny-text",wrapperClassName:"pl-2 py-0",containerClassName:"h-[24px]",iconSize:16,iconStroke:1},[Rt.Standard]:{className:"dial-small-text",wrapperClassName:"",containerClassName:"",iconSize:20,iconStroke:1.5}},gh=({size:e=Rt.Standard,placeholder:t="Search...",value:s,onChange:i,...o})=>{const[n,r]=p.useState(s||"");p.useEffect(()=>{r(s||"")},[s]);const a=p.useCallback(u=>{r(u||""),i?.(u||"")},[i]),l=PL[e],c=p.useCallback(()=>{a("")},[a]),d=p.useMemo(()=>{if(n)return{icon:m.jsx(z.IconX,{size:l.iconSize,"aria-label":"Clear search",role:"button"}),onClick:c,size:e}},[c,n,e,l.iconSize]);return m.jsx(on,{placeholder:t,iconBefore:m.jsx(z.IconSearch,{size:l.iconSize,stroke:l.iconStroke}),value:n,onChange:a,inputButtonProps:d,containerClassName:l.containerClassName,className:l.className,wrapperClassName:l.wrapperClassName,...o})},TL="dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer",kL="w-full rounded flex flex-col",Jc="flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none",ML="bg-accent-primary-alpha",IL="bg-accent-primary-alpha border-l border-accent-primary border-1",Ig="opacity-75",AL=352,LL=m.jsx(z.IconChevronDown,{size:vt.SM}),ow=({options:e,selectedValues:t,handleRemoveTag:s})=>m.jsx("div",{className:"flex flex-wrap w-full items-center gap-1",children:t.map(i=>{const o=e.find(r=>r.value===i)?.label??i,n=e.find(r=>r.value===i)?.icon;return m.jsx(yo,{tag:o,remove:r=>s?.(r,i),iconBefore:n?m.jsx(Ye,{icon:n}):null,className:"max-w-full"},i)})});var rl=(e=>(e.Sm="sm",e.Md="md",e))(rl||{}),al=(e=>(e.Primary="Primary",e.Secondary="Secondary",e))(al||{});const nw=({options:e,multiple:t=!1,elementId:s,value:i,defaultValue:o,variant:n=al.Primary,size:r=rl.Md,prefix:a,customSelectedValue:l,placeholder:c="Select...",searchable:d=!1,searchPlaceholder:u,selectAll:h=!1,invalid:g,selectAllLabel:f="Select all",emptyStateTitle:v="No options available",emptyStateDescription:C,emptyStateIcon:w,disabled:b=!1,className:x,listClassName:y,closable:S=!1,header:E,footer:R,onClose:F,onChange:D,inlineSearch:P=!1,dismissRef:T,onFooterClick:M,open:N,onOpenChange:q,onInlineQueryChange:L,customMultiSelectTagsRenderer:V})=>{const H=p.useId(),[A,de]=p.useState(!1),k=N!==void 0,B=k?!!N:A,U=p.useCallback(K=>{k||de(K),q?.(K)},[k,q]),[W,re]=p.useState(P&&l||""),be=p.useRef(null),Q=p.useCallback(K=>{K!==W&&(re(K||""),L?.(K||""))},[L,W]),j=i!==void 0,[ge,ie]=p.useState(o),Z=j?i:ge,_=p.useMemo(()=>t?Array.isArray(Z)?Z:[]:typeof Z=="string"?[Z]:[],[Z,t]),ae=p.useMemo(()=>{const K=W.trim().toLowerCase();return K?e.filter(He=>He.label.toLowerCase().includes(K)):e},[e,W]);p.useEffect(()=>{!B&&!P&&Q("")},[P,B,Q]),p.useEffect(()=>{P&&!B&&l&&Q(l||"")},[l,P,B,Q]);const G=p.useCallback(K=>{j||ie(K),D?.(K)},[j,D]),fe=p.useCallback(K=>{if(t){const He=new Set(_);He.has(K)?He.delete(K):He.add(K),G(Array.from(He));return}if(G(K),P){const He=e.find(os=>os.value===K);He&&(Q(He.label),L?.(He.label))}U(!1)},[t,G,P,U,_,e,Q,L]),he=p.useCallback((K,He)=>{if(K.stopPropagation(),!t){G("");return}const os=_.filter(nn=>nn!==He);G(os)},[t,_,G]),se=p.useMemo(()=>ae.filter(K=>!K.disabled),[ae]),le=p.useMemo(()=>se.filter(K=>_.includes(K.value)).length,[se,_]),Fe=K=>{P&&!t&&!K&&fe(W),U(K)},Oe=se.length>0&&le===se.length,Ce=le>0&&!Oe,Ee=()=>{if(!(!t||se.length===0))if(Oe){const K=new Set(se.map(os=>os.value)),He=_.filter(os=>!K.has(os));G(He)}else{const K=new Set(_);se.forEach(He=>K.add(He.value)),G(Array.from(K))}},je=_.length>0;p.useEffect(()=>{B&&P&&!t&&!b&&requestAnimationFrame(()=>{const K=be.current;if(!K)return;K.focus();const He=K.value?.length??0;K.setSelectionRange?.(He,He)})},[B,P,t,b]);const _e=!t&&je?_[0]:void 0,Ae=p.useMemo(()=>_e?e.find(K=>K.value===_e):void 0,[e,_e]),Tt=p.useCallback(()=>!t||_.length===0?null:m.jsx(ow,{options:e,selectedValues:_,handleRemoveTag:he}),[t,e,_,he]),is=p.useCallback(()=>t?je?V?.(e,_,he)||Tt():m.jsx("span",{className:"text-secondary truncate",children:c}):Ae?m.jsxs(m.Fragment,{children:[Ae.icon&&m.jsx(Ye,{icon:Ae.icon}),m.jsx(ft,{text:a?`${a} ${Ae.label}`:Ae.label}),Ae?.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:Ae.description})]}):l&&i?l:m.jsx("span",{className:"text-secondary truncate",children:c}),[je,t,l,a,i,c,Tt,Ae,e,_,he,V]);p.useImperativeHandle(T,()=>({dismiss:()=>{U(!1)}}));const kt=p.useCallback(()=>{Q(_.length===1?Ae?.label??W:"")},[W,_.length,Q,Ae?.label]),Ge=p.useCallback(()=>{b||(U(!B),P&&!t&&(kt(),be.current?.focus()))},[b,P,B,t,kt,U]);return m.jsx(Pt,{open:B,onOpenChange:Fe,disabled:b,closable:S,onClose:F,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],maxDropdownHeight:d?null:AL,listClassName:y,renderOverlay:()=>m.jsxs("div",{id:`list-${s||H}`,role:"listbox","aria-multiselectable":t||void 0,className:kL,children:[E&&m.jsx(m.Fragment,{children:typeof E=="function"?E():E}),(d||S)&&e.length>8&&m.jsxs("div",{className:"flex items-center gap-2 px-2 pt-2",children:[d&&m.jsx(gh,{placeholder:u,onChange:Q,value:W,id:`search-${s||H}`,containerClassName:"w-full"}),S&&m.jsx(ss,{"aria-label":"Close select",className:"shrink-0",iconBefore:m.jsx(z.IconX,{size:vt.SM}),onClick:K=>{F?.(K),U(!1)}})]}),t&&h&&se.length>0&&m.jsx("div",{className:pe(Jc,"mt-2"),children:m.jsx(gd,{id:`${s||H}-selectAll`,label:f,checked:Oe,indeterminate:Ce,onChange:Ee,ariaLabel:f})}),m.jsx("div",{className:pe("overflow-y-auto max-h-[352px]",P&&ae.length===0?"":"py-1"),children:ae.length===0?!P&&m.jsx("div",{className:"px-2 py-3",children:m.jsx(dr,{icon:w??m.jsx(z.IconClipboardX,{size:vt.LG,stroke:.5}),title:v,description:C})}):ae.map(K=>{const He=_.includes(K.value);return t?m.jsxs("div",{role:"option","aria-selected":He,"aria-disabled":!!K.disabled,className:pe(Jc,He&&ML,K.disabled&&Ig,"w-full"),children:[m.jsx(gd,{id:`${s||H}-${K.value}`,label:m.jsxs("span",{className:"flex w-full flex-1 pl-2 min-w-0 items-center gap-2 text-primary",children:[K.icon&&m.jsx(Ye,{icon:K.icon}),m.jsx("span",{className:"truncate",children:K.label})]}),checked:He,disabled:K.disabled,onChange:()=>!K.disabled&&fe(K.value),ariaLabel:K.label}),K.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:K.description})]},K.value):m.jsx("button",{role:"option",type:"button","aria-selected":He,"aria-disabled":!!K.disabled,disabled:K.disabled,className:pe(Jc,He&&IL,K.disabled&&Ig),onClick:()=>!K.disabled&&fe(K.value),children:m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[K.icon&&m.jsx(Ye,{icon:K.icon}),m.jsx(ft,{text:K.label}),K.description&&m.jsx("div",{className:"text-secondary dial-small-text",children:K.description})]})},K.value)})}),R&&m.jsx("div",{onClick:K=>{M?.(K),M&&U(!1)},children:typeof R=="function"?R():R})]}),children:m.jsxs("div",{role:"button",tabIndex:0,"aria-roledescription":"button to open select list","aria-haspopup":"listbox","aria-expanded":B,"aria-controls":`list-${s||H}`,className:ne(TL,b&&"opacity-75 !cursor-not-allowed",r===rl.Sm?"min-h-[25px] px-1.5 py-1":"min-h-[38px] px-3 py-2",g&&"dial-input-error",n===al.Secondary?"!bg-layer-4 !h-auto":"",x),onMouseDown:K=>{b||P&&!t&&(kt(),K.preventDefault())},onClick:()=>{Ge()},onKeyDown:K=>{(K.key===" "||K.code==="Space")&&(K.preventDefault(),Ge())},children:[P&&!t?m.jsx("div",{className:"flex min-w-0 items-center gap-2 text-primary flex-1",children:m.jsx("input",{id:`inline-${s||H}`,type:"text",placeholder:u??c,value:W||"",onChange:K=>Q(K.currentTarget.value.trimStart()),onFocus:()=>!b&&U(!0),onMouseDown:K=>{kt(),K.stopPropagation()},onClick:K=>{K.stopPropagation()},onKeyDown:K=>{K.stopPropagation()},className:"bg-transparent outline-none w-full dial-small-text",ref:be,disabled:b,"aria-disabled":b,autoComplete:"off"})}):m.jsx("div",{className:"flex w-full min-w-0 items-center gap-2 text-primary",children:is()}),!P&&m.jsx(Ye,{icon:LL,className:pe("text-primary",B&&"rotate-180")})]})})},OL=({label:e,required:t,captionDescription:s,containerClassName:i,selectClassName:o,error:n,id:r,caption:a,readonly:l,value:c,defaultEmptyText:d,...u})=>{const h=p.useCallback(()=>{if(!c||Array.isArray(c)&&c.length===0)return d??"None";if(Array.isArray(c))return m.jsx(ow,{options:u.options,selectedValues:c});{const g=u.options?.find(f=>f.value===c);return m.jsx("span",{"aria-readonly":!0,className:"text-primary",children:g?.label||c})}},[c,u.options,d]);return m.jsx(au,{id:r,label:e,required:t,description:a,error:n,captionDescription:s,className:i,readonly:l,value:h(),defaultEmptyText:d,children:m.jsx(nw,{className:o,value:c,elementId:r,invalid:!!n,...u})})};function rw(e){let t=null;return()=>(t==null&&(t=e()),t)}function NL(e,t){return e.filter(s=>s!==t)}function HL(e,t){const s=new Set,i=n=>s.add(n);e.forEach(i),t.forEach(i);const o=[];return s.forEach(n=>o.push(n)),o}class GL{enter(t){const s=this.entered.length,i=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(t));return this.entered=HL(this.entered.filter(i),[t]),s===0&&this.entered.length>0}leave(t){const s=this.entered.length;return this.entered=NL(this.entered.filter(this.isNodeInDocument),t),s>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class BL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const s={};Object.keys(this.config.exposeProperties).forEach(i=>{const o=this.config.exposeProperties[i];o!=null&&(s[i]={value:o(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,s)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,s){return s===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const fh="__NATIVE_FILE__",aw="__NATIVE_URL__",lw="__NATIVE_TEXT__",cw="__NATIVE_HTML__",Ag=Object.freeze(Object.defineProperty({__proto__:null,FILE:fh,HTML:cw,TEXT:lw,URL:aw},Symbol.toStringTag,{value:"Module"}));function ed(e,t,s){const i=t.reduce((o,n)=>o||e.getData(n),"");return i??s}const eu={[fh]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[cw]:{exposeProperties:{html:(e,t)=>ed(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[aw]:{exposeProperties:{urls:(e,t)=>ed(e,t,"").split(`
|
|
67
67
|
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[lw]:{exposeProperties:{text:(e,t)=>ed(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function VL(e,t){const s=eu[e];if(!s)throw new Error(`native type ${e} has no configuration`);const i=new BL(s);return i.loadDataTransfer(t),i}function td(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(eu).filter(s=>{const i=eu[s];return i?.matchesTypes?i.matchesTypes.some(o=>t.indexOf(o)>-1):!1})[0]||null}const zL=rw(()=>/firefox/i.test(navigator.userAgent)),dw=rw(()=>!!window.safari);class Lg{interpolate(t){const{xs:s,ys:i,c1s:o,c2s:n,c3s:r}=this;let a=s.length-1;if(t===s[a])return i[a];let l=0,c=r.length-1,d;for(;l<=c;){d=Math.floor(.5*(l+c));const g=s[d];if(g<t)l=d+1;else if(g>t)c=d-1;else return i[d]}a=Math.max(0,c);const u=t-s[a],h=u*u;return i[a]+o[a]*u+n[a]*h+r[a]*u*h}constructor(t,s){const{length:i}=t,o=[];for(let g=0;g<i;g++)o.push(g);o.sort((g,f)=>t[g]<t[f]?-1:1);const n=[],r=[];let a,l;for(let g=0;g<i-1;g++)a=t[g+1]-t[g],l=s[g+1]-s[g],n.push(a),r.push(l/a);const c=[r[0]];for(let g=0;g<n.length-1;g++){const f=r[g],v=r[g+1];if(f*v<=0)c.push(0);else{a=n[g];const C=n[g+1],w=a+C;c.push(3*w/((w+C)/f+(w+a)/v))}}c.push(r[r.length-1]);const d=[],u=[];let h;for(let g=0;g<c.length-1;g++){h=r[g];const f=c[g],v=1/n[g],C=f+c[g+1]-h-h;d.push((h-f-C)*v),u.push(C*v*v)}this.xs=t,this.ys=s,this.c1s=c,this.c2s=d,this.c3s=u}}const WL=1;function uw(e){const t=e.nodeType===WL?e:e.parentElement;if(!t)return null;const{top:s,left:i}=t.getBoundingClientRect();return{x:i,y:s}}function pa(e){return{x:e.clientX,y:e.clientY}}function jL(e){var t;return e.nodeName==="IMG"&&(zL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function _L(e,t,s,i){let o=e?t.width:s,n=e?t.height:i;return dw()&&e&&(n/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:n}}function UL(e,t,s,i,o){const n=jL(t),a=uw(n?e:t),l={x:s.x-a.x,y:s.y-a.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:u,anchorY:h}=i,{dragPreviewWidth:g,dragPreviewHeight:f}=_L(n,t,c,d),v=()=>{let E=new Lg([0,.5,1],[l.y,l.y/d*f,l.y+f-d]).interpolate(h);return dw()&&n&&(E+=(window.devicePixelRatio-1)*f),E},C=()=>new Lg([0,.5,1],[l.x,l.x/c*g,l.x+g-c]).interpolate(u),{offsetX:w,offsetY:b}=o,x=w===0||w,y=b===0||b;return{x:x?w:C(),y:y?b:v()}}class $L{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,s){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=s}}function qL(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Og(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable}))),i.forEach(function(o){qL(e,o,s[o])})}return e}class KL{profile(){var t,s;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((s=this.dragOverTargetIds)===null||s===void 0?void 0:s.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var s;(s=this.window)===null||s===void 0||s.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,s,i){return this.sourcePreviewNodeOptions.set(t,i),this.sourcePreviewNodes.set(t,s),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,s,i){this.sourceNodes.set(t,s),this.sourceNodeOptions.set(t,i);const o=r=>this.handleDragStart(r,t),n=r=>this.handleSelectStart(r);return s.setAttribute("draggable","true"),s.addEventListener("dragstart",o),s.addEventListener("selectstart",n),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),s.removeEventListener("dragstart",o),s.removeEventListener("selectstart",n),s.setAttribute("draggable","false")}}connectDropTarget(t,s){const i=r=>this.handleDragEnter(r,t),o=r=>this.handleDragOver(r,t),n=r=>this.handleDrop(r,t);return s.addEventListener("dragenter",i),s.addEventListener("dragover",o),s.addEventListener("drop",n),()=>{s.removeEventListener("dragenter",i),s.removeEventListener("dragover",o),s.removeEventListener("drop",n)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourceNodeOptions.get(t);return Og({dropEffect:this.altKeyPressed?"copy":"move"},s||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourcePreviewNodeOptions.get(t);return Og({anchorX:.5,anchorY:.5,captureDraggingState:!1},s||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Ag).some(s=>Ag[s]===t)}beginDragNativeItem(t,s){this.clearCurrentDragSourceNode(),this.currentNativeSource=VL(t,s),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const s=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},s)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,s){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(s))}handleDragEnter(t,s){this.dragEnterTargetIds.unshift(s)}handleDragOver(t,s){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(s)}handleDrop(t,s){this.dropTargetIds.unshift(s)}constructor(t,s,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const n=this.sourceNodes.get(o);return n&&uw(n)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:n}=this;this.dragStartSourceIds=null;const r=pa(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(n||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:a}=o,l=td(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const d=this.monitor.getSourceId(),u=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||u;if(h){const{anchorX:g,anchorY:f,offsetX:v,offsetY:C}=this.getCurrentSourcePreviewNodeOptions(),x=UL(u,h,r,{anchorX:g,anchorY:f},{offsetX:v,offsetY:C});a.setDragImage(h,x.x,x.y)}}try{a?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var n;(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:a}=o,l=td(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:n}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,n.length>0&&this.actions.hover(n,{clientOffset:pa(o)}),n.some(a=>this.monitor.canDropOnTarget(a))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var n;(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:n}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=pa(o),this.scheduleHover(n),(n||[]).some(a=>this.monitor.canDropOnTarget(a))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var n;o.preventDefault(),(n=this.currentNativeSource)===null||n===void 0||n.loadDataTransfer(o.dataTransfer)}else td(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:n}=this;this.dropTargetIds=[],this.actions.hover(n,{clientOffset:pa(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const n=o.target;typeof n.dragDrop=="function"&&(n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"||n.isContentEditable||(o.preventDefault(),n.dragDrop()))},this.options=new $L(s,i),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new GL(this.isNodeInDocument)}}const YL=function(t,s,i){return new KL(t,s,i)},XL=({onChange:e,emptyTextFirstLine:t,emptyTextSecondLine:s,emptyButtonLabel:i,acceptTypes:o,maxFilesCount:n,multiple:r,fileFormatError:a,fileCountError:l,fileSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u})=>{const h=p.useRef(null),g=p.useRef(null),[f,v]=p.useState([]),[C,w]=p.useState(!1),[b,x]=p.useState(!1),y=p.useCallback(V=>{const H=V.target.files;if(H&&H.length>0){const A=Array.from(H),de=d?.(A),k=u?.(A);de?w(!0):k?x(!0):e(A)}},[d,u,e]),S=p.useCallback(V=>n&&V?.length>n,[n]),E=p.useMemo(()=>C||b||S(f),[C,b,S,f]),R=()=>{v([]),w(!1),x(!1)},F=p.useMemo(()=>C?m.jsx(ls,{text:a}):b?m.jsx(ls,{text:c}):S(f)?m.jsx(ls,{text:l}):null,[l,a,c,f,S,C,b]);p.useEffect(()=>{R()},[o]);const[{isOver:D,canDrop:P},T]=wf(()=>({accept:[fh],drop(V){const H=V.files;!d?.(H)&&!u?.(H)&&!S(H)&&e(H),R()},collect:V=>({isOver:V.isOver(),canDrop:V.canDrop()})}),[y]),M=V=>{(V.key==="Enter"||V.key==="Space")&&(V.preventDefault(),g.current?.click())},N=V=>{V?.preventDefault();const H=Array.from(V.dataTransfer?.items??[]);w(!!d?.(H)),x(!!u?.(H)),v(H)},q=V=>{V.target===V.currentTarget&&R()},L=pe("border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",!P&&!E&&"border-primary",P&&(D?"border-accent-primary":"border-hover"),E&&"border-error");return T(h),m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:L,ref:h,onDragOver:N,onDragLeave:q,children:[m.jsxs("label",{htmlFor:"file",tabIndex:0,onKeyDown:M,className:"flex flex-col items-center cursor-pointer h-full w-full text-secondary dial-tiny-text justify-center",children:[t&&m.jsx("p",{className:"mb-1",children:t}),s&&m.jsx("p",{className:"mb-0.5",children:s}),i&&m.jsx(Ss,{appearance:ke.Ghost,label:i,onClick:()=>g.current?.click()})]}),m.jsx("input",{multiple:r,id:"file",type:"file",ref:g,hidden:!0,accept:o,onChange:y})]}),m.jsx(m.Fragment,{children:F})]})},ZL=({iconBefore:e,className:t,error:s,...i})=>{const o=i.invalid,n=()=>m.jsx("div",{className:"mr-2",children:o?m.jsx(z.IconExclamationCircle,{...J,className:"text-error"}):e});return m.jsx(on,{...i,iconBefore:n(),containerClassName:"h-[40px] p-0",className:pe("rounded-r-none border-r-0",o&&"text-error",t)})},hw=e=>{const{files:t,iconBeforeInput:s,dynamicIcon:i,onChange:o,isInvalid:n,errorText:r,removeButtonAriaLabel:a,getIsMultiFilesSizeError:l,multiFilesSizeError:c}=e,d=(g,f)=>{g.stopPropagation(),o(t?.filter(v=>v.name!==f)||[])},u=g=>m.jsx(ZC,{"aria-label":a,onClick:f=>d(f,g)}),h=g=>{o(g)};return!t||t.length===0?m.jsx(Ex,{backend:YL,children:m.jsx(XL,{...e,onChange:h})}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex-1 min-h-0 border border-solid border-primary rounded p-2 overflow-y-auto",children:t&&t.length>0&&m.jsx("div",{className:"flex flex-col gap-y-1",children:t.map((g,f)=>m.jsx(ZL,{id:g.name,value:g.name,iconAfter:u(g.name),iconBefore:s||i?.(g.name),invalid:n?.(g),error:r},g.name+f))})}),l?.(t)&&m.jsx(ls,{text:c})]})},QL=({onChange:e,fieldTitle:t,elementId:s,files:i,maxFilesCount:o,maxFileSize:n,maxMultiFilesSize:r,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,multiple:u=!0,acceptTypes:h,deleteAllButtonLabel:g,addButtonLabel:f,additionalActionButtons:v,...C})=>{const w=p.useRef(null),b=()=>w.current?.click(),x=()=>{e([])},y=p.useCallback(F=>F?.some(D=>!(h==="/"||h?.toLowerCase()?.includes(D?.type?.toLowerCase()))),[h]),S=p.useCallback(F=>{if(!n)return!1;const D=n*(1024*1024);return F?.some(P=>{const T=P.size;return!!T&&T>D})},[n]),E=p.useCallback(F=>{if(!r||!u)return!1;const D=r*1024*1024;return F.reduce((T,M)=>T+M.size,0)>D},[r,u]),R=p.useCallback(F=>{const D=F.target.files;if(D&&D.length>0){const P=Array.from(D),T=y(P),M=S(P);!T&&!M&&e([...i||[],...P])}},[y,S,e,i]);return m.jsxs("div",{className:"h-full flex flex-col",children:[m.jsxs("div",{className:"flex justify-between items-center pb-1 min-h-[42px]",children:[m.jsx(Wi,{label:`${t}: ${u?i?.length||0:""}`,htmlFor:s}),u&&!!i?.length&&m.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[m.jsx(Fs,{label:g,iconBefore:m.jsx(z.IconTrashX,{...J}),onClick:x}),(o?o>i?.length:!0)&&m.jsx(Ss,{appearance:ke.Ghost,iconBefore:m.jsx(z.IconPlus,{...J}),label:f,onClick:b}),v]})]}),i&&i.length>0&&m.jsx("input",{id:"file",type:"file",multiple:u,ref:w,hidden:!0,accept:h,onChange:R}),m.jsx(hw,{files:i,onChange:e,acceptTypes:h,maxFilesCount:o,multiple:u,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,getIsFileFormatError:y,getIsFileSizeError:S,getIsMultiFilesSizeError:E,...C})]})},JL=m.jsx(z.IconChevronDown,{size:vt.SM}),e7=m.jsx(z.IconChevronUp,{size:vt.SM}),tu=({variant:e,appearance:t,items:s,...i})=>{const[o,n]=p.useState(!1),r=p.useMemo(()=>o?e7:JL,[o]);return m.jsx("div",{children:m.jsx(Pt,{menu:{items:s},onOpenChange:a=>n(a),children:m.jsx(ss,{...i,iconAfter:r,variant:e||ze.Primary,appearance:t||ke.Solid})})})},pw=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z",fill:"currentColor"})),gw=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z",fill:"currentColor"})),mh=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),vh=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ch=e=>Se.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Se.createElement("path",{d:"M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z",stroke:"#7F8792",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));var Eo=(e=>(e.MyFiles="my_files",e.Shared="shared",e.Organization="organization",e.Review="review",e))(Eo||{}),Y=(e=>(e.AddSibling="addSibling",e.AddChild="addChild",e.Duplicate="duplicate",e.Copy="copy",e.Move="move",e.Download="download",e.Delete="delete",e.Rename="rename",e.Info="info",e.Unshare="unshare",e.RemoveAccess="removeAccess",e.ManagePermissions="managePermissions",e.Preview="preview",e.OpenInNewTab="openInNewTab",e))(Y||{}),lt=(e=>(e.Replace="replace",e.Duplicate="duplicate",e.Cancel="cancel",e))(lt||{}),Nt=(e=>(e.ReplaceAll="replaceAll",e.DuplicateAll="duplicateAll",e.DecideForEach="decideForEach",e))(Nt||{}),ct=(e=>(e.Copy="copy",e.Move="move",e))(ct||{}),Go=(e=>(e.Tree="tree",e.Grid="grid",e))(Go||{}),dt=(e=>(e.Name="name",e.UpdatedAt="updatedAt",e.Size="size",e.Author="author",e.Owner="owner",e.Path="path",e.Actions="__actions",e.Version="version",e))(dt||{});const t7="w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1",Ng="w-full text-secondary flex items-center gap-2",s7="flex min-h-0 min-w-0 h-full gap-4 overflow-hidden",i7="flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4",o7="h-full rounded bg-layer-3 text-secondary min-w-0",n7="flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0",r7="opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto",a7=280,l7="Files",oi=20,c7="Files",sd=".dial_folder",d7=280,u7=460,id=44,h7=56,p7=800,g7=[dt.Name,dt.UpdatedAt,dt.Size,dt.Author,dt.Actions];var ye=(e=>(e.ITEM="item",e.FOLDER="folder",e))(ye||{}),wh=(e=>(e.FILE="FILE",e.PROMPT="PROMPT",e.CONVERSATION="CONVERSATION",e.APPLICATION="APPLICATION",e.TOOLSET="TOOL_SET",e))(wh||{}),Yi=(e=>(e.READ="READ",e.WRITE="WRITE",e.SHARE="SHARE",e))(Yi||{});const Hg=({open:e,onClose:t,onReplace:s,onDuplicate:i,onDecideForEach:o,conflictingFiles:n,singleFileTitle:r="Replace Or Duplicate Item",multipleFilesTitle:a="Replace Or Duplicate Items",message:l,actionLabels:c,strategyLabels:d,confirmLabel:u="Confirm",cancelLabel:h="Cancel",nameColumnLabel:g="Name",actionColumnLabel:f="Action"})=>{const v=n.length===1,C=v?n[0]?.name:"",w=c?.[lt.Replace]??"Replace",b=c?.[lt.Duplicate]??"Duplicate",x=c?.[lt.Cancel]??"Cancel",y=d?.[Nt.ReplaceAll]??"Replace all",S=d?.[Nt.DuplicateAll]??"Duplicate all",E=d?.[Nt.DecideForEach]??"Decide for each",[R,F]=p.useState(lt.Replace),[D,P]=p.useState(Nt.ReplaceAll),[T,M]=p.useState(new Map(n.map(Q=>[Q.path,lt.Replace]))),[N,q]=p.useState(void 0),L=v?r:a,V=m.jsxs(m.Fragment,{children:["Item with the name ",m.jsxs("span",{className:"text-primary",children:['"',C,'"']})," ","already exists in this destination."]}),H=`${n.length} items with the same names already exist in this destination.`,A=l??(v?V:H),de=p.useMemo(()=>[{id:lt.Replace,name:w},{id:lt.Duplicate,name:b}],[w,b]),k=p.useMemo(()=>n.map(Q=>({id:Q.path,name:Q.name,path:Q.path,nodeType:Q.nodeType??ye.ITEM,action:T.get(Q.path)||lt.Replace})),[n,T]),B=p.useMemo(()=>[{field:"name",headerName:g,flex:1,minWidth:200,floatingFilter:!1,filter:!1,resizable:!1,cellRenderer:Q=>Q.data?.nodeType===ye.FOLDER?m.jsx(ml,{name:Q.data.name,iconSize:oi}):m.jsx(fl,{name:Q.data.name,iconSize:oi})},{field:"action",headerName:f,width:140,suppressSizeToFit:!0,sortable:!1,filter:!1,floatingFilter:!1,resizable:!1,cellRenderer:Q=>{if(!Q.data)return null;const j=[{key:lt.Replace,label:w,icon:m.jsx(z.IconCircleFilled,{size:10,className:"text-accent-tertiary"})},{key:lt.Duplicate,label:b,icon:m.jsx(z.IconCircleFilled,{size:10,className:"text-accent-secondary"})},{key:lt.Cancel,label:x,icon:m.jsx(z.IconCircleFilled,{size:10,className:"text-error"})}],ge=j.find(Z=>Z.key===Q.data.action),ie=N===Q.data.path;return m.jsx("div",{className:"flex items-center h-full",children:m.jsx(Pt,{trigger:[Gt.Click],open:ie,menu:{items:j,onClick:({key:Z})=>{M(_=>{const ae=new Map(_);return ae.set(Q.data.path,Z),ae}),q(void 0)}},placement:"bottom-start",matchReferenceWidth:!1,allowedPlacements:["bottom-start","top-start"],onOpenChange:Z=>{q(Z?Q.data.path:void 0)},children:m.jsxs("button",{type:"button",className:"flex items-center gap-2",children:[m.jsxs("span",{className:"flex items-center gap-2",children:[ge?.icon,ge?.label??w]}),m.jsx(z.IconChevronDown,{size:vt.SM,className:pe("text-secondary transition-transform",ie&&"rotate-180")})]})})})}}],[g,f,w,b,x,N]),U=p.useMemo(()=>[{id:Nt.ReplaceAll,name:y},{id:Nt.DuplicateAll,name:S},{id:Nt.DecideForEach,name:E,content:D===Nt.DecideForEach?m.jsx("div",{className:"mt-4",children:m.jsx(uh,{columnDefs:B,rowData:k,getRowId:Q=>Q.id,wrapCustomCellRenderers:!1,alternateOddRowColors:!1,additionalGridOptions:{domLayout:"autoHeight"}})}):void 0}],[y,S,E,D,B,k]),W=p.useCallback(()=>{F(lt.Replace),P(Nt.ReplaceAll),M(new Map(n.map(Q=>[Q.path,lt.Replace])))},[n]),re=p.useCallback(()=>{W(),t()},[W,t]),be=p.useCallback(()=>{if(W(),v)R===lt.Replace?s():i();else if(D===Nt.ReplaceAll)s();else if(D===Nt.DuplicateAll)i();else if(D===Nt.DecideForEach&&o){const Q=n.map(j=>({file:j,action:T.get(j.path)||lt.Replace}));o(Q)}},[W,v,R,s,i,D,o,n,T]);return m.jsx(Ki,{open:e,onClose:re,size:v?jt.Sm:jt.Md,className:pe([!v&&"w-[600px]"]),header:L,dividers:!1,preventKeyboardOnOpen:!0,footer:m.jsxs("div",{className:"flex justify-end gap-3 py-4 px-6 border-t border-tertiary",children:[m.jsx(Fs,{onClick:re,label:h}),m.jsx(Ss,{onClick:be,label:u})]}),children:m.jsxs("div",{className:"px-6 py-4",children:[m.jsx("p",{className:"text-secondary mb-4 break-words",children:A}),v?m.jsx(Ia,{elementId:"single-file-conflict",radioButtons:de,activeRadioButton:R,orientation:Ai.Column,onChange:Q=>F(Q)}):m.jsx(Ia,{elementId:"multiple-files-conflict",radioButtons:U,activeRadioButton:D,orientation:Ai.Column,onChange:Q=>P(Q),formItemChildrenClassName:"gap-3"})]})})},f7=({getContextMenuItems:e,isRowDisabled:t,allowedFileTypes:s,maxSelectableFileSize:i,buttonClassName:o})=>{const n=p.useRef(e);p.useEffect(()=>{n.current=e},[e]);const r=p.useCallback(l=>{if(!l.data||t(l.data,s,i))return null;const d=l.data?n.current?.(l.data)??[]:[];return d.length?m.jsx(Pt,{placement:"bottom-start",allowedPlacements:["top-start","top-end","bottom-start"],menu:{items:d},className:ne("sticky right-0",o),children:m.jsx(Ye,{className:"text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",icon:m.jsx(z.IconDotsVertical,{...J})})}):null},[s,i,o,t]);return{actionsColumnDef:p.useMemo(()=>({colId:"__actions",headerName:"",width:44,minWidth:44,maxWidth:44,suppressSizeToFit:!0,sortable:!1,resizable:!1,filter:!1,floatingFilter:!1,cellRenderer:r}),[r])}},m7=({onRename:e})=>{const[t,s]=p.useState(Go.Grid),i=p.useCallback(n=>{e(n),s(Go.Grid)},[e]),o=p.useCallback(n=>{e(n),s(Go.Tree)},[e]);return{renameTriggerView:t,onGridRename:i,onTreeRename:o}};function v7(e,t){const s=p.useRef(null),[i,o]=p.useState(!1);return p.useEffect(()=>{if(!s.current)return;const n=new ResizeObserver(([r])=>{const a=r.contentRect.width;o(a<e)});return n.observe(t?.current||s?.current),()=>n.disconnect()},[e,t]),{containerRef:s,isBelowBreakpoint:i}}var od={};const C7={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-propmap+json":{source:"iana",compressible:!0},"application/alto-propmapparams+json":{source:"iana",compressible:!0},"application/alto-tips+json":{source:"iana",compressible:!0},"application/alto-tipsparams+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/appinstaller":{compressible:!1,extensions:["appinstaller"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/appx":{compressible:!1,extensions:["appx"]},"application/appxbundle":{compressible:!1,extensions:["appxbundle"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/automationml-aml+xml":{source:"iana",compressible:!0,extensions:["aml"]},"application/automationml-amlx+zip":{source:"iana",compressible:!1,extensions:["amlx"]},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/bufr":{source:"iana"},"application/c2pa":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/ce+cbor":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/cid-edhoc+cbor-seq":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/city+json-seq":{source:"iana"},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-eap":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/concise-problem-details+cbor":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cose-x509":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwl":{source:"iana",extensions:["cwl"]},"application/cwl+json":{source:"iana",compressible:!0},"application/cwl+yaml":{source:"iana"},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana",extensions:["dcm"]},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dpop+jwt":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/eat+cwt":{source:"iana"},"application/eat+jwt":{source:"iana"},"application/eat-bun+cbor":{source:"iana"},"application/eat-bun+json":{source:"iana",compressible:!0},"application/eat-ucs+cbor":{source:"iana"},"application/eat-ucs+json":{source:"iana",compressible:!0},"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/edhoc+cbor-seq":{source:"iana"},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.legacyesn+json":{source:"iana",compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/entity-statement+jwt":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdf":{source:"iana",extensions:["fdf"]},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geopose+json":{source:"iana",compressible:!0},"application/geoxacml+json":{source:"iana",compressible:!0},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gnap-binding-jws":{source:"iana"},"application/gnap-binding-jwsd":{source:"iana"},"application/gnap-binding-rotation-jws":{source:"iana"},"application/gnap-binding-rotation-jwsd":{source:"iana"},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/grib":{source:"iana"},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"iana",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/jscontact+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jsonpath":{source:"iana"},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwk-set+jwt":{source:"iana"},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/linkset":{source:"iana"},"application/linkset+json":{source:"iana",compressible:!0},"application/load-control+xml":{source:"iana",compressible:!0},"application/logout+jwt":{source:"iana"},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msix":{compressible:!1,extensions:["msix"]},"application/msixbundle":{compressible:!1,extensions:["msixbundle"]},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!0,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/ohttp-keys":{source:"iana"},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["sig","asc"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/private-token-issuer-directory":{source:"iana"},"application/private-token-request":{source:"iana"},"application/private-token-response":{source:"iana"},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/provided-claims+jwt":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.implied-document+xml":{source:"iana",compressible:!0},"application/prs.implied-executable":{source:"iana"},"application/prs.implied-object+json":{source:"iana",compressible:!0},"application/prs.implied-object+json-seq":{source:"iana"},"application/prs.implied-object+yaml":{source:"iana"},"application/prs.implied-structure":{source:"iana"},"application/prs.mayfile":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.vcfbzip2":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0,extensions:["xsf"]},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"apache"},"application/reputon+json":{source:"iana",compressible:!0},"application/resolve-response+jwt":{source:"iana"},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-checklist":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-signed-tal":{source:"iana"},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"apache"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana",extensions:["sql"]},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/sslkeylogfile":{source:"iana"},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/st2110-41":{source:"iana"},"application/stix+json":{source:"iana",compressible:!0},"application/stratum":{source:"iana"},"application/swid+cbor":{source:"iana"},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tm+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toc+cbor":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{source:"iana",compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/trust-chain+json":{source:"iana",compressible:!0},"application/trust-mark+jwt":{source:"iana"},"application/trust-mark-delegation+jwt":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/uccs+cbor":{source:"iana"},"application/ujcs+json":{source:"iana",compressible:!0},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vc":{source:"iana"},"application/vc+cose":{source:"iana"},"application/vc+jwt":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.1ob":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.5gsa2x":{source:"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gsv2x":{source:"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.crs+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.seal-group-doc+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.v2x":{source:"iana"},"application/vnd.3gpp.vae-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acm.addressxfer+json":{source:"iana",compressible:!0},"application/vnd.acm.chatbot+json":{source:"iana",compressible:!0},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"apache",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"apache"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.parquet":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.apexlang":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"apache"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autodesk.fbx":{extensions:["fbx"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:"iana",compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:"iana",compressible:!1},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.bzip3":{source:"iana"},"application/vnd.c3voc.schedule+xml":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:"iana"},"application/vnd.cncf.helm.config.v1+json":{source:"iana",compressible:!0},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datalog":{source:"iana"},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.dcmp+xml":{source:"iana",compressible:!0,extensions:["dcmp"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.eln+zip":{source:"iana",compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.erofs":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"apache",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{source:"iana",charset:"XML-BASED",compressible:!0},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.freelog.comic":{source:"iana"},"application/vnd.frogans.fnc":{source:"apache",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"apache",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.ga4gh.passport+jwt":{source:"iana"},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.genozip":{source:"iana"},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.ebuild":{source:"iana"},"application/vnd.gentoo.eclass":{source:"iana"},"application/vnd.gentoo.gpkg":{source:"iana"},"application/vnd.gentoo.manifest":{source:"iana"},"application/vnd.gentoo.pkgmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.xpak":{source:"iana"},"application/vnd.geo+json":{source:"apache",compressible:!0},"application/vnd.geocube+xml":{source:"apache",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.pinboard":{source:"iana"},"application/vnd.geogebra.slides":{source:"iana",extensions:["ggs"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.gnu.taler.exchange+json":{source:"iana",compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:"iana",compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:["gdraw"]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.script":{compressible:!1,extensions:["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:["gsite"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"apache",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0,extensions:["xdcf"]},"application/vnd.gpxsee.map+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.hsl":{source:"iana"},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"apache"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"apache",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"apache"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.ipfs.ipns-record":{source:"iana"},"application/vnd.ipld.car":{source:"iana"},"application/vnd.ipld.dag-cbor":{source:"iana"},"application/vnd.ipld.dag-json":{source:"iana"},"application/vnd.ipld.raw":{source:"iana"},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kdl":{source:"iana"},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.keyman.kmp+zip":{source:"iana",compressible:!1},"application/vnd.keyman.kmx":{source:"iana"},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.ldev.productlicensing":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.mdl":{source:"iana"},"application/vnd.mdl-mbsdf":{source:"iana"},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.medicalholodeck.recordxr":{source:"iana"},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mermaid":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.modl":{source:"iana"},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-visio.viewer":{extensions:["vdx"]},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msgpack":{source:"iana"},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:"iana"},"application/vnd.nato.bindingdataobject+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:"iana",compressible:!0,extensions:["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:"iana",compressible:!1},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"apache",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oai.workflows":{source:"iana"},"application/vnd.oai.workflows+json":{source:"iana",compressible:!0},"application/vnd.oai.workflows+yaml":{source:"iana"},"application/vnd.oasis.opendocument.base":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"apache",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-master-template":{source:"iana"},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.onvif.metadata":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openvpi.dspx+json":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.procrate.brushset":{extensions:["brushset"]},"application/vnd.procreate.brush":{extensions:["brush"]},"application/vnd.procreate.dream":{extensions:["drm"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.pt.mundusmundi":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0,extensions:["xhtm"]},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.relpipe":{source:"iana"},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.sketchometry":{source:"iana"},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.smintio.portals.archive":{source:"iana"},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sybyl.mol2":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uic.osdm+json":{source:"iana",compressible:!0},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml","uo"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:"iana"},"application/vnd.veraison.tsm-report+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vocalshaper.vsp4":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.wasmflow.wafl":{source:"iana"},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordlift":{source:"iana"},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xarin.cpj":{source:"iana"},"application/vnd.xecrets-encrypted":{source:"iana"},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/voucher-jws+json":{source:"iana",compressible:!0},"application/vp":{source:"iana"},"application/vp+cose":{source:"iana"},"application/vp+jwt":{source:"iana"},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blender":{extensions:["blend"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-compressed":{extensions:["rar"]},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-ipynb+json":{compressible:!0,extensions:["ipynb"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zip-compressed":{extensions:["zip"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xfdf":{source:"iana",extensions:["xfdf"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yaml":{source:"iana"},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+cbor":{source:"iana"},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yang-sid+json":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zip+dotlottie":{extensions:["lottie"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana",extensions:["adts","aac"]},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flac":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/matroska":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/midi-clip":{source:"iana"},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a","m4b"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"apache"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{source:"iana",compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp","dib"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/dpx":{source:"iana",extensions:["dpx"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/j2c":{source:"iana"},"image/jaii":{source:"iana",extensions:["jaii"]},"image/jais":{source:"iana",extensions:["jais"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpg","jpeg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm","jpgm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxl":{source:"iana",extensions:["jxl"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1,extensions:["jfif"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif","btf"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.clip":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"iana",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-adobe-dng":{extensions:["dng"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-emf":{source:"iana"},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-wmf":{source:"iana"},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/bhttp":{source:"iana"},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/mls":{source:"iana"},"message/news":{source:"apache"},"message/ohttp-req":{source:"iana"},"message/ohttp-res":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime","mht","mhtml"]},"message/s-http":{source:"apache"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"apache"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/jt":{source:"iana",extensions:["jt"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/prc":{source:"iana",extensions:["prc"]},"model/step":{source:"iana",extensions:["step","stp","stpnc","p21","210"]},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/u3d":{source:"iana",extensions:["u3d"]},"model/vnd.bary":{source:"iana",extensions:["bary"]},"model/vnd.cld":{source:"iana",extensions:["cld"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana",extensions:["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usda":{source:"iana",extensions:["usda"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"apache"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hl7v2":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/prs.texi":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.exchangeable":{source:"iana"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"apache"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.vcf":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vnd.zoo.kcl":{source:"iana"},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/wgsl":{source:"iana",extensions:["wgsl"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/evc":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/h266":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/lottie+json":{source:"iana",compressible:!0},"video/matroska":{source:"iana"},"video/matroska-3d":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts","m2t","m2ts","mts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.planar":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var nd,Gg;function w7(){return Gg||(Gg=1,nd=C7),nd}const b7={},x7=Object.freeze(Object.defineProperty({__proto__:null,default:b7},Symbol.toStringTag,{value:"Module"})),y7=Jw(x7);var rd,Bg;function S7(){if(Bg)return rd;Bg=1;var e={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},t={nginx:10,apache:20,iana:40,default:30},s={application:1,font:2,audio:2,video:3,default:0};return rd=function(o,n="default"){if(o==="application/octet-stream")return 0;const[r,a]=o.split("/"),l=a.replace(/(\.|x-).*/,"$1"),c=e[l]||e.default,d=t[n]||t.default,u=s[r]||s.default,h=1-o.length/100;return c+d+u+h},rd}var Vg;function R7(){return Vg||(Vg=1,(function(e){var t=w7(),s=y7.extname,i=S7(),o=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=r,e.charsets={lookup:r},e.contentType=a,e.extension=l,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function r(g){if(!g||typeof g!="string")return!1;var f=o.exec(g),v=f&&t[f[1].toLowerCase()];return v&&v.charset?v.charset:f&&n.test(f[1])?"UTF-8":!1}function a(g){if(!g||typeof g!="string")return!1;var f=g.indexOf("/")===-1?e.lookup(g):g;if(!f)return!1;if(f.indexOf("charset")===-1){var v=e.charset(f);v&&(f+="; charset="+v.toLowerCase())}return f}function l(g){if(!g||typeof g!="string")return!1;var f=o.exec(g),v=f&&e.extensions[f[1].toLowerCase()];return!v||!v.length?!1:v[0]}function c(g){if(!g||typeof g!="string")return!1;var f=s("x."+g).toLowerCase().slice(1);return f&&e.types[f]||!1}function d(g,f){Object.keys(t).forEach(function(C){var w=t[C],b=w.extensions;if(!(!b||!b.length)){g[C]=b;for(var x=0;x<b.length;x++){var y=b[x];f[y]=u(y,f[y],C);const S=h(y,f[y],C);S!==f[y]&&e._extensionConflicts.push([y,S,f[y]])}}})}function u(g,f,v){var C=f?i(f,t[f].source):0,w=v?i(v,t[v].source):0;return C>w?f:v}function h(g,f,v){var C=["nginx","apache",void 0,"iana"],w=f?C.indexOf(t[f].source):0,b=v?C.indexOf(t[v].source):0;return e.types[l]!=="application/octet-stream"&&(w>b||w===b&&e.types[l]?.slice(0,12)==="application/")||w>b?f:v}})(od)),od}var zg=R7();const Vs=(e,t)=>{if(!(!e||!e.length||!t))for(const s of e){if(s.path===t)return s;const i=Vs(s.items,t);if(i)return i}},ad=(e,t)=>{if(!e?.length)return;if(!t)return e[0];const s=Vs(e,t);if(s&&s.nodeType===ye.FOLDER)return s;const i=t.split("/").filter(Boolean);if(i.length<=1)return e[0];const o="/"+i.slice(0,i.length-1).join("/");return Vs(e,o)??e[0]},Bo=e=>(e??"").toLowerCase(),F7=e=>Bo(e).replace(/^\./,""),E7=e=>{if(!e)return[];const t=[],s=i=>{const o=i.items??[];for(const n of o)t.push(n),n.nodeType===ye.FOLDER&&s(n)};return s(e),t},fw=e=>(e.name??e.path.split("/").pop()??"").startsWith("."),ar=e=>{if(!e)return"0 bytes";const t=1024,s=t*1024;return e>=s?`${(e/s).toFixed(1)} MB`:e>=t?`${(e/t).toFixed(0)} KB`:`${e} bytes`},D7=(e,t="en-US",s={year:"numeric",month:"short",day:"2-digit"})=>{if(!e)return"";try{return new Intl.DateTimeFormat(t,s).format(new Date(e))}catch{return e}};function mw(e,t,s){if(!e||e.includes("*/*"))return!0;const i=t.toLowerCase(),o=s&&s.includes(".")?`.${s.split(".").at(-1).toLowerCase()}`:void 0;return e.some(n=>{const r=n.toLowerCase();if(r.startsWith("."))return o===r;if(r.endsWith("/*")){const a=r.slice(0,-1);return i.startsWith(a)}return i===r})}const P7=e=>e?.map(t=>t.endsWith("/*")?t.replace("/*","s"):T7(t).flat().map(s=>`.${s}`)).flat().join(", ")||"",T7=e=>{const[t,s]=e.split("/");return t==="*"?["all"]:s==="*"?Object.entries(zg.extensions).reduce((i,[o,n])=>{const[r]=o.split("/");return r===t&&i.push(...n),i},[]):zg.extensions[e]||[]},Pl=e=>{if(!e)return;const t=e.flags.replace(/[gy]/g,"");return new RegExp(e.source,t)};function bh(e,t,s){if(t&&Pl(t)?.test(e.name))return s??`This ${e.isFolder?"folder":"file"} contains forbidden characters in its name. Please rename it.`}const k7=(e,t,s,i,o)=>{if(e.nodeType===ye.FOLDER)return;const n=!e.contentLength||s==null||e.contentLength<=s;if(!(!e.contentType||mw(t,e.contentType,e.name)))return i??(t?.length?`Unsupported file type. Supported types: ${P7(t)}.`:"Unsupported file type.");if(!n)return o??`File is too large. Maximum size: ${ar(s)}.`},M7=e=>{const[t,s]=p.useState(e?.showHiddenFiles??!1),i=!!e?.onShowHiddenFilesChange,o=i?e.showHiddenFiles??!1:t,n=p.useCallback(a=>{i?e?.onShowHiddenFilesChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!o;i?e?.onShowHiddenFilesChange?.(a):s(a)},[o,i,e]);return{areHiddenFilesVisible:o,toggleHiddenFilesVisibility:r,setAreHiddenFilesVisible:n}},I7=e=>{const[t,s]=p.useState(e?.collapsed??!1),i=!!e?.onCollapseChange,o=i?e.collapsed??!1:t,n=p.useCallback(a=>{i?e?.onCollapseChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!o;i?e?.onCollapseChange?.(a):s(a)},[o,i,e]);return{isTreeCollapsed:o,toggleTreeCollapse:r,setIsTreeCollapsed:n}},Wg=(e,t,s)=>{if(!t.has(e))return e;const i=s===ye.FOLDER?(o,n)=>`${o} (${n})`:(o,n)=>{const r=o.lastIndexOf("."),a=r>0,l=a?o.slice(0,r):o,c=a?o.slice(r):"";return`${l} (${n})${c}`};for(let o=1;;o++){const n=i(e,o);if(!t.has(n))return n}},ld=e=>e.name,vw=({getDestinationFiles:e,onResolve:t})=>{const[s,i]=p.useState([]),[o,n]=p.useState(!1),[r,a]=p.useState(null),l=p.useRef(!1),c=p.useCallback(x=>{l.current=!0,i(x),n(!0)},[]),d=p.useCallback(()=>{l.current=!1,n(!1),i([]),a(null)},[]),u=p.useCallback((x,y)=>{const S=e(x),E=new Set(S.map(ld)),R=y.filter(F=>E.has(F.name));return{hasConflicts:R.length>0,conflicts:R}},[e]),h=p.useCallback((x,y,S,E)=>{const R=e(x),F=new Set(R.map(ld));return y.map(D=>{const P=D.name,T=F.has(P),M=S&&T?P:Wg(P,F,D.nodeType);return(!S||!T)&&F.add(M),{sourceUrl:D.path,destinationUrl:`${x}/${M}`,overwrite:S&&T,nodeType:D.nodeType??ye.ITEM,...E??{}}})},[e]),g=p.useCallback((x,y,S,E)=>{const R=e(x),F=new Set(R.map(ld));return y.filter(P=>S.get(P.path)!==lt.Cancel).map(P=>{const T=S.get(P.path),M=F.has(P.name),N=T===lt.Replace&&M,q=N?P.name:Wg(P.name,F,P.nodeType);return N||F.add(q),{sourceUrl:P.path,destinationUrl:`${x}/${q}`,overwrite:N,nodeType:P.nodeType??ye.ITEM,...E??{}}})},[e]),f=p.useCallback((x,y,S)=>{const E=u(x,y);return E.hasConflicts&&(a({files:y,destinationFolder:x,metadata:S}),c(E.conflicts)),E},[u,c]),v=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=h(y,x,!0,S);t?.(E,y),d()},[r,h,t,d]),C=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=h(y,x,!1,S);t?.(E,y),d()},[r,h,t,d]),w=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,E=g(y,x,new Map(s.map(R=>[R.path,lt.Cancel])),S);t?.(E,y),d()},[d,s,t,r,g]),b=p.useCallback(x=>{if(!r)return;const{files:y,destinationFolder:S,metadata:E}=r,R=new Map(x.map(D=>[D.file.path,D.action])),F=g(S,y,R,E);t?.(F,S),d()},[r,g,t,d]);return{conflictingFiles:s,conflictResolutionOpen:o,hasActiveConflictRef:l,checkForConflicts:u,startConflictResolution:f,resolveConflictsWithStrategy:h,resolveConflictsWithDecisions:g,openConflictResolution:c,closeConflictResolution:d,handleReplaceAll:v,handleDuplicateAll:C,handleCancelAll:w,handleDecideForEach:b}},A7=({getDestinationFiles:e,onCopyFiles:t,onMoveToFiles:s,onCopySuccess:i,onMoveSuccess:o,onDuplicateSuccess:n,getCopyHeader:r,getMoveHeader:a})=>{const[l,c]=p.useState(!1),[d,u]=p.useState([]),[h,g]=p.useState([]),[f,v]=p.useState(ct.Copy),[C,w]=p.useState(),[b,x]=p.useState(null),{conflictingFiles:y,conflictResolutionOpen:S,hasActiveConflictRef:E,startConflictResolution:R,resolveConflictsWithStrategy:F,closeConflictResolution:D,openConflictResolution:P,handleReplaceAll:T,handleDuplicateAll:M,handleCancelAll:N,handleDecideForEach:q}=vw({getDestinationFiles:e,onResolve:(ie,Z)=>{ie?.length&&(b?.type===ct.Copy?(t?.(ie,Z),i?.()):b?.type===ct.Move&&b.sourceFolder&&(s?.(ie,b.sourceFolder,Z),o?.()))}}),L=p.useCallback(()=>{u([]),g([]),x(null),w(void 0)},[]),V=p.useCallback(ie=>{const Z=R(ie,d,{type:ct.Copy});if(x({type:ct.Copy}),!Z.hasConflicts){const _=F(ie,d,!1);t?.(_,ie),i?.(),L()}},[d,R,F,t,i,L]),H=p.useCallback((ie,Z)=>{const _=Z||(b?.sourceFolder??"/");if(!R(ie,h,{type:ct.Move,sourceFolderPath:_}).hasConflicts){const G=F(ie,h,!0);s?.(G,_,ie),o?.(),L()}},[h,R,F,s,o,L,b]),A=p.useCallback(()=>{T(),L()},[T,L]),de=p.useCallback(()=>{M(),L()},[M,L]),k=p.useCallback(()=>{N(),L()},[N,L]),B=p.useCallback(ie=>{q(ie),L()},[q,L]),U=p.useCallback(ie=>{const Z=ie.at(0)?.parentPath??"/",_=F(Z,ie,!1);t?.(_,Z),n?.()},[t,n,F]),W=p.useCallback(ie=>{v(ie),c(!0)},[]),re=p.useCallback(()=>{c(!1),E.current||L()},[L,E]),[be,Q]=p.useState(),j=p.useCallback(ie=>{u(ie);const Z=ie[0]?.parentPath??ie[0]?.folderId;w(Z),r&&ie.length>0?Q(r(ie.length,ie[0]?.name)):Q(void 0)},[r]),ge=p.useCallback(ie=>{g(ie);const Z=ie[0]?.parentPath??ie[0]?.folderId;w(Z),x({type:ct.Move,sourceFolder:Z}),a&&ie.length>0?Q(a(ie.length,ie[0]?.name)):Q(void 0)},[a]);return{handleDuplicate:U,handleCloseDestinationFolderPopup:re,handleOpenDestinationFolderPopup:W,handleCopyTo:V,handleMoveTo:H,openDestinationFolderPopup:l,destinationFolderMode:f,destinationFolderTitle:be,handleSetCopiedFiles:j,handleSetMovedFiles:ge,clearState:L,conflictingFiles:y,conflictResolutionOpen:S,openConflictResolution:P,closeConflictResolution:D,handleConflictReplace:A,handleConflictCancel:k,handleConflictDuplicate:de,handleConflictDecideForEach:B,sourceFolder:C}},L7=({path:e,defaultPath:t,onPathChange:s,onSelectionClear:i})=>{const o=e!==void 0,[n,r]=p.useState(t),a=o?e:n,l=p.useCallback(d=>{o||r(d),s?.(d)},[o,s]),c=p.useCallback(d=>{l(d),i?.()},[l,i]);return{currentPath:a,setCurrentPath:l,handlePathChange:c}},O7=({onDeleteFiles:e,onDeleteSuccess:t})=>{const[s,i]=p.useState(!1),[o,n]=p.useState([]),[r,a]=p.useState(""),l=p.useCallback((u,h)=>{n(u),a(h),i(!0)},[]),c=p.useCallback(()=>{i(!1),n([])},[]),d=p.useCallback(()=>{if(e&&o.length>0){const u=o.map(h=>({sourceUrl:h.path,nodeType:h.nodeType}));e(u,r),t?.()}c()},[o,e,t,c,r]);return{deleteConfirmationOpen:s,itemsToDelete:o,openDeleteConfirmation:l,closeDeleteConfirmation:c,confirmDelete:d}},N7=({onDownloadFiles:e,customDownloadItemsAction:t,onDownloadSuccess:s})=>({handleDownloadFiles:p.useCallback(o=>{t&&o.length>0?t(o):e&&o.length>0&&(e(o),s?.())},[e,s,t])}),H7=e=>"dataTransfer"in e&&e.dataTransfer!==null,G7=({onUploadFiles:e,onValidateUpload:t,maxFileSize:s,allowedFileTypes:i,validationMessages:o={},onUploadArchive:n,uploadEnabled:r=!0,currentFolder:a}={})=>{const[l,c]=p.useState(!1),[d,u]=p.useState(!1),[h,g]=p.useState(),f=p.useRef(null),v=p.useRef(""),C=p.useRef([]),w=p.useMemo(()=>!!a?.permissions?.includes(Yi.WRITE),[a]),[b,x]=p.useState(new Map),[y,S]=p.useState(null),E=p.useCallback(G=>!i||i.includes("*/*")?G:G.filter(({fileContent:fe,name:he})=>mw(i,fe.type,he)),[i]),R=p.useCallback(()=>{x(new Map),S(null)},[]),{conflictingFiles:F,conflictResolutionOpen:D,hasActiveConflictRef:P,startConflictResolution:T,closeConflictResolution:M,openConflictResolution:N,handleReplaceAll:q,handleDuplicateAll:L,handleCancelAll:V,handleDecideForEach:H}=vw({getDestinationFiles:()=>C.current,onResolve:(G,fe)=>{if(!r||!w){R();return}if(!y)return;const he=G.map(se=>{const le=b.get(se.sourceUrl);if(!le)return;const Fe=se.destinationUrl.split("/").pop();return{fileContent:le.fileContent,name:Fe}}).filter(Boolean);if(he[0]?.fileContent?.type==="application/zip"){const{fileContent:se,name:le}=he[0];n?.(se,le,fe)}else he.length>0&&e?.(he,fe);R()}});p.useEffect(()=>{r&&w||(c(!1),u(!1),g(void 0),M(),R())},[r,M,R,w]),p.useEffect(()=>{if(!r||!w)return;let G=0;const fe=Fe=>{H7(Fe)&&Fe.dataTransfer.types.includes(c7)&&(G++,u(!0))},he=()=>{G--,G===0&&u(!1)},se=()=>{G=0,u(!1)},le=Fe=>{Fe.preventDefault()};return window.addEventListener("dragenter",fe),window.addEventListener("dragleave",he),window.addEventListener("drop",se),window.addEventListener("dragover",le),()=>{window.removeEventListener("dragenter",fe),window.removeEventListener("dragleave",he),window.removeEventListener("drop",se),window.removeEventListener("dragover",le)}},[r,w]);const A=p.useCallback(G=>s?G.filter(fe=>fe.fileContent.size>s).map(fe=>fe.name):[],[s]),de=p.useCallback((G,fe)=>G.map(he=>({id:he.name,name:he.name,folderId:fe,path:he.name,nodeType:ye.ITEM,parentPath:fe,contentLength:he.fileContent.size})),[]),k=p.useCallback(async(G,fe,he)=>{if(!r||!w)return!1;g(void 0),C.current=he;const se=A(G);if(se.length>0){const Ce=s?(s/1048576).toFixed(2):0,Ee=o.oversizedFiles||`Files exceed maximum size (${Ce}MB): ${se.join(", ")}`;return g(Ee),!1}if(t)try{const Ce=await t(G,he,fe);if(!Ce.valid)return g(Ce.message||o.validationFailed||"Validation failed"),!1}catch{return g(o.validationError||"Validation error occurred"),!1}const le=new Map(G.map(Ce=>[Ce.name,Ce]));x(le);const Fe=de(G,fe);return S({destinationFolder:fe}),T(fe,Fe,{destinationFolder:fe}).hasConflicts?!1:(e?.(G,fe),R(),!0)},[r,e,t,A,s,o,de,T,R,w]),B=p.useCallback(()=>{q(),R()},[q,R]),U=p.useCallback(()=>{L(),R()},[L,R]),W=p.useCallback(()=>{V(),R()},[V,R]),re=p.useCallback(G=>{H(G),R()},[H,R]),be=p.useCallback(()=>{M(),P.current||R()},[M,P,R]),Q=p.useCallback(G=>{!r||!w||(G.preventDefault(),G.stopPropagation(),G.dataTransfer.types.includes("Files")&&c(!0))},[r,w]),j=p.useCallback(G=>{if(!r||!w)return;G.preventDefault(),G.stopPropagation();const fe=G.currentTarget.getBoundingClientRect(),he=G.clientX,se=G.clientY;(he<=fe.left||he>=fe.right||se<=fe.top||se>=fe.bottom)&&c(!1)},[r,w]),ge=p.useCallback(G=>{!r||!w||(G.preventDefault(),G.stopPropagation(),G.dataTransfer.types.includes("Files")&&(G.dataTransfer.dropEffect="copy"))},[r,w]),ie=p.useCallback(async(G,fe,he)=>{if(!r||!w||(G.preventDefault(),G.stopPropagation(),c(!1),!G.dataTransfer.types.includes("Files")))return;const se=Array.from(G.dataTransfer.items||[]),le=[];let Fe=!1;if(se.length>0&&se.forEach(Ee=>{if(Ee.kind==="file"){if(Ee.webkitGetAsEntry?.()?.isDirectory){Fe=!0;return}const _e=Ee.getAsFile?.();_e&&le.push(_e)}}),le.length===0&&G.dataTransfer.files?.length&&le.push(...Array.from(G.dataTransfer.files)),le.length===0){Fe&&g(o.foldersNotSupported||"Folder upload is not supported");return}const Oe=le.map(Ee=>({fileContent:Ee,name:Ee.name})),Ce=E(Oe);if(Ce.length===0){g(o.unsupportedFiles||"Selected files are not supported");return}await k(Ce,fe,he)},[r,E,k,o,w]);p.useEffect(()=>{let G=f.current;G||(G=document.createElement("input"),G.type="file",G.multiple=!0,G.style.display="none",document.body.appendChild(G),f.current=G),i&&i.length>0?G.accept=i.join(","):G.removeAttribute("accept");const fe=async()=>{if(!r||!w){G&&(G.value="");return}if(!G?.files?.length)return;const se=Array.from(G.files).map(Fe=>({fileContent:Fe,name:Fe.name})),le=E(se);if(le.length===0){g(o.unsupportedFiles||"Selected files are not supported"),G.value="";return}await k(le,v.current,C.current),G.value=""};return G.addEventListener("change",fe),()=>{G&&(G.removeEventListener("change",fe),f.current===G&&(document.body.removeChild(G),f.current=null))}},[r,i,E,k,o,w]);const Z=p.useCallback((G,fe)=>{!r||!w||(v.current=G,C.current=fe,f.current&&f.current.click())},[r,w]),_=p.useCallback((G,fe)=>{if(!n||!r||!w)return;const he=document.createElement("input");he.type="file",he.accept=".zip,application/zip",he.multiple=!1,he.style.display="none";const se=()=>{const le=he.files?.[0];if(!le){document.body.removeChild(he);return}const Fe=le.name.replace(/\.zip$/i,""),Oe={id:Fe,name:Fe,folderId:G,path:`${G}/${Fe}`,nodeType:ye.FOLDER,parentPath:G,contentLength:le.size,contentType:le.type};if(C.current=fe,S({destinationFolder:G}),x(new Map([[Oe.path,{fileContent:le,name:Fe}]])),T(G,[Oe],{destinationFolder:G}).hasConflicts){document.body.removeChild(he);return}try{n(le,Fe,G)}finally{document.body.removeChild(he)}};he.addEventListener("change",se),document.body.appendChild(he),he.click()},[n,r,w,T]),ae=p.useCallback(()=>{g(void 0)},[]);return{isDragging:l,isDraggingOverWindow:d,uploadError:h,handleDragEnter:Q,handleDragLeave:j,handleDragOver:ge,handleDrop:ie,clearError:ae,handleUpload:k,openFileDialog:Z,openArchiveDialog:_,fileInputRef:f,uploadConflictingFiles:F,uploadConflictResolutionOpen:D,hasActiveUploadConflictRef:P,openUploadConflictResolution:N,closeUploadConflictResolution:be,handleUploadConflictReplace:B,handleUploadConflictDuplicate:U,handleUploadConflictCancel:W,handleUploadConflictDecideForEach:re}},Cw=p.createContext(void 0),ww={hiddenItemWarning:`${as.Warning}__A dot at the start of the name will make the item hidden`},B7={emptyName:"Name cannot be empty",duplicateName:"An item with this name already exists",hiddenItemWarning:ww.hiddenItemWarning};function V7(e){let t=e.length;for(;t>0&&e[t-1]==="/";)t--;return e.slice(0,t)}function z7(e,t){const s=V7(e),i=s.lastIndexOf("/");return i===-1?t:s.slice(0,i+1)+t}function W7(e){const t=e.lastIndexOf(".");return t===-1||t===0?e:e.substring(0,t)}function jg(e){const t=e.lastIndexOf(".");return t===-1||t===0?"":e.substring(t)}const j7=({items:e,onRenameValidate:t,validationMessages:s,onMoveToFiles:i})=>{const[o,n]=p.useState(),r=p.useMemo(()=>({...B7,...s}),[s]),a=p.useMemo(()=>o?.path,[o]),l=p.useCallback(g=>{const f=Vs(e,g);f&&n(f)},[e]),c=p.useCallback(()=>{n(void 0)},[]),d=p.useCallback(g=>{if(!o||!i){n(void 0);return}const f=o.nodeType===ye.ITEM;let v=g.trim();if(f){const x=jg(o.name);x&&!v.endsWith(x)&&(v=v+x)}if(v===o.name){n(void 0);return}const C=z7(o.path,v),w=o.parentPath;if(!w){n(void 0);return}const b={sourceUrl:o.path,destinationUrl:C,nodeType:o.nodeType};i([b],w,w),n(void 0)},[o,i]),u=p.useCallback((g,f)=>{const v=g.trim();if(!v)return r.emptyName;if(v.startsWith("."))return r.hiddenItemWarning;const C=f.nodeType===ye.ITEM;let w=v;if(C){const x=jg(f.name);x&&!w.endsWith(x)&&(w=w+x)}const b=f.parentPath;if(b){const x=Vs(e,b);if(x&&new Set((x.items??[]).filter(S=>S.path!==f.path).map(S=>S.name.toLowerCase())).has(w.toLowerCase()))return r.duplicateName}if(t){const x=t(w,f);if(x)return x}return null},[t,r,e]),h=p.useCallback(g=>g.nodeType===ye.ITEM?W7(g.name):g.name,[]);return{renamedPath:a,renamedItem:o,renameHandler:l,renameSaveHandler:d,renameCancelHandler:c,renameValidateHandler:u,getDisplayName:h}},bw=e=>{const[t,s]=p.useState(e?.expandedPaths??new Set),i=p.useMemo(()=>!!e?.onExpandedPathsChange,[e?.onExpandedPathsChange]),o=p.useMemo(()=>i?e?.expandedPaths??new Set:t,[i,e?.expandedPaths,t]);p.useEffect(()=>{i&&e?.expandedPaths&&s(new Set(e.expandedPaths))},[i,e?.expandedPaths]);const n=p.useCallback(d=>{i?e?.onExpandedPathsChange?.(d):s(d)},[i,e]),r=p.useCallback(d=>{const u=new Set(o);u.has(d)?u.delete(d):u.add(d),n(u)},[o,n]),a=p.useCallback(()=>{n(new Set)},[n]),l=p.useCallback(d=>{const u=new Set(o);u.add(d),n(u)},[o,n]),c=p.useCallback(d=>{const u=new Set(o);u.delete(d),n(u)},[o,n]);return{expandedPaths:o,setExpandedPaths:n,togglePath:r,collapseAll:a,expandPath:l,collapsePath:c,isControlled:i}},_7=({newActions:e,currentFolder:t,onUploadFiles:s,onCreateFolder:i,onUploadArchive:o,onCreateNewItem:n,isNewButtonDisabled:r})=>{const a=p.useMemo(()=>{const d=[];return e&&(e.newFolder&&d.push({key:"new-folder",label:e.newFolder.label,icon:e?.newFolder?.icon!==void 0?e?.newFolder?.icon:m.jsx(z.IconFolder,{...J,className:"text-secondary"}),onClick:()=>{i&&i()}}),e.newItem&&d.push({key:"new-item",label:e.newItem.label,icon:e?.newItem?.icon!==void 0?e?.newItem?.icon:m.jsx(z.IconPlus,{...J,className:"text-secondary"}),onClick:()=>{n&&n()}}),e.uploadFiles&&d.push({key:"upload-file",label:e.uploadFiles.label,icon:e?.uploadFiles?.icon!==void 0?e?.uploadFiles?.icon:m.jsx(z.IconFile,{...J,className:"text-secondary"}),onClick:()=>{s&&s()}}),e.uploadArchive&&d.push({key:"upload-archive",label:e.uploadArchive.label,icon:e?.uploadArchive?.icon!==void 0?e?.uploadArchive?.icon:m.jsx(z.IconFileZip,{...J,className:"text-secondary"}),onClick:()=>{o&&o()}})),d},[e,i,s,o,n]),l=p.useMemo(()=>a?.length>0,[a]),c=p.useMemo(()=>!t?.permissions?.includes(Yi.WRITE)||!!r,[t,r]);return{newActions:a,isNewButtonVisible:l,isNewButtonDisabled:c}},U7={emptyName:"Folder name cannot be empty",duplicateName:"A folder with this name already exists",hiddenItemWarning:ww.hiddenItemWarning},$7=({currentFolder:e,onCreateFolder:t,onValidateFolderName:s,validationMessages:i})=>{const[o,n]=p.useState(!1),[r,a]=p.useState(null),l=p.useRef(e?.path),c=p.useMemo(()=>({...U7,...i}),[i]);p.useEffect(()=>{const f=e?.path;l.current!==f&&o&&(n(!1),a(null)),l.current=f},[e?.path,o]);const d=p.useCallback(()=>{if(o)return;const f=`__new_folder_${Date.now()}`;a(f),n(!0)},[o]),u=p.useCallback(()=>{n(!1),a(null)},[]),h=p.useCallback(f=>{const v=f.trim();if(!v)return c.emptyName;if(v.startsWith(".")&&v.length>1)return c.hiddenItemWarning;if(e&&new Set((e.items??[]).filter(w=>w.nodeType===ye.FOLDER).map(w=>w.name.toLowerCase())).has(v.toLowerCase()))return c.duplicateName;if(s&&e){const C=s(v,e);if(C)return C}return null},[e,s,c]),g=p.useCallback(async f=>{const v=f.trim();if(!v)return;const w=`${e?.path??"/"}/${v}`,b=`${w}/${sd}`,y={fileContent:new File([],sd,{type:"text/plain"}),name:sd};t&&await t(y,w,b),u()},[e,t,u]);return{isCreatingFolder:o,newFolderTempId:r,startFolderCreation:d,cancelFolderCreation:u,saveFolderCreation:g,validateFolderName:h}},q7=({additionalButtons:e,expandedPathsLength:t,collapseAll:s})=>{const i=t===0;return{additionalButtons:p.useMemo(()=>{const n=ne(["hover:text-accent-primary",i&&"controls-secondary-disable hover:controls-secondary-disable disabled:hover:cursor-default"]);return m.jsxs(m.Fragment,{children:[e,m.jsx(di,{disabled:i,className:n,size:Rt.Small,onClick:s,icon:m.jsx(z.IconCopyMinus,{size:vt.LG,stroke:1.5}),"aria-label":"collapse-all"})]})},[e,i,s])}},K7=({onGetInfo:e})=>{const[t,s]=p.useState(!1),[i,o]=p.useState(void 0),n=p.useCallback(async a=>{o(a),s(!0),e&&await e(a)},[e]),r=p.useCallback(()=>{s(!1),o(void 0)},[]);return{isMetadataPopupOpen:t,selectedFileForMetadata:i,openMetadataPopup:n,closeMetadataPopup:r}};function Y7(e){const t=[];function s(i){for(const o of i)t.push(o),o.items&&s(o.items)}return s(e),t}function _g(e,t){const s=Bo(t);return e.filter(i=>Bo(i.name).includes(s))}function X7({onSearchFiles:e,clearSearchResults:t,currentPath:s,searchResults:i=[],searchInProgress:o=!1,navigationPanelValue:n,onNavigationPanelSearchChange:r,allItems:a=[],activeTab:l}){const[c,d]=p.useState(""),u=p.useRef(!1),h=p.useRef(!1),g=p.useRef([]),f=p.useRef(s),v=p.useRef(l);p.useEffect(()=>{n!=null&&d(String(n))},[n]);const C=String(n??c??"").trim(),w=h.current&&(o||i.length>0||C!==""),b=p.useCallback(E=>{const R=E.trim();if(!R){h.current=!1,u.current=!1;return}h.current=!0,e&&s&&!u.current&&(u.current=!0,e(s,R))},[e,s]),x=p.useCallback(()=>{u.current=!1,h.current=!1,g.current=[],d(""),r?.(""),t?.()},[t,r]),y=p.useCallback(E=>{const R=String(E??"");d(R),r?.(R),R.trim()?b(R):x()},[r,b,x]);p.useEffect(()=>{(f.current!==s||v.current!==l)&&(f.current=s,v.current=l,u.current=!1,h.current=!1,g.current=[],d(""),r?.(""),t?.())},[s,l,r,t]),p.useEffect(()=>{o||(g.current=i)},[i,o]);const S=p.useMemo(()=>{if(e){const R=o?g.current:i;return!C||R.length===0?R:_g(R,C)}if(!C||!a.length)return[];const E=Y7(a);return _g(E,C)},[e,i,o,C,a]);return{isSearchMode:w,searchValue:c,effectiveSearchValue:C,setSearchValue:d,handleSearchChange:y,handleSearchActivate:b,handleSearchClear:x,searchResultsRows:S}}function Z7({selectedPaths:e,defaultSelectedPaths:t,onSelectedPathsChange:s}){const i=e!==void 0,[o,n]=p.useState(()=>t??new Set),r=p.useMemo(()=>i?e:o,[i,e,o]),a=p.useCallback(c=>{const d=new Set(c);s?.(d),i||n(d)},[i,s]),l=p.useCallback(()=>{a(new Set)},[a]);return{selectedPaths:r,setSelectedPaths:a,clearSelection:l,isControlled:i}}const xw=':;,=/{}%&\\"',xh=`(\r
|
|
68
68
|
|
|
|
69
69
|
|\r| )|[\0-]`,Q7=`[${xw.replace(/\\/g,"\\\\")}]`,yw=new RegExp(`${Q7}|${xh}`),J7=new RegExp(xh),Sw=({managerLabel:e,children:t,className:s,items:i=[],rootItem:o,path:n,defaultPath:r,filesLoading:a,selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d,showHiddenFiles:u,onShowHiddenFilesChange:h,treeOptions:g,showNavigationPanel:f=!0,navigationPanelOptions:v,deleteConfirmationOptions:C,gridOptions:w,toolbarOptions:b,bulkActionsToolbarOptions:x,destinationFolderPopupOptions:y,conflictResolutionPopupOptions:S,onPathChange:E,onTableFileClick:R,handleSelectionClick:F,onGridApiChange:D,onCopyFiles:P,onMoveToFiles:T,onDeleteFiles:M,onDownloadFiles:N,onRenameValidate:q,onAddSibling:L,onAddChild:V,renameValidationMessages:H,forbiddenSymbolsRegExp:A=yw,forbiddenSymbolsTooltip:de,onUploadFiles:k,onValidateUpload:B,uploadEnabled:U,uploadValidationMessages:W,maxFileSize:re,onUploadArchive:be,onCreateFolder:Q,onCreateFolderValidate:j,folderCreationValidationMessages:ge,fileMetadataPopupOptions:ie,onGetInfo:Z,onUnshareFiles:_,onRemoveFilesAccess:ae,actionsRef:G,sharedByMePaths:fe,onSearchFiles:he,searchResults:se,searchInProgress:le,clearSearchResults:Fe,allowedFileTypes:Oe,maxSelectableFileSize:Ce,getDisabledTooltip:Ee,fileTooLargeTooltip:je,unsupportedFileTypeTooltip:_e,emptyStateIcon:Ae,emptyStateTitle:Tt,emptyStateDescription:is,sharedWithMeIds:kt,onFolderPopupPathChange:Ge,onManagePermissions:K,onPreview:He,onOpenInNewTab:os,previewExtensions:nn,isRenameFileAvailable:Tl,isDuplicateFolderAvailable:kl,customUploadFileAction:fi,customCreateNewItemAction:rn,customDuplicateAction:Xi,customDeleteItemsAction:wr,customDownloadItemsAction:Zi,customBreakpointRef:br,gridClassName:xr,nonClickableTableColumns:yr,hideSearchPathItemName:Ml,showHiddenFileSwitcherInDestinationPopup:Il,autoSelectUploadedItems:$s=!1})=>{const{selectedPaths:Ds,clearSelection:Ps,setSelectedPaths:mi}=Z7({selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d}),qs=p.useRef(null),Al=p.useCallback((De,Ne,Ve)=>{if($s){const ns=Ne.lastIndexOf("/"),ic=ns>=0?Ne.slice(ns+1):Ne,Me=ns>=0?Ne.slice(0,ns):"";qs.current={fileNames:new Set([ic]),destinationFolder:Me}}Q?.(De,Ne,Ve)},[Q,$s]),Ll=p.useCallback((De,Ne)=>{$s&&(qs.current={fileNames:new Set(De.map(Ve=>Ve.name)),destinationFolder:Ne}),k?.(De,Ne)},[k,$s]),Ol=p.useCallback((De,Ne,Ve)=>{$s&&(qs.current={fileNames:new Set([Ne]),destinationFolder:Ve}),be?.(De,Ne,Ve)},[be,$s]),Nl=p.useMemo(()=>{const De=new Map;return Ds.forEach(Ne=>{const Ve=Vs(i,Ne);Ve&&De.set(Ne,Ve)}),De},[Ds,i]);p.useEffect(()=>{if(Ds.size===0)return;let De=!1;for(const Ne of Ds)if(!Vs(i,Ne)){De=!0;break}if(De){const Ne=new Set;for(const Ve of Ds)Vs(i,Ve)&&Ne.add(Ve);mi(Ne)}},[i,Ds,mi]);const{currentPath:st,setCurrentPath:Hl,handlePathChange:Ct}=L7({path:n,defaultPath:r,onPathChange:E,onSelectionClear:Ps}),an=p.useMemo(()=>{const{showFiles:De=!0,showFolders:Ne=!0,...Ve}=w||{};return{showFiles:De,showFolders:Ne,...Ve}},[w]),ln=an.showFiles,cn=an.showFolders,[Qi,Ji]=p.useState(),Gl=y?.destinationFolderPath??Qi,eo=p.useCallback(De=>{y?.setDestinationFolderPath?y.setDestinationFolderPath(De):Ji(De)},[y]),{areHiddenFilesVisible:Ts,toggleHiddenFilesVisibility:Sr}=M7({showHiddenFiles:u,onShowHiddenFilesChange:h}),{isTreeCollapsed:Rr,toggleTreeCollapse:Fr,setIsTreeCollapsed:to}=I7({collapsed:g?.collapsed,onCollapseChange:g?.onCollapseChange}),{renamedPath:Bl,renamedItem:so,renameHandler:Vl,renameSaveHandler:zl,renameCancelHandler:Wl,renameValidateHandler:jl,getDisplayName:_l}=j7({items:i,onRenameValidate:q,validationMessages:H,onMoveToFiles:T}),{isSearchMode:dn,searchValue:Er,effectiveSearchValue:io,setSearchValue:Ul,handleSearchChange:un,handleSearchClear:wt,searchResultsRows:Dr}=X7({onSearchFiles:he,clearSearchResults:Fe,currentPath:st,searchResults:se,searchInProgress:le,navigationPanelValue:v?.value,onNavigationPanelSearchChange:v?.onSearchChange,allItems:i,activeTab:b?.activeTab}),rt=p.useMemo(()=>ad(i,st)??i[0],[i,st]),{handleCopyTo:Pr,handleMoveTo:Tr,handleDuplicate:kr,handleOpenDestinationFolderPopup:Mr,handleCloseDestinationFolderPopup:oo,openDestinationFolderPopup:no,handleSetCopiedFiles:ro,handleSetMovedFiles:$l,destinationFolderMode:Ir,destinationFolderTitle:hn,conflictingFiles:ql,conflictResolutionOpen:Kl,closeConflictResolution:Yl,handleConflictReplace:Xl,handleConflictDuplicate:Zl,handleConflictCancel:Ar,handleConflictDecideForEach:Lr,sourceFolder:Or}=A7({getDestinationFiles:De=>ad(i,De)?.items??[],onCopyFiles:P,onMoveToFiles:T,onCopySuccess:Ps,onMoveSuccess:Ps,onDuplicateSuccess:Ps,getCopyHeader:y?.getCopyHeader,getMoveHeader:y?.getMoveHeader});p.useEffect(()=>{no||eo(void 0)},[no,eo]);const{deleteConfirmationOpen:ao,itemsToDelete:Ks,openDeleteConfirmation:Ql,closeDeleteConfirmation:Mt,confirmDelete:Jl}=O7({onDeleteFiles:M,onDeleteSuccess:Ps}),{handleDownloadFiles:pn}=N7({onDownloadFiles:N,customDownloadItemsAction:Zi,onDownloadSuccess:Ps}),{isDragging:lo,isDraggingOverWindow:vi,uploadError:Nr,handleDragEnter:Hr,handleDragLeave:Gr,handleDragOver:Br,handleDrop:gn,clearError:ec,openFileDialog:Vr,fileInputRef:zr,openArchiveDialog:co,uploadConflictingFiles:tc,uploadConflictResolutionOpen:sc,closeUploadConflictResolution:fn,handleUploadConflictReplace:Wr,handleUploadConflictDuplicate:jr,handleUploadConflictCancel:_r,handleUploadConflictDecideForEach:Ur}=G7({onUploadFiles:Ll,onValidateUpload:B,maxFileSize:re,onUploadArchive:Ol,allowedFileTypes:Oe,validationMessages:W,uploadEnabled:U,currentFolder:rt}),$r=p.useCallback(De=>{wt();const Ne=st??"",Ve=rt?.items??[];gn(De,Ne,Ve)},[st,rt,gn,wt]),qr=p.useCallback(()=>{wt();const De=st??"",Ne=rt?.items??[];Vr(De,Ne)},[st,rt,Vr,wt]),X=p.useCallback(()=>{wt();const De=st??"",Ne=rt?.items??[];co(De,Ne)},[st,rt,co,wt]),Ue=p.useCallback(()=>{wt(),fi?.(st,rt)},[fi,st,rt,wt]),Ze=p.useCallback(()=>{wt(),rn?.(st,rt)},[rn,st,rt,wt]),$t=p.useCallback(De=>{Xi?.(De)},[Xi]),{isCreatingFolder:ps,newFolderTempId:uo,startFolderCreation:Rh,cancelFolderCreation:Iw,saveFolderCreation:Aw,validateFolderName:Lw}=$7({currentFolder:rt,onCreateFolder:Al,onValidateFolderName:j,validationMessages:ge}),Fh=p.useCallback(()=>{wt(),Rh()},[wt,Rh]),{newActions:Ow,isNewButtonVisible:Nw,isNewButtonDisabled:Hw}=_7({newActions:b?.newActions,currentFolder:rt,onUploadFiles:fi?Ue:qr,onUploadArchive:X,onCreateFolder:Fh,onCreateNewItem:Ze,isNewButtonDisabled:b?.isNewButtonDisabled}),Gw=p.useMemo(()=>{if(dn){let Me=Dr;ln||(Me=Me.filter($e=>$e.nodeType!==ye.ITEM)),cn||(Me=Me.filter($e=>$e.nodeType!==ye.FOLDER)),Ts||(Me=Me.filter($e=>!$e.path.split("/").filter(Boolean).some(vn=>vn.startsWith("."))));const mn=Me.map($e=>({...$e,id:$e.id??$e.path,name:$e.name??$e.path.split("/").pop()??"",updatedAt:$e.updatedAt,size:$e.contentLength,contentLength:$e.contentLength,author:$e.author,path:$e.path,nodeType:$e.nodeType,extension:$e.extension,isTemporary:!1,owner:$e.owner,folderId:$e.folderId}));return ps&&uo&&mn.unshift({id:uo,name:"",updatedAt:void 0,author:void 0,path:st??"/",nodeType:ye.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),mn}const De=Bo(io).trim(),Ne=rt?.items??[];let Ve=De?E7(rt):Ne;ln||(Ve=Ve.filter(Me=>Me.nodeType!==ye.ITEM)),cn||(Ve=Ve.filter(Me=>Me.nodeType!==ye.FOLDER)),Ts||(Ve=Ve.filter(Me=>De?!Me.path.split("/").filter(Boolean).some($e=>$e.startsWith(".")):!fw(Me)));const ns=Ve.map(Me=>({...Me,id:Me.id??Me.path,name:Me.name??Me.path.split("/").pop()??"",updatedAt:Me.updatedAt,size:Me.contentLength,author:Me.author,path:Me.path,nodeType:Me.nodeType,extension:Me.extension,isTemporary:!1,owner:Me.owner,contentType:Me.contentType,contentLength:Me.contentLength,folderId:Me.folderId}));if(ps&&uo&&!De&&ns.unshift({id:uo,name:"",updatedAt:void 0,author:void 0,path:st??"/",nodeType:ye.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),!De)return ns;const ic=De.split(/\s+/).filter(Boolean);return ns.filter(Me=>{if(Me.isTemporary)return!0;const mn=Bo(Me.name),$e=Bo(Me.author),Ph=F7(Me.extension);return ic.every(vn=>mn.includes(vn)||$e.includes(vn)||Ph.includes(vn))})},[dn,Dr,rt,io,Ts,ps,uo,ln,cn,st]);p.useEffect(()=>{const De=qs.current;if(!De)return;if((st??"")!==De.destinationFolder){qs.current=null;return}const Ne=ad(i,De.destinationFolder);if(!Ne?.items)return;const Ve=new Set;for(const ns of Ne.items)De.fileNames.has(ns.name)&&Ve.add(ns.path);Ve.size>0&&(mi(Ve),qs.current=null)},[i,st,mi]);const Bw=p.useCallback(De=>{Ct(De.path)},[Ct]),Vw=p.useCallback(De=>{Ct(De)},[Ct]),zw=p.useCallback(De=>{De.nodeType===ye.FOLDER?Ct(De.path):R?.(De)},[Ct,R]),{expandedPaths:Eh,setExpandedPaths:Ww,collapseAll:jw}=bw({expandedPaths:g?.expandedPaths,onExpandedPathsChange:g?.onExpandedPathsChange}),{additionalButtons:_w}=q7({collapseAll:jw,expandedPathsLength:Eh.size,additionalButtons:g?.additionalButtons}),{isMetadataPopupOpen:Uw,selectedFileForMetadata:$w,openMetadataPopup:qw,closeMetadataPopup:Dh}=K7({onGetInfo:Z}),Kw=p.useCallback(()=>{Dh(),ie?.clearMetadata?.()},[Dh,ie]),Yw=p.useMemo(()=>{if(A)return Pl(A)},[A]),Xw={managerLabel:e,className:s,items:i,allowedFileTypes:Oe,maxSelectableFileSize:Ce,rootItem:o,filesLoading:a,treeOptions:{...g,expandedPaths:Eh,onExpandedPathsChange:Ww,additionalButtons:_w},showNavigationPanel:f,navigationPanelOptions:v,gridOptions:an,toolbarOptions:b,bulkActionsToolbarOptions:x,deleteConfirmationOptions:C,destinationFolderPopupOptions:{...y,destinationFolderPath:Gl,setDestinationFolderPath:eo,header:hn,onCreateFolder:Q,onCreateFolderValidate:j,folderCreationValidationMessages:ge,sourceFolder:Or},currentPath:st,setCurrentPath:Hl,searchValue:Er,effectiveSearchValue:io,setSearchValue:Ul,areHiddenFilesVisible:Ts,toggleHiddenFilesVisibility:Sr,isTreeCollapsed:Rr,toggleTreeCollapse:Fr,setIsTreeCollapsed:to,selectedPaths:Ds,selectedFiles:Nl,setSelectedPaths:mi,clearSelection:Ps,currentFolder:rt,gridRows:Gw,handleCopyTo:Pr,handleMoveTo:Tr,handleDuplicate:Xi?$t:kr,handleSetCopiedFiles:ro,handleSetMovedFiles:$l,openDestinationFolderPopup:no,handleCloseDestinationFolderPopup:oo,handleOpenDestinationFolderPopup:Mr,destinationFolderMode:Ir,handleAddSibling:L,handleAddChild:V,handleDownloadFiles:pn,renamedPath:Bl,renamedItem:so,forbiddenSymbolsRegExp:Yw,forbiddenSymbolsTooltip:de,onRename:Vl,onRenameSave:zl,onRenameCancel:Wl,onRenameValidate:jl,getDisplayName:_l,openDeleteConfirmation:wr||Ql,closeDeleteConfirmation:Mt,confirmDelete:Jl,deleteConfirmationOpen:ao,itemsToDelete:Ks,handlePathChange:Ct,handleTreeItemClick:Bw,handleBreadcrumbItemClick:Vw,handleSearchChange:un,handleTableRowClick:zw,onTableFileClick:R,handleSelectionClick:F,onGridApiChange:D,isDragging:lo,uploadError:Nr,handleDragEnter:Hr,handleDragLeave:Gr,handleDragOver:Br,handleDrop:$r,clearUploadError:ec,onUploadFiles:k,onValidateUpload:B,maxFileSize:re,isDraggingOverWindow:vi,openFileDialog:qr,fileInputRef:zr,newActions:Ow,isNewButtonVisible:Nw,isNewButtonDisabled:Hw,isCreatingFolder:ps,newFolderTempId:uo,startFolderCreation:Fh,cancelFolderCreation:Iw,saveFolderCreation:Aw,validateFolderName:Lw,conflictResolutionPopupOptions:S,conflictingFiles:ql,conflictResolutionOpen:Kl,closeConflictResolution:Yl,handleConflictReplace:Xl,handleConflictDuplicate:Zl,handleConflictCancel:Ar,handleConflictDecideForEach:Lr,uploadConflictingFiles:tc,uploadConflictResolutionOpen:sc,closeUploadConflictResolution:fn,handleUploadConflictReplace:Wr,handleUploadConflictDuplicate:jr,handleUploadConflictCancel:_r,handleUploadConflictDecideForEach:Ur,fileMetadataPopupOptions:ie,isMetadataPopupOpen:Uw,selectedFileForMetadata:$w,openMetadataPopup:qw,closeMetadataPopup:Kw,onGetInfo:Z,onUnshareFiles:_,onRemoveFilesAccess:ae,actionsRef:G,sharedByMePaths:fe,onSearchFiles:he,searchInProgress:le,searchResults:se,clearSearchResults:Fe,isSearchMode:dn,emptyStateIcon:Ae,emptyStateTitle:Tt,emptyStateDescription:is,gridClassName:xr,sharedWithMeIds:kt,onFolderPopupPathChange:Ge,onManagePermissions:K,onPreview:He,onOpenInNewTab:os,previewExtensions:nn,isRenameFileAvailable:Tl,isDuplicateFolderAvailable:kl,customUploadFileAction:fi,customBreakpointRef:br,nonClickableTableColumns:yr,hideSearchPathItemName:Ml,getDisabledTooltip:Ee,fileTooLargeTooltip:je,unsupportedFileTypeTooltip:_e,showHiddenFileSwitcherInDestinationPopup:Il};return m.jsx(Cw.Provider,{value:Xw,children:t})},e9=({disabledGridRowIds:e,gridRows:t,getDisabledTooltip:s,getRowDisabledTooltip:i,allowedFileTypes:o,maxSelectableFileSize:n})=>{const[r,a]=p.useState(null),[l,c]=p.useState(null);p.useEffect(()=>{const h=()=>{a(null),c(null)};return window.addEventListener("scroll",h,!0),()=>window.removeEventListener("scroll",h,!0)},[]),p.useEffect(()=>{const h=v=>{const w=v.target.closest(".ag-row");if(!w){a(x=>x&&null);return}const b=new DOMParser().parseFromString(w.getAttribute("row-id")||"","text/html").documentElement.textContent;b&&e.has(b)?a(x=>x!==b?(c(w.getBoundingClientRect()),b):x):a(x=>x&&null)},g=()=>{a(null),c(null)},f=document.querySelector('[aria-label="File Manager Grid View"]');if(f)return f.addEventListener("mousemove",h),f.addEventListener("mouseleave",g),()=>{f.removeEventListener("mousemove",h),f.removeEventListener("mouseleave",g)}},[e]);const d=p.useMemo(()=>{if(r)return t.find(h=>h.path===r)},[r,t]),u=p.useMemo(()=>{if(d)return s&&d.folderId?s(d):i(d,o,n)},[d,s,i,o,n]);return m.jsx(m.Fragment,{children:u&&l&&Ko.createPortal(m.jsxs(iu,{open:!0,placement:"top",children:[m.jsx(nu,{asChild:!0,children:m.jsx("div",{className:pe("fixed z-[-1]",u&&"pointer-events-none"),style:{top:l.top,left:l.left,width:l.width,height:l.height}})}),m.jsx(ou,{className:"max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover",children:u})]}),document.body)})},yh=()=>{const[e,t]=p.useState(Tg());return p.useEffect(()=>{const s=()=>t(Tg());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e},Rw=({onClose:e,onConfirm:t,onFolderPopupPathChange:s,setDestinationFolderPath:i,open:o,copyLabel:n="Copy",moveLabel:r="Move",addFolderLabel:a="Add folder",mode:l=ct.Copy,hiddenFilesSwitcherLabel:c="Show hidden files",showHiddenFileSwitcher:d=!0,onUploadFiles:u,onValidateUpload:h,maxFileSize:g,header:f,sourceFolder:v,disabledPathTooltip:C="Unavailable for the original path. Please select another folder",path:w,collapsedFileTree:b=!1,alertProps:x,...y})=>{const[S,E]=p.useState(!1),[R,F]=p.useState(!1),D=p.useRef(null),P=yh(),T=p.useCallback(V=>{E(V)},[]),M=p.useMemo(()=>{const V=[{key:"add-folder",label:a,icon:m.jsx(z.IconFolderPlus,{...J,className:"text-secondary"}),onClick:()=>{D.current?.createFolder(),F(!1)}}];return d&&V.push({key:"show-hidden-files",label:c,icon:m.jsx(z.IconEye,{...J,className:"text-secondary"}),onClick:()=>{E(H=>!H),F(!1)}}),V},[a,c,d]),N=p.useCallback(V=>{V&&(s?.(V),i?.(V))},[s,i]),q=l===ct.Copy?"Copy to":"Move to",L=p.useMemo(()=>!w||!v?!1:v===w,[w,v]);return m.jsx(Ki,{open:o,onClose:()=>{e()},size:jt.Lg,dividerFooter:!0,dividers:!1,className:"md:!h-[800px] !bg-layer-2",footer:m.jsxs("div",{className:"flex justify-between items-center gap-2 py-4 px-4 md:px-6",children:[m.jsx("div",{className:"flex items-center gap-4 min-w-0",children:P?m.jsx(Pt,{menu:{items:M},open:R,onOpenChange:F,children:m.jsx(ss,{className:"h-9 w-9 shrink-0","aria-label":"More options",iconBefore:m.jsx(z.IconDotsVertical,{...J,className:"text-secondary"})})}):m.jsxs(m.Fragment,{children:[m.jsx(Ss,{label:a,appearance:ke.Ghost,iconBefore:m.jsx(z.IconFolderPlus,{...J}),onClick:()=>{D.current?.createFolder()}}),d&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"w-px h-[26px] bg-controls-disable-accent my-2"}),m.jsx("div",{className:"inline-flex items-center cursor-pointer",children:m.jsx(ph,{label:c,isOn:S,onChange:T,switchId:"hidden-files-switch-modal"})})]})]})}),m.jsxs("div",{className:"flex space-x-4 items-center",children:[m.jsx(Fs,{onClick:e,label:"Cancel"}),L?m.jsx(At,{tooltip:C,children:m.jsx(Ss,{onClick:t,label:l==="copy"?n:r,disabled:L,"aria-disabled":L})}):m.jsx(Ss,{onClick:t,label:l==="copy"?n:r})]})]}),header:f??q,children:m.jsxs("div",{className:"bg-layer-2 h-full flex flex-col",children:[x&&m.jsx("div",{className:"px-6 mb-4 pt-4",children:m.jsx(rf,{...x})}),m.jsx("div",{className:"flex-1 min-h-0",children:m.jsx(Mw,{...y,gridClassName:"size-full",className:ne(y.className,"bg-layer-2 h-full flex pt-0"),actionsRef:D,path:w,showHiddenFiles:S,onShowHiddenFilesChange:T,treeOptions:{...y.treeOptions,collapsed:b,expandedPaths:new Set([y.rootItem?.path||"/"]),header:y.treeOptions?.header},gridOptions:{...y.gridOptions,selectionMode:void 0},navigationPanelOptions:{elementId:"file-manager-destination-search",...y.navigationPanelOptions},onUploadFiles:u,onValidateUpload:h,onPathChange:N,maxFileSize:g})})]})})},t9=12,s9=8;var Fi=(e=>(e.Normal="normal",e.Reverse="reverse",e))(Fi||{});function i9({actions:e,direction:t=Fi.Normal,moreButtonWidth:s=Ht,actionsGap:i=8,containerPadding:o=8,dependencies:n=[]}){const r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef([]),[u,h]=p.useState(e.length);p.useLayoutEffect(()=>{if(!a.current)return;const v=Array.from(a.current.children);d.current=v.map(C=>Math.ceil(C.getBoundingClientRect().width))},[e,...n]),p.useEffect(()=>{if(!r.current)return;let v=null;const C=()=>{v&&cancelAnimationFrame(v),v=requestAnimationFrame(()=>{const b=r.current,x=l.current?.offsetWidth??0,y=c.current?.offsetWidth??0,S=x+y,R=b.getBoundingClientRect().width-S-s-i*2-o*2,F=d.current;let D=0,P=0;if(t===Fi.Reverse)for(let T=F.length-1;T>=0&&(D+=F[T]+i,!(D>R));T--)P++;else for(const T of F){if(D+=T+i,D>R)break;P++}h(P)})},w=new ResizeObserver(C);return w.observe(r.current),C(),()=>{v&&cancelAnimationFrame(v),w.disconnect()}},[e.length,t,...n]);const g=t===Fi.Reverse?e.slice(0,e.length-u):e.slice(u);return{visibleActions:t===Fi.Reverse?e.slice(e.length-u):e.slice(0,u),hiddenActions:g,refs:{containerRef:r,measureRef:a,leftSectionRef:l,rightSectionRef:c}}}const o9=({getSelectionLabel:e,onClearSelection:t,actions:s,selectedCount:i})=>{const o=yh(),{refs:{containerRef:n,leftSectionRef:r,measureRef:a},visibleActions:l,hiddenActions:c}=i9({actions:s,direction:Fi.Reverse,dependencies:[o],actionsGap:t9,containerPadding:s9}),d=e(i);return m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:a,className:"absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",children:s.map(({key:u,icon:h,title:g})=>m.jsx(Fs,{iconBefore:h,label:g,hideTitleOnMobile:!0},u))}),m.jsxs("div",{ref:n,className:"rounded bg-layer-0 p-2 flex justify-between items-center w-full",role:"toolbar","aria-label":"File bulk actions",children:[m.jsx("div",{ref:r,children:m.jsx(Ss,{label:d,onClick:t,textClassName:"text-accent-primary whitespace-nowrap",appearance:ke.Ghost,iconBefore:m.jsx(z.IconX,{...J,className:"text-accent-primary"})})}),m.jsxs("div",{className:"flex flex-1 w-full gap-3 items-center justify-end",children:[c.length>0&&m.jsx(Pt,{menu:{items:c},allowedPlacements:["bottom","bottom-start"],children:m.jsx(ss,{className:"h-[38px]",iconBefore:m.jsx(z.IconDotsVertical,{...J,className:"text-secondary hover:text-accent-primary"})})}),l.map(({key:u,icon:h,tooltip:g,title:f,onClick:v,disabled:C})=>m.jsx(Fs,{className:"!p-[9px]",iconBefore:h,label:f,hideTitleOnMobile:!0,disabled:C,tooltipProps:{tooltip:g},onClick:w=>v?.({key:u,domEvent:w})},u))]})]})]})},n9=({open:e,itemsToDelete:t,onClose:s,onConfirm:i,cancelLabel:o="Cancel",confirmLabel:n="Delete",titleRenderer:r,contentRenderer:a})=>{const l=t.map(g=>g.name),d=r?.(l)||"Confirm Deleting Items",u=m.jsxs("div",{className:"px-6 py-3 dial-small-text",children:[m.jsx("p",{className:"text-secondary mb-3",children:t.length===1?m.jsxs(m.Fragment,{children:["Do you want to delete file or folder"," ",m.jsxs("span",{className:"text-primary break-all",children:['"',t[0].name,'"']}),"?"]}):m.jsxs(m.Fragment,{children:["Do you want to delete the following"," ",m.jsx("span",{className:"text-primary",children:t.length})," items?"]})}),t.length>1&&m.jsx(m.Fragment,{children:t.length<=10?m.jsx("ul",{className:"space-y-1 text-primary list-none",children:t.map(g=>m.jsx("li",{className:"truncate",children:g.name},g.path))}):m.jsxs(m.Fragment,{children:[m.jsx("ul",{className:"space-y-1 text-primary list-none mb-2",children:t.slice(0,10).map(g=>m.jsx("li",{className:"truncate",children:g.name},g.path))}),m.jsxs("p",{className:"text-secondary italic",children:["... and ",t.length-10," more"]})]})})]}),h=a?.(l)||u;return m.jsx(QC,{open:e,header:d,confirmLabel:n,cancelLabel:o,variant:qo.Danger,onClose:s,onConfirm:i,children:h})},Ug=e=>e.split("/").map(t=>t.trim()).filter(Boolean),r9="w-full flex items-center justify-between gap-4",a9="min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded",l9="w-[260px]",c9=({ariaLabel:e="Breadcrumb",labelClassName:t,onItemClick:s,path:i,makeHref:o,rootItemPath:n,rootItemLabel:r,breadcrumbsHiddenPathPart:a,className:l,breadcrumbClassName:c,searchable:d=!0,value:u,elementId:h="file-manager-search",disabled:g,invalid:f,onSearchChange:v,searchClassName:C,searchContainerClassName:w,isCompactView:b=!1})=>{const x=p.useMemo(()=>{if(!i)return;let D=Ug(i);const P=[...D];let T=0;if(a){const N=Ug(a);if(N.length){const q=D.findIndex((L,V)=>N.every((H,A)=>D[V+A]===H));q!==-1&&(T=N.length,D=[...D.slice(0,q),...D.slice(q+N.length)])}}if(!D.length)return[{label:"/"}];const M=D.map((N,q)=>{const L=q<D.length-T?q:q+T,V=P.slice(0,L+1),H=typeof o=="function"?o(V,L):void 0;return{label:N,href:H,onClick:s?A=>{A.preventDefault(),s(H)}:void 0}});if(n&&r){const N=n.split("/").filter(Boolean),q=i.split("/").filter(Boolean);if(N.every((V,H)=>q[H]===V)&&M.length>0){const V=M.slice(N.length);return[{label:r,href:n,onClick:s?H=>{H.preventDefault(),s(n)}:void 0},...V]}}return M},[i,a,n,r,o,s]),[y,S]=p.useState(!1),E=p.useCallback(()=>{if(b&&!y){S(!0);const D=document.getElementById(h);D&&D.focus()}},[h,y,b]),R=p.useCallback(()=>{(!u||String(u).trim()==="")&&v?.("")},[u,v]),F=p.useCallback(()=>b&&y?m.jsx(Fs,{className:"!p-[9px]",iconBefore:m.jsx(z.IconArrowLeft,{...J}),onClick:()=>{S(!1),v?.("")}}):m.jsx("div",{className:a9,children:m.jsx(qC,{pathItems:x,ariaLabel:e,labelClassName:t,className:c})}),[e,c,x,y,b,t,v]);return m.jsxs("div",{className:ne(r9,{"gap-3":b},l),"aria-label":"navigation-panel",children:[F(),d&&m.jsx("div",{className:ne(l9,{"w-[40px]":b&&!y,"w-full":b&&y}),role:"search","aria-label":"Search",onClick:E,children:m.jsx(gh,{id:h,value:u??"",onChange:v,disabled:g,onBlur:R,invalid:f,className:C,wrapperClassName:b&&!y?"pl-2.5":"",containerClassName:w})})]})},d9=({tabs:e,activeTab:t,onTabChange:s,areHiddenFilesVisible:i,onToggleHiddenFiles:o,isNewButtonVisible:n,isNewButtonDisabled:r,newButtonVariant:a=ze.Primary,newButtonDropdownItems:l=[],newButtonLabel:c="New",hiddenFilesSwitcherLabel:d="Hidden files",showHiddenFilesLabel:u="Show hidden files",hideHiddenFilesLabel:h="Hide hidden files",showHiddenFilesToggle:g=!0,disabledNewButtonTooltip:f})=>{const v=yh(),C=p.useMemo(()=>[{key:"hidden-files-switch",label:i?h:u,icon:i?m.jsx(z.IconEyeOff,{...J,className:"text-secondary"}):m.jsx(z.IconEye,{...J,className:"text-secondary"}),onClick:()=>o?.(!i)}],[i,h,u,o]),w=()=>e&&t&&s?m.jsx(jC,{tabs:e,activeTab:t,onClick:y=>s(y),screenThreshold:nl.Tablet,smallScreenContainerClassName:"w-fit bg-transparent h-[38px] overflow-hidden",smallScreenDropdownItemClassName:"px-3 h-[38px]"}):null,b=()=>m.jsxs(m.Fragment,{children:[g&&m.jsxs(m.Fragment,{children:[m.jsx(ph,{switchId:"hidden-files-switch",label:d,isOn:i,onChange:o}),m.jsx("div",{className:"h-6 border-l border-primary"})]}),n&&m.jsx(At,{tooltip:r&&f?f:void 0,children:m.jsx(tu,{label:c,variant:a,items:l,disabled:r})})]}),x=()=>m.jsxs(m.Fragment,{children:[m.jsx(Pt,{menu:{items:C},allowedPlacements:["bottom","bottom-start"],children:m.jsx(ss,{className:"h-[38px]",iconBefore:m.jsx(z.IconDotsVertical,{...J,className:"text-secondary hover:text-accent-primary"})})}),n?m.jsx(At,{tooltip:r&&f?f:void 0,children:m.jsx(tu,{label:c,variant:a,items:l,disabled:r})}):null]});return m.jsxs("div",{className:"flex w-full justify-between gap-4 items-center overflow-x-auto",children:[m.jsx("div",{className:"flex-1 min-w-0",children:w()}),m.jsx("div",{className:"flex gap-4 flex-shrink-0 items-center",children:v?x():b()})]})},u9=100,Dn=16,fs="text-secondary",ga="text-primary min-w-0",h9="text-primary break-words min-w-0",Pn="bg-layer-2",p9=({open:e,onClose:t,fileMetadata:s,loading:i=!1,header:o="Information",nameLabel:n="Name:",pathLabel:r="Path:",modifiedDateLabel:a="Modified Date:",sizeLabel:l="Size:",authorLabel:c="Author:",dateLocale:d="en-US",dateOptions:u})=>m.jsx(Ki,{open:e,onClose:t,size:jt.Sm,header:o,dividers:!1,children:m.jsx("div",{className:"px-6 py-4",children:m.jsx("div",{className:"grid gap-x-4 gap-y-4 items-center dial-small-text",style:{gridTemplateColumns:`${u9}px 1fr`},children:i?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:fs,children:n}),m.jsx(bo,{variant:Zt.Text,width:"100%",height:Dn,className:Pn}),m.jsx("div",{className:fs,children:a}),m.jsx(bo,{variant:Zt.Text,width:"90%",height:Dn,className:Pn}),m.jsx("div",{className:fs,children:l}),m.jsx(bo,{variant:Zt.Text,width:"60%",height:Dn,className:Pn}),m.jsx("div",{className:fs,children:c}),m.jsx(bo,{variant:Zt.Text,width:"80%",height:Dn,className:Pn}),m.jsx("div",{className:fs,children:r}),m.jsx(bo,{variant:Zt.Text,width:"70%",height:Dn,className:Pn})]}):s?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:fs,children:n}),m.jsx("div",{className:ga,children:m.jsx(ft,{text:s.name})}),m.jsx("div",{className:fs,children:a}),m.jsx("div",{className:ga,children:m.jsx(ft,{text:D7(s.updatedAt,d,u)})}),m.jsx("div",{className:fs,children:l}),m.jsx("div",{className:ga,children:m.jsx(ft,{text:ar(s.contentLength)})}),m.jsx("div",{className:fs,children:c}),m.jsx("div",{className:ga,children:m.jsx(ft,{text:s.author||"—"})}),m.jsx("div",{className:fs,children:r}),m.jsx("div",{className:h9,children:decodeURIComponent(s.path)})]}):null})})}),g9={size:10,stroke:2},f9=26;var _t=(e=>(e.File="file",e.Folder="folder",e))(_t||{});const m9=({name:e,type:t,shared:s=!1,loading:i=!1,sharedIndicatorClassName:o,sharedIndicatorTooltip:n,fileExtension:r,...a})=>{const l=c=>m.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[c,s&&m.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:m.jsx($n,{className:o,sharedIndicatorTooltip:n})})]});if(i)return l(m.jsx(cr,{}));if(t===_t.File){const c=r||(e.includes(".")?e.split(".").pop():void 0);return m.jsx(gu,{...a,extension:c??"",className:"text-secondary",indicator:s?m.jsx($n,{className:o,sharedIndicatorTooltip:n}):null,label:"File type icon"})}return t===_t.Folder?l(m.jsx(Ye,{icon:m.jsx(z.IconFolder,{className:a.className,size:a.size??J.size,stroke:a.stroke??J.stroke}),className:"inline-block align-middle"})):null},v9=({name:e,type:t,elementId:s,loading:i=!1,shared:o=!1,iconClassName:n,iconIndicator:r,iconLabel:a,iconSize:l,iconStroke:c,inputInvalid:d,inputInvalidMessage:u,inputContainerClassName:h,inputIconAfter:g,inputRef:f,onChange:v,sharedIndicatorClassName:C,sharedIndicatorTooltip:w,fileExtension:b})=>{const x=()=>{const y=u?.startsWith(`${as.Warning}__`);if(!d&&!y)return null;const S=u?.replace(`${as.Warning}__`,"");return m.jsx(At,{tooltip:S,children:g||(y?m.jsx(z.IconAlertTriangleFilled,{...J,className:"text-warning-icon","aria-label":"warning"}):m.jsx(z.IconAlertCircleFilled,{...J,className:"text-error","aria-label":"alert"}))})};return m.jsxs("div",{className:"flex gap-2 items-center",children:[m.jsx(m9,{name:e,type:t,label:a,className:n,indicator:r,size:l,stroke:c,loading:i,shared:o,fileExtension:b,sharedIndicatorClassName:C,sharedIndicatorTooltip:w}),m.jsx(on,{containerClassName:ne("!h-6 py-[1px] pl-[7px] pr-[7px]",h),id:s,value:e,onChange:v,invalid:d,iconAfter:x(),inputRef:f})]})};function Fw({value:e,isEditing:t,restoreOnCancel:s=!0,onValidate:i,onSave:o,onCancel:n}){const[r,a]=p.useState(e),[l,c]=p.useState(!1),[d,u]=p.useState(""),h=p.useRef(null),g=p.useCallback((b=!1,x="")=>{c(b),u(x)},[]),f=p.useCallback(b=>{if(!i)return g(),!0;const x=i(b);return x?x.startsWith(`${as.Warning}__`)?(g(!1,x),!0):(g(!0,x),!1):(g(),!0)},[i,g]),v=p.useCallback(b=>{const x=b??"";a(x),f(x)},[f]),C=p.useCallback(()=>{f(r)?o?.(r):h.current?.focus()},[f,o,r]),w=p.useCallback(()=>{s&&a(e),g(),n?.()},[e,n,s,g]);return p.useEffect(()=>{t&&(a(e),g(),requestAnimationFrame(()=>{h.current?.focus(),h.current?.select()}))},[t,e,g]),p.useEffect(()=>{const b=h.current;if(!t||!b)return;const x=y=>{y.key==="Enter"?(y.preventDefault(),h.current?.blur()):y.key==="Escape"&&(y.preventDefault(),w())};return b.addEventListener("keydown",x),()=>b.removeEventListener("keydown",x)},[t,C,w]),p.useEffect(()=>{if(!t)return;const b=h.current;if(!b)return;const x=y=>{const S=y.relatedTarget;S&&b.contains(S)||(f(r)?C():b.focus())};return b.addEventListener("blur",x),()=>{b.removeEventListener("blur",x)}},[t,r,f,C]),{inputRef:h,value:r,onChange:v,invalid:l,invalidMessage:d}}const ll=({name:e,type:t,elementId:s,editing:i=!1,loading:o=!1,shared:n=!1,iconSize:r=Ht,validate:a,onSave:l,fileExtension:c,onCancel:d,inputContainerClassName:u,sharedIndicatorClassName:h,sharedIndicatorTooltip:g,hideTooltip:f=!1,forbiddenSymbolsRegExp:v,forbiddenSymbolsTooltip:C,...w})=>{const{value:b,invalid:x,invalidMessage:y,onChange:S,inputRef:E}=Fw({value:e,isEditing:i,onValidate:a,onCancel:d,onSave:l});if(!i){const R=bh({name:e,isFolder:t===_t.Folder},v,C),F=!!R;return t===_t.Folder?m.jsx(ml,{name:e,loading:o,shared:n,iconSize:r,className:"max-w-[428px] truncate",sharedIndicatorClassName:h,hideTooltip:f,isInvalidName:F,tooltipContent:R}):m.jsx(fl,{className:"max-w-[428px]",...w,name:e,shared:n,iconSize:r,sharedIndicatorClassName:h,hideTooltip:f,isInvalidName:F,tooltipContent:R})}return m.jsx(v9,{type:t,name:b,elementId:s,inputInvalid:x,inputInvalidMessage:y,inputRef:E,onChange:S,iconSize:r,fileExtension:c,inputContainerClassName:u,sharedIndicatorTooltip:g,sharedIndicatorClassName:h})},C9=({items:e,showFiles:t=!1,expandedPaths:s,loadingPaths:i=new Set,loadedPaths:o=new Set,sharedByMePaths:n=new Set,selectedPath:r,emptyStateTitle:a="No Folders",emptyStateDescription:l,emptyStateIcon:c,areHiddenFilesVisible:d=!1,renamedPath:u,rootItemLabel:h,rootItemPath:g,onItemClick:f,getContextMenuItems:v,onRenameSave:C,onRenameCancel:w,onRenameValidate:b,onExpandedPathsChange:x,forbiddenSymbolsRegExp:y,forbiddenSymbolsTooltip:S})=>{const{expandedPaths:E,togglePath:R}=bw({expandedPaths:s??new Set,onExpandedPathsChange:x}),F=P=>{f?.(P),R(P.path)},D=(P,T)=>P.map(M=>{const{path:N,nodeType:q,name:L,items:V}=M,H=q===ye.FOLDER;if(!d&&fw(M))return null;if(!H&&!t)return;const A=Array.isArray(V)&&V.length>0&&V.some(Z=>Z.nodeType===ye.FOLDER||t),de=E.has(N),k=r===N,B=i.has(N),U=u===N,W=o.has(N),re=n.has(N),be=g&&h&&N===g&&H,Q=b&&(Z=>b(Z,M)),j=k?"bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded":"border-l-2 border-l-transparent",ge=be?[]:v?.(M)??[],ie=y?bh({name:M.name,isFolder:H},y,S):void 0;return m.jsx("div",{className:"cursor-pointer text-secondary",children:m.jsxs("div",{className:"flex flex-col w-full","aria-label":"folder",children:[m.jsx(Pt,{trigger:[Gt.ContextMenu],className:"w-full",anchorToMouse:!0,menu:{items:ge},children:m.jsxs("div",{style:{paddingLeft:`${T*f9}px`},className:ne("py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",j),"aria-selected":k,children:[!U&&m.jsx("div",{className:"absolute size-full left-0 top-0 z-0",onClick:()=>F(M)}),m.jsx("div",{className:"relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",onClick:()=>!U&&F(M),children:m.jsxs(m.Fragment,{children:[H&&m.jsx(z.IconCaretRightFilled,{...g9,className:pe("flex-shrink-0",de&&"rotate-90 transition-all",W&&!A&&"text-transparent")}),m.jsx(ll,{elementId:`${N}-tree-item`,name:be?h:L,type:H?_t.Folder:_t.File,loading:B,shared:re,sharedIndicatorClassName:ne("group-hover/item:bg-accent-primary-alpha",k&&"bg-accent-primary-alpha"),iconSize:oi,forbiddenSymbolsRegExp:y,forbiddenSymbolsTooltip:ie,...!be&&{editing:U,onSave:C,onCancel:w,validate:Q}})]})}),ge.length>0&&!U&&!be&&m.jsx("div",{className:"flex-1 flex justify-end",children:m.jsx(Pt,{placement:"bottom-start",allowedPlacements:["top-start","top-end"],menu:{items:ge},className:"sticky right-0",children:m.jsx(Ye,{className:"invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary",icon:m.jsx(z.IconDotsVertical,{...J})})})})]})}),de&&V&&D(V,T+1)]})},`${N}-children`)});return m.jsx("div",{className:"flex-1 w-full h-full overflow-y-auto","aria-label":"folders-tree",children:e.length>0?D(e,0):m.jsx(dr,{title:a,description:l,icon:c})})},w9=({selectedFiles:e,actionLabels:t,onDuplicate:s,onCopy:i,onMove:o,onDownload:n,onUnshare:r,onRemoveAccess:a,onDelete:l,getCurrentFolderPath:c,sharedWithMeIds:d,sharedByMePaths:u,onClearSelection:h,forbiddenSymbolsRegExp:g})=>p.useMemo(()=>{const f=[],v=Array.from(e.values());if(!v.length||!t)return f;const C=Pl(g),w=C?v.some(b=>C.test(b.name)):!1;if(t[Y.Move]&&!w&&f.push({key:Y.Move,label:t[Y.Move],title:t[Y.Move],icon:m.jsx(vh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>o(v)}),t[Y.Copy]&&!w&&f.push({key:Y.Copy,label:t[Y.Copy],title:t[Y.Copy],icon:m.jsx(mh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>i(v)}),t[Y.Duplicate]&&!w&&f.push({key:Y.Duplicate,label:t[Y.Duplicate],title:t[Y.Duplicate],icon:m.jsx(z.IconCopy,{...J,className:"text-secondary"}),onClick:()=>s(v)}),t[Y.Delete]){const b=v.some(x=>x.permissions&&!x.permissions.includes(Yi.WRITE));f.push({key:Y.Delete,label:t[Y.Delete],title:t[Y.Delete],icon:m.jsx(z.IconTrashX,{...J,className:"text-secondary"}),disabled:b,tooltip:b?"Selected items contain item which can not be deleted":void 0,onClick:()=>{const x=c();l(v,x)}})}if(t[Y.Download]&&!w&&f.push({key:Y.Download,label:t[Y.Download],title:t[Y.Download],icon:m.jsx(z.IconDownload,{...J,className:"text-secondary"}),onClick:()=>n(v)}),t[Y.Unshare]&&r){const b=v.some(x=>!d?.includes(x.path));f.push({key:Y.Unshare,label:t[Y.Unshare],title:t[Y.Unshare],disabled:b,tooltip:b?"Selected items contain item which can not be unshared":void 0,icon:m.jsx(Ch,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>{r(v),h()}})}if(t[Y.RemoveAccess]&&a){const b=v.some(x=>!u?.has(x.path));f.push({key:Y.RemoveAccess,label:t[Y.RemoveAccess],title:t[Y.RemoveAccess],disabled:b,icon:m.jsx(z.IconUserX,{size:J.size,className:"text-secondary"}),onClick:()=>{a(v),h()}})}return f},[e,t,r,a,o,i,s,c,l,n,d,h,u,g]);function Sh(e){if(!e)return null;if(e instanceof Date)return isFinite(e.getTime())?e:null;if(typeof e=="number"){const t=new Date(e);return isFinite(t.getTime())?t:null}if(typeof e=="string"){const t=e.trim();if(/^-?\d+$/.test(t)){const i=Number(t);return Sh(i)}const s=new Date(t);return isFinite(s.getTime())?s:null}return null}const Ew=({value:e,locale:t=VC,options:s=zC,emptyPlaceholder:i,className:o,hideTooltip:n=!1})=>{const r=Sh(e),a=p.useMemo(()=>r?new Intl.DateTimeFormat(t,s).format(r):i,[r,i,t,s]),l=r?r.toISOString():void 0;return m.jsx(ft,{text:l?m.jsx("time",{dateTime:l,children:a}):m.jsx("span",{children:a}),className:pe(H8,o),hideTooltip:n})},b9=({id:e,name:t,nodeType:s,size:i,updatedAt:o,dateLocale:n,dateOptions:r,shared:a,sharedIndicatorClassName:l,hideTooltip:c=!1,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u})=>m.jsx("div",{className:"flex",children:m.jsx("div",{className:"flex flex-1 min-w-0",children:m.jsx(ll,{type:s===ye.FOLDER?_t.Folder:_t.File,name:t,elementId:e,shared:a,iconSize:oi,sharedIndicatorClassName:l,hideTooltip:c,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u,details:m.jsxs("div",{className:"flex items-center gap-1 dial-tiny-text text-secondary",children:[m.jsx("span",{children:s===ye.ITEM?ar(i):""}),o&&i&&m.jsx(z.IconCircleFilled,{size:2,className:"text-secondary"}),o?m.jsx("span",{children:m.jsx(Ew,{value:o,locale:n?.toString(),options:r,className:"dial-tiny-text text-secondary",hideTooltip:c})}):null]})})})}),Dw=e=>(t,s,i)=>({colId:dt.Name,field:"name",headerName:e,flex:1,minWidth:200,cellRenderer:o=>{const n=o.data.nodeType,{saveFolderCreation:r,validateFolderName:a,cancelFolderCreation:l,newFolderTempId:c,sharedByMePaths:d,selectedPaths:u,disabledRowIds:h}=o.context,g=d?.has(o.data.path),f=u?.has(o.data.path),v=h?.has(o.data.path)??!1,C=ne(["group-hover/grid-row:bg-accent-primary-alpha",f&&"bg-accent-primary-alpha"]);if(o.data?.isTemporary&&o.data.id===c)return m.jsx(ll,{name:"",type:_t.Folder,elementId:`new-folder-${o.data.id}`,editing:!0,shared:g,sharedIndicatorClassName:C,iconSize:oi,validate:a,onSave:r,onCancel:l,inputContainerClassName:ne(["!h-9",i&&n===ye.ITEM&&"!h-10"])});const{renameTriggerView:w,renamedPath:b,renamedItem:x,getDisplayName:y,onRenameValidate:S,onRenameSave:E,onRenameCancel:R}=o.context;if(w===Go.Grid&&b===o.data?.path&&x&&o.data){const P=y(x);return m.jsx(ll,{name:P,type:n===ye.FOLDER?_t.Folder:_t.File,fileExtension:x.name.split(".").pop(),elementId:`rename-${o.data.id}`,editing:!0,shared:g,sharedIndicatorClassName:C,iconSize:oi,validate:T=>S(T,x),onSave:E,onCancel:R,inputContainerClassName:ne(["!h-9",i&&n===ye.ITEM&&"!h-10"]),forbiddenSymbolsRegExp:o.context.forbiddenSymbolsRegExp})}if(i)return m.jsx(b9,{id:o.data.id,name:o.data.name,nodeType:n,size:o.data.size,shared:g,sharedIndicatorClassName:C,updatedAt:o.data.updatedAt,dateLocale:t,dateOptions:s,hideTooltip:v,forbiddenSymbolsRegExp:o.context.forbiddenSymbolsRegExp,forbiddenSymbolsTooltip:o.context.forbiddenSymbolsTooltip});const D=bh({name:o.data.name,isFolder:n===ye.FOLDER},o.context.forbiddenSymbolsRegExp,o.context.forbiddenSymbolsTooltip);return n===ye.FOLDER?m.jsx(ml,{name:o.data.name,shared:g,sharedIndicatorClassName:C,iconSize:oi,hideTooltip:v,isInvalidName:!!D,tooltipContent:D}):m.jsx(fl,{name:o.data.name,shared:g,sharedIndicatorClassName:C,iconSize:oi,hideTooltip:v,isInvalidName:!!D,tooltipContent:D})}}),Pw=e=>(t,s)=>({colId:dt.UpdatedAt,field:"updatedAt",headerName:e,width:168,suppressSizeToFit:!0,cellRenderer:i=>{const o=i.context?.disabledRowIds?.has(i.data?.path)??!1;return m.jsx(Ew,{...i,hideTooltip:o})},cellRendererParams:{locale:t,options:s},filterValueGetter:i=>{const o=i.data[i.colDef.field||""],n=Sh(o);return n?new Intl.DateTimeFormat(t||VC,s||zC).format(n):""}}),Tw=e=>({colId:dt.Size,field:"size",headerName:e,width:120,suppressSizeToFit:!0,cellRenderer:t=>t.data.nodeType===ye.ITEM?ar(t.data.contentLength):"",filterValueGetter:t=>t.data.nodeType===ye.ITEM?ar(t.data.contentLength):""}),x9=e=>{const t=e.event;if(!(t?.target??null)?.closest("input")||!t)return!1;switch(t.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":case"Home":case"End":return!0;default:return!1}};function y9({userColumnDefs:e,filterable:t,dateLocale:s,dateOptions:i,effectiveVisibleColumns:o,isCompactView:n,hasActions:r,actionsColumnDef:a,rootItemLabel:l,rootItemPath:c}){const d=p.useMemo(()=>[Dw("Name")(s,i,n),{colId:dt.Path,field:"path",headerName:"Path",flex:1,minWidth:200,cellRenderer:h=>{const g=h.context?.disabledRowIds?.has(h.data.path)??!1;let f=h.data.path;if(h.context?.hideSearchPathItemName&&(h.data.parentPath?f=h.data.parentPath:f=f.replace(/\/[^/]+\/?$/,"")||"/"),!c||!l)return m.jsx(ft,{text:f,hideTooltip:g});const v=f.replace(c,l);return m.jsx(ft,{text:v,hideTooltip:g})}},Pw("Modified Date")(s,i),Tw("Size"),{colId:dt.Author,field:"author",headerName:"Author",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.author},{colId:dt.Owner,field:"owner",headerName:"Owner",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.owner}],[s,i,n,l,c]);return{columnDefs:p.useMemo(()=>{const h=e?.map(v=>typeof v=="function"?v(s,i,n):v);let g=h??d;h||(g=g.filter(v=>v.colId&&o.includes(v.colId))),r&&(n&&(g=g.slice(0,1)),g.push(a));const f=v=>v.colId===dt.Name;return g.map(v=>{const C={...v,filter:t?v.filter:!1,floatingFilter:t?v.floatingFilter:!1};return f(v)&&!v.suppressKeyboardEvent&&(C.suppressKeyboardEvent=x9),C})},[a,s,i,d,o,t,r,n,e])}}const kw=()=>{const e=p.useContext(Cw);if(!e)throw new Error("useFileManagerContext must be used within <FileManagerProvider>");return e},S9=({actionLabels:e,onDuplicate:t,onCopy:s,onMove:i,onDownload:o,onRename:n,onDelete:r,onInfo:a,onUnshare:l,onRemoveAccess:c,sharedWithMeIds:d,sharedByMePaths:u,onAddSibling:h,onAddChild:g,onManagePermissions:f,onPreview:v,onOpenInNewTab:C,previewExtensions:w,isRenameFileAvailable:b=!0,isDuplicateFolderAvailable:x=!0,forbiddenSymbolsRegExp:y})=>p.useMemo(()=>S=>{const E=[];if(!e)return E;const R=Pl(y)?.test(S.name);e[Y.AddSibling]&&typeof h=="function"&&S.nodeType===ye.FOLDER&&E.push({key:"addSibling",label:e[Y.AddSibling],icon:m.jsx(gw,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>h(S)}),e[Y.AddChild]&&typeof g=="function"&&S.nodeType===ye.FOLDER&&!R&&E.push({key:"addChild",label:e[Y.AddChild],icon:m.jsx(pw,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>g(S)},{key:"divider",type:$o.Divider}),e[Y.OpenInNewTab]&&typeof C=="function"&&S.nodeType===ye.ITEM&&!R&&E.push({key:Y.OpenInNewTab,label:e[Y.OpenInNewTab],icon:m.jsx(z.IconExternalLink,{...J,className:"text-secondary"}),onClick:()=>C?.(S)});const F=S.nodeType===ye.ITEM||S.nodeType===ye.FOLDER&&x;e[Y.Duplicate]&&F&&!R&&E.push({key:Y.Duplicate,label:e[Y.Duplicate],icon:m.jsx(z.IconCopy,{...J,className:"text-secondary"}),onClick:()=>t(S)}),e[Y.Copy]&&!R&&E.push({key:Y.Copy,label:e[Y.Copy],icon:m.jsx(mh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>s(S)}),e[Y.Move]&&!R&&E.push({key:Y.Move,label:e[Y.Move],icon:m.jsx(vh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>i(S)}),e[Y.Download]&&!R&&E.push({key:Y.Download,label:e[Y.Download],icon:m.jsx(z.IconDownload,{...J,className:"text-secondary"}),onClick:()=>o(S)}),e[Y.ManagePermissions]&&typeof f=="function"&&S.nodeType===ye.FOLDER&&!R&&E.push({key:Y.ManagePermissions,label:e[Y.ManagePermissions],icon:m.jsx(z.IconExternalLink,{...J,className:"text-secondary"}),onClick:()=>f?.(S.path)});const D=S.name.split("."),P=D.length>1?D[D.length-1]:"",T=P&&w?.includes(`.${P}`);e[Y.Preview]&&typeof v=="function"&&S.nodeType===ye.ITEM&&T&&!R&&E.push({key:Y.Preview,label:e[Y.Preview],icon:m.jsx(z.IconEye,{...J,className:"text-secondary"}),onClick:()=>v?.(S.path)});const M=!S.permissions||S.permissions.includes(Yi.WRITE);e[Y.Delete]&&M&&E.push({key:Y.Delete,label:e[Y.Delete],icon:m.jsx(z.IconTrashX,{...J,className:"text-secondary"}),onClick:()=>r(S,S.parentPath??"")});const N=S.nodeType===ye.FOLDER||S.nodeType===ye.ITEM&&b;return e[Y.Rename]&&N&&E.push({key:Y.Rename,label:e[Y.Rename],icon:m.jsx(z.IconPencilMinus,{...J,className:"text-secondary"}),onClick:()=>n(S.path)}),e[Y.Info]&&S.nodeType===ye.ITEM&&!R&&E.push({key:Y.Info,label:e[Y.Info],icon:m.jsx(z.IconInfoCircle,{...J,className:"text-secondary"}),onClick:()=>a(S)}),e[Y.Unshare]&&d?.includes(S.path)&&E.push({key:Y.Unshare,label:e[Y.Unshare],icon:m.jsx(Ch,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>l(S)}),e[Y.RemoveAccess]&&u?.has(S.path)&&c&&E.push({key:Y.RemoveAccess,label:e[Y.RemoveAccess],icon:m.jsx(z.IconUserX,{size:J.size,className:"text-secondary"}),onClick:()=>c(S)}),E},[e,h,g,t,s,i,o,r,n,a,l,c,d,u,f,v,C,w,b,x,y]),Mw=e=>m.jsx(Sw,{...e,children:m.jsx(R9,{})}),R9=()=>{const{managerLabel:e,className:t,items:s,rootItem:i,filesLoading:o,treeOptions:n,showNavigationPanel:r,navigationPanelOptions:a,gridOptions:l,toolbarOptions:c,bulkActionsToolbarOptions:d,deleteConfirmationOptions:u,destinationFolderPopupOptions:h,conflictResolutionPopupOptions:g,compactViewWidthBreakpoint:f=p7,customBreakpointRef:v,sharedByMePaths:C,allowedFileTypes:w,maxSelectableFileSize:b,areHiddenFilesVisible:x,toggleHiddenFilesVisibility:y,isTreeCollapsed:S,toggleTreeCollapse:E,currentPath:R,gridRows:F,selectedPaths:D,selectedFiles:P,clearSelection:T,setSelectedPaths:M,effectiveSearchValue:N,handleBreadcrumbItemClick:q,handleSearchChange:L,handleTreeItemClick:V,handleTableRowClick:H,handleSelectionClick:A,onGridApiChange:de,handleOpenDestinationFolderPopup:k,handleCloseDestinationFolderPopup:B,openDestinationFolderPopup:U,destinationFolderMode:W,handleSetCopiedFiles:re,handleSetMovedFiles:be,handleDuplicate:Q,handleCopyTo:j,handleMoveTo:ge,handleAddSibling:ie,handleAddChild:Z,handleDownloadFiles:_,openDeleteConfirmation:ae,closeDeleteConfirmation:G,confirmDelete:fe,deleteConfirmationOpen:he,itemsToDelete:se,renamedPath:le,renamedItem:Fe,onRename:Oe,onRenameSave:Ce,onRenameCancel:Ee,onRenameValidate:je,forbiddenSymbolsRegExp:_e,forbiddenSymbolsTooltip:Ae,getDisplayName:Tt,isDragging:is,isDraggingOverWindow:kt,handleDragEnter:Ge,handleDragLeave:K,handleDragOver:He,handleDrop:os,onUploadFiles:nn,onValidateUpload:Tl,maxFileSize:kl,newActions:fi,isNewButtonVisible:rn,isNewButtonDisabled:Xi,newFolderTempId:wr,cancelFolderCreation:Zi,saveFolderCreation:br,validateFolderName:xr,startFolderCreation:yr,conflictingFiles:Ml,conflictResolutionOpen:Il,handleConflictReplace:$s,handleConflictDuplicate:Ds,handleConflictCancel:Ps,handleConflictDecideForEach:mi,uploadConflictingFiles:qs,uploadConflictResolutionOpen:Al,handleUploadConflictReplace:Ll,handleUploadConflictDuplicate:Ol,handleUploadConflictCancel:Nl,handleUploadConflictDecideForEach:st,openMetadataPopup:Hl,fileMetadataPopupOptions:Ct,isMetadataPopupOpen:an,selectedFileForMetadata:ln,closeMetadataPopup:cn,onUnshareFiles:Qi,onRemoveFilesAccess:Ji,actionsRef:Gl,searchInProgress:eo,isSearchMode:Ts,emptyStateIcon:Sr,emptyStateTitle:Rr="You don't have any files",emptyStateDescription:Fr="Upload or drag and drop files",sharedWithMeIds:to,onFolderPopupPathChange:Bl,onManagePermissions:so,onPreview:Vl,onOpenInNewTab:zl,previewExtensions:Wl,isRenameFileAvailable:jl,isDuplicateFolderAvailable:_l,getDisabledTooltip:dn,fileTooLargeTooltip:Er,unsupportedFileTypeTooltip:io,gridClassName:Ul,nonClickableTableColumns:un,hideSearchPathItemName:wt,showHiddenFileSwitcherInDestinationPopup:Dr}=kw(),{width:rt=a7,header:Pr=l7,containerClassName:Tr=o7,additionalButtons:kr,...Mr}=n??{},[oo,no]=p.useState(rt),{renameTriggerView:ro,onGridRename:$l,onTreeRename:Ir}=m7({onRename:Oe}),hn=p.useRef(null),ql=X=>{hn.current===null&&(hn.current=requestAnimationFrame(()=>{no(X),hn.current=null}))},{columnDefs:Kl,filterable:Yl=!0,dateLocale:Xl,dateOptions:Zl,selectionMode:Ar,wrapCustomCellRenderers:Lr,visibleColumns:Or=g7,allowDisabledContextMenu:ao=!1,...Ks}=l??{},{containerRef:Ql,isBelowBreakpoint:Mt}=v7(f,v),Jl=p.useMemo(()=>Ts?[dt.Name,dt.Path,dt.Actions]:Or,[Ts,Or]),pn=p.useCallback((X,Ue,Ze)=>k7(X,Ue,Ze,io,Er),[Er,io]),lo=p.useCallback((X,Ue,Ze)=>!!pn(X,Ue,Ze),[pn]),vi=p.useMemo(()=>{const X=new Set;for(const Ue of F)lo(Ue,w,b)&&X.add(Ue.path);return X},[w,b,F,lo]),Nr=p.useCallback(X=>{const Ue=[],Ze=[],$t=!X.parentPath,ps=_e?.test(X.name);return n?.actionLabels&&(n.actionLabels[Y.AddSibling]&&typeof ie=="function"&&X.nodeType===ye.FOLDER&&!$t&&Ue.push({key:"addSibling",label:n.actionLabels[Y.AddSibling],icon:m.jsx(gw,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>ie([X])}),n.actionLabels[Y.AddChild]&&typeof Z=="function"&&X.nodeType===ye.FOLDER&&!ps&&Ue.push({key:"addChild",label:n.actionLabels[Y.AddChild],icon:m.jsx(pw,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>Z([X])}),n.actionLabels[Y.Duplicate]&&!$t&&!ps&&Ze.push({key:"duplicate",label:n.actionLabels[Y.Duplicate],icon:m.jsx(z.IconCopy,{...J,className:"text-secondary"}),onClick:()=>Q([X])}),n.actionLabels[Y.Copy]&&!$t&&!ps&&Ze.push({key:ct.Copy,label:n.actionLabels[Y.Copy],icon:m.jsx(mh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>{re([X]),k(ct.Copy)}}),n.actionLabels[Y.Move]&&!$t&&!ps&&Ze.push({key:ct.Move,label:n.actionLabels[Y.Move],icon:m.jsx(vh,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>{be([X]),k(ct.Move)}}),n.actionLabels[Y.Download]&&!$t&&!ps&&Ze.push({key:"download",label:n.actionLabels[Y.Download],icon:m.jsx(z.IconDownload,{...J,className:"text-secondary"}),onClick:()=>_([X])}),n.actionLabels[Y.Rename]&&!$t&&Ze.push({key:"rename",label:n.actionLabels[Y.Rename],icon:m.jsx(z.IconPencilMinus,{...J,className:"text-secondary"}),onClick:()=>Ir(X.path)}),n.actionLabels[Y.Unshare]&&to?.includes(X.path)&&!$t&&Ze.push({key:"unshare",label:n.actionLabels[Y.Unshare],icon:m.jsx(Ch,{width:J.size,height:J.size,className:"text-secondary"}),onClick:()=>Qi?.([X])}),n.actionLabels[Y.RemoveAccess]&&C?.has(X.path)&&!$t&&Ze.push({key:Y.RemoveAccess,label:n.actionLabels[Y.RemoveAccess],icon:m.jsx(z.IconUserX,{size:J.size,className:"text-secondary"}),onClick:()=>Ji?.([X])}),n.actionLabels[Y.ManagePermissions]&&typeof so=="function"&&X.nodeType===ye.FOLDER&&!$t&&Ze.push({key:Y.ManagePermissions,label:n.actionLabels[Y.ManagePermissions],icon:m.jsx(z.IconExternalLink,{...J,className:"text-secondary"}),onClick:()=>so?.(X.path)}),n.actionLabels[Y.Delete]&&X.permissions?.includes(Yi.WRITE)&&!$t&&Ze.push({key:"delete",label:n.actionLabels[Y.Delete],icon:m.jsx(z.IconTrashX,{...J,className:"text-secondary"}),onClick:()=>ae([X],X.parentPath??"")})),Ue.length?Ze.length===0?Ue:Ue.length===0?Ze:[...Ue,{key:"divider",type:$o.Divider},...Ze]:Ze},[n?.actionLabels,ie,_e,Z,so,Q,re,k,be,_,Ir,Qi,Ji,to,C,ae]),Hr=p.useMemo(()=>{const X=new Set;return P.forEach((Ue,Ze)=>X.add(Ze)),X},[P]),Gr=p.useCallback((X,Ue)=>{M(X),A?.(Ue)},[A,M]),Br=w9({selectedFiles:P,actionLabels:d?.actionLabels,onDuplicate:Q,onCopy:X=>{re(X),k(ct.Copy)},onMove:X=>{be(X),k(ct.Move)},onDownload:_,onDelete:ae,onUnshare:Qi,onRemoveAccess:Ji,getCurrentFolderPath:()=>R??"/",sharedWithMeIds:to,sharedByMePaths:C,onClearSelection:T,forbiddenSymbolsRegExp:_e}),gn=p.useCallback(X=>{c?.onTabChange?.(X),Zi()},[c,Zi]),ec=p.useCallback(()=>c&&D.size===0?m.jsxs("div",{className:Ng,role:"toolbar","aria-label":"File Manager Toolbar",children:[e,m.jsx(d9,{...c,onTabChange:gn,areHiddenFilesVisible:x,onToggleHiddenFiles:y,isNewButtonVisible:rn,isNewButtonDisabled:Xi,newButtonDropdownItems:fi})]}):D.size>0&&d?m.jsx("div",{className:Ng,role:"toolbar","aria-label":"File Manager Toolbar",children:m.jsx(o9,{...d,selectedCount:D.size,onClearSelection:T,actions:Br})}):null,[gn,d,D,T,Br,x,y,c,rn,Xi,fi,e]);p.useImperativeHandle(Gl,()=>({createFolder:yr}),[yr]);const Vr=p.useCallback(()=>Mt?null:m.jsx("aside",{role:"region","aria-label":"File Manager Tree Navigation",className:"min-h-0 min-w-0 h-full flex-none",children:m.jsx(xf,{defaultWidth:oo,width:oo,onResizeStop:no,onResize:ql,minWidth:d7,maxWidth:u7,enabled:!S,children:m.jsx(af,{width:oo,title:Pr,containerClassName:Tr,titleClassName:"dial-body-text text-primary",additionalButtons:kr,isOpened:!S,onToggle:E,children:m.jsx(C9,{...Mr,items:s,rootItemPath:i?.path,rootItemLabel:i?.label,selectedPath:R,sharedByMePaths:C,forbiddenSymbolsRegExp:_e,forbiddenSymbolsTooltip:Ae,onItemClick:V,areHiddenFilesVisible:x,getContextMenuItems:Nr,renamedPath:ro===Go.Tree?le:void 0,onRenameSave:Ce,onRenameCancel:Ee,onRenameValidate:je})})})}),[Mt,oo,S,Pr,Tr,kr,E,Mr,s,i?.path,i?.label,R,C,_e,Ae,V,x,Nr,ro,le,Ce,Ee,je]),zr=S9({actionLabels:l?.actionLabels,onDuplicate:X=>Q([X]),onCopy:X=>{re([X]),k(ct.Copy)},onMove:X=>{be([X]),k(ct.Move)},onDownload:X=>_([X]),onRename:$l,onDelete:(X,Ue)=>ae([X],Ue),onInfo:X=>Hl(X),onUnshare:X=>Qi?.([X]),onRemoveAccess:X=>Ji?.([X]),sharedWithMeIds:to,sharedByMePaths:C,onAddChild:X=>Z?.([X]),onAddSibling:X=>ie?.([X]),onManagePermissions:X=>so?.(X),onPreview:X=>Vl?.(X),onOpenInNewTab:X=>zl?.(X),previewExtensions:Wl,isRenameFileAvailable:jl,isDuplicateFolderAvailable:_l,forbiddenSymbolsRegExp:_e}),co=p.useCallback(X=>{const Ue=Vs(s,X.path);return Ue?zr(Ue):[]},[s,zr]),tc=p.useCallback((X,Ue,Ze)=>ao?!1:lo(X,Ue,Ze),[ao,lo]),{actionsColumnDef:sc}=f7({getContextMenuItems:co,isRowDisabled:tc,allowedFileTypes:w,buttonClassName:Mt?"":r7}),{columnDefs:fn}=y9({userColumnDefs:Kl,filterable:Yl,dateLocale:Xl,dateOptions:Zl,effectiveVisibleColumns:Jl,isCompactView:Mt,hasActions:!!l?.actionLabels,actionsColumnDef:sc,rootItemLabel:i?.label,rootItemPath:i?.path}),Wr=p.useCallback(X=>{X.colDef.colId==="ag-Grid-SelectionColumn"||X.colDef.colId===dt.Actions||le&&X.data?.path===le||X.data?.isTemporary||un&&un.includes(X.colDef.colId)||X.data&&H(X.data)},[le,H,un]),jr=p.useCallback(()=>m.jsx(dr,{title:Rr,description:Fr,descriptionClassName:"text-sm",containerClassName:"gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",titleClassName:"mt-2 !text-lg",icon:Sr||m.jsx(z.IconFileDescription,{size:100,stroke:.5,className:"text-secondary"})}),[Fr,Sr,Rr]),_r=p.useMemo(()=>X=>X.path,[]),Ur=p.useMemo(()=>pe("min-h-[248px] overflow-auto md:min-h-[266px]",is?"border border-dashed border-accent-primary":"",kt&&!is?"border border-dashed border-primary":""),[is,kt]),$r=p.useMemo(()=>({...Ks.additionalGridOptions,onCellClicked:Wr,headerHeight:id,rowHeight:id,rowClass:"group/grid-row",defaultColDef:{...Ks.additionalGridOptions?.defaultColDef,floatingFilter:a?.searchable?!1:Ks.additionalGridOptions?.defaultColDef?.floatingFilter},...Mt?{getRowHeight:X=>X.data?.nodeType===ye.FOLDER?id:h7}:{},context:{cancelFolderCreation:Zi,saveFolderCreation:br,getDisplayName:Tt,onRenameCancel:Ee,onRenameSave:Ce,onRenameValidate:je,renameTriggerView:ro,validateFolderName:xr,renamedItem:Fe,renamedPath:le,newFolderTempId:wr,sharedByMePaths:C,selectedPaths:D,disabledRowIds:vi,forbiddenSymbolsRegExp:_e,forbiddenSymbolsTooltip:Ae,hideSearchPathItemName:wt}}),[Ks.additionalGridOptions,Wr,a?.searchable,Mt,Zi,br,Tt,Ee,Ce,je,ro,xr,Fe,le,wr,C,D,vi,_e,Ae,wt]),qr=p.useMemo(()=>F.length===0&&!Ts&&!o?jr():m.jsx(uh,{columnDefs:fn,rowData:F,getRowId:_r,loading:o||eo,getContextMenuItems:co,withoutHeaderBorders:Mt,onGridApiChange:de,className:Ur,...Ks,selectionMode:Ar,wrapCustomCellRenderers:Lr,additionalGridOptions:$r,selectedRowIds:Hr,onSelectionChange:Gr,wrapperBorder:!is&&!kt,disabledRowIds:vi,allowDisabledContextMenu:ao}),[F,Ts,o,jr,fn,_r,eo,co,Mt,de,Ur,Ks,Ar,Lr,$r,Hr,Gr,is,kt,vi,ao]);return m.jsx("section",{ref:Ql,className:"size-full",children:m.jsxs("div",{className:ne(t7,{"gap-3 pt-4":d&&D.size>0,"gap-4 p-3 pt-4":Mt,"gap-2 pt-2":Mt&&d&&D.size>0},t),children:[ec(),m.jsxs("div",{className:ne(s7,Ul),children:[Vr(),m.jsxs("div",{className:ne(i7,{"gap-3":Mt}),children:[r&&m.jsx(c9,{...a??{},makeHref:X=>X.join("/"),path:R,onItemClick:q,rootItemPath:i?.path,rootItemLabel:i?.label,value:N,onSearchChange:L,isCompactView:Mt,labelClassName:"dial-tiny-text"}),m.jsxs("section",{role:"region","aria-label":"File Manager Grid View",className:ne(n7,"relative"),onDragEnter:Ge,onDragLeave:K,onDragOver:He,onDrop:os,children:[qr,m.jsx(e9,{disabledGridRowIds:vi,gridRows:F,getDisabledTooltip:dn,getRowDisabledTooltip:pn,allowedFileTypes:w,maxSelectableFileSize:b})]})]})]}),m.jsx(n9,{...u,open:he,itemsToDelete:se,onClose:G,onConfirm:fe}),m.jsx(Rw,{...h,open:U,onClose:B,onConfirm:()=>{const X=h?.destinationFolderPath??"/";W===ct.Copy?j(X):ge(X),B()},mode:W,items:s,rootItem:i,gridOptions:{columnDefs:fn.filter(X=>X.colId!==dt.Actions),loading:o},onUploadFiles:nn,onValidateUpload:Tl,maxFileSize:kl,path:h?.destinationFolderPath??h?.sourceFolder??R,onPathChange:X=>{h?.setDestinationFolderPath?.(X)},sourceFolder:h?.sourceFolder??R,treeOptions:{header:n?.header},onFolderPopupPathChange:Bl,showHiddenFileSwitcher:Dr,hideSearchPathItemName:wt}),m.jsx(Hg,{...g,open:Il,onClose:Ps,onReplace:$s,onDuplicate:Ds,onDecideForEach:mi,conflictingFiles:Ml}),m.jsx(Hg,{...g,open:Al,onClose:Nl,onReplace:Ll,onDuplicate:Ol,onDecideForEach:st,conflictingFiles:qs}),m.jsx(p9,{open:an,onClose:cn,fileMetadata:Ct?.fileMetadata??ln,loading:Ct?.loading,header:Ct?.header,nameLabel:Ct?.nameLabel,pathLabel:Ct?.pathLabel,modifiedDateLabel:Ct?.modifiedDateLabel,sizeLabel:Ct?.sizeLabel,authorLabel:Ct?.authorLabel,dateLocale:l?.dateLocale,dateOptions:l?.dateOptions})]})})},F9=(e,t=Eo.MyFiles)=>{const s=Object.values(Eo).includes(t)?t:Eo.MyFiles,[i,o]=p.useState(s),n=a=>{o(a)},r=p.useMemo(()=>{if(e)return Object.values(Eo).map(a=>({id:a,label:e?.[a]||a.replace("_"," ")}))},[e]);return{activeTab:i,handleTabChange:n,tabs:r}},E9="application/octet-stream";function D9(e,t){if(!e||e.length===0)return[];const s=e.find(l=>l.parentPath===""&&l.nodeType==="FOLDER");if(!s)return[];const i=s.path||s.url||"",o=cd(i,!0),n=e.filter(l=>l!==s).map(l=>{const c=l.path||l.url||"",d=P9(l.nodeType),u=d===ye.FOLDER,h=cd(c,u);let g;return l.parentPath===null||l.parentPath===void 0?g=o:l.parentPath===""?g="":g=cd(l.parentPath,!0),{...l,originalPath:c,path:h,parentPath:g,nodeType:d}}),r=new Map;n.forEach(l=>{const c={...l,id:l.originalPath,name:l.name,path:l.path,parentPath:l.parentPath,nodeType:l.nodeType,resourceType:T9(l.resourceType),folderId:t,updatedAt:l.updatedAt?new Date(l.updatedAt).toISOString():new Date().toISOString(),items:l.nodeType===ye.FOLDER?[]:void 0};l.nodeType===ye.ITEM&&(c.extension=k9(l.name),c.contentType=l.contentType||E9,c.contentLength=l.contentLength||0),r.set(l.path,c)});const a=[];return r.forEach(l=>{if(l.parentPath===o)a.push(l);else{const c=l.path.lastIndexOf(l.name||""),d=l.path.slice(0,c),u=r.get(d);u&&u.nodeType===ye.FOLDER?(u.items=u.items||[],u.items.push(l)):a.push(l)}}),a}function cd(e,t){try{let s=decodeURIComponent(e);return t?s.endsWith("/")||(s+="/"):s.endsWith("/")&&(s=s.slice(0,-1)),s}catch{return t&&!e.endsWith("/")?e+"/":!t&&e.endsWith("/")?e.slice(0,-1):e}}function P9(e){return e.toUpperCase()==="FOLDER"?ye.FOLDER:ye.ITEM}function T9(e){if(!e)return;const t=e.toUpperCase();return Object.values(wh).find(i=>i.toUpperCase()===t)}function k9(e){const t=e.split(".");return t.length>1?t[t.length-1]:""}function M9(e,t="Prompts",s="prompts/public/",i="root"){const o=D9(e,i);return[{id:i,name:t,path:s,parentPath:"",nodeType:ye.FOLDER,folderId:i,items:o}]}exports.AlertVariant=as;exports.BASE_ICON_PROPS=J;exports.BASE_ICON_SIZE=Ht;exports.ButtonAppearance=ke;exports.ButtonVariant=ze;exports.ConfirmationPopupVariant=qo;exports.DIAL_ICON_SIZE=vt;exports.DialAlert=rf;exports.DialAutocompleteInputValue=ew;exports.DialBreadcrumb=qC;exports.DialBreadcrumbItem=Mn;exports.DialButton=ss;exports.DialButtonDropdown=tu;exports.DialCaptionText=lr;exports.DialCheckbox=gd;exports.DialCloseButton=dh;exports.DialCollapsibleSidebar=af;exports.DialConditionalResizableContainer=xf;exports.DialConfirmationPopup=QC;exports.DialDestinationFolderPopup=Rw;exports.DialDraggableItem=a0;exports.DialDropdown=Pt;exports.DialEllipsisTooltip=ft;exports.DialErrorButton=YC;exports.DialErrorIconButton=XC;exports.DialErrorText=ls;exports.DialFileIcon=gu;exports.DialFileManager=Mw;exports.DialFileManagerActions=Y;exports.DialFileManagerTabs=Eo;exports.DialFileName=fl;exports.DialFileNodeType=ye;exports.DialFilePermission=Yi;exports.DialFileResourceType=wh;exports.DialFolderName=ml;exports.DialFormItem=au;exports.DialFormPopup=CL;exports.DialGhostButton=Z8;exports.DialGhostIconButton=oL;exports.DialGrid=uh;exports.DialIcon=Ye;exports.DialIconButton=di;exports.DialInput=on;exports.DialInputPopup=tw;exports.DialItemType=_t;exports.DialLabel=Wi;exports.DialLabelledText=o1;exports.DialLinkButton=X8;exports.DialLoadFileArea=hw;exports.DialLoadFileAreaField=QL;exports.DialLoader=cr;exports.DialNeutralButton=Fs;exports.DialNeutralIconButton=eL;exports.DialNoDataContent=dr;exports.DialNumberInput=RL;exports.DialPasswordInput=DL;exports.DialPopup=Ki;exports.DialPrimaryButton=Ss;exports.DialPrimaryIconButton=J8;exports.DialRadioButton=ru;exports.DialRadioGroup=Ia;exports.DialRadioGroupPopupField=gL;exports.DialRemoveButton=ZC;exports.DialResizableContainer=bf;exports.DialSearch=gh;exports.DialSecondaryIconButton=tL;exports.DialSelect=nw;exports.DialSelectField=OL;exports.DialSharedEntityIndicator=$n;exports.DialSkeleton=bo;exports.DialSkeletonAvatarShape=Aa;exports.DialSkeletonAvatarSize=An;exports.DialSkeletonVariant=Zt;exports.DialSteps=Qb;exports.DialSuccessIconButton=iL;exports.DialSwitch=ph;exports.DialTabs=jC;exports.DialTag=yo;exports.DialTagInput=JC;exports.DialTertiaryIconButton=sL;exports.DialTextarea=nL;exports.DialTooltip=At;exports.DropdownItemType=$o;exports.DropdownTrigger=Gt;exports.DropdownType=BC;exports.ElementSize=Rt;exports.FileManagerColumnKey=dt;exports.FileManagerProvider=Sw;exports.FlexibleActionsDirection=Fi;exports.FormItemOrientation=Un;exports.GridSelectionMode=_n;exports.NAME_COLUMN=Dw;exports.NOT_ALLOWED_SPACES=xh;exports.NOT_ALLOWED_SPACES_REGEXP=J7;exports.NOT_ALLOWED_SYMBOLS=xw;exports.NOT_ALLOWED_SYMBOLS_REGEXP=yw;exports.PopupSize=jt;exports.RadioGroupOrientation=Ai;exports.ResizableContainerSide=qn;exports.SIZE_COLUMN=Tw;exports.SelectSize=rl;exports.SelectVariant=al;exports.StepStatus=Bt;exports.TabOrientation=ol;exports.TagVariant=cl;exports.UPDATED_AT_COLUMN=Pw;exports.mergeClasses=ne;exports.useDialFileManagerTabs=F9;exports.useEditableItem=Fw;exports.useFileManagerContext=kw;exports.wrapInRootFolder=M9;
|