diff --git a/assets/Columns-1o5Vx9nI.js b/assets/Columns-OZmivVgq.js similarity index 99% rename from assets/Columns-1o5Vx9nI.js rename to assets/Columns-OZmivVgq.js index 38ed95cb..a11434e1 100644 --- a/assets/Columns-1o5Vx9nI.js +++ b/assets/Columns-OZmivVgq.js @@ -1 +1 @@ -import{_ as G,c as A,i as v,L,F as B,l as D,t as P,k as H,a8 as q,H as y,d as e,ab as c,ar as u,aQ as R,n as E,a7 as I,a9 as O,aa as k,B as N,r as F,ac as M,aR as $,ah as Q,al as U,am as W,an as _,ao as V,ap as K,aq as J,ad as X,aC as Y,ae as o,af as i,ag as h,aS as Z,aK as ee,aT as re}from"./index-uoLhYpcj.js";const se={root:"fui-Caption1Stronger"},ne=G({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"flh3ekv",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),ae=A({useStyles:ne,className:se.root,displayName:"Caption1Stronger"}),le=v({flex:B,box:{...D,flexBasis:"50%",rowGap:P.spacingVerticalM}}),T=new L("Order","Info");function te({OrderId:r,Order:s,Admin:n}){const a=le(),{data:m}=H(()=>q.User.Get.OrderUser(r),{manual:!n,onError:T.error}),{data:j}=y.User.Get.useMe(T,{manual:n}),l=n?m:j;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Name",size:"large",children:e.jsx(u,{children:l?.Name})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Phone",size:"large",children:e.jsx(u,{children:l?.Phone})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Order Date",size:"large",children:e.jsx(u,{children:s?.CreateAt.toLocaleDateString()})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Status",size:"large",children:e.jsx(u,{children:s?.Status})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"E-Mail",size:"large",children:e.jsx(u,{children:l?.EMail})})}),!n&&e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Tracking Number",size:"large",children:e.jsx(u,{children:s?.TrackingNumber})})})]}),e.jsx(c,{label:"Address",size:"large",children:e.jsx(u,{children:l?.Address})})]})}const ce=v({body:{...D,alignItems:"flex-start"}});function ie({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const m=R(()=>a.With("Action")),j=ce(),{Reload:l}=E(),{dispatch:d,dispatchToast:p}=I(m),{run:g}=y.Order.Post.useReceived({manual:!0,onError(C,t){d({Message:"Failed Mark Receive",Request:t,Error:C})},onSuccess(){p(e.jsx(O,{children:e.jsx(k,{children:"Order Received"})}),{intent:"success"}),n()}}),{run:b}=y.Order.Delete.useDelete({manual:!0,onError(C,t){d({Message:"Failed Delete Order",Request:t,Error:C})},onSuccess(){p(e.jsx(O,{children:e.jsx(k,{children:"Order Deleted"})}),{intent:"success"}),l("History")}});switch(s){case"Pending":case"Processing":case"Finished":case"Returning":return null}return e.jsx(c,{label:"Action",size:"large",children:e.jsxs("div",{className:j.body,children:[s==="Cancelled"&&e.jsx(N,{appearance:"subtle",onClick:()=>b(r),children:"Delete Order"}),s==="Shipping"&&e.jsx(N,{appearance:"subtle",onClick:()=>g(r),children:"I Received Order"})]})})}const oe=v({body:{...B,justifyContent:"space-between"}});function de({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const m=R(()=>a.With("Append")),j=oe(),[l,d]=F.useState(),{dispatch:p,dispatchToast:g}=I(m),{run:b}=y.Order.Post.useAppend({manual:!0,onError(t,f){p({Message:"Failed Append Comment",Request:f,Error:t})},onSuccess(){g(e.jsx(O,{children:e.jsx(k,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:C}=y.Order.Post.useCancel({manual:!0,onError(t,f){p({Message:"Failed Cancel Order",Request:f,Error:t})},onSuccess(){g(e.jsx(O,{children:e.jsx(k,{children:"Order Canceled"})}),{intent:"success"}),n()}});switch(s){case"Cancelled":case"Finished":return null}return e.jsxs(e.Fragment,{children:[e.jsx(c,{label:"Append",size:"large",children:e.jsx(M,{value:l,onChange:(t,f)=>d(f.value),maxLength:1e3})}),e.jsxs("div",{className:j.body,children:[!(s==="Finished"||s==="Returning")&&e.jsxs(N,{onClick:()=>C(r,l),children:[s==="Shipping"?"Ask Return":"Cancel Order"," with Reason"]}),e.jsx(N,{appearance:"primary",onClick:()=>b(r,l),children:"Add Comment"})]})]})}function ue({Comments:r}){return e.jsx(c,{label:"Comment",size:"large",children:r?.length===0?e.jsx(u,{children:"No Comment"}):r?.map((s,n)=>e.jsxs("div",{children:[e.jsxs(ae,{children:[s.User," ",s.Time.toLocaleString()]}),e.jsx("br",{}),e.jsx($,{children:s.Content})]},n))})}const S=v({body:{...D,rowGap:P.spacingVerticalL},prod:{...D,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"10%",flexGrow:0,justifyContent:"center"}}),xe=[o({columnId:"Product",renderHeaderCell(){return e.jsx(i,{children:"Product Name & Types"})},renderCell(r){return e.jsxs(h,{className:S().prod,children:[e.jsx(Z,{href:`/Product/${r.ProdId}`,appearance:"subtle",children:e.jsx(ee,{children:r.Name})}),e.jsx(re,{children:Object.values(r.Type).reduce((s,n)=>`${s} ${n},`,"")})]})}}),o({columnId:"Quantity",renderHeaderCell(){return e.jsx(i,{className:S().qua,children:"Quantity"})},renderCell(r){return e.jsx(h,{className:S().qua,children:r.Quantity})}})];function he({OrderId:r,ParentLog:s}){const n=R(()=>s.With("Detail")),a=S(),[m,{setTrue:j,setFalse:l}]=Q(),{Nav:d,Paths:p}=E(),g=parseInt(p.at(1)),{data:b,run:C}=H(()=>y.Order.Get.Detail(r,n),{manual:!0,onError:n.error}),{data:t,run:f}=H(()=>y.Order.Get.Order(r),{onError(z){d("History"),n.error(z)},manual:!0});function w(){f(),C()}return F.useEffect(()=>{g===r?(w(),j()):l()},[g]),e.jsxs(e.Fragment,{children:[e.jsx(N,{appearance:"subtle",icon:e.jsx(U,{}),onClick:()=>d("History",r)}),e.jsxs(W,{open:m,position:"end",size:"medium",modalType:"alert",children:[e.jsx(_,{children:e.jsx(V,{action:e.jsx(N,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>d("History")}),children:"Order Detail"})}),e.jsx(J,{children:e.jsxs("div",{className:a.body,children:[e.jsx(te,{OrderId:r,Order:t}),e.jsx(X,{Items:b?.ShopCart||[],Columns:[Y(44,n),...xe]}),e.jsx(ue,{Comments:b?.Comments}),e.jsx(de,{OrderId:r,Status:t?.Status,Refresh:w,ParentLog:n}),e.jsx(ie,{OrderId:r,Status:t?.Status,Refresh:w,ParentLog:n})]})})]})]})}const x=v({five:{flexBasis:"5%",flexGrow:0},ten:{flexBasis:"10%",flexGrow:0},two:{flexBasis:"2.5%",flexGrow:0}}),me=[o({columnId:"OrderId",renderHeaderCell:()=>e.jsx(i,{className:x().five,children:"Order Id"}),renderCell(r){return e.jsx(h,{className:x().five,children:r.Id})}}),o({columnId:"Products",renderHeaderCell:()=>e.jsx(i,{children:"Products"}),renderCell(r){return e.jsxs(h,{children:[r.Items[0]," ",r.Items.length>1&&`& +${r.Items.length-1}`]})}}),o({columnId:"OrderDate",renderHeaderCell:()=>e.jsx(i,{children:"Order Date"}),renderCell(r){return e.jsx(i,{children:r.OrderDate.toLocaleDateString()})}}),o({columnId:"TrackNumber",renderHeaderCell:()=>e.jsx(i,{children:"Track Number"}),renderCell(r){return e.jsx(h,{children:r.TrackNumber})}}),o({columnId:"Quantity",renderHeaderCell:()=>e.jsx(i,{className:x().ten,children:"Quantity"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Quantity})}}),o({columnId:"Status",renderHeaderCell:()=>e.jsx(i,{className:x().ten,children:"Order State"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Status})}})];function pe(r){return[...me,o({columnId:"Detail",renderHeaderCell:()=>e.jsx(i,{className:x().two,children:"Detail"}),renderCell(s){return e.jsx(h,{className:x().two,children:e.jsx(he,{OrderId:s.Id,ParentLog:r})})}})]}export{pe as H,te as O,ue as a}; +import{_ as G,c as A,i as v,L,F as B,l as D,t as P,k as H,a8 as q,H as y,d as e,ab as c,ar as u,aQ as R,n as E,a7 as I,a9 as O,aa as k,B as N,r as F,ac as M,aR as $,ah as Q,al as U,am as W,an as _,ao as V,ap as K,aq as J,ad as X,aC as Y,ae as o,af as i,ag as h,aS as Z,aK as ee,aT as re}from"./index-5gW6pgm0.js";const se={root:"fui-Caption1Stronger"},ne=G({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"flh3ekv",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),ae=A({useStyles:ne,className:se.root,displayName:"Caption1Stronger"}),le=v({flex:B,box:{...D,flexBasis:"50%",rowGap:P.spacingVerticalM}}),T=new L("Order","Info");function te({OrderId:r,Order:s,Admin:n}){const a=le(),{data:m}=H(()=>q.User.Get.OrderUser(r),{manual:!n,onError:T.error}),{data:j}=y.User.Get.useMe(T,{manual:n}),l=n?m:j;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Name",size:"large",children:e.jsx(u,{children:l?.Name})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Phone",size:"large",children:e.jsx(u,{children:l?.Phone})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Order Date",size:"large",children:e.jsx(u,{children:s?.CreateAt.toLocaleDateString()})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Status",size:"large",children:e.jsx(u,{children:s?.Status})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"E-Mail",size:"large",children:e.jsx(u,{children:l?.EMail})})}),!n&&e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Tracking Number",size:"large",children:e.jsx(u,{children:s?.TrackingNumber})})})]}),e.jsx(c,{label:"Address",size:"large",children:e.jsx(u,{children:l?.Address})})]})}const ce=v({body:{...D,alignItems:"flex-start"}});function ie({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const m=R(()=>a.With("Action")),j=ce(),{Reload:l}=E(),{dispatch:d,dispatchToast:p}=I(m),{run:g}=y.Order.Post.useReceived({manual:!0,onError(C,t){d({Message:"Failed Mark Receive",Request:t,Error:C})},onSuccess(){p(e.jsx(O,{children:e.jsx(k,{children:"Order Received"})}),{intent:"success"}),n()}}),{run:b}=y.Order.Delete.useDelete({manual:!0,onError(C,t){d({Message:"Failed Delete Order",Request:t,Error:C})},onSuccess(){p(e.jsx(O,{children:e.jsx(k,{children:"Order Deleted"})}),{intent:"success"}),l("History")}});switch(s){case"Pending":case"Processing":case"Finished":case"Returning":return null}return e.jsx(c,{label:"Action",size:"large",children:e.jsxs("div",{className:j.body,children:[s==="Cancelled"&&e.jsx(N,{appearance:"subtle",onClick:()=>b(r),children:"Delete Order"}),s==="Shipping"&&e.jsx(N,{appearance:"subtle",onClick:()=>g(r),children:"I Received Order"})]})})}const oe=v({body:{...B,justifyContent:"space-between"}});function de({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const m=R(()=>a.With("Append")),j=oe(),[l,d]=F.useState(),{dispatch:p,dispatchToast:g}=I(m),{run:b}=y.Order.Post.useAppend({manual:!0,onError(t,f){p({Message:"Failed Append Comment",Request:f,Error:t})},onSuccess(){g(e.jsx(O,{children:e.jsx(k,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:C}=y.Order.Post.useCancel({manual:!0,onError(t,f){p({Message:"Failed Cancel Order",Request:f,Error:t})},onSuccess(){g(e.jsx(O,{children:e.jsx(k,{children:"Order Canceled"})}),{intent:"success"}),n()}});switch(s){case"Cancelled":case"Finished":return null}return e.jsxs(e.Fragment,{children:[e.jsx(c,{label:"Append",size:"large",children:e.jsx(M,{value:l,onChange:(t,f)=>d(f.value),maxLength:1e3})}),e.jsxs("div",{className:j.body,children:[!(s==="Finished"||s==="Returning")&&e.jsxs(N,{onClick:()=>C(r,l),children:[s==="Shipping"?"Ask Return":"Cancel Order"," with Reason"]}),e.jsx(N,{appearance:"primary",onClick:()=>b(r,l),children:"Add Comment"})]})]})}function ue({Comments:r}){return e.jsx(c,{label:"Comment",size:"large",children:r?.length===0?e.jsx(u,{children:"No Comment"}):r?.map((s,n)=>e.jsxs("div",{children:[e.jsxs(ae,{children:[s.User," ",s.Time.toLocaleString()]}),e.jsx("br",{}),e.jsx($,{children:s.Content})]},n))})}const S=v({body:{...D,rowGap:P.spacingVerticalL},prod:{...D,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"10%",flexGrow:0,justifyContent:"center"}}),xe=[o({columnId:"Product",renderHeaderCell(){return e.jsx(i,{children:"Product Name & Types"})},renderCell(r){return e.jsxs(h,{className:S().prod,children:[e.jsx(Z,{href:`/Product/${r.ProdId}`,appearance:"subtle",children:e.jsx(ee,{children:r.Name})}),e.jsx(re,{children:Object.values(r.Type).reduce((s,n)=>`${s} ${n},`,"")})]})}}),o({columnId:"Quantity",renderHeaderCell(){return e.jsx(i,{className:S().qua,children:"Quantity"})},renderCell(r){return e.jsx(h,{className:S().qua,children:r.Quantity})}})];function he({OrderId:r,ParentLog:s}){const n=R(()=>s.With("Detail")),a=S(),[m,{setTrue:j,setFalse:l}]=Q(),{Nav:d,Paths:p}=E(),g=parseInt(p.at(1)),{data:b,run:C}=H(()=>y.Order.Get.Detail(r,n),{manual:!0,onError:n.error}),{data:t,run:f}=H(()=>y.Order.Get.Order(r),{onError(z){d("History"),n.error(z)},manual:!0});function w(){f(),C()}return F.useEffect(()=>{g===r?(w(),j()):l()},[g]),e.jsxs(e.Fragment,{children:[e.jsx(N,{appearance:"subtle",icon:e.jsx(U,{}),onClick:()=>d("History",r)}),e.jsxs(W,{open:m,position:"end",size:"medium",modalType:"alert",children:[e.jsx(_,{children:e.jsx(V,{action:e.jsx(N,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>d("History")}),children:"Order Detail"})}),e.jsx(J,{children:e.jsxs("div",{className:a.body,children:[e.jsx(te,{OrderId:r,Order:t}),e.jsx(X,{Items:b?.ShopCart||[],Columns:[Y(44,n),...xe]}),e.jsx(ue,{Comments:b?.Comments}),e.jsx(de,{OrderId:r,Status:t?.Status,Refresh:w,ParentLog:n}),e.jsx(ie,{OrderId:r,Status:t?.Status,Refresh:w,ParentLog:n})]})})]})]})}const x=v({five:{flexBasis:"5%",flexGrow:0},ten:{flexBasis:"10%",flexGrow:0},two:{flexBasis:"2.5%",flexGrow:0}}),me=[o({columnId:"OrderId",renderHeaderCell:()=>e.jsx(i,{className:x().five,children:"Order Id"}),renderCell(r){return e.jsx(h,{className:x().five,children:r.Id})}}),o({columnId:"Products",renderHeaderCell:()=>e.jsx(i,{children:"Products"}),renderCell(r){return e.jsxs(h,{children:[r.Items[0]," ",r.Items.length>1&&`& +${r.Items.length-1}`]})}}),o({columnId:"OrderDate",renderHeaderCell:()=>e.jsx(i,{children:"Order Date"}),renderCell(r){return e.jsx(i,{children:r.OrderDate.toLocaleDateString()})}}),o({columnId:"TrackNumber",renderHeaderCell:()=>e.jsx(i,{children:"Track Number"}),renderCell(r){return e.jsx(h,{children:r.TrackNumber})}}),o({columnId:"Quantity",renderHeaderCell:()=>e.jsx(i,{className:x().ten,children:"Quantity"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Quantity})}}),o({columnId:"Status",renderHeaderCell:()=>e.jsx(i,{className:x().ten,children:"Order State"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Status})}})];function pe(r){return[...me,o({columnId:"Detail",renderHeaderCell:()=>e.jsx(i,{className:x().two,children:"Detail"}),renderCell(s){return e.jsx(h,{className:x().two,children:e.jsx(he,{OrderId:s.Id,ParentLog:r})})}})]}export{pe as H,te as O,ue as a}; diff --git a/assets/Gallery-EwpTpjjx.js b/assets/Gallery-EwpTpjjx.js deleted file mode 100644 index b6d64ad6..00000000 --- a/assets/Gallery-EwpTpjjx.js +++ /dev/null @@ -1 +0,0 @@ -import{a as C,g as j,j as m,m as v,r as i,aU as ae,N as fe,E as ie,U as q,R as E,aV as ce,O as L,aW as ne,X as A,_,i as se,L as le,k as G,H as I,d as c,aX as de,aR as ue,aS as be,C as he,t as w,F as ve,l as ge}from"./index-uoLhYpcj.js";import{u as ke,a as me,S as D,T as pe}from"./Title3-J-L77yUX.js";import{i as V,b as we,t as M}from"./toFinite-ZQ51RADL.js";const xe=(e,r)=>{const{animation:o,appearance:t}=ke(),{animation:a=o??"wave",appearance:f=t??"opaque"}=e,n=C(j("div",{ref:r,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...e}),{elementType:"div"});return{animation:a,appearance:f,components:{root:"div"},root:n}},ye=(e,r)=>m(me,{value:r.skeletonGroup,children:m(e.root,{})}),ze={root:"fui-Skeleton"},Be=e=>(e.root.className=v(ze.root,e.root.className),e),qe=e=>{const{animation:r,appearance:o}=e;return{skeletonGroup:i.useMemo(()=>({animation:r,appearance:o}),[r,o])}},J=i.forwardRef((e,r)=>{const o=xe(e,r),t=qe(o);return Be(o),ye(o,t)});J.displayName="Skeleton";const Ce=(e,{referenceLabel:r,referenceId:o},t)=>{const{checkbox:a={},onSelectionChange:f,floatingAction:n,onClick:s,onKeyDown:d}=e,{findAllFocusable:b}=ae(),u=i.useRef(null),[g,x]=fe({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),k=[e.selected,e.defaultSelected,f].some(l=>typeof l<"u"),[S,y]=i.useState(!1),z=i.useCallback(l=>{if(!t.current)return!1;const p=b(t.current),H=l.target,re=p.some(te=>te.contains(H)),oe=u?.current===H;return re&&!oe},[t,b]),h=i.useCallback(l=>{if(z(l))return;const p=!g;x(p),f&&f(l,{selected:p})},[f,g,x,z]),B=i.useCallback(l=>{[ie].includes(l.key)&&(l.preventDefault(),h(l))},[h]),Y=i.useMemo(()=>{if(!k||n)return;const l={};return o?l["aria-labelledby"]=o:r&&(l["aria-label"]=r),q(a,{defaultProps:{ref:u,type:"checkbox",checked:g,onChange:p=>h(p),onFocus:()=>y(!0),onBlur:()=>y(!1),...l},elementType:"input"})},[a,n,g,k,h,o,r]),Z=i.useMemo(()=>{if(n)return q(n,{defaultProps:{ref:u},elementType:"div"})},[n]),ee=i.useMemo(()=>k?{onClick:E(s,h),onKeyDown:E(d,B)}:null,[k,h,s,d,B]);return{selected:g,selectable:k,selectFocused:S,selectableCardProps:ee,checkboxSlot:Y,floatingActionSlot:Z}},$=i.createContext(void 0),F={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},je=$.Provider,Se=()=>{var e;return(e=i.useContext($))!==null&&e!==void 0?e:F},Ne={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},Pe=({focusMode:e="off",...r})=>{const o=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(f=>r[f]),a={...ne({tabBehavior:Ne[o?"no-tab":e]}),tabIndex:0};return{interactive:o,focusAttributes:!o&&e==="off"?null:a}},Fe=(e,r)=>{const{appearance:o="filled",orientation:t="vertical",size:a="medium"}=e,[f,n]=i.useState(F.selectableA11yProps.referenceId),[s,d]=i.useState(F.selectableA11yProps.referenceId),b=ce(),{selectable:u,selected:g,selectableCardProps:x,selectFocused:k,checkboxSlot:S,floatingActionSlot:y}=Ce(e,{referenceId:f,referenceLabel:s},b),z=L(b,r),{interactive:h,focusAttributes:B}=Pe(e);return{appearance:o,orientation:t,size:a,interactive:h,selectable:u,selectFocused:k,selected:g,selectableA11yProps:{setReferenceId:n,referenceId:f,referenceLabel:s,setReferenceLabel:d},components:{root:"div",floatingAction:"div",checkbox:"input"},root:C(j("div",{ref:z,role:"group",...B,...e,...x}),{elementType:"div"}),floatingAction:y,checkbox:S}},Te=(e,r)=>m(e.root,{children:A(je,{value:r,children:[e.checkbox?m(e.checkbox,{}):null,e.floatingAction?m(e.floatingAction,{}):null,e.root.children]})}),T={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},Ae=_({root:{qhf8xq:"f10pi13n",pnb5jt:"f1rzl30s",Elg2ur:"f1chxnfo",B184ckt:"f17xb19f"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".f1rzl30s>:not(.fui-CardPreview__logo){display:block;}",".f1chxnfo>:not(.fui-CardPreview__logo){height:100%;}",".f17xb19f>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),_e=e=>{const r=Ae();return e.root.className=v(T.root,r.root,e.root.className),e.logo&&(e.logo.className=v(T.logo,r.logo,e.logo.className)),e},W={root:"fui-CardFooter",action:"fui-CardFooter__action"},Ge=_({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:"f4akndk",Belr9w4:"fe5j3v"},action:{Frg6f3:["fcgxt0o","f1ujusj6"]}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f4akndk{column-gap:12px;}",".fe5j3v{row-gap:12px;}",".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"]}),Ie=e=>{const r=Ge();return e.root.className=v(W.root,r.root,e.root.className),e.action&&(e.action.className=v(W.action,r.action,e.action.className)),e},N={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},Re=_({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),He=e=>{const r=Re(),o={horizontal:r.orientationHorizontal,vertical:r.orientationVertical},t={small:r.sizeSmall,medium:r.sizeMedium,large:r.sizeLarge},a={filled:r.filled,"filled-alternative":r.filledAlternative,outline:r.outline,subtle:r.subtle},f={filled:r.filledInteractiveSelected,"filled-alternative":r.filledAlternativeInteractiveSelected,outline:r.outlineInteractiveSelected,subtle:r.subtleInteractiveSelected},n={filled:r.filledInteractive,"filled-alternative":r.filledAlternativeInteractive,outline:r.outlineInteractive,subtle:r.subtleInteractive},s=e.interactive||e.selectable,d=i.useMemo(()=>e.selectable?e.selectFocused?r.selectableFocused:"":r.focused,[e.selectFocused,e.selectable,r.focused,r.selectableFocused]);return e.root.className=v(N.root,r.root,o[e.orientation],t[e.size],a[e.appearance],s&&n[e.appearance],e.selected&&f[e.appearance],d,s&&r.highContrastInteractive,e.selected&&r.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=v(N.floatingAction,r.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=v(N.checkbox,r.hiddenCheckbox,e.checkbox.className)),e};function Ee({selectableA11yProps:e}){return{selectableA11yProps:e}}const X=i.forwardRef((e,r)=>{const o=Fe(e,r),t=Ee(o);return He(o),Te(o,t)});X.displayName="Card";const De=(e,r)=>{const{action:o}=e;return{components:{root:"div",action:"div"},root:C(j("div",{ref:r,...e}),{elementType:"div"}),action:q(o,{elementType:"div"})}},Me=e=>A(e.root,{children:[e.root.children,e.action&&m(e.action,{})]}),U=i.forwardRef((e,r)=>{const o=De(e,r);return Ie(o),Me(o)});U.displayName="CardFooter";const We=(e,r)=>{const{logo:o}=e,{selectableA11yProps:{referenceLabel:t,referenceId:a,setReferenceLabel:f,setReferenceId:n}}=Se(),s=L(r,i.useRef(null));return i.useEffect(()=>{if(!(t&&a)&&s.current&&s.current.parentNode){const d=s.current.parentNode.querySelector(`.${T.root} > img`);if(d){const b=d.getAttribute("aria-label"),u=d.getAttribute("aria-describedby");u?n(u):d.alt?f(d.alt):b&&f(b)}}},[f,t,s,a,n]),{components:{root:"div",logo:"div"},root:C(j("div",{ref:s,...e}),{elementType:"div"}),logo:q(o,{elementType:"div"})}},Le=e=>A(e.root,{children:[e.root.children,e.logo&&m(e.logo,{})]}),K=i.forwardRef((e,r)=>{const o=We(e,r);return _e(o),Le(o)});K.displayName="CardPreview";var Ve="[object AsyncFunction]",Je="[object Function]",$e="[object GeneratorFunction]",Xe="[object Proxy]";function Ue(e){if(!V(e))return!1;var r=we(e);return r==Je||r==$e||r==Ve||r==Xe}var Ke=9007199254740991,Oe=/^(?:0|[1-9]\d*)$/;function Qe(e,r){var o=typeof e;return r=r??Ke,!!r&&(o=="number"||o!="symbol"&&Oe.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Ze}function rr(e){return e!=null&&er(e.length)&&!Ue(e)}function or(e,r,o){if(!V(o))return!1;var t=typeof r;return(t=="number"?rr(o)&&Qe(r,o.length):t=="string"&&r in o)?Ye(o[r],e):!1}var tr=Math.floor,ar=Math.random;function fr(e,r){return e+tr(ar()*(r-e+1))}var ir=parseFloat,cr=Math.min,nr=Math.random;function sr(e,r,o){if(o&&typeof o!="boolean"&&or(e,r,o)&&(r=o=void 0),o===void 0&&(typeof r=="boolean"?(o=r,r=void 0):typeof e=="boolean"&&(o=e,e=void 0)),e===void 0&&r===void 0?(e=0,r=1):(e=M(e),r===void 0?(r=e,e=0):r=M(r)),e>r){var t=e;e=r,r=t}if(o||e%1||r%1){var a=nr();return cr(e+a*(r-e+ir("1e-"+((a+"").length-1))),r)}return fr(e,r)}const R=se({card:{flexBasis:"23%",flexGrow:0},img:{aspectRatio:"1",...he,borderTopLeftRadius:w.borderRadiusMedium,borderTopRightRadius:w.borderRadiusMedium},cate:{...ve,flexWrap:"wrap",justifyContent:"space-evenly",columnGap:w.spacingVerticalL,rowGap:w.spacingVerticalXL},main:{...ge,rowGap:w.spacingVerticalXL}}),O=new le("Gallery");function vr(){const e=R(),{data:r,loading:o}=G(()=>I.Gallery.Get.Categories(),{onError:O.error});return o?c.jsxs(J,{className:e.main,children:[c.jsx(D,{appearance:"translucent",size:32}),c.jsx(D,{size:128})]}):c.jsx("div",{className:e.main,children:r?.map((t,a)=>c.jsx(lr,{Category:t},a))})}const Q=O.With("Category");function lr({Category:e}){const r=R(),{data:o}=G(()=>I.Gallery.Get.Products(e),{onError:Q.error}),t=o||[[],0];return c.jsxs(c.Fragment,{children:[c.jsx(pe,{children:e}),c.jsx("div",{className:r.cate,children:t[0].map((a,f)=>c.jsx(dr,{Id:a},f)).concat(Array(t[1]).fill(null).map((a,f)=>c.jsx("div",{className:r.card},f+sr(10,100))))})]})}const P=Q.With("Card");function dr({Id:e}){const r=R(),{data:o}=G(()=>I.Product.Get.Basic(e,P),{onError:P.error});return c.jsxs(X,{className:r.card,children:[c.jsx(K,{children:c.jsx(de,{className:r.img,Guid:o?.Cover,Log:P})}),c.jsx(U,{children:c.jsx(ue,{children:c.jsx(be,{href:`/Product/${e}`,children:o?.Name})})})]})}export{vr as default}; diff --git a/assets/Title3-J-L77yUX.js b/assets/Title3-K9gl0VnY.js similarity index 99% rename from assets/Title3-J-L77yUX.js rename to assets/Title3-K9gl0VnY.js index 5731583c..f846b7a0 100644 --- a/assets/Title3-J-L77yUX.js +++ b/assets/Title3-K9gl0VnY.js @@ -1,4 +1,4 @@ -import{r as c,a as d,g as u,j as g,aY as m,m as x,_ as o,c as v}from"./index-uoLhYpcj.js";const h=c.createContext(void 0),b={},T=h.Provider,j=()=>{var e;return(e=c.useContext(h))!==null&&e!==void 0?e:b},k=(e,n)=>{const{animation:t,appearance:i}=j(),{animation:f=t??"wave",appearance:s=i??"opaque",size:a=16,shape:r="rectangle"}=e,l=d(u("div",{ref:n,...e}),{elementType:"div"});return{appearance:s,animation:f,size:a,shape:r,components:{root:"div"},root:l}},q=e=>g(e.root,{}),w={root:"fui-SkeletonItem"},B=o({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( +import{r as c,a as d,g as u,j as g,aY as m,m as x,_ as o,c as v}from"./index-5gW6pgm0.js";const h=c.createContext(void 0),b={},T=h.Provider,j=()=>{var e;return(e=c.useContext(h))!==null&&e!==void 0?e:b},k=(e,n)=>{const{animation:t,appearance:i}=j(),{animation:f=t??"wave",appearance:s=i??"opaque",size:a=16,shape:r="rectangle"}=e,l=d(u("div",{ref:n,...e}),{elementType:"div"});return{appearance:s,animation:f,size:a,shape:r,components:{root:"div"},root:l}},q=e=>g(e.root,{}),w={root:"fui-SkeletonItem"},B=o({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( to right, var(--colorNeutralStencil1) 0%, var(--colorNeutralStencil2) 50%, diff --git a/assets/index-uoLhYpcj.js b/assets/index-5gW6pgm0.js similarity index 79% rename from assets/index-uoLhYpcj.js rename to assets/index-5gW6pgm0.js index d81591b6..2e82ebd2 100644 --- a/assets/index-uoLhYpcj.js +++ b/assets/index-5gW6pgm0.js @@ -1,4 +1,4 @@ -function S_(t,e){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C_={exports:{}},xf={},T_={exports:{}},_e={};/** +function S_(t,e){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var C_={exports:{}},Tf={},T_={exports:{}},_e={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function S_(t,e){for(var r=0;r{throw X(be)},base64Decode:()=>{throw X(be)},base64Encode:()=>{throw X(be)},async getPublicKeyThumbprint(){throw X(be)},async removeTokenBindingKey(){throw X(be)},async clearKeystore(){throw X(be)},async signJwt(){throw X(be)},async hashString(){throw X(be)}};/*! @azure/msal-common v14.5.0 2023-12-01 */var ht;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(ht||(ht={}));let Il=class sg{constructor(e,r,o){this.level=ht.Info;const n=()=>{},i=e||sg.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||n,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:ht.Info,this.correlationId=i.correlationId||z.EMPTY_STRING,this.packageName=r||z.EMPTY_STRING,this.packageVersion=o||z.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ht.Info}}clone(e,r,o){return new sg({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,r)}logMessage(e,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${ht[r.logLevel]} - ${e}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(e,r,o){this.localCallback&&this.localCallback(e,r,o)}error(e,r){this.logMessage(e,{logLevel:ht.Error,containsPii:!1,correlationId:r||z.EMPTY_STRING})}errorPii(e,r){this.logMessage(e,{logLevel:ht.Error,containsPii:!0,correlationId:r||z.EMPTY_STRING})}warning(e,r){this.logMessage(e,{logLevel:ht.Warning,containsPii:!1,correlationId:r||z.EMPTY_STRING})}warningPii(e,r){this.logMessage(e,{logLevel:ht.Warning,containsPii:!0,correlationId:r||z.EMPTY_STRING})}info(e,r){this.logMessage(e,{logLevel:ht.Info,containsPii:!1,correlationId:r||z.EMPTY_STRING})}infoPii(e,r){this.logMessage(e,{logLevel:ht.Info,containsPii:!0,correlationId:r||z.EMPTY_STRING})}verbose(e,r){this.logMessage(e,{logLevel:ht.Verbose,containsPii:!1,correlationId:r||z.EMPTY_STRING})}verbosePii(e,r){this.logMessage(e,{logLevel:ht.Verbose,containsPii:!0,correlationId:r||z.EMPTY_STRING})}trace(e,r){this.logMessage(e,{logLevel:ht.Trace,containsPii:!1,correlationId:r||z.EMPTY_STRING})}tracePii(e,r){this.logMessage(e,{logLevel:ht.Trace,containsPii:!0,correlationId:r||z.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};/*! @azure/msal-common v14.5.0 2023-12-01 */const J_="@azure/msal-common",Rv="14.5.0";/*! @azure/msal-common v14.5.0 2023-12-01 */const Pv={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.5.0 2023-12-01 */function ea(t,e){const r=CR(t);try{const o=e(r);return JSON.parse(o)}catch{throw X(Tv)}}function CR(t){if(!t)throw X(D_);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw X(Tv);return r[2]}function eS(t,e){if(e===0||Date.now()-3e5>t+e)throw X(U_)}/*! @azure/msal-common v14.5.0 2023-12-01 */class Jt{static nowSeconds(){return Math.round(new Date().getTime()/1e3)}static isTokenExpired(e,r){const o=Number(e)||0;return Jt.nowSeconds()+r>o}static wasClockTurnedBack(e){return Number(e)>Jt.nowSeconds()}static delay(e,r){return new Promise(o=>setTimeout(()=>o(r),e))}}/*! @azure/msal-common v14.5.0 2023-12-01 */function oc(t){return[TR(t),xR(t),ER(t),IR(t),AR(t)].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function If(t,e,r,o,n){return{credentialType:he.ID_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r,realm:n}}function Af(t,e,r,o,n,i,a,s,c,l,u,d,f,h,p){const g={homeAccountId:t,credentialType:he.ACCESS_TOKEN,secret:r,cachedAt:Jt.nowSeconds().toString(),expiresOn:a.toString(),extendedExpiresOn:s.toString(),environment:e,clientId:o,realm:n,target:i,tokenType:u||Be.BEARER};if(d&&(g.userAssertionHash=d),l&&(g.refreshOn=l.toString()),h&&(g.requestedClaims=h,g.requestedClaimsHash=p),g.tokenType?.toLowerCase()!==Be.BEARER.toLowerCase())switch(g.credentialType=he.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case Be.POP:const y=ea(r,c);if(!y?.cnf?.kid)throw X(X_);g.keyId=y.cnf.kid;break;case Be.SSH:g.keyId=f}return g}function tS(t,e,r,o,n,i){const a={credentialType:he.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r};return i&&(a.userAssertionHash=i),n&&(a.familyId=n),a}function Bv(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function p0(t){return t?Bv(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===he.ACCESS_TOKEN||t.credentialType===he.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function g0(t){return t?Bv(t)&&t.hasOwnProperty("realm")&&t.credentialType===he.ID_TOKEN:!1}function m0(t){return t?Bv(t)&&t.credentialType===he.REFRESH_TOKEN:!1}function TR(t){return[t.homeAccountId,t.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function xR(t){const e=t.credentialType===he.REFRESH_TOKEN&&t.familyId||t.clientId;return[t.credentialType,e,t.realm||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function ER(t){return(t.target||"").toLowerCase()}function IR(t){return(t.requestedClaimsHash||"").toLowerCase()}function AR(t){return t.tokenType&&t.tokenType.toLowerCase()!==Be.BEARER.toLowerCase()?t.tokenType.toLowerCase():""}function RR(t,e){const r=t.indexOf(Nt.CACHE_KEY)===0;let o=!0;return e&&(o=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&o}/*! @azure/msal-common v14.5.0 2023-12-01 */const rS="redirect_uri_empty",PR="claims_request_parsing_error",oS="authority_uri_insecure",nc="url_parse_error",Nv="empty_url_error",nS="empty_input_scopes_error",iS="invalid_prompt_value",zv="invalid_claims",aS="token_request_empty",sS="logout_request_empty",cS="invalid_code_challenge_method",Mv="pkce_params_missing",Ov="invalid_cloud_discovery_metadata",lS="invalid_authority_metadata",uS="untrusted_authority",Rf="missing_ssh_jwk",dS="missing_ssh_kid",BR="missing_nonce_authentication_header",NR="invalid_authentication_header",fS="cannot_set_OIDCOptions",hS="cannot_allow_native_broker",pS="authority_mismatch";/*! @azure/msal-common v14.5.0 2023-12-01 */const zR={[rS]:"A redirect URI is required for all calls, and none has been set.",[PR]:"Could not parse the given claims request object.",[oS]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[nc]:"URL could not be parsed into appropriate segments.",[Nv]:"URL was empty or null.",[nS]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[iS]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[zv]:"Given claims parameter must be a stringified JSON object.",[aS]:"Token request was empty and not found in cache.",[sS]:"The logout request was null or undefined.",[cS]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Mv]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Ov]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[lS]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[uS]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Rf]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[dS]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[BR]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[NR]:"Invalid authentication header provided",[fS]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[hS]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[pS]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class Dv extends Ve{constructor(e){super(e,zR[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Dv.prototype)}}function Ne(t){return new Dv(t)}/*! @azure/msal-common v14.5.0 2023-12-01 */class io{static isEmptyObj(e){if(e)try{const r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0}static startsWith(e,r){return e.indexOf(r)===0}static endsWith(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length}static queryStringToObject(e){const r={},o=e.split("&"),n=i=>decodeURIComponent(i.replace(/\+/g," "));return o.forEach(i=>{if(i.trim()){const[a,s]=i.split(/=(.+)/g,2);a&&s&&(r[n(a)]=n(s))}}),r}static trimArrayEntries(e){return e.map(r=>r.trim())}static removeEmptyStringsFromArray(e){return e.filter(r=>!!r)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,r){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(r)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class pt{constructor(e){const r=e?io.trimArrayEntries([...e]):[],o=r?io.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(n=>this.scopes.add(n))}static fromString(e){const o=(e||z.EMPTY_STRING).split(" ");return new pt(o)}static createSearchScopes(e){const r=new pt(e);return r.containsOnlyOIDCScopes()?r.removeScope(z.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}validateInputScopes(e){if(!e||e.length<1)throw Ne(nS)}containsScope(e){const r=this.printScopesLowerCase().split(" "),o=new pt(r);return e?o.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(r=>this.containsScope(r))}containsOnlyOIDCScopes(){let e=0;return c0.forEach(r=>{this.containsScope(r)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(r=>this.appendScope(r))}catch{throw X(V_)}}removeScope(e){if(!e)throw X(W_);this.scopes.delete(e.trim())}removeOIDCScopes(){c0.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw X(og);const r=new Set;return e.scopes.forEach(o=>r.add(o.toLowerCase())),this.scopes.forEach(o=>r.add(o.toLowerCase())),r}intersectingScopeSets(e){if(!e)throw X(og);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const r=this.unionScopeSets(e),o=e.getScopeCount(),n=this.getScopeCount();return r.sizee.push(r)),e}printScopes(){return this.scopes?this.asArray().join(" "):z.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.5.0 2023-12-01 */function xd(t,e){if(!t)throw X(O_);try{const r=e(t);return JSON.parse(r)}catch{throw X(Cv)}}function Ea(t){if(!t)throw X(Cv);const e=t.split(Ht.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?z.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.5.0 2023-12-01 */function cg(t,e){return!!t&&!!e&&t===e.split(".")[1]}function jv(t,e){const{oid:r,sub:o,tid:n,name:i,tfp:a,acr:s}=e,c=n||a||s||"";return{tenantId:c,localAccountId:r||o||"",name:i,isHomeTenant:cg(c,t)}}function Fv(t,e,r){let o=t;if(e){const{isHomeTenant:n,...i}=e;o={...t,...i}}if(r){const{isHomeTenant:n,...i}=jv(t.homeAccountId,r);return o={...o,...i,idTokenClaims:r},o}return o}/*! @azure/msal-common v14.5.0 2023-12-01 */const Zr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.5.0 2023-12-01 */function gS(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v14.5.0 2023-12-01 */const Jo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.5.0 2023-12-01 */class Tt{generateAccountId(){return[this.homeAccountId,this.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Tt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const r=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",r||e.tenantId||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,r,o){const n=new Tt;r.authorityType===Zr.Adfs?n.authorityType=eu.ADFS_ACCOUNT_TYPE:r.protocolMode===Jo.AAD?n.authorityType=eu.MSSTS_ACCOUNT_TYPE:n.authorityType=eu.GENERIC_ACCOUNT_TYPE;let i;e.clientInfo&&o&&(i=xd(e.clientInfo,o)),n.clientInfo=e.clientInfo,n.homeAccountId=e.homeAccountId,n.nativeAccountId=e.nativeAccountId;const a=e.environment||r&&r.getPreferredCache();if(!a)throw X(Iv);n.environment=a,n.realm=i?.utid||gS(e.idTokenClaims)||"",n.localAccountId=i?.uid||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const s=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,c=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(n.username=s||c||"",n.name=e.idTokenClaims.name,n.cloudGraphHostName=e.cloudGraphHostName,n.msGraphHost=e.msGraphHost,e.tenantProfiles)n.tenantProfiles=e.tenantProfiles;else{const l=[];if(e.idTokenClaims){const u=jv(e.homeAccountId,e.idTokenClaims);l.push(u)}n.tenantProfiles=l}return n}static createFromAccountInfo(e,r,o){const n=new Tt;return n.authorityType=e.authorityType||eu.GENERIC_ACCOUNT_TYPE,n.homeAccountId=e.homeAccountId,n.localAccountId=e.localAccountId,n.nativeAccountId=e.nativeAccountId,n.realm=e.tenantId,n.environment=e.environment,n.username=e.username,n.name=e.name,n.cloudGraphHostName=r,n.msGraphHost=o,n.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),n}static generateHomeAccountId(e,r,o,n,i){if(!(r===Zr.Adfs||r===Zr.Dsts)){if(e)try{const a=xd(e,n.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}o.warning("No client info in response")}return i?.sub||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,r,o){if(!e||!r)return!1;let n=!0;if(o){const i=e.idTokenClaims||{},a=r.idTokenClaims||{};n=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&n}}/*! @azure/msal-common v14.5.0 2023-12-01 */function MR(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.5.0 2023-12-01 */function mS(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function Ed(t){if(!t||t.indexOf("=")<0)return null;try{const e=mS(t),r=Object.fromEntries(new URLSearchParams(e));if(r.code||r.error||r.error_description||r.state)return r}catch{throw X(L_)}return null}/*! @azure/msal-common v14.5.0 2023-12-01 */class Te{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Ne(Nv);e.includes("#")||(this._urlString=Te.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let r=e.toLowerCase();return io.endsWith(r,"?")?r=r.slice(0,-1):io.endsWith(r,"?/")&&(r=r.slice(0,-2)),io.endsWith(r,"/")||(r+="/"),r}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Ne(nc)}if(!e.HostNameAndPort||!e.PathSegments)throw Ne(nc);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ne(oS)}static appendQueryString(e,r){return r?e.indexOf("?")<0?`${e}?${r}`:`${e}&${r}`:e}static removeHashFromUrl(e){return Te.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const r=this.getUrlComponents(),o=r.PathSegments;return e&&o.length!==0&&(o[0]===jn.COMMON||o[0]===jn.ORGANIZATIONS)&&(o[0]=e),Te.constructAuthorityUriFromObject(r)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Ne(nc);const o={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]};let n=o.AbsolutePath.split("/");return n=n.filter(i=>i&&i.length>0),o.PathSegments=n,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(e){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(r);if(!o)throw Ne(nc);return o[2]}static getAbsoluteUrl(e,r){if(e[0]===z.FORWARD_SLASH){const n=new Te(r).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new Te(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Ed(e)}}/*! @azure/msal-common v14.5.0 2023-12-01 */const vS={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},v0=vS.endpointMetadata,Lv=vS.instanceDiscoveryMetadata,bS=new Set;Lv.metadata.forEach(t=>{t.aliases.forEach(e=>{bS.add(e)})});function OR(t,e){let r;const o=t.canonicalAuthority;if(o){const n=new Te(o).getUrlComponents().HostNameAndPort;r=b0(n,t.cloudDiscoveryMetadata?.metadata,br.CONFIG,e)||b0(n,Lv.metadata,br.HARDCODED_VALUES,e)||t.knownAuthorities}return r||[]}function b0(t,e,r,o){if(o?.trace(`getAliasesFromMetadata called with source: ${r}`),t&&e){const n=Id(e,t);if(n)return o?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${r}, returning aliases`),n.aliases;o?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${r}`)}return null}function DR(t){return Id(Lv.metadata,t)}function Id(t,e){for(let r=0;r(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);try{const s=t(...i);return a?.end({success:!0}),r.trace(`Returning result from ${e}`),s}catch(s){r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s}},J=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);return o?.setPreQueueTime(e,n),t(...i).then(s=>(r.trace(`Returning result from ${e}`),a?.end({success:!0}),s)).catch(s=>{r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s})};/*! @azure/msal-common v14.5.0 2023-12-01 */class Pf{constructor(e,r,o,n){this.networkInterface=e,this.logger=r,this.performanceClient=o,this.correlationId=n}async detectRegion(e,r){this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryDetectRegion,this.correlationId);let o=e;if(o)r.region_source=ua.ENVIRONMENT_VARIABLE;else{const n=Pf.IMDS_OPTIONS;try{const i=await J(this.getRegionFromIMDS.bind(this),P.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(z.IMDS_VERSION,n);if(i.status===tu.httpSuccess&&(o=i.body,r.region_source=ua.IMDS),i.status===tu.httpBadRequest){const a=await J(this.getCurrentVersion.bind(this),P.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(n);if(!a)return r.region_source=ua.FAILED_AUTO_DETECTION,null;const s=await J(this.getRegionFromIMDS.bind(this),P.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,n);s.status===tu.httpSuccess&&(o=s.body,r.region_source=ua.IMDS)}}catch{return r.region_source=ua.FAILED_AUTO_DETECTION,null}}return o||(r.region_source=ua.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(e,r){return this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${z.IMDS_ENDPOINT}?api-version=${e}&format=text`,r,z.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${z.IMDS_ENDPOINT}?format=json`,e);return r.status===tu.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}Pf.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.5.0 2023-12-01 */class qt{constructor(e,r,o,n,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=o,this.authorityOptions=n,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new Pf(r,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(z.CIAM_AUTH_URL))return Zr.Ciam;const r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case z.ADFS:return Zr.Adfs;case z.DSTS:return Zr.Dsts}return Zr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Te(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw X(Ho)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw X(Ho)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw X(Ho)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw X(Z_);return this.replacePath(this.metadata.end_session_endpoint)}else throw X(Ho)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw X(Ho)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw X(Ho)}canReplaceTenant(e){return e.PathSegments.length===1&&!qt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Zr.Default&&this.protocolMode===Jo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let r=e;const n=new Te(this.metadata.canonical_authority).getUrlComponents(),i=n.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((s,c)=>{let l=i[c];if(c===0&&this.canReplaceTenant(n)){const u=new Te(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];l!==u&&(this.logger.verbose(`Replacing tenant domain name ${l} with id ${u}`),l=u)}s!==l&&(r=r.replace(`/${l}/`,`/${s}/`))}),this.replaceTenant(r)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Zr.Adfs||this.protocolMode!==Jo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement(P.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),r=await J(this.updateCloudDiscoveryMetadata.bind(this),P.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const o=await J(this.updateEndpointMetadata.bind(this),P.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,r,{source:o})}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e=new lg,e.updateCanonicalAuthority(this.canonicalAuthority)),e}updateCachedMetadata(e,r,o){r!==br.CACHE&&o?.source!==br.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority));const n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateEndpointMetadata,this.correlationId);const r=this.updateEndpointMetadataFromLocalSources(e);if(r){if(r.source===br.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&r.metadata){const n=await J(this.updateMetadataWithRegionalInformation.bind(this),P.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r.metadata);e.updateEndpointMetadata(n,!1)}return r.source}let o=await J(this.getEndpointMetadataFromNetwork.bind(this),P.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await J(this.updateMetadataWithRegionalInformation.bind(this),P.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(o)),e.updateEndpointMetadata(o,!0),br.NETWORK;throw X(F_,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const r=this.getEndpointMetadataFromConfig();if(r)return this.logger.verbose("Found endpoint metadata in authority configuration"),e.updateEndpointMetadata(r,!1),{source:br.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const n=this.getEndpointMetadataFromHardcodedValues();if(n)return e.updateEndpointMetadata(n,!1),{source:br.HARDCODED_VALUES,metadata:n};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const o=e.isExpired();return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("Found endpoint metadata in the cache."),{source:br.CACHE}):(o&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Te(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ne(lS)}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(P.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},r=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${r}`);try{const o=await this.networkInterface.sendGetRequestAsync(r,e);return MR(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.canonicalAuthority in v0?v0[this.canonicalAuthority]:null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const r=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(r){if(r!==z.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Ph.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=r,qt.replaceWithRegionalInformation(e,r);const o=await J(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),P.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=Ph.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,qt.replaceWithRegionalInformation(e,o);this.regionDiscoveryMetadata.region_outcome=Ph.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const r=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(r)return r;const o=await J(this.getCloudDiscoveryMetadataFromNetwork.bind(this),P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return e.updateCloudDiscoveryMetadata(o,!0),br.NETWORK;throw Ne(uS)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||z.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||z.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||z.NOT_APPLICABLE}`);const r=this.getCloudDiscoveryMetadataFromConfig();if(r)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),e.updateCloudDiscoveryMetadata(r,!1),br.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const n=DR(this.hostnameAndPort);if(n)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(n,!1),br.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const o=e.isExpired();return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found cloud discovery metadata in the cache."),br.CACHE):(o&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Zr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=Id(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Ne(Ov)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${z.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,r={};let o=null;try{const n=await this.networkInterface.sendGetRequestAsync(e,r);let i,a;if(jR(n.body))i=n.body,a=i.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${i.tenant_discovery_endpoint}`);else if(FR(n.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${n.status}`),i=n.body,i.error===z.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${i.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${i.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=Id(a,this.hostnameAndPort)}catch(n){if(n instanceof Ve)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. + */var tR=w,rR=Symbol.for("react.element"),oR=Symbol.for("react.fragment"),nR=Object.prototype.hasOwnProperty,iR=tR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aR={key:!0,ref:!0,__self:!0,__source:!0};function N_(t,e,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(o in e)nR.call(e,o)&&!aR.hasOwnProperty(o)&&(n[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)n[o]===void 0&&(n[o]=e[o]);return{$$typeof:rR,type:t,key:i,ref:a,props:n,_owner:iR.current}}Tf.Fragment=oR;Tf.jsx=N_;Tf.jsxs=N_;C_.exports=Tf;var x=C_.exports;const sR=Oo(x),cR=S_({__proto__:null,default:sR},[x]);/*! @azure/msal-common v14.5.0 2023-12-01 */const z={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Ql={SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR_RANGE_START:400,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR_RANGE_START:500,SERVER_ERROR_RANGE_END:599},xl=[z.OPENID_SCOPE,z.PROFILE_SCOPE,z.OFFLINE_ACCESS_SCOPE],c0=[...xl,z.EMAIL_SCOPE],xo={CONTENT_TYPE:"Content-Type",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},Bt={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},jn={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Zl={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},Wt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},l0={PLAIN:"plain",S256:"S256"},El={QUERY:"query",FRAGMENT:"fragment"},lR={...El,FORM_POST:"form_post"},z_={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},Jl={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},Ht={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},he={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},tg="appmetadata",uR="client_info",gc="1",mc={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},br={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},Nt={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Be={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},vc={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},u0={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},d0={username:"username",password:"password"},eu={httpSuccess:200,httpBadRequest:400},ua={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},Rh={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},xn={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},dR={Jwt:"JWT",Jwk:"JWK",Pop:"pop"};/*! @azure/msal-common v14.5.0 2023-12-01 */const _v="unexpected_error",fR="post_request_failed";/*! @azure/msal-common v14.5.0 2023-12-01 */const f0={[_v]:"Unexpected error in authentication.",[fR]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class Ve extends Error{constructor(e,r,o){const n=r?`${e}: ${r}`:e;super(n),Object.setPrototypeOf(this,Ve.prototype),this.errorCode=e||z.EMPTY_STRING,this.errorMessage=r||z.EMPTY_STRING,this.subError=o||z.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function M_(t,e){return new Ve(t,e?`${f0[t]} ${e}`:f0[t])}/*! @azure/msal-common v14.5.0 2023-12-01 */const Sv="client_info_decoding_error",O_="client_info_empty_error",Cv="token_parsing_error",D_="null_or_empty_token",Ho="endpoints_resolution_error",j_="network_error",F_="openid_config_error",L_="hash_not_deserialized",rs="invalid_state",q_="state_mismatch",Sd="state_not_found",H_="nonce_mismatch",Tv="auth_time_not_found",U_="max_age_transpired",hR="multiple_matching_tokens",pR="multiple_matching_accounts",$_="multiple_matching_appMetadata",K_="request_cannot_be_made",W_="cannot_remove_empty_scope",V_="cannot_append_scopeset",rg="empty_input_scopeset",gR="device_code_polling_cancelled",mR="device_code_expired",vR="device_code_unknown_error",xv="no_account_in_silent_request",G_="invalid_cache_record",Ev="invalid_cache_environment",og="no_account_found",ng="no_crypto_object",ig="unexpected_credential_type",bR="invalid_assertion",yR="invalid_client_credential",zn="token_refresh_required",wR="user_timeout_reached",X_="token_claims_cnf_required_for_signedjwt",Y_="authorization_code_missing_from_server_response",Q_="binding_key_not_removed",Z_="end_session_endpoint_not_supported",Iv="key_id_missing",kR="no_network_connectivity",_R="user_canceled",SR="missing_tenant_id_error",be="method_not_implemented",CR="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.5.0 2023-12-01 */const h0={[Sv]:"The client info could not be parsed/decoded correctly",[O_]:"The client info was empty",[Cv]:"Token cannot be parsed",[D_]:"The token is null or empty",[Ho]:"Endpoints cannot be resolved",[j_]:"Network request failed",[F_]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[L_]:"The hash parameters could not be deserialized",[rs]:"State was not the expected format",[q_]:"State mismatch error",[Sd]:"State not found",[H_]:"Nonce mismatch error",[Tv]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[U_]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[hR]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[pR]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[$_]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[K_]:"Token request cannot be made without authorization code or refresh token.",[W_]:"Cannot remove null or empty scope from ScopeSet",[V_]:"Cannot append ScopeSet",[rg]:"Empty input ScopeSet cannot be processed",[gR]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[mR]:"Device code is expired.",[vR]:"Device code stopped polling for unknown reasons.",[xv]:"Please pass an account object, silent flow is not supported without account information",[G_]:"Cache record object was null or undefined.",[Ev]:"Invalid environment when attempting to create cache entry",[og]:"No account found in cache for given key.",[ng]:"No crypto object detected.",[ig]:"Unexpected credential type.",[bR]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[yR]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[zn]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[wR]:"User defined timeout for device code polling reached",[X_]:"Cannot generate a POP jwt if the token_claims are not populated",[Y_]:"Server response does not contain an authorization code to proceed",[Q_]:"Could not remove the credential's binding key from storage.",[Z_]:"The provided authority does not support logout",[Iv]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[kR]:"No network connectivity. Check your internet connection.",[_R]:"User cancelled the flow.",[SR]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[be]:"This method has not been implemented",[CR]:"The nested app auth bridge is disabled"};class xf extends Ve{constructor(e,r){super(e,r?`${h0[e]}: ${r}`:h0[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,xf.prototype)}}function X(t,e){return new xf(t,e)}/*! @azure/msal-common v14.5.0 2023-12-01 */const Cd={createNewGuid:()=>{throw X(be)},base64Decode:()=>{throw X(be)},base64Encode:()=>{throw X(be)},async getPublicKeyThumbprint(){throw X(be)},async removeTokenBindingKey(){throw X(be)},async clearKeystore(){throw X(be)},async signJwt(){throw X(be)},async hashString(){throw X(be)}};/*! @azure/msal-common v14.5.0 2023-12-01 */var ht;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(ht||(ht={}));let Il=class ag{constructor(e,r,o){this.level=ht.Info;const n=()=>{},i=e||ag.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||n,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:ht.Info,this.correlationId=i.correlationId||z.EMPTY_STRING,this.packageName=r||z.EMPTY_STRING,this.packageVersion=o||z.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ht.Info}}clone(e,r,o){return new ag({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,r)}logMessage(e,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${ht[r.logLevel]} - ${e}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(e,r,o){this.localCallback&&this.localCallback(e,r,o)}error(e,r){this.logMessage(e,{logLevel:ht.Error,containsPii:!1,correlationId:r||z.EMPTY_STRING})}errorPii(e,r){this.logMessage(e,{logLevel:ht.Error,containsPii:!0,correlationId:r||z.EMPTY_STRING})}warning(e,r){this.logMessage(e,{logLevel:ht.Warning,containsPii:!1,correlationId:r||z.EMPTY_STRING})}warningPii(e,r){this.logMessage(e,{logLevel:ht.Warning,containsPii:!0,correlationId:r||z.EMPTY_STRING})}info(e,r){this.logMessage(e,{logLevel:ht.Info,containsPii:!1,correlationId:r||z.EMPTY_STRING})}infoPii(e,r){this.logMessage(e,{logLevel:ht.Info,containsPii:!0,correlationId:r||z.EMPTY_STRING})}verbose(e,r){this.logMessage(e,{logLevel:ht.Verbose,containsPii:!1,correlationId:r||z.EMPTY_STRING})}verbosePii(e,r){this.logMessage(e,{logLevel:ht.Verbose,containsPii:!0,correlationId:r||z.EMPTY_STRING})}trace(e,r){this.logMessage(e,{logLevel:ht.Trace,containsPii:!1,correlationId:r||z.EMPTY_STRING})}tracePii(e,r){this.logMessage(e,{logLevel:ht.Trace,containsPii:!0,correlationId:r||z.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};/*! @azure/msal-common v14.5.0 2023-12-01 */const J_="@azure/msal-common",Av="14.5.0";/*! @azure/msal-common v14.5.0 2023-12-01 */const Rv={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.5.0 2023-12-01 */function ea(t,e){const r=TR(t);try{const o=e(r);return JSON.parse(o)}catch{throw X(Cv)}}function TR(t){if(!t)throw X(D_);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw X(Cv);return r[2]}function eS(t,e){if(e===0||Date.now()-3e5>t+e)throw X(U_)}/*! @azure/msal-common v14.5.0 2023-12-01 */class Jt{static nowSeconds(){return Math.round(new Date().getTime()/1e3)}static isTokenExpired(e,r){const o=Number(e)||0;return Jt.nowSeconds()+r>o}static wasClockTurnedBack(e){return Number(e)>Jt.nowSeconds()}static delay(e,r){return new Promise(o=>setTimeout(()=>o(r),e))}}/*! @azure/msal-common v14.5.0 2023-12-01 */function oc(t){return[xR(t),ER(t),IR(t),AR(t),RR(t)].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function Ef(t,e,r,o,n){return{credentialType:he.ID_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r,realm:n}}function If(t,e,r,o,n,i,a,s,c,l,u,d,f,h,p){const g={homeAccountId:t,credentialType:he.ACCESS_TOKEN,secret:r,cachedAt:Jt.nowSeconds().toString(),expiresOn:a.toString(),extendedExpiresOn:s.toString(),environment:e,clientId:o,realm:n,target:i,tokenType:u||Be.BEARER};if(d&&(g.userAssertionHash=d),l&&(g.refreshOn=l.toString()),h&&(g.requestedClaims=h,g.requestedClaimsHash=p),g.tokenType?.toLowerCase()!==Be.BEARER.toLowerCase())switch(g.credentialType=he.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case Be.POP:const y=ea(r,c);if(!y?.cnf?.kid)throw X(X_);g.keyId=y.cnf.kid;break;case Be.SSH:g.keyId=f}return g}function tS(t,e,r,o,n,i){const a={credentialType:he.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r};return i&&(a.userAssertionHash=i),n&&(a.familyId=n),a}function Pv(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function p0(t){return t?Pv(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===he.ACCESS_TOKEN||t.credentialType===he.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function g0(t){return t?Pv(t)&&t.hasOwnProperty("realm")&&t.credentialType===he.ID_TOKEN:!1}function m0(t){return t?Pv(t)&&t.credentialType===he.REFRESH_TOKEN:!1}function xR(t){return[t.homeAccountId,t.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function ER(t){const e=t.credentialType===he.REFRESH_TOKEN&&t.familyId||t.clientId;return[t.credentialType,e,t.realm||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function IR(t){return(t.target||"").toLowerCase()}function AR(t){return(t.requestedClaimsHash||"").toLowerCase()}function RR(t){return t.tokenType&&t.tokenType.toLowerCase()!==Be.BEARER.toLowerCase()?t.tokenType.toLowerCase():""}function PR(t,e){const r=t.indexOf(Nt.CACHE_KEY)===0;let o=!0;return e&&(o=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&o}/*! @azure/msal-common v14.5.0 2023-12-01 */const rS="redirect_uri_empty",BR="claims_request_parsing_error",oS="authority_uri_insecure",nc="url_parse_error",Bv="empty_url_error",nS="empty_input_scopes_error",iS="invalid_prompt_value",Nv="invalid_claims",aS="token_request_empty",sS="logout_request_empty",cS="invalid_code_challenge_method",zv="pkce_params_missing",Mv="invalid_cloud_discovery_metadata",lS="invalid_authority_metadata",uS="untrusted_authority",Af="missing_ssh_jwk",dS="missing_ssh_kid",NR="missing_nonce_authentication_header",zR="invalid_authentication_header",fS="cannot_set_OIDCOptions",hS="cannot_allow_native_broker",pS="authority_mismatch";/*! @azure/msal-common v14.5.0 2023-12-01 */const MR={[rS]:"A redirect URI is required for all calls, and none has been set.",[BR]:"Could not parse the given claims request object.",[oS]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[nc]:"URL could not be parsed into appropriate segments.",[Bv]:"URL was empty or null.",[nS]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[iS]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[Nv]:"Given claims parameter must be a stringified JSON object.",[aS]:"Token request was empty and not found in cache.",[sS]:"The logout request was null or undefined.",[cS]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[zv]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Mv]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[lS]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[uS]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Af]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[dS]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[NR]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[zR]:"Invalid authentication header provided",[fS]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[hS]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[pS]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class Ov extends Ve{constructor(e){super(e,MR[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Ov.prototype)}}function Ne(t){return new Ov(t)}/*! @azure/msal-common v14.5.0 2023-12-01 */class io{static isEmptyObj(e){if(e)try{const r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0}static startsWith(e,r){return e.indexOf(r)===0}static endsWith(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length}static queryStringToObject(e){const r={},o=e.split("&"),n=i=>decodeURIComponent(i.replace(/\+/g," "));return o.forEach(i=>{if(i.trim()){const[a,s]=i.split(/=(.+)/g,2);a&&s&&(r[n(a)]=n(s))}}),r}static trimArrayEntries(e){return e.map(r=>r.trim())}static removeEmptyStringsFromArray(e){return e.filter(r=>!!r)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,r){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(r)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class pt{constructor(e){const r=e?io.trimArrayEntries([...e]):[],o=r?io.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(n=>this.scopes.add(n))}static fromString(e){const o=(e||z.EMPTY_STRING).split(" ");return new pt(o)}static createSearchScopes(e){const r=new pt(e);return r.containsOnlyOIDCScopes()?r.removeScope(z.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}validateInputScopes(e){if(!e||e.length<1)throw Ne(nS)}containsScope(e){const r=this.printScopesLowerCase().split(" "),o=new pt(r);return e?o.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(r=>this.containsScope(r))}containsOnlyOIDCScopes(){let e=0;return c0.forEach(r=>{this.containsScope(r)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(r=>this.appendScope(r))}catch{throw X(V_)}}removeScope(e){if(!e)throw X(W_);this.scopes.delete(e.trim())}removeOIDCScopes(){c0.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw X(rg);const r=new Set;return e.scopes.forEach(o=>r.add(o.toLowerCase())),this.scopes.forEach(o=>r.add(o.toLowerCase())),r}intersectingScopeSets(e){if(!e)throw X(rg);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const r=this.unionScopeSets(e),o=e.getScopeCount(),n=this.getScopeCount();return r.sizee.push(r)),e}printScopes(){return this.scopes?this.asArray().join(" "):z.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.5.0 2023-12-01 */function Td(t,e){if(!t)throw X(O_);try{const r=e(t);return JSON.parse(r)}catch{throw X(Sv)}}function Ea(t){if(!t)throw X(Sv);const e=t.split(Ht.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?z.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.5.0 2023-12-01 */function sg(t,e){return!!t&&!!e&&t===e.split(".")[1]}function Dv(t,e){const{oid:r,sub:o,tid:n,name:i,tfp:a,acr:s}=e,c=n||a||s||"";return{tenantId:c,localAccountId:r||o||"",name:i,isHomeTenant:sg(c,t)}}function jv(t,e,r){let o=t;if(e){const{isHomeTenant:n,...i}=e;o={...t,...i}}if(r){const{isHomeTenant:n,...i}=Dv(t.homeAccountId,r);return o={...o,...i,idTokenClaims:r},o}return o}/*! @azure/msal-common v14.5.0 2023-12-01 */const Zr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.5.0 2023-12-01 */function gS(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v14.5.0 2023-12-01 */const Jo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.5.0 2023-12-01 */class Tt{generateAccountId(){return[this.homeAccountId,this.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Tt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const r=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",r||e.tenantId||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,r,o){const n=new Tt;r.authorityType===Zr.Adfs?n.authorityType=Jl.ADFS_ACCOUNT_TYPE:r.protocolMode===Jo.AAD?n.authorityType=Jl.MSSTS_ACCOUNT_TYPE:n.authorityType=Jl.GENERIC_ACCOUNT_TYPE;let i;e.clientInfo&&o&&(i=Td(e.clientInfo,o)),n.clientInfo=e.clientInfo,n.homeAccountId=e.homeAccountId,n.nativeAccountId=e.nativeAccountId;const a=e.environment||r&&r.getPreferredCache();if(!a)throw X(Ev);n.environment=a,n.realm=i?.utid||gS(e.idTokenClaims)||"",n.localAccountId=i?.uid||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const s=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,c=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(n.username=s||c||"",n.name=e.idTokenClaims.name,n.cloudGraphHostName=e.cloudGraphHostName,n.msGraphHost=e.msGraphHost,e.tenantProfiles)n.tenantProfiles=e.tenantProfiles;else{const l=[];if(e.idTokenClaims){const u=Dv(e.homeAccountId,e.idTokenClaims);l.push(u)}n.tenantProfiles=l}return n}static createFromAccountInfo(e,r,o){const n=new Tt;return n.authorityType=e.authorityType||Jl.GENERIC_ACCOUNT_TYPE,n.homeAccountId=e.homeAccountId,n.localAccountId=e.localAccountId,n.nativeAccountId=e.nativeAccountId,n.realm=e.tenantId,n.environment=e.environment,n.username=e.username,n.name=e.name,n.cloudGraphHostName=r,n.msGraphHost=o,n.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),n}static generateHomeAccountId(e,r,o,n,i){if(!(r===Zr.Adfs||r===Zr.Dsts)){if(e)try{const a=Td(e,n.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}o.warning("No client info in response")}return i?.sub||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,r,o){if(!e||!r)return!1;let n=!0;if(o){const i=e.idTokenClaims||{},a=r.idTokenClaims||{};n=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&n}}/*! @azure/msal-common v14.5.0 2023-12-01 */function OR(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.5.0 2023-12-01 */function mS(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function xd(t){if(!t||t.indexOf("=")<0)return null;try{const e=mS(t),r=Object.fromEntries(new URLSearchParams(e));if(r.code||r.error||r.error_description||r.state)return r}catch{throw X(L_)}return null}/*! @azure/msal-common v14.5.0 2023-12-01 */class Te{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Ne(Bv);e.includes("#")||(this._urlString=Te.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let r=e.toLowerCase();return io.endsWith(r,"?")?r=r.slice(0,-1):io.endsWith(r,"?/")&&(r=r.slice(0,-2)),io.endsWith(r,"/")||(r+="/"),r}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Ne(nc)}if(!e.HostNameAndPort||!e.PathSegments)throw Ne(nc);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ne(oS)}static appendQueryString(e,r){return r?e.indexOf("?")<0?`${e}?${r}`:`${e}&${r}`:e}static removeHashFromUrl(e){return Te.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const r=this.getUrlComponents(),o=r.PathSegments;return e&&o.length!==0&&(o[0]===jn.COMMON||o[0]===jn.ORGANIZATIONS)&&(o[0]=e),Te.constructAuthorityUriFromObject(r)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Ne(nc);const o={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]};let n=o.AbsolutePath.split("/");return n=n.filter(i=>i&&i.length>0),o.PathSegments=n,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(e){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(r);if(!o)throw Ne(nc);return o[2]}static getAbsoluteUrl(e,r){if(e[0]===z.FORWARD_SLASH){const n=new Te(r).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new Te(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!xd(e)}}/*! @azure/msal-common v14.5.0 2023-12-01 */const vS={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},v0=vS.endpointMetadata,Fv=vS.instanceDiscoveryMetadata,bS=new Set;Fv.metadata.forEach(t=>{t.aliases.forEach(e=>{bS.add(e)})});function DR(t,e){let r;const o=t.canonicalAuthority;if(o){const n=new Te(o).getUrlComponents().HostNameAndPort;r=b0(n,t.cloudDiscoveryMetadata?.metadata,br.CONFIG,e)||b0(n,Fv.metadata,br.HARDCODED_VALUES,e)||t.knownAuthorities}return r||[]}function b0(t,e,r,o){if(o?.trace(`getAliasesFromMetadata called with source: ${r}`),t&&e){const n=Ed(e,t);if(n)return o?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${r}, returning aliases`),n.aliases;o?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${r}`)}return null}function jR(t){return Ed(Fv.metadata,t)}function Ed(t,e){for(let r=0;r(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);try{const s=t(...i);return a?.end({success:!0}),r.trace(`Returning result from ${e}`),s}catch(s){r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s}},J=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);return o?.setPreQueueTime(e,n),t(...i).then(s=>(r.trace(`Returning result from ${e}`),a?.end({success:!0}),s)).catch(s=>{r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s})};/*! @azure/msal-common v14.5.0 2023-12-01 */class Rf{constructor(e,r,o,n){this.networkInterface=e,this.logger=r,this.performanceClient=o,this.correlationId=n}async detectRegion(e,r){this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryDetectRegion,this.correlationId);let o=e;if(o)r.region_source=ua.ENVIRONMENT_VARIABLE;else{const n=Rf.IMDS_OPTIONS;try{const i=await J(this.getRegionFromIMDS.bind(this),P.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(z.IMDS_VERSION,n);if(i.status===eu.httpSuccess&&(o=i.body,r.region_source=ua.IMDS),i.status===eu.httpBadRequest){const a=await J(this.getCurrentVersion.bind(this),P.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(n);if(!a)return r.region_source=ua.FAILED_AUTO_DETECTION,null;const s=await J(this.getRegionFromIMDS.bind(this),P.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,n);s.status===eu.httpSuccess&&(o=s.body,r.region_source=ua.IMDS)}}catch{return r.region_source=ua.FAILED_AUTO_DETECTION,null}}return o||(r.region_source=ua.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(e,r){return this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${z.IMDS_ENDPOINT}?api-version=${e}&format=text`,r,z.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(P.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${z.IMDS_ENDPOINT}?format=json`,e);return r.status===eu.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}Rf.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.5.0 2023-12-01 */class qt{constructor(e,r,o,n,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=o,this.authorityOptions=n,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new Rf(r,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(z.CIAM_AUTH_URL))return Zr.Ciam;const r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case z.ADFS:return Zr.Adfs;case z.DSTS:return Zr.Dsts}return Zr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Te(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw X(Ho)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw X(Ho)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw X(Ho)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw X(Z_);return this.replacePath(this.metadata.end_session_endpoint)}else throw X(Ho)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw X(Ho)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw X(Ho)}canReplaceTenant(e){return e.PathSegments.length===1&&!qt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Zr.Default&&this.protocolMode===Jo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let r=e;const n=new Te(this.metadata.canonical_authority).getUrlComponents(),i=n.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((s,c)=>{let l=i[c];if(c===0&&this.canReplaceTenant(n)){const u=new Te(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];l!==u&&(this.logger.verbose(`Replacing tenant domain name ${l} with id ${u}`),l=u)}s!==l&&(r=r.replace(`/${l}/`,`/${s}/`))}),this.replaceTenant(r)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Zr.Adfs||this.protocolMode!==Jo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement(P.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),r=await J(this.updateCloudDiscoveryMetadata.bind(this),P.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const o=await J(this.updateEndpointMetadata.bind(this),P.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,r,{source:o})}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e=new cg,e.updateCanonicalAuthority(this.canonicalAuthority)),e}updateCachedMetadata(e,r,o){r!==br.CACHE&&o?.source!==br.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority));const n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateEndpointMetadata,this.correlationId);const r=this.updateEndpointMetadataFromLocalSources(e);if(r){if(r.source===br.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&r.metadata){const n=await J(this.updateMetadataWithRegionalInformation.bind(this),P.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r.metadata);e.updateEndpointMetadata(n,!1)}return r.source}let o=await J(this.getEndpointMetadataFromNetwork.bind(this),P.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await J(this.updateMetadataWithRegionalInformation.bind(this),P.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(o)),e.updateEndpointMetadata(o,!0),br.NETWORK;throw X(F_,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const r=this.getEndpointMetadataFromConfig();if(r)return this.logger.verbose("Found endpoint metadata in authority configuration"),e.updateEndpointMetadata(r,!1),{source:br.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const n=this.getEndpointMetadataFromHardcodedValues();if(n)return e.updateEndpointMetadata(n,!1),{source:br.HARDCODED_VALUES,metadata:n};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const o=e.isExpired();return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("Found endpoint metadata in the cache."),{source:br.CACHE}):(o&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Te(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ne(lS)}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(P.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},r=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${r}`);try{const o=await this.networkInterface.sendGetRequestAsync(r,e);return OR(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.canonicalAuthority in v0?v0[this.canonicalAuthority]:null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const r=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(r){if(r!==z.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Rh.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=r,qt.replaceWithRegionalInformation(e,r);const o=await J(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),P.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=Rh.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,qt.replaceWithRegionalInformation(e,o);this.regionDiscoveryMetadata.region_outcome=Rh.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(P.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const r=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(r)return r;const o=await J(this.getCloudDiscoveryMetadataFromNetwork.bind(this),P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return e.updateCloudDiscoveryMetadata(o,!0),br.NETWORK;throw Ne(uS)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||z.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||z.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||z.NOT_APPLICABLE}`);const r=this.getCloudDiscoveryMetadataFromConfig();if(r)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),e.updateCloudDiscoveryMetadata(r,!1),br.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const n=jR(this.hostnameAndPort);if(n)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(n,!1),br.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const o=e.isExpired();return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found cloud discovery metadata in the cache."),br.CACHE):(o&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Zr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=Ed(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Ne(Mv)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(P.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${z.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,r={};let o=null;try{const n=await this.networkInterface.sendGetRequestAsync(e,r);let i,a;if(FR(n.body))i=n.body,a=i.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${i.tenant_discovery_endpoint}`);else if(LR(n.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${n.status}`),i=n.body,i.error===z.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${i.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${i.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=Ed(a,this.hostnameAndPort)}catch(n){if(n instanceof Ve)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. Error: ${n.errorCode} Error Description: ${n.errorMessage}`);else{const i=n;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. Error: ${i.name} -Error Description: ${i.message}`)}return null}return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(r=>r&&Te.getDomainFromUrl(r).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,r){let o;if(r&&r.azureCloudInstance!==Pv.None){const n=r.tenant?r.tenant:z.DEFAULT_COMMON_TENANT;o=`${r.azureCloudInstance}/${n}/`}return o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw X(Ho)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return bS.has(e)}static isPublicCloudAuthority(e){return z.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,r,o){const n=new Te(e);n.validateAsUri();const i=n.getUrlComponents();let a=`${r}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=`${r}.${z.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const s=Te.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:a}).urlString;return o?`${s}?${o}`:s}static replaceWithRegionalInformation(e,r){const o={...e};return o.authorization_endpoint=qt.buildRegionalAuthorityString(o.authorization_endpoint,r),o.token_endpoint=qt.buildRegionalAuthorityString(o.token_endpoint,r),o.end_session_endpoint&&(o.end_session_endpoint=qt.buildRegionalAuthorityString(o.end_session_endpoint,r)),o}static transformCIAMAuthority(e){let r=e;const n=new Te(e).getUrlComponents();if(n.PathSegments.length===0&&n.HostNameAndPort.endsWith(z.CIAM_AUTH_URL)){const i=n.HostNameAndPort.split(".")[0];r=`${r}${i}${z.AAD_TENANT_DOMAIN_SUFFIX}`}return r}}qt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",jn.COMMON,jn.CONSUMERS,jn.ORGANIZATIONS]);function qR(t){const o=new Te(t).getUrlComponents().PathSegments.slice(-1)[0].toLowerCase();switch(o){case jn.COMMON:case jn.ORGANIZATIONS:case jn.CONSUMERS:return;default:return o}}function yS(t){return t.endsWith(z.FORWARD_SLASH)?t:`${t}${z.FORWARD_SLASH}`}function HR(t){const e=t.cloudDiscoveryMetadata;let r;if(e)try{r=JSON.parse(e)}catch{throw Ne(Ov)}return{canonicalAuthority:t.authority?yS(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:r}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Wo{constructor(e,r,o,n){this.clientId=e,this.cryptoImpl=r,this.commonLogger=o.clone(J_,Rv),this.staticAuthorityOptions=n}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){const r=this.getAllAccounts(e);return r.length>1?r.sort(n=>n.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e){const r=this.getAccountsFilteredBy(e);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,r){return e.flatMap(o=>this.getAccountInfoForTenantProfiles(o,r))}getAccountInfoForTenantProfiles(e,r){return this.getTenantProfilesFromAccountEntity(e,r?.tenantId,r)}getTenantedAccountInfoByFilter(e,r,o,n){let i=null,a;if(n&&!this.tenantProfileMatchesFilter(o,n))return null;const s=this.getIdToken(e,r,o.tenantId);return s&&(a=ea(s.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,n))?null:(i=Fv(e,o,a),i)}getTenantProfilesFromAccountEntity(e,r,o){const n=e.getAccountInfo();let i=n.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const c=i.get(r);if(c)i=new Map([[r,c]]);else return[]}const s=[];return i.forEach(c=>{const l=this.getTenantedAccountInfoByFilter(n,a,c,o);l&&s.push(l)}),s}tenantProfileMatchesFilter(e,r){return!(r.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,r.localAccountId)||r.name&&e.name!==r.name||r.isHomeTenant!==void 0&&e.isHomeTenant!==r.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,r){return!(r&&(r.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,r.localAccountId)||r.loginHint&&!this.matchLoginHintFromTokenClaims(e,r.loginHint)||r.username&&!this.matchUsername(e.preferred_username,r.username)||r.name&&!this.matchName(e,r.name)||r.sid&&!this.matchSid(e,r.sid)))}async saveCacheRecord(e,r){if(!e)throw X(G_);e.account&&this.setAccount(e.account),e.idToken&&r?.idToken!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&r?.accessToken!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&r?.refreshToken!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}async saveAccessToken(e){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),n=pt.fromString(e.target),i=[];o.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;const s=this.getAccessTokenCredential(a);s&&this.credentialMatchesFilter(s,r)&&pt.fromString(s.target).intersectingScopeSets(n)&&i.push(this.removeAccessToken(a))}),await Promise.all(i),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const r=this.getAccountKeys(),o=[];return r.forEach(n=>{if(!this.isAccountKey(n,e.homeAccountId))return;const i=this.getAccount(n,this.commonLogger);if(!i||e.homeAccountId&&!this.matchHomeAccountId(i,e.homeAccountId)||e.username&&!this.matchUsername(i.username,e.username)||e.environment&&!this.matchEnvironment(i,e.environment)||e.realm&&!this.matchRealm(i,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(i,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(i,e.authorityType))return;const a={localAccountId:e?.localAccountId,name:e?.name},s=i.tenantProfiles?.filter(c=>this.tenantProfileMatchesFilter(c,a));s&&s.length===0||o.push(i)}),o}isAccountKey(e,r,o){return!(e.split(Ht.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))}isCredentialKey(e){if(e.split(Ht.CACHE_KEY_SEPARATOR).length<6)return!1;const r=e.toLowerCase();if(r.indexOf(he.ID_TOKEN.toLowerCase())===-1&&r.indexOf(he.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(he.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(he.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(he.REFRESH_TOKEN.toLowerCase())>-1){const o=`${he.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${this.clientId}${Ht.CACHE_KEY_SEPARATOR}`,n=`${he.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${gc}${Ht.CACHE_KEY_SEPARATOR}`;if(r.indexOf(o.toLowerCase())===-1&&r.indexOf(n.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===he.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===Be.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))}getAppMetadataFilteredBy(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)}getAppMetadataFilteredByInternal(e,r){const o=this.getKeys(),n={};return o.forEach(i=>{if(!this.isAppMetadata(i))return;const a=this.getAppMetadata(i);a&&(e&&!this.matchEnvironment(a,e)||r&&!this.matchClientId(a,r)||(n[i]=a))}),n}getAuthorityMetadataByAlias(e){const r=this.getAuthorityMetadataKeys();let o=null;return r.forEach(n=>{if(!this.isAuthorityMetadata(n)||n.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(n);i&&i.aliases.indexOf(e)!==-1&&(o=i)}),o}async removeAllAccounts(){const e=this.getAccountKeys(),r=[];e.forEach(o=>{r.push(this.removeAccount(o))}),await Promise.all(r)}async removeAccount(e){const r=this.getAccount(e,this.commonLogger);r&&(await this.removeAccountContext(r),this.removeItem(e))}async removeAccountContext(e){const r=this.getTokenKeys(),o=e.generateAccountId(),n=[];r.idToken.forEach(i=>{i.indexOf(o)===0&&this.removeIdToken(i)}),r.accessToken.forEach(i=>{i.indexOf(o)===0&&n.push(this.removeAccessToken(i))}),r.refreshToken.forEach(i=>{i.indexOf(o)===0&&this.removeRefreshToken(i)}),await Promise.all(n)}updateOutdatedCachedAccount(e,r,o){if(r&&r.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const n=this.getAccountKeys().filter(l=>l.startsWith(r.homeAccountId)),i=[];n.forEach(l=>{const u=this.getCachedAccountEntity(l);u&&i.push(u)});const a=i.find(l=>cg(l.realm,l.homeAccountId))||i[0];a.tenantProfiles=i.map(l=>({tenantId:l.realm,localAccountId:l.localAccountId,name:l.name,isHomeTenant:cg(l.realm,l.homeAccountId)}));const s=Wo.toObject(new Tt,{...a}),c=s.generateAccountKey();return n.forEach(l=>{l!==c&&this.removeOutdatedAccount(e)}),this.setAccount(s),o?.verbose("Updated an outdated account entity in the cache"),s}return r}async removeAccessToken(e){const r=this.getAccessTokenCredential(e);if(r){if(r.credentialType.toLowerCase()===he.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===Be.POP){const n=r.keyId;if(n)try{await this.cryptoImpl.removeTokenBindingKey(n)}catch{throw X(Q_)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r)}),!0}readCacheRecord(e,r,o,n,i){const a=e.tenantId||qR(r.authority),s=this.getTokenKeys(),c=this.readAccountFromCache(e),l=this.getIdToken(e,s,a,n,i),u=this.getAccessToken(e,r,s,a,n,i),d=this.getRefreshToken(e,!1,s,n,i),f=this.readAppMetadataFromCache(o);return{account:c,idToken:l,accessToken:u,refreshToken:d,appMetadata:f}}readAccountFromCache(e){const r=Tt.generateAccountCacheKey(e);return this.getAccount(r,this.commonLogger)}getIdToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:he.ID_TOKEN,clientId:this.clientId,realm:o},s=this.getIdTokensByFilter(a,r),c=s.size;if(c<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(c>1){let l=s;if(!o){const u=new Map;s.forEach((f,h)=>{f.realm===e.tenantId&&u.set(h,f)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),s.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;l=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),l.forEach((u,d)=>{this.removeIdToken(d)}),n&&i&&n.addFields({multiMatchedID:s.size},i),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),s.values().next().value}getIdTokensByFilter(e,r){const o=r&&r.idToken||this.getTokenKeys().idToken,n=new Map;return o.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...e}))return;const a=this.getIdTokenCredential(i);a&&this.credentialMatchesFilter(a,e)&&n.set(i,a)}),n}idTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,r,o,n,i,a){this.commonLogger.trace("CacheManager - getAccessToken called");const s=pt.createSearchScopes(r.scopes),c=r.authenticationScheme||Be.BEARER,l=c&&c.toLowerCase()!==Be.BEARER.toLowerCase()?he.ACCESS_TOKEN_WITH_AUTH_SCHEME:he.ACCESS_TOKEN,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:l,clientId:this.clientId,realm:n||e.tenantId,target:s,tokenType:c,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},d=o&&o.accessToken||this.getTokenKeys().accessToken,f=[];d.forEach(p=>{if(this.accessTokenKeyMatchesFilter(p,u,!0)){const g=this.getAccessTokenCredential(p);g&&this.credentialMatchesFilter(g,u)&&f.push(g)}});const h=f.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),f.forEach(p=>{this.removeAccessToken(oc(p))}),i&&a&&i.addFields({multiMatchedAT:f.length},a),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),f[0])}accessTokenKeyMatchesFilter(e,r,o){const n=e.toLowerCase();if(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&n.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&n.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target){const i=r.target.asArray();for(let a=0;a{if(!this.accessTokenKeyMatchesFilter(n,e,!0))return;const i=this.getAccessTokenCredential(n);i&&this.credentialMatchesFilter(i,e)&&o.push(i)}),o}getRefreshToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=r?gc:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:he.REFRESH_TOKEN,clientId:this.clientId,familyId:a},c=o&&o.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,s)){const f=this.getRefreshTokenCredential(d);f&&this.credentialMatchesFilter(f,s)&&l.push(f)}});const u=l.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&n&&i&&n.addFields({multiMatchedRT:u},i),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])}refreshTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.familyId&&o.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const r={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(r),n=Object.keys(o).map(a=>o[a]),i=n.length;if(i<1)return null;if(i>1)throw X($_);return n[0]}isAppMetadataFOCI(e){const r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===gc)}matchHomeAccountId(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,r){const o=e.oid||e.sub;return r===o}matchLocalAccountIdFromTenantProfile(e,r){return e.localAccountId===r}matchName(e,r){return r.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,r){return!!(e&&typeof e=="string"&&r?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)}matchEnvironment(e,r){if(this.staticAuthorityOptions){const n=OR(this.staticAuthorityOptions,this.commonLogger);if(n.includes(r)&&n.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(r);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,r){return!!(e.clientId&&r===e.clientId)}matchFamilyId(e,r){return!!(e.familyId&&r===e.familyId)}matchRealm(e,r){return e.realm?.toLowerCase()===r.toLowerCase()}matchNativeAccountId(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,r){return e.login_hint===r||e.preferred_username===r||e.upn===r}matchSid(e,r){return e.sid===r}matchAuthorityType(e,r){return!!(e.authorityType&&r.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,r){return e.credentialType!==he.ACCESS_TOKEN&&e.credentialType!==he.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:pt.fromString(e.target).containsScopeSet(r)}matchTokenType(e,r){return!!(e.tokenType&&e.tokenType===r)}matchKeyId(e,r){return!!(e.keyId&&e.keyId===r)}isAppMetadata(e){return e.indexOf(rg)!==-1}isAuthorityMetadata(e){return e.indexOf(mc.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${mc.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,r){for(const o in r)e[o]=r[o];return e}}class UR extends Wo{setAccount(){throw X(be)}getAccount(){throw X(be)}getCachedAccountEntity(){throw X(be)}setIdTokenCredential(){throw X(be)}getIdTokenCredential(){throw X(be)}setAccessTokenCredential(){throw X(be)}getAccessTokenCredential(){throw X(be)}setRefreshTokenCredential(){throw X(be)}getRefreshTokenCredential(){throw X(be)}setAppMetadata(){throw X(be)}getAppMetadata(){throw X(be)}setServerTelemetry(){throw X(be)}getServerTelemetry(){throw X(be)}setAuthorityMetadata(){throw X(be)}getAuthorityMetadata(){throw X(be)}getAuthorityMetadataKeys(){throw X(be)}setThrottlingCache(){throw X(be)}getThrottlingCache(){throw X(be)}removeItem(){throw X(be)}containsKey(){throw X(be)}getKeys(){throw X(be)}getAccountKeys(){throw X(be)}getTokenKeys(){throw X(be)}async clear(){throw X(be)}updateCredentialCacheKey(){throw X(be)}removeOutdatedAccount(){throw X(be)}}/*! @azure/msal-common v14.5.0 2023-12-01 */const $R=300,wS={tokenRenewalOffsetSeconds:$R,preventCorsPreflight:!1},KR={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ht.Info,correlationId:z.EMPTY_STRING},WR={claimsBasedCachingEnabled:!1},VR={async sendGetRequestAsync(){throw X(be)},async sendPostRequestAsync(){throw X(be)}},GR={sku:z.SKU,version:Rv,cpu:z.EMPTY_STRING,os:z.EMPTY_STRING},XR={clientSecret:z.EMPTY_STRING,clientAssertion:void 0},YR={azureCloudInstance:Pv.None,tenant:`${z.DEFAULT_COMMON_TENANT}`},QR={application:{appName:"",appVersion:""}};function ZR({authOptions:t,systemOptions:e,loggerOptions:r,cacheOptions:o,storageInterface:n,networkInterface:i,cryptoInterface:a,clientCredentials:s,libraryInfo:c,telemetry:l,serverTelemetryManager:u,persistencePlugin:d,serializableCache:f}){const h={...KR,...r};return{authOptions:JR(t),systemOptions:{...wS,...e},loggerOptions:h,cacheOptions:{...WR,...o},storageInterface:n||new UR(t.clientId,Td,new Il(h)),networkInterface:i||VR,cryptoInterface:a||Td,clientCredentials:s||XR,libraryInfo:{...GR,...c},telemetry:{...QR,...l},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:f||null}}function JR(t){return{clientCapabilities:[],azureCloudOptions:YR,skipAuthorityMetadataCache:!1,...t}}function ug(t){return t.authOptions.authority.options.protocolMode===Jo.OIDC}/*! @azure/msal-common v14.5.0 2023-12-01 */class Xn extends Ve{constructor(e,r,o){super(e,r,o),this.name="ServerError",Object.setPrototypeOf(this,Xn.prototype)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Co{static generateThrottlingStorageKey(e){return`${vc.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,r){const o=Co.generateThrottlingStorageKey(r),n=e.getThrottlingCache(o);if(n){if(n.throttleTime=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(xo.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const r=e<=0?0:e,o=Date.now()/1e3;return Math.floor(Math.min(o+(r||vc.DEFAULT_THROTTLE_TIME_SECONDS),o+vc.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,r,o,n){const i={clientId:r,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:n,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class eP{constructor(e,r){this.networkClient=e,this.cacheManager=r}async sendPostRequest(e,r,o){Co.preProcess(this.cacheManager,e);let n;try{n=await this.networkClient.sendPostRequestAsync(r,o)}catch(i){throw i instanceof Ve?i:X(j_)}return Co.postProcess(this.cacheManager,e,n),n}}/*! @azure/msal-common v14.5.0 2023-12-01 */const _r={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.5.0 2023-12-01 */const os="client_id",tP="redirect_uri",y0="response_type",rP="response_mode",oP="grant_type",nP="claims",iP="scope",aP="refresh_token",sP="state",cP="nonce",lP="prompt",uP="code",dP="code_challenge",fP="code_challenge_method",hP="code_verifier",pP="client-request-id",gP="x-client-SKU",mP="x-client-VER",vP="x-client-OS",bP="x-client-CPU",yP="x-client-current-telemetry",wP="x-client-last-telemetry",kP="x-ms-lib-capability",_P="x-app-name",SP="x-app-ver",CP="post_logout_redirect_uri",TP="id_token_hint",xP="device_code",EP="client_secret",IP="client_assertion",AP="client_assertion_type",w0="token_type",k0="req_cnf",RP="assertion",PP="requested_token_use",_0="return_spa_code",BP="nativebroker",NP="logout_hint",zP="sid",MP="login_hint",OP="domain_hint";/*! @azure/msal-common v14.5.0 2023-12-01 */class di{static validateRedirectUri(e){if(!e)throw Ne(rS)}static validatePrompt(e){const r=[];for(const o in Wt)r.push(Wt[o]);if(r.indexOf(e)<0)throw Ne(iS)}static validateClaims(e){try{JSON.parse(e)}catch{throw Ne(zv)}}static validateCodeChallengeParams(e,r){if(!e||!r)throw Ne(Mv);this.validateCodeChallengeMethod(r)}static validateCodeChallengeMethod(e){if([l0.PLAIN,l0.S256].indexOf(e)<0)throw Ne(cS)}static sanitizeEQParams(e,r){return e?(r.forEach((o,n)=>{e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(o=>o[1]!==""))):{}}}/*! @azure/msal-common v14.5.0 2023-12-01 */class bc{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(y0,encodeURIComponent(z.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(y0,encodeURIComponent(`${z.TOKEN_RESPONSE_TYPE} ${z.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(rP,encodeURIComponent(e||cR.QUERY))}addNativeBroker(){this.parameters.set(BP,encodeURIComponent("1"))}addScopes(e,r=!0,o=xl){r&&!o.includes("openid")&&!e.includes("openid")&&o.push("openid");const n=r?[...e||[],...o]:e||[],i=new pt(n);this.parameters.set(iP,encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(os,encodeURIComponent(e))}addRedirectUri(e){di.validateRedirectUri(e),this.parameters.set(tP,encodeURIComponent(e))}addPostLogoutRedirectUri(e){di.validateRedirectUri(e),this.parameters.set(CP,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(TP,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(OP,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(MP,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(xo.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(xo.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(zP,encodeURIComponent(e))}addClaims(e,r){const o=this.addClientCapabilitiesToClaims(e,r);di.validateClaims(o),this.parameters.set(nP,encodeURIComponent(o))}addCorrelationId(e){this.parameters.set(pP,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(gP,e.sku),this.parameters.set(mP,e.version),e.os&&this.parameters.set(vP,e.os),e.cpu&&this.parameters.set(bP,e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set(_P,e.appName),e?.appVersion&&this.parameters.set(SP,e.appVersion)}addPrompt(e){di.validatePrompt(e),this.parameters.set(`${lP}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(sP,encodeURIComponent(e))}addNonce(e){this.parameters.set(cP,encodeURIComponent(e))}addCodeChallengeParams(e,r){if(di.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(dP,encodeURIComponent(e)),this.parameters.set(fP,encodeURIComponent(r));else throw Ne(Mv)}addAuthorizationCode(e){this.parameters.set(uP,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(xP,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(aP,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(hP,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(EP,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(IP,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(AP,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(RP,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(PP,encodeURIComponent(e))}addGrantType(e){this.parameters.set(oP,encodeURIComponent(e))}addClientInfo(){this.parameters.set(lR,"1")}addExtraQueryParameters(e){const r=di.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(o=>{this.parameters.set(o,e[o])})}addClientCapabilitiesToClaims(e,r){let o;if(!e)o={};else try{o=JSON.parse(e)}catch{throw Ne(zv)}return r&&r.length>0&&(o.hasOwnProperty(Jl.ACCESS_TOKEN)||(o[Jl.ACCESS_TOKEN]={}),o[Jl.ACCESS_TOKEN][Jl.XMS_CC]={values:r}),JSON.stringify(o)}addUsername(e){this.parameters.set(d0.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(d0.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(w0,Be.POP),this.parameters.set(k0,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(w0,Be.SSH),this.parameters.set(k0,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(yP,e.generateCurrentRequestHeaderValue()),this.parameters.set(wP,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(kP,vc.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(NP,encodeURIComponent(e))}createQueryString(){const e=new Array;return this.parameters.forEach((r,o)=>{e.push(`${o}=${r}`)}),e.join("&")}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Fi{static async createDiscoveredInstance(e,r,o,n,i,a,s){a?.addQueueMeasurement(P.AuthorityFactoryCreateDiscoveredInstance,s);const c=qt.transformCIAMAuthority(yS(e)),l=Fi.createInstance(c,r,o,n,i,a,s);try{return await J(l.resolveEndpointsAsync.bind(l),P.AuthorityResolveEndpointsAsync,i,a,s)(),l}catch{throw X(Ho)}}static createInstance(e,r,o,n,i,a,s){if(!e)throw Ne(Nv);return new qt(e,r,o,n,i,a,s)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class qv{constructor(e,r){this.config=ZR(e),this.logger=new Il(this.config.loggerOptions,J_,Rv),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new eP(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}createTokenRequestHeaders(e){const r={};if(r[xo.CONTENT_TYPE]=z.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case _r.HOME_ACCOUNT_ID:try{const o=Ea(e.credential);r[xo.CCS_HEADER]=`Oid:${o.uid}@${o.utid}`}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case _r.UPN:r[xo.CCS_HEADER]=`UPN: ${e.credential}`;break}return r}async executePostToTokenEndpoint(e,r,o,n,i,a){a&&this.performanceClient?.addQueueMeasurement(a,i);const s=await this.networkManager.sendPostRequest(n,e,{body:r,headers:o});return this.performanceClient?.addFields({refreshTokenSize:s.body.refresh_token?.length||0,httpVerToken:s.headers?.[xo.X_MS_HTTP_VERSION]||""},i),this.config.serverTelemetryManager&&s.status<500&&s.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),s}async updateAuthority(e,r){this.performanceClient?.addQueueMeasurement(P.UpdateTokenEndpointAuthority,r);const o=`https://${e}/${this.authority.tenant}/`,n=await Fi.createDiscoveredInstance(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,this.performanceClient,r);this.authority=n}createTokenQueryParameters(e){const r=new bc;return e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.createQueryString()}}/*! @azure/msal-common v14.5.0 2023-12-01 */const Ad="no_tokens_found",kS="native_account_unavailable",DP="interaction_required",jP="consent_required",FP="login_required";/*! @azure/msal-common v14.5.0 2023-12-01 */const S0=[DP,jP,FP],LP=["message_only","additional_action","basic_action","user_password_expired","consent_required"],qP={[Ad]:"No refresh token found in the cache. Please sign-in.",[kS]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."};class Ao extends Ve{constructor(e,r,o,n,i,a,s){super(e,r,o),Object.setPrototypeOf(this,Ao.prototype),this.timestamp=n||z.EMPTY_STRING,this.traceId=i||z.EMPTY_STRING,this.correlationId=a||z.EMPTY_STRING,this.claims=s||z.EMPTY_STRING,this.name="InteractionRequiredAuthError"}}function C0(t,e,r){const o=!!t&&S0.indexOf(t)>-1,n=!!r&&LP.indexOf(r)>-1,i=!!e&&S0.some(a=>e.indexOf(a)>-1);return o||i||n}function _S(t){return new Ao(t,qP[t])}/*! @azure/msal-common v14.5.0 2023-12-01 */class La{constructor(e,r,o,n,i){this.account=e||null,this.idToken=r||null,this.accessToken=o||null,this.refreshToken=n||null,this.appMetadata=i||null}}/*! @azure/msal-common v14.5.0 2023-12-01 */class ao{static setRequestState(e,r,o){const n=ao.generateLibraryState(e,o);return r?`${n}${z.RESOURCE_DELIM}${r}`:n}static generateLibraryState(e,r){if(!e)throw X(ig);const o={id:e.createNewGuid()};r&&(o.meta=r);const n=JSON.stringify(o);return e.base64Encode(n)}static parseRequestState(e,r){if(!e)throw X(ig);if(!r)throw X(rs);try{const o=r.split(z.RESOURCE_DELIM),n=o[0],i=o.length>1?o.slice(1).join(z.RESOURCE_DELIM):z.EMPTY_STRING,a=e.base64Decode(n),s=JSON.parse(a);return{userRequestState:i||z.EMPTY_STRING,libraryState:s}}catch{throw X(rs)}}}/*! @azure/msal-common v14.5.0 2023-12-01 */const HP={SW:"sw",UHW:"uhw"};class ns{constructor(e,r){this.cryptoUtils=e,this.performanceClient=r}async generateCnf(e,r){this.performanceClient?.addQueueMeasurement(P.PopTokenGenerateCnf,e.correlationId);const o=await J(this.generateKid.bind(this),P.PopTokenGenerateCnf,r,this.performanceClient,e.correlationId)(e),n=this.cryptoUtils.base64Encode(JSON.stringify(o));return{kid:o.kid,reqCnfString:n,reqCnfHash:await this.cryptoUtils.hashString(n)}}async generateKid(e){return this.performanceClient?.addQueueMeasurement(P.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:HP.SW}}async signPopToken(e,r,o){return this.signPayload(e,r,o)}async signPayload(e,r,o,n){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:s,shrNonce:c,shrOptions:l}=o,d=(a?new Te(a):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Jt.nowSeconds(),m:i?.toUpperCase(),u:d?.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:d?.AbsolutePath,q:d?.QueryString?[[],d.QueryString]:void 0,client_claims:s||void 0,...n},r,l,o.correlationId)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class is{generateAppMetadataKey(){return is.generateAppMetadataCacheKey(this.environment,this.clientId)}static generateAppMetadataCacheKey(e,r){return[rg,e,r].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}static createAppMetadataEntity(e,r,o){const n=new is;return n.clientId=e,n.environment=r,o&&(n.familyId=o),n}static isAppMetadataEntity(e,r){return r?e.indexOf(rg)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1}}/*! @azure/msal-common v14.5.0 2023-12-01 */class UP{constructor(e,r){this.cache=e,this.hasChanged=r}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Li{constructor(e,r,o,n,i,a,s){this.clientId=e,this.cacheStorage=r,this.cryptoObj=o,this.logger=n,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}validateServerAuthorizationCodeResponse(e,r){if(!e.state||!r)throw e.state?X(Cd,"Cached State"):X(Cd,"Server State");let o,n;try{o=decodeURIComponent(e.state)}catch{throw X(rs,e.state)}try{n=decodeURIComponent(r)}catch{throw X(rs,e.state)}if(o!==n)throw X(q_);if(e.error||e.error_description||e.suberror)throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||""):new Xn(e.error||"",e.error_description,e.suberror)}validateTokenResponse(e,r){if(e.error||e.error_description||e.suberror){const o=`${e.error_codes} - [${e.timestamp}]: ${e.error_description} - Correlation ID: ${e.correlation_id} - Trace ID: ${e.trace_id}`,n=new Xn(e.error,o,e.suberror);if(r&&e.status&&e.status>=Zl.SERVER_ERROR_RANGE_START&&e.status<=Zl.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed. -${n}`);return}else if(r&&e.status&&e.status>=Zl.CLIENT_ERROR_RANGE_START&&e.status<=Zl.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token. -${n}`);return}throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error,e.error_description,e.suberror,e.timestamp||z.EMPTY_STRING,e.trace_id||z.EMPTY_STRING,e.correlation_id||z.EMPTY_STRING,e.claims||z.EMPTY_STRING):n}}async handleServerTokenResponse(e,r,o,n,i,a,s,c,l){this.performanceClient?.addQueueMeasurement(P.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=ea(e.id_token||z.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw X(H_);if(n.maxAge||n.maxAge===0){const p=u.auth_time;if(!p)throw X(xv);eS(p,n.maxAge)}}this.homeAccountIdentifier=Tt.generateHomeAccountId(e.client_info||z.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u);let d;i&&i.state&&(d=ao.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||n.sshKid||void 0;const f=this.generateCacheRecord(e,r,o,n,u,a,i);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new UP(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),s&&!c&&f.account){const p=f.account.generateAccountKey();if(!this.cacheStorage.getAccount(p,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Li.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,void 0,l)}await this.cacheStorage.saveCacheRecord(f,n.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Li.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,e,l)}generateCacheRecord(e,r,o,n,i,a,s){const c=r.getPreferredCache();if(!c)throw X(Iv);const l=gS(i);let u,d;e.id_token&&i&&(u=If(this.homeAccountIdentifier,c,e.id_token,this.clientId,l||""),d=Hv(this.cacheStorage,r,this.homeAccountIdentifier,i,this.cryptoObj.base64Decode,e.client_info,l,s,void 0,this.logger));let f=null;if(e.access_token){const g=e.scope?pt.fromString(e.scope):new pt(n.scopes||[]),y=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,b=o+y,k=b+v,S=m&&m>0?o+m:void 0;f=Af(this.homeAccountIdentifier,c,e.access_token,this.clientId,l||r.tenant,g.printScopes(),b,k,this.cryptoObj.base64Decode,S,e.token_type,a,e.key_id,n.claims,n.requestedClaimsHash)}let h=null;e.refresh_token&&(h=tS(this.homeAccountIdentifier,c,e.refresh_token,this.clientId,e.foci,a));let p=null;return e.foci&&(p=is.createAppMetadataEntity(this.clientId,c,e.foci)),new La(d,u,f,h,p)}static async generateAuthenticationResult(e,r,o,n,i,a,s,c,l){let u=z.EMPTY_STRING,d=[],f=null,h,p,g=z.EMPTY_STRING;if(o.accessToken){if(o.accessToken.tokenType===Be.POP){const b=new ns(e),{secret:k,keyId:S}=o.accessToken;if(!S)throw X(Av);u=await b.signPopToken(k,S,i)}else u=o.accessToken.secret;d=pt.fromString(o.accessToken.target).asArray(),f=new Date(Number(o.accessToken.expiresOn)*1e3),h=new Date(Number(o.accessToken.extendedExpiresOn)*1e3),o.accessToken.refreshOn&&(p=new Date(Number(o.accessToken.refreshOn)*1e3))}o.appMetadata&&(g=o.appMetadata.familyId===gc?gc:"");const y=a?.oid||a?.sub||"",v=a?.tid||"";c?.spa_accountid&&o.account&&(o.account.nativeAccountId=c?.spa_accountid);const m=o.account?Fv(o.account.getAccountInfo(),void 0,a):null;return{authority:r.canonicalAuthority,uniqueId:y,tenantId:v,scopes:d,account:m,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:u,fromCache:n,expiresOn:f,extExpiresOn:h,refreshOn:p,correlationId:i.correlationId,requestId:l||z.EMPTY_STRING,familyId:g,tokenType:o.accessToken?.tokenType||z.EMPTY_STRING,state:s?s.userRequestState:z.EMPTY_STRING,cloudGraphHostName:o.account?.cloudGraphHostName||z.EMPTY_STRING,msGraphHost:o.account?.msGraphHost||z.EMPTY_STRING,code:c?.spa_code,fromNativeBroker:!1}}}function Hv(t,e,r,o,n,i,a,s,c,l){l?.verbose("setCachedAccount called");const d=t.getAccountKeys().find(g=>g.startsWith(r));let f=null;d&&(f=t.getAccount(d,l));const h=f||Tt.createAccount({homeAccountId:r,idTokenClaims:o,clientInfo:i,cloudGraphHostName:s?.cloud_graph_host_name,msGraphHost:s?.msgraph_host,nativeAccountId:c},e,n),p=h.tenantProfiles||[];if(a&&!p.find(g=>g.tenantId===a)){const g=jv(r,o);p.push(g)}return h.tenantProfiles=p,h}/*! @azure/msal-common v14.5.0 2023-12-01 */class SS extends qv{constructor(e,r){super(e,r),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async getAuthCodeUrl(e){this.performanceClient?.addQueueMeasurement(P.GetAuthCodeUrl,e.correlationId);const r=await J(this.createAuthCodeUrlQueryString.bind(this),P.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return Te.appendQueryString(this.authority.authorizationEndpoint,r)}async acquireToken(e,r){if(this.performanceClient?.addQueueMeasurement(P.AuthClientAcquireToken,e.correlationId),!e.code)throw X(K_);const o=Jt.nowSeconds(),n=await J(this.executeTokenRequest.bind(this),P.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=n.headers?.[xo.X_MS_REQUEST_ID],a=new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(n.body),J(a.handleServerTokenResponse.bind(a),P.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,o,e,r,void 0,void 0,void 0,i)}handleFragmentResponse(e,r){if(new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,r),!e.code)throw X(Y_);return e}getLogoutUri(e){if(!e)throw Ne(sS);const r=this.createLogoutUrlQueryString(e);return Te.appendQueryString(this.authority.endSessionEndpoint,r)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(P.AuthClientExecuteTokenRequest,r.correlationId);const o=this.createTokenQueryParameters(r),n=Te.appendQueryString(e.tokenEndpoint,o),i=await J(this.createTokenRequestBody.bind(this),P.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,r.correlationId)(r);let a;if(r.clientInfo)try{const l=xd(r.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${l.uid}${Ht.CLIENT_INFO_SEPARATOR}${l.utid}`,type:_r.HOME_ACCOUNT_ID}}catch(l){this.logger.verbose("Could not parse client info for CCS Header: "+l)}const s=this.createTokenRequestHeaders(a||r.ccsCredential),c={clientId:r.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return J(this.executePostToTokenEndpoint.bind(this),P.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,r.correlationId)(n,i,s,c,r.correlationId,P.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(P.AuthClientCreateTokenRequestBody,e.correlationId);const r=new bc;if(r.addClientId(e.tokenBodyParameters?.[os]||this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):di.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,this.oidcDefaultScopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!ug(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const i=this.config.clientCredentials.clientAssertion;r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)}if(r.addGrantType(z_.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme===Be.POP){const i=new ns(this.cryptoUtils,this.performanceClient),a=await J(i.generateCnf.bind(i),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfString)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Ne(Rf);const o=e.correlationId||this.config.cryptoInterface.createNewGuid();r.addCorrelationId(o),(!io.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const i=xd(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${i.uid}${Ht.CLIENT_INFO_SEPARATOR}${i.utid}`,type:_r.HOME_ACCOUNT_ID}}catch(i){this.logger.verbose("Could not parse client info for CCS Header: "+i)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case _r.HOME_ACCOUNT_ID:try{const i=Ea(n.credential);r.addCcsOid(i)}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case _r.UPN:r.addCcsUpn(n.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[_0])&&r.addExtraQueryParameters({[_0]:"1"}),r.createQueryString()}async createAuthCodeUrlQueryString(e){this.performanceClient?.addQueueMeasurement(P.AuthClientCreateQueryString,e.correlationId);const r=new bc;r.addClientId(e.extraQueryParameters?.[os]||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri);const n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(r.addCorrelationId(n),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),ug(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==Wt.SELECT_ACCOUNT)if(e.sid&&e.prompt===Wt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account);if(a){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(a);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===Wt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(i);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Be.POP)){const i=new ns(this.cryptoUtils),a=await J(i.generateCnf.bind(i),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfHash)}return r.createQueryString()}createLogoutUrlQueryString(e){const r=new bc;return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),r.createQueryString()}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}/*! @azure/msal-common v14.5.0 2023-12-01 */class dg extends qv{constructor(e,r){super(e,r)}async acquireToken(e){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireToken,e.correlationId);const r=Jt.nowSeconds(),o=await J(this.executeTokenRequest.bind(this),P.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),n=o.headers?.[xo.X_MS_REQUEST_ID],i=new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(o.body),J(i.handleServerTokenResponse.bind(i),P.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,void 0,void 0,!0,e.forceCache,n)}async acquireTokenByRefreshToken(e){if(!e)throw Ne(aS);if(this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw X(Ev);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const n=o instanceof Ao&&o.errorCode===Ad,i=o instanceof Xn&&o.errorCode===u0.INVALID_GRANT_ERROR&&o.subError===u0.CLIENT_MISMATCH_ERROR;if(n||i)return J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,r){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const o=ta(this.cacheManager.getRefreshToken.bind(this.cacheManager),P.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,r,void 0,this.performanceClient,e.correlationId);if(!o)throw _S(Ad);const n={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||Be.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:_r.HOME_ACCOUNT_ID}};return J(this.acquireToken.bind(this),P.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(n)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientExecuteTokenRequest,e.correlationId);const o=this.createTokenQueryParameters(e),n=Te.appendQueryString(r.tokenEndpoint,o),i=await J(this.createTokenRequestBody.bind(this),P.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),s={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return J(this.executePostToTokenEndpoint.bind(this),P.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(n,i,a,s,e.correlationId,P.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const r=e.correlationId,o=new bc;if(o.addClientId(e.tokenBodyParameters?.[os]||this.config.authOptions.clientId),e.redirectUri&&o.addRedirectUri(e.redirectUri),o.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),o.addGrantType(z_.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&!ug(this.config)&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(r),o.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;o.addClientAssertion(n.assertion),o.addClientAssertionType(n.assertionType)}if(e.authenticationScheme===Be.POP){const n=new ns(this.cryptoUtils,this.performanceClient),i=await J(n.generateCnf.bind(n),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o.addPopToken(i.reqCnfString)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)o.addSshJwk(e.sshJwk);else throw Ne(Rf);if((!io.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case _r.HOME_ACCOUNT_ID:try{const n=Ea(e.ccsCredential.credential);o.addCcsOid(n)}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case _r.UPN:o.addCcsUpn(e.ccsCredential.credential);break}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),o.createQueryString()}}/*! @azure/msal-common v14.5.0 2023-12-01 */class $P extends qv{constructor(e,r){super(e,r)}async acquireToken(e){try{const[r,o]=await this.acquireCachedToken(e);return o===xn.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new dg(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof Ef&&r.errorCode===zn)return new dg(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(P.SilentFlowClientAcquireCachedToken,e.correlationId);let r=xn.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!io.isEmptyObj(e.claims))throw this.setCacheOutcome(xn.FORCE_REFRESH_OR_CLAIMS,e.correlationId),X(zn);if(!e.account)throw X(Ev);const o=e.authority||this.authority.getPreferredCache(),n=this.cacheManager.readCacheRecord(e.account,e,o,this.performanceClient,e.correlationId);if(n.accessToken){if(Jt.wasClockTurnedBack(n.accessToken.cachedAt)||Jt.isTokenExpired(n.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(xn.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),X(zn);n.accessToken.refreshOn&&Jt.isTokenExpired(n.accessToken.refreshOn,0)&&(r=xn.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(xn.NO_CACHED_ACCESS_TOKEN,e.correlationId),X(zn);return this.setCacheOutcome(r,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await J(this.generateResultFromCacheRecord.bind(this),P.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(n,e),r]}setCacheOutcome(e,r){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},r),e!==xn.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,r){this.performanceClient?.addQueueMeasurement(P.SilentFlowClientGenerateResultFromCacheRecord,r.correlationId);let o;if(e.idToken&&(o=ea(e.idToken.secret,this.config.cryptoInterface.base64Decode)),r.maxAge||r.maxAge===0){const n=o?.auth_time;if(!n)throw X(xv);eS(n,r.maxAge)}return Li.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,o)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class T0{static isThrottlingEntity(e,r){let o=!1;e&&(o=e.indexOf(vc.THROTTLING_PREFIX)===0);let n=!0;return r&&(n=r.hasOwnProperty("throttleTime")),o&&n}}/*! @azure/msal-common v14.5.0 2023-12-01 */const KP={sendGetRequestAsync:()=>Promise.reject(X(be)),sendPostRequestAsync:()=>Promise.reject(X(be))};/*! @azure/msal-common v14.5.0 2023-12-01 */const CS="missing_kid_error",TS="missing_alg_error";/*! @azure/msal-common v14.5.0 2023-12-01 */const WP={[CS]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[TS]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class Uv extends Ve{constructor(e,r){super(e,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,Uv.prototype)}}function x0(t){return new Uv(t,WP[t])}/*! @azure/msal-common v14.5.0 2023-12-01 */class $v{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw x0(CS);if(!e.alg)throw x0(TS);const r=new $v({typ:e.typ||uR.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Rd{constructor(e,r){this.cacheOutcome=xn.NOT_APPLICABLE,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||z.EMPTY_STRING,this.wrapperVer=e.wrapperVer||z.EMPTY_STRING,this.telemetryCacheKey=Nt.CACHE_KEY+Ht.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Nt.VALUE_SEPARATOR}${this.cacheOutcome}`,r=[this.wrapperSKU,this.wrapperVer].join(Nt.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),n=[e,o].join(Nt.VALUE_SEPARATOR);return[Nt.SCHEMA_VERSION,n,r].join(Nt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),r=Rd.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*r).join(Nt.VALUE_SEPARATOR),n=e.errors.slice(0,r).join(Nt.VALUE_SEPARATOR),i=e.errors.length,a=r=Nt.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Ve?e.subError?r.errors.push(e.subError):e.errorCode?r.errors.push(e.errorCode):r.errors.push(e.toString()):r.errors.push(e.toString()):r.errors.push(Nt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),r=Rd.maxErrorsToSend(e),o=e.errors.length;if(r===o)this.cacheManager.removeItem(this.telemetryCacheKey);else{const n={failedRequests:e.failedRequests.slice(r*2),errors:e.errors.slice(r),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}}static maxErrorsToSend(e){let r,o=0,n=0;const i=e.errors.length;for(r=0;rnull,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:LR.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:r||""},measurement:new E0}}startPerformanceMeasurement(){return new E0}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const Kv="pkce_not_created",xS="crypto_nonexistent",Bf="empty_navigate_uri",ES="hash_empty_error",Wv="no_state_in_hash",IS="hash_does_not_contain_known_properties",AS="unable_to_parse_state",RS="state_interaction_type_mismatch",PS="interaction_in_progress",BS="popup_window_error",NS="empty_window_error",qi="user_cancelled",GP="monitor_popup_timeout",zS="monitor_window_timeout",MS="redirect_in_iframe",OS="block_iframe_reload",DS="block_nested_popups",XP="iframe_closed_prematurely",Nf="silent_logout_unsupported",jS="no_account_error",FS="silent_prompt_value_error",LS="no_token_request_cache_error",qS="unable_to_parse_token_request_cache_error",Vv="no_cached_authority_error",YP="auth_request_not_set_error",QP="invalid_cache_type",HS="non_browser_environment",ka="database_not_open",Pd="no_network_connectivity",US="post_request_failed",$S="get_request_failed",fg="failed_to_parse_response",Gr="unable_to_load_token",Gv="crypto_key_not_found",KS="auth_code_required",WS="auth_code_or_nativeAccountId_required",VS="spa_code_and_nativeAccountId_present",Xv="database_unavailable",GS="unable_to_acquire_token_from_native_platform",XS="native_handshake_timeout",YS="native_extension_not_installed",Al="native_connection_not_established",QS="uninitialized_public_client_application",ZS="native_prompt_not_supported",JS="invalid_base64_string";/*! @azure/msal-browser v3.6.0 2023-12-01 */const jo="For more visit: aka.ms/msaljs/browser-errors",ZP={[Kv]:"The PKCE code challenge and verifier could not be generated.",[xS]:"The crypto object or function is not available.",[Bf]:"Navigation URI is empty. Please check stack trace for more info.",[ES]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${jo}`,[Wv]:"Hash does not contain state. Please verify that the request originated from msal.",[IS]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${jo}`,[AS]:"Unable to parse state. Please verify that the request originated from msal.",[RS]:"Hash contains state but the interaction type does not match the caller.",[PS]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${jo}`,[BS]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[NS]:"window.open returned null or undefined window object.",[qi]:"User cancelled the flow.",[GP]:`Token acquisition in popup failed due to timeout. ${jo}`,[zS]:`Token acquisition in iframe failed due to timeout. ${jo}`,[MS]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[OS]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${jo}`,[DS]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[XP]:"The iframe being monitored was closed prematurely.",[Nf]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[jS]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[FS]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[LS]:"No token request found in cache.",[qS]:"The cached token request could not be parsed.",[Vv]:"No cached authority found.",[YP]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[QP]:"Invalid cache type",[HS]:"Login and token requests are not supported in non-browser environments.",[ka]:"Database is not open!",[Pd]:"No network connectivity. Check your internet connection.",[US]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[$S]:"Network request failed. Please check the network trace to determine root cause.",[fg]:"Failed to parse network response. Check network trace.",[Gr]:"Error loading token to cache.",[Gv]:"Cryptographic Key or Keypair not found in browser storage.",[KS]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[WS]:"An authorization code or nativeAccountId must be provided to this flow.",[VS]:"Request cannot contain both spa code and native account id.",[Xv]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[GS]:`Unable to acquire token from native platform. ${jo}`,[XS]:"Timed out while attempting to establish connection to browser extension",[YS]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[Al]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${jo}`,[QS]:`You must call and await the initialize function before attempting to call any other MSAL API. ${jo}`,[ZS]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[JS]:"Invalid base64 encoded string."};class Rl extends Ve{constructor(e){super(e,ZP[e]),Object.setPrototypeOf(this,Rl.prototype),this.name="BrowserAuthError"}}function re(t){return new Rl(t)}/*! @azure/msal-browser v3.6.0 2023-12-01 */const eo={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ic={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},ki={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},It={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},I0={GET:"GET",POST:"POST"},Ie={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},_n={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},ru={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Le={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var oe;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(oe||(oe={}));const rt={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},A0={scopes:xl},eC="jwk",JP={React:"@azure/msal-react",Angular:"@azure/msal-angular"},hg="msal.db",eB=1,tB=`${hg}.keys`,zr={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5};/*! @azure/msal-browser v3.6.0 2023-12-01 */function rB(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function oB(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Yv(){return window.parent!==window}function nB(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${eo.POPUP_NAME_PREFIX}.`)===0}function Xo(){return window.location.href.split("?")[0].split("#")[0]}function iB(){const e=new Te(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function Bh(){if(Te.hashContainsKnownProperties(window.location.hash)&&Yv())throw re(OS)}function aB(t,e){const r=Yv();if(t===oe.Redirect&&r&&!e)throw re(MS)}function sB(){if(nB())throw re(DS)}function cB(t){if(!t)throw re(HS)}function R0(t){if(!t)throw re(QS)}function tC(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}const lB=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),uB=function(t){return"/"+t},P0={},Ts=function(e,r,o){let n=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link");n=Promise.all(r.map(a=>{if(a=uB(a),a in P0)return;P0[a]=!0;const s=a.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${c}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":lB,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! @azure/msal-browser v3.6.0 2023-12-01 */class Bd{navigateInternal(e,r){return Bd.defaultNavigateWindow(e,r)}navigateExternal(e,r){return Bd.defaultNavigateWindow(e,r)}static defaultNavigateWindow(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(o=>{setTimeout(()=>{o(!0)},r.timeout)})}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class dB{async sendGetRequestAsync(e,r){let o;try{o=await fetch(e,{method:I0.GET,headers:this.getFetchHeaders(r)})}catch{throw window.navigator.onLine?re($S):re(Pd)}try{return{headers:this.getHeaderDict(o.headers),body:await o.json(),status:o.status}}catch{throw re(fg)}}async sendPostRequestAsync(e,r){const o=r&&r.body||z.EMPTY_STRING;let n;try{n=await fetch(e,{method:I0.POST,headers:this.getFetchHeaders(r),body:o})}catch{throw window.navigator.onLine?re(US):re(Pd)}try{return{headers:this.getHeaderDict(n.headers),body:await n.json(),status:n.status}}catch{throw re(fg)}}getFetchHeaders(e){const r=new Headers;if(!(e&&e.headers))return r;const o=e.headers;return Object.keys(o).forEach(n=>{r.append(n,o[n])}),r}getHeaderDict(e){const r={};return e.forEach((o,n)=>{r[n]=o}),r}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const fB=6e4,pg=1e4,hB=3e4,pB=2e3;function gB({auth:t,cache:e,system:r,telemetry:o},n){const i={clientId:z.EMPTY_STRING,authority:`${z.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:z.EMPTY_STRING,authorityMetadata:z.EMPTY_STRING,redirectUri:z.EMPTY_STRING,postLogoutRedirectUri:z.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Jo.AAD,OIDCOptions:{serverResponseType:El.FRAGMENT,defaultScopes:[z.OPENID_SCOPE,z.PROFILE_SCOPE,z.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Pv.None,tenant:z.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},a={cacheLocation:It.SessionStorage,temporaryCacheLocation:It.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===It.LocalStorage),claimsBasedCachingEnabled:!1},s={loggerCallback:()=>{},logLevel:ht.Info,piiLoggingEnabled:!1},l={...{...wS,loggerOptions:s,networkClient:n?new dB:KP,navigationClient:new Bd,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||fB,iframeHashTimeout:r?.loadFrameTimeout||pg,navigateFrameWait:0,redirectNavigationTimeout:hB,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||pB,pollIntervalMilliseconds:eo.DEFAULT_POLL_INTERVAL_MS},...r,loggerOptions:r?.loggerOptions||s},u={application:{appName:z.EMPTY_STRING,appVersion:z.EMPTY_STRING},client:new VP};if(t?.protocolMode!==Jo.OIDC&&t?.OIDCOptions&&new Il(l.loggerOptions).warning(JSON.stringify(Ne(fS))),t?.protocolMode&&t.protocolMode!==Jo.AAD&&l?.allowNativeBroker)throw Ne(hS);return{auth:{...i,...t,OIDCOptions:{...i.OIDCOptions,...t?.OIDCOptions}},cache:{...a,...e},system:l,telemetry:{...u,...o}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const mB="@azure/msal-browser",Qv="3.6.0";/*! @azure/msal-browser v3.6.0 2023-12-01 */class vB{constructor(e){this.browserEnvironment=typeof window<"u",this.config=gB(e,this.browserEnvironment),this.logger=new Il(this.config.system.loggerOptions,mB,Qv),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class Hi extends vB{getModuleName(){return Hi.MODULE_NAME}getId(){return Hi.ID}async initialize(){return this.available=typeof window<"u",this.available}}Hi.MODULE_NAME="";Hi.ID="StandardOperatingContext";async function bB(t){const e=new Hi(t);return await e.initialize(),(await Ts(()=>Promise.resolve().then(()=>iN),void 0)).StandardController.createController(e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */function Nh(t){return encodeURIComponent(Zv(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Nd(t){return rC(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Zv(t){return rC(new TextEncoder().encode(t))}function rC(t){const e=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */function Ro(t){return new TextDecoder().decode(yB(t))}function yB(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw re(JS)}const r=atob(e);return Uint8Array.from(r,o=>o.codePointAt(0)||0)}/*! @azure/msal-browser v3.6.0 2023-12-01 */const wB="RSASSA-PKCS1-v1_5",oC="SHA-256",kB=2048,_B=new Uint8Array([1,0,1]),Jv={name:wB,hash:oC,modulusLength:kB,publicExponent:_B};function SB(t){if("crypto"in window)t.verbose("BrowserCrypto: modern crypto interface available");else throw t.error("BrowserCrypto: crypto interface is unavailable"),re(xS)}async function nC(t,e,r){e?.addQueueMeasurement(P.Sha256Digest,r);const n=new TextEncoder().encode(t);return window.crypto.subtle.digest(oC,n)}function CB(t){return window.crypto.getRandomValues(t)}function Yn(){return window.crypto.randomUUID()}async function TB(t,e){return window.crypto.subtle.generateKey(Jv,t,e)}async function zh(t){return window.crypto.subtle.exportKey(eC,t)}async function xB(t,e,r){return window.crypto.subtle.importKey(eC,t,Jv,e,r)}async function EB(t,e){return window.crypto.subtle.sign(Jv,t,e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class IB{constructor(){this.dbName=hg,this.version=eB,this.tableName=tB,this.dbOpen=!1}async open(){return new Promise((e,r)=>{const o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",n=>{n.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",n=>{const i=n;this.db=i.target.result,this.dbOpen=!0,e()}),o.addEventListener("error",()=>r(re(Xv)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",s=>{const c=s;this.closeConnection(),r(c.target.result)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async setItem(e,r){return await this.validateDbIsOpen(),new Promise((o,n)=>{if(!this.db)return n(re(ka));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(r,e);s.addEventListener("success",()=>{this.closeConnection(),o()}),s.addEventListener("error",c=>{this.closeConnection(),n(c)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,r)=>{if(!this.db)return r(re(ka));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",a=>{const s=a;this.closeConnection(),e(s.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",s=>{const c=s;this.closeConnection(),r(c.target.result===1)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,r)=>{const o=window.indexedDB.deleteDatabase(hg);o.addEventListener("success",()=>e(!0)),o.addEventListener("blocked",()=>e(!0)),o.addEventListener("error",()=>r(!1))})}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class gg{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,r){this.cache.set(e,r)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((r,o)=>{e.push(o)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class B0{constructor(e,r){this.inMemoryCache=new gg,this.indexedDBCache=new IB,this.logger=e,this.storeName=r}handleDatabaseAccessError(e){if(e instanceof Rl&&e.errorCode===Xv)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(o){this.handleDatabaseAccessError(o)}return r}async setItem(e,r){this.inMemoryCache.setItem(e,r);try{await this.indexedDBCache.setItem(e,r)}catch(o){this.handleDatabaseAccessError(o)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(r){this.handleDatabaseAccessError(r)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(r){this.handleDatabaseAccessError(r)}return e}async containsKey(e){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(o){this.handleDatabaseAccessError(o)}return r}clearInMemory(){this.logger.verbose(`Deleting in-memory keystore ${this.storeName}`),this.inMemoryCache.clear(),this.logger.verbose(`In-memory keystore ${this.storeName} deleted`)}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const N0={asymmetricKeys:"asymmetricKeys",symmetricKeys:"symmetricKeys"};class AB{constructor(e){this.logger=e,this.asymmetricKeys=new B0(this.logger,N0.asymmetricKeys),this.symmetricKeys=new B0(this.logger,N0.symmetricKeys)}async clear(){this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory();try{return await this.asymmetricKeys.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class as{constructor(e,r){this.logger=e,SB(e),this.cache=new AB(this.logger),this.performanceClient=r}createNewGuid(){return Yn()}base64Encode(e){return Zv(e)}base64Decode(e){return Ro(e)}async getPublicKeyThumbprint(e){const r=this.performanceClient?.startMeasurement(P.CryptoOptsGetPublicKeyThumbprint,e.correlationId),o=await TB(as.EXTRACTABLE,as.POP_KEY_USAGES),n=await zh(o.publicKey),i={e:n.e,kty:n.kty,n:n.n},a=z0(i),s=await this.hashString(a),c=await zh(o.privateKey),l=await xB(c,!1,["sign"]);return await this.cache.asymmetricKeys.setItem(s,{privateKey:l,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),r&&r.end({success:!0}),s}async removeTokenBindingKey(e){return await this.cache.asymmetricKeys.removeItem(e),!await this.cache.asymmetricKeys.containsKey(e)}async clearKeystore(){return this.cache.clear()}async signJwt(e,r,o,n){const i=this.performanceClient?.startMeasurement(P.CryptoOptsSignJwt,n),a=await this.cache.asymmetricKeys.getItem(r);if(!a)throw re(Gv);const s=await zh(a.publicKey),c=z0(s),l=Nh(JSON.stringify({kid:r})),u=$v.getShrHeaderString({...o?.header,alg:s.alg,kid:l}),d=Nh(u);e.cnf={jwk:JSON.parse(c)};const f=Nh(JSON.stringify(e)),h=`${d}.${f}`,g=new TextEncoder().encode(h),y=await EB(a.privateKey,g),v=Nd(new Uint8Array(y)),m=`${h}.${v}`;return i&&i.end({success:!0}),m}async hashString(e){const r=await nC(e),o=new Uint8Array(r);return Nd(o)}}as.POP_KEY_USAGES=["sign","verify"];as.EXTRACTABLE=!0;function z0(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v3.6.0 2023-12-01 */const iC="storage_not_supported",Et="stubbed_public_client_application_called",aC="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.6.0 2023-12-01 */const RB={[iC]:"Given storage configuration option was not supported.",[Et]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[aC]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class eb extends Ve{constructor(e,r){super(e,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,eb.prototype)}}function wt(t){return new eb(t,RB[t])}/*! @azure/msal-browser v3.6.0 2023-12-01 */class M0{constructor(e){this.validateWindowStorage(e),this.windowStorage=window[e]}validateWindowStorage(e){if(e!==It.LocalStorage&&e!==It.SessionStorage||!window[e])throw wt(iC)}getItem(e){return this.windowStorage.getItem(e)}setItem(e,r){this.windowStorage.setItem(e,r)}removeItem(e){this.windowStorage.removeItem(e)}getKeys(){return Object.keys(this.windowStorage)}containsKey(e){return this.windowStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */function sC(t,e){if(!e)return null;try{return ao.parseRequestState(t,e).libraryState.meta}catch{throw X(rs)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class mg extends Wo{constructor(e,r,o,n,i){super(e,o,n,i),this.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,this.cacheConfig=r,this.logger=n,this.internalStorage=new gg,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps())}setupBrowserStorage(e){switch(e){case It.LocalStorage:case It.SessionStorage:try{return new M0(e)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=It.MemoryStorage,new gg}setupTemporaryCacheStorage(e,r){switch(r){case It.LocalStorage:case It.SessionStorage:try{return new M0(e||It.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case It.MemoryStorage:default:return this.internalStorage}}migrateCacheEntries(){const e=`${z.CACHE_PREFIX}.${Bt.ID_TOKEN}`,r=`${z.CACHE_PREFIX}.${Bt.CLIENT_INFO}`,o=`${z.CACHE_PREFIX}.${Bt.ERROR}`,n=`${z.CACHE_PREFIX}.${Bt.ERROR_DESC}`,i=this.browserStorage.getItem(e),a=this.browserStorage.getItem(r),s=this.browserStorage.getItem(o),c=this.browserStorage.getItem(n),l=[i,a,s,c];[Bt.ID_TOKEN,Bt.CLIENT_INFO,Bt.ERROR,Bt.ERROR_DESC].forEach((d,f)=>this.migrateCacheEntry(d,l[f]))}migrateCacheEntry(e,r){r&&this.setTemporaryCache(e,r,!0)}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(_n.ACCOUNT_KEYS),r=this.getItem(`${_n.TOKEN_KEYS}.${this.clientId}`);if(e&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(n=>{if(this.isCredentialKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case he.ID_TOKEN:if(g0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${n}`);break;case he.ACCESS_TOKEN:case he.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(p0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${n}`);break;case he.REFRESH_TOKEN:if(m0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${n}`);break}}}if(this.isAccountKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);a&&Tt.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${n} found, saving key to account key map`),this.addAccountKeyToMap(n))}}})}validateAndParseJson(e){try{const r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,r){this.browserStorage.setItem(e,r)}getAccount(e,r){this.logger.trace("BrowserCacheManager.getAccount called");const o=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,o,r)}getCachedAccountEntity(e){const r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e),null;const o=this.validateAndParseJson(r);return!o||!Tt.isAccountEntity(o)?(this.removeAccountKeyFromMap(e),null):Wo.toObject(new Tt,o)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const r=e.generateAccountKey();this.setItem(r,JSON.stringify(e)),this.addAccountKeyToMap(r)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(_n.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(_n.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);o>-1?(r.splice(o,1),this.setItem(_n.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,he.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,he.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,he.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${_n.TOKEN_KEYS}.${this.clientId}`);if(e){const r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,r){this.logger.trace("BrowserCacheManager addTokenKey called");const o=this.getTokenKeys();switch(r){case he.ID_TOKEN:o.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(e));break;case he.ACCESS_TOKEN:o.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(e));break;case he.REFRESH_TOKEN:o.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(ag)}this.setItem(`${_n.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}removeTokenKey(e,r){this.logger.trace("BrowserCacheManager removeTokenKey called");const o=this.getTokenKeys();switch(r){case he.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const n=o.idToken.indexOf(e);n>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(n,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case he.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const i=o.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case he.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=o.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(ag)}this.setItem(`${_n.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}getIdTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ID_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!g0(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.ID_TOKEN)}getAccessTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ACCESS_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!p0(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.ACCESS_TOKEN)}getRefreshTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.REFRESH_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!m0(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.REFRESH_TOKEN)}getAppMetadata(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!is.isAppMetadataEntity(e,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Wo.toObject(new is,o))}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=e.generateAppMetadataKey();this.setItem(r,JSON.stringify(e))}getServerTelemetry(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!RR(e,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o)}setServerTelemetry(e,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r))}getAuthorityMetadata(e){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return o&&lg.isAuthorityMetadataEntity(e,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Wo.toObject(new lg,o)):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(r=>this.isAuthorityMetadata(r))}setWrapperMetadata(e,r){this.internalStorage.setItem(ru.WRAPPER_SKU,e),this.internalStorage.setItem(ru.WRAPPER_VER,r)}getWrapperMetadata(){const e=this.internalStorage.getItem(ru.WRAPPER_SKU)||z.EMPTY_STRING,r=this.internalStorage.getItem(ru.WRAPPER_VER)||z.EMPTY_STRING;return[e,r]}setAuthorityMetadata(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))}getActiveAccount(){const e=this.generateCacheKey(Bt.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(e);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const n=this.generateCacheKey(Bt.ACTIVE_ACCOUNT),i=this.getItem(n);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:i});return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const r=this.generateCacheKey(Bt.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Bt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(r,JSON.stringify(n)),this.browserStorage.setItem(o,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)}getThrottlingCache(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!T0.isThrottlingEntity(e,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Wo.toObject(new T0,o))}setThrottlingCache(e,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r))}getTemporaryCache(e,r){const o=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const n=this.temporaryCacheStorage.getItem(o);if(!n){if(this.cacheConfig.cacheLocation===It.LocalStorage){const i=this.browserStorage.getItem(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),n}setTemporaryCache(e,r,o){const n=o?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(n,r))}removeItem(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))}containsKey(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)}getKeys(){return[...this.browserStorage.getKeys(),...this.temporaryCacheStorage.getKeys()]}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.getKeys().forEach(e=>{(this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e))&&(e.indexOf(z.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e){e.addQueueMeasurement(P.ClearTokensAndKeysWithClaims);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(n=>{const i=this.getAccessTokenCredential(n);i?.requestedClaimsHash&&n.includes(i.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(n))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}setItemCookie(e,r,o){let n=`${encodeURIComponent(e)}=${encodeURIComponent(r)};path=/;SameSite=Lax;`;if(o){const i=this.getCookieExpirationTime(o);n+=`expires=${i};`}this.cacheConfig.secureCookies&&(n+="Secure;"),document.cookie=n}getItemCookie(e){const r=`${encodeURIComponent(e)}=`,o=document.cookie.split(";");for(let n=0;n{for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(e)===0){const n=o.split("=")[0];this.clearItemCookie(n)}})}clearItemCookie(e){this.setItemCookie(e,z.EMPTY_STRING,-1)}getCookieExpirationTime(e){const r=new Date;return new Date(r.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}getCache(){return this.browserStorage}setCache(){}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):io.startsWith(e,z.CACHE_PREFIX)||io.startsWith(e,Bt.ADAL_ID_TOKEN)?e:`${z.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.AUTHORITY}.${r}`)}generateNonceKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.NONCE_IDTOKEN}.${r}`)}generateStateKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.REQUEST_STATE}.${r}`)}getCachedAuthority(e){const r=this.generateStateKey(e),o=this.getTemporaryCache(r);if(!o)return null;const n=this.generateAuthorityKey(o);return this.getTemporaryCache(n)}updateCacheEntries(e,r,o,n,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const s=this.generateNonceKey(e);this.setTemporaryCache(s,r,!1);const c=this.generateAuthorityKey(e);if(this.setTemporaryCache(c,o,!1),i){const l={credential:i.homeAccountId,type:_r.HOME_ACCOUNT_ID};this.setTemporaryCache(Ie.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(n){const l={credential:n,type:_r.UPN};this.setTemporaryCache(Ie.CCS_CREDENTIAL,JSON.stringify(l),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.getKeys().forEach(r=>{r.indexOf(e)!==-1&&this.removeItem(r)}),this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(Ie.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ie.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ie.URL_HASH)),this.removeItem(this.generateCacheKey(Ie.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ie.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ie.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const r=this.generateStateKey(e),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o||z.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(r=>{if(r.indexOf(Ie.REQUEST_STATE)===-1)return;const o=this.temporaryCacheStorage.getItem(r);if(!o)return;const n=sC(this.cryptoImpl,o);n&&n.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const r=Zv(JSON.stringify(e));this.setTemporaryCache(Ie.REQUEST_PARAMS,r,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const r=this.getTemporaryCache(Ie.REQUEST_PARAMS,!0);if(!r)throw re(LS);let o;try{o=JSON.parse(Ro(r))}catch(n){throw this.logger.errorPii(`Attempted to parse: ${r}`),this.logger.error(`Parsing cached token request threw with error: ${n}`),re(qS)}if(this.removeItem(this.generateCacheKey(Ie.REQUEST_PARAMS)),!o.authority){const n=this.generateAuthorityKey(e),i=this.getTemporaryCache(n);if(!i)throw re(Vv);o.authority=i}return o}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ie.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const r=this.getInteractionInProgress();return e?r===this.clientId:!!r}getInteractionInProgress(){const e=`${z.CACHE_PREFIX}.${Ie.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const r=`${z.CACHE_PREFIX}.${Ie.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw re(PS);this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)}getLegacyLoginHint(){const e=this.getTemporaryCache(Bt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Bt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const r=this.getTemporaryCache(Bt.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(Bt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const o=r||e;if(o){const n=ea(o,Ro);if(n.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),n.preferred_username;if(n.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),n.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,r){const o=oc(r);if(e!==o){const n=this.getItem(e);if(n)return this.removeItem(e),this.setItem(o,n),this.logger.verbose(`Updated an outdated ${r.credentialType} cache key`),o;this.logger.error(`Attempted to update an outdated ${r.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}getRedirectRequestContext(){return this.getTemporaryCache(Ie.REDIRECT_CONTEXT,!0)}setRedirectRequestContext(e){this.setTemporaryCache(Ie.REDIRECT_CONTEXT,e,!0)}async hydrateCache(e,r){const o=If(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId);let n;r.claims&&(n=await this.cryptoImpl.hashString(r.claims));const i=Af(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?.getTime()||0,e.extExpiresOn?.getTime()||0,Ro,void 0,e.tokenType,void 0,r.sshKid,r.claims,n),a=new La(void 0,o,i);return this.saveCacheRecord(a)}}const PB=(t,e)=>{const r={cacheLocation:It.MemoryStorage,temporaryCacheLocation:It.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new mg(t,r,Td,e)};/*! @azure/msal-browser v3.6.0 2023-12-01 */const ce={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.6.0 2023-12-01 */class BB{constructor(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(e){if(typeof window<"u"){const r=Yn();return this.eventCallbacks.set(r,e),this.logger.verbose(`Event callback registered with id: ${r}`),r}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(e,r,o,n){if(typeof window<"u"){const i={eventType:e,interactionType:r||null,payload:o||null,error:n||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${e}`),this.eventCallbacks.forEach((a,s)=>{this.logger.verbose(`Emitting event to callback ${s}: ${e}`),a.apply(null,[i])})}}handleAccountCacheChange(e){try{const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!Tt.isAccountEntity(o))return;const i=Wo.toObject(new Tt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ce.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ce.ACCOUNT_REMOVED,void 0,i))}catch{return}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class cC{constructor(e,r,o,n,i,a,s,c,l){this.config=e,this.browserStorage=r,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||Yn(),this.logger=n.clone(eo.MSAL_SKU,Qv,this.correlationId),this.performanceClient=s}async clearCacheOnLogout(e){if(e){Tt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(Tt.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}async initializeBaseRequest(e,r){this.performanceClient.addQueueMeasurement(P.InitializeBaseRequest,this.correlationId);const o=e.authority||this.config.auth.authority;r&&await this.validateRequestAuthority(o,r);const n=[...e&&e.scopes||[]],i={...e,correlationId:this.correlationId,authority:o,scopes:n};if(!i.authenticationScheme)i.authenticationScheme=Be.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Be.SSH){if(!e.sshJwk)throw Ne(Rf);if(!e.sshKid)throw Ne(dS)}this.logger.verbose(`Authentication Scheme set to "${i.authenticationScheme}" as configured in Auth request`)}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!io.isEmptyObj(e.claims)&&(i.requestedClaimsHash=await this.browserCrypto.hashString(e.claims)),i}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const r=e||this.config.auth.redirectUri||Xo();return Te.getAbsoluteUrl(r,Xo())}async validateRequestAuthority(e,r){if(!(await this.getDiscoveredAuthority(e)).isAlias(r.environment))throw Ne(pS)}initializeServerTelemetryManager(e,r){this.logger.verbose("initializeServerTelemetryManager called");const o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Rd(o,this.browserStorage)}async getDiscoveredAuthority(e){this.logger.verbose("getDiscoveredAuthority called");const r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata};return e?(this.logger.verbose("Creating discovered authority with request authority"),Fi.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r,this.logger)):(this.logger.verbose("Creating discovered authority with configured authority"),Fi.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r,this.logger))}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const NB=32;async function zB(t,e,r){t.addQueueMeasurement(P.GeneratePkceCodes,r);const o=ta(MB,P.GenerateCodeVerifier,e,t,r)(t,e,r),n=await J(OB,P.GenerateCodeChallengeFromVerifier,e,t,r)(o,t,e,r);return{verifier:o,challenge:n}}function MB(t,e,r){try{const o=new Uint8Array(NB);return ta(CB,P.GetRandomValues,e,t,r)(o),Nd(o)}catch{throw re(Kv)}}async function OB(t,e,r,o){e.addQueueMeasurement(P.GenerateCodeChallengeFromVerifier,o);try{const n=await J(nC,P.Sha256Digest,r,e,o)(t,e,o);return Nd(new Uint8Array(n))}catch{throw re(Kv)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class xs extends cC{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const r=await J(zB,P.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),o={...e,redirectUri:e.redirectUri,code:z.EMPTY_STRING,codeVerifier:r.verifier};return e.codeChallenge=r.challenge,e.codeChallengeMethod=z.S256_CODE_CHALLENGE_METHOD,o}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const r={correlationId:this.correlationId||Yn(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const o=this.getLogoutHintFromIdTokenClaims(e.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(e.postLogoutRedirectUri,Xo())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Xo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(Xo(),Xo())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r}getLogoutHintFromIdTokenClaims(e){const r=e.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e,r,o){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new SS(n,this.performanceClient)}async getClientConfiguration(e,r,o){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetClientConfiguration,this.correlationId);const n=await J(this.getDiscoveredAuthority.bind(this),P.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)(r,o),i=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:n,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:i.loggerCallback,piiLoggingEnabled:i.piiLoggingEnabled,logLevel:i.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:eo.MSAL_SKU,version:Qv,cpu:z.EMPTY_STRING,os:z.EMPTY_STRING},telemetry:this.config.telemetry}}async getDiscoveredAuthority(e,r){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},n=e||this.config.auth.authority,i=qt.generateAuthority(n,r||this.config.auth.azureCloudOptions);return J(Fi.createDiscoveredInstance.bind(Fi),P.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(i,this.config.system.networkClient,this.browserStorage,o,this.logger,this.performanceClient,this.correlationId)}async initializeAuthorizationRequest(e,r){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const o=this.getRedirectUri(e.redirectUri),n={interactionType:r},i=ao.setRequestState(this.browserCrypto,e&&e.state||z.EMPTY_STRING,n),s={...await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e),redirectUri:o,state:i,nonce:e.nonce||Yn(),responseMode:this.config.auth.OIDCOptions.serverResponseType},c=e.account||this.browserStorage.getActiveAccount();if(c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${c.homeAccountId}`,this.correlationId),s.account=c),!s.loginHint&&!c){const l=this.browserStorage.getLegacyLoginHint();l&&(s.loginHint=l)}return s}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const DB="ContentError",lC="user_switch";/*! @azure/msal-browser v3.6.0 2023-12-01 */const jB="USER_INTERACTION_REQUIRED",FB="USER_CANCEL",LB="NO_NETWORK",qB="PERSISTENT_ERROR",HB="DISABLED",UB="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.6.0 2023-12-01 */const $B=-2147186943,KB={[lC]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Vo extends Ve{constructor(e,r,o){super(e,r),Object.setPrototypeOf(this,Vo.prototype),this.name="NativeAuthError",this.ext=o}}function _a(t){if(t.ext&&t.ext.status&&(t.ext.status===qB||t.ext.status===HB)||t.ext&&t.ext.error&&t.ext.error===$B)return!0;switch(t.errorCode){case DB:return!0;default:return!1}}function vg(t,e,r){if(r&&r.status)switch(r.status){case UB:return _S(kS);case jB:return new Ao(t,e);case FB:return re(qi);case LB:return re(Pd)}return new Vo(t,KB[t]||e,r)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class uC extends xs{async acquireToken(e){this.performanceClient.addQueueMeasurement(P.SilentCacheClientAcquireToken,e.correlationId);const r=this.initializeServerTelemetryManager(Le.acquireTokenSilent_silentFlow),o=await this.createSilentFlowClient(r,e.authority,e.azureCloudOptions);this.logger.verbose("Silent auth client created");try{const i=(await J(o.acquireCachedToken.bind(o),P.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),i}catch(n){throw n instanceof Rl&&n.errorCode===Gv&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n}}logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(r?.account)}async createSilentFlowClient(e,r,o){const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new $P(n,this.performanceClient)}async initializeSilentRequest(e,r){this.performanceClient.addQueueMeasurement(P.InitializeSilentRequest,this.correlationId);const o=await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e,r);return{...e,...o,account:r,forceRefresh:e.forceRefresh||!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const Mh={BROKER_CLIENT_ID:"brk_client_id",BROKER_REDIRECT_URI:"brk_redirect_uri"};class qa extends cC{constructor(e,r,o,n,i,a,s,c,l,u,d,f){super(e,r,o,n,i,a,c,l,f),this.apiId=s,this.accountId=u,this.nativeMessageHandler=l,this.nativeStorageManager=d,this.silentCacheClient=new uC(e,this.nativeStorageManager,o,n,i,a,c,l,f)}async acquireToken(e){this.performanceClient.addQueueMeasurement(P.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(P.NativeInteractionClientAcquireToken,e.correlationId),o=Jt.nowSeconds(),n=await this.initializeNativeRequest(e);try{const c=await this.acquireTokensFromCache(this.accountId,n);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),c}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const i={method:ki.GetToken,request:n},a=await this.nativeMessageHandler.sendMessage(i),s=this.validateNativeResponse(a);return this.handleNativeResponse(s,n,o).then(c=>(r.end({success:!0,isNativeBroker:!0,requestId:c.requestId}),c)).catch(c=>{throw r.end({success:!1,errorCode:c.errorCode,subErrorCode:c.subError,isNativeBroker:!0}),c})}createSilentCacheRequest(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:pt.fromString(e.scope).asArray(),account:r,forceRefresh:!1}}async acquireTokensFromCache(e,r){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),X(ng);const o=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!o)throw X(ng);try{const n=this.createSilentCacheRequest(r,o),i=await this.silentCacheClient.acquireToken(n),a={...o,idTokenClaims:i?.idTokenClaims};return{...i,account:a}}catch(n){throw n}}async acquireTokenRedirect(e){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const r=await this.initializeNativeRequest(e),o={method:ki.GetToken,request:r};try{const a=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(a)}catch(a){if(a instanceof Vo&&_a(a))throw a}this.browserStorage.setTemporaryCache(Ie.NATIVE_REQUEST,JSON.stringify(r),!0);const n={apiId:Le.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);await this.navigationClient.navigateExternal(i,n)}async handleRedirectPromise(){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),null;const{prompt:r,...o}=e;r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ie.NATIVE_REQUEST));const n={method:ki.GetToken,request:o},i=Jt.nowSeconds();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const a=await this.nativeMessageHandler.sendMessage(n);this.validateNativeResponse(a);const s=this.handleNativeResponse(a,o,i);return this.browserStorage.setInteractionInProgress(!1),await s}catch(a){throw this.browserStorage.setInteractionInProgress(!1),a}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,r,o){if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==r.accountId)throw vg(lC);const n=await this.getDiscoveredAuthority(r.authority),i=ea(e.id_token,Ro),a=this.createHomeAccountIdentifier(e,i),s=Hv(this.browserStorage,n,a,i,Ro,e.client_info,i.tid,void 0,e.account.id,this.logger),c=await this.generateAuthenticationResult(e,r,i,s,n.canonicalAuthority,o);return this.cacheAccount(s),this.cacheNativeTokens(e,r,a,i,c.accessToken,c.tenantId,o),c}createHomeAccountIdentifier(e,r){return Tt.generateHomeAccountId(e.client_info||z.EMPTY_STRING,Zr.Default,this.logger,this.browserCrypto,r)}generateScopes(e,r){return e.scope?pt.fromString(e.scope):pt.fromString(r.scope)}async generatePopAccessToken(e,r){if(r.tokenType===Be.POP){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const o=new ns(this.browserCrypto),n={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce};if(!r.keyId)throw X(Av);return o.signPopToken(e.access_token,r.keyId,n)}else return e.access_token}async generateAuthenticationResult(e,r,o,n,i,a){const s=this.addTelemetryFromNativeResponse(e),c=e.scope?pt.fromString(e.scope):pt.fromString(r.scope),l=e.account.properties||{},u=l.UID||o.oid||o.sub||z.EMPTY_STRING,d=l.TenantId||o.tid||z.EMPTY_STRING,f=Fv(n.getAccountInfo(),void 0,o),h=await this.generatePopAccessToken(e,r),p=r.tokenType===Be.POP?Be.POP:Be.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:c.asArray(),account:f,idToken:e.id_token,idTokenClaims:o,accessToken:h,fromCache:s?this.isResponseFromCache(s):!1,expiresOn:new Date(Number(a+e.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(r=>{this.logger.error(`Error occurred while removing account context from browser storage. ${r}`)})}cacheNativeTokens(e,r,o,n,i,a,s){const c=If(o,r.authority,e.id_token||"",r.clientId,n.tid||""),l=r.tokenType===Be.POP?z.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=s+l,d=this.generateScopes(e,r),f=Af(o,r.authority,i,r.clientId,n.tid||a,d.printScopes(),u,0,Ro),h=new La(void 0,c,f);this.nativeStorageManager.saveCacheRecord(h,r.storeInCache)}addTelemetryFromNativeResponse(e){const r=this.getMATSFromResponse(e);return r?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw M_(Sv,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const r=e.authority||this.config.auth.authority;e.account&&await this.validateRequestAuthority(r,e.account);const o=new Te(r);o.validateAsUri();const{scopes:n,...i}=e,a=new pt(n||[]);a.appendScopes(xl);const s=()=>{switch(this.apiId){case Le.ssoSilent:case Le.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Wt.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case Wt.NONE:case Wt.CONSENT:case Wt.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),re(ZS)}},c={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:s(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1};if(this.handleExtraBrokerParams(c),c.extraParameters=c.extraParameters||{},c.extraParameters.telemetry=ic.MATS_TELEMETRY,e.authenticationScheme===Be.POP){const l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new ns(this.browserCrypto),d=await J(u.generateCnf.bind(u),P.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(l,this.logger);c.reqCnf=d.reqCnfHash,c.keyId=d.kid}return c}handleExtraBrokerParams(e){if(e.extraParameters&&e.extraParameters.hasOwnProperty(Mh.BROKER_CLIENT_ID)&&e.extraParameters.hasOwnProperty(Mh.BROKER_REDIRECT_URI)&&e.extraParameters.hasOwnProperty(os)){const r=e.extraParameters[os],o=e.redirectUri,n=e.extraParameters[Mh.BROKER_REDIRECT_URI];e.extraParameters={child_client_id:r,child_redirect_uri:o},e.redirectUri=n}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class Eo{constructor(e,r,o,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(P.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const r={channel:ic.CHANNEL_ID,extensionId:this.extensionId,responseId:Yn(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r),new Promise((o,n)=>{this.resolvers.set(r.responseId,{resolve:o,reject:n})})}static async createProvider(e,r,o){e.trace("NativeMessageHandler - createProvider called.");try{const n=new Eo(e,r,o,ic.PREFERRED_EXTENSION_ID);return await n.sendHandshakeRequest(),n}catch{const i=new Eo(e,r,o);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ic.CHANNEL_ID,extensionId:this.extensionId,responseId:Yn(),body:{method:ki.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=r=>{this.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((r,o)=>{this.handshakeResolvers.set(e.responseId,{resolve:r,reject:o}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),o(re(XS)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const r=e.data;if(!(!r.channel||r.channel!==ic.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===ki.HandshakeRequest){const o=this.handshakeResolvers.get(r.responseId);if(!o){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${r.responseId}`);return}this.logger.verbose(r.extensionId?`Extension with id: ${r.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),o.reject(re(YS))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const r=e.data,o=this.resolvers.get(r.responseId),n=this.handshakeResolvers.get(r.responseId);try{const i=r.body.method;if(i===ki.Response){if(!o)return;const a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")o.reject(vg(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?o.reject(vg(a.result.code,a.result.description,a.result.ext)):o.resolve(a.result);else throw M_(Sv,"Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===ki.HandshakeResponse){if(!n){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${r.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),n.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),o?o.reject(i):n&&n.reject(i)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,r,o,n){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Be.BEARER:case Be.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class tb{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async handleCodeResponse(e,r){this.performanceClient.addQueueMeasurement(P.HandleCodeResponse,r.correlationId);let o;try{o=this.authModule.handleFragmentResponse(e,r.state)}catch(n){throw n instanceof Xn&&n.subError===qi?re(qi):n}return J(this.handleCodeResponseFromServer.bind(this),P.HandleCodeResponseFromServer,this.logger,this.performanceClient,r.correlationId)(o,r)}async handleCodeResponseFromServer(e,r,o=!0){if(this.performanceClient.addQueueMeasurement(P.HandleCodeResponseFromServer,r.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await J(this.authModule.updateAuthority.bind(this.authModule),P.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,r.correlationId)(e.cloud_instance_host_name,r.correlationId),o&&(e.nonce=r.nonce||void 0),e.state=r.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(r);i&&(this.authCodeRequest.ccsCredential=i)}return await J(this.authModule.acquireToken.bind(this.authModule),P.AuthClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:_r.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:_r.UPN}:null}}/*! @azure/msal-browser v3.6.0 2023-12-01 */function dC(t,e,r){const o=Ed(t);if(!o)throw mS(t)?(r.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),r.errorPii(`The ${e} detected is: ${t}`),re(IS)):(r.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),re(ES));return o}function WB(t,e,r){if(!t.state)throw re(Wv);const o=sC(e,t.state);if(!o)throw re(AS);if(o.interactionType!==r)throw re(RS)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class VB extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,s,l,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=c}acquireToken(e){try{const r=this.generatePopupName(e.scopes||xl,e.authority||this.config.auth.authority),o=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,o);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");const n=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(e,r,o,n)}}catch(r){return Promise.reject(r)}}logout(e){try{this.logger.verbose("logoutPopup called");const r=this.initializeLogoutRequest(e),o=this.generateLogoutPopupName(r),n=e&&e.authority,i=e&&e.mainWindowRedirectUri,a=e?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,a,n,void 0,i);{this.logger.verbose("asyncPopup set to false, opening popup");const s=this.openSizedPopup("about:blank",o,a);return this.logoutPopupAsync(r,o,a,n,s,i)}}catch(r){return Promise.reject(r)}}async acquireTokenPopupAsync(e,r,o,n){this.logger.verbose("acquireTokenPopupAsync called");const i=this.initializeServerTelemetryManager(Le.acquireTokenPopup),a=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Popup);tC(a.authority);try{const s=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(a),c=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,a.authority,a.azureCloudOptions),l=Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let u;l&&(u=this.performanceClient.startMeasurement(P.FetchAccountIdWithNativeBroker,e.correlationId));const d=await c.getAuthCodeUrl({...a,nativeBroker:l}),f=new tb(c,this.browserStorage,s,this.logger,this.performanceClient),h={popup:n,popupName:r,popupWindowAttributes:o},p=this.initiateAuthRequest(d,h);this.eventHandler.emitEvent(ce.POPUP_OPENED,oe.Popup,{popupWindow:p},null);const g=await this.monitorPopupForHash(p),y=ta(dC,P.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(g,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Co.removeThrottle(this.browserStorage,this.config.auth.clientId,s),y.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw re(Al);const m=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,y.accountId,this.nativeStorage,a.correlationId),{userRequestState:b}=ao.parseRequestState(this.browserCrypto,a.state);return await m.acquireToken({...a,state:b,prompt:void 0})}return await f.handleCodeResponse(y,a)}catch(s){throw n&&n.close(),s instanceof Ve&&(s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,r,o,n,i,a){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ce.LOGOUT_START,oe.Popup,e);const s=this.initializeServerTelemetryManager(Le.logoutPopup);try{await this.clearCacheOnLogout(e.account);const c=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(s,n);try{c.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&c.authority.protocolMode===Jo.OIDC){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Popup,e),a){const d={apiId:Le.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Te.getAbsoluteUrl(a,Xo());await this.navigationClient.navigateInternal(f,d)}i&&i.close();return}}const l=c.getLogoutUri(e);this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Popup,e);const u=this.openPopup(l,{popupName:r,popupWindowAttributes:o,popup:i});if(this.eventHandler.emitEvent(ce.POPUP_OPENED,oe.Popup,{popupWindow:u},null),await this.monitorPopupForHash(u).catch(()=>{}),a){const d={apiId:Le.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Te.getAbsoluteUrl(a,Xo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${f}`),await this.navigationClient.navigateInternal(f,d)}else this.logger.verbose("No main window navigation requested")}catch(c){throw i&&i.close(),c instanceof Ve&&(c.setCorrelationId(this.correlationId),s.cacheFailedRequest(c)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,oe.Popup,null,c),this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Popup),c}this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Popup)}initiateAuthRequest(e,r){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,r);throw this.logger.error("Navigate url is empty"),re(Bf)}monitorPopupForHash(e){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const n=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(n),o(re(qi));return}let i="";try{i=e.location.href}catch{}if(!i||i==="about:blank")return;clearInterval(n);let a="";const s=this.config.auth.OIDCOptions.serverResponseType;e&&(s===El.QUERY?a=e.location.search:a=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e)})}openPopup(e,r){try{let o;if(r.popup?(o=r.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),o.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),o=this.openSizedPopup(e,r.popupName,r.popupWindowAttributes)),!o)throw re(NS);return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),re(BS)}}openSizedPopup(e,r,o){const n=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let c=o.popupSize?.width,l=o.popupSize?.height,u=o.popupPosition?.top,d=o.popupPosition?.left;return(!c||c<0||c>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),c=eo.POPUP_WIDTH),(!l||l<0||l>s)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),l=eo.POPUP_HEIGHT),(!u||u<0||u>s)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),u=Math.max(0,s/2-eo.POPUP_HEIGHT/2+i)),(!d||d<0||d>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),d=Math.max(0,a/2-eo.POPUP_WIDTH/2+n)),window.open(e,r,`width=${c}, height=${l}, top=${u}, left=${d}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,r){return`${eo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${r}.${this.correlationId}`}generateLogoutPopupName(e){const r=e.account&&e.account.homeAccountId;return`${eo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r}.${this.correlationId}`}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class O0{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async initiateAuthRequest(e,r){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ie.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ie.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const o={apiId:Le.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1};if(typeof r.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await r.navigationClient.navigateExternal(e,o);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await r.navigationClient.navigateExternal(e,o);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),re(Bf)}async handleCodeResponse(e,r){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const o=this.browserStorage.generateStateKey(r),n=this.browserStorage.getTemporaryCache(o);if(!n)throw X(Cd,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,n)}catch(l){throw l instanceof Xn&&l.subError===qi?re(qi):l}const a=this.browserStorage.generateNonceKey(n),s=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await J(this.authModule.updateAuthority.bind(this.authModule),P.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=s||void 0,i.state=n,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const l=this.checkCcsCredentials();l&&(this.authCodeRequest.ccsCredential=l)}const c=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(r),c}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Ie.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class GB extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,s,l,u),this.nativeStorage=c}async acquireToken(e){const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Redirect);this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||"",r.account||null);const o=this.initializeServerTelemetryManager(Le.acquireTokenRedirect),n=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(r.state),this.eventHandler.emitEvent(ce.RESTORE_FROM_BFCACHE,oe.Redirect))};try{const i=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(r),a=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,r.authority,r.azureCloudOptions),s=new O0(a,this.browserStorage,i,this.logger,this.performanceClient),c=await a.getAuthCodeUrl({...r,nativeBroker:Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),l=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${l}`),window.addEventListener("pageshow",n),await s.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:e.onRedirectNavigate})}catch(i){throw i instanceof Ve&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),window.removeEventListener("pageshow",n),this.browserStorage.cleanRequestByState(r.state),i}}async handleRedirectPromise(e){const r=this.initializeServerTelemetryManager(Le.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,n]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),null;const i=this.browserStorage.getTemporaryCache(Ie.ORIGIN_URI,!0)||z.EMPTY_STRING,a=Te.removeHashFromUrl(i),s=Te.removeHashFromUrl(window.location.href);if(a===s&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),i.indexOf("#")>-1&&oB(i),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Yv()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ie.URL_HASH,n,!0);const c={apiId:Le.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let l=!0;if(!i||i==="null"){const u=iB();this.browserStorage.setTemporaryCache(Ie.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),l=await this.navigationClient.navigateInternal(u,c)}else this.logger.verbose(`Navigating to loginRequestUrl: ${i}`),l=await this.navigationClient.navigateInternal(i,c);if(!l)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof Ve&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let r=e;r||(this.config.auth.OIDCOptions.serverResponseType===El.QUERY?r=window.location.search:r=window.location.hash);let o=Ed(r);if(o){try{WB(o,this.browserCrypto,oe.Redirect)}catch(i){return i instanceof Ve&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return rB(window),this.logger.verbose("Hash contains known properties, returning response hash"),[o,r]}const n=this.browserStorage.getTemporaryCache(Ie.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ie.URL_HASH)),n&&(o=Ed(n),o)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[o,n]):[null,""]}async handleResponse(e,r){const o=e.state;if(!o)throw re(Wv);const n=this.browserStorage.getCachedRequest(o);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(Al);const c=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,n.correlationId),{userRequestState:l}=ao.parseRequestState(this.browserCrypto,o);return c.acquireToken({...n,state:l,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(o)})}const i=this.browserStorage.getCachedAuthority(o);if(!i)throw re(Vv);const a=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(r,i);return Co.removeThrottle(this.browserStorage,this.config.auth.clientId,n),new O0(a,this.browserStorage,n,this.logger,this.performanceClient).handleCodeResponse(e,o)}async logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e),o=this.initializeServerTelemetryManager(Le.logout);try{this.eventHandler.emitEvent(ce.LOGOUT_START,oe.Redirect,e),await this.clearCacheOnLogout(r.account);const n={apiId:Le.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,e&&e.authority);if(i.authority.protocolMode===Jo.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId){this.browserStorage.removeAccount(r.account?.homeAccountId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Redirect,r);return}}const a=i.getLogoutUri(r);if(this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Redirect,r),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(a)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,oe.Redirect,null,n),this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Redirect),n}this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Redirect)}getRedirectStartPage(e){const r=e||window.location.href;return Te.getAbsoluteUrl(r,Xo())}}/*! @azure/msal-browser v3.6.0 2023-12-01 */async function XB(t,e,r,o,n){if(e.addQueueMeasurement(P.SilentHandlerInitiateAuthRequest,o),!t)throw r.info("Navigate url is empty"),re(Bf);return n?J(QB,P.SilentHandlerLoadFrame,r,e,o)(t,n,e,o):ta(ZB,P.SilentHandlerLoadFrameSync,r,e,o)(t)}async function YB(t,e,r,o,n,i,a){return o.addQueueMeasurement(P.SilentHandlerMonitorIframeForHash,i),new Promise((s,c)=>{e{window.clearInterval(u),c(re(zS))},e),u=window.setInterval(()=>{let d="";const f=t.contentWindow;try{d=f?f.location.href:""}catch{}if(!d||d==="about:blank")return;let h="";f&&(a===El.QUERY?h=f.location.search:h=f.location.hash),window.clearTimeout(l),window.clearInterval(u),s(h)},r)}).finally(()=>{ta(JB,P.RemoveHiddenIframe,n,o,i)(t)})}function QB(t,e,r,o){return r.addQueueMeasurement(P.SilentHandlerLoadFrame,o),new Promise((n,i)=>{const a=fC();window.setTimeout(()=>{if(!a){i("Unable to load iframe");return}a.src=t,n(a)},e)})}function ZB(t){const e=fC();return e.src=t,e}function fC(){const t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function JB(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class eN extends xs{constructor(e,r,o,n,i,a,s,c,l,u,d){super(e,r,o,n,i,a,c,u,d),this.apiId=s,this.nativeStorage=l}async acquireToken(e){if(this.performanceClient.addQueueMeasurement(P.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Wt.NONE&&e.prompt!==Wt.NO_SESSION)throw re(FS);const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)({...e,prompt:e.prompt||Wt.NONE},oe.Silent);tC(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);try{const n=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)(o,r.authority,r.azureCloudOptions);return await J(this.silentTokenHelper.bind(this),P.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(n,r)}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(Nf))}async silentTokenHelper(e,r){const o=r.correlationId;this.performanceClient.addQueueMeasurement(P.SilentIframeClientTokenHelper,o);const n=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,o)(r),i=await J(e.getAuthCodeUrl.bind(e),P.GetAuthCodeUrl,this.logger,this.performanceClient,o)({...r,nativeBroker:Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}),a=new tb(e,this.browserStorage,n,this.logger,this.performanceClient),s=await J(XB,P.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,o)(i,this.performanceClient,this.logger,o,this.config.system.navigateFrameWait),c=this.config.auth.OIDCOptions.serverResponseType,l=await J(YB,P.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,o)(s,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,o,c),u=ta(dC,P.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(l,c,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(Al);const d=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,o),{userRequestState:f}=ao.parseRequestState(this.browserCrypto,r.state);return J(d.acquireToken.bind(d),P.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,o)({...r,state:f,prompt:r.prompt||Wt.NONE})}return J(a.handleCodeResponse.bind(a),P.HandleCodeResponse,this.logger,this.performanceClient,o)(u,r)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class tN extends xs{async acquireToken(e){this.performanceClient.addQueueMeasurement(P.SilentRefreshClientAcquireToken,e.correlationId);const r=await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,e.account),o={...e,...r},n=this.initializeServerTelemetryManager(Le.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient(n,o.authority,o.azureCloudOptions);return J(i.acquireTokenByRefreshToken.bind(i),P.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(o).catch(a=>{throw a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),a})}logout(){return Promise.reject(re(Nf))}async createRefreshTokenClient(e,r,o){const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new dg(n,this.performanceClient)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class rN{constructor(e,r,o,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=o,this.cryptoObj=n}loadExternalTokens(e,r,o){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw re(Gr);const n=ea(r.id_token,Ro);let i,a,s;if(e.account)s=Tt.createFromAccountInfo(e.account),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,o),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment));else if(e.authority){const c=qt.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new qt(c,this.config.system.networkClient,this.storage,l,this.logger),o.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(n,a,o.clientInfo),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else if(r.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(n,a,r.client_info),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else throw re(Gr)}else throw re(Gr);return this.generateAuthenticationResult(e,n,i,s,a)}loadAccount(e,r,o,n){if(this.isBrowserEnvironment){this.logger.verbose("TokenCache - loading account");let i;if(n?i=n:r.authorityType!==void 0&&o&&(i=Tt.generateHomeAccountId(o,r.authorityType,this.logger,this.cryptoObj,e)),!i)throw re(Gr);const a=e.tid,s=Hv(this.storage,r,i,e,Ro,o,a,void 0,void 0,this.logger);return this.storage.setAccount(s),s}else throw re(Gr)}loadIdToken(e,r,o,n){const i=If(r,o,e,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw re(Gr)}loadAccessToken(e,r,o,n,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in||!a.extendedExpiresOn)throw re(Gr);const s=new pt(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Af(o,n,r.access_token,this.config.auth.clientId,i,s,c,l,Ro);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw re(Gr)}loadRefreshToken(e,r,o,n){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;const i=tS(o,n,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw re(Gr)}generateAuthenticationResult(e,r,o,n,i){let a=z.EMPTY_STRING,s=[],c=null,l;o?.accessToken&&(a=o.accessToken.secret,s=pt.fromString(o.accessToken.target).asArray(),c=new Date(Number(o.accessToken.expiresOn)*1e3),l=new Date(Number(o.accessToken.extendedExpiresOn)*1e3));const u=r.oid||r.sub||z.EMPTY_STRING,d=r.tid||z.EMPTY_STRING;return{authority:i?i.canonicalAuthority:z.EMPTY_STRING,uniqueId:u,tenantId:d,scopes:s,account:n.getAccountInfo(),idToken:o.idToken?.secret||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:c,correlationId:e.correlationId||z.EMPTY_STRING,requestId:z.EMPTY_STRING,extExpiresOn:l,familyId:z.EMPTY_STRING,tokenType:o?.accessToken?.tokenType||z.EMPTY_STRING,state:z.EMPTY_STRING,cloudGraphHostName:n.cloudGraphHostName||z.EMPTY_STRING,msGraphHost:n.msGraphHost||z.EMPTY_STRING,code:void 0,fromNativeBroker:!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class oN extends SS{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class nN extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,c,l,u),this.apiId=s}async acquireToken(e){if(!e.code)throw re(KS);const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,oe.Silent),o=this.initializeServerTelemetryManager(this.apiId);try{const n={...r,code:e.code},i=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)(o,r.authority),a=new oN(i);this.logger.verbose("Auth code client created");const s=new tb(a,this.browserStorage,n,this.logger,this.performanceClient);return await J(s.handleCodeResponseFromServer.bind(s),P.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r,!1)}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(Nf))}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class zf{constructor(e){this.atsAsyncMeasurement=void 0,this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new as(this.logger,this.performanceClient):Td,this.eventHandler=new BB(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new mg(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,HR(this.config.auth)):PB(this.config.auth.clientId,this.logger);const r={cacheLocation:It.MemoryStorage,temporaryCacheLocation:It.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new mg(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new rN(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static async createController(e){const r=new zf(e);return await r.initialize(),r}trackPageVisibility(){this.atsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.atsAsyncMeasurement.increment({visibilityChangeCount:1}))}async initialize(){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}const e=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(P.InitializeClientApplication);if(this.eventHandler.emitEvent(ce.INITIALIZE_START),e)try{this.nativeExtensionProvider=await Eo.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await J(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),P.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient)(this.performanceClient)),this.initialized=!0,this.eventHandler.emitEvent(ce.INITIALIZE_END),r.end({allowNativeBroker:e,success:!0})}async handleRedirectPromise(e){this.logger.verbose("handleRedirectPromise called"),R0(this.initialized);const r=this.getAllAccounts();if(this.isBrowserEnvironment){const o=e||"";let n=this.redirectResponse.get(o);if(typeof n>"u"){this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");const i=this.browserStorage.getCachedNativeRequest();let a;if(i&&Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e)this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId).handleRedirectPromise();else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const s=this.browserStorage.getTemporaryCache(Ie.CORRELATION_ID,!0)||z.EMPTY_STRING;a=this.createRedirectClient(s).handleRedirectPromise(e)}n=a.then(s=>(s&&(r.length{throw r.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,s):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Redirect,null,s),this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_END,oe.Redirect),s}),this.redirectResponse.set(o,n)}else this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");return n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async acquireTokenRedirect(e){const r=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(oe.Redirect);const o=this.getAllAccounts().length>0;o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(ce.LOGIN_START,oe.Redirect,e);let n;return this.nativeExtensionProvider&&this.canUseNative(e)?n=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,r).acquireTokenRedirect(e).catch(a=>{if(a instanceof Vo&&_a(a))return this.nativeExtensionProvider=void 0,this.createRedirectClient(r).acquireToken(e);if(a instanceof Ao)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):n=this.createRedirectClient(r).acquireToken(e),n.catch(i=>{throw o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,i):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Redirect,null,i),i})}acquireTokenPopup(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(P.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(a){return Promise.reject(a)}const n=this.getAllAccounts();n.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(ce.LOGIN_START,oe.Popup,e);let i;return this.canUseNative(e)?i=this.acquireTokenNative({...e,correlationId:r},Le.acquireTokenPopup).then(a=>(this.getBrowserStorage().setInteractionInProgress(!1),o.end({success:!0,isNativeBroker:!0,requestId:a.requestId}),a)).catch(a=>{if(a instanceof Vo&&_a(a))return this.nativeExtensionProvider=void 0,this.createPopupClient(r).acquireToken(e);if(a instanceof Ao)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):i=this.createPopupClient(r).acquireToken(e),i.then(a=>(n.length(n.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,a):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Popup,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),Promise.reject(a)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){const r=this.getRequestCorrelationId(e),o={...e,prompt:e.prompt,correlationId:r};this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(P.SsoSilent,r),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(ce.SSO_SILENT_START,oe.Silent,o);let n;return this.canUseNative(o)?n=this.acquireTokenNative(o,Le.ssoSilent).catch(i=>{if(i instanceof Vo&&_a(i))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):n=this.createSilentIframeClient(o.correlationId).acquireToken(o),n.then(i=>(this.eventHandler.emitEvent(ce.SSO_SILENT_SUCCESS,oe.Silent,i),this.ssoSilentMeasurement?.add({accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length}),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:i.fromNativeBroker,requestId:i.requestId}),i)).catch(i=>{throw this.eventHandler.emitEvent(ce.SSO_SILENT_FAILURE,oe.Silent,null,i),this.ssoSilentMeasurement?.end({errorCode:i.errorCode,subErrorCode:i.subError,success:!1}),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e);const o=this.performanceClient.startMeasurement(P.AcquireTokenByCode,r);try{if(e.code&&e.nativeAccountId)throw re(VS);if(e.code){const n=e.code;let i=this.hybridAuthCodeResponses.get(n);return i?(this.logger.verbose("Existing acquireTokenByCode request found",r),o.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync({...e,correlationId:r}).then(a=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,a),this.hybridAuthCodeResponses.delete(n),o.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),o.end({success:!0,isNativeBroker:a.fromNativeBroker,requestId:a.requestId}),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(n),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),a}),this.hybridAuthCodeResponses.set(n,i)),await i}else if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return await this.acquireTokenNative({...e,correlationId:r},Le.acquireTokenByCode,e.nativeAccountId).catch(n=>{throw n instanceof Vo&&_a(n)&&(this.nativeExtensionProvider=void 0),n});throw re(GS)}else throw re(WS)}catch(n){throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,n),o.end({errorCode:n instanceof Ve&&n.errorCode||void 0,subErrorCode:n instanceof Ve&&n.subError||void 0,success:!1}),n}}async acquireTokenByCodeAsync(e){return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenByCodeAsync,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(n=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,r,o){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenFromCache,r.correlationId),o){case zr.Default:case zr.AccessToken:case zr.AccessTokenAndRefreshToken:return J(e.acquireToken.bind(e),P.SilentCacheClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(r);default:throw X(zn)}}async acquireTokenByRefreshToken(e,r){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenByRefreshToken,e.correlationId),r){case zr.Default:case zr.AccessTokenAndRefreshToken:case zr.RefreshToken:case zr.RefreshTokenAndNetwork:const o=this.createSilentRefreshClient(e.correlationId);return J(o.acquireToken.bind(o),P.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw X(zn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(P.AcquireTokenBySilentIframe,e.correlationId);const r=this.createSilentIframeClient(e.correlationId);return J(r.acquireToken.bind(r),P.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const r=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),this.logoutRedirect({correlationId:r,...e})}async logoutRedirect(e){const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Redirect),this.createRedirectClient(r).logout(e)}logoutPopup(e){try{const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Popup),this.createPopupClient(r).logout(e)}catch(r){return Promise.reject(r)}}async clearCache(e){const r=this.getRequestCorrelationId(e);return this.createSilentCacheClient(r).logout(e)}getAllAccounts(e){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts(e):[]}getAccount(e){if(this.logger.trace("getAccount called"),Object.keys(e).length===0)return this.logger.warning("getAccount: No accountFilter provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy(e);return r?(this.logger.verbose("getAccount: Account matching provided filter found, returning"),r):(this.logger.verbose("getAccount: No matching account found, returning null"),null)}getAccountByUsername(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({username:e});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)}getAccountByHomeId(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)}getAccountByLocalId(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),r):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)}setActiveAccount(e){this.browserStorage.setActiveAccount(e)}getActiveAccount(){return this.browserStorage.getActiveAccount()}async hydrateCache(e,r){this.logger.verbose("hydrateCache called");const o=Tt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(o),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,r)):this.browserStorage.hydrateCache(e,r)}preflightBrowserEnvironmentCheck(e,r=!1){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),cB(this.isBrowserEnvironment),aB(e,this.config.system.allowRedirectInIframe),Bh(),sB(),R0(this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===It.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw wt(aC);(e===oe.Redirect||e===oe.Popup)&&this.preflightInteractiveRequest(!r)}preflightInteractiveRequest(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Bh(),e&&this.getBrowserStorage().setInteractionInProgress(!0)}async acquireTokenNative(e,r,o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw re(Al);return new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,o||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,r){if(this.logger.trace("canUseNative called"),!Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Wt.NONE:case Wt.CONSENT:case Wt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const r=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return r&&r.nativeAccountId||""}createPopupClient(e){return new VB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new GB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new eN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new uC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new tN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new nN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,r){this.browserStorage.setWrapperMetadata(e,r)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}getBrowserStorage(){return this.browserStorage}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?Yn():z.EMPTY_STRING}async loginRedirect(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",r),this.acquireTokenRedirect({correlationId:r,...e||A0})}loginPopup(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup({correlationId:r,...e||A0})}async acquireTokenSilent(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(P.AcquireTokenSilent,r);o.add({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",r);const n=e.account||this.getActiveAccount();if(!n)throw re(jS);const i={clientId:this.config.auth.clientId,authority:e.authority||z.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:n.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},a=JSON.stringify(i),s=this.activeSilentTokenRequests.get(a);if(typeof s>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r);const c=J(this.acquireTokenSilentAsync.bind(this),P.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},n).then(l=>(this.activeSilentTokenRequests.delete(a),o.add({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.end({success:!0,fromCache:l.fromCache,isNativeBroker:l.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:l.requestId}),l)).catch(l=>{throw this.activeSilentTokenRequests.delete(a),o.end({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l});return this.activeSilentTokenRequests.set(a,c),c}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discard(),s}async acquireTokenSilentAsync(e,r){this.performanceClient.addQueueMeasurement(P.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Silent,e),this.atsAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenSilentAsync,e.correlationId),this.atsAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility);let o;if(Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&r.nativeAccountId){this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");const n={...e,account:r};o=this.acquireTokenNative(n,Le.acquireTokenSilent_silentFlow).catch(async i=>{if(i instanceof Vo&&_a(i))return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,this.createSilentIframeClient(e.correlationId).acquireToken(e);throw i})}else{this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");const n=this.createSilentCacheClient(e.correlationId),i=await J(n.initializeSilentRequest.bind(n),P.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,r),a=e.cacheLookupPolicy||zr.Default;o=J(this.acquireTokenFromCache.bind(this),P.AcquireTokenFromCache,this.logger,this.performanceClient,i.correlationId)(n,i,a).catch(s=>{if(e.cacheLookupPolicy===zr.AccessToken)throw s;return Bh(),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,i),J(this.acquireTokenByRefreshToken.bind(this),P.AcquireTokenByRefreshToken,this.logger,this.performanceClient,i.correlationId)(i,a).catch(c=>{const l=!(c instanceof Ao)&&(c.errorCode===eo.INVALID_GRANT_ERROR||c.errorCode===zn)||c.errorCode===Ad,u=a===zr.Default||a===zr.Skip||a===zr.RefreshTokenAndNetwork;if(l&&u)return this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),J(this.acquireTokenBySilentIframe.bind(this),P.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);throw c})})}return o.then(n=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_SUCCESS,oe.Silent,n),this.atsAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,n),this.atsAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibility)})}}const iN=Object.freeze(Object.defineProperty({__proto__:null,StandardController:zf},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-browser v3.6.0 2023-12-01 */class rb{static async createPublicClientApplication(e){const r=await bB(e);return new rb(e,r)}constructor(e,r){if(r)this.controller=r;else{const o=new Hi(e);this.controller=new zf(o)}}async initialize(){return this.controller.initialize()}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e){return this.controller.addEventCallback(e)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,r){return this.controller.initializeWrapperLibrary(e,r)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,r){return this.controller.hydrateCache(e,r)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const aN={initialize:()=>Promise.reject(wt(Et)),acquireTokenPopup:()=>Promise.reject(wt(Et)),acquireTokenRedirect:()=>Promise.reject(wt(Et)),acquireTokenSilent:()=>Promise.reject(wt(Et)),acquireTokenByCode:()=>Promise.reject(wt(Et)),getAllAccounts:()=>[],getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(wt(Et)),loginPopup:()=>Promise.reject(wt(Et)),loginRedirect:()=>Promise.reject(wt(Et)),logout:()=>Promise.reject(wt(Et)),logoutRedirect:()=>Promise.reject(wt(Et)),logoutPopup:()=>Promise.reject(wt(Et)),ssoSilent:()=>Promise.reject(wt(Et)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw wt(Et)},getLogger:()=>{throw wt(Et)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw wt(Et)},hydrateCache:()=>Promise.reject(wt(Et)),clearCache:()=>Promise.reject(wt(Et))};/*! @azure/msal-browser v3.6.0 2023-12-01 */class sN{static getInteractionStatusFromEvent(e,r){switch(e.eventType){case ce.LOGIN_START:return rt.Login;case ce.SSO_SILENT_START:return rt.SsoSilent;case ce.ACQUIRE_TOKEN_START:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup)return rt.AcquireToken;break;case ce.HANDLE_REDIRECT_START:return rt.HandleRedirect;case ce.LOGOUT_START:return rt.Logout;case ce.SSO_SILENT_SUCCESS:case ce.SSO_SILENT_FAILURE:if(r&&r!==rt.SsoSilent)break;return rt.None;case ce.LOGOUT_END:if(r&&r!==rt.Logout)break;return rt.None;case ce.HANDLE_REDIRECT_END:if(r&&r!==rt.HandleRedirect)break;return rt.None;case ce.LOGIN_SUCCESS:case ce.LOGIN_FAILURE:case ce.ACQUIRE_TOKEN_SUCCESS:case ce.ACQUIRE_TOKEN_FAILURE:case ce.RESTORE_FROM_BFCACHE:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup){if(r&&r!==rt.Login&&r!==rt.AcquireToken)break;return rt.None}break}return null}}/*! @azure/msal-react v2.0.8 2023-12-01 */const cN={instance:aN,inProgress:rt.None,accounts:[],logger:new Il({})},ob=w.createContext(cN);ob.Consumer;/*! @azure/msal-react v2.0.8 2023-12-01 */function hC(t,e){return typeof t=="function"?t(e):t}function D0(t,e){if(t.length!==e.length)return!1;const r=[...e];return t.every(o=>{const n=r.shift();return!o||!n?!1:o.homeAccountId===n.homeAccountId&&o.localAccountId===n.localAccountId&&o.username===n.username})}function lN(t,e){return t.length>0&&(e.homeAccountId||e.localAccountId||e.username)&&t.filter(o=>!(e.username&&e.username.toLowerCase()!==o.username.toLowerCase()||e.homeAccountId&&e.homeAccountId.toLowerCase()!==o.homeAccountId.toLowerCase()||e.localAccountId&&e.localAccountId.toLowerCase()!==o.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.8 2023-12-01 */const uN="@azure/msal-react",j0="2.0.8";/*! @azure/msal-react v2.0.8 2023-12-01 */const zd={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},dN=(t,e)=>{const{type:r,payload:o}=e;let n=t.inProgress;switch(r){case zd.UNBLOCK_INPROGRESS:t.inProgress===rt.Startup&&(n=rt.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case zd.EVENT:const a=o.message,s=sN.getInteractionStatusFromEvent(a,t.inProgress);s&&(o.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${t.inProgress} to ${s}`),n=s);break;default:throw new Error(`Unknown action type: ${r}`)}const i=o.instance.getAllAccounts();return n!==t.inProgress&&!D0(i,t.accounts)?{...t,inProgress:n,accounts:i}:n!==t.inProgress?{...t,inProgress:n}:D0(i,t.accounts)?t:{...t,accounts:i}};function fN({instance:t,children:e}){w.useEffect(()=>{t.initializeWrapperLibrary(JP.React,j0)},[t]);const r=w.useMemo(()=>t.getLogger().clone(uN,j0),[t]),[o,n]=w.useReducer(dN,void 0,()=>({inProgress:rt.Startup,accounts:t.getAllAccounts()}));w.useEffect(()=>{const a=t.addEventCallback(s=>{n({payload:{instance:t,logger:r,message:s},type:zd.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${a}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{n({payload:{instance:t,logger:r},type:zd.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(r.verbose(`MsalProvider - Removing event callback ${a}`),t.removeEventCallback(a))}},[t,r]);const i={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:r};return Kt.createElement(ob.Provider,{value:i},e)}/*! @azure/msal-react v2.0.8 2023-12-01 */const Pl=()=>w.useContext(ob);/*! @azure/msal-react v2.0.8 2023-12-01 */function F0(t,e){return e&&(e.username||e.homeAccountId||e.localAccountId)?!!lN(t,e):t.length>0}function pC(t){const{accounts:e,inProgress:r}=Pl(),[o,n]=w.useState(()=>r===rt.Startup?!1:F0(e,t));return w.useEffect(()=>{n(F0(e,t))},[e,t]),o}/*! @azure/msal-react v2.0.8 2023-12-01 */function Wu({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Pl(),i=w.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return pC(i)&&n.inProgress!==rt.Startup?Kt.createElement(Kt.Fragment,null,hC(o,n)):null}/*! @azure/msal-react v2.0.8 2023-12-01 */function hN({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Pl(),i=w.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return!pC(i)&&n.inProgress!==rt.Startup&&n.inProgress!==rt.HandleRedirect?Kt.createElement(Kt.Fragment,null,hC(o,n)):null}const pN=["Top","Right","Bottom","Left"];function Bl(t,e,...r){const[o,n=o,i=o,a=n]=r,s=[o,n,i,a],c={};for(let l=0;ltypeof t=="string"&&/(\d+(\w+|%))/.test(t),ou=t=>typeof t=="number"&&!Number.isNaN(t),SN=t=>t==="initial",L0=t=>t==="auto",CN=t=>t==="none",TN=["content","fit-content","max-content","min-content"],Oh=t=>TN.some(e=>t===e)||_N(t);function xN(...t){const e=t.length===1,r=t.length===2,o=t.length===3;if(e){const[n]=t;if(SN(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(L0(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(CN(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(ou(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(Oh(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=t;if(ou(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(Oh(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,a]=t;if(ou(n)&&ou(i)&&(L0(a)||Oh(a)))return{flexGrow:n,flexShrink:i,flexBasis:a}}return{}}function EN(t,e=t){return{columnGap:t,rowGap:e}}const IN=/var\(.*\)/gi;function AN(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!IN.test(t)}const RN=/^[a-zA-Z0-9\-_\\#;]+$/,PN=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function Dh(t){return t!==void 0&&typeof t=="string"&&RN.test(t)&&!PN.test(t)}function BN(...t){if(t.some(i=>!AN(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:Dh(e)?e:"auto",o=t[2]!==void 0?t[2]:Dh(e)?e:"auto",n=t[3]!==void 0?t[3]:Dh(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:n}}function NN(...t){return Bl("margin","",...t)}function zN(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function MN(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function ON(...t){return Bl("padding","",...t)}function DN(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function jN(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function FN(t,e=t){return{overflowX:t,overflowY:e}}function LN(...t){const[e,r=e,o=e,n=r]=t;return{top:e,right:r,bottom:o,left:n}}function qN(t,e,r){return{outlineWidth:t,...e&&{outlineStyle:e},...r&&{outlineColor:r}}}function HN(...t){return $N(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:KN(t).reduce((r,[o,n="0s",i="0s",a="ease"],s)=>(s===0?(r.transitionProperty=o,r.transitionDuration=n,r.transitionDelay=i,r.transitionTimingFunction=a):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${n}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${a}`),r),{})}const UN=["-moz-initial","inherit","initial","revert","unset"];function $N(t){return t.length===1&&UN.includes(t[0])}function KN(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function WN(t,...e){if(e.length===0)return GN(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,o,n]=e;return{textDecorationLine:t,...r&&{textDecorationStyle:r},...o&&{textDecorationColor:o},...n&&{textDecorationThickness:n}}}const VN=["dashed","dotted","double","solid","wavy"];function GN(t){return VN.includes(t)}const jh=typeof window>"u"?global:window,Fh="@griffel/";function XN(t,e){return jh[Symbol.for(Fh+t)]||(jh[Symbol.for(Fh+t)]=e),jh[Symbol.for(Fh+t)]}const kg=XN("DEFINITION_LOOKUP_TABLE",{}),Vu="data-make-styles-bucket",_g="f",Sg=7,nb="___",YN=nb.length+Sg,QN=0,ZN=1,JN={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Lc(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function e5(t){const e=t.length;if(e===Sg)return t;for(let r=e;r0&&(e+=u.slice(0,d)),r+=f,o[l]=f}}}if(r==="")return e.slice(0,-1);const n=q0[r];if(n!==void 0)return e+n;const i=[];for(let l=0;li.cssText):o}}}const o5=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],H0=o5.reduce((t,e,r)=>(t[e]=r,t),{});function n5(t,e,r,o,n={}){const i=t==="m",a=i?t+n.m:t;if(!o.stylesheets[a]){const s=e&&e.createElement("style"),c=r5(s,t,{...o.styleElementAttributes,...i&&{media:n.m}});o.stylesheets[a]=c,e&&s&&e.head.insertBefore(s,i5(e,r,t,o,n))}return o.stylesheets[a]}function i5(t,e,r,o,n){const i=H0[r];let a=u=>i-H0[u.getAttribute(Vu)],s=t.head.querySelectorAll(`[${Vu}]`);if(r==="m"&&n){const u=t.head.querySelectorAll(`[${Vu}="${r}"]`);u.length&&(s=u,a=d=>o.compareMediaQueries(n.m,d.media))}const c=s.length;let l=c-1;for(;l>=0;){const u=s.item(l);if(a(u)>0)return u.nextSibling;l--}return c>0?s.item(0):e?e.nextSibling:null}function U0(t,e){try{t.insertRule(e)}catch{}}let a5=0;const s5=(t,e)=>te?1:0;function c5(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=s5}=e,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${a5++}`,insertCSSRules(s){for(const c in s){const l=s[c];for(let u=0,d=l.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function vC(t){return t.reduce(function(e,r){var o=r[0],n=r[1];return e[o]=n,e[n]=o,e},{})}function l5(t){return typeof t=="boolean"}function u5(t){return typeof t=="function"}function ac(t){return typeof t=="number"}function d5(t){return t===null||typeof t>"u"}function f5(t){return t&&typeof t=="object"}function h5(t){return typeof t=="string"}function Gu(t,e){return t.indexOf(e)!==-1}function p5(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function nu(t,e,r,o){return e+p5(r)+o}function g5(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function bC(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var o=e.list,n=e.state,i=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-a,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function $0(t){var e=bC(t);if(e.length<=3||e.length>4)return t;var r=e[0],o=e[1],n=e[2],i=e[3];return[r,i,n,o].join(" ")}function m5(t){return!l5(t)&&!d5(t)}function v5(t){for(var e=[],r=0,o=0,n=!1;o0?Qt(Es,--Ir):0,ss--,Ye===10&&(ss=1,Df--),Ye}function qr(){return Ye=Ir2||Od(Ye)>3?"":" "}function D5(t){for(;qr();)switch(Od(Ye)){case 0:_i(BC(Ir-1),t);break;case 2:_i(Yu(Ye),t);break;default:_i(Of(Ye),t)}return t}function j5(t,e){for(;--e&&qr()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return Ff(t,Xu()+(e<6&&Ei()==32&&qr()==32))}function Tg(t){for(;qr();)switch(Ye){case t:return Ir;case 34:case 39:t!==34&&t!==39&&Tg(Ye);break;case 40:t===41&&Tg(t);break;case 92:qr();break}return Ir}function F5(t,e){for(;qr()&&t+Ye!==57;)if(t+Ye===84&&Ei()===47)break;return"/*"+Ff(e,Ir-1)+"*"+Of(t===47?t:qr())}function BC(t){for(;!Od(Ei());)qr();return Ff(t,Ir)}function NC(t){return PC(Qu("",null,null,null,[""],t=RC(t),0,[0],t))}function Qu(t,e,r,o,n,i,a,s,c){for(var l=0,u=0,d=a,f=0,h=0,p=0,g=1,y=1,v=1,m=0,b="",k=n,S=i,C=o,_=b;y;)switch(p=m,m=qr()){case 40:if(p!=108&&Qt(_,d-1)==58){EC(_+=cr(Yu(m),"&","&\f"),"&\f",CC(l?s[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Yu(m);break;case 9:case 10:case 13:case 32:_+=O5(p);break;case 92:_+=j5(Xu()-1,7);continue;case 47:switch(Ei()){case 42:case 47:_i(L5(F5(qr(),Xu()),e,r,c),c);break;default:_+="/"}break;case 123*g:s[l++]=_o(_)*v;case 125*g:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+u:v==-1&&(_=cr(_,/\f/g,"")),h>0&&_o(_)-d&&_i(h>32?V0(_+";",o,r,d-1,c):V0(cr(_," ","")+";",o,r,d-2,c),c);break;case 59:_+=";";default:if(_i(C=W0(_,e,r,l,u,n,s,b,k=[],S=[],d,i),i),m===123)if(u===0)Qu(_,e,C,C,k,i,d,s,S);else switch(f===99&&Qt(_,3)===110?100:f){case 100:case 108:case 109:case 115:Qu(t,C,C,o&&_i(W0(t,C,C,0,0,n,s,b,n,k=[],d,S),S),n,S,d,s,o?k:S);break;default:Qu(_,C,C,C,[""],S,0,s,S)}}l=u=h=0,g=v=1,b=_="",d=a;break;case 58:d=1+_o(_),h=p;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&z5()==125)continue}switch(_+=Of(m),m*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[l++]=(_o(_)-1)*v,v=1;break;case 64:Ei()===45&&(_+=Yu(qr())),f=Ei(),u=d=_o(b=_+=BC(Xu())),m++;break;case 45:p===45&&_o(_)==2&&(g=0)}}return i}function W0(t,e,r,o,n,i,a,s,c,l,u,d){for(var f=n-1,h=n===0?i:[""],p=IC(h),g=0,y=0,v=0;g0?h[m]+" "+b:cr(b,/&\f/g,h[m])))&&(c[v++]=k);return jf(t,e,r,n===0?Mf:s,c,l,u,d)}function L5(t,e,r,o){return jf(t,e,r,_C,Of(N5()),qc(t,2,-2),0,o)}function V0(t,e,r,o,n){return jf(t,e,r,ab,qc(t,0,o),qc(t,o+1,-1),o,n)}function cs(t,e){for(var r="",o=0;o{switch(t.type){case Mf:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:M5(e).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const a=i[n+2].slice(1,-1)+" ";return r.unshift(a),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function DC(t,e,r){switch(P5(t,e)){case 5103:return Xr+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Xr+t+t;case 4215:if(Qt(t,9)===102||Qt(t,e+1)===116)return Xr+t+t;break;case 4789:return yc+t+t;case 5349:case 4246:case 6968:return Xr+t+yc+t+t;case 6187:if(!xC(t,/grab/))return cr(cr(cr(t,/(zoom-|grab)/,Xr+"$1"),/(image-set)/,Xr+"$1"),t,"")+t;case 5495:case 3959:return cr(t,/(image-set\([^]*)/,Xr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return cr(t,/(.+)-inline(.+)/,Xr+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_o(t)-1-e>6)switch(Qt(t,e+1)){case 102:if(Qt(t,e+3)===108)return cr(t,/(.+:)(.+)-([^]+)/,"$1"+Xr+"$2-$3$1"+yc+(Qt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~EC(t,"stretch")?DC(cr(t,"stretch","fill-available"),e)+t:t}break}return t}function jC(t,e,r,o){if(t.length>-1&&!t.return)switch(t.type){case ab:t.return=DC(t.value,t.length);return;case Mf:if(t.length)return B5(t.props,function(n){switch(xC(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cs([qh(t,{props:[cr(n,/:(read-\w+)/,":"+yc+"$1")]})],o);case"::placeholder":return cs([qh(t,{props:[cr(n,/:(plac\w+)/,":"+Xr+"input-$1")]}),qh(t,{props:[cr(n,/:(plac\w+)/,":"+yc+"$1")]})],o)}return""})}}function H5(t){switch(t.type){case"@container":case x5:case I5:case SC:return!0}return!1}const U5=t=>{H5(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function $5(){}function K5(t,e){const r=[];return cs(NC(t),MC([q5,e?U5:$5,jC,zC,OC(o=>r.push(o))])),r}const W5=/,( *[^ &])/g;function V5(t){return"&"+kC(t.replace(W5,",&$1"))}function G0(t,e,r){let o=e;return r.length>0&&(o=r.reduceRight((n,i)=>`${V5(i)} { ${n} }`,e)),`${t}{${o}}`}function X0(t){const{className:e,media:r,layer:o,selectors:n,support:i,property:a,rtlClassName:s,rtlProperty:c,rtlValue:l,value:u,container:d}=t,f=`.${e}`,h=Array.isArray(u)?`${u.map(g=>`${sc(a)}: ${g}`).join(";")};`:`${sc(a)}: ${u};`;let p=G0(f,h,n);if(c&&s){const g=`.${s}`,y=Array.isArray(l)?`${l.map(v=>`${sc(c)}: ${v}`).join(";")};`:`${sc(c)}: ${l};`;p+=G0(g,y,n)}return r&&(p=`@media ${r} { ${p} }`),o&&(p=`@layer ${o} { ${p} }`),i&&(p=`@supports ${i} { ${p} }`),d&&(p=`@container ${d} { ${p} }`),K5(p,!0)}function G5(t){let e="";for(const r in t){const o=t[r];typeof o!="string"&&typeof o!="number"||(e+=sc(r)+":"+o+";")}return e}function Y0(t){let e="";for(const r in t)e+=`${r}{${G5(t[r])}}`;return e}function Q0(t,e){const r=`@keyframes ${t} {${e}}`,o=[];return cs(NC(r),MC([zC,jC,OC(n=>o.push(n))])),o}function Z0(t,e){return t.length===0?e:`${t} and ${e}`}function X5(t){return t.substr(0,6)==="@media"}function Y5(t){return t.substr(0,6)==="@layer"}const Q5=/^(:|\[|>|&)/;function Z5(t){return Q5.test(t)}function J5(t){return t.substr(0,9)==="@supports"}function ez(t){return t.substring(0,10)==="@container"}function tz(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const J0={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function e1(t,e,r,o,n){if(r)return"m";if(e||o)return"t";if(n)return"c";if(t.length>0){const i=t[0].trim();if(i.charCodeAt(0)===58)return J0[i.slice(4,8)]||J0[i.slice(3,5)]||"d"}return"d"}function iu({container:t,media:e,layer:r,property:o,selector:n,support:i,value:a}){const s=Lc(n+t+e+r+i+o+a.trim());return _g+s}function t1(t,e,r,o,n){const i=t+e+r+o+n,a=Lc(i),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function r1(t){return t.replace(/>\s+/g,">")}function rz(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(` +Error Description: ${i.message}`)}return null}return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(r=>r&&Te.getDomainFromUrl(r).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,r){let o;if(r&&r.azureCloudInstance!==Rv.None){const n=r.tenant?r.tenant:z.DEFAULT_COMMON_TENANT;o=`${r.azureCloudInstance}/${n}/`}return o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw X(Ho)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return bS.has(e)}static isPublicCloudAuthority(e){return z.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,r,o){const n=new Te(e);n.validateAsUri();const i=n.getUrlComponents();let a=`${r}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=`${r}.${z.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const s=Te.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:a}).urlString;return o?`${s}?${o}`:s}static replaceWithRegionalInformation(e,r){const o={...e};return o.authorization_endpoint=qt.buildRegionalAuthorityString(o.authorization_endpoint,r),o.token_endpoint=qt.buildRegionalAuthorityString(o.token_endpoint,r),o.end_session_endpoint&&(o.end_session_endpoint=qt.buildRegionalAuthorityString(o.end_session_endpoint,r)),o}static transformCIAMAuthority(e){let r=e;const n=new Te(e).getUrlComponents();if(n.PathSegments.length===0&&n.HostNameAndPort.endsWith(z.CIAM_AUTH_URL)){const i=n.HostNameAndPort.split(".")[0];r=`${r}${i}${z.AAD_TENANT_DOMAIN_SUFFIX}`}return r}}qt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",jn.COMMON,jn.CONSUMERS,jn.ORGANIZATIONS]);function HR(t){const o=new Te(t).getUrlComponents().PathSegments.slice(-1)[0].toLowerCase();switch(o){case jn.COMMON:case jn.ORGANIZATIONS:case jn.CONSUMERS:return;default:return o}}function yS(t){return t.endsWith(z.FORWARD_SLASH)?t:`${t}${z.FORWARD_SLASH}`}function UR(t){const e=t.cloudDiscoveryMetadata;let r;if(e)try{r=JSON.parse(e)}catch{throw Ne(Mv)}return{canonicalAuthority:t.authority?yS(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:r}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Wo{constructor(e,r,o,n){this.clientId=e,this.cryptoImpl=r,this.commonLogger=o.clone(J_,Av),this.staticAuthorityOptions=n}getAllAccounts(e){return this.buildTenantProfiles(this.getAccountsFilteredBy(e||{}),e)}getAccountInfoFilteredBy(e){const r=this.getAllAccounts(e);return r.length>1?r.sort(n=>n.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e){const r=this.getAccountsFilteredBy(e);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,r){return e.flatMap(o=>this.getAccountInfoForTenantProfiles(o,r))}getAccountInfoForTenantProfiles(e,r){return this.getTenantProfilesFromAccountEntity(e,r?.tenantId,r)}getTenantedAccountInfoByFilter(e,r,o,n){let i=null,a;if(n&&!this.tenantProfileMatchesFilter(o,n))return null;const s=this.getIdToken(e,r,o.tenantId);return s&&(a=ea(s.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,n))?null:(i=jv(e,o,a),i)}getTenantProfilesFromAccountEntity(e,r,o){const n=e.getAccountInfo();let i=n.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const c=i.get(r);if(c)i=new Map([[r,c]]);else return[]}const s=[];return i.forEach(c=>{const l=this.getTenantedAccountInfoByFilter(n,a,c,o);l&&s.push(l)}),s}tenantProfileMatchesFilter(e,r){return!(r.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,r.localAccountId)||r.name&&e.name!==r.name||r.isHomeTenant!==void 0&&e.isHomeTenant!==r.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,r){return!(r&&(r.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,r.localAccountId)||r.loginHint&&!this.matchLoginHintFromTokenClaims(e,r.loginHint)||r.username&&!this.matchUsername(e.preferred_username,r.username)||r.name&&!this.matchName(e,r.name)||r.sid&&!this.matchSid(e,r.sid)))}async saveCacheRecord(e,r){if(!e)throw X(G_);e.account&&this.setAccount(e.account),e.idToken&&r?.idToken!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&r?.accessToken!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&r?.refreshToken!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}async saveAccessToken(e){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),n=pt.fromString(e.target),i=[];o.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;const s=this.getAccessTokenCredential(a);s&&this.credentialMatchesFilter(s,r)&&pt.fromString(s.target).intersectingScopeSets(n)&&i.push(this.removeAccessToken(a))}),await Promise.all(i),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const r=this.getAccountKeys(),o=[];return r.forEach(n=>{if(!this.isAccountKey(n,e.homeAccountId))return;const i=this.getAccount(n,this.commonLogger);if(!i||e.homeAccountId&&!this.matchHomeAccountId(i,e.homeAccountId)||e.username&&!this.matchUsername(i.username,e.username)||e.environment&&!this.matchEnvironment(i,e.environment)||e.realm&&!this.matchRealm(i,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(i,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(i,e.authorityType))return;const a={localAccountId:e?.localAccountId,name:e?.name},s=i.tenantProfiles?.filter(c=>this.tenantProfileMatchesFilter(c,a));s&&s.length===0||o.push(i)}),o}isAccountKey(e,r,o){return!(e.split(Ht.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))}isCredentialKey(e){if(e.split(Ht.CACHE_KEY_SEPARATOR).length<6)return!1;const r=e.toLowerCase();if(r.indexOf(he.ID_TOKEN.toLowerCase())===-1&&r.indexOf(he.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(he.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(he.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(he.REFRESH_TOKEN.toLowerCase())>-1){const o=`${he.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${this.clientId}${Ht.CACHE_KEY_SEPARATOR}`,n=`${he.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${gc}${Ht.CACHE_KEY_SEPARATOR}`;if(r.indexOf(o.toLowerCase())===-1&&r.indexOf(n.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===he.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===Be.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))}getAppMetadataFilteredBy(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)}getAppMetadataFilteredByInternal(e,r){const o=this.getKeys(),n={};return o.forEach(i=>{if(!this.isAppMetadata(i))return;const a=this.getAppMetadata(i);a&&(e&&!this.matchEnvironment(a,e)||r&&!this.matchClientId(a,r)||(n[i]=a))}),n}getAuthorityMetadataByAlias(e){const r=this.getAuthorityMetadataKeys();let o=null;return r.forEach(n=>{if(!this.isAuthorityMetadata(n)||n.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(n);i&&i.aliases.indexOf(e)!==-1&&(o=i)}),o}async removeAllAccounts(){const e=this.getAccountKeys(),r=[];e.forEach(o=>{r.push(this.removeAccount(o))}),await Promise.all(r)}async removeAccount(e){const r=this.getAccount(e,this.commonLogger);r&&(await this.removeAccountContext(r),this.removeItem(e))}async removeAccountContext(e){const r=this.getTokenKeys(),o=e.generateAccountId(),n=[];r.idToken.forEach(i=>{i.indexOf(o)===0&&this.removeIdToken(i)}),r.accessToken.forEach(i=>{i.indexOf(o)===0&&n.push(this.removeAccessToken(i))}),r.refreshToken.forEach(i=>{i.indexOf(o)===0&&this.removeRefreshToken(i)}),await Promise.all(n)}updateOutdatedCachedAccount(e,r,o){if(r&&r.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const n=this.getAccountKeys().filter(l=>l.startsWith(r.homeAccountId)),i=[];n.forEach(l=>{const u=this.getCachedAccountEntity(l);u&&i.push(u)});const a=i.find(l=>sg(l.realm,l.homeAccountId))||i[0];a.tenantProfiles=i.map(l=>({tenantId:l.realm,localAccountId:l.localAccountId,name:l.name,isHomeTenant:sg(l.realm,l.homeAccountId)}));const s=Wo.toObject(new Tt,{...a}),c=s.generateAccountKey();return n.forEach(l=>{l!==c&&this.removeOutdatedAccount(e)}),this.setAccount(s),o?.verbose("Updated an outdated account entity in the cache"),s}return r}async removeAccessToken(e){const r=this.getAccessTokenCredential(e);if(r){if(r.credentialType.toLowerCase()===he.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===Be.POP){const n=r.keyId;if(n)try{await this.cryptoImpl.removeTokenBindingKey(n)}catch{throw X(Q_)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r)}),!0}readCacheRecord(e,r,o,n,i){const a=e.tenantId||HR(r.authority),s=this.getTokenKeys(),c=this.readAccountFromCache(e),l=this.getIdToken(e,s,a,n,i),u=this.getAccessToken(e,r,s,a,n,i),d=this.getRefreshToken(e,!1,s,n,i),f=this.readAppMetadataFromCache(o);return{account:c,idToken:l,accessToken:u,refreshToken:d,appMetadata:f}}readAccountFromCache(e){const r=Tt.generateAccountCacheKey(e);return this.getAccount(r,this.commonLogger)}getIdToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:he.ID_TOKEN,clientId:this.clientId,realm:o},s=this.getIdTokensByFilter(a,r),c=s.size;if(c<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(c>1){let l=s;if(!o){const u=new Map;s.forEach((f,h)=>{f.realm===e.tenantId&&u.set(h,f)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),s.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;l=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),l.forEach((u,d)=>{this.removeIdToken(d)}),n&&i&&n.addFields({multiMatchedID:s.size},i),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),s.values().next().value}getIdTokensByFilter(e,r){const o=r&&r.idToken||this.getTokenKeys().idToken,n=new Map;return o.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...e}))return;const a=this.getIdTokenCredential(i);a&&this.credentialMatchesFilter(a,e)&&n.set(i,a)}),n}idTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,r,o,n,i,a){this.commonLogger.trace("CacheManager - getAccessToken called");const s=pt.createSearchScopes(r.scopes),c=r.authenticationScheme||Be.BEARER,l=c&&c.toLowerCase()!==Be.BEARER.toLowerCase()?he.ACCESS_TOKEN_WITH_AUTH_SCHEME:he.ACCESS_TOKEN,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:l,clientId:this.clientId,realm:n||e.tenantId,target:s,tokenType:c,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},d=o&&o.accessToken||this.getTokenKeys().accessToken,f=[];d.forEach(p=>{if(this.accessTokenKeyMatchesFilter(p,u,!0)){const g=this.getAccessTokenCredential(p);g&&this.credentialMatchesFilter(g,u)&&f.push(g)}});const h=f.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),f.forEach(p=>{this.removeAccessToken(oc(p))}),i&&a&&i.addFields({multiMatchedAT:f.length},a),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),f[0])}accessTokenKeyMatchesFilter(e,r,o){const n=e.toLowerCase();if(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&n.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&n.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target){const i=r.target.asArray();for(let a=0;a{if(!this.accessTokenKeyMatchesFilter(n,e,!0))return;const i=this.getAccessTokenCredential(n);i&&this.credentialMatchesFilter(i,e)&&o.push(i)}),o}getRefreshToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=r?gc:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:he.REFRESH_TOKEN,clientId:this.clientId,familyId:a},c=o&&o.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,s)){const f=this.getRefreshTokenCredential(d);f&&this.credentialMatchesFilter(f,s)&&l.push(f)}});const u=l.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&n&&i&&n.addFields({multiMatchedRT:u},i),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])}refreshTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.familyId&&o.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const r={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(r),n=Object.keys(o).map(a=>o[a]),i=n.length;if(i<1)return null;if(i>1)throw X($_);return n[0]}isAppMetadataFOCI(e){const r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===gc)}matchHomeAccountId(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,r){const o=e.oid||e.sub;return r===o}matchLocalAccountIdFromTenantProfile(e,r){return e.localAccountId===r}matchName(e,r){return r.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,r){return!!(e&&typeof e=="string"&&r?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)}matchEnvironment(e,r){if(this.staticAuthorityOptions){const n=DR(this.staticAuthorityOptions,this.commonLogger);if(n.includes(r)&&n.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(r);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,r){return!!(e.clientId&&r===e.clientId)}matchFamilyId(e,r){return!!(e.familyId&&r===e.familyId)}matchRealm(e,r){return e.realm?.toLowerCase()===r.toLowerCase()}matchNativeAccountId(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,r){return e.login_hint===r||e.preferred_username===r||e.upn===r}matchSid(e,r){return e.sid===r}matchAuthorityType(e,r){return!!(e.authorityType&&r.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,r){return e.credentialType!==he.ACCESS_TOKEN&&e.credentialType!==he.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:pt.fromString(e.target).containsScopeSet(r)}matchTokenType(e,r){return!!(e.tokenType&&e.tokenType===r)}matchKeyId(e,r){return!!(e.keyId&&e.keyId===r)}isAppMetadata(e){return e.indexOf(tg)!==-1}isAuthorityMetadata(e){return e.indexOf(mc.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${mc.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,r){for(const o in r)e[o]=r[o];return e}}class $R extends Wo{setAccount(){throw X(be)}getAccount(){throw X(be)}getCachedAccountEntity(){throw X(be)}setIdTokenCredential(){throw X(be)}getIdTokenCredential(){throw X(be)}setAccessTokenCredential(){throw X(be)}getAccessTokenCredential(){throw X(be)}setRefreshTokenCredential(){throw X(be)}getRefreshTokenCredential(){throw X(be)}setAppMetadata(){throw X(be)}getAppMetadata(){throw X(be)}setServerTelemetry(){throw X(be)}getServerTelemetry(){throw X(be)}setAuthorityMetadata(){throw X(be)}getAuthorityMetadata(){throw X(be)}getAuthorityMetadataKeys(){throw X(be)}setThrottlingCache(){throw X(be)}getThrottlingCache(){throw X(be)}removeItem(){throw X(be)}containsKey(){throw X(be)}getKeys(){throw X(be)}getAccountKeys(){throw X(be)}getTokenKeys(){throw X(be)}async clear(){throw X(be)}updateCredentialCacheKey(){throw X(be)}removeOutdatedAccount(){throw X(be)}}/*! @azure/msal-common v14.5.0 2023-12-01 */const KR=300,wS={tokenRenewalOffsetSeconds:KR,preventCorsPreflight:!1},WR={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:ht.Info,correlationId:z.EMPTY_STRING},VR={claimsBasedCachingEnabled:!1},GR={async sendGetRequestAsync(){throw X(be)},async sendPostRequestAsync(){throw X(be)}},XR={sku:z.SKU,version:Av,cpu:z.EMPTY_STRING,os:z.EMPTY_STRING},YR={clientSecret:z.EMPTY_STRING,clientAssertion:void 0},QR={azureCloudInstance:Rv.None,tenant:`${z.DEFAULT_COMMON_TENANT}`},ZR={application:{appName:"",appVersion:""}};function JR({authOptions:t,systemOptions:e,loggerOptions:r,cacheOptions:o,storageInterface:n,networkInterface:i,cryptoInterface:a,clientCredentials:s,libraryInfo:c,telemetry:l,serverTelemetryManager:u,persistencePlugin:d,serializableCache:f}){const h={...WR,...r};return{authOptions:eP(t),systemOptions:{...wS,...e},loggerOptions:h,cacheOptions:{...VR,...o},storageInterface:n||new $R(t.clientId,Cd,new Il(h)),networkInterface:i||GR,cryptoInterface:a||Cd,clientCredentials:s||YR,libraryInfo:{...XR,...c},telemetry:{...ZR,...l},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:f||null}}function eP(t){return{clientCapabilities:[],azureCloudOptions:QR,skipAuthorityMetadataCache:!1,...t}}function lg(t){return t.authOptions.authority.options.protocolMode===Jo.OIDC}/*! @azure/msal-common v14.5.0 2023-12-01 */class Xn extends Ve{constructor(e,r,o){super(e,r,o),this.name="ServerError",Object.setPrototypeOf(this,Xn.prototype)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Co{static generateThrottlingStorageKey(e){return`${vc.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,r){const o=Co.generateThrottlingStorageKey(r),n=e.getThrottlingCache(o);if(n){if(n.throttleTime=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(xo.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const r=e<=0?0:e,o=Date.now()/1e3;return Math.floor(Math.min(o+(r||vc.DEFAULT_THROTTLE_TIME_SECONDS),o+vc.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,r,o,n){const i={clientId:r,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:n,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class tP{constructor(e,r){this.networkClient=e,this.cacheManager=r}async sendPostRequest(e,r,o){Co.preProcess(this.cacheManager,e);let n;try{n=await this.networkClient.sendPostRequestAsync(r,o)}catch(i){throw i instanceof Ve?i:X(j_)}return Co.postProcess(this.cacheManager,e,n),n}}/*! @azure/msal-common v14.5.0 2023-12-01 */const _r={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.5.0 2023-12-01 */const os="client_id",rP="redirect_uri",y0="response_type",oP="response_mode",nP="grant_type",iP="claims",aP="scope",sP="refresh_token",cP="state",lP="nonce",uP="prompt",dP="code",fP="code_challenge",hP="code_challenge_method",pP="code_verifier",gP="client-request-id",mP="x-client-SKU",vP="x-client-VER",bP="x-client-OS",yP="x-client-CPU",wP="x-client-current-telemetry",kP="x-client-last-telemetry",_P="x-ms-lib-capability",SP="x-app-name",CP="x-app-ver",TP="post_logout_redirect_uri",xP="id_token_hint",EP="device_code",IP="client_secret",AP="client_assertion",RP="client_assertion_type",w0="token_type",k0="req_cnf",PP="assertion",BP="requested_token_use",_0="return_spa_code",NP="nativebroker",zP="logout_hint",MP="sid",OP="login_hint",DP="domain_hint";/*! @azure/msal-common v14.5.0 2023-12-01 */class di{static validateRedirectUri(e){if(!e)throw Ne(rS)}static validatePrompt(e){const r=[];for(const o in Wt)r.push(Wt[o]);if(r.indexOf(e)<0)throw Ne(iS)}static validateClaims(e){try{JSON.parse(e)}catch{throw Ne(Nv)}}static validateCodeChallengeParams(e,r){if(!e||!r)throw Ne(zv);this.validateCodeChallengeMethod(r)}static validateCodeChallengeMethod(e){if([l0.PLAIN,l0.S256].indexOf(e)<0)throw Ne(cS)}static sanitizeEQParams(e,r){return e?(r.forEach((o,n)=>{e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(o=>o[1]!==""))):{}}}/*! @azure/msal-common v14.5.0 2023-12-01 */class bc{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(y0,encodeURIComponent(z.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(y0,encodeURIComponent(`${z.TOKEN_RESPONSE_TYPE} ${z.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(oP,encodeURIComponent(e||lR.QUERY))}addNativeBroker(){this.parameters.set(NP,encodeURIComponent("1"))}addScopes(e,r=!0,o=xl){r&&!o.includes("openid")&&!e.includes("openid")&&o.push("openid");const n=r?[...e||[],...o]:e||[],i=new pt(n);this.parameters.set(aP,encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(os,encodeURIComponent(e))}addRedirectUri(e){di.validateRedirectUri(e),this.parameters.set(rP,encodeURIComponent(e))}addPostLogoutRedirectUri(e){di.validateRedirectUri(e),this.parameters.set(TP,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(xP,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(DP,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(OP,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(xo.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(xo.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(MP,encodeURIComponent(e))}addClaims(e,r){const o=this.addClientCapabilitiesToClaims(e,r);di.validateClaims(o),this.parameters.set(iP,encodeURIComponent(o))}addCorrelationId(e){this.parameters.set(gP,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(mP,e.sku),this.parameters.set(vP,e.version),e.os&&this.parameters.set(bP,e.os),e.cpu&&this.parameters.set(yP,e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set(SP,e.appName),e?.appVersion&&this.parameters.set(CP,e.appVersion)}addPrompt(e){di.validatePrompt(e),this.parameters.set(`${uP}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(cP,encodeURIComponent(e))}addNonce(e){this.parameters.set(lP,encodeURIComponent(e))}addCodeChallengeParams(e,r){if(di.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(fP,encodeURIComponent(e)),this.parameters.set(hP,encodeURIComponent(r));else throw Ne(zv)}addAuthorizationCode(e){this.parameters.set(dP,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(EP,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(sP,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(pP,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(IP,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(AP,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(RP,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(PP,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(BP,encodeURIComponent(e))}addGrantType(e){this.parameters.set(nP,encodeURIComponent(e))}addClientInfo(){this.parameters.set(uR,"1")}addExtraQueryParameters(e){const r=di.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(o=>{this.parameters.set(o,e[o])})}addClientCapabilitiesToClaims(e,r){let o;if(!e)o={};else try{o=JSON.parse(e)}catch{throw Ne(Nv)}return r&&r.length>0&&(o.hasOwnProperty(Zl.ACCESS_TOKEN)||(o[Zl.ACCESS_TOKEN]={}),o[Zl.ACCESS_TOKEN][Zl.XMS_CC]={values:r}),JSON.stringify(o)}addUsername(e){this.parameters.set(d0.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(d0.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(w0,Be.POP),this.parameters.set(k0,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(w0,Be.SSH),this.parameters.set(k0,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(wP,e.generateCurrentRequestHeaderValue()),this.parameters.set(kP,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(_P,vc.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(zP,encodeURIComponent(e))}createQueryString(){const e=new Array;return this.parameters.forEach((r,o)=>{e.push(`${o}=${r}`)}),e.join("&")}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Fi{static async createDiscoveredInstance(e,r,o,n,i,a,s){a?.addQueueMeasurement(P.AuthorityFactoryCreateDiscoveredInstance,s);const c=qt.transformCIAMAuthority(yS(e)),l=Fi.createInstance(c,r,o,n,i,a,s);try{return await J(l.resolveEndpointsAsync.bind(l),P.AuthorityResolveEndpointsAsync,i,a,s)(),l}catch{throw X(Ho)}}static createInstance(e,r,o,n,i,a,s){if(!e)throw Ne(Bv);return new qt(e,r,o,n,i,a,s)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Lv{constructor(e,r){this.config=JR(e),this.logger=new Il(this.config.loggerOptions,J_,Av),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new tP(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}createTokenRequestHeaders(e){const r={};if(r[xo.CONTENT_TYPE]=z.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case _r.HOME_ACCOUNT_ID:try{const o=Ea(e.credential);r[xo.CCS_HEADER]=`Oid:${o.uid}@${o.utid}`}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case _r.UPN:r[xo.CCS_HEADER]=`UPN: ${e.credential}`;break}return r}async executePostToTokenEndpoint(e,r,o,n,i,a){a&&this.performanceClient?.addQueueMeasurement(a,i);const s=await this.networkManager.sendPostRequest(n,e,{body:r,headers:o});return this.performanceClient?.addFields({refreshTokenSize:s.body.refresh_token?.length||0,httpVerToken:s.headers?.[xo.X_MS_HTTP_VERSION]||""},i),this.config.serverTelemetryManager&&s.status<500&&s.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),s}async updateAuthority(e,r){this.performanceClient?.addQueueMeasurement(P.UpdateTokenEndpointAuthority,r);const o=`https://${e}/${this.authority.tenant}/`,n=await Fi.createDiscoveredInstance(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,this.performanceClient,r);this.authority=n}createTokenQueryParameters(e){const r=new bc;return e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.createQueryString()}}/*! @azure/msal-common v14.5.0 2023-12-01 */const Id="no_tokens_found",kS="native_account_unavailable",jP="interaction_required",FP="consent_required",LP="login_required";/*! @azure/msal-common v14.5.0 2023-12-01 */const S0=[jP,FP,LP],qP=["message_only","additional_action","basic_action","user_password_expired","consent_required"],HP={[Id]:"No refresh token found in the cache. Please sign-in.",[kS]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."};class Ao extends Ve{constructor(e,r,o,n,i,a,s){super(e,r,o),Object.setPrototypeOf(this,Ao.prototype),this.timestamp=n||z.EMPTY_STRING,this.traceId=i||z.EMPTY_STRING,this.correlationId=a||z.EMPTY_STRING,this.claims=s||z.EMPTY_STRING,this.name="InteractionRequiredAuthError"}}function C0(t,e,r){const o=!!t&&S0.indexOf(t)>-1,n=!!r&&qP.indexOf(r)>-1,i=!!e&&S0.some(a=>e.indexOf(a)>-1);return o||i||n}function _S(t){return new Ao(t,HP[t])}/*! @azure/msal-common v14.5.0 2023-12-01 */class La{constructor(e,r,o,n,i){this.account=e||null,this.idToken=r||null,this.accessToken=o||null,this.refreshToken=n||null,this.appMetadata=i||null}}/*! @azure/msal-common v14.5.0 2023-12-01 */class ao{static setRequestState(e,r,o){const n=ao.generateLibraryState(e,o);return r?`${n}${z.RESOURCE_DELIM}${r}`:n}static generateLibraryState(e,r){if(!e)throw X(ng);const o={id:e.createNewGuid()};r&&(o.meta=r);const n=JSON.stringify(o);return e.base64Encode(n)}static parseRequestState(e,r){if(!e)throw X(ng);if(!r)throw X(rs);try{const o=r.split(z.RESOURCE_DELIM),n=o[0],i=o.length>1?o.slice(1).join(z.RESOURCE_DELIM):z.EMPTY_STRING,a=e.base64Decode(n),s=JSON.parse(a);return{userRequestState:i||z.EMPTY_STRING,libraryState:s}}catch{throw X(rs)}}}/*! @azure/msal-common v14.5.0 2023-12-01 */const UP={SW:"sw",UHW:"uhw"};class ns{constructor(e,r){this.cryptoUtils=e,this.performanceClient=r}async generateCnf(e,r){this.performanceClient?.addQueueMeasurement(P.PopTokenGenerateCnf,e.correlationId);const o=await J(this.generateKid.bind(this),P.PopTokenGenerateCnf,r,this.performanceClient,e.correlationId)(e),n=this.cryptoUtils.base64Encode(JSON.stringify(o));return{kid:o.kid,reqCnfString:n,reqCnfHash:await this.cryptoUtils.hashString(n)}}async generateKid(e){return this.performanceClient?.addQueueMeasurement(P.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:UP.SW}}async signPopToken(e,r,o){return this.signPayload(e,r,o)}async signPayload(e,r,o,n){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:s,shrNonce:c,shrOptions:l}=o,d=(a?new Te(a):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Jt.nowSeconds(),m:i?.toUpperCase(),u:d?.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:d?.AbsolutePath,q:d?.QueryString?[[],d.QueryString]:void 0,client_claims:s||void 0,...n},r,l,o.correlationId)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class is{generateAppMetadataKey(){return is.generateAppMetadataCacheKey(this.environment,this.clientId)}static generateAppMetadataCacheKey(e,r){return[tg,e,r].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}static createAppMetadataEntity(e,r,o){const n=new is;return n.clientId=e,n.environment=r,o&&(n.familyId=o),n}static isAppMetadataEntity(e,r){return r?e.indexOf(tg)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1}}/*! @azure/msal-common v14.5.0 2023-12-01 */class $P{constructor(e,r){this.cache=e,this.hasChanged=r}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Li{constructor(e,r,o,n,i,a,s){this.clientId=e,this.cacheStorage=r,this.cryptoObj=o,this.logger=n,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}validateServerAuthorizationCodeResponse(e,r){if(!e.state||!r)throw e.state?X(Sd,"Cached State"):X(Sd,"Server State");let o,n;try{o=decodeURIComponent(e.state)}catch{throw X(rs,e.state)}try{n=decodeURIComponent(r)}catch{throw X(rs,e.state)}if(o!==n)throw X(q_);if(e.error||e.error_description||e.suberror)throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||""):new Xn(e.error||"",e.error_description,e.suberror)}validateTokenResponse(e,r){if(e.error||e.error_description||e.suberror){const o=`${e.error_codes} - [${e.timestamp}]: ${e.error_description} - Correlation ID: ${e.correlation_id} - Trace ID: ${e.trace_id}`,n=new Xn(e.error,o,e.suberror);if(r&&e.status&&e.status>=Ql.SERVER_ERROR_RANGE_START&&e.status<=Ql.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed. +${n}`);return}else if(r&&e.status&&e.status>=Ql.CLIENT_ERROR_RANGE_START&&e.status<=Ql.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token. +${n}`);return}throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error,e.error_description,e.suberror,e.timestamp||z.EMPTY_STRING,e.trace_id||z.EMPTY_STRING,e.correlation_id||z.EMPTY_STRING,e.claims||z.EMPTY_STRING):n}}async handleServerTokenResponse(e,r,o,n,i,a,s,c,l){this.performanceClient?.addQueueMeasurement(P.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=ea(e.id_token||z.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw X(H_);if(n.maxAge||n.maxAge===0){const p=u.auth_time;if(!p)throw X(Tv);eS(p,n.maxAge)}}this.homeAccountIdentifier=Tt.generateHomeAccountId(e.client_info||z.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u);let d;i&&i.state&&(d=ao.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||n.sshKid||void 0;const f=this.generateCacheRecord(e,r,o,n,u,a,i);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new $P(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),s&&!c&&f.account){const p=f.account.generateAccountKey();if(!this.cacheStorage.getAccount(p,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Li.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,void 0,l)}await this.cacheStorage.saveCacheRecord(f,n.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Li.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,e,l)}generateCacheRecord(e,r,o,n,i,a,s){const c=r.getPreferredCache();if(!c)throw X(Ev);const l=gS(i);let u,d;e.id_token&&i&&(u=Ef(this.homeAccountIdentifier,c,e.id_token,this.clientId,l||""),d=qv(this.cacheStorage,r,this.homeAccountIdentifier,i,this.cryptoObj.base64Decode,e.client_info,l,s,void 0,this.logger));let f=null;if(e.access_token){const g=e.scope?pt.fromString(e.scope):new pt(n.scopes||[]),y=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,b=o+y,k=b+v,S=m&&m>0?o+m:void 0;f=If(this.homeAccountIdentifier,c,e.access_token,this.clientId,l||r.tenant,g.printScopes(),b,k,this.cryptoObj.base64Decode,S,e.token_type,a,e.key_id,n.claims,n.requestedClaimsHash)}let h=null;e.refresh_token&&(h=tS(this.homeAccountIdentifier,c,e.refresh_token,this.clientId,e.foci,a));let p=null;return e.foci&&(p=is.createAppMetadataEntity(this.clientId,c,e.foci)),new La(d,u,f,h,p)}static async generateAuthenticationResult(e,r,o,n,i,a,s,c,l){let u=z.EMPTY_STRING,d=[],f=null,h,p,g=z.EMPTY_STRING;if(o.accessToken){if(o.accessToken.tokenType===Be.POP){const b=new ns(e),{secret:k,keyId:S}=o.accessToken;if(!S)throw X(Iv);u=await b.signPopToken(k,S,i)}else u=o.accessToken.secret;d=pt.fromString(o.accessToken.target).asArray(),f=new Date(Number(o.accessToken.expiresOn)*1e3),h=new Date(Number(o.accessToken.extendedExpiresOn)*1e3),o.accessToken.refreshOn&&(p=new Date(Number(o.accessToken.refreshOn)*1e3))}o.appMetadata&&(g=o.appMetadata.familyId===gc?gc:"");const y=a?.oid||a?.sub||"",v=a?.tid||"";c?.spa_accountid&&o.account&&(o.account.nativeAccountId=c?.spa_accountid);const m=o.account?jv(o.account.getAccountInfo(),void 0,a):null;return{authority:r.canonicalAuthority,uniqueId:y,tenantId:v,scopes:d,account:m,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:u,fromCache:n,expiresOn:f,extExpiresOn:h,refreshOn:p,correlationId:i.correlationId,requestId:l||z.EMPTY_STRING,familyId:g,tokenType:o.accessToken?.tokenType||z.EMPTY_STRING,state:s?s.userRequestState:z.EMPTY_STRING,cloudGraphHostName:o.account?.cloudGraphHostName||z.EMPTY_STRING,msGraphHost:o.account?.msGraphHost||z.EMPTY_STRING,code:c?.spa_code,fromNativeBroker:!1}}}function qv(t,e,r,o,n,i,a,s,c,l){l?.verbose("setCachedAccount called");const d=t.getAccountKeys().find(g=>g.startsWith(r));let f=null;d&&(f=t.getAccount(d,l));const h=f||Tt.createAccount({homeAccountId:r,idTokenClaims:o,clientInfo:i,cloudGraphHostName:s?.cloud_graph_host_name,msGraphHost:s?.msgraph_host,nativeAccountId:c},e,n),p=h.tenantProfiles||[];if(a&&!p.find(g=>g.tenantId===a)){const g=Dv(r,o);p.push(g)}return h.tenantProfiles=p,h}/*! @azure/msal-common v14.5.0 2023-12-01 */class SS extends Lv{constructor(e,r){super(e,r),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async getAuthCodeUrl(e){this.performanceClient?.addQueueMeasurement(P.GetAuthCodeUrl,e.correlationId);const r=await J(this.createAuthCodeUrlQueryString.bind(this),P.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return Te.appendQueryString(this.authority.authorizationEndpoint,r)}async acquireToken(e,r){if(this.performanceClient?.addQueueMeasurement(P.AuthClientAcquireToken,e.correlationId),!e.code)throw X(K_);const o=Jt.nowSeconds(),n=await J(this.executeTokenRequest.bind(this),P.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=n.headers?.[xo.X_MS_REQUEST_ID],a=new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(n.body),J(a.handleServerTokenResponse.bind(a),P.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,o,e,r,void 0,void 0,void 0,i)}handleFragmentResponse(e,r){if(new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,r),!e.code)throw X(Y_);return e}getLogoutUri(e){if(!e)throw Ne(sS);const r=this.createLogoutUrlQueryString(e);return Te.appendQueryString(this.authority.endSessionEndpoint,r)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(P.AuthClientExecuteTokenRequest,r.correlationId);const o=this.createTokenQueryParameters(r),n=Te.appendQueryString(e.tokenEndpoint,o),i=await J(this.createTokenRequestBody.bind(this),P.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,r.correlationId)(r);let a;if(r.clientInfo)try{const l=Td(r.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${l.uid}${Ht.CLIENT_INFO_SEPARATOR}${l.utid}`,type:_r.HOME_ACCOUNT_ID}}catch(l){this.logger.verbose("Could not parse client info for CCS Header: "+l)}const s=this.createTokenRequestHeaders(a||r.ccsCredential),c={clientId:r.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return J(this.executePostToTokenEndpoint.bind(this),P.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,r.correlationId)(n,i,s,c,r.correlationId,P.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(P.AuthClientCreateTokenRequestBody,e.correlationId);const r=new bc;if(r.addClientId(e.tokenBodyParameters?.[os]||this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):di.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,this.oidcDefaultScopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!lg(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const i=this.config.clientCredentials.clientAssertion;r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)}if(r.addGrantType(z_.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme===Be.POP){const i=new ns(this.cryptoUtils,this.performanceClient),a=await J(i.generateCnf.bind(i),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfString)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Ne(Af);const o=e.correlationId||this.config.cryptoInterface.createNewGuid();r.addCorrelationId(o),(!io.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const i=Td(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${i.uid}${Ht.CLIENT_INFO_SEPARATOR}${i.utid}`,type:_r.HOME_ACCOUNT_ID}}catch(i){this.logger.verbose("Could not parse client info for CCS Header: "+i)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case _r.HOME_ACCOUNT_ID:try{const i=Ea(n.credential);r.addCcsOid(i)}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case _r.UPN:r.addCcsUpn(n.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[_0])&&r.addExtraQueryParameters({[_0]:"1"}),r.createQueryString()}async createAuthCodeUrlQueryString(e){this.performanceClient?.addQueueMeasurement(P.AuthClientCreateQueryString,e.correlationId);const r=new bc;r.addClientId(e.extraQueryParameters?.[os]||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri);const n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(r.addCorrelationId(n),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),lg(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==Wt.SELECT_ACCOUNT)if(e.sid&&e.prompt===Wt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account);if(a){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(a);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===Wt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(i);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const s=Ea(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Be.POP)){const i=new ns(this.cryptoUtils),a=await J(i.generateCnf.bind(i),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfHash)}return r.createQueryString()}createLogoutUrlQueryString(e){const r=new bc;return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),r.createQueryString()}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}/*! @azure/msal-common v14.5.0 2023-12-01 */class ug extends Lv{constructor(e,r){super(e,r)}async acquireToken(e){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireToken,e.correlationId);const r=Jt.nowSeconds(),o=await J(this.executeTokenRequest.bind(this),P.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),n=o.headers?.[xo.X_MS_REQUEST_ID],i=new Li(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(o.body),J(i.handleServerTokenResponse.bind(i),P.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,void 0,void 0,!0,e.forceCache,n)}async acquireTokenByRefreshToken(e){if(!e)throw Ne(aS);if(this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw X(xv);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const n=o instanceof Ao&&o.errorCode===Id,i=o instanceof Xn&&o.errorCode===u0.INVALID_GRANT_ERROR&&o.subError===u0.CLIENT_MISMATCH_ERROR;if(n||i)return J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return J(this.acquireTokenWithCachedRefreshToken.bind(this),P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,r){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const o=ta(this.cacheManager.getRefreshToken.bind(this.cacheManager),P.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,r,void 0,this.performanceClient,e.correlationId);if(!o)throw _S(Id);const n={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||Be.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:_r.HOME_ACCOUNT_ID}};return J(this.acquireToken.bind(this),P.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(n)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientExecuteTokenRequest,e.correlationId);const o=this.createTokenQueryParameters(e),n=Te.appendQueryString(r.tokenEndpoint,o),i=await J(this.createTokenRequestBody.bind(this),P.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),s={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return J(this.executePostToTokenEndpoint.bind(this),P.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(n,i,a,s,e.correlationId,P.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(P.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const r=e.correlationId,o=new bc;if(o.addClientId(e.tokenBodyParameters?.[os]||this.config.authOptions.clientId),e.redirectUri&&o.addRedirectUri(e.redirectUri),o.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),o.addGrantType(z_.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&!lg(this.config)&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(r),o.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;o.addClientAssertion(n.assertion),o.addClientAssertionType(n.assertionType)}if(e.authenticationScheme===Be.POP){const n=new ns(this.cryptoUtils,this.performanceClient),i=await J(n.generateCnf.bind(n),P.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o.addPopToken(i.reqCnfString)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)o.addSshJwk(e.sshJwk);else throw Ne(Af);if((!io.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case _r.HOME_ACCOUNT_ID:try{const n=Ea(e.ccsCredential.credential);o.addCcsOid(n)}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case _r.UPN:o.addCcsUpn(e.ccsCredential.credential);break}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),o.createQueryString()}}/*! @azure/msal-common v14.5.0 2023-12-01 */class KP extends Lv{constructor(e,r){super(e,r)}async acquireToken(e){try{const[r,o]=await this.acquireCachedToken(e);return o===xn.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new ug(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof xf&&r.errorCode===zn)return new ug(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(P.SilentFlowClientAcquireCachedToken,e.correlationId);let r=xn.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!io.isEmptyObj(e.claims))throw this.setCacheOutcome(xn.FORCE_REFRESH_OR_CLAIMS,e.correlationId),X(zn);if(!e.account)throw X(xv);const o=e.authority||this.authority.getPreferredCache(),n=this.cacheManager.readCacheRecord(e.account,e,o,this.performanceClient,e.correlationId);if(n.accessToken){if(Jt.wasClockTurnedBack(n.accessToken.cachedAt)||Jt.isTokenExpired(n.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(xn.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),X(zn);n.accessToken.refreshOn&&Jt.isTokenExpired(n.accessToken.refreshOn,0)&&(r=xn.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(xn.NO_CACHED_ACCESS_TOKEN,e.correlationId),X(zn);return this.setCacheOutcome(r,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await J(this.generateResultFromCacheRecord.bind(this),P.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(n,e),r]}setCacheOutcome(e,r){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},r),e!==xn.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,r){this.performanceClient?.addQueueMeasurement(P.SilentFlowClientGenerateResultFromCacheRecord,r.correlationId);let o;if(e.idToken&&(o=ea(e.idToken.secret,this.config.cryptoInterface.base64Decode)),r.maxAge||r.maxAge===0){const n=o?.auth_time;if(!n)throw X(Tv);eS(n,r.maxAge)}return Li.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,o)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class T0{static isThrottlingEntity(e,r){let o=!1;e&&(o=e.indexOf(vc.THROTTLING_PREFIX)===0);let n=!0;return r&&(n=r.hasOwnProperty("throttleTime")),o&&n}}/*! @azure/msal-common v14.5.0 2023-12-01 */const WP={sendGetRequestAsync:()=>Promise.reject(X(be)),sendPostRequestAsync:()=>Promise.reject(X(be))};/*! @azure/msal-common v14.5.0 2023-12-01 */const CS="missing_kid_error",TS="missing_alg_error";/*! @azure/msal-common v14.5.0 2023-12-01 */const VP={[CS]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[TS]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class Hv extends Ve{constructor(e,r){super(e,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,Hv.prototype)}}function x0(t){return new Hv(t,VP[t])}/*! @azure/msal-common v14.5.0 2023-12-01 */class Uv{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw x0(CS);if(!e.alg)throw x0(TS);const r=new Uv({typ:e.typ||dR.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)}}/*! @azure/msal-common v14.5.0 2023-12-01 */class Ad{constructor(e,r){this.cacheOutcome=xn.NOT_APPLICABLE,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||z.EMPTY_STRING,this.wrapperVer=e.wrapperVer||z.EMPTY_STRING,this.telemetryCacheKey=Nt.CACHE_KEY+Ht.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Nt.VALUE_SEPARATOR}${this.cacheOutcome}`,r=[this.wrapperSKU,this.wrapperVer].join(Nt.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),n=[e,o].join(Nt.VALUE_SEPARATOR);return[Nt.SCHEMA_VERSION,n,r].join(Nt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),r=Ad.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*r).join(Nt.VALUE_SEPARATOR),n=e.errors.slice(0,r).join(Nt.VALUE_SEPARATOR),i=e.errors.length,a=r=Nt.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Ve?e.subError?r.errors.push(e.subError):e.errorCode?r.errors.push(e.errorCode):r.errors.push(e.toString()):r.errors.push(e.toString()):r.errors.push(Nt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),r=Ad.maxErrorsToSend(e),o=e.errors.length;if(r===o)this.cacheManager.removeItem(this.telemetryCacheKey);else{const n={failedRequests:e.failedRequests.slice(r*2),errors:e.errors.slice(r),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}}static maxErrorsToSend(e){let r,o=0,n=0;const i=e.errors.length;for(r=0;rnull,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:qR.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:r||""},measurement:new E0}}startPerformanceMeasurement(){return new E0}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const $v="pkce_not_created",xS="crypto_nonexistent",Pf="empty_navigate_uri",ES="hash_empty_error",Kv="no_state_in_hash",IS="hash_does_not_contain_known_properties",AS="unable_to_parse_state",RS="state_interaction_type_mismatch",PS="interaction_in_progress",BS="popup_window_error",NS="empty_window_error",qi="user_cancelled",XP="monitor_popup_timeout",zS="monitor_window_timeout",MS="redirect_in_iframe",OS="block_iframe_reload",DS="block_nested_popups",YP="iframe_closed_prematurely",Bf="silent_logout_unsupported",jS="no_account_error",FS="silent_prompt_value_error",LS="no_token_request_cache_error",qS="unable_to_parse_token_request_cache_error",Wv="no_cached_authority_error",QP="auth_request_not_set_error",ZP="invalid_cache_type",HS="non_browser_environment",ka="database_not_open",Rd="no_network_connectivity",US="post_request_failed",$S="get_request_failed",dg="failed_to_parse_response",Gr="unable_to_load_token",Vv="crypto_key_not_found",KS="auth_code_required",WS="auth_code_or_nativeAccountId_required",VS="spa_code_and_nativeAccountId_present",Gv="database_unavailable",GS="unable_to_acquire_token_from_native_platform",XS="native_handshake_timeout",YS="native_extension_not_installed",Al="native_connection_not_established",QS="uninitialized_public_client_application",ZS="native_prompt_not_supported",JS="invalid_base64_string";/*! @azure/msal-browser v3.6.0 2023-12-01 */const jo="For more visit: aka.ms/msaljs/browser-errors",JP={[$v]:"The PKCE code challenge and verifier could not be generated.",[xS]:"The crypto object or function is not available.",[Pf]:"Navigation URI is empty. Please check stack trace for more info.",[ES]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${jo}`,[Kv]:"Hash does not contain state. Please verify that the request originated from msal.",[IS]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${jo}`,[AS]:"Unable to parse state. Please verify that the request originated from msal.",[RS]:"Hash contains state but the interaction type does not match the caller.",[PS]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${jo}`,[BS]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[NS]:"window.open returned null or undefined window object.",[qi]:"User cancelled the flow.",[XP]:`Token acquisition in popup failed due to timeout. ${jo}`,[zS]:`Token acquisition in iframe failed due to timeout. ${jo}`,[MS]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[OS]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${jo}`,[DS]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[YP]:"The iframe being monitored was closed prematurely.",[Bf]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[jS]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[FS]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[LS]:"No token request found in cache.",[qS]:"The cached token request could not be parsed.",[Wv]:"No cached authority found.",[QP]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[ZP]:"Invalid cache type",[HS]:"Login and token requests are not supported in non-browser environments.",[ka]:"Database is not open!",[Rd]:"No network connectivity. Check your internet connection.",[US]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[$S]:"Network request failed. Please check the network trace to determine root cause.",[dg]:"Failed to parse network response. Check network trace.",[Gr]:"Error loading token to cache.",[Vv]:"Cryptographic Key or Keypair not found in browser storage.",[KS]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[WS]:"An authorization code or nativeAccountId must be provided to this flow.",[VS]:"Request cannot contain both spa code and native account id.",[Gv]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[GS]:`Unable to acquire token from native platform. ${jo}`,[XS]:"Timed out while attempting to establish connection to browser extension",[YS]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[Al]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${jo}`,[QS]:`You must call and await the initialize function before attempting to call any other MSAL API. ${jo}`,[ZS]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[JS]:"Invalid base64 encoded string."};class Rl extends Ve{constructor(e){super(e,JP[e]),Object.setPrototypeOf(this,Rl.prototype),this.name="BrowserAuthError"}}function re(t){return new Rl(t)}/*! @azure/msal-browser v3.6.0 2023-12-01 */const eo={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},ic={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},ki={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},It={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},I0={GET:"GET",POST:"POST"},Ie={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},_n={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},tu={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Le={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var oe;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(oe||(oe={}));const rt={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},A0={scopes:xl},eC="jwk",eB={React:"@azure/msal-react",Angular:"@azure/msal-angular"},fg="msal.db",tB=1,rB=`${fg}.keys`,zr={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5};/*! @azure/msal-browser v3.6.0 2023-12-01 */function oB(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function nB(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function Xv(){return window.parent!==window}function iB(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${eo.POPUP_NAME_PREFIX}.`)===0}function Xo(){return window.location.href.split("?")[0].split("#")[0]}function aB(){const e=new Te(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function Ph(){if(Te.hashContainsKnownProperties(window.location.hash)&&Xv())throw re(OS)}function sB(t,e){const r=Xv();if(t===oe.Redirect&&r&&!e)throw re(MS)}function cB(){if(iB())throw re(DS)}function lB(t){if(!t)throw re(HS)}function R0(t){if(!t)throw re(QS)}function tC(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}const uB=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),dB=function(t){return"/"+t},P0={},Ts=function(e,r,o){let n=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link");n=Promise.all(r.map(a=>{if(a=dB(a),a in P0)return;P0[a]=!0;const s=a.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${c}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":uB,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! @azure/msal-browser v3.6.0 2023-12-01 */class Pd{navigateInternal(e,r){return Pd.defaultNavigateWindow(e,r)}navigateExternal(e,r){return Pd.defaultNavigateWindow(e,r)}static defaultNavigateWindow(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(o=>{setTimeout(()=>{o(!0)},r.timeout)})}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class fB{async sendGetRequestAsync(e,r){let o;try{o=await fetch(e,{method:I0.GET,headers:this.getFetchHeaders(r)})}catch{throw window.navigator.onLine?re($S):re(Rd)}try{return{headers:this.getHeaderDict(o.headers),body:await o.json(),status:o.status}}catch{throw re(dg)}}async sendPostRequestAsync(e,r){const o=r&&r.body||z.EMPTY_STRING;let n;try{n=await fetch(e,{method:I0.POST,headers:this.getFetchHeaders(r),body:o})}catch{throw window.navigator.onLine?re(US):re(Rd)}try{return{headers:this.getHeaderDict(n.headers),body:await n.json(),status:n.status}}catch{throw re(dg)}}getFetchHeaders(e){const r=new Headers;if(!(e&&e.headers))return r;const o=e.headers;return Object.keys(o).forEach(n=>{r.append(n,o[n])}),r}getHeaderDict(e){const r={};return e.forEach((o,n)=>{r[n]=o}),r}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const hB=6e4,hg=1e4,pB=3e4,gB=2e3;function mB({auth:t,cache:e,system:r,telemetry:o},n){const i={clientId:z.EMPTY_STRING,authority:`${z.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:z.EMPTY_STRING,authorityMetadata:z.EMPTY_STRING,redirectUri:z.EMPTY_STRING,postLogoutRedirectUri:z.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Jo.AAD,OIDCOptions:{serverResponseType:El.FRAGMENT,defaultScopes:[z.OPENID_SCOPE,z.PROFILE_SCOPE,z.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Rv.None,tenant:z.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},a={cacheLocation:It.SessionStorage,temporaryCacheLocation:It.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===It.LocalStorage),claimsBasedCachingEnabled:!1},s={loggerCallback:()=>{},logLevel:ht.Info,piiLoggingEnabled:!1},l={...{...wS,loggerOptions:s,networkClient:n?new fB:WP,navigationClient:new Pd,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||hB,iframeHashTimeout:r?.loadFrameTimeout||hg,navigateFrameWait:0,redirectNavigationTimeout:pB,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||gB,pollIntervalMilliseconds:eo.DEFAULT_POLL_INTERVAL_MS},...r,loggerOptions:r?.loggerOptions||s},u={application:{appName:z.EMPTY_STRING,appVersion:z.EMPTY_STRING},client:new GP};if(t?.protocolMode!==Jo.OIDC&&t?.OIDCOptions&&new Il(l.loggerOptions).warning(JSON.stringify(Ne(fS))),t?.protocolMode&&t.protocolMode!==Jo.AAD&&l?.allowNativeBroker)throw Ne(hS);return{auth:{...i,...t,OIDCOptions:{...i.OIDCOptions,...t?.OIDCOptions}},cache:{...a,...e},system:l,telemetry:{...u,...o}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const vB="@azure/msal-browser",Yv="3.6.0";/*! @azure/msal-browser v3.6.0 2023-12-01 */class bB{constructor(e){this.browserEnvironment=typeof window<"u",this.config=mB(e,this.browserEnvironment),this.logger=new Il(this.config.system.loggerOptions,vB,Yv),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class Hi extends bB{getModuleName(){return Hi.MODULE_NAME}getId(){return Hi.ID}async initialize(){return this.available=typeof window<"u",this.available}}Hi.MODULE_NAME="";Hi.ID="StandardOperatingContext";async function yB(t){const e=new Hi(t);return await e.initialize(),(await Ts(()=>Promise.resolve().then(()=>aN),void 0)).StandardController.createController(e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */function Bh(t){return encodeURIComponent(Qv(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Bd(t){return rC(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Qv(t){return rC(new TextEncoder().encode(t))}function rC(t){const e=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */function Ro(t){return new TextDecoder().decode(wB(t))}function wB(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw re(JS)}const r=atob(e);return Uint8Array.from(r,o=>o.codePointAt(0)||0)}/*! @azure/msal-browser v3.6.0 2023-12-01 */const kB="RSASSA-PKCS1-v1_5",oC="SHA-256",_B=2048,SB=new Uint8Array([1,0,1]),Zv={name:kB,hash:oC,modulusLength:_B,publicExponent:SB};function CB(t){if("crypto"in window)t.verbose("BrowserCrypto: modern crypto interface available");else throw t.error("BrowserCrypto: crypto interface is unavailable"),re(xS)}async function nC(t,e,r){e?.addQueueMeasurement(P.Sha256Digest,r);const n=new TextEncoder().encode(t);return window.crypto.subtle.digest(oC,n)}function TB(t){return window.crypto.getRandomValues(t)}function Yn(){return window.crypto.randomUUID()}async function xB(t,e){return window.crypto.subtle.generateKey(Zv,t,e)}async function Nh(t){return window.crypto.subtle.exportKey(eC,t)}async function EB(t,e,r){return window.crypto.subtle.importKey(eC,t,Zv,e,r)}async function IB(t,e){return window.crypto.subtle.sign(Zv,t,e)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class AB{constructor(){this.dbName=fg,this.version=tB,this.tableName=rB,this.dbOpen=!1}async open(){return new Promise((e,r)=>{const o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",n=>{n.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",n=>{const i=n;this.db=i.target.result,this.dbOpen=!0,e()}),o.addEventListener("error",()=>r(re(Gv)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",s=>{const c=s;this.closeConnection(),r(c.target.result)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async setItem(e,r){return await this.validateDbIsOpen(),new Promise((o,n)=>{if(!this.db)return n(re(ka));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(r,e);s.addEventListener("success",()=>{this.closeConnection(),o()}),s.addEventListener("error",c=>{this.closeConnection(),n(c)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,r)=>{if(!this.db)return r(re(ka));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",a=>{const s=a;this.closeConnection(),e(s.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(ka));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",s=>{const c=s;this.closeConnection(),r(c.target.result===1)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,r)=>{const o=window.indexedDB.deleteDatabase(fg);o.addEventListener("success",()=>e(!0)),o.addEventListener("blocked",()=>e(!0)),o.addEventListener("error",()=>r(!1))})}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class pg{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,r){this.cache.set(e,r)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((r,o)=>{e.push(o)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class B0{constructor(e,r){this.inMemoryCache=new pg,this.indexedDBCache=new AB,this.logger=e,this.storeName=r}handleDatabaseAccessError(e){if(e instanceof Rl&&e.errorCode===Gv)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(o){this.handleDatabaseAccessError(o)}return r}async setItem(e,r){this.inMemoryCache.setItem(e,r);try{await this.indexedDBCache.setItem(e,r)}catch(o){this.handleDatabaseAccessError(o)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(r){this.handleDatabaseAccessError(r)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(r){this.handleDatabaseAccessError(r)}return e}async containsKey(e){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(o){this.handleDatabaseAccessError(o)}return r}clearInMemory(){this.logger.verbose(`Deleting in-memory keystore ${this.storeName}`),this.inMemoryCache.clear(),this.logger.verbose(`In-memory keystore ${this.storeName} deleted`)}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const N0={asymmetricKeys:"asymmetricKeys",symmetricKeys:"symmetricKeys"};class RB{constructor(e){this.logger=e,this.asymmetricKeys=new B0(this.logger,N0.asymmetricKeys),this.symmetricKeys=new B0(this.logger,N0.symmetricKeys)}async clear(){this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory();try{return await this.asymmetricKeys.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class as{constructor(e,r){this.logger=e,CB(e),this.cache=new RB(this.logger),this.performanceClient=r}createNewGuid(){return Yn()}base64Encode(e){return Qv(e)}base64Decode(e){return Ro(e)}async getPublicKeyThumbprint(e){const r=this.performanceClient?.startMeasurement(P.CryptoOptsGetPublicKeyThumbprint,e.correlationId),o=await xB(as.EXTRACTABLE,as.POP_KEY_USAGES),n=await Nh(o.publicKey),i={e:n.e,kty:n.kty,n:n.n},a=z0(i),s=await this.hashString(a),c=await Nh(o.privateKey),l=await EB(c,!1,["sign"]);return await this.cache.asymmetricKeys.setItem(s,{privateKey:l,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),r&&r.end({success:!0}),s}async removeTokenBindingKey(e){return await this.cache.asymmetricKeys.removeItem(e),!await this.cache.asymmetricKeys.containsKey(e)}async clearKeystore(){return this.cache.clear()}async signJwt(e,r,o,n){const i=this.performanceClient?.startMeasurement(P.CryptoOptsSignJwt,n),a=await this.cache.asymmetricKeys.getItem(r);if(!a)throw re(Vv);const s=await Nh(a.publicKey),c=z0(s),l=Bh(JSON.stringify({kid:r})),u=Uv.getShrHeaderString({...o?.header,alg:s.alg,kid:l}),d=Bh(u);e.cnf={jwk:JSON.parse(c)};const f=Bh(JSON.stringify(e)),h=`${d}.${f}`,g=new TextEncoder().encode(h),y=await IB(a.privateKey,g),v=Bd(new Uint8Array(y)),m=`${h}.${v}`;return i&&i.end({success:!0}),m}async hashString(e){const r=await nC(e),o=new Uint8Array(r);return Bd(o)}}as.POP_KEY_USAGES=["sign","verify"];as.EXTRACTABLE=!0;function z0(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v3.6.0 2023-12-01 */const iC="storage_not_supported",Et="stubbed_public_client_application_called",aC="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.6.0 2023-12-01 */const PB={[iC]:"Given storage configuration option was not supported.",[Et]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[aC]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class Jv extends Ve{constructor(e,r){super(e,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Jv.prototype)}}function wt(t){return new Jv(t,PB[t])}/*! @azure/msal-browser v3.6.0 2023-12-01 */class M0{constructor(e){this.validateWindowStorage(e),this.windowStorage=window[e]}validateWindowStorage(e){if(e!==It.LocalStorage&&e!==It.SessionStorage||!window[e])throw wt(iC)}getItem(e){return this.windowStorage.getItem(e)}setItem(e,r){this.windowStorage.setItem(e,r)}removeItem(e){this.windowStorage.removeItem(e)}getKeys(){return Object.keys(this.windowStorage)}containsKey(e){return this.windowStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */function sC(t,e){if(!e)return null;try{return ao.parseRequestState(t,e).libraryState.meta}catch{throw X(rs)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class gg extends Wo{constructor(e,r,o,n,i){super(e,o,n,i),this.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,this.cacheConfig=r,this.logger=n,this.internalStorage=new pg,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps())}setupBrowserStorage(e){switch(e){case It.LocalStorage:case It.SessionStorage:try{return new M0(e)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=It.MemoryStorage,new pg}setupTemporaryCacheStorage(e,r){switch(r){case It.LocalStorage:case It.SessionStorage:try{return new M0(e||It.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case It.MemoryStorage:default:return this.internalStorage}}migrateCacheEntries(){const e=`${z.CACHE_PREFIX}.${Bt.ID_TOKEN}`,r=`${z.CACHE_PREFIX}.${Bt.CLIENT_INFO}`,o=`${z.CACHE_PREFIX}.${Bt.ERROR}`,n=`${z.CACHE_PREFIX}.${Bt.ERROR_DESC}`,i=this.browserStorage.getItem(e),a=this.browserStorage.getItem(r),s=this.browserStorage.getItem(o),c=this.browserStorage.getItem(n),l=[i,a,s,c];[Bt.ID_TOKEN,Bt.CLIENT_INFO,Bt.ERROR,Bt.ERROR_DESC].forEach((d,f)=>this.migrateCacheEntry(d,l[f]))}migrateCacheEntry(e,r){r&&this.setTemporaryCache(e,r,!0)}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(_n.ACCOUNT_KEYS),r=this.getItem(`${_n.TOKEN_KEYS}.${this.clientId}`);if(e&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(n=>{if(this.isCredentialKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case he.ID_TOKEN:if(g0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${n}`);break;case he.ACCESS_TOKEN:case he.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(p0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${n}`);break;case he.REFRESH_TOKEN:if(m0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${n} found, saving key to token key map`);const s=a,c=this.updateCredentialCacheKey(n,s);this.addTokenKey(c,he.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${n}`);break}}}if(this.isAccountKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);a&&Tt.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${n} found, saving key to account key map`),this.addAccountKeyToMap(n))}}})}validateAndParseJson(e){try{const r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,r){this.browserStorage.setItem(e,r)}getAccount(e,r){this.logger.trace("BrowserCacheManager.getAccount called");const o=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,o,r)}getCachedAccountEntity(e){const r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e),null;const o=this.validateAndParseJson(r);return!o||!Tt.isAccountEntity(o)?(this.removeAccountKeyFromMap(e),null):Wo.toObject(new Tt,o)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const r=e.generateAccountKey();this.setItem(r,JSON.stringify(e)),this.addAccountKeyToMap(r)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(_n.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(_n.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);o>-1?(r.splice(o,1),this.setItem(_n.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,he.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,he.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,he.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${_n.TOKEN_KEYS}.${this.clientId}`);if(e){const r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,r){this.logger.trace("BrowserCacheManager addTokenKey called");const o=this.getTokenKeys();switch(r){case he.ID_TOKEN:o.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(e));break;case he.ACCESS_TOKEN:o.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(e));break;case he.REFRESH_TOKEN:o.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(ig)}this.setItem(`${_n.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}removeTokenKey(e,r){this.logger.trace("BrowserCacheManager removeTokenKey called");const o=this.getTokenKeys();switch(r){case he.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const n=o.idToken.indexOf(e);n>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(n,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case he.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const i=o.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case he.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=o.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(ig)}this.setItem(`${_n.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}getIdTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ID_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!g0(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.ID_TOKEN)}getAccessTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ACCESS_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!p0(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.ACCESS_TOKEN)}getRefreshTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.REFRESH_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!m0(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,he.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=oc(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,he.REFRESH_TOKEN)}getAppMetadata(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!is.isAppMetadataEntity(e,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Wo.toObject(new is,o))}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=e.generateAppMetadataKey();this.setItem(r,JSON.stringify(e))}getServerTelemetry(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!PR(e,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o)}setServerTelemetry(e,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r))}getAuthorityMetadata(e){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return o&&cg.isAuthorityMetadataEntity(e,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Wo.toObject(new cg,o)):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(r=>this.isAuthorityMetadata(r))}setWrapperMetadata(e,r){this.internalStorage.setItem(tu.WRAPPER_SKU,e),this.internalStorage.setItem(tu.WRAPPER_VER,r)}getWrapperMetadata(){const e=this.internalStorage.getItem(tu.WRAPPER_SKU)||z.EMPTY_STRING,r=this.internalStorage.getItem(tu.WRAPPER_VER)||z.EMPTY_STRING;return[e,r]}setAuthorityMetadata(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))}getActiveAccount(){const e=this.generateCacheKey(Bt.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(e);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const n=this.generateCacheKey(Bt.ACTIVE_ACCOUNT),i=this.getItem(n);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:i});return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const r=this.generateCacheKey(Bt.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Bt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(r,JSON.stringify(n)),this.browserStorage.setItem(o,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)}getThrottlingCache(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!T0.isThrottlingEntity(e,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Wo.toObject(new T0,o))}setThrottlingCache(e,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r))}getTemporaryCache(e,r){const o=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const n=this.temporaryCacheStorage.getItem(o);if(!n){if(this.cacheConfig.cacheLocation===It.LocalStorage){const i=this.browserStorage.getItem(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),n}setTemporaryCache(e,r,o){const n=o?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(n,r))}removeItem(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))}containsKey(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)}getKeys(){return[...this.browserStorage.getKeys(),...this.temporaryCacheStorage.getKeys()]}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.getKeys().forEach(e=>{(this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e))&&(e.indexOf(z.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e){e.addQueueMeasurement(P.ClearTokensAndKeysWithClaims);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(n=>{const i=this.getAccessTokenCredential(n);i?.requestedClaimsHash&&n.includes(i.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(n))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}setItemCookie(e,r,o){let n=`${encodeURIComponent(e)}=${encodeURIComponent(r)};path=/;SameSite=Lax;`;if(o){const i=this.getCookieExpirationTime(o);n+=`expires=${i};`}this.cacheConfig.secureCookies&&(n+="Secure;"),document.cookie=n}getItemCookie(e){const r=`${encodeURIComponent(e)}=`,o=document.cookie.split(";");for(let n=0;n{for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(e)===0){const n=o.split("=")[0];this.clearItemCookie(n)}})}clearItemCookie(e){this.setItemCookie(e,z.EMPTY_STRING,-1)}getCookieExpirationTime(e){const r=new Date;return new Date(r.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}getCache(){return this.browserStorage}setCache(){}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):io.startsWith(e,z.CACHE_PREFIX)||io.startsWith(e,Bt.ADAL_ID_TOKEN)?e:`${z.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.AUTHORITY}.${r}`)}generateNonceKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.NONCE_IDTOKEN}.${r}`)}generateStateKey(e){const{libraryState:{id:r}}=ao.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ie.REQUEST_STATE}.${r}`)}getCachedAuthority(e){const r=this.generateStateKey(e),o=this.getTemporaryCache(r);if(!o)return null;const n=this.generateAuthorityKey(o);return this.getTemporaryCache(n)}updateCacheEntries(e,r,o,n,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const s=this.generateNonceKey(e);this.setTemporaryCache(s,r,!1);const c=this.generateAuthorityKey(e);if(this.setTemporaryCache(c,o,!1),i){const l={credential:i.homeAccountId,type:_r.HOME_ACCOUNT_ID};this.setTemporaryCache(Ie.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(n){const l={credential:n,type:_r.UPN};this.setTemporaryCache(Ie.CCS_CREDENTIAL,JSON.stringify(l),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.getKeys().forEach(r=>{r.indexOf(e)!==-1&&this.removeItem(r)}),this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(Ie.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ie.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ie.URL_HASH)),this.removeItem(this.generateCacheKey(Ie.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ie.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ie.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const r=this.generateStateKey(e),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o||z.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(r=>{if(r.indexOf(Ie.REQUEST_STATE)===-1)return;const o=this.temporaryCacheStorage.getItem(r);if(!o)return;const n=sC(this.cryptoImpl,o);n&&n.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const r=Qv(JSON.stringify(e));this.setTemporaryCache(Ie.REQUEST_PARAMS,r,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const r=this.getTemporaryCache(Ie.REQUEST_PARAMS,!0);if(!r)throw re(LS);let o;try{o=JSON.parse(Ro(r))}catch(n){throw this.logger.errorPii(`Attempted to parse: ${r}`),this.logger.error(`Parsing cached token request threw with error: ${n}`),re(qS)}if(this.removeItem(this.generateCacheKey(Ie.REQUEST_PARAMS)),!o.authority){const n=this.generateAuthorityKey(e),i=this.getTemporaryCache(n);if(!i)throw re(Wv);o.authority=i}return o}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ie.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const r=this.getInteractionInProgress();return e?r===this.clientId:!!r}getInteractionInProgress(){const e=`${z.CACHE_PREFIX}.${Ie.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const r=`${z.CACHE_PREFIX}.${Ie.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw re(PS);this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)}getLegacyLoginHint(){const e=this.getTemporaryCache(Bt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Bt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const r=this.getTemporaryCache(Bt.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(Bt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const o=r||e;if(o){const n=ea(o,Ro);if(n.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),n.preferred_username;if(n.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),n.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,r){const o=oc(r);if(e!==o){const n=this.getItem(e);if(n)return this.removeItem(e),this.setItem(o,n),this.logger.verbose(`Updated an outdated ${r.credentialType} cache key`),o;this.logger.error(`Attempted to update an outdated ${r.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}getRedirectRequestContext(){return this.getTemporaryCache(Ie.REDIRECT_CONTEXT,!0)}setRedirectRequestContext(e){this.setTemporaryCache(Ie.REDIRECT_CONTEXT,e,!0)}async hydrateCache(e,r){const o=Ef(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId);let n;r.claims&&(n=await this.cryptoImpl.hashString(r.claims));const i=If(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?.getTime()||0,e.extExpiresOn?.getTime()||0,Ro,void 0,e.tokenType,void 0,r.sshKid,r.claims,n),a=new La(void 0,o,i);return this.saveCacheRecord(a)}}const BB=(t,e)=>{const r={cacheLocation:It.MemoryStorage,temporaryCacheLocation:It.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new gg(t,r,Cd,e)};/*! @azure/msal-browser v3.6.0 2023-12-01 */const ce={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.6.0 2023-12-01 */class NB{constructor(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(e){if(typeof window<"u"){const r=Yn();return this.eventCallbacks.set(r,e),this.logger.verbose(`Event callback registered with id: ${r}`),r}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(e,r,o,n){if(typeof window<"u"){const i={eventType:e,interactionType:r||null,payload:o||null,error:n||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${e}`),this.eventCallbacks.forEach((a,s)=>{this.logger.verbose(`Emitting event to callback ${s}: ${e}`),a.apply(null,[i])})}}handleAccountCacheChange(e){try{const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!Tt.isAccountEntity(o))return;const i=Wo.toObject(new Tt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ce.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ce.ACCOUNT_REMOVED,void 0,i))}catch{return}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class cC{constructor(e,r,o,n,i,a,s,c,l){this.config=e,this.browserStorage=r,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||Yn(),this.logger=n.clone(eo.MSAL_SKU,Yv,this.correlationId),this.performanceClient=s}async clearCacheOnLogout(e){if(e){Tt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(Tt.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}async initializeBaseRequest(e,r){this.performanceClient.addQueueMeasurement(P.InitializeBaseRequest,this.correlationId);const o=e.authority||this.config.auth.authority;r&&await this.validateRequestAuthority(o,r);const n=[...e&&e.scopes||[]],i={...e,correlationId:this.correlationId,authority:o,scopes:n};if(!i.authenticationScheme)i.authenticationScheme=Be.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Be.SSH){if(!e.sshJwk)throw Ne(Af);if(!e.sshKid)throw Ne(dS)}this.logger.verbose(`Authentication Scheme set to "${i.authenticationScheme}" as configured in Auth request`)}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!io.isEmptyObj(e.claims)&&(i.requestedClaimsHash=await this.browserCrypto.hashString(e.claims)),i}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const r=e||this.config.auth.redirectUri||Xo();return Te.getAbsoluteUrl(r,Xo())}async validateRequestAuthority(e,r){if(!(await this.getDiscoveredAuthority(e)).isAlias(r.environment))throw Ne(pS)}initializeServerTelemetryManager(e,r){this.logger.verbose("initializeServerTelemetryManager called");const o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Ad(o,this.browserStorage)}async getDiscoveredAuthority(e){this.logger.verbose("getDiscoveredAuthority called");const r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata};return e?(this.logger.verbose("Creating discovered authority with request authority"),Fi.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r,this.logger)):(this.logger.verbose("Creating discovered authority with configured authority"),Fi.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r,this.logger))}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const zB=32;async function MB(t,e,r){t.addQueueMeasurement(P.GeneratePkceCodes,r);const o=ta(OB,P.GenerateCodeVerifier,e,t,r)(t,e,r),n=await J(DB,P.GenerateCodeChallengeFromVerifier,e,t,r)(o,t,e,r);return{verifier:o,challenge:n}}function OB(t,e,r){try{const o=new Uint8Array(zB);return ta(TB,P.GetRandomValues,e,t,r)(o),Bd(o)}catch{throw re($v)}}async function DB(t,e,r,o){e.addQueueMeasurement(P.GenerateCodeChallengeFromVerifier,o);try{const n=await J(nC,P.Sha256Digest,r,e,o)(t,e,o);return Bd(new Uint8Array(n))}catch{throw re($v)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class xs extends cC{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const r=await J(MB,P.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),o={...e,redirectUri:e.redirectUri,code:z.EMPTY_STRING,codeVerifier:r.verifier};return e.codeChallenge=r.challenge,e.codeChallengeMethod=z.S256_CODE_CHALLENGE_METHOD,o}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const r={correlationId:this.correlationId||Yn(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const o=this.getLogoutHintFromIdTokenClaims(e.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(e.postLogoutRedirectUri,Xo())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Xo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=Te.getAbsoluteUrl(Xo(),Xo())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r}getLogoutHintFromIdTokenClaims(e){const r=e.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e,r,o){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new SS(n,this.performanceClient)}async getClientConfiguration(e,r,o){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetClientConfiguration,this.correlationId);const n=await J(this.getDiscoveredAuthority.bind(this),P.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)(r,o),i=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:n,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:i.loggerCallback,piiLoggingEnabled:i.piiLoggingEnabled,logLevel:i.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:eo.MSAL_SKU,version:Yv,cpu:z.EMPTY_STRING,os:z.EMPTY_STRING},telemetry:this.config.telemetry}}async getDiscoveredAuthority(e,r){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},n=e||this.config.auth.authority,i=qt.generateAuthority(n,r||this.config.auth.azureCloudOptions);return J(Fi.createDiscoveredInstance.bind(Fi),P.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(i,this.config.system.networkClient,this.browserStorage,o,this.logger,this.performanceClient,this.correlationId)}async initializeAuthorizationRequest(e,r){this.performanceClient.addQueueMeasurement(P.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const o=this.getRedirectUri(e.redirectUri),n={interactionType:r},i=ao.setRequestState(this.browserCrypto,e&&e.state||z.EMPTY_STRING,n),s={...await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e),redirectUri:o,state:i,nonce:e.nonce||Yn(),responseMode:this.config.auth.OIDCOptions.serverResponseType},c=e.account||this.browserStorage.getActiveAccount();if(c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${c.homeAccountId}`,this.correlationId),s.account=c),!s.loginHint&&!c){const l=this.browserStorage.getLegacyLoginHint();l&&(s.loginHint=l)}return s}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const jB="ContentError",lC="user_switch";/*! @azure/msal-browser v3.6.0 2023-12-01 */const FB="USER_INTERACTION_REQUIRED",LB="USER_CANCEL",qB="NO_NETWORK",HB="PERSISTENT_ERROR",UB="DISABLED",$B="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.6.0 2023-12-01 */const KB=-2147186943,WB={[lC]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Vo extends Ve{constructor(e,r,o){super(e,r),Object.setPrototypeOf(this,Vo.prototype),this.name="NativeAuthError",this.ext=o}}function _a(t){if(t.ext&&t.ext.status&&(t.ext.status===HB||t.ext.status===UB)||t.ext&&t.ext.error&&t.ext.error===KB)return!0;switch(t.errorCode){case jB:return!0;default:return!1}}function mg(t,e,r){if(r&&r.status)switch(r.status){case $B:return _S(kS);case FB:return new Ao(t,e);case LB:return re(qi);case qB:return re(Rd)}return new Vo(t,WB[t]||e,r)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class uC extends xs{async acquireToken(e){this.performanceClient.addQueueMeasurement(P.SilentCacheClientAcquireToken,e.correlationId);const r=this.initializeServerTelemetryManager(Le.acquireTokenSilent_silentFlow),o=await this.createSilentFlowClient(r,e.authority,e.azureCloudOptions);this.logger.verbose("Silent auth client created");try{const i=(await J(o.acquireCachedToken.bind(o),P.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),i}catch(n){throw n instanceof Rl&&n.errorCode===Vv&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n}}logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(r?.account)}async createSilentFlowClient(e,r,o){const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new KP(n,this.performanceClient)}async initializeSilentRequest(e,r){this.performanceClient.addQueueMeasurement(P.InitializeSilentRequest,this.correlationId);const o=await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e,r);return{...e,...o,account:r,forceRefresh:e.forceRefresh||!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const zh={BROKER_CLIENT_ID:"brk_client_id",BROKER_REDIRECT_URI:"brk_redirect_uri"};class qa extends cC{constructor(e,r,o,n,i,a,s,c,l,u,d,f){super(e,r,o,n,i,a,c,l,f),this.apiId=s,this.accountId=u,this.nativeMessageHandler=l,this.nativeStorageManager=d,this.silentCacheClient=new uC(e,this.nativeStorageManager,o,n,i,a,c,l,f)}async acquireToken(e){this.performanceClient.addQueueMeasurement(P.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(P.NativeInteractionClientAcquireToken,e.correlationId),o=Jt.nowSeconds(),n=await this.initializeNativeRequest(e);try{const c=await this.acquireTokensFromCache(this.accountId,n);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),c}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const i={method:ki.GetToken,request:n},a=await this.nativeMessageHandler.sendMessage(i),s=this.validateNativeResponse(a);return this.handleNativeResponse(s,n,o).then(c=>(r.end({success:!0,isNativeBroker:!0,requestId:c.requestId}),c)).catch(c=>{throw r.end({success:!1,errorCode:c.errorCode,subErrorCode:c.subError,isNativeBroker:!0}),c})}createSilentCacheRequest(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:pt.fromString(e.scope).asArray(),account:r,forceRefresh:!1}}async acquireTokensFromCache(e,r){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),X(og);const o=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!o)throw X(og);try{const n=this.createSilentCacheRequest(r,o),i=await this.silentCacheClient.acquireToken(n),a={...o,idTokenClaims:i?.idTokenClaims};return{...i,account:a}}catch(n){throw n}}async acquireTokenRedirect(e){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const r=await this.initializeNativeRequest(e),o={method:ki.GetToken,request:r};try{const a=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(a)}catch(a){if(a instanceof Vo&&_a(a))throw a}this.browserStorage.setTemporaryCache(Ie.NATIVE_REQUEST,JSON.stringify(r),!0);const n={apiId:Le.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);await this.navigationClient.navigateExternal(i,n)}async handleRedirectPromise(){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),null;const{prompt:r,...o}=e;r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ie.NATIVE_REQUEST));const n={method:ki.GetToken,request:o},i=Jt.nowSeconds();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const a=await this.nativeMessageHandler.sendMessage(n);this.validateNativeResponse(a);const s=this.handleNativeResponse(a,o,i);return this.browserStorage.setInteractionInProgress(!1),await s}catch(a){throw this.browserStorage.setInteractionInProgress(!1),a}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,r,o){if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==r.accountId)throw mg(lC);const n=await this.getDiscoveredAuthority(r.authority),i=ea(e.id_token,Ro),a=this.createHomeAccountIdentifier(e,i),s=qv(this.browserStorage,n,a,i,Ro,e.client_info,i.tid,void 0,e.account.id,this.logger),c=await this.generateAuthenticationResult(e,r,i,s,n.canonicalAuthority,o);return this.cacheAccount(s),this.cacheNativeTokens(e,r,a,i,c.accessToken,c.tenantId,o),c}createHomeAccountIdentifier(e,r){return Tt.generateHomeAccountId(e.client_info||z.EMPTY_STRING,Zr.Default,this.logger,this.browserCrypto,r)}generateScopes(e,r){return e.scope?pt.fromString(e.scope):pt.fromString(r.scope)}async generatePopAccessToken(e,r){if(r.tokenType===Be.POP){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const o=new ns(this.browserCrypto),n={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce};if(!r.keyId)throw X(Iv);return o.signPopToken(e.access_token,r.keyId,n)}else return e.access_token}async generateAuthenticationResult(e,r,o,n,i,a){const s=this.addTelemetryFromNativeResponse(e),c=e.scope?pt.fromString(e.scope):pt.fromString(r.scope),l=e.account.properties||{},u=l.UID||o.oid||o.sub||z.EMPTY_STRING,d=l.TenantId||o.tid||z.EMPTY_STRING,f=jv(n.getAccountInfo(),void 0,o),h=await this.generatePopAccessToken(e,r),p=r.tokenType===Be.POP?Be.POP:Be.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:c.asArray(),account:f,idToken:e.id_token,idTokenClaims:o,accessToken:h,fromCache:s?this.isResponseFromCache(s):!1,expiresOn:new Date(Number(a+e.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(r=>{this.logger.error(`Error occurred while removing account context from browser storage. ${r}`)})}cacheNativeTokens(e,r,o,n,i,a,s){const c=Ef(o,r.authority,e.id_token||"",r.clientId,n.tid||""),l=r.tokenType===Be.POP?z.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=s+l,d=this.generateScopes(e,r),f=If(o,r.authority,i,r.clientId,n.tid||a,d.printScopes(),u,0,Ro),h=new La(void 0,c,f);this.nativeStorageManager.saveCacheRecord(h,r.storeInCache)}addTelemetryFromNativeResponse(e){const r=this.getMATSFromResponse(e);return r?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw M_(_v,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const r=e.authority||this.config.auth.authority;e.account&&await this.validateRequestAuthority(r,e.account);const o=new Te(r);o.validateAsUri();const{scopes:n,...i}=e,a=new pt(n||[]);a.appendScopes(xl);const s=()=>{switch(this.apiId){case Le.ssoSilent:case Le.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Wt.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case Wt.NONE:case Wt.CONSENT:case Wt.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),re(ZS)}},c={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:s(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1};if(this.handleExtraBrokerParams(c),c.extraParameters=c.extraParameters||{},c.extraParameters.telemetry=ic.MATS_TELEMETRY,e.authenticationScheme===Be.POP){const l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new ns(this.browserCrypto),d=await J(u.generateCnf.bind(u),P.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(l,this.logger);c.reqCnf=d.reqCnfHash,c.keyId=d.kid}return c}handleExtraBrokerParams(e){if(e.extraParameters&&e.extraParameters.hasOwnProperty(zh.BROKER_CLIENT_ID)&&e.extraParameters.hasOwnProperty(zh.BROKER_REDIRECT_URI)&&e.extraParameters.hasOwnProperty(os)){const r=e.extraParameters[os],o=e.redirectUri,n=e.extraParameters[zh.BROKER_REDIRECT_URI];e.extraParameters={child_client_id:r,child_redirect_uri:o},e.redirectUri=n}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class Eo{constructor(e,r,o,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(P.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const r={channel:ic.CHANNEL_ID,extensionId:this.extensionId,responseId:Yn(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r),new Promise((o,n)=>{this.resolvers.set(r.responseId,{resolve:o,reject:n})})}static async createProvider(e,r,o){e.trace("NativeMessageHandler - createProvider called.");try{const n=new Eo(e,r,o,ic.PREFERRED_EXTENSION_ID);return await n.sendHandshakeRequest(),n}catch{const i=new Eo(e,r,o);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ic.CHANNEL_ID,extensionId:this.extensionId,responseId:Yn(),body:{method:ki.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=r=>{this.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((r,o)=>{this.handshakeResolvers.set(e.responseId,{resolve:r,reject:o}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),o(re(XS)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const r=e.data;if(!(!r.channel||r.channel!==ic.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===ki.HandshakeRequest){const o=this.handshakeResolvers.get(r.responseId);if(!o){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${r.responseId}`);return}this.logger.verbose(r.extensionId?`Extension with id: ${r.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),o.reject(re(YS))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const r=e.data,o=this.resolvers.get(r.responseId),n=this.handshakeResolvers.get(r.responseId);try{const i=r.body.method;if(i===ki.Response){if(!o)return;const a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")o.reject(mg(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?o.reject(mg(a.result.code,a.result.description,a.result.ext)):o.resolve(a.result);else throw M_(_v,"Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===ki.HandshakeResponse){if(!n){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${r.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),n.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),o?o.reject(i):n&&n.reject(i)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,r,o,n){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Be.BEARER:case Be.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class eb{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async handleCodeResponse(e,r){this.performanceClient.addQueueMeasurement(P.HandleCodeResponse,r.correlationId);let o;try{o=this.authModule.handleFragmentResponse(e,r.state)}catch(n){throw n instanceof Xn&&n.subError===qi?re(qi):n}return J(this.handleCodeResponseFromServer.bind(this),P.HandleCodeResponseFromServer,this.logger,this.performanceClient,r.correlationId)(o,r)}async handleCodeResponseFromServer(e,r,o=!0){if(this.performanceClient.addQueueMeasurement(P.HandleCodeResponseFromServer,r.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await J(this.authModule.updateAuthority.bind(this.authModule),P.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,r.correlationId)(e.cloud_instance_host_name,r.correlationId),o&&(e.nonce=r.nonce||void 0),e.state=r.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(r);i&&(this.authCodeRequest.ccsCredential=i)}return await J(this.authModule.acquireToken.bind(this.authModule),P.AuthClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:_r.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:_r.UPN}:null}}/*! @azure/msal-browser v3.6.0 2023-12-01 */function dC(t,e,r){const o=xd(t);if(!o)throw mS(t)?(r.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),r.errorPii(`The ${e} detected is: ${t}`),re(IS)):(r.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),re(ES));return o}function VB(t,e,r){if(!t.state)throw re(Kv);const o=sC(e,t.state);if(!o)throw re(AS);if(o.interactionType!==r)throw re(RS)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class GB extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,s,l,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=c}acquireToken(e){try{const r=this.generatePopupName(e.scopes||xl,e.authority||this.config.auth.authority),o=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,o);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");const n=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(e,r,o,n)}}catch(r){return Promise.reject(r)}}logout(e){try{this.logger.verbose("logoutPopup called");const r=this.initializeLogoutRequest(e),o=this.generateLogoutPopupName(r),n=e&&e.authority,i=e&&e.mainWindowRedirectUri,a=e?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,a,n,void 0,i);{this.logger.verbose("asyncPopup set to false, opening popup");const s=this.openSizedPopup("about:blank",o,a);return this.logoutPopupAsync(r,o,a,n,s,i)}}catch(r){return Promise.reject(r)}}async acquireTokenPopupAsync(e,r,o,n){this.logger.verbose("acquireTokenPopupAsync called");const i=this.initializeServerTelemetryManager(Le.acquireTokenPopup),a=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Popup);tC(a.authority);try{const s=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(a),c=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,a.authority,a.azureCloudOptions),l=Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let u;l&&(u=this.performanceClient.startMeasurement(P.FetchAccountIdWithNativeBroker,e.correlationId));const d=await c.getAuthCodeUrl({...a,nativeBroker:l}),f=new eb(c,this.browserStorage,s,this.logger,this.performanceClient),h={popup:n,popupName:r,popupWindowAttributes:o},p=this.initiateAuthRequest(d,h);this.eventHandler.emitEvent(ce.POPUP_OPENED,oe.Popup,{popupWindow:p},null);const g=await this.monitorPopupForHash(p),y=ta(dC,P.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(g,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(Co.removeThrottle(this.browserStorage,this.config.auth.clientId,s),y.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw re(Al);const m=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,y.accountId,this.nativeStorage,a.correlationId),{userRequestState:b}=ao.parseRequestState(this.browserCrypto,a.state);return await m.acquireToken({...a,state:b,prompt:void 0})}return await f.handleCodeResponse(y,a)}catch(s){throw n&&n.close(),s instanceof Ve&&(s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,r,o,n,i,a){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ce.LOGOUT_START,oe.Popup,e);const s=this.initializeServerTelemetryManager(Le.logoutPopup);try{await this.clearCacheOnLogout(e.account);const c=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(s,n);try{c.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&c.authority.protocolMode===Jo.OIDC){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Popup,e),a){const d={apiId:Le.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Te.getAbsoluteUrl(a,Xo());await this.navigationClient.navigateInternal(f,d)}i&&i.close();return}}const l=c.getLogoutUri(e);this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Popup,e);const u=this.openPopup(l,{popupName:r,popupWindowAttributes:o,popup:i});if(this.eventHandler.emitEvent(ce.POPUP_OPENED,oe.Popup,{popupWindow:u},null),await this.monitorPopupForHash(u).catch(()=>{}),a){const d={apiId:Le.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Te.getAbsoluteUrl(a,Xo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${f}`),await this.navigationClient.navigateInternal(f,d)}else this.logger.verbose("No main window navigation requested")}catch(c){throw i&&i.close(),c instanceof Ve&&(c.setCorrelationId(this.correlationId),s.cacheFailedRequest(c)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,oe.Popup,null,c),this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Popup),c}this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Popup)}initiateAuthRequest(e,r){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,r);throw this.logger.error("Navigate url is empty"),re(Pf)}monitorPopupForHash(e){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const n=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(n),o(re(qi));return}let i="";try{i=e.location.href}catch{}if(!i||i==="about:blank")return;clearInterval(n);let a="";const s=this.config.auth.OIDCOptions.serverResponseType;e&&(s===El.QUERY?a=e.location.search:a=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e)})}openPopup(e,r){try{let o;if(r.popup?(o=r.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),o.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),o=this.openSizedPopup(e,r.popupName,r.popupWindowAttributes)),!o)throw re(NS);return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),re(BS)}}openSizedPopup(e,r,o){const n=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let c=o.popupSize?.width,l=o.popupSize?.height,u=o.popupPosition?.top,d=o.popupPosition?.left;return(!c||c<0||c>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),c=eo.POPUP_WIDTH),(!l||l<0||l>s)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),l=eo.POPUP_HEIGHT),(!u||u<0||u>s)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),u=Math.max(0,s/2-eo.POPUP_HEIGHT/2+i)),(!d||d<0||d>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),d=Math.max(0,a/2-eo.POPUP_WIDTH/2+n)),window.open(e,r,`width=${c}, height=${l}, top=${u}, left=${d}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,r){return`${eo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${r}.${this.correlationId}`}generateLogoutPopupName(e){const r=e.account&&e.account.homeAccountId;return`${eo.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r}.${this.correlationId}`}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class O0{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async initiateAuthRequest(e,r){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ie.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ie.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const o={apiId:Le.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1};if(typeof r.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await r.navigationClient.navigateExternal(e,o);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await r.navigationClient.navigateExternal(e,o);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),re(Pf)}async handleCodeResponse(e,r){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const o=this.browserStorage.generateStateKey(r),n=this.browserStorage.getTemporaryCache(o);if(!n)throw X(Sd,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,n)}catch(l){throw l instanceof Xn&&l.subError===qi?re(qi):l}const a=this.browserStorage.generateNonceKey(n),s=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await J(this.authModule.updateAuthority.bind(this.authModule),P.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=s||void 0,i.state=n,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const l=this.checkCcsCredentials();l&&(this.authCodeRequest.ccsCredential=l)}const c=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(r),c}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Ie.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class XB extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,s,l,u),this.nativeStorage=c}async acquireToken(e){const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Redirect);this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||"",r.account||null);const o=this.initializeServerTelemetryManager(Le.acquireTokenRedirect),n=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(r.state),this.eventHandler.emitEvent(ce.RESTORE_FROM_BFCACHE,oe.Redirect))};try{const i=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(r),a=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,r.authority,r.azureCloudOptions),s=new O0(a,this.browserStorage,i,this.logger,this.performanceClient),c=await a.getAuthCodeUrl({...r,nativeBroker:Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),l=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${l}`),window.addEventListener("pageshow",n),await s.initiateAuthRequest(c,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:l,onRedirectNavigate:e.onRedirectNavigate})}catch(i){throw i instanceof Ve&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),window.removeEventListener("pageshow",n),this.browserStorage.cleanRequestByState(r.state),i}}async handleRedirectPromise(e){const r=this.initializeServerTelemetryManager(Le.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,n]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),null;const i=this.browserStorage.getTemporaryCache(Ie.ORIGIN_URI,!0)||z.EMPTY_STRING,a=Te.removeHashFromUrl(i),s=Te.removeHashFromUrl(window.location.href);if(a===s&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),i.indexOf("#")>-1&&nB(i),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!Xv()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ie.URL_HASH,n,!0);const c={apiId:Le.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let l=!0;if(!i||i==="null"){const u=aB();this.browserStorage.setTemporaryCache(Ie.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),l=await this.navigationClient.navigateInternal(u,c)}else this.logger.verbose(`Navigating to loginRequestUrl: ${i}`),l=await this.navigationClient.navigateInternal(i,c);if(!l)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof Ve&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let r=e;r||(this.config.auth.OIDCOptions.serverResponseType===El.QUERY?r=window.location.search:r=window.location.hash);let o=xd(r);if(o){try{VB(o,this.browserCrypto,oe.Redirect)}catch(i){return i instanceof Ve&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return oB(window),this.logger.verbose("Hash contains known properties, returning response hash"),[o,r]}const n=this.browserStorage.getTemporaryCache(Ie.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ie.URL_HASH)),n&&(o=xd(n),o)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[o,n]):[null,""]}async handleResponse(e,r){const o=e.state;if(!o)throw re(Kv);const n=this.browserStorage.getCachedRequest(o);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(Al);const c=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,n.correlationId),{userRequestState:l}=ao.parseRequestState(this.browserCrypto,o);return c.acquireToken({...n,state:l,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(o)})}const i=this.browserStorage.getCachedAuthority(o);if(!i)throw re(Wv);const a=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(r,i);return Co.removeThrottle(this.browserStorage,this.config.auth.clientId,n),new O0(a,this.browserStorage,n,this.logger,this.performanceClient).handleCodeResponse(e,o)}async logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e),o=this.initializeServerTelemetryManager(Le.logout);try{this.eventHandler.emitEvent(ce.LOGOUT_START,oe.Redirect,e),await this.clearCacheOnLogout(r.account);const n={apiId:Le.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,e&&e.authority);if(i.authority.protocolMode===Jo.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId){this.browserStorage.removeAccount(r.account?.homeAccountId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Redirect,r);return}}const a=i.getLogoutUri(r);if(this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,oe.Redirect,r),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(a)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,oe.Redirect,null,n),this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Redirect),n}this.eventHandler.emitEvent(ce.LOGOUT_END,oe.Redirect)}getRedirectStartPage(e){const r=e||window.location.href;return Te.getAbsoluteUrl(r,Xo())}}/*! @azure/msal-browser v3.6.0 2023-12-01 */async function YB(t,e,r,o,n){if(e.addQueueMeasurement(P.SilentHandlerInitiateAuthRequest,o),!t)throw r.info("Navigate url is empty"),re(Pf);return n?J(ZB,P.SilentHandlerLoadFrame,r,e,o)(t,n,e,o):ta(JB,P.SilentHandlerLoadFrameSync,r,e,o)(t)}async function QB(t,e,r,o,n,i,a){return o.addQueueMeasurement(P.SilentHandlerMonitorIframeForHash,i),new Promise((s,c)=>{e{window.clearInterval(u),c(re(zS))},e),u=window.setInterval(()=>{let d="";const f=t.contentWindow;try{d=f?f.location.href:""}catch{}if(!d||d==="about:blank")return;let h="";f&&(a===El.QUERY?h=f.location.search:h=f.location.hash),window.clearTimeout(l),window.clearInterval(u),s(h)},r)}).finally(()=>{ta(eN,P.RemoveHiddenIframe,n,o,i)(t)})}function ZB(t,e,r,o){return r.addQueueMeasurement(P.SilentHandlerLoadFrame,o),new Promise((n,i)=>{const a=fC();window.setTimeout(()=>{if(!a){i("Unable to load iframe");return}a.src=t,n(a)},e)})}function JB(t){const e=fC();return e.src=t,e}function fC(){const t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function eN(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v3.6.0 2023-12-01 */class tN extends xs{constructor(e,r,o,n,i,a,s,c,l,u,d){super(e,r,o,n,i,a,c,u,d),this.apiId=s,this.nativeStorage=l}async acquireToken(e){if(this.performanceClient.addQueueMeasurement(P.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Wt.NONE&&e.prompt!==Wt.NO_SESSION)throw re(FS);const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)({...e,prompt:e.prompt||Wt.NONE},oe.Silent);tC(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);try{const n=await J(this.createAuthCodeClient.bind(this),P.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)(o,r.authority,r.azureCloudOptions);return await J(this.silentTokenHelper.bind(this),P.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(n,r)}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(Bf))}async silentTokenHelper(e,r){const o=r.correlationId;this.performanceClient.addQueueMeasurement(P.SilentIframeClientTokenHelper,o);const n=await J(this.initializeAuthorizationCodeRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,o)(r),i=await J(e.getAuthCodeUrl.bind(e),P.GetAuthCodeUrl,this.logger,this.performanceClient,o)({...r,nativeBroker:Eo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}),a=new eb(e,this.browserStorage,n,this.logger,this.performanceClient),s=await J(YB,P.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,o)(i,this.performanceClient,this.logger,o,this.config.system.navigateFrameWait),c=this.config.auth.OIDCOptions.serverResponseType,l=await J(QB,P.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,o)(s,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,o,c),u=ta(dC,P.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(l,c,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(Al);const d=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,o),{userRequestState:f}=ao.parseRequestState(this.browserCrypto,r.state);return J(d.acquireToken.bind(d),P.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,o)({...r,state:f,prompt:r.prompt||Wt.NONE})}return J(a.handleCodeResponse.bind(a),P.HandleCodeResponse,this.logger,this.performanceClient,o)(u,r)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class rN extends xs{async acquireToken(e){this.performanceClient.addQueueMeasurement(P.SilentRefreshClientAcquireToken,e.correlationId);const r=await J(this.initializeBaseRequest.bind(this),P.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,e.account),o={...e,...r},n=this.initializeServerTelemetryManager(Le.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient(n,o.authority,o.azureCloudOptions);return J(i.acquireTokenByRefreshToken.bind(i),P.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(o).catch(a=>{throw a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),a})}logout(){return Promise.reject(re(Bf))}async createRefreshTokenClient(e,r,o){const n=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new ug(n,this.performanceClient)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class oN{constructor(e,r,o,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=o,this.cryptoObj=n}loadExternalTokens(e,r,o){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw re(Gr);const n=ea(r.id_token,Ro);let i,a,s;if(e.account)s=Tt.createFromAccountInfo(e.account),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,o),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment));else if(e.authority){const c=qt.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new qt(c,this.config.system.networkClient,this.storage,l,this.logger),o.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(n,a,o.clientInfo),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else if(r.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(n,a,r.client_info),i=new La(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else throw re(Gr)}else throw re(Gr);return this.generateAuthenticationResult(e,n,i,s,a)}loadAccount(e,r,o,n){if(this.isBrowserEnvironment){this.logger.verbose("TokenCache - loading account");let i;if(n?i=n:r.authorityType!==void 0&&o&&(i=Tt.generateHomeAccountId(o,r.authorityType,this.logger,this.cryptoObj,e)),!i)throw re(Gr);const a=e.tid,s=qv(this.storage,r,i,e,Ro,o,a,void 0,void 0,this.logger);return this.storage.setAccount(s),s}else throw re(Gr)}loadIdToken(e,r,o,n){const i=Ef(r,o,e,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw re(Gr)}loadAccessToken(e,r,o,n,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in||!a.extendedExpiresOn)throw re(Gr);const s=new pt(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=If(o,n,r.access_token,this.config.auth.clientId,i,s,c,l,Ro);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw re(Gr)}loadRefreshToken(e,r,o,n){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;const i=tS(o,n,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw re(Gr)}generateAuthenticationResult(e,r,o,n,i){let a=z.EMPTY_STRING,s=[],c=null,l;o?.accessToken&&(a=o.accessToken.secret,s=pt.fromString(o.accessToken.target).asArray(),c=new Date(Number(o.accessToken.expiresOn)*1e3),l=new Date(Number(o.accessToken.extendedExpiresOn)*1e3));const u=r.oid||r.sub||z.EMPTY_STRING,d=r.tid||z.EMPTY_STRING;return{authority:i?i.canonicalAuthority:z.EMPTY_STRING,uniqueId:u,tenantId:d,scopes:s,account:n.getAccountInfo(),idToken:o.idToken?.secret||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:c,correlationId:e.correlationId||z.EMPTY_STRING,requestId:z.EMPTY_STRING,extExpiresOn:l,familyId:z.EMPTY_STRING,tokenType:o?.accessToken?.tokenType||z.EMPTY_STRING,state:z.EMPTY_STRING,cloudGraphHostName:n.cloudGraphHostName||z.EMPTY_STRING,msGraphHost:n.msGraphHost||z.EMPTY_STRING,code:void 0,fromNativeBroker:!1}}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class nN extends SS{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class iN extends xs{constructor(e,r,o,n,i,a,s,c,l,u){super(e,r,o,n,i,a,c,l,u),this.apiId=s}async acquireToken(e){if(!e.code)throw re(KS);const r=await J(this.initializeAuthorizationRequest.bind(this),P.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,oe.Silent),o=this.initializeServerTelemetryManager(this.apiId);try{const n={...r,code:e.code},i=await J(this.getClientConfiguration.bind(this),P.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)(o,r.authority),a=new nN(i);this.logger.verbose("Auth code client created");const s=new eb(a,this.browserStorage,n,this.logger,this.performanceClient);return await J(s.handleCodeResponseFromServer.bind(s),P.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r,!1)}catch(n){throw n instanceof Ve&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(Bf))}}/*! @azure/msal-browser v3.6.0 2023-12-01 */class Nf{constructor(e){this.atsAsyncMeasurement=void 0,this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new as(this.logger,this.performanceClient):Cd,this.eventHandler=new NB(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new gg(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,UR(this.config.auth)):BB(this.config.auth.clientId,this.logger);const r={cacheLocation:It.MemoryStorage,temporaryCacheLocation:It.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new gg(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new oN(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static async createController(e){const r=new Nf(e);return await r.initialize(),r}trackPageVisibility(){this.atsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.atsAsyncMeasurement.increment({visibilityChangeCount:1}))}async initialize(){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}const e=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(P.InitializeClientApplication);if(this.eventHandler.emitEvent(ce.INITIALIZE_START),e)try{this.nativeExtensionProvider=await Eo.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await J(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),P.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient)(this.performanceClient)),this.initialized=!0,this.eventHandler.emitEvent(ce.INITIALIZE_END),r.end({allowNativeBroker:e,success:!0})}async handleRedirectPromise(e){this.logger.verbose("handleRedirectPromise called"),R0(this.initialized);const r=this.getAllAccounts();if(this.isBrowserEnvironment){const o=e||"";let n=this.redirectResponse.get(o);if(typeof n>"u"){this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");const i=this.browserStorage.getCachedNativeRequest();let a;if(i&&Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e)this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId).handleRedirectPromise();else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const s=this.browserStorage.getTemporaryCache(Ie.CORRELATION_ID,!0)||z.EMPTY_STRING;a=this.createRedirectClient(s).handleRedirectPromise(e)}n=a.then(s=>(s&&(r.length{throw r.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,s):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Redirect,null,s),this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_END,oe.Redirect),s}),this.redirectResponse.set(o,n)}else this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");return n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async acquireTokenRedirect(e){const r=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(oe.Redirect);const o=this.getAllAccounts().length>0;o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(ce.LOGIN_START,oe.Redirect,e);let n;return this.nativeExtensionProvider&&this.canUseNative(e)?n=new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,r).acquireTokenRedirect(e).catch(a=>{if(a instanceof Vo&&_a(a))return this.nativeExtensionProvider=void 0,this.createRedirectClient(r).acquireToken(e);if(a instanceof Ao)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):n=this.createRedirectClient(r).acquireToken(e),n.catch(i=>{throw o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,i):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Redirect,null,i),i})}acquireTokenPopup(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(P.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(a){return Promise.reject(a)}const n=this.getAllAccounts();n.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(ce.LOGIN_START,oe.Popup,e);let i;return this.canUseNative(e)?i=this.acquireTokenNative({...e,correlationId:r},Le.acquireTokenPopup).then(a=>(this.getBrowserStorage().setInteractionInProgress(!1),o.end({success:!0,isNativeBroker:!0,requestId:a.requestId}),a)).catch(a=>{if(a instanceof Vo&&_a(a))return this.nativeExtensionProvider=void 0,this.createPopupClient(r).acquireToken(e);if(a instanceof Ao)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):i=this.createPopupClient(r).acquireToken(e),i.then(a=>(n.length(n.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,a):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,oe.Popup,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),Promise.reject(a)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){const r=this.getRequestCorrelationId(e),o={...e,prompt:e.prompt,correlationId:r};this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(P.SsoSilent,r),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(ce.SSO_SILENT_START,oe.Silent,o);let n;return this.canUseNative(o)?n=this.acquireTokenNative(o,Le.ssoSilent).catch(i=>{if(i instanceof Vo&&_a(i))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):n=this.createSilentIframeClient(o.correlationId).acquireToken(o),n.then(i=>(this.eventHandler.emitEvent(ce.SSO_SILENT_SUCCESS,oe.Silent,i),this.ssoSilentMeasurement?.add({accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length}),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:i.fromNativeBroker,requestId:i.requestId}),i)).catch(i=>{throw this.eventHandler.emitEvent(ce.SSO_SILENT_FAILURE,oe.Silent,null,i),this.ssoSilentMeasurement?.end({errorCode:i.errorCode,subErrorCode:i.subError,success:!1}),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e);const o=this.performanceClient.startMeasurement(P.AcquireTokenByCode,r);try{if(e.code&&e.nativeAccountId)throw re(VS);if(e.code){const n=e.code;let i=this.hybridAuthCodeResponses.get(n);return i?(this.logger.verbose("Existing acquireTokenByCode request found",r),o.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync({...e,correlationId:r}).then(a=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,a),this.hybridAuthCodeResponses.delete(n),o.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),o.end({success:!0,isNativeBroker:a.fromNativeBroker,requestId:a.requestId}),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(n),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),a}),this.hybridAuthCodeResponses.set(n,i)),await i}else if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return await this.acquireTokenNative({...e,correlationId:r},Le.acquireTokenByCode,e.nativeAccountId).catch(n=>{throw n instanceof Vo&&_a(n)&&(this.nativeExtensionProvider=void 0),n});throw re(GS)}else throw re(WS)}catch(n){throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,n),o.end({errorCode:n instanceof Ve&&n.errorCode||void 0,subErrorCode:n instanceof Ve&&n.subError||void 0,success:!1}),n}}async acquireTokenByCodeAsync(e){return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenByCodeAsync,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(n=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,r,o){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenFromCache,r.correlationId),o){case zr.Default:case zr.AccessToken:case zr.AccessTokenAndRefreshToken:return J(e.acquireToken.bind(e),P.SilentCacheClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(r);default:throw X(zn)}}async acquireTokenByRefreshToken(e,r){switch(this.performanceClient.addQueueMeasurement(P.AcquireTokenByRefreshToken,e.correlationId),r){case zr.Default:case zr.AccessTokenAndRefreshToken:case zr.RefreshToken:case zr.RefreshTokenAndNetwork:const o=this.createSilentRefreshClient(e.correlationId);return J(o.acquireToken.bind(o),P.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw X(zn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(P.AcquireTokenBySilentIframe,e.correlationId);const r=this.createSilentIframeClient(e.correlationId);return J(r.acquireToken.bind(r),P.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const r=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),this.logoutRedirect({correlationId:r,...e})}async logoutRedirect(e){const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Redirect),this.createRedirectClient(r).logout(e)}logoutPopup(e){try{const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Popup),this.createPopupClient(r).logout(e)}catch(r){return Promise.reject(r)}}async clearCache(e){const r=this.getRequestCorrelationId(e);return this.createSilentCacheClient(r).logout(e)}getAllAccounts(e){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts(e):[]}getAccount(e){if(this.logger.trace("getAccount called"),Object.keys(e).length===0)return this.logger.warning("getAccount: No accountFilter provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy(e);return r?(this.logger.verbose("getAccount: Account matching provided filter found, returning"),r):(this.logger.verbose("getAccount: No matching account found, returning null"),null)}getAccountByUsername(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({username:e});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)}getAccountByHomeId(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)}getAccountByLocalId(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),r):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)}setActiveAccount(e){this.browserStorage.setActiveAccount(e)}getActiveAccount(){return this.browserStorage.getActiveAccount()}async hydrateCache(e,r){this.logger.verbose("hydrateCache called");const o=Tt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(o),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,r)):this.browserStorage.hydrateCache(e,r)}preflightBrowserEnvironmentCheck(e,r=!1){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),lB(this.isBrowserEnvironment),sB(e,this.config.system.allowRedirectInIframe),Ph(),cB(),R0(this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===It.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw wt(aC);(e===oe.Redirect||e===oe.Popup)&&this.preflightInteractiveRequest(!r)}preflightInteractiveRequest(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Ph(),e&&this.getBrowserStorage().setInteractionInProgress(!0)}async acquireTokenNative(e,r,o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw re(Al);return new qa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,o||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,r){if(this.logger.trace("canUseNative called"),!Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Wt.NONE:case Wt.CONSENT:case Wt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const r=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return r&&r.nativeAccountId||""}createPopupClient(e){return new GB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new XB(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new tN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new uC(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new rN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new iN(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Le.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,r){this.browserStorage.setWrapperMetadata(e,r)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}getBrowserStorage(){return this.browserStorage}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?Yn():z.EMPTY_STRING}async loginRedirect(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",r),this.acquireTokenRedirect({correlationId:r,...e||A0})}loginPopup(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup({correlationId:r,...e||A0})}async acquireTokenSilent(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(P.AcquireTokenSilent,r);o.add({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",r);const n=e.account||this.getActiveAccount();if(!n)throw re(jS);const i={clientId:this.config.auth.clientId,authority:e.authority||z.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:n.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},a=JSON.stringify(i),s=this.activeSilentTokenRequests.get(a);if(typeof s>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r);const c=J(this.acquireTokenSilentAsync.bind(this),P.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},n).then(l=>(this.activeSilentTokenRequests.delete(a),o.add({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.end({success:!0,fromCache:l.fromCache,isNativeBroker:l.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:l.requestId}),l)).catch(l=>{throw this.activeSilentTokenRequests.delete(a),o.end({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l});return this.activeSilentTokenRequests.set(a,c),c}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discard(),s}async acquireTokenSilentAsync(e,r){this.performanceClient.addQueueMeasurement(P.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,oe.Silent,e),this.atsAsyncMeasurement=this.performanceClient.startMeasurement(P.AcquireTokenSilentAsync,e.correlationId),this.atsAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility);let o;if(Eo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&r.nativeAccountId){this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");const n={...e,account:r};o=this.acquireTokenNative(n,Le.acquireTokenSilent_silentFlow).catch(async i=>{if(i instanceof Vo&&_a(i))return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,this.createSilentIframeClient(e.correlationId).acquireToken(e);throw i})}else{this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");const n=this.createSilentCacheClient(e.correlationId),i=await J(n.initializeSilentRequest.bind(n),P.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,r),a=e.cacheLookupPolicy||zr.Default;o=J(this.acquireTokenFromCache.bind(this),P.AcquireTokenFromCache,this.logger,this.performanceClient,i.correlationId)(n,i,a).catch(s=>{if(e.cacheLookupPolicy===zr.AccessToken)throw s;return Ph(),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,i),J(this.acquireTokenByRefreshToken.bind(this),P.AcquireTokenByRefreshToken,this.logger,this.performanceClient,i.correlationId)(i,a).catch(c=>{const l=!(c instanceof Ao)&&(c.errorCode===eo.INVALID_GRANT_ERROR||c.errorCode===zn)||c.errorCode===Id,u=a===zr.Default||a===zr.Skip||a===zr.RefreshTokenAndNetwork;if(l&&u)return this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),J(this.acquireTokenBySilentIframe.bind(this),P.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);throw c})})}return o.then(n=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_SUCCESS,oe.Silent,n),this.atsAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,n),this.atsAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibility)})}}const aN=Object.freeze(Object.defineProperty({__proto__:null,StandardController:Nf},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-browser v3.6.0 2023-12-01 */class tb{static async createPublicClientApplication(e){const r=await yB(e);return new tb(e,r)}constructor(e,r){if(r)this.controller=r;else{const o=new Hi(e);this.controller=new Nf(o)}}async initialize(){return this.controller.initialize()}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e){return this.controller.addEventCallback(e)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,r){return this.controller.initializeWrapperLibrary(e,r)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,r){return this.controller.hydrateCache(e,r)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v3.6.0 2023-12-01 */const sN={initialize:()=>Promise.reject(wt(Et)),acquireTokenPopup:()=>Promise.reject(wt(Et)),acquireTokenRedirect:()=>Promise.reject(wt(Et)),acquireTokenSilent:()=>Promise.reject(wt(Et)),acquireTokenByCode:()=>Promise.reject(wt(Et)),getAllAccounts:()=>[],getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(wt(Et)),loginPopup:()=>Promise.reject(wt(Et)),loginRedirect:()=>Promise.reject(wt(Et)),logout:()=>Promise.reject(wt(Et)),logoutRedirect:()=>Promise.reject(wt(Et)),logoutPopup:()=>Promise.reject(wt(Et)),ssoSilent:()=>Promise.reject(wt(Et)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw wt(Et)},getLogger:()=>{throw wt(Et)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw wt(Et)},hydrateCache:()=>Promise.reject(wt(Et)),clearCache:()=>Promise.reject(wt(Et))};/*! @azure/msal-browser v3.6.0 2023-12-01 */class cN{static getInteractionStatusFromEvent(e,r){switch(e.eventType){case ce.LOGIN_START:return rt.Login;case ce.SSO_SILENT_START:return rt.SsoSilent;case ce.ACQUIRE_TOKEN_START:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup)return rt.AcquireToken;break;case ce.HANDLE_REDIRECT_START:return rt.HandleRedirect;case ce.LOGOUT_START:return rt.Logout;case ce.SSO_SILENT_SUCCESS:case ce.SSO_SILENT_FAILURE:if(r&&r!==rt.SsoSilent)break;return rt.None;case ce.LOGOUT_END:if(r&&r!==rt.Logout)break;return rt.None;case ce.HANDLE_REDIRECT_END:if(r&&r!==rt.HandleRedirect)break;return rt.None;case ce.LOGIN_SUCCESS:case ce.LOGIN_FAILURE:case ce.ACQUIRE_TOKEN_SUCCESS:case ce.ACQUIRE_TOKEN_FAILURE:case ce.RESTORE_FROM_BFCACHE:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup){if(r&&r!==rt.Login&&r!==rt.AcquireToken)break;return rt.None}break}return null}}/*! @azure/msal-react v2.0.8 2023-12-01 */const lN={instance:sN,inProgress:rt.None,accounts:[],logger:new Il({})},rb=w.createContext(lN);rb.Consumer;/*! @azure/msal-react v2.0.8 2023-12-01 */function hC(t,e){return typeof t=="function"?t(e):t}function D0(t,e){if(t.length!==e.length)return!1;const r=[...e];return t.every(o=>{const n=r.shift();return!o||!n?!1:o.homeAccountId===n.homeAccountId&&o.localAccountId===n.localAccountId&&o.username===n.username})}function uN(t,e){return t.length>0&&(e.homeAccountId||e.localAccountId||e.username)&&t.filter(o=>!(e.username&&e.username.toLowerCase()!==o.username.toLowerCase()||e.homeAccountId&&e.homeAccountId.toLowerCase()!==o.homeAccountId.toLowerCase()||e.localAccountId&&e.localAccountId.toLowerCase()!==o.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.8 2023-12-01 */const dN="@azure/msal-react",j0="2.0.8";/*! @azure/msal-react v2.0.8 2023-12-01 */const Nd={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},fN=(t,e)=>{const{type:r,payload:o}=e;let n=t.inProgress;switch(r){case Nd.UNBLOCK_INPROGRESS:t.inProgress===rt.Startup&&(n=rt.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case Nd.EVENT:const a=o.message,s=cN.getInteractionStatusFromEvent(a,t.inProgress);s&&(o.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${t.inProgress} to ${s}`),n=s);break;default:throw new Error(`Unknown action type: ${r}`)}const i=o.instance.getAllAccounts();return n!==t.inProgress&&!D0(i,t.accounts)?{...t,inProgress:n,accounts:i}:n!==t.inProgress?{...t,inProgress:n}:D0(i,t.accounts)?t:{...t,accounts:i}};function hN({instance:t,children:e}){w.useEffect(()=>{t.initializeWrapperLibrary(eB.React,j0)},[t]);const r=w.useMemo(()=>t.getLogger().clone(dN,j0),[t]),[o,n]=w.useReducer(fN,void 0,()=>({inProgress:rt.Startup,accounts:t.getAllAccounts()}));w.useEffect(()=>{const a=t.addEventCallback(s=>{n({payload:{instance:t,logger:r,message:s},type:Nd.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${a}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{n({payload:{instance:t,logger:r},type:Nd.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(r.verbose(`MsalProvider - Removing event callback ${a}`),t.removeEventCallback(a))}},[t,r]);const i={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:r};return Kt.createElement(rb.Provider,{value:i},e)}/*! @azure/msal-react v2.0.8 2023-12-01 */const Pl=()=>w.useContext(rb);/*! @azure/msal-react v2.0.8 2023-12-01 */function F0(t,e){return e&&(e.username||e.homeAccountId||e.localAccountId)?!!uN(t,e):t.length>0}function pC(t){const{accounts:e,inProgress:r}=Pl(),[o,n]=w.useState(()=>r===rt.Startup?!1:F0(e,t));return w.useEffect(()=>{n(F0(e,t))},[e,t]),o}/*! @azure/msal-react v2.0.8 2023-12-01 */function Ku({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Pl(),i=w.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return pC(i)&&n.inProgress!==rt.Startup?Kt.createElement(Kt.Fragment,null,hC(o,n)):null}/*! @azure/msal-react v2.0.8 2023-12-01 */function pN({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Pl(),i=w.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return!pC(i)&&n.inProgress!==rt.Startup&&n.inProgress!==rt.HandleRedirect?Kt.createElement(Kt.Fragment,null,hC(o,n)):null}const gN=["Top","Right","Bottom","Left"];function Bl(t,e,...r){const[o,n=o,i=o,a=n]=r,s=[o,n,i,a],c={};for(let l=0;ltypeof t=="string"&&/(\d+(\w+|%))/.test(t),ru=t=>typeof t=="number"&&!Number.isNaN(t),CN=t=>t==="initial",L0=t=>t==="auto",TN=t=>t==="none",xN=["content","fit-content","max-content","min-content"],Mh=t=>xN.some(e=>t===e)||SN(t);function EN(...t){const e=t.length===1,r=t.length===2,o=t.length===3;if(e){const[n]=t;if(CN(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(L0(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(TN(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(ru(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(Mh(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=t;if(ru(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(Mh(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,a]=t;if(ru(n)&&ru(i)&&(L0(a)||Mh(a)))return{flexGrow:n,flexShrink:i,flexBasis:a}}return{}}function IN(t,e=t){return{columnGap:t,rowGap:e}}const AN=/var\(.*\)/gi;function RN(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!AN.test(t)}const PN=/^[a-zA-Z0-9\-_\\#;]+$/,BN=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function Oh(t){return t!==void 0&&typeof t=="string"&&PN.test(t)&&!BN.test(t)}function NN(...t){if(t.some(i=>!RN(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:Oh(e)?e:"auto",o=t[2]!==void 0?t[2]:Oh(e)?e:"auto",n=t[3]!==void 0?t[3]:Oh(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:n}}function zN(...t){return Bl("margin","",...t)}function MN(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function ON(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function DN(...t){return Bl("padding","",...t)}function jN(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function FN(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function LN(t,e=t){return{overflowX:t,overflowY:e}}function qN(...t){const[e,r=e,o=e,n=r]=t;return{top:e,right:r,bottom:o,left:n}}function HN(t,e,r){return{outlineWidth:t,...e&&{outlineStyle:e},...r&&{outlineColor:r}}}function UN(...t){return KN(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:WN(t).reduce((r,[o,n="0s",i="0s",a="ease"],s)=>(s===0?(r.transitionProperty=o,r.transitionDuration=n,r.transitionDelay=i,r.transitionTimingFunction=a):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${n}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${a}`),r),{})}const $N=["-moz-initial","inherit","initial","revert","unset"];function KN(t){return t.length===1&&$N.includes(t[0])}function WN(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function VN(t,...e){if(e.length===0)return XN(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,o,n]=e;return{textDecorationLine:t,...r&&{textDecorationStyle:r},...o&&{textDecorationColor:o},...n&&{textDecorationThickness:n}}}const GN=["dashed","dotted","double","solid","wavy"];function XN(t){return GN.includes(t)}const Dh=typeof window>"u"?global:window,jh="@griffel/";function YN(t,e){return Dh[Symbol.for(jh+t)]||(Dh[Symbol.for(jh+t)]=e),Dh[Symbol.for(jh+t)]}const wg=YN("DEFINITION_LOOKUP_TABLE",{}),Wu="data-make-styles-bucket",kg="f",_g=7,ob="___",QN=ob.length+_g,ZN=0,JN=1,e5={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Lc(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function t5(t){const e=t.length;if(e===_g)return t;for(let r=e;r<_g;r++)t+="0";return t}function gC(t,e,r=[]){return ob+t5(Lc(t+e))}function mC(t,e){let r="";for(const o in t){const n=t[o];if(n){const i=Array.isArray(n);e==="rtl"?r+=(i?n[1]:n)+" ":r+=(i?n[0]:n)+" "}}return r.slice(0,-1)}function zd(t,e){const r={};for(const o in t){const n=mC(t[o],e);if(n===""){r[o]="";continue}const i=gC(n,e),a=i+" "+n;wg[i]=[t[o],e],r[o]=a}return r}const q0={};function j(){let t=null,e="",r="";const o=new Array(arguments.length);for(let l=0;l0&&(e+=u.slice(0,d)),r+=f,o[l]=f}}}if(r==="")return e.slice(0,-1);const n=q0[r];if(n!==void 0)return e+n;const i=[];for(let l=0;li.cssText):o}}}const n5=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],H0=n5.reduce((t,e,r)=>(t[e]=r,t),{});function i5(t,e,r,o,n={}){const i=t==="m",a=i?t+n.m:t;if(!o.stylesheets[a]){const s=e&&e.createElement("style"),c=o5(s,t,{...o.styleElementAttributes,...i&&{media:n.m}});o.stylesheets[a]=c,e&&s&&e.head.insertBefore(s,a5(e,r,t,o,n))}return o.stylesheets[a]}function a5(t,e,r,o,n){const i=H0[r];let a=u=>i-H0[u.getAttribute(Wu)],s=t.head.querySelectorAll(`[${Wu}]`);if(r==="m"&&n){const u=t.head.querySelectorAll(`[${Wu}="${r}"]`);u.length&&(s=u,a=d=>o.compareMediaQueries(n.m,d.media))}const c=s.length;let l=c-1;for(;l>=0;){const u=s.item(l);if(a(u)>0)return u.nextSibling;l--}return c>0?s.item(0):e?e.nextSibling:null}function U0(t,e){try{t.insertRule(e)}catch{}}let s5=0;const c5=(t,e)=>te?1:0;function l5(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=c5}=e,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${s5++}`,insertCSSRules(s){for(const c in s){const l=s[c];for(let u=0,d=l.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function vC(t){return t.reduce(function(e,r){var o=r[0],n=r[1];return e[o]=n,e[n]=o,e},{})}function u5(t){return typeof t=="boolean"}function d5(t){return typeof t=="function"}function ac(t){return typeof t=="number"}function f5(t){return t===null||typeof t>"u"}function h5(t){return t&&typeof t=="object"}function p5(t){return typeof t=="string"}function Vu(t,e){return t.indexOf(e)!==-1}function g5(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function ou(t,e,r,o){return e+g5(r)+o}function m5(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function bC(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var o=e.list,n=e.state,i=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-a,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function $0(t){var e=bC(t);if(e.length<=3||e.length>4)return t;var r=e[0],o=e[1],n=e[2],i=e[3];return[r,i,n,o].join(" ")}function v5(t){return!u5(t)&&!f5(t)}function b5(t){for(var e=[],r=0,o=0,n=!1;o0?Qt(Es,--Ir):0,ss--,Ye===10&&(ss=1,Of--),Ye}function qr(){return Ye=Ir2||Md(Ye)>3?"":" "}function j5(t){for(;qr();)switch(Md(Ye)){case 0:_i(BC(Ir-1),t);break;case 2:_i(Xu(Ye),t);break;default:_i(Mf(Ye),t)}return t}function F5(t,e){for(;--e&&qr()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return jf(t,Gu()+(e<6&&Ei()==32&&qr()==32))}function Cg(t){for(;qr();)switch(Ye){case t:return Ir;case 34:case 39:t!==34&&t!==39&&Cg(Ye);break;case 40:t===41&&Cg(t);break;case 92:qr();break}return Ir}function L5(t,e){for(;qr()&&t+Ye!==57;)if(t+Ye===84&&Ei()===47)break;return"/*"+jf(e,Ir-1)+"*"+Mf(t===47?t:qr())}function BC(t){for(;!Md(Ei());)qr();return jf(t,Ir)}function NC(t){return PC(Yu("",null,null,null,[""],t=RC(t),0,[0],t))}function Yu(t,e,r,o,n,i,a,s,c){for(var l=0,u=0,d=a,f=0,h=0,p=0,g=1,y=1,v=1,m=0,b="",k=n,S=i,C=o,_=b;y;)switch(p=m,m=qr()){case 40:if(p!=108&&Qt(_,d-1)==58){EC(_+=cr(Xu(m),"&","&\f"),"&\f",CC(l?s[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Xu(m);break;case 9:case 10:case 13:case 32:_+=D5(p);break;case 92:_+=F5(Gu()-1,7);continue;case 47:switch(Ei()){case 42:case 47:_i(q5(L5(qr(),Gu()),e,r,c),c);break;default:_+="/"}break;case 123*g:s[l++]=_o(_)*v;case 125*g:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+u:v==-1&&(_=cr(_,/\f/g,"")),h>0&&_o(_)-d&&_i(h>32?V0(_+";",o,r,d-1,c):V0(cr(_," ","")+";",o,r,d-2,c),c);break;case 59:_+=";";default:if(_i(C=W0(_,e,r,l,u,n,s,b,k=[],S=[],d,i),i),m===123)if(u===0)Yu(_,e,C,C,k,i,d,s,S);else switch(f===99&&Qt(_,3)===110?100:f){case 100:case 108:case 109:case 115:Yu(t,C,C,o&&_i(W0(t,C,C,0,0,n,s,b,n,k=[],d,S),S),n,S,d,s,o?k:S);break;default:Yu(_,C,C,C,[""],S,0,s,S)}}l=u=h=0,g=v=1,b=_="",d=a;break;case 58:d=1+_o(_),h=p;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&M5()==125)continue}switch(_+=Mf(m),m*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[l++]=(_o(_)-1)*v,v=1;break;case 64:Ei()===45&&(_+=Xu(qr())),f=Ei(),u=d=_o(b=_+=BC(Gu())),m++;break;case 45:p===45&&_o(_)==2&&(g=0)}}return i}function W0(t,e,r,o,n,i,a,s,c,l,u,d){for(var f=n-1,h=n===0?i:[""],p=IC(h),g=0,y=0,v=0;g0?h[m]+" "+b:cr(b,/&\f/g,h[m])))&&(c[v++]=k);return Df(t,e,r,n===0?zf:s,c,l,u,d)}function q5(t,e,r,o){return Df(t,e,r,_C,Mf(z5()),qc(t,2,-2),0,o)}function V0(t,e,r,o,n){return Df(t,e,r,ib,qc(t,0,o),qc(t,o+1,-1),o,n)}function cs(t,e){for(var r="",o=0;o{switch(t.type){case zf:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:O5(e).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const a=i[n+2].slice(1,-1)+" ";return r.unshift(a),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function DC(t,e,r){switch(B5(t,e)){case 5103:return Xr+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Xr+t+t;case 4215:if(Qt(t,9)===102||Qt(t,e+1)===116)return Xr+t+t;break;case 4789:return yc+t+t;case 5349:case 4246:case 6968:return Xr+t+yc+t+t;case 6187:if(!xC(t,/grab/))return cr(cr(cr(t,/(zoom-|grab)/,Xr+"$1"),/(image-set)/,Xr+"$1"),t,"")+t;case 5495:case 3959:return cr(t,/(image-set\([^]*)/,Xr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return cr(t,/(.+)-inline(.+)/,Xr+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_o(t)-1-e>6)switch(Qt(t,e+1)){case 102:if(Qt(t,e+3)===108)return cr(t,/(.+:)(.+)-([^]+)/,"$1"+Xr+"$2-$3$1"+yc+(Qt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~EC(t,"stretch")?DC(cr(t,"stretch","fill-available"),e)+t:t}break}return t}function jC(t,e,r,o){if(t.length>-1&&!t.return)switch(t.type){case ib:t.return=DC(t.value,t.length);return;case zf:if(t.length)return N5(t.props,function(n){switch(xC(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cs([Lh(t,{props:[cr(n,/:(read-\w+)/,":"+yc+"$1")]})],o);case"::placeholder":return cs([Lh(t,{props:[cr(n,/:(plac\w+)/,":"+Xr+"input-$1")]}),Lh(t,{props:[cr(n,/:(plac\w+)/,":"+yc+"$1")]})],o)}return""})}}function U5(t){switch(t.type){case"@container":case E5:case A5:case SC:return!0}return!1}const $5=t=>{U5(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function K5(){}function W5(t,e){const r=[];return cs(NC(t),MC([H5,e?$5:K5,jC,zC,OC(o=>r.push(o))])),r}const V5=/,( *[^ &])/g;function G5(t){return"&"+kC(t.replace(V5,",&$1"))}function G0(t,e,r){let o=e;return r.length>0&&(o=r.reduceRight((n,i)=>`${G5(i)} { ${n} }`,e)),`${t}{${o}}`}function X0(t){const{className:e,media:r,layer:o,selectors:n,support:i,property:a,rtlClassName:s,rtlProperty:c,rtlValue:l,value:u,container:d}=t,f=`.${e}`,h=Array.isArray(u)?`${u.map(g=>`${sc(a)}: ${g}`).join(";")};`:`${sc(a)}: ${u};`;let p=G0(f,h,n);if(c&&s){const g=`.${s}`,y=Array.isArray(l)?`${l.map(v=>`${sc(c)}: ${v}`).join(";")};`:`${sc(c)}: ${l};`;p+=G0(g,y,n)}return r&&(p=`@media ${r} { ${p} }`),o&&(p=`@layer ${o} { ${p} }`),i&&(p=`@supports ${i} { ${p} }`),d&&(p=`@container ${d} { ${p} }`),W5(p,!0)}function X5(t){let e="";for(const r in t){const o=t[r];typeof o!="string"&&typeof o!="number"||(e+=sc(r)+":"+o+";")}return e}function Y0(t){let e="";for(const r in t)e+=`${r}{${X5(t[r])}}`;return e}function Q0(t,e){const r=`@keyframes ${t} {${e}}`,o=[];return cs(NC(r),MC([zC,jC,OC(n=>o.push(n))])),o}function Z0(t,e){return t.length===0?e:`${t} and ${e}`}function Y5(t){return t.substr(0,6)==="@media"}function Q5(t){return t.substr(0,6)==="@layer"}const Z5=/^(:|\[|>|&)/;function J5(t){return Z5.test(t)}function ez(t){return t.substr(0,9)==="@supports"}function tz(t){return t.substring(0,10)==="@container"}function rz(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const J0={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function e1(t,e,r,o,n){if(r)return"m";if(e||o)return"t";if(n)return"c";if(t.length>0){const i=t[0].trim();if(i.charCodeAt(0)===58)return J0[i.slice(4,8)]||J0[i.slice(3,5)]||"d"}return"d"}function nu({container:t,media:e,layer:r,property:o,selector:n,support:i,value:a}){const s=Lc(n+t+e+r+i+o+a.trim());return kg+s}function t1(t,e,r,o,n){const i=t+e+r+o+n,a=Lc(i),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function r1(t){return t.replace(/>\s+/g,">")}function oz(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(` `).map((o,n)=>" ".repeat(n===0?0:6)+o).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function o1(t,e,r,o){t[e]=o?[r,o]:r}function n1(t,e){return e?[t,e]:t}function Hh(t,e,r,o,n){var i;let a;e==="m"&&n&&(a={m:n}),(i=t[e])!==null&&i!==void 0||(t[e]=[]),r&&t[e].push(n1(r,a)),o&&t[e].push(n1(o,a))}function fi(t,e=[],r="",o="",n="",i="",a={},s={},c){for(const l in t){if(JN.hasOwnProperty(l)){t[l];continue}const u=t[l];if(u!=null){if(typeof u=="string"||typeof u=="number"){const d=r1(e.join("")),f=t1(d,i,r,n,l),h=iu({container:i,media:r,layer:o,value:u.toString(),support:n,selector:d,property:l}),p=c&&{key:l,value:c}||Cg(l,u),g=p.key!==l||p.value!==u,y=g?iu({container:i,value:p.value.toString(),property:p.key,selector:d,media:r,layer:o,support:n}):void 0,v=g?{rtlClassName:y,rtlProperty:p.key,rtlValue:p.value}:void 0,m=e1(e,o,r,n,i),[b,k]=X0({className:h,media:r,layer:o,selectors:e,property:l,support:n,container:i,value:u,...v});o1(a,f,h,y),Hh(s,m,b,k,r)}else if(l==="animationName"){const d=Array.isArray(u)?u:[u],f=[],h=[];for(const p of d){const g=Y0(p),y=Y0(wC(p)),v=_g+Lc(g);let m;const b=Q0(v,g);let k=[];g===y?m=v:(m=_g+Lc(y),k=Q0(m,y));for(let S=0;S(C??"").toString()).join(";"),support:n,selector:d,property:l}),p=u.map(C=>Cg(l,C));if(!!p.some(C=>C.key!==p[0].key))continue;const y=p[0].key!==l||p.some((C,_)=>C.value!==u[_]),v=y?iu({container:i,value:p.map(C=>{var _;return((_=C?.value)!==null&&_!==void 0?_:"").toString()}).join(";"),property:p[0].key,selector:d,layer:o,media:r,support:n}):void 0,m=y?{rtlClassName:v,rtlProperty:p[0].key,rtlValue:p.map(C=>C.value)}:void 0,b=e1(e,o,r,n,i),[k,S]=X0({className:h,media:r,layer:o,selectors:e,property:l,support:n,container:i,value:u,...m});o1(a,f,h,v),Hh(s,b,k,S,r)}else if(tz(u))if(Z5(l))fi(u,e.concat(kC(l)),r,o,n,i,a,s);else if(X5(l)){const d=Z0(r,l.slice(6).trim());fi(u,e,d,o,n,i,a,s)}else if(Y5(l)){const d=(o?`${o}.`:"")+l.slice(6).trim();fi(u,e,r,d,n,i,a,s)}else if(J5(l)){const d=Z0(n,l.slice(9).trim());fi(u,e,r,o,d,i,a,s)}else if(ez(l)){const d=l.slice(10).trim();fi(u,e,r,o,n,d,a,s)}else rz(l,u)}}return[a,s]}function oz(t){const e={},r={};for(const o in t){const n=t[o],[i,a]=fi(n);e[o]=i,Object.keys(a).forEach(s=>{r[s]=(r[s]||[]).concat(a[s])})}return[e,r]}function nz(t,e=ib){const r=e();let o=null,n=null,i=null,a=null;function s(c){const{dir:l,renderer:u}=c;o===null&&([o,n]=oz(t));const d=l==="ltr";return d?i===null&&(i=Md(o,l)):a===null&&(a=Md(o,l)),r(u,n),d?i:a}return s}function FC(t,e,r=ib){const o=r();let n=null,i=null;function a(s){const{dir:c,renderer:l}=s,u=c==="ltr";return u?n===null&&(n=Md(t,c)):i===null&&(i=Md(t,c)),o(l,e),u?n:i}return a}function iz(t,e,r,o=ib){const n=o();function i(a){const{dir:s,renderer:c}=a,l=s==="ltr"?t:e||t;return n(c,Array.isArray(r)?{r}:r),l}return i}const ls={border:mN,borderLeft:vN,borderBottom:bN,borderRight:yN,borderTop:wN,borderColor:wg,borderStyle:yg,borderRadius:kN,borderWidth:bg,flex:xN,gap:EN,gridArea:BN,margin:NN,marginBlock:zN,marginInline:MN,padding:ON,paddingBlock:DN,paddingInline:jN,overflow:FN,inset:LN,outline:qN,transition:HN,textDecoration:WN};function az(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const i1=Sd.useInsertionEffect?Sd.useInsertionEffect:void 0,sb=()=>{const t={};return function(r,o){if(i1&&az()){i1(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},sz=w.createContext(c5());function zl(){return w.useContext(sz)}const LC=w.createContext("ltr"),cz=({children:t,dir:e})=>w.createElement(LC.Provider,{value:e},t);function cb(){return w.useContext(LC)}function Wr(t){const e=nz(t,sb);return function(){const o=cb(),n=zl();return e({dir:o,renderer:n})}}function H(t,e){const r=FC(t,e,sb);return function(){const n=cb(),i=zl();return r({dir:n,renderer:i})}}function de(t,e,r){const o=iz(t,e,r,sb);return function(){const i=cb(),a=zl();return o({dir:i,renderer:a})}}function lz(t,e){if(e){const r=Object.keys(e).reduce((o,n)=>`${o}--${n}: ${e[n]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const qC=Symbol("fui.slotRenderFunction"),Lf=Symbol("fui.slotElementType");function ae(t,e){const{defaultProps:r,elementType:o}=e,n=lb(t),i={...r,...n,[Lf]:o};return n&&typeof n.children=="function"&&(i[qC]=n.children,i.children=r?.children),i}function ve(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return ae(t,e)}function lb(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||w.isValidElement(t)?{children:t}:t}function uz(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&!w.isValidElement(t)}function a1(t){return!!t?.hasOwnProperty(Lf)}const De=(...t)=>{const e={};for(const r of t){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)e[n]=1}return e},dz=De(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),fz=De(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),hz=De(["itemID","itemProp","itemRef","itemScope","itemType"]),yt=De(fz,dz,hz),pz=De(yt,["form"]),HC=De(yt,["height","loop","muted","preload","src","width"]),gz=De(HC,["poster"]),mz=De(yt,["start"]),vz=De(yt,["value"]),bz=De(yt,["download","href","hrefLang","media","rel","target","type"]),yz=De(yt,["dateTime"]),qf=De(yt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),wz=De(qf,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),kz=De(qf,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),_z=De(qf,["form","multiple","required"]),Sz=De(yt,["selected","value"]),Cz=De(yt,["cellPadding","cellSpacing"]),Tz=yt,xz=De(yt,["colSpan","rowSpan","scope"]),Ez=De(yt,["colSpan","headers","rowSpan","scope"]),Iz=De(yt,["span"]),Az=De(yt,["span"]),Rz=De(yt,["disabled","form"]),Pz=De(yt,["acceptCharset","action","encType","encType","method","noValidate","target"]),Bz=De(yt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Nz=De(yt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),zz=De(yt,["open","onCancel","onClose"]);function Mz(t,e,r){const o=Array.isArray(e),n={},i=Object.keys(t);for(const a of i)(!o&&e[a]||o&&e.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||r?.indexOf(a)===-1)&&(n[a]=t[a]);return n}const Oz={label:pz,audio:HC,video:gz,ol:mz,li:vz,a:bz,button:qf,input:wz,textarea:kz,select:_z,option:Sz,table:Cz,tr:Tz,th:xz,td:Ez,colGroup:Iz,col:Az,fieldset:Rz,form:Pz,iframe:Bz,img:Nz,time:yz,dialog:zz};function UC(t,e,r){const o=t&&Oz[t]||yt;return o.as=1,Mz(e,o,r)}const Is=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:UC(t,e,[...r||[],"style","className"])}),we=(t,e,r)=>{var o;return UC((o=e.as)!==null&&o!==void 0?o:t,e,r)};function ra(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function $C(t,e){const r=w.useRef(void 0),o=w.useCallback((i,a)=>(r.current!==void 0&&e(r.current),r.current=t(i,a),r.current),[e,t]),n=w.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return w.useEffect(()=>n,[n]),[o,n]}const Dz=t=>(t(0),0),jz=t=>t;function Fz(){const t=ra();return $C(t?requestAnimationFrame:Dz,t?cancelAnimationFrame:jz)}function Lz(t){return typeof t=="function"}const mr=t=>{const[e,r]=w.useState(()=>t.defaultState===void 0?t.initialState:qz(t.defaultState)?t.defaultState():t.defaultState),o=w.useRef(t.state);w.useEffect(()=>{o.current=t.state},[t.state]);const n=w.useCallback(i=>{Lz(i)&&i(o.current)},[]);return Hz(t.state)?[t.state,n]:[e,r]};function qz(t){return typeof t=="function"}const Hz=t=>{const[e]=w.useState(()=>t!==void 0);return e},KC={current:0},Uz=w.createContext(void 0);function WC(){var t;return(t=w.useContext(Uz))!==null&&t!==void 0?t:KC}function $z(){const t=WC()!==KC,[e,r]=w.useState(t);return ra()&&t&&w.useLayoutEffect(()=>{r(!1)},[]),e}const er=ra()?w.useLayoutEffect:w.useEffect,ee=t=>{const e=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return er(()=>{e.current=t},[t]),w.useCallback((...r)=>{const o=e.current;return o(...r)},[e])};function Kz(){const t=w.useRef(!0);return t.current?(t.current=!1,!0):t.current}function Wz(){return w.useReducer(t=>t+1,0)[1]}const VC=w.createContext(void 0);VC.Provider;function Vz(){return w.useContext(VC)||""}function gr(t="fui-",e){const r=WC(),o=Vz(),n=Sd.useId;if(n){const i=n(),a=w.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${o}${t}${a}`}return w.useMemo(()=>e||`${o}${t}${++r.current}`,[o,t,e,r])}function bt(...t){const e=w.useCallback(r=>{e.current=r;for(const o of t)typeof o=="function"?o(r):o&&(o.current=r)},[...t]);return e}const GC=w.createContext(void 0),Gz=GC.Provider,XC=w.createContext(void 0),Xz="",Yz=XC.Provider;function Qz(){var t;return(t=w.useContext(XC))!==null&&t!==void 0?t:Xz}const YC=w.createContext(void 0),Zz={},Jz=YC.Provider;function e3(){var t;return(t=w.useContext(YC))!==null&&t!==void 0?t:Zz}const QC=w.createContext(void 0),t3={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},r3=QC.Provider;function je(){var t;return(t=w.useContext(QC))!==null&&t!==void 0?t:t3}const ZC=w.createContext(void 0),o3=ZC.Provider;function Hf(){var t;return(t=w.useContext(ZC))!==null&&t!==void 0?t:{}}const ub=w.createContext(void 0),n3=()=>{},i3=ub.Provider,ge=t=>{var e,r;return(r=(e=w.useContext(ub))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:n3},JC=w.createContext(void 0),a3=JC.Provider;function db(){return w.useContext(JC)}const eT=w.createContext(void 0);eT.Provider;function s3(){return w.useContext(eT)}const tT=(t,e)=>!!t?.contains(e),rT=t=>{const{targetDocument:e}=je(),r=e?.defaultView,{refs:o,callback:n,element:i,disabled:a,disabledFocusOnIframe:s,contains:c=tT}=t,l=w.useRef(void 0);l3({element:i,disabled:s||a,callback:n,refs:o,contains:c});const u=w.useRef(!1),d=ee(h=>{if(u.current){u.current=!1;return}const p=h.composedPath()[0];o.every(y=>!c(y.current||null,p))&&!a&&n(h)}),f=ee(h=>{u.current=o.some(p=>c(p.current||null,h.target))});w.useEffect(()=>{if(a)return;let h=c3(r);const p=g=>{if(g===h){h=void 0;return}d(g)};return i?.addEventListener("click",p,!0),i?.addEventListener("touchstart",p,!0),i?.addEventListener("contextmenu",p,!0),i?.addEventListener("mousedown",f,!0),l.current=r?.setTimeout(()=>{h=void 0},1),()=>{i?.removeEventListener("click",p,!0),i?.removeEventListener("touchstart",p,!0),i?.removeEventListener("contextmenu",p,!0),i?.removeEventListener("mousedown",f,!0),r?.clearTimeout(l.current),h=void 0}},[d,i,a,f,r])},c3=t=>{if(t){var e,r;if(typeof t.window=="object"&&t.window===t)return t.event;var o;return(o=(r=t.ownerDocument)===null||r===void 0||(e=r.defaultView)===null||e===void 0?void 0:e.event)!==null&&o!==void 0?o:void 0}},Uh="fuiframefocus",l3=t=>{const{disabled:e,element:r,callback:o,contains:n=tT,pollDuration:i=1e3,refs:a}=t,s=w.useRef(),c=ee(l=>{a.every(d=>!n(d.current||null,l.target))&&!e&&o(l)});w.useEffect(()=>{if(!e)return r?.addEventListener(Uh,c,!0),()=>{r?.removeEventListener(Uh,c,!0)}},[r,e,c]),w.useEffect(()=>{var l;if(!e)return s.current=r==null||(l=r.defaultView)===null||l===void 0?void 0:l.setInterval(()=>{const u=r?.activeElement;if(u?.tagName==="IFRAME"||u?.tagName==="WEBVIEW"){const d=new CustomEvent(Uh,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearTimeout(s.current)}},[r,e,i])},oT=t=>{const{refs:e,callback:r,element:o,disabled:n,contains:i}=t,a=ee(s=>{const c=i||((d,f)=>!!d?.contains(f)),l=s.composedPath()[0];e.every(d=>!c(d.current||null,l))&&!n&&r(s)});w.useEffect(()=>{if(!n)return o?.addEventListener("wheel",a),o?.addEventListener("touchmove",a),()=>{o?.removeEventListener("wheel",a),o?.removeEventListener("touchmove",a)}},[a,o,n])};function Hc(){return $C(setTimeout,clearTimeout)}function ke(t,e){return(...r)=>{t?.(...r),e?.(...r)}}function at(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=e?.constructorName)!==null&&n!==void 0?n:"HTMLElement"])}function u3(t){if(!at(t))return!1;const{tagName:e}=t;switch(e){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return t.isContentEditable}function nT(t){const e=[];let r=0;const o=(f,h)=>{const p=e[f];e[f]=e[h],e[h]=p},n=f=>{let h=f;const p=d3(f),g=f3(f);pe.slice(0,r),clear:()=>{r=0},contains:f=>{const h=e.indexOf(f);return h>=0&&h{if(r===0)throw new Error("Priority queue empty");const f=e[0];return e[0]=e[--r],n(0),f},enqueue:f=>{e[r++]=f;let h=r-1,p=s1(h);for(;h>0&&t(e[p],e[h])>0;)o(p,h),h=p,p=s1(h)},peek:()=>r===0?null:e[0],remove:f=>{const h=e.indexOf(f);h===-1||h>=r||(e[h]=e[--r],n(h))},size:()=>r}}const d3=t=>2*t+1,f3=t=>2*t+2,s1=t=>Math.floor((t-1)/2);function iT(t){return!!t.type.isFluentTriggerComponent}function Uf(t,e){return typeof t=="function"?t(e):t?aT(t,e):t||null}function aT(t,e){if(!w.isValidElement(t)||t.type===w.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(iT(t)){const r=aT(t.props.children,e);return w.cloneElement(t,void 0,r)}else return w.cloneElement(t,e)}function Ml(t){return w.isValidElement(t)?iT(t)?Ml(t.props.children):t:null}function xg(t){return t.type.startsWith("touch")}function Eg(t){return t.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(t.type)>-1}function c1(t){return Eg(t)?{clientX:t.clientX,clientY:t.clientY}:xg(t)?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:0,clientY:0}}function l1(t){return t instanceof Set?t:new Set(t)}function sT(t){const[e,r]=mr({initialState:new Set,defaultState:w.useMemo(()=>t.defaultSelectedItems&&l1(t.defaultSelectedItems),[t.defaultSelectedItems]),state:w.useMemo(()=>t.selectedItems&&l1(t.selectedItems),[t.selectedItems])});return[e,(n,i)=>{var a;(a=t.onSelectionChange)===null||a===void 0||a.call(t,n,{selectedItems:i}),r(i)}]}function h3(t){const[e,r]=sT(t);return[e,{deselectItem:n=>r(n,new Set),selectItem:(n,i)=>r(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>r(n,new Set([i])),clearItems:n=>r(n,new Set),isSelected:n=>{var i;return(i=e.has(n))!==null&&i!==void 0?i:!1}}]}function p3(t){const[e,r]=sT(t);return[e,{toggleItem:(n,i)=>{const a=new Set(e);e.has(i)?a.delete(i):a.add(i),r(n,a)},selectItem:(n,i)=>{const a=new Set(e);a.add(i),r(n,a)},deselectItem:(n,i)=>{const a=new Set(e);a.delete(i),r(n,a)},clearItems:n=>{r(n,new Set)},isSelected:n=>e.has(n),toggleAllItems:(n,i)=>{const a=i.every(c=>e.has(c)),s=new Set(e);a?s.clear():i.forEach(c=>s.add(c)),r(n,s)}}]}function g3(t){return t.selectionMode==="multiselect"?p3(t):h3(t)}function m3(t){return t&&!!t._virtual}function v3(t){return m3(t)&&t._virtual.parent||null}function cT(t,e={}){if(!t)return null;if(!e.skipVirtual){const r=v3(t);if(r)return r}return t?.parentNode||null}function Uc(t,e){if(!t||!e)return!1;if(t===e)return!0;{const r=new WeakSet;for(;e;){const o=cT(e,{skipVirtual:r.has(e)});if(r.add(e),o===t)return!0;e=o}}return!1}function u1(t,e){if(!t)return;const r=t;r._virtual||(r._virtual={}),r._virtual.parent=e}function b3(t,e){return{...e,[Lf]:t}}function lT(t,e){return function(o,n,i,a,s){return a1(n)?e(b3(o,n),null,i,a,s):a1(o)?e(o,n,i,a,s):t(o,n,i,a,s)}}function uT(t){const{as:e,[Lf]:r,[qC]:o,...n}=t,i=n,a=typeof r=="string"?e??r:r;return typeof a!="string"&&e&&(i.as=e),{elementType:a,props:i,renderFunction:o}}const Ii=sR,y3=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=uT(t),a={...i,...e};return n?Ii.jsx(w.Fragment,{children:n(o,a)},r):Ii.jsx(o,a,r)},w3=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=uT(t),a={...i,...e};return n?Ii.jsx(w.Fragment,{children:n(o,{...a,children:Ii.jsxs(w.Fragment,{children:a.children},void 0)})},r):Ii.jsxs(o,a,r)},q=lT(Ii.jsx,y3),Ee=lT(Ii.jsxs,w3),Ig=w.createContext(void 0),k3={},_3=Ig.Provider,S3=()=>w.useContext(Ig)?w.useContext(Ig):k3,C3=H({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),T3=(t,e)=>{const{title:r,primaryFill:o="currentColor",...n}=t,i={...n,title:void 0,fill:o},a=C3(),s=S3();return i.className=j(a.root,e?.flipInRtl&&s?.textDirection==="rtl"&&a.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},te=(t,e,r,o)=>{const n=e==="1em"?"20":e,i=w.forwardRef((a,s)=>{const c={...T3(a,{flipInRtl:o?.flipInRtl}),ref:s,width:e,height:e,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return w.createElement("svg",c,...r.map(l=>w.createElement("path",{d:l,fill:c.fill})))});return i.displayName=t,i},x3=te("AddRegular","1em",["M10 2.5a.5.5 0 0 0-1 0V9H2.5a.5.5 0 0 0 0 1H9v6.5a.5.5 0 0 0 1 0V10h6.5a.5.5 0 0 0 0-1H10V2.5Z"]),E3=te("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),I3=te("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),A3=te("CartRegular","1em",["M3 3.5c0-.28.22-.5.5-.5h.44c.72 0 1.14.47 1.38.94.17.32.29.72.39 1.06H16a1 1 0 0 1 .96 1.27l-1.5 5.28A2 2 0 0 1 13.55 13H8.46a2 2 0 0 1-1.93-1.47L5.9 9.17l-.01-.03-1.03-3.5-.1-.33a5.2 5.2 0 0 0-.32-.91c-.16-.31-.3-.4-.5-.4H3.5a.5.5 0 0 1-.5-.5Zm3.84 5.37.66 2.4a1 1 0 0 0 .96.73h5.08a1 1 0 0 0 .96-.73L16 6H6l.84 2.87ZM10 15.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Zm6 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z"]),mZ=te("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),R3=te("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),vZ=te("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),P3=te("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),B3=te("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),N3=te("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),z3=te("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),fb=te("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),M3=te("DeleteRegular","1em",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z"]),O3=te("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),D3=te("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),bZ=te("EditRegular","1em",["M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38c-.33.33-.56.74-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15Zm-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79.68-.67Zm-1.38 1.38 2.8 2.8-7.99 7.97c-.2.2-.46.35-.74.41l-3.16.7.7-3.18c.07-.27.2-.51.4-.7l8-8Z"]),j3=te("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),yZ=te("OpenRegular","1em",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),F3=te("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),L3=te("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),wZ=te("SendRegular","1em",["M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z"],{flipInRtl:!0}),q3=te("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),H3=te("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),U3=te("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),$3=te("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),K3=te("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),W3=te("ChevronUp16Regular","16",["M3.15 10.35c.2.2.5.2.7 0L8 6.21l4.15 4.14a.5.5 0 0 0 .7-.7l-4.5-4.5a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 0 0 0 .7Z"]),V3=te("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),G3=te("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),d1=te("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),f1=te("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),X3=te("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),Y3=te("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),Q3=te("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),Z3=te("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),h1=te("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),p1=te("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),g1=te("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),J3=te("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),eM=te("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),m1=te("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),v1=te("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),tM=te("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),rM=te("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),b1=te("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),y1=te("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),oM=te("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),nM=te("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),w1=te("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),k1=te("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),_1=te("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),iM=te("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),aM=te("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),sM=te("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),cM=te("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),S1=te("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),C1=te("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),T1=te("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),lM=te("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),uM=te("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),x1=te("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),E1=te("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),dM=te("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),fM=te("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),I1=te("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),A1=te("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),hM=te("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),pM=te("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),R1=te("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),gM=te("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),mM=te("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),vM=te("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),bM="fui-Icon-filled",yM="fui-Icon-regular",wM=H({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),dT=(t,e)=>{const r=o=>{const{className:n,primaryFill:i="currentColor",filled:a,...s}=o,c=wM();return w.createElement(w.Fragment,null,w.createElement(t,Object.assign({},s,{className:j(c.root,a&&c.visible,bM,n),fill:i})),w.createElement(e,Object.assign({},s,{className:j(c.root,!a&&c.visible,yM,n),fill:i})))};return r.displayName="CompoundIcon",r},kM=(t,e)=>q(r3,{value:e.provider,children:q(Gz,{value:e.theme,children:q(Yz,{value:e.themeClassName,children:q(i3,{value:e.customStyleHooks_unstable,children:q(Jz,{value:e.tooltip,children:q(cz,{dir:e.textDirection,children:q(_3,{value:e.iconDirection,children:q(o3,{value:e.overrides_unstable,children:Ee(t.root,{children:[ra()?null:q("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});/*! +`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function o1(t,e,r,o){t[e]=o?[r,o]:r}function n1(t,e){return e?[t,e]:t}function qh(t,e,r,o,n){var i;let a;e==="m"&&n&&(a={m:n}),(i=t[e])!==null&&i!==void 0||(t[e]=[]),r&&t[e].push(n1(r,a)),o&&t[e].push(n1(o,a))}function fi(t,e=[],r="",o="",n="",i="",a={},s={},c){for(const l in t){if(e5.hasOwnProperty(l)){t[l];continue}const u=t[l];if(u!=null){if(typeof u=="string"||typeof u=="number"){const d=r1(e.join("")),f=t1(d,i,r,n,l),h=nu({container:i,media:r,layer:o,value:u.toString(),support:n,selector:d,property:l}),p=c&&{key:l,value:c}||Sg(l,u),g=p.key!==l||p.value!==u,y=g?nu({container:i,value:p.value.toString(),property:p.key,selector:d,media:r,layer:o,support:n}):void 0,v=g?{rtlClassName:y,rtlProperty:p.key,rtlValue:p.value}:void 0,m=e1(e,o,r,n,i),[b,k]=X0({className:h,media:r,layer:o,selectors:e,property:l,support:n,container:i,value:u,...v});o1(a,f,h,y),qh(s,m,b,k,r)}else if(l==="animationName"){const d=Array.isArray(u)?u:[u],f=[],h=[];for(const p of d){const g=Y0(p),y=Y0(wC(p)),v=kg+Lc(g);let m;const b=Q0(v,g);let k=[];g===y?m=v:(m=kg+Lc(y),k=Q0(m,y));for(let S=0;S(C??"").toString()).join(";"),support:n,selector:d,property:l}),p=u.map(C=>Sg(l,C));if(!!p.some(C=>C.key!==p[0].key))continue;const y=p[0].key!==l||p.some((C,_)=>C.value!==u[_]),v=y?nu({container:i,value:p.map(C=>{var _;return((_=C?.value)!==null&&_!==void 0?_:"").toString()}).join(";"),property:p[0].key,selector:d,layer:o,media:r,support:n}):void 0,m=y?{rtlClassName:v,rtlProperty:p[0].key,rtlValue:p.map(C=>C.value)}:void 0,b=e1(e,o,r,n,i),[k,S]=X0({className:h,media:r,layer:o,selectors:e,property:l,support:n,container:i,value:u,...m});o1(a,f,h,v),qh(s,b,k,S,r)}else if(rz(u))if(J5(l))fi(u,e.concat(kC(l)),r,o,n,i,a,s);else if(Y5(l)){const d=Z0(r,l.slice(6).trim());fi(u,e,d,o,n,i,a,s)}else if(Q5(l)){const d=(o?`${o}.`:"")+l.slice(6).trim();fi(u,e,r,d,n,i,a,s)}else if(ez(l)){const d=Z0(n,l.slice(9).trim());fi(u,e,r,o,d,i,a,s)}else if(tz(l)){const d=l.slice(10).trim();fi(u,e,r,o,n,d,a,s)}else oz(l,u)}}return[a,s]}function nz(t){const e={},r={};for(const o in t){const n=t[o],[i,a]=fi(n);e[o]=i,Object.keys(a).forEach(s=>{r[s]=(r[s]||[]).concat(a[s])})}return[e,r]}function iz(t,e=nb){const r=e();let o=null,n=null,i=null,a=null;function s(c){const{dir:l,renderer:u}=c;o===null&&([o,n]=nz(t));const d=l==="ltr";return d?i===null&&(i=zd(o,l)):a===null&&(a=zd(o,l)),r(u,n),d?i:a}return s}function FC(t,e,r=nb){const o=r();let n=null,i=null;function a(s){const{dir:c,renderer:l}=s,u=c==="ltr";return u?n===null&&(n=zd(t,c)):i===null&&(i=zd(t,c)),o(l,e),u?n:i}return a}function az(t,e,r,o=nb){const n=o();function i(a){const{dir:s,renderer:c}=a,l=s==="ltr"?t:e||t;return n(c,Array.isArray(r)?{r}:r),l}return i}const ls={border:vN,borderLeft:bN,borderBottom:yN,borderRight:wN,borderTop:kN,borderColor:yg,borderStyle:bg,borderRadius:_N,borderWidth:vg,flex:EN,gap:IN,gridArea:NN,margin:zN,marginBlock:MN,marginInline:ON,padding:DN,paddingBlock:jN,paddingInline:FN,overflow:LN,inset:qN,outline:HN,transition:UN,textDecoration:VN};function sz(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const i1=_d.useInsertionEffect?_d.useInsertionEffect:void 0,ab=()=>{const t={};return function(r,o){if(i1&&sz()){i1(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},cz=w.createContext(l5());function zl(){return w.useContext(cz)}const LC=w.createContext("ltr"),lz=({children:t,dir:e})=>w.createElement(LC.Provider,{value:e},t);function sb(){return w.useContext(LC)}function Wr(t){const e=iz(t,ab);return function(){const o=sb(),n=zl();return e({dir:o,renderer:n})}}function H(t,e){const r=FC(t,e,ab);return function(){const n=sb(),i=zl();return r({dir:n,renderer:i})}}function de(t,e,r){const o=az(t,e,r,ab);return function(){const i=sb(),a=zl();return o({dir:i,renderer:a})}}function uz(t,e){if(e){const r=Object.keys(e).reduce((o,n)=>`${o}--${n}: ${e[n]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const qC=Symbol("fui.slotRenderFunction"),Ff=Symbol("fui.slotElementType");function ae(t,e){const{defaultProps:r,elementType:o}=e,n=cb(t),i={...r,...n,[Ff]:o};return n&&typeof n.children=="function"&&(i[qC]=n.children,i.children=r?.children),i}function ve(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return ae(t,e)}function cb(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||w.isValidElement(t)?{children:t}:t}function dz(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&!w.isValidElement(t)}function a1(t){return!!t?.hasOwnProperty(Ff)}const De=(...t)=>{const e={};for(const r of t){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)e[n]=1}return e},fz=De(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),hz=De(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),pz=De(["itemID","itemProp","itemRef","itemScope","itemType"]),yt=De(hz,fz,pz),gz=De(yt,["form"]),HC=De(yt,["height","loop","muted","preload","src","width"]),mz=De(HC,["poster"]),vz=De(yt,["start"]),bz=De(yt,["value"]),yz=De(yt,["download","href","hrefLang","media","rel","target","type"]),wz=De(yt,["dateTime"]),Lf=De(yt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),kz=De(Lf,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),_z=De(Lf,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),Sz=De(Lf,["form","multiple","required"]),Cz=De(yt,["selected","value"]),Tz=De(yt,["cellPadding","cellSpacing"]),xz=yt,Ez=De(yt,["colSpan","rowSpan","scope"]),Iz=De(yt,["colSpan","headers","rowSpan","scope"]),Az=De(yt,["span"]),Rz=De(yt,["span"]),Pz=De(yt,["disabled","form"]),Bz=De(yt,["acceptCharset","action","encType","encType","method","noValidate","target"]),Nz=De(yt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),zz=De(yt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Mz=De(yt,["open","onCancel","onClose"]);function Oz(t,e,r){const o=Array.isArray(e),n={},i=Object.keys(t);for(const a of i)(!o&&e[a]||o&&e.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||r?.indexOf(a)===-1)&&(n[a]=t[a]);return n}const Dz={label:gz,audio:HC,video:mz,ol:vz,li:bz,a:yz,button:Lf,input:kz,textarea:_z,select:Sz,option:Cz,table:Tz,tr:xz,th:Ez,td:Iz,colGroup:Az,col:Rz,fieldset:Pz,form:Bz,iframe:Nz,img:zz,time:wz,dialog:Mz};function UC(t,e,r){const o=t&&Dz[t]||yt;return o.as=1,Oz(e,o,r)}const Is=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:UC(t,e,[...r||[],"style","className"])}),we=(t,e,r)=>{var o;return UC((o=e.as)!==null&&o!==void 0?o:t,e,r)};function ra(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function $C(t,e){const r=w.useRef(void 0),o=w.useCallback((i,a)=>(r.current!==void 0&&e(r.current),r.current=t(i,a),r.current),[e,t]),n=w.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return w.useEffect(()=>n,[n]),[o,n]}const jz=t=>(t(0),0),Fz=t=>t;function Lz(){const t=ra();return $C(t?requestAnimationFrame:jz,t?cancelAnimationFrame:Fz)}function qz(t){return typeof t=="function"}const mr=t=>{const[e,r]=w.useState(()=>t.defaultState===void 0?t.initialState:Hz(t.defaultState)?t.defaultState():t.defaultState),o=w.useRef(t.state);w.useEffect(()=>{o.current=t.state},[t.state]);const n=w.useCallback(i=>{qz(i)&&i(o.current)},[]);return Uz(t.state)?[t.state,n]:[e,r]};function Hz(t){return typeof t=="function"}const Uz=t=>{const[e]=w.useState(()=>t!==void 0);return e},KC={current:0},$z=w.createContext(void 0);function WC(){var t;return(t=w.useContext($z))!==null&&t!==void 0?t:KC}function Kz(){const t=WC()!==KC,[e,r]=w.useState(t);return ra()&&t&&w.useLayoutEffect(()=>{r(!1)},[]),e}const er=ra()?w.useLayoutEffect:w.useEffect,ee=t=>{const e=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return er(()=>{e.current=t},[t]),w.useCallback((...r)=>{const o=e.current;return o(...r)},[e])};function Wz(){const t=w.useRef(!0);return t.current?(t.current=!1,!0):t.current}function Vz(){return w.useReducer(t=>t+1,0)[1]}const VC=w.createContext(void 0);VC.Provider;function Gz(){return w.useContext(VC)||""}function gr(t="fui-",e){const r=WC(),o=Gz(),n=_d.useId;if(n){const i=n(),a=w.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${o}${t}${a}`}return w.useMemo(()=>e||`${o}${t}${++r.current}`,[o,t,e,r])}function bt(...t){const e=w.useCallback(r=>{e.current=r;for(const o of t)typeof o=="function"?o(r):o&&(o.current=r)},[...t]);return e}const GC=w.createContext(void 0),Xz=GC.Provider,XC=w.createContext(void 0),Yz="",Qz=XC.Provider;function Zz(){var t;return(t=w.useContext(XC))!==null&&t!==void 0?t:Yz}const YC=w.createContext(void 0),Jz={},e3=YC.Provider;function t3(){var t;return(t=w.useContext(YC))!==null&&t!==void 0?t:Jz}const QC=w.createContext(void 0),r3={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},o3=QC.Provider;function je(){var t;return(t=w.useContext(QC))!==null&&t!==void 0?t:r3}const ZC=w.createContext(void 0),n3=ZC.Provider;function qf(){var t;return(t=w.useContext(ZC))!==null&&t!==void 0?t:{}}const lb=w.createContext(void 0),i3=()=>{},a3=lb.Provider,ge=t=>{var e,r;return(r=(e=w.useContext(lb))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:i3},JC=w.createContext(void 0),s3=JC.Provider;function ub(){return w.useContext(JC)}const eT=w.createContext(void 0);eT.Provider;function c3(){return w.useContext(eT)}const tT=(t,e)=>!!t?.contains(e),rT=t=>{const{targetDocument:e}=je(),r=e?.defaultView,{refs:o,callback:n,element:i,disabled:a,disabledFocusOnIframe:s,contains:c=tT}=t,l=w.useRef(void 0);u3({element:i,disabled:s||a,callback:n,refs:o,contains:c});const u=w.useRef(!1),d=ee(h=>{if(u.current){u.current=!1;return}const p=h.composedPath()[0];o.every(y=>!c(y.current||null,p))&&!a&&n(h)}),f=ee(h=>{u.current=o.some(p=>c(p.current||null,h.target))});w.useEffect(()=>{if(a)return;let h=l3(r);const p=g=>{if(g===h){h=void 0;return}d(g)};return i?.addEventListener("click",p,!0),i?.addEventListener("touchstart",p,!0),i?.addEventListener("contextmenu",p,!0),i?.addEventListener("mousedown",f,!0),l.current=r?.setTimeout(()=>{h=void 0},1),()=>{i?.removeEventListener("click",p,!0),i?.removeEventListener("touchstart",p,!0),i?.removeEventListener("contextmenu",p,!0),i?.removeEventListener("mousedown",f,!0),r?.clearTimeout(l.current),h=void 0}},[d,i,a,f,r])},l3=t=>{if(t){var e,r;if(typeof t.window=="object"&&t.window===t)return t.event;var o;return(o=(r=t.ownerDocument)===null||r===void 0||(e=r.defaultView)===null||e===void 0?void 0:e.event)!==null&&o!==void 0?o:void 0}},Hh="fuiframefocus",u3=t=>{const{disabled:e,element:r,callback:o,contains:n=tT,pollDuration:i=1e3,refs:a}=t,s=w.useRef(),c=ee(l=>{a.every(d=>!n(d.current||null,l.target))&&!e&&o(l)});w.useEffect(()=>{if(!e)return r?.addEventListener(Hh,c,!0),()=>{r?.removeEventListener(Hh,c,!0)}},[r,e,c]),w.useEffect(()=>{var l;if(!e)return s.current=r==null||(l=r.defaultView)===null||l===void 0?void 0:l.setInterval(()=>{const u=r?.activeElement;if(u?.tagName==="IFRAME"||u?.tagName==="WEBVIEW"){const d=new CustomEvent(Hh,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearTimeout(s.current)}},[r,e,i])},oT=t=>{const{refs:e,callback:r,element:o,disabled:n,contains:i}=t,a=ee(s=>{const c=i||((d,f)=>!!d?.contains(f)),l=s.composedPath()[0];e.every(d=>!c(d.current||null,l))&&!n&&r(s)});w.useEffect(()=>{if(!n)return o?.addEventListener("wheel",a),o?.addEventListener("touchmove",a),()=>{o?.removeEventListener("wheel",a),o?.removeEventListener("touchmove",a)}},[a,o,n])};function Hc(){return $C(setTimeout,clearTimeout)}function ke(t,e){return(...r)=>{t?.(...r),e?.(...r)}}function at(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=e?.constructorName)!==null&&n!==void 0?n:"HTMLElement"])}function d3(t){if(!at(t))return!1;const{tagName:e}=t;switch(e){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return t.isContentEditable}function nT(t){const e=[];let r=0;const o=(f,h)=>{const p=e[f];e[f]=e[h],e[h]=p},n=f=>{let h=f;const p=f3(f),g=h3(f);pe.slice(0,r),clear:()=>{r=0},contains:f=>{const h=e.indexOf(f);return h>=0&&h{if(r===0)throw new Error("Priority queue empty");const f=e[0];return e[0]=e[--r],n(0),f},enqueue:f=>{e[r++]=f;let h=r-1,p=s1(h);for(;h>0&&t(e[p],e[h])>0;)o(p,h),h=p,p=s1(h)},peek:()=>r===0?null:e[0],remove:f=>{const h=e.indexOf(f);h===-1||h>=r||(e[h]=e[--r],n(h))},size:()=>r}}const f3=t=>2*t+1,h3=t=>2*t+2,s1=t=>Math.floor((t-1)/2);function iT(t){return!!t.type.isFluentTriggerComponent}function Hf(t,e){return typeof t=="function"?t(e):t?aT(t,e):t||null}function aT(t,e){if(!w.isValidElement(t)||t.type===w.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(iT(t)){const r=aT(t.props.children,e);return w.cloneElement(t,void 0,r)}else return w.cloneElement(t,e)}function Ml(t){return w.isValidElement(t)?iT(t)?Ml(t.props.children):t:null}function Tg(t){return t.type.startsWith("touch")}function xg(t){return t.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(t.type)>-1}function c1(t){return xg(t)?{clientX:t.clientX,clientY:t.clientY}:Tg(t)?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:0,clientY:0}}function l1(t){return t instanceof Set?t:new Set(t)}function sT(t){const[e,r]=mr({initialState:new Set,defaultState:w.useMemo(()=>t.defaultSelectedItems&&l1(t.defaultSelectedItems),[t.defaultSelectedItems]),state:w.useMemo(()=>t.selectedItems&&l1(t.selectedItems),[t.selectedItems])});return[e,(n,i)=>{var a;(a=t.onSelectionChange)===null||a===void 0||a.call(t,n,{selectedItems:i}),r(i)}]}function p3(t){const[e,r]=sT(t);return[e,{deselectItem:n=>r(n,new Set),selectItem:(n,i)=>r(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>r(n,new Set([i])),clearItems:n=>r(n,new Set),isSelected:n=>{var i;return(i=e.has(n))!==null&&i!==void 0?i:!1}}]}function g3(t){const[e,r]=sT(t);return[e,{toggleItem:(n,i)=>{const a=new Set(e);e.has(i)?a.delete(i):a.add(i),r(n,a)},selectItem:(n,i)=>{const a=new Set(e);a.add(i),r(n,a)},deselectItem:(n,i)=>{const a=new Set(e);a.delete(i),r(n,a)},clearItems:n=>{r(n,new Set)},isSelected:n=>e.has(n),toggleAllItems:(n,i)=>{const a=i.every(c=>e.has(c)),s=new Set(e);a?s.clear():i.forEach(c=>s.add(c)),r(n,s)}}]}function m3(t){return t.selectionMode==="multiselect"?g3(t):p3(t)}function v3(t){return t&&!!t._virtual}function b3(t){return v3(t)&&t._virtual.parent||null}function cT(t,e={}){if(!t)return null;if(!e.skipVirtual){const r=b3(t);if(r)return r}return t?.parentNode||null}function Uc(t,e){if(!t||!e)return!1;if(t===e)return!0;{const r=new WeakSet;for(;e;){const o=cT(e,{skipVirtual:r.has(e)});if(r.add(e),o===t)return!0;e=o}}return!1}function u1(t,e){if(!t)return;const r=t;r._virtual||(r._virtual={}),r._virtual.parent=e}function y3(t,e){return{...e,[Ff]:t}}function lT(t,e){return function(o,n,i,a,s){return a1(n)?e(y3(o,n),null,i,a,s):a1(o)?e(o,n,i,a,s):t(o,n,i,a,s)}}function uT(t){const{as:e,[Ff]:r,[qC]:o,...n}=t,i=n,a=typeof r=="string"?e??r:r;return typeof a!="string"&&e&&(i.as=e),{elementType:a,props:i,renderFunction:o}}const Ii=cR,w3=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=uT(t),a={...i,...e};return n?Ii.jsx(w.Fragment,{children:n(o,a)},r):Ii.jsx(o,a,r)},k3=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=uT(t),a={...i,...e};return n?Ii.jsx(w.Fragment,{children:n(o,{...a,children:Ii.jsxs(w.Fragment,{children:a.children},void 0)})},r):Ii.jsxs(o,a,r)},q=lT(Ii.jsx,w3),Ee=lT(Ii.jsxs,k3),Eg=w.createContext(void 0),_3={},S3=Eg.Provider,C3=()=>w.useContext(Eg)?w.useContext(Eg):_3,T3=H({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),x3=(t,e)=>{const{title:r,primaryFill:o="currentColor",...n}=t,i={...n,title:void 0,fill:o},a=T3(),s=C3();return i.className=j(a.root,e?.flipInRtl&&s?.textDirection==="rtl"&&a.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},te=(t,e,r,o)=>{const n=e==="1em"?"20":e,i=w.forwardRef((a,s)=>{const c={...x3(a,{flipInRtl:o?.flipInRtl}),ref:s,width:e,height:e,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return w.createElement("svg",c,...r.map(l=>w.createElement("path",{d:l,fill:c.fill})))});return i.displayName=t,i},E3=te("AddRegular","1em",["M10 2.5a.5.5 0 0 0-1 0V9H2.5a.5.5 0 0 0 0 1H9v6.5a.5.5 0 0 0 1 0V10h6.5a.5.5 0 0 0 0-1H10V2.5Z"]),I3=te("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),A3=te("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),R3=te("CartRegular","1em",["M3 3.5c0-.28.22-.5.5-.5h.44c.72 0 1.14.47 1.38.94.17.32.29.72.39 1.06H16a1 1 0 0 1 .96 1.27l-1.5 5.28A2 2 0 0 1 13.55 13H8.46a2 2 0 0 1-1.93-1.47L5.9 9.17l-.01-.03-1.03-3.5-.1-.33a5.2 5.2 0 0 0-.32-.91c-.16-.31-.3-.4-.5-.4H3.5a.5.5 0 0 1-.5-.5Zm3.84 5.37.66 2.4a1 1 0 0 0 .96.73h5.08a1 1 0 0 0 .96-.73L16 6H6l.84 2.87ZM10 15.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Zm6 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z"]),vZ=te("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),P3=te("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),bZ=te("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),B3=te("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),N3=te("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),z3=te("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),M3=te("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),db=te("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),O3=te("DeleteRegular","1em",["M8.5 4h3a1.5 1.5 0 0 0-3 0Zm-1 0a2.5 2.5 0 0 1 5 0h5a.5.5 0 0 1 0 1h-1.05l-1.2 10.34A3 3 0 0 1 12.27 18H7.73a3 3 0 0 1-2.98-2.66L3.55 5H2.5a.5.5 0 0 1 0-1h5ZM5.74 15.23A2 2 0 0 0 7.73 17h4.54a2 2 0 0 0 1.99-1.77L15.44 5H4.56l1.18 10.23ZM8.5 7.5c.28 0 .5.22.5.5v6a.5.5 0 0 1-1 0V8c0-.28.22-.5.5-.5ZM12 8a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V8Z"]),D3=te("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),j3=te("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),yZ=te("EditRegular","1em",["M17.18 2.93a2.97 2.97 0 0 0-4.26-.06l-9.37 9.38c-.33.33-.56.74-.66 1.2l-.88 3.94a.5.5 0 0 0 .6.6l3.93-.87c.46-.1.9-.34 1.23-.68l9.36-9.36a2.97 2.97 0 0 0 .05-4.15Zm-3.55.65a1.97 1.97 0 1 1 2.8 2.8l-.68.66-2.8-2.79.68-.67Zm-1.38 1.38 2.8 2.8-7.99 7.97c-.2.2-.46.35-.74.41l-3.16.7.7-3.18c.07-.27.2-.51.4-.7l8-8Z"]),F3=te("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),wZ=te("OpenRegular","1em",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),L3=te("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),q3=te("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),kZ=te("SendRegular","1em",["M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z"],{flipInRtl:!0}),H3=te("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),U3=te("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),$3=te("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),K3=te("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),W3=te("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),V3=te("ChevronUp16Regular","16",["M3.15 10.35c.2.2.5.2.7 0L8 6.21l4.15 4.14a.5.5 0 0 0 .7-.7l-4.5-4.5a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 0 0 0 .7Z"]),G3=te("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),X3=te("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),d1=te("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),f1=te("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),Y3=te("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),Q3=te("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),Z3=te("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),J3=te("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),h1=te("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),p1=te("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),g1=te("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),eM=te("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),tM=te("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),m1=te("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),v1=te("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),rM=te("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),oM=te("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),b1=te("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),y1=te("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),nM=te("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),iM=te("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),w1=te("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),k1=te("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),_1=te("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),aM=te("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),sM=te("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),cM=te("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),lM=te("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),S1=te("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),C1=te("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),T1=te("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),uM=te("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),dM=te("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),x1=te("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),E1=te("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),fM=te("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),hM=te("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),I1=te("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),A1=te("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),pM=te("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),gM=te("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),R1=te("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),mM=te("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),vM=te("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),bM=te("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),yM="fui-Icon-filled",wM="fui-Icon-regular",kM=H({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),dT=(t,e)=>{const r=o=>{const{className:n,primaryFill:i="currentColor",filled:a,...s}=o,c=kM();return w.createElement(w.Fragment,null,w.createElement(t,Object.assign({},s,{className:j(c.root,a&&c.visible,yM,n),fill:i})),w.createElement(e,Object.assign({},s,{className:j(c.root,!a&&c.visible,wM,n),fill:i})))};return r.displayName="CompoundIcon",r},_M=(t,e)=>q(o3,{value:e.provider,children:q(Xz,{value:e.theme,children:q(Qz,{value:e.themeClassName,children:q(a3,{value:e.customStyleHooks_unstable,children:q(e3,{value:e.tooltip,children:q(lz,{dir:e.textDirection,children:q(S3,{value:e.iconDirection,children:q(n3,{value:e.overrides_unstable,children:Ee(t.root,{children:[ra()?null:q("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});var SM=typeof WeakRef<"u",fT=class{constructor(t){SM&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,e;let r;return this._weakRef?(r=(t=this._weakRef)==null?void 0:t.deref(),r||delete this._weakRef):(r=this._instance,(e=r?.isDisposed)!=null&&e.call(r)&&delete this._instance),r}},uo="keyborg:focusin";function CM(t){const e=t.HTMLElement,r=e.prototype.focus;let o=!1;return e.prototype.focus=function(){o=!0},t.document.createElement("button").focus(),e.prototype.focus=r,o}var Uh=!1;function zo(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function TM(t){const e=t;Uh||(Uh=CM(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=a;const o=s=>{const c=s.relatedTarget,l=s.currentTarget;l.contains(c)||(l.removeEventListener("focusin",n,!0),l.removeEventListener("focusout",o,!0))},n=s=>{var c;const l=s.target;if(!l)return;if(l.shadowRoot){l.shadowRoot.addEventListener("focusin",n,!0),l.shadowRoot.addEventListener("focusout",o,!0);return}const u={relatedTarget:s.relatedTarget||void 0},d=new CustomEvent(uo,{cancelable:!0,bubbles:!0,composed:!0,detail:u});d.details=u,(Uh||i.lastFocusedProgrammatically)&&(u.isFocusedProgrammatically=l===((c=i.lastFocusedProgrammatically)==null?void 0:c.deref()),i.lastFocusedProgrammatically=void 0),l.dispatchEvent(d)},i=e.__keyborgData={focusInHandler:n};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0);function a(){const s=e.__keyborgData;return s&&(s.lastFocusedProgrammatically=new fT(this)),r.apply(this,arguments)}a.__keyborgNativeFocus=r}function xM(t){const e=t,r=e.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=e.__keyborgData;n&&(e.document.removeEventListener("focusin",n.focusInHandler,!0),delete e.__keyborgData),o&&(r.focus=o)}var EM=500,hT=0,IM=class{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const e=t.id;e in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[e]=new fT(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const e of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[e].deref();o?o.update(t):this.remove(e)}}}getVal(){return this._isNavigatingWithKeyboard}},yo=new IM,AM=class{constructor(t,e){this._onFocusIn=o=>{if(this._isMouseUsedTimer||yo.getVal())return;const n=o.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||yo.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const n=this._win;n&&(this._isMouseUsedTimer&&n.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=n.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),yo.setVal(!1)},this._onKeyDown=o=>{var n,i;const a=yo.getVal(),s=o.keyCode,c=this._triggerKeys;if(!a&&(!c||c.has(s))){const l=(n=this._win)==null?void 0:n.document.activeElement;if(l&&(l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.contentEditable==="true"))return;yo.setVal(!0)}else a&&((i=this._dismissKeys)!=null&&i.has(s))&&this._scheduleDismiss()},this.id="c"+ ++hT,this._win=t;const r=t.document;if(e){const o=e.triggerKeys,n=e.dismissKeys;o?.length&&(this._triggerKeys=new Set(o)),n?.length&&(this._dismissKeys=new Set(n))}r.addEventListener(uo,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),TM(t),yo.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),xM(t);const e=t.document;e.removeEventListener(uo,this._onFocusIn,!0),e.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,yo.remove(this.id)}}isDisposed(){return!!this._win}update(t){var e,r;const o=(r=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:r.refs;if(o)for(const n of Object.keys(o))fb.update(o[n],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const e=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const r=t.document.activeElement;e&&r&&e===r&&yo.setVal(!1)},EM)}}},fb=class pT{constructor(e,r){this._cb=[],this._id="k"+ ++hT,this._win=e;const o=e.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new AM(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new pT(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(o=>o(r))}dispose(){var e;const r=(e=this._win)==null?void 0:e.__keyborg;r?.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return yo.getVal()}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){yo.setVal(e)}};function hb(t,e){return fb.create(t,e)}function pb(t){fb.dispose(t)}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const _M=typeof WeakRef<"u";class fT{constructor(e){_M&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,r,o;let n;return this._weakRef?(n=(e=this._weakRef)===null||e===void 0?void 0:e.deref(),n||delete this._weakRef):(n=this._instance,!((o=(r=n)===null||r===void 0?void 0:r.isDisposed)===null||o===void 0)&&o.call(r)&&delete this._instance),n}}/*! + *//*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const uo="keyborg:focusin";function SM(t){const e=t.HTMLElement,r=e.prototype.focus;let o=!1;return e.prototype.focus=function(){o=!0},t.document.createElement("button").focus(),e.prototype.focus=r,o}let $h=!1;function zo(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function CM(t){const e=t;$h||($h=SM(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=a;const o=s=>{const c=s.relatedTarget,l=s.currentTarget;l.contains(c)||(l.removeEventListener("focusin",n),l.removeEventListener("focusout",o))},n=s=>{var c;let l=s.target;if(!l)return;l.shadowRoot&&(l.shadowRoot.addEventListener("focusin",n),l.shadowRoot.addEventListener("focusout",o),l=s.composedPath()[0]);const u={relatedTarget:s.relatedTarget||void 0},d=new CustomEvent(uo,{cancelable:!0,bubbles:!0,composed:!0,detail:u});d.details=u,($h||i.lastFocusedProgrammatically)&&(u.isFocusedProgrammatically=l===((c=i.lastFocusedProgrammatically)===null||c===void 0?void 0:c.deref()),i.lastFocusedProgrammatically=void 0),l.dispatchEvent(d)},i=e.__keyborgData={focusInHandler:n};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0);function a(){const s=e.__keyborgData;return s&&(s.lastFocusedProgrammatically=new fT(this)),r.apply(this,arguments)}a.__keyborgNativeFocus=r}function TM(t){const e=t,r=e.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=e.__keyborgData;n&&(e.document.removeEventListener("focusin",n.focusInHandler,!0),delete e.__keyborgData),o&&(r.focus=o)}/*! + */const en="data-tabster",gT="data-tabster-dummy",RM="tabster:deloser",mT="tabster:modalizer:active",vT="tabster:modalizer:inactive",PM="tabster:modalizer:focusin",BM="tabster:modalizer:focusout",NM="tabster:modalizer:beforefocusout",Ig="tabster:mover",bT="tabster:focusin",yT="tabster:focusout",wT="tabster:movefocus",gb=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),zM={Any:0,Accessible:1,Focusable:2},MM={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},qo={Invisible:0,PartiallyVisible:1,Visible:2},$c={Source:0,Target:1},hi={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},kT={Unlimited:0,Limited:1,LimitedTrapFocus:2},_T={Auto:0,Inside:1,Outside:2};var ur=Object.freeze({__proto__:null,TabsterAttributeName:en,TabsterDummyInputAttributeName:gT,DeloserEventName:RM,ModalizerActiveEventName:mT,ModalizerInactiveEventName:vT,ModalizerFocusInEventName:PM,ModalizerFocusOutEventName:BM,ModalizerBeforeFocusOutEventName:NM,MoverEventName:Ig,FocusInEventName:bT,FocusOutEventName:yT,MoveFocusEventName:wT,FocusableSelector:gb,ObservedElementAccesibilities:zM,RestoreFocusOrders:MM,Visibilities:qo,RestorerTypes:$c,MoverDirections:hi,GroupperTabbabilities:kT,SysDummyInputsPositions:_T});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const xM=500;let hT=0;class EM{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(e){const r=e.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new fT(e))}remove(e){delete this.__keyborgCoreRefs[e],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(e){if(this._isNavigatingWithKeyboard!==e){this._isNavigatingWithKeyboard=e;for(const r of Object.keys(this.__keyborgCoreRefs)){const n=this.__keyborgCoreRefs[r].deref();n?n.update(e):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const yo=new EM;class IM{constructor(e,r){this._onFocusIn=n=>{if(this._isMouseUsedTimer||yo.getVal())return;const i=n.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||yo.setVal(!0))},this._onMouseDown=n=>{if(n.buttons===0||n.clientX===0&&n.clientY===0&&n.screenX===0&&n.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),yo.setVal(!1)},this._onKeyDown=n=>{var i,a;const s=yo.getVal(),c=n.keyCode,l=this._triggerKeys;if(!s&&(!l||l.has(c))){const u=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.contentEditable==="true"))return;yo.setVal(!0)}else s&&(!((a=this._dismissKeys)===null||a===void 0)&&a.has(c))&&this._scheduleDismiss()},this.id="c"+ ++hT,this._win=e;const o=e.document;if(r){const n=r.triggerKeys,i=r.dismissKeys;n?.length&&(this._triggerKeys=new Set(n)),i?.length&&(this._dismissKeys=new Set(i))}o.addEventListener(uo,this._onFocusIn,!0),o.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),CM(e),yo.add(this)}dispose(){const e=this._win;if(e){this._isMouseUsedTimer&&(e.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),TM(e);const r=e.document;r.removeEventListener(uo,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,yo.remove(this.id)}}isDisposed(){return!!this._win}update(e){var r,o;const n=(o=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||o===void 0?void 0:o.refs;if(n)for(const i of Object.keys(n))Ol.update(n[i],e)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const o=e.document.activeElement;r&&o&&r===o&&yo.setVal(!1)},xM)}}}class Ol{constructor(e,r){this._cb=[],this._id="k"+ ++hT,this._win=e;const o=e.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new IM(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new Ol(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(o=>o(r))}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.__keyborg;r?.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return yo.getVal()}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){yo.setVal(e)}}function hb(t,e){return Ol.create(t,e)}function pb(t){Ol.dispose(t)}/*! + */function tr(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function ST(t,e,r){var o,n;const i=r||t._noop?void 0:e.getAttribute(en);let a=t.storageEntry(e),s;if(i)if(i!==((o=a?.attr)===null||o===void 0?void 0:o.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);s={string:i,object:d}}catch{}else return;else if(!a)return;a||(a=t.storageEntry(e,!0)),a.tabster||(a.tabster={});const c=a.tabster||{},l=((n=a.attr)===null||n===void 0?void 0:n.object)||{},u=s?.object||{};for(const d of Object.keys(l))if(!u[d]){if(d==="root"){const f=c[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=c[d];f&&(f.dispose(),delete c[d]);break;case"observed":delete c[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":c.deloser?c.deloser.setProps(u.deloser):t.deloser&&(c.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":c.root?c.root.setProps(u.root):c.root=t.root.createRoot(e,u.root,f),t.root.onRoot(c.root);break;case"modalizer":c.modalizer?c.modalizer.setProps(u.modalizer):t.modalizer&&(c.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":c.restorer?c.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(c.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":c.focusable=u.focusable;break;case"groupper":c.groupper?c.groupper.setProps(u.groupper):t.groupper&&(c.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":c.mover?c.mover.setProps(u.mover):t.mover&&(c.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(c.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":c.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(c.outline=u.outline);break;case"sys":c.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?a.attr=s:(Object.keys(c).length===0&&(delete a.tabster,delete a.attr),t.storageEntry(e,!1))}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const en="data-tabster",pT="data-tabster-dummy",AM="tabster:deloser",gT="tabster:modalizer:active",mT="tabster:modalizer:inactive",RM="tabster:modalizer:focusin",PM="tabster:modalizer:focusout",BM="tabster:modalizer:beforefocusout",Ag="tabster:mover",vT="tabster:focusin",bT="tabster:focusout",yT="tabster:movefocus",gb=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),NM={Any:0,Accessible:1,Focusable:2},zM={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},qo={Invisible:0,PartiallyVisible:1,Visible:2},$c={Source:0,Target:1},hi={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},wT={Unlimited:0,Limited:1,LimitedTrapFocus:2},kT={Auto:0,Inside:1,Outside:2};var ur=Object.freeze({__proto__:null,TabsterAttributeName:en,TabsterDummyInputAttributeName:pT,DeloserEventName:AM,ModalizerActiveEventName:gT,ModalizerInactiveEventName:mT,ModalizerFocusInEventName:RM,ModalizerFocusOutEventName:PM,ModalizerBeforeFocusOutEventName:BM,MoverEventName:Ag,FocusInEventName:vT,FocusOutEventName:bT,MoveFocusEventName:yT,FocusableSelector:gb,ObservedElementAccesibilities:NM,RestoreFocusOrders:zM,Visibilities:qo,RestorerTypes:$c,MoverDirections:hi,GroupperTabbabilities:wT,SysDummyInputsPositions:kT});/*! + */function OM(t){const e=t();try{if(e.EventTarget)return new e.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return e.document.createElement("div")}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function tr(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function _T(t,e,r){var o,n;const i=r||t._noop?void 0:e.getAttribute(en);let a=t.storageEntry(e),s;if(i)if(i!==((o=a?.attr)===null||o===void 0?void 0:o.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);s={string:i,object:d}}catch{}else return;else if(!a)return;a||(a=t.storageEntry(e,!0)),a.tabster||(a.tabster={});const c=a.tabster||{},l=((n=a.attr)===null||n===void 0?void 0:n.object)||{},u=s?.object||{};for(const d of Object.keys(l))if(!u[d]){if(d==="root"){const f=c[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=c[d];f&&(f.dispose(),delete c[d]);break;case"observed":delete c[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":c.deloser?c.deloser.setProps(u.deloser):t.deloser&&(c.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":c.root?c.root.setProps(u.root):c.root=t.root.createRoot(e,u.root,f),t.root.onRoot(c.root);break;case"modalizer":c.modalizer?c.modalizer.setProps(u.modalizer):t.modalizer&&(c.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":c.restorer?c.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(c.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":c.focusable=u.focusable;break;case"groupper":c.groupper?c.groupper.setProps(u.groupper):t.groupper&&(c.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":c.mover?c.mover.setProps(u.mover):t.mover&&(c.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(c.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":c.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(c.outline=u.outline);break;case"sys":c.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?a.attr=s:(Object.keys(c).length===0&&(delete a.tabster,delete a.attr),t.storageEntry(e,!1))}/*! + */let Ag;const P1=typeof DOMRect<"u"?DOMRect:class{constructor(t,e,r,o){this.left=t||0,this.top=e||0,this.right=(t||0)+(r||0),this.bottom=(e||0)+(o||0)}};let DM=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Ag=!1}catch{Ag=!0}const $h=100;function vn(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function jM(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function FM(t){const e=t.__tabsterInstanceContext;return new(e?.basics.WeakMap||WeakMap)}function LM(t){return!!t.querySelector(gb)}class CT{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!vb(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class Tr{constructor(e,r,o){const n=vn(e);let i;n.WeakRef?i=new n.WeakRef(r):(i=new CT(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function TT(t,e){const r=vn(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!CT.cleanup(o,e))}function xT(t){const e=vn(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=WM(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,TT(t),xT(t)},2*60*1e3))}function qM(t){const e=vn(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function mb(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const o=Ag?r:{acceptNode:r};return t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1)}function ET(t,e){let r=e.__tabsterCacheId;const o=vn(t),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=e.ownerDocument&&e.ownerDocument.documentElement;if(!i)return new P1;let a=0,s=0,c=i.clientWidth,l=i.clientHeight;if(e!==i){const d=e.getBoundingClientRect();a=Math.max(a,d.left),s=Math.max(s,d.top),c=Math.min(c,d.right),l=Math.min(l,d.bottom)}const u=new P1(a{o.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[d].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function B1(t,e,r){const o=IT(e);if(!o)return!1;const n=ET(t,o),i=e.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,n.top-i.top),c=Math.max(0,i.bottom-n.bottom),l=s+c;return l===0||l<=a}function HM(t,e,r){const o=IT(e);if(o){const n=ET(t,o),i=e.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function IT(t){const e=t.ownerDocument;if(e){for(let r=t.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return e.documentElement}return null}function UM(t){t.__shouldIgnoreFocus=!0}function AT(t){return!!t.__shouldIgnoreFocus}function $M(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let o=0;o{if(this._fixedTarget){const f=this._fixedTarget.get();f&&zo(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=e(),c=s.document.createElement("i");c.tabIndex=0,c.setAttribute("role","none"),c.setAttribute(gT,""),c.setAttribute("aria-hidden","true");const l=c.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),UM(c),this.input=c,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(a=o.isPhantom)!==null&&a!==void 0?a:!1,this._fixedTarget=i,c.addEventListener("focusin",this._focusIn),c.addEventListener("focusout",this._focusOut),c.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=r.parentElement)===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${e}px`,n.left=`${r}px`)}_isBackward(e,r,o){return e&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const Uf={Root:1,Modalizer:2,Mover:3,Groupper:4};class us{constructor(e,r,o,n,i,a){this._element=r,this._instance=new XM(e,r,this,o,n,i,a)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e,r){var o;(o=this._instance)===null||o===void 0||o.moveOutWithDefaultAction(e,r)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,o,n,i){var a;const c=new Od(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(c){let l,u;if(r.tagName==="BODY")l=r,u=o&&n||!o&&!n?r.firstElementChild:null;else{o&&(!n||n&&!e.focusable.isFocusable(r,!1,!0,!0))?(l=r,u=n?r.firstElementChild:null):(l=r.parentElement,u=o&&n||!o&&!n?r:r.nextElementSibling);let d,f;do d=o&&n||!o&&!n?u?.previousElementSibling:u,f=(a=d?.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),f===r?u=o&&n||!o&&!n?d:d?.nextElementSibling:f=void 0;while(f)}l&&Fn({by:"root",owner:l,next:null,relatedEvent:i})&&(l.insertBefore(c,u),zo(c))}}static addPhantomDummyWithTarget(e,r,o,n){const a=new Od(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Tr(e.getWindow,n)).input;if(a){let s,c;LM(r)&&!o?(s=r,c=r.firstElementChild):(s=r.parentElement,c=o?r:r.nextElementSibling),s?.insertBefore(a,c)}}}class GM{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const a=this._dummyCallbacks.get(i);if(a){const s=i.parentElement;(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},$h)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new Tr(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+$h<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},$h))}}class XM{constructor(e,r,o,n,i,a,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,p,g)=>{this._onFocus(!0,h,p,g)},this._onFocusOut=(h,p,g)=>{this._onFocus(!1,h,p,g)},this.moveOut=h=>{var p;const g=this._firstDummy,y=this._lastDummy;if(g&&y){this._ensurePosition();const v=g.input,m=y.input,b=(p=this._element)===null||p===void 0?void 0:p.get();if(v&&m&&b){let k;h?(v.tabIndex=0,k=v):(m.tabIndex=0,k=m),k&&zo(k)}}},this.moveOutWithDefaultAction=(h,p)=>{var g;const y=this._firstDummy,v=this._lastDummy;if(y&&v){this._ensurePosition();const m=y.input,b=v.input,k=(g=this._element)===null||g===void 0?void 0:g.get();if(m&&b&&k){let S;h?!y.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?S=k:(y.useDefaultAction=!0,m.tabIndex=0,S=m):(v.useDefaultAction=!0,b.tabIndex=0,S=b),S&&Fn({by:"root",owner:k,next:null,relatedEvent:p})&&zo(S)}}},this.setTabbable=(h,p)=>{var g,y;for(const m of this._wrappers)if(m.manager===h){m.tabbable=p;break}const v=this._getCurrent();if(v){const m=v.tabbable?0:-1;let b=(g=this._firstDummy)===null||g===void 0?void 0:g.input;b&&(b.tabIndex=m),b=(y=this._lastDummy)===null||y===void 0?void 0:y.input,b&&(b.tabIndex=m)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var p,g;const y=((p=this._firstDummy)===null||p===void 0?void 0:p.input)||((g=this._lastDummy)===null||g===void 0?void 0:g.input),v=this._transformElements,m=new Set;let b=0,k=0;const S=this._getWindow();for(let C=y;C&&C.nodeType===Node.ELEMENT_NODE;C=C.parentElement){let _=h.get(C);if(_===void 0){const T=S.getComputedStyle(C).transform;T&&T!=="none"&&(_={scrollTop:C.scrollTop,scrollLeft:C.scrollLeft}),h.set(C,_||null)}_&&(m.add(C),v.has(C)||C.addEventListener("scroll",this._addTransformOffsets),b+=_.scrollTop,k+=_.scrollLeft)}for(const C of v)m.has(C)||C.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=m,()=>{var C,_;(C=this._firstDummy)===null||C===void 0||C.setTopLeft(b,k),(_=this._lastDummy)===null||_===void 0||_.setTopLeft(b,k)}};const c=r.get();if(!c)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=s;const l=c.__tabsterDummy;if((l||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),l)return l;c.__tabsterDummy=this;const u=i?.dummyInputsPosition,d=c.tagName;this._isOutside=u?u===_T.Outside:(a||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new Od(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new Od(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(e,r){var o,n,i,a;if((this._wrappers=this._wrappers.filter(c=>c.manager!==e&&!r)).length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const c=this._getWindow();this._addTimer&&(c.clearTimeout(this._addTimer),delete this._addTimer);const l=(n=this._firstDummy)===null||n===void 0?void 0:n.input;l&&this._tabster._dummyObserver.remove(l),(i=this._firstDummy)===null||i===void 0||i.dispose(),(a=this._lastDummy)===null||a===void 0||a.dispose()}}_onFocus(e,r,o,n){var i;const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=a.manager.getHandler(e))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,o;const n=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,a=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!a))if(this._isOutside){const s=n.parentElement;if(s){const c=n.nextElementSibling;c!==a&&s.insertBefore(a,c),n.previousElementSibling!==i&&s.insertBefore(i,n)}}else{n.lastElementChild!==a&&n.appendChild(a);const s=n.firstElementChild;s&&s!==i&&n.insertBefore(i,s)}}}function PT(t){let e=null;for(let r=t.lastElementChild;r;r=r.lastElementChild)e=r;return e||void 0}function YM(t,e){let r=t,o=null;for(;r&&!o;)o=e?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return o||void 0}function Qn(t,e,r){const o=document.createEvent("HTMLEvents");return o.initEvent(e,!0,!0),o.details=r,t.dispatchEvent(o),!o.defaultPrevented}function Fn(t){return Qn(t.owner,wT,t)}function Kh(t,e,r,o){const n=t.storageEntry(e,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const a=n.aug[r];delete n.aug[r],a===null?e.removeAttribute(r):e.setAttribute(r,a),i=!0}}else{let a;r in n.aug||(a=e.getAttribute(r)),a!==void 0&&a!==o&&(n.aug[r]=a,o===null?e.removeAttribute(r):e.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,t.storageEntry(e,!1)),i}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function MM(t){const e=t();try{if(e.EventTarget)return new e.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return e.document.createElement("div")}/*! + */function $f(t,e){const r=JSON.stringify(t);return e===!0?r:{[en]:r}}function QM(t,e){for(const r of Object.keys(e)){const o=e[r];o?t[r]=o:delete t[r]}}function ZM(t,e,r){let o;if(r){const n=t.getAttribute(en);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),QM(o,e),Object.keys(o).length>0?t.setAttribute(en,$f(o,!0)):t.removeAttribute(en)}class z1 extends us{constructor(e,r,o,n){super(e,r,Uf.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var a;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const c=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:s,ignoreAccessibility:!0});if(c){zo(c);return}}(a=i.input)===null||a===void 0||a.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=o}}class JM extends Ol{constructor(e,r,o,n,i){super(e,r,n),this._isFocused=!1,this._setFocused=c=>{var l;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===c)return;const u=this._element.get();u&&(c?(this._isFocused=!0,(l=this._dummyManager)===null||l===void 0||l.setTabbable(!1),Qn(this._tabster.root.eventTarget,"focus",{element:u})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var d;delete this._setFocusedTimer,this._isFocused=!1,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!0),Qn(this._tabster.root.eventTarget,"blur",{element:u})},0))},this._onFocusIn=c=>{const l=this._tabster.getParent,u=this._element.get();let d=c.target;do{if(d===u){this._setFocused(!0);return}d=d&&l(d)}while(d)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const a=e.getWindow;this.uid=Qu(a,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const s=a();s.document.addEventListener("focusin",this._onFocusIn),s.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new z1(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,r){const o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,r);else{const n=this.getElement();n&&z1.moveWithPhantomDummy(this._tabster,n,!0,e,r)}}_add(){}_remove(){}}class Ze{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const a=this._autoRoot;if(a)return ZM(i,{root:a},!0),ST(this._tabster,i),(o=tr(this._tabster,i))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,this.eventTarget=OM(this._win),e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,o){const n=new JM(this._tabster,e,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const o=e().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(e,r,o){o===void 0&&(o={});var n,i,a,s;if(!r.ownerDocument)return;const{checkRtl:c,referenceElement:l}=o,u=e.getParent;e.drainInitQueue();let d,f,h,p,g=!1,y,v,m,b,k=l||r;const S={};for(;k&&(!d||c);){const _=tr(e,k);if(c&&m===void 0){const E=k.dir;E&&(m=E.toLowerCase()==="rtl")}if(!_){k=u(k);continue}const T=k.tagName;(_.uncontrolled||T==="IFRAME"||T==="WEBVIEW")&&(b=k),!p&&(!((n=_.focusable)===null||n===void 0)&&n.excludeFromMover)&&!h&&(g=!0);const A=_.modalizer,R=_.groupper,V=_.mover;!f&&A&&(f=A),!h&&R&&(!f||A)&&(f?(!R.isActive()&&R.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,h=R),v=R):h=R),!p&&V&&(!f||A)&&(!R||k!==r)&&(p=V,y=!!h&&h!==R),_.root&&(d=_.root),!((a=_.focusable)===null||a===void 0)&&a.ignoreKeydown&&Object.assign(S,_.focusable.ignoreKeydown),k=u(k)}if(!d){const _=e.root;_._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=_._autoRootCreate())}return h&&!p&&(y=!0),d?{root:d,modalizer:f,groupper:h,mover:p,groupperBeforeMover:y,modalizerInGroupper:v,rtl:c?!!m:void 0,uncontrolled:b,excludedFromMover:g,ignoreKeydown:_=>!!S[_.key]}:void 0}static getRoot(e,r){var o;const n=e.getParent;for(let i=r;i;i=n(i)){const a=(o=tr(e,i))===null||o===void 0?void 0:o.root;if(a)return a}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let Rg;const P1=typeof DOMRect<"u"?DOMRect:class{constructor(t,e,r,o){this.left=t||0,this.top=e||0,this.right=(t||0)+(r||0),this.bottom=(e||0)+(o||0)}};let OM=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Rg=!1}catch{Rg=!0}const Kh=100;function vn(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function DM(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function jM(t){const e=t.__tabsterInstanceContext;return new(e?.basics.WeakMap||WeakMap)}function FM(t){return!!t.querySelector(gb)}class ST{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!vb(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class Tr{constructor(e,r,o){const n=vn(e);let i;n.WeakRef?i=new n.WeakRef(r):(i=new ST(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function CT(t,e){const r=vn(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!ST.cleanup(o,e))}function TT(t){const e=vn(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=KM(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,CT(t),TT(t)},2*60*1e3))}function LM(t){const e=vn(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function mb(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const o=Rg?r:{acceptNode:r};return t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1)}function xT(t,e){let r=e.__tabsterCacheId;const o=vn(t),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=e.ownerDocument&&e.ownerDocument.documentElement;if(!i)return new P1;let a=0,s=0,c=i.clientWidth,l=i.clientHeight;if(e!==i){const d=e.getBoundingClientRect();a=Math.max(a,d.left),s=Math.max(s,d.top),c=Math.min(c,d.right),l=Math.min(l,d.bottom)}const u=new P1(a{o.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[d].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function B1(t,e,r){const o=ET(e);if(!o)return!1;const n=xT(t,o),i=e.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,n.top-i.top),c=Math.max(0,i.bottom-n.bottom),l=s+c;return l===0||l<=a}function qM(t,e,r){const o=ET(e);if(o){const n=xT(t,o),i=e.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function ET(t){const e=t.ownerDocument;if(e){for(let r=t.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return e.documentElement}return null}function HM(t){t.__shouldIgnoreFocus=!0}function IT(t){return!!t.__shouldIgnoreFocus}function UM(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let o=0;o{if(this._fixedTarget){const f=this._fixedTarget.get();f&&zo(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=e(),c=s.document.createElement("i");c.tabIndex=0,c.setAttribute("role","none"),c.setAttribute(pT,""),c.setAttribute("aria-hidden","true");const l=c.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),HM(c),this.input=c,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(a=o.isPhantom)!==null&&a!==void 0?a:!1,this._fixedTarget=i,c.addEventListener("focusin",this._focusIn),c.addEventListener("focusout",this._focusOut),c.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=r.parentElement)===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${e}px`,n.left=`${r}px`)}_isBackward(e,r,o){return e&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const $f={Root:1,Modalizer:2,Mover:3,Groupper:4};class us{constructor(e,r,o,n,i,a){this._element=r,this._instance=new GM(e,r,this,o,n,i,a)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e,r){var o;(o=this._instance)===null||o===void 0||o.moveOutWithDefaultAction(e,r)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,o,n,i){var a;const c=new Dd(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(c){let l,u;if(r.tagName==="BODY")l=r,u=o&&n||!o&&!n?r.firstElementChild:null;else{o&&(!n||n&&!e.focusable.isFocusable(r,!1,!0,!0))?(l=r,u=n?r.firstElementChild:null):(l=r.parentElement,u=o&&n||!o&&!n?r:r.nextElementSibling);let d,f;do d=o&&n||!o&&!n?u?.previousElementSibling:u,f=(a=d?.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),f===r?u=o&&n||!o&&!n?d:d?.nextElementSibling:f=void 0;while(f)}l&&Fn({by:"root",owner:l,next:null,relatedEvent:i})&&(l.insertBefore(c,u),zo(c))}}static addPhantomDummyWithTarget(e,r,o,n){const a=new Dd(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Tr(e.getWindow,n)).input;if(a){let s,c;FM(r)&&!o?(s=r,c=r.firstElementChild):(s=r.parentElement,c=o?r:r.nextElementSibling),s?.insertBefore(a,c)}}}class VM{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const a=this._dummyCallbacks.get(i);if(a){const s=i.parentElement;(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},Kh)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new Tr(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r?.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Kh<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},Kh))}}class GM{constructor(e,r,o,n,i,a,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,p,g)=>{this._onFocus(!0,h,p,g)},this._onFocusOut=(h,p,g)=>{this._onFocus(!1,h,p,g)},this.moveOut=h=>{var p;const g=this._firstDummy,y=this._lastDummy;if(g&&y){this._ensurePosition();const v=g.input,m=y.input,b=(p=this._element)===null||p===void 0?void 0:p.get();if(v&&m&&b){let k;h?(v.tabIndex=0,k=v):(m.tabIndex=0,k=m),k&&zo(k)}}},this.moveOutWithDefaultAction=(h,p)=>{var g;const y=this._firstDummy,v=this._lastDummy;if(y&&v){this._ensurePosition();const m=y.input,b=v.input,k=(g=this._element)===null||g===void 0?void 0:g.get();if(m&&b&&k){let S;h?!y.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?S=k:(y.useDefaultAction=!0,m.tabIndex=0,S=m):(v.useDefaultAction=!0,b.tabIndex=0,S=b),S&&Fn({by:"root",owner:k,next:null,relatedEvent:p})&&zo(S)}}},this.setTabbable=(h,p)=>{var g,y;for(const m of this._wrappers)if(m.manager===h){m.tabbable=p;break}const v=this._getCurrent();if(v){const m=v.tabbable?0:-1;let b=(g=this._firstDummy)===null||g===void 0?void 0:g.input;b&&(b.tabIndex=m),b=(y=this._lastDummy)===null||y===void 0?void 0:y.input,b&&(b.tabIndex=m)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var p,g;const y=((p=this._firstDummy)===null||p===void 0?void 0:p.input)||((g=this._lastDummy)===null||g===void 0?void 0:g.input),v=this._transformElements,m=new Set;let b=0,k=0;const S=this._getWindow();for(let C=y;C&&C.nodeType===Node.ELEMENT_NODE;C=C.parentElement){let _=h.get(C);if(_===void 0){const T=S.getComputedStyle(C).transform;T&&T!=="none"&&(_={scrollTop:C.scrollTop,scrollLeft:C.scrollLeft}),h.set(C,_||null)}_&&(m.add(C),v.has(C)||C.addEventListener("scroll",this._addTransformOffsets),b+=_.scrollTop,k+=_.scrollLeft)}for(const C of v)m.has(C)||C.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=m,()=>{var C,_;(C=this._firstDummy)===null||C===void 0||C.setTopLeft(b,k),(_=this._lastDummy)===null||_===void 0||_.setTopLeft(b,k)}};const c=r.get();if(!c)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=s;const l=c.__tabsterDummy;if((l||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),l)return l;c.__tabsterDummy=this;const u=i?.dummyInputsPosition,d=c.tagName;this._isOutside=u?u===kT.Outside:(a||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new Dd(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new Dd(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(e,r){var o,n,i,a;if((this._wrappers=this._wrappers.filter(c=>c.manager!==e&&!r)).length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const c=this._getWindow();this._addTimer&&(c.clearTimeout(this._addTimer),delete this._addTimer);const l=(n=this._firstDummy)===null||n===void 0?void 0:n.input;l&&this._tabster._dummyObserver.remove(l),(i=this._firstDummy)===null||i===void 0||i.dispose(),(a=this._lastDummy)===null||a===void 0||a.dispose()}}_onFocus(e,r,o,n){var i;const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=a.manager.getHandler(e))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,o;const n=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,a=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!a))if(this._isOutside){const s=n.parentElement;if(s){const c=n.nextElementSibling;c!==a&&s.insertBefore(a,c),n.previousElementSibling!==i&&s.insertBefore(i,n)}}else{n.lastElementChild!==a&&n.appendChild(a);const s=n.firstElementChild;s&&s!==i&&n.insertBefore(i,s)}}}function RT(t){let e=null;for(let r=t.lastElementChild;r;r=r.lastElementChild)e=r;return e||void 0}function XM(t,e){let r=t,o=null;for(;r&&!o;)o=e?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return o||void 0}function Qn(t,e,r){const o=document.createEvent("HTMLEvents");return o.initEvent(e,!0,!0),o.details=r,t.dispatchEvent(o),!o.defaultPrevented}function Fn(t){return Qn(t.owner,yT,t)}function Wh(t,e,r,o){const n=t.storageEntry(e,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const a=n.aug[r];delete n.aug[r],a===null?e.removeAttribute(r):e.setAttribute(r,a),i=!0}}else{let a;r in n.aug||(a=e.getAttribute(r)),a!==void 0&&a!==o&&(n.aug[r]=a,o===null?e.removeAttribute(r):e.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,t.storageEntry(e,!1)),i}/*! + */class BT{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,o=r.indexOf(e);o>=0&&r.splice(o,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(o=>o(e,r))}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function Kf(t,e){const r=JSON.stringify(t);return e===!0?r:{[en]:r}}function YM(t,e){for(const r of Object.keys(e)){const o=e[r];o?t[r]=o:delete t[r]}}function QM(t,e,r){let o;if(r){const n=t.getAttribute(en);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),YM(o,e),Object.keys(o).length>0?t.setAttribute(en,Kf(o,!0)):t.removeAttribute(en)}class z1 extends us{constructor(e,r,o,n){super(e,r,$f.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var a;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const c=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:s,ignoreAccessibility:!0});if(c){zo(c);return}}(a=i.input)===null||a===void 0||a.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=o}}class ZM extends Dl{constructor(e,r,o,n,i){super(e,r,n),this._isFocused=!1,this._setFocused=c=>{var l;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===c)return;const u=this._element.get();u&&(c?(this._isFocused=!0,(l=this._dummyManager)===null||l===void 0||l.setTabbable(!1),Qn(this._tabster.root.eventTarget,"focus",{element:u})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var d;delete this._setFocusedTimer,this._isFocused=!1,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!0),Qn(this._tabster.root.eventTarget,"blur",{element:u})},0))},this._onFocusIn=c=>{const l=this._tabster.getParent,u=this._element.get();let d=c.target;do{if(d===u){this._setFocused(!0);return}d=d&&l(d)}while(d)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const a=e.getWindow;this.uid=Zu(a,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const s=a();s.document.addEventListener("focusin",this._onFocusIn),s.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new z1(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,r){const o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,r);else{const n=this.getElement();n&&z1.moveWithPhantomDummy(this._tabster,n,!0,e,r)}}_add(){}_remove(){}}class Ze{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const a=this._autoRoot;if(a)return QM(i,{root:a},!0),_T(this._tabster,i),(o=tr(this._tabster,i))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,this.eventTarget=MM(this._win),e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,o){const n=new ZM(this._tabster,e,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const o=e().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(e,r,o){o===void 0&&(o={});var n,i,a,s;if(!r.ownerDocument)return;const{checkRtl:c,referenceElement:l}=o,u=e.getParent;e.drainInitQueue();let d,f,h,p,g=!1,y,v,m,b,k=l||r;const S={};for(;k&&(!d||c);){const _=tr(e,k);if(c&&m===void 0){const E=k.dir;E&&(m=E.toLowerCase()==="rtl")}if(!_){k=u(k);continue}const T=k.tagName;(_.uncontrolled||T==="IFRAME"||T==="WEBVIEW")&&(b=k),!p&&(!((n=_.focusable)===null||n===void 0)&&n.excludeFromMover)&&!h&&(g=!0);const A=_.modalizer,R=_.groupper,V=_.mover;!f&&A&&(f=A),!h&&R&&(!f||A)&&(f?(!R.isActive()&&R.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,h=R),v=R):h=R),!p&&V&&(!f||A)&&(!R||k!==r)&&(p=V,y=!!h&&h!==R),_.root&&(d=_.root),!((a=_.focusable)===null||a===void 0)&&a.ignoreKeydown&&Object.assign(S,_.focusable.ignoreKeydown),k=u(k)}if(!d){const _=e.root;_._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=_._autoRootCreate())}return h&&!p&&(y=!0),d?{root:d,modalizer:f,groupper:h,mover:p,groupperBeforeMover:y,modalizerInGroupper:v,rtl:c?!!m:void 0,uncontrolled:b,excludedFromMover:g,ignoreKeydown:_=>!!S[_.key]}:void 0}static getRoot(e,r){var o;const n=e.getParent;for(let i=r;i;i=n(i)){const a=(o=tr(e,i))===null||o===void 0?void 0:o.root;if(a)return a}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class PT{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,o=r.indexOf(e);o>=0&&r.splice(o,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(o=>o(e,r))}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class JM{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=tr(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,o,n){return AT(e,gb)&&(r||e.tabIndex!==-1)?(o||this.isVisible(e))&&(n||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e.offsetParent===null&&e.ownerDocument.body!==e)return!1;const r=e.ownerDocument.defaultView;if(!r)return!1;const o=e.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0||r.getComputedStyle(e).visibility==="hidden")}isAccessible(e){var r;for(let o=e;o;o=o.parentElement){const n=tr(this._tabster,o);if(this._isHidden(o)||!((r=n?.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const o=e.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:o=>this.isFocusable(o,e.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const o=this._findElements(!1,e,r);return o&&o[0]}_findElements(e,r,o){var n,i,a;const{container:s,currentElement:c=null,includeProgrammaticallyFocusable:l,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:h,onElement:p}=r;o||(o={});const g=[];let{acceptCondition:y}=r;const v=!!y;if(!s)return null;y||(y=S=>this.isFocusable(S,l,!1,d));const m={container:s,modalizerUserId:f===void 0&&u?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:f||((a=(i=Ze.getTabsterContext(this._tabster,s))===null||i===void 0?void 0:i.modalizer)===null||a===void 0?void 0:a.userId),from:c||s,isBackward:h,acceptCondition:y,hasCustomCondition:v,includeProgrammaticallyFocusable:l,ignoreAccessibility:d,cachedGrouppers:{}},b=mb(s.ownerDocument,s,S=>this._acceptElement(S,m));if(!b)return null;const k=S=>{var C,_;const T=(C=m.foundElement)!==null&&C!==void 0?C:m.foundBackward;return T&&g.push(T),e?T&&(m.found=!1,delete m.foundElement,delete m.foundBackward,delete m.fromCtx,m.from=T,p&&!p(T))?!1:!!(T||S):(T&&o&&(o.uncontrolled=(_=Ze.getTabsterContext(this._tabster,T))===null||_===void 0?void 0:_.uncontrolled),!!(S&&!T))};if(c||(o.outOfDOMOrder=!0),c)b.currentNode=c;else if(h){const S=RT(s);if(!S)return null;if(this._acceptElement(S,m)===NodeFilter.FILTER_ACCEPT&&!k(!0))return m.skippedFocusable&&(o.outOfDOMOrder=!0),g;b.currentNode=S}do h?b.previousNode():b.nextNode();while(k());return m.skippedFocusable&&(o.outOfDOMOrder=!0),g.length?g:null}_acceptElement(e,r){var o,n,i,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!s.contains(e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const c=r.container;if(e===c)return NodeFilter.FILTER_SKIP;if(!c.contains(e)||e.__tabsterDummyContainer||!((o=r.rejectElementsFrom)===null||o===void 0)&&o.contains(e))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=Ze.getTabsterContext(this._tabster,e);if(!l)return NodeFilter.FILTER_SKIP;if(IT(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((n=l.modalizer)===null||n===void 0?void 0:n.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,d=r.fromCtx;d||(d=r.fromCtx=Ze.getTabsterContext(this._tabster,r.from));const f=d?.mover;let h=l.groupper,p=l.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(e,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(h||p||f)){const g=h?.getElement(),y=f?.getElement();let v=p?.getElement();v&&y?.contains(v)&&c.contains(y)&&(!g||!p||y.contains(g))&&(p=f,v=y),g&&(g===c||!c.contains(g))&&(h=void 0),v&&!c.contains(v)&&(p=void 0),h&&p&&(v&&g&&!g.contains(v)?p=void 0:h=void 0),h&&(u=h.acceptElement(e,r)),p&&(u=p.acceptElement(e,r))}return u===void 0&&(u=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=e,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)),u}}/*! + */class e4{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=tr(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,o,n){return RT(e,gb)&&(r||e.tabIndex!==-1)?(o||this.isVisible(e))&&(n||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e.offsetParent===null&&e.ownerDocument.body!==e)return!1;const r=e.ownerDocument.defaultView;if(!r)return!1;const o=e.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0||r.getComputedStyle(e).visibility==="hidden")}isAccessible(e){var r;for(let o=e;o;o=o.parentElement){const n=tr(this._tabster,o);if(this._isHidden(o)||!((r=n?.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const o=e.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:o=>this.isFocusable(o,e.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const o=this._findElements(!1,e,r);return o&&o[0]}_findElements(e,r,o){var n,i,a;const{container:s,currentElement:c=null,includeProgrammaticallyFocusable:l,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:h,onElement:p}=r;o||(o={});const g=[];let{acceptCondition:y}=r;const v=!!y;if(!s)return null;y||(y=S=>this.isFocusable(S,l,!1,d));const m={container:s,modalizerUserId:f===void 0&&u?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:f||((a=(i=Ze.getTabsterContext(this._tabster,s))===null||i===void 0?void 0:i.modalizer)===null||a===void 0?void 0:a.userId),from:c||s,isBackward:h,acceptCondition:y,hasCustomCondition:v,includeProgrammaticallyFocusable:l,ignoreAccessibility:d,cachedGrouppers:{}},b=mb(s.ownerDocument,s,S=>this._acceptElement(S,m));if(!b)return null;const k=S=>{var C,_;const T=(C=m.foundElement)!==null&&C!==void 0?C:m.foundBackward;return T&&g.push(T),e?T&&(m.found=!1,delete m.foundElement,delete m.foundBackward,delete m.fromCtx,m.from=T,p&&!p(T))?!1:!!(T||S):(T&&o&&(o.uncontrolled=(_=Ze.getTabsterContext(this._tabster,T))===null||_===void 0?void 0:_.uncontrolled),!!(S&&!T))};if(c||(o.outOfDOMOrder=!0),c)b.currentNode=c;else if(h){const S=PT(s);if(!S)return null;if(this._acceptElement(S,m)===NodeFilter.FILTER_ACCEPT&&!k(!0))return m.skippedFocusable&&(o.outOfDOMOrder=!0),g;b.currentNode=S}do h?b.previousNode():b.nextNode();while(k());return m.skippedFocusable&&(o.outOfDOMOrder=!0),g.length?g:null}_acceptElement(e,r){var o,n,i,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!s.contains(e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const c=r.container;if(e===c)return NodeFilter.FILTER_SKIP;if(!c.contains(e)||e.__tabsterDummyContainer||!((o=r.rejectElementsFrom)===null||o===void 0)&&o.contains(e))return NodeFilter.FILTER_REJECT;const l=r.currentCtx=Ze.getTabsterContext(this._tabster,e);if(!l)return NodeFilter.FILTER_SKIP;if(AT(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((n=l.modalizer)===null||n===void 0?void 0:n.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,d=r.fromCtx;d||(d=r.fromCtx=Ze.getTabsterContext(this._tabster,r.from));const f=d?.mover;let h=l.groupper,p=l.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(e,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(h||p||f)){const g=h?.getElement(),y=f?.getElement();let v=p?.getElement();v&&y?.contains(v)&&c.contains(y)&&(!g||!p||y.contains(g))&&(p=f,v=y),g&&(g===c||!c.contains(g))&&(h=void 0),v&&!c.contains(v)&&(p=void 0),h&&p&&(v&&g&&!g.contains(v)?p=void 0:h=void 0),h&&(u=h.acceptElement(e,r)),p&&(u=p.acceptElement(e,r))}return u===void 0&&(u=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=e,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)),u}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */const Se={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function e4(t,e){var r;const o=t.getParent;let n=e;do{const i=(r=tr(t,n))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=o(n)}while(n)}class ot extends PT{constructor(e,r){super(),this._init=()=>{const o=this._win(),n=o.document;n.addEventListener(uo,this._onFocusIn,!0),n.addEventListener("focusout",this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const i=n.activeElement;i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=o=>{this._setFocusedElement(o.target,o.details.relatedTarget,o.details.isFocusedProgrammatically)},this._onFocusOut=o=>{this._setFocusedElement(void 0,o.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.keyCode!==Se.Tab||o.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,a=i.controlTab,s=Ze.getTabsterContext(i,n);if(!s||s.ignoreKeydown(o))return;const c=o.shiftKey,l=ot.findNextTabbable(i,s,void 0,n,void 0,c,!0),u=s.root.getElement();if(!u)return;const d=l?.element,f=e4(i,n);if(d){const h=l.uncontrolled;if(s.uncontrolled||h?.contains(n)){if(!l.outOfDOMOrder&&h===s.uncontrolled||f&&!f.contains(d))return;us.addPhantomDummyWithTarget(i,n,c,d);return}if(h||d.tagName==="IFRAME"){Fn({by:"root",owner:u,next:d,relatedEvent:o})&&us.moveWithPhantomDummy(this._tabster,h??d,!1,c,o);return}(a||l?.outOfDOMOrder)&&Fn({by:"root",owner:u,next:d,relatedEvent:o})&&(o.preventDefault(),o.stopImmediatePropagation(),zo(d))}else!f&&Fn({by:"root",owner:u,next:null,relatedEvent:o})&&s.root.moveOutWithDefaultAction(c,o)},this._onChanged=(o,n)=>{var i,a;if(o)Qn(o,vT,n);else{const s=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(s){const c={...n},l=Ze.getTabsterContext(this._tabster,s),u=(a=l?.modalizer)===null||a===void 0?void 0:a.userId;u&&(c.modalizerId=u),Qn(s,bT,c)}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win();e.document.removeEventListener(uo,this._onFocusIn,!0),e.document.removeEventListener("focusout",this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete ot._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var o,n;let i=ot._lastResetElement,a=i&&i.get();a&&r.contains(a)&&delete ot._lastResetElement,a=(n=(o=e._nextVal)===null||o===void 0?void 0:o.element)===null||n===void 0?void 0:n.get(),a&&r.contains(a)&&delete e._nextVal,i=e._lastVal,a=i&&i.get(),a&&r.contains(a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!vb(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,o){return this._tabster.focusable.isFocusable(e,r,!1,o)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var o;const{container:n,ignoreAccessibility:i}=r;let a;if(n){const s=Ze.getTabsterContext(this._tabster,n);s&&(a=(o=ot.findNextTabbable(this._tabster,s,n,void 0,void 0,!e,i))===null||o===void 0?void 0:o.element)}return a&&!n?.contains(a)&&(a=void 0),a||void 0}_focusFirstOrLast(e,r){const o=this.getFirstOrLastTabbable(e,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),o=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),ot._lastResetElement=new Tr(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",o)}return!0}_setOrRemoveAttribute(e,r,o){o===null?e.removeAttribute(r):e.setAttribute(r,o)}_setFocusedElement(e,r,o){var n,i;if(this._tabster._noop)return;const a={relatedTarget:r};if(e){const c=(n=ot._lastResetElement)===null||n===void 0?void 0:n.get();if(ot._lastResetElement=void 0,c===e||IT(e))return;a.isFocusedProgrammatically=o;const l=Ze.getTabsterContext(this._tabster,e),u=(i=l?.modalizer)===null||i===void 0?void 0:i.userId;u&&(a.modalizerId=u)}const s=this._nextVal={element:e?new Tr(this._win,e):void 0,details:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new Tr(this._win,e))}static findNextTabbable(e,r,o,n,i,a,s){const c=o||r.root.getElement();if(!c)return null;let l=null;const u=ot._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),ot.isTabbing=!0,ot._isTabbingTimer=d.setTimeout(()=>{delete ot._isTabbingTimer,ot.isTabbing=!1},0);const f=r.modalizer,h=r.groupper,p=r.mover,g=y=>{var v;if(l=y.findNextTabbable(n,i,a,s),n&&!l?.element){const m=y!==f&&((v=y.getElement())===null||v===void 0?void 0:v.parentElement);if(m){const b=Ze.getTabsterContext(e,n,{referenceElement:m});if(b){const k=y.getElement(),S=a?k:k&&RT(k)||k;S&&(l=ot.findNextTabbable(e,b,o,S,m,a,s),l&&(l.outOfDOMOrder=!0))}}}};if(h&&p)g(r.groupperBeforeMover?h:p);else if(h)g(h);else if(p)g(p);else if(f)g(f);else{const y={container:c,currentElement:n,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={};l={element:e.focusable[a?"findPrev":"findNext"](y,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return l}}ot.isTabbing=!1;/*! + */function t4(t,e){var r;const o=t.getParent;let n=e;do{const i=(r=tr(t,n))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=o(n)}while(n)}class ot extends BT{constructor(e,r){super(),this._init=()=>{const o=this._win(),n=o.document;n.addEventListener(uo,this._onFocusIn,!0),n.addEventListener("focusout",this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const i=n.activeElement;i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=o=>{this._setFocusedElement(o.target,o.details.relatedTarget,o.details.isFocusedProgrammatically)},this._onFocusOut=o=>{this._setFocusedElement(void 0,o.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.keyCode!==Se.Tab||o.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,a=i.controlTab,s=Ze.getTabsterContext(i,n);if(!s||s.ignoreKeydown(o))return;const c=o.shiftKey,l=ot.findNextTabbable(i,s,void 0,n,void 0,c,!0),u=s.root.getElement();if(!u)return;const d=l?.element,f=t4(i,n);if(d){const h=l.uncontrolled;if(s.uncontrolled||h?.contains(n)){if(!l.outOfDOMOrder&&h===s.uncontrolled||f&&!f.contains(d))return;us.addPhantomDummyWithTarget(i,n,c,d);return}if(h||d.tagName==="IFRAME"){Fn({by:"root",owner:u,next:d,relatedEvent:o})&&us.moveWithPhantomDummy(this._tabster,h??d,!1,c,o);return}(a||l?.outOfDOMOrder)&&Fn({by:"root",owner:u,next:d,relatedEvent:o})&&(o.preventDefault(),o.stopImmediatePropagation(),zo(d))}else!f&&Fn({by:"root",owner:u,next:null,relatedEvent:o})&&s.root.moveOutWithDefaultAction(c,o)},this._onChanged=(o,n)=>{var i,a;if(o)Qn(o,bT,n);else{const s=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(s){const c={...n},l=Ze.getTabsterContext(this._tabster,s),u=(a=l?.modalizer)===null||a===void 0?void 0:a.userId;u&&(c.modalizerId=u),Qn(s,yT,c)}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win();e.document.removeEventListener(uo,this._onFocusIn,!0),e.document.removeEventListener("focusout",this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete ot._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var o,n;let i=ot._lastResetElement,a=i&&i.get();a&&r.contains(a)&&delete ot._lastResetElement,a=(n=(o=e._nextVal)===null||o===void 0?void 0:o.element)===null||n===void 0?void 0:n.get(),a&&r.contains(a)&&delete e._nextVal,i=e._lastVal,a=i&&i.get(),a&&r.contains(a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!vb(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,o){return this._tabster.focusable.isFocusable(e,r,!1,o)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var o;const{container:n,ignoreAccessibility:i}=r;let a;if(n){const s=Ze.getTabsterContext(this._tabster,n);s&&(a=(o=ot.findNextTabbable(this._tabster,s,n,void 0,void 0,!e,i))===null||o===void 0?void 0:o.element)}return a&&!n?.contains(a)&&(a=void 0),a||void 0}_focusFirstOrLast(e,r){const o=this.getFirstOrLastTabbable(e,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),o=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),ot._lastResetElement=new Tr(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",o)}return!0}_setOrRemoveAttribute(e,r,o){o===null?e.removeAttribute(r):e.setAttribute(r,o)}_setFocusedElement(e,r,o){var n,i;if(this._tabster._noop)return;const a={relatedTarget:r};if(e){const c=(n=ot._lastResetElement)===null||n===void 0?void 0:n.get();if(ot._lastResetElement=void 0,c===e||AT(e))return;a.isFocusedProgrammatically=o;const l=Ze.getTabsterContext(this._tabster,e),u=(i=l?.modalizer)===null||i===void 0?void 0:i.userId;u&&(a.modalizerId=u)}const s=this._nextVal={element:e?new Tr(this._win,e):void 0,details:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new Tr(this._win,e))}static findNextTabbable(e,r,o,n,i,a,s){const c=o||r.root.getElement();if(!c)return null;let l=null;const u=ot._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),ot.isTabbing=!0,ot._isTabbingTimer=d.setTimeout(()=>{delete ot._isTabbingTimer,ot.isTabbing=!1},0);const f=r.modalizer,h=r.groupper,p=r.mover,g=y=>{var v;if(l=y.findNextTabbable(n,i,a,s),n&&!l?.element){const m=y!==f&&((v=y.getElement())===null||v===void 0?void 0:v.parentElement);if(m){const b=Ze.getTabsterContext(e,n,{referenceElement:m});if(b){const k=y.getElement(),S=a?k:k&&PT(k)||k;S&&(l=ot.findNextTabbable(e,b,o,S,m,a,s),l&&(l.outOfDOMOrder=!0))}}}};if(h&&p)g(r.groupperBeforeMover?h:p);else if(h)g(h);else if(p)g(p);else if(f)g(f);else{const y={container:c,currentElement:n,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={};l={element:e.focusable[a?"findPrev":"findNext"](y,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return l}}ot.isTabbing=!1;/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class t4 extends us{constructor(e,r,o,n){super(o,e,$f.Groupper,n,!0),this._setHandlers((i,a,s)=>{var c,l;const u=e.get(),d=i.input;if(u&&d){const f=Ze.getTabsterContext(o,d);if(f){let h;h=(c=r.findNextTabbable(s||void 0,void 0,a,!0))===null||c===void 0?void 0:c.element,h||(h=(l=ot.findNextTabbable(o,f,void 0,i.isOutside?d:XM(u,!a),void 0,a,!0))===null||l===void 0?void 0:l.element),h&&zo(h)}}})}}class r4 extends Dl{constructor(e,r,o,n,i){super(e,r,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,e.controlTab||(this.dummyManager=new t4(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,o,n){var i;const a=this.getElement();if(!a)return null;const s=((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!this._shouldTabInside&&e&&a.contains(e)&&!s)return{element:void 0,outOfDOMOrder:!0};const c=this.getFirst(!0);if(!e||!a.contains(e)||s)return{element:c,outOfDOMOrder:!0};const l=this._tabster;let u=null,d=!1,f;if(this._shouldTabInside&&c){const h={container:a,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},p={};u=l.focusable[o?"findPrev":"findNext"](h,p),d=!!p.outOfDOMOrder,!u&&this._props.tabbability===wT.LimitedTrapFocus&&(u=l.focusable[o?"findLast":"findFirst"]({container:a,ignoreAccessibility:n,useActiveModalizer:!0},p),d=!0),f=p.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const o=this.getElement()||null;let n=!0;for(let a=o?.parentElement;a;a=a.parentElement){const s=(r=tr(this._tabster,a))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const a=this._tabster.focusedElement.getFocusedElement();a&&(i=a!==this.getFirst(!0))}return i}getFirst(e){var r;const o=this.getElement();let n;if(o){if(e&&this._tabster.focusable.isFocusable(o))return o;n=(r=this._first)===null||r===void 0?void 0:r.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new Tr(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){var o;const n=r.cachedGrouppers,i=(o=this.getElement())===null||o===void 0?void 0:o.parentElement,a=i&&Ze.getTabsterContext(this._tabster,i),s=a?.groupper,c=a?.groupperBeforeMover?s:void 0;let l;const u=h=>{let p=n[h.id],g;return p?g=p.isActive:(g=this.isActive(!0),p=n[h.id]={isActive:g}),g};if(c&&(l=c.getElement(),!u(c)&&l&&r.container!==l&&r.container.contains(l)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=u(this),f=this.getElement();if(f&&d!==!0){if(f===e&&s&&(l||(l=s.getElement()),l&&!u(s)&&r.container.contains(l)&&l!==r.container)||f!==e&&f.contains(e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=n[this.id];let p;if("first"in h?p=h.first:p=h.first=this.getFirst(!0),p&&r.acceptCondition(p))return r.rejectElementsFrom=f,r.skippedFocusable=!0,p!==r.from?(r.found=!0,r.foundElement=p,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class o4{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),o.document.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.keyCode!==Se.Enter&&o.keyCode!==Se.Esc||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,o)},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._handleKeyPressTimer&&(e.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,o){const n=new r4(this._tabster,e,this._onGroupperDispose,r,o);this._grouppers[n.id]=n;const i=this._tabster.focusedElement.getFocusedElement();return i&&e.contains(i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),n}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let a=!0;for(let s=e;s;s=s.parentElement){const c=(n=tr(this._tabster,s))===null||n===void 0?void 0:n.groupper;if(c){if(i[c.id]=!0,a&&o&&s!==e&&(a=!1),r||!a){this._current[c.id]=c;const l=c.isActive()||e!==s&&(!c.getProps().delegated||c.getFirst(!1)!==e);c.makeTabbable(l)}a=!1}}for(const s of Object.keys(this._current)){const c=this._current[s];c.id in i||(c.makeTabbable(!1),c.setFirst(void 0),delete this._current[s])}}handleKeyPress(e,r,o){const n=this._tabster,i=Ze.getTabsterContext(n,e),a=i?.modalizerInGroupper;let s=i?.groupper||a;if(i&&s){const c=this._win();if(this._handleKeyPressTimer&&(c.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),i.ignoreKeydown(r))return;let l;const u=s.getElement();if(r.keyCode===Se.Enter)u&&(e===u||s.getProps().delegated&&e===s.getFirst(!1))&&(l=n.focusable.findNext({container:u,currentElement:e,useActiveModalizer:!0})),l&&u&&Fn({by:"groupper",owner:u,next:l,relatedEvent:r})&&(r.preventDefault(),r.stopImmediatePropagation(),l.focus());else if(r.keyCode===Se.Esc){const d=n.focusedElement.getFocusedElement();this._handleKeyPressTimer=c.setTimeout(()=>{var f;if(delete this._handleKeyPressTimer,d===n.focusedElement.getFocusedElement()&&s&&u&&u.contains(e)){if(e!==u||o)l=s.getFirst(!0);else{const h=u.parentElement,p=h?Ze.getTabsterContext(n,h):void 0;s=p?.groupper,l=s?.getFirst(!0)}l&&Fn({by:"groupper",owner:u,next:l,relatedEvent:r})&&(s&&(s.makeTabbable(!1),a&&((f=n.modalizer)===null||f===void 0||f.setActive(void 0))),l.focus())}},0)}}}}/*! + */class r4 extends us{constructor(e,r,o,n){super(o,e,Uf.Groupper,n,!0),this._setHandlers((i,a,s)=>{var c,l;const u=e.get(),d=i.input;if(u&&d){const f=Ze.getTabsterContext(o,d);if(f){let h;h=(c=r.findNextTabbable(s||void 0,void 0,a,!0))===null||c===void 0?void 0:c.element,h||(h=(l=ot.findNextTabbable(o,f,void 0,i.isOutside?d:YM(u,!a),void 0,a,!0))===null||l===void 0?void 0:l.element),h&&zo(h)}}})}}class o4 extends Ol{constructor(e,r,o,n,i){super(e,r,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,e.controlTab||(this.dummyManager=new r4(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,o,n){var i;const a=this.getElement();if(!a)return null;const s=((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!this._shouldTabInside&&e&&a.contains(e)&&!s)return{element:void 0,outOfDOMOrder:!0};const c=this.getFirst(!0);if(!e||!a.contains(e)||s)return{element:c,outOfDOMOrder:!0};const l=this._tabster;let u=null,d=!1,f;if(this._shouldTabInside&&c){const h={container:a,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},p={};u=l.focusable[o?"findPrev":"findNext"](h,p),d=!!p.outOfDOMOrder,!u&&this._props.tabbability===kT.LimitedTrapFocus&&(u=l.focusable[o?"findLast":"findFirst"]({container:a,ignoreAccessibility:n,useActiveModalizer:!0},p),d=!0),f=p.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const o=this.getElement()||null;let n=!0;for(let a=o?.parentElement;a;a=a.parentElement){const s=(r=tr(this._tabster,a))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const a=this._tabster.focusedElement.getFocusedElement();a&&(i=a!==this.getFirst(!0))}return i}getFirst(e){var r;const o=this.getElement();let n;if(o){if(e&&this._tabster.focusable.isFocusable(o))return o;n=(r=this._first)===null||r===void 0?void 0:r.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new Tr(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){var o;const n=r.cachedGrouppers,i=(o=this.getElement())===null||o===void 0?void 0:o.parentElement,a=i&&Ze.getTabsterContext(this._tabster,i),s=a?.groupper,c=a?.groupperBeforeMover?s:void 0;let l;const u=h=>{let p=n[h.id],g;return p?g=p.isActive:(g=this.isActive(!0),p=n[h.id]={isActive:g}),g};if(c&&(l=c.getElement(),!u(c)&&l&&r.container!==l&&r.container.contains(l)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=u(this),f=this.getElement();if(f&&d!==!0){if(f===e&&s&&(l||(l=s.getElement()),l&&!u(s)&&r.container.contains(l)&&l!==r.container)||f!==e&&f.contains(e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=n[this.id];let p;if("first"in h?p=h.first:p=h.first=this.getFirst(!0),p&&r.acceptCondition(p))return r.rejectElementsFrom=f,r.skippedFocusable=!0,p!==r.from?(r.found=!0,r.foundElement=p,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class n4{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),o.document.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.keyCode!==Se.Enter&&o.keyCode!==Se.Esc||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,o)},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._handleKeyPressTimer&&(e.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,o){const n=new o4(this._tabster,e,this._onGroupperDispose,r,o);this._grouppers[n.id]=n;const i=this._tabster.focusedElement.getFocusedElement();return i&&e.contains(i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),n}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let a=!0;for(let s=e;s;s=s.parentElement){const c=(n=tr(this._tabster,s))===null||n===void 0?void 0:n.groupper;if(c){if(i[c.id]=!0,a&&o&&s!==e&&(a=!1),r||!a){this._current[c.id]=c;const l=c.isActive()||e!==s&&(!c.getProps().delegated||c.getFirst(!1)!==e);c.makeTabbable(l)}a=!1}}for(const s of Object.keys(this._current)){const c=this._current[s];c.id in i||(c.makeTabbable(!1),c.setFirst(void 0),delete this._current[s])}}handleKeyPress(e,r,o){const n=this._tabster,i=Ze.getTabsterContext(n,e),a=i?.modalizerInGroupper;let s=i?.groupper||a;if(i&&s){const c=this._win();if(this._handleKeyPressTimer&&(c.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),i.ignoreKeydown(r))return;let l;const u=s.getElement();if(r.keyCode===Se.Enter)u&&(e===u||s.getProps().delegated&&e===s.getFirst(!1))&&(l=n.focusable.findNext({container:u,currentElement:e,useActiveModalizer:!0})),l&&u&&Fn({by:"groupper",owner:u,next:l,relatedEvent:r})&&(r.preventDefault(),r.stopImmediatePropagation(),l.focus());else if(r.keyCode===Se.Esc){const d=n.focusedElement.getFocusedElement();this._handleKeyPressTimer=c.setTimeout(()=>{var f;if(delete this._handleKeyPressTimer,d===n.focusedElement.getFocusedElement()&&s&&u&&u.contains(e)){if(e!==u||o)l=s.getFirst(!0);else{const h=u.parentElement,p=h?Ze.getTabsterContext(n,h):void 0;s=p?.groupper,l=s?.getFirst(!0)}l&&Fn({by:"groupper",owner:u,next:l,relatedEvent:r})&&(s&&(s.makeTabbable(!1),a&&((f=n.modalizer)===null||f===void 0||f.setActive(void 0))),l.focus())}},0)}}}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class n4 extends PT{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=hb(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),pb(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! + */class i4 extends BT{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=hb(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),pb(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let i4=0;const Vh="aria-hidden";class a4 extends us{constructor(e,r,o){super(r,e,$f.Modalizer,o),this._setHandlers((n,i)=>{var a,s,c;const l=e.get(),u=l&&((a=Ze.getRoot(r,l))===null||a===void 0?void 0:a.getElement()),d=n.input;let f;if(u&&d){const h=(s=d.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),p=Ze.getTabsterContext(r,h||d);p&&(f=(c=ot.findNextTabbable(r,p,u,d,void 0,i,!0))===null||c===void 0?void 0:c.element),f&&zo(f)}})}}class s4 extends Dl{constructor(e,r,o,n,i,a){super(e,r,n),this._wasFocused=0,this.userId=n.id,this._onDispose=o,this._activeElements=a,e.controlTab||(this.dummyManager=new a4(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;const r=this.getElement();if(r){const o=this._activeElements,n=o.map(i=>i.get()).indexOf(r);e?n<0&&o.push(new Tr(this._tabster.getWindow,r)):n>=0&&o.splice(n,1)}this.triggerFocusEvent(e?gT:mT)}}focused(e){return e||(this._wasFocused=++i4),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(e))}findNextTabbable(e,r,o,n){var i,a;if(!this.getElement())return null;const c=this._tabster;let l=null,u=!1,d;const f=e&&((i=Ze.getRoot(c,e))===null||i===void 0?void 0:i.getElement());if(f){const h={container:f,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},p={};l=c.focusable[o?"findPrev":"findNext"](h,p),!l&&this._props.isTrapped&&(!((a=c.modalizer)===null||a===void 0)&&a.activeId)?(l=c.focusable[o?"findLast":"findFirst"]({container:f,ignoreAccessibility:n,useActiveModalizer:!0},p),u=!0):u=!!p.outOfDOMOrder,d=p.uncontrolled}return{element:l,uncontrolled:d,outOfDOMOrder:u}}triggerFocusEvent(e,r){const o=this.getElement();let n=!1;if(o){const i=r?this._activeElements.map(a=>a.get()):[o];for(const a of i)a&&!Qn(a,e,{id:this.userId,element:o,eventName:e})&&(n=!0)}return n}_remove(){}}class c4{constructor(e,r,o){this._onModalizerDispose=i=>{const a=i.id,s=i.userId,c=this._parts[s];delete this._modalizers[a],c&&(delete c[a],Object.keys(c).length===0&&(delete this._parts[s],this.activeId===s&&this.setActive(void 0)))},this._onKeyDown=i=>{var a;if(i.keyCode!==Se.Esc)return;const s=this._tabster,c=s.focusedElement.getFocusedElement();if(c){const l=Ze.getTabsterContext(s,c),u=l?.modalizer;if(l&&!l.groupper&&u?.isActive()&&!l.ignoreKeydown(i)){const d=u.userId;if(d){const f=this._parts[d];if(f){const h=Object.keys(f).map(p=>{var g;const y=f[p],v=y.getElement();let m;return v&&(m=(g=tr(this._tabster,v))===null||g===void 0?void 0:g.groupper),y&&v&&m?{el:v,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(p=>p.focusedSince>0).sort((p,g)=>p.focusedSince>g.focusedSince?-1:p.focusedSince{var s,c;const l=i&&Ze.getTabsterContext(this._tabster,i);if(!l||!i)return;const u=this._augMap;for(let f=i;f;f=f.parentElement)u.has(f)&&(u.delete(f),Wh(this._tabster,f,Vh));const d=l.modalizer;if((c=d||((s=tr(this._tabster,i))===null||s===void 0?void 0:s.modalizer))===null||c===void 0||c.focused(),d?.userId===this.activeId){this.currentIsOthersAccessible=d?.getProps().isOthersAccessible;return}if(a.isFocusedProgrammatically||this.currentIsOthersAccessible||d?.getProps().isAlwaysAccessible)this.setActive(d);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,r,o){var n;const i=new s4(this._tabster,e,this._onModalizerDispose,r,o,this.activeElements),a=i.id,s=r.id;this._modalizers[a]=i;let c=this._parts[s];return c||(c=this._parts[s]={}),c[a]=i,e.contains((n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null)&&(s!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const r=e?.userId,o=this.activeId;if(o!==r){if(this.activeId=r,o){const n=this._parts[o];if(n)for(const i of Object.keys(n))n[i].makeActive(!1)}if(r){const n=this._parts[r];if(n)for(const i of Object.keys(n))n[i].makeActive(!0)}this.currentIsOthersAccessible=e?.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(e,r,o){const n=Ze.getTabsterContext(this._tabster,e),i=n?.modalizer;if(i){this.setActive(i);const a=i.getProps(),s=i.getElement();if(s){if(r===void 0&&(r=a.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:s})||(o===void 0&&(o=a.isNoFocusDefault),!o&&this._tabster.focusedElement.focusDefault(s)))return!0;this._tabster.focusedElement.resetFocus(s)}}return!1}acceptElement(e,r){var o;const n=r.modalizerUserId,i=(o=r.currentCtx)===null||o===void 0?void 0:o.modalizer;if(n)for(const s of this.activeElements){const c=s.get();if(c&&(e.contains(c)||c===e))return NodeFilter.FILTER_SKIP}const a=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return a!==void 0&&(r.skippedFocusable=!0),a}_hiddenUpdate(){var e;const r=this._tabster,o=r.getWindow().document.body,n=this.activeId,i=this._parts,a=[],s=[],c=this._alwaysAccessibleSelector,l=c?Array.from(o.querySelectorAll(c)):[],u=[];for(const v of Object.keys(i)){const m=i[v];for(const b of Object.keys(m)){const k=m[b],S=k.getElement(),_=k.getProps().isAlwaysAccessible;S&&(v===n?(u.push(S),this.currentIsOthersAccessible||a.push(S)):_?l.push(S):s.push(S))}}const d=this._augMap,f=a.length>0?[...a,...l]:void 0,h=[],p=new WeakMap,g=(v,m)=>{var b;const k=v.tagName;if(k==="SCRIPT"||k==="STYLE")return;let S=!1;d.has(v)?m?S=!0:(d.delete(v),Wh(r,v,Vh)):m&&!(!((b=this._accessibleCheck)===null||b===void 0)&&b.call(this,v,u))&&Wh(r,v,Vh,"true")&&(d.set(v,!0),S=!0),S&&(h.push(new Tr(r.getWindow,v)),p.set(v,!0))},y=v=>{for(let m=v.firstElementChild;m;m=m.nextElementSibling){let b=!1,k=!1;if(f){for(const S of f){if(m===S){b=!0;break}if(m.contains(S)){k=!0;break}}k?y(m):b||g(m,!0)}else g(m,!1)}};f||l.forEach(v=>g(v,!1)),s.forEach(v=>g(v,!0)),o&&y(o),(e=this._aug)===null||e===void 0||e.map(v=>v.get()).forEach(v=>{v&&!p.get(v)&&g(v,!1)}),this._aug=h,this._augMap=p}_restoreModalizerFocus(e){const r=e?.ownerDocument;if(!e||!r)return;const o=Ze.getTabsterContext(this._tabster,e),n=o?.modalizer,i=this.activeId;if(!n&&!i||n&&i===n.userId)return;const a=o?.root.getElement();if(a){let s=this._tabster.focusable.findFirst({container:a,useActiveModalizer:!0});if(s){if(e.compareDocumentPosition(s)&document.DOCUMENT_POSITION_PRECEDING&&(s=this._tabster.focusable.findLast({container:a,useActiveModalizer:!0}),!s))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(s);return}}e.blur()}}/*! + */let a4=0;const Wh="aria-hidden";class s4 extends us{constructor(e,r,o){super(r,e,Uf.Modalizer,o),this._setHandlers((n,i)=>{var a,s,c;const l=e.get(),u=l&&((a=Ze.getRoot(r,l))===null||a===void 0?void 0:a.getElement()),d=n.input;let f;if(u&&d){const h=(s=d.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),p=Ze.getTabsterContext(r,h||d);p&&(f=(c=ot.findNextTabbable(r,p,u,d,void 0,i,!0))===null||c===void 0?void 0:c.element),f&&zo(f)}})}}class c4 extends Ol{constructor(e,r,o,n,i,a){super(e,r,n),this._wasFocused=0,this.userId=n.id,this._onDispose=o,this._activeElements=a,e.controlTab||(this.dummyManager=new s4(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;const r=this.getElement();if(r){const o=this._activeElements,n=o.map(i=>i.get()).indexOf(r);e?n<0&&o.push(new Tr(this._tabster.getWindow,r)):n>=0&&o.splice(n,1)}this.triggerFocusEvent(e?mT:vT)}}focused(e){return e||(this._wasFocused=++a4),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(e))}findNextTabbable(e,r,o,n){var i,a;if(!this.getElement())return null;const c=this._tabster;let l=null,u=!1,d;const f=e&&((i=Ze.getRoot(c,e))===null||i===void 0?void 0:i.getElement());if(f){const h={container:f,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},p={};l=c.focusable[o?"findPrev":"findNext"](h,p),!l&&this._props.isTrapped&&(!((a=c.modalizer)===null||a===void 0)&&a.activeId)?(l=c.focusable[o?"findLast":"findFirst"]({container:f,ignoreAccessibility:n,useActiveModalizer:!0},p),u=!0):u=!!p.outOfDOMOrder,d=p.uncontrolled}return{element:l,uncontrolled:d,outOfDOMOrder:u}}triggerFocusEvent(e,r){const o=this.getElement();let n=!1;if(o){const i=r?this._activeElements.map(a=>a.get()):[o];for(const a of i)a&&!Qn(a,e,{id:this.userId,element:o,eventName:e})&&(n=!0)}return n}_remove(){}}class l4{constructor(e,r,o){this._onModalizerDispose=i=>{const a=i.id,s=i.userId,c=this._parts[s];delete this._modalizers[a],c&&(delete c[a],Object.keys(c).length===0&&(delete this._parts[s],this.activeId===s&&this.setActive(void 0)))},this._onKeyDown=i=>{var a;if(i.keyCode!==Se.Esc)return;const s=this._tabster,c=s.focusedElement.getFocusedElement();if(c){const l=Ze.getTabsterContext(s,c),u=l?.modalizer;if(l&&!l.groupper&&u?.isActive()&&!l.ignoreKeydown(i)){const d=u.userId;if(d){const f=this._parts[d];if(f){const h=Object.keys(f).map(p=>{var g;const y=f[p],v=y.getElement();let m;return v&&(m=(g=tr(this._tabster,v))===null||g===void 0?void 0:g.groupper),y&&v&&m?{el:v,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(p=>p.focusedSince>0).sort((p,g)=>p.focusedSince>g.focusedSince?-1:p.focusedSince{var s,c;const l=i&&Ze.getTabsterContext(this._tabster,i);if(!l||!i)return;const u=this._augMap;for(let f=i;f;f=f.parentElement)u.has(f)&&(u.delete(f),Kh(this._tabster,f,Wh));const d=l.modalizer;if((c=d||((s=tr(this._tabster,i))===null||s===void 0?void 0:s.modalizer))===null||c===void 0||c.focused(),d?.userId===this.activeId){this.currentIsOthersAccessible=d?.getProps().isOthersAccessible;return}if(a.isFocusedProgrammatically||this.currentIsOthersAccessible||d?.getProps().isAlwaysAccessible)this.setActive(d);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,r,o){var n;const i=new c4(this._tabster,e,this._onModalizerDispose,r,o,this.activeElements),a=i.id,s=r.id;this._modalizers[a]=i;let c=this._parts[s];return c||(c=this._parts[s]={}),c[a]=i,e.contains((n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null)&&(s!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const r=e?.userId,o=this.activeId;if(o!==r){if(this.activeId=r,o){const n=this._parts[o];if(n)for(const i of Object.keys(n))n[i].makeActive(!1)}if(r){const n=this._parts[r];if(n)for(const i of Object.keys(n))n[i].makeActive(!0)}this.currentIsOthersAccessible=e?.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(e,r,o){const n=Ze.getTabsterContext(this._tabster,e),i=n?.modalizer;if(i){this.setActive(i);const a=i.getProps(),s=i.getElement();if(s){if(r===void 0&&(r=a.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:s})||(o===void 0&&(o=a.isNoFocusDefault),!o&&this._tabster.focusedElement.focusDefault(s)))return!0;this._tabster.focusedElement.resetFocus(s)}}return!1}acceptElement(e,r){var o;const n=r.modalizerUserId,i=(o=r.currentCtx)===null||o===void 0?void 0:o.modalizer;if(n)for(const s of this.activeElements){const c=s.get();if(c&&(e.contains(c)||c===e))return NodeFilter.FILTER_SKIP}const a=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return a!==void 0&&(r.skippedFocusable=!0),a}_hiddenUpdate(){var e;const r=this._tabster,o=r.getWindow().document.body,n=this.activeId,i=this._parts,a=[],s=[],c=this._alwaysAccessibleSelector,l=c?Array.from(o.querySelectorAll(c)):[],u=[];for(const v of Object.keys(i)){const m=i[v];for(const b of Object.keys(m)){const k=m[b],S=k.getElement(),_=k.getProps().isAlwaysAccessible;S&&(v===n?(u.push(S),this.currentIsOthersAccessible||a.push(S)):_?l.push(S):s.push(S))}}const d=this._augMap,f=a.length>0?[...a,...l]:void 0,h=[],p=new WeakMap,g=(v,m)=>{var b;const k=v.tagName;if(k==="SCRIPT"||k==="STYLE")return;let S=!1;d.has(v)?m?S=!0:(d.delete(v),Kh(r,v,Wh)):m&&!(!((b=this._accessibleCheck)===null||b===void 0)&&b.call(this,v,u))&&Kh(r,v,Wh,"true")&&(d.set(v,!0),S=!0),S&&(h.push(new Tr(r.getWindow,v)),p.set(v,!0))},y=v=>{for(let m=v.firstElementChild;m;m=m.nextElementSibling){let b=!1,k=!1;if(f){for(const S of f){if(m===S){b=!0;break}if(m.contains(S)){k=!0;break}}k?y(m):b||g(m,!0)}else g(m,!1)}};f||l.forEach(v=>g(v,!1)),s.forEach(v=>g(v,!0)),o&&y(o),(e=this._aug)===null||e===void 0||e.map(v=>v.get()).forEach(v=>{v&&!p.get(v)&&g(v,!1)}),this._aug=h,this._augMap=p}_restoreModalizerFocus(e){const r=e?.ownerDocument;if(!e||!r)return;const o=Ze.getTabsterContext(this._tabster,e),n=o?.modalizer,i=this.activeId;if(!n&&!i||n&&i===n.userId)return;const a=o?.root.getElement();if(a){let s=this._tabster.focusable.findFirst({container:a,useActiveModalizer:!0});if(s){if(e.compareDocumentPosition(s)&document.DOCUMENT_POSITION_PRECEDING&&(s=this._tabster.focusable.findLast({container:a,useActiveModalizer:!0}),!s))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(s);return}}e.blur()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const l4=["input","textarea","*[contenteditable]"].join(", ");class u4 extends us{constructor(e,r,o,n){super(r,e,$f.Mover,n),this._onFocusDummyInput=i=>{var a,s;const c=this._element.get(),l=i.input;if(c&&l){const u=Ze.getTabsterContext(this._tabster,c);let d;u&&(d=(a=ot.findNextTabbable(this._tabster,u,void 0,l,void 0,!i.isFirst,!0))===null||a===void 0?void 0:a.element);const f=(s=this._getMemorized())===null||s===void 0?void 0:s.get();f&&(d=f),d&&zo(d)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const Gh=1,M1=2,O1=3;class d4 extends Dl{constructor(e,r,o,n,i){var a;super(e,r,n),this._visible={},this._onIntersection=c=>{for(const l of c){const u=l.target,d=Zu(this._win,u);let f,h=this._fullyVisible;if(l.intersectionRatio>=.25?(f=l.intersectionRatio>=.75?qo.Visible:qo.PartiallyVisible,f===qo.Visible&&(h=d)):f=qo.Invisible,this._visible[d]!==f){f===void 0?(delete this._visible[d],h===d&&delete this._fullyVisible):(this._visible[d]=f,this._fullyVisible=h);const p=this.getState(u);p&&Qn(u,Ag,p)}}},this._win=e.getWindow,this.visibilityTolerance=(a=n.visibilityTolerance)!==null&&a!==void 0?a:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const s=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new u4(this._element,e,s,i))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new Tr(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const o=[];this._current!==this._prevCurrent&&(o.push(this._current),o.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of o){const i=n?.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const a=this._props;if(i&&(a.visibilityAware!==void 0||a.trackState)){const s=this.getState(i);s&&Qn(i,Ag,s)}}}}))}getCurrent(){var e;return((e=this._current)===null||e===void 0?void 0:e.get())||null}findNextTabbable(e,r,o,n){var i;const a=this.getElement(),s=a&&((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!a)return null;let c=null,l=!1,u;if(this._props.tabbable||s||e&&!a.contains(e)){const d={currentElement:e,referenceElement:r,container:a,ignoreAccessibility:n,useActiveModalizer:!0},f={};c=this._tabster.focusable[o?"findPrev":"findNext"](d,f),l=!!f.outOfDOMOrder,u=f.uncontrolled}return{element:c,uncontrolled:u,outOfDOMOrder:l}}acceptElement(e,r){var o,n,i;if(!ot.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:a,visibilityAware:s,hasDefault:c=!0}=this._props,l=this.getElement();if(l&&(a||s||c)&&(!l.contains(r.from)||((n=r.from.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===l)){let u;if(a){const d=(i=this._current)===null||i===void 0?void 0:i.get();d&&r.acceptCondition(d)&&(u=d)}if(!u&&c&&(u=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!u&&s&&(u=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:d=>{var f;const h=Zu(this._win,d),p=this._visible[h];return l!==d&&!!(!((f=this._allElements)===null||f===void 0)&&f.get(d))&&r.acceptCondition(d)&&(p===qo.Visible||p===qo.PartiallyVisible&&(s===qo.PartiallyVisible||!this._fullyVisible))}})),u)return r.found=!0,r.foundElement=u,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const a=new MutationObserver(h=>{for(const p of h){const g=p.target,y=p.removedNodes,v=p.addedNodes;if(p.type==="attributes")p.attributeName==="tabindex"&&i.push({element:g,type:M1});else{for(let m=0;m{var g,y;const v=o.get(h);v&&p&&((g=this._intersectionObserver)===null||g===void 0||g.unobserve(h),o.delete(h)),!v&&!p&&(o.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},c=h=>{const p=n.isFocusable(h);o.get(h)?p||s(h,!0):p&&s(h)},l=h=>{const{mover:p}=f(h);if(p&&p!==this)if(p.getElement()===h&&n.isFocusable(h))s(h);else return;const g=mb(r.document,h,y=>{const{mover:v,groupper:m}=f(y);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const b=m?.getFirst(!0);return m&&m.getElement()!==y&&b&&b!==y?NodeFilter.FILTER_REJECT:(n.isFocusable(y)&&s(y),NodeFilter.FILTER_SKIP)});if(g)for(g.currentNode=h;g.nextNode(););},u=h=>{o.get(h)&&s(h,!0);for(let g=h.firstElementChild;g;g=g.nextElementSibling)u(g)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:p}of i)switch(p){case M1:c(h);break;case Gh:l(h);break;case O1:u(h);break}i=this._updateQueue=[]},0))},f=h=>{const p={};for(let g=h;g;g=g.parentElement){const y=tr(this._tabster,g);if(y&&(y.groupper&&!p.groupper&&(p.groupper=y.groupper),y.mover)){p.mover=y.mover;break}}return p};i.push({element:e,type:Gh}),d(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{a.disconnect()}}getState(e){const r=Zu(this._win,e);if(r in this._visible){const o=this._visible[r]||qo.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:o}}}}function f4(t,e,r,o,n,i,a,s){const c=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;let i=o,a=o;for(let s=o?.parentElement;s;s=s.parentElement){const c=(n=tr(this._tabster,s))===null||n===void 0?void 0:n.mover;c&&(c.setCurrent(a),i=void 0),!i&&this._tabster.focusable.isFocusable(s)&&(i=a=s)}},this._onKeyDown=async o=>{var n,i,a,s;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1);let c=o.keyCode;if(o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;switch(c){case Se.Down:case Se.Right:case Se.Up:case Se.Left:case Se.PageDown:case Se.PageUp:case Se.Home:case Se.End:break;default:return}const l=this._tabster,u=l.focusedElement.getFocusedElement();if(!u||await this._isIgnoredInput(u,c))return;const d=Ze.getTabsterContext(l,u,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||d.ignoreKeydown(o))return;const f=d.mover,h=f.getElement();if(d.groupperBeforeMover){const E=d.groupper;if(E&&!E.isActive(!0)){for(let U=(i=E.getElement())===null||i===void 0?void 0:i.parentElement;U&&U!==h;U=U.parentElement)if(!((s=(a=tr(l,U))===null||a===void 0?void 0:a.groupper)===null||s===void 0)&&s.isActive(!0))return}else return}if(!h)return;const p=l.focusable,g=f.getProps(),y=g.direction||hi.Both,v=y===hi.Both,m=v||y===hi.Vertical,b=v||y===hi.Horizontal,k=y===hi.GridLinear,S=k||y===hi.Grid,C=g.cyclic;let _,T,A,R=0,V=0;if(S&&(A=u.getBoundingClientRect(),R=Math.ceil(A.left),V=Math.floor(A.right)),d.rtl&&(c===Se.Right?c=Se.Left:c===Se.Left&&(c=Se.Right)),c===Se.Down&&m||c===Se.Right&&(b||S))if(_=p.findNext({currentElement:u,container:h,useActiveModalizer:!0}),_&&S){const E=Math.ceil(_.getBoundingClientRect().left);!k&&V>E&&(_=void 0)}else!_&&C&&(_=p.findFirst({container:h,useActiveModalizer:!0}));else if(c===Se.Up&&m||c===Se.Left&&(b||S))if(_=p.findPrev({currentElement:u,container:h,useActiveModalizer:!0}),_&&S){const E=Math.floor(_.getBoundingClientRect().right);!k&&E>R&&(_=void 0)}else!_&&C&&(_=p.findLast({container:h,useActiveModalizer:!0}));else if(c===Se.Home)S?p.findElement({container:h,currentElement:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{var U;if(!p.isFocusable(E))return!1;const D=Math.ceil((U=E.getBoundingClientRect().left)!==null&&U!==void 0?U:0);return E!==u&&R<=D?!0:(_=E,!1)}}):_=p.findFirst({container:h,useActiveModalizer:!0});else if(c===Se.End)S?p.findElement({container:h,currentElement:u,useActiveModalizer:!0,acceptCondition:E=>{var U;if(!p.isFocusable(E))return!1;const D=Math.ceil((U=E.getBoundingClientRect().left)!==null&&U!==void 0?U:0);return E!==u&&R>=D?!0:(_=E,!1)}}):_=p.findLast({container:h,useActiveModalizer:!0});else if(c===Se.PageUp){if(p.findElement({currentElement:u,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>p.isFocusable(E)?B1(this._win,E,f.visibilityTolerance)?(_=E,!1):!0:!1}),S&&_){const E=Math.ceil(_.getBoundingClientRect().left);p.findElement({currentElement:_,container:h,useActiveModalizer:!0,acceptCondition:U=>{if(!p.isFocusable(U))return!1;const D=Math.ceil(U.getBoundingClientRect().left);return R=D?!0:(_=U,!1)}})}T=!1}else if(c===Se.PageDown){if(p.findElement({currentElement:u,container:h,useActiveModalizer:!0,acceptCondition:E=>p.isFocusable(E)?B1(this._win,E,f.visibilityTolerance)?(_=E,!1):!0:!1}),S&&_){const E=Math.ceil(_.getBoundingClientRect().left);p.findElement({currentElement:_,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:U=>{if(!p.isFocusable(U))return!1;const D=Math.ceil(U.getBoundingClientRect().left);return R>D||E<=D?!0:(_=U,!1)}})}T=!0}else if(S){const E=c===Se.Up,U=R,D=Math.ceil(A.top),B=V,M=Math.floor(A.bottom);let K,I,F=0;p.findAll({container:h,currentElement:u,isBackward:E,onElement:$=>{const N=$.getBoundingClientRect(),O=Math.ceil(N.left),G=Math.ceil(N.top),Q=Math.floor(N.right),fe=Math.floor(N.bottom);if(E&&DG)return!0;const Ae=Math.ceil(Math.min(B,Q))-Math.floor(Math.max(U,O)),se=Math.ceil(Math.min(B-U,Q-O));if(Ae>0&&se>=Ae){const ye=Ae/se;ye>F&&(K=$,F=ye)}else if(F===0){const ye=f4(U,D,B,M,O,G,Q,fe);(I===void 0||ye0)return!1;return!0}}),_=K}_&&Fn({by:"mover",owner:h,next:_,relatedEvent:o})&&(T!==void 0&&qM(this._win,_,T),o.preventDefault(),o.stopImmediatePropagation(),zo(_))},this._tabster=e,this._win=r,this._movers={},e.queueInit(this._init)}dispose(){var e;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(e=this._ignoredInputResolve)===null||e===void 0||e.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(e,r,o){const n=new d4(this._tabster,e,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}async _isIgnoredInput(e,r){var o;if(e.getAttribute("aria-expanded")==="true"&&e.hasAttribute("aria-activedescendant"))return!0;if(AT(e,l4)){let n=0,i=0,a=0,s;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"){const c=e.type;if(a=(e.value||"").length,c==="email"||c==="number"){if(a){const u=(o=e.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection();if(u){const d=u.toString().length,f=r===Se.Left||r===Se.Up;if(u.modify("extend",f?"backward":"forward","character"),d!==u.toString().length)return u.modify("extend",f?"forward":"backward","character"),!0;a=0}}}else{const u=e.selectionStart;if(u===null)return c==="hidden";n=u||0,i=e.selectionEnd||0}}else e.contentEditable==="true"&&(s=new($M(this._win))(c=>{this._ignoredInputResolve=p=>{delete this._ignoredInputResolve,c(p)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:u,focusNode:d,anchorOffset:f,focusOffset:h}=l.getSelection()||{};this._ignoredInputTimer=l.setTimeout(()=>{var p,g,y;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:m,anchorOffset:b,focusOffset:k}=l.getSelection()||{};if(v!==u||m!==d||b!==f||k!==h){(p=this._ignoredInputResolve)===null||p===void 0||p.call(this,!1);return}if(n=b||0,i=k||0,a=((g=e.textContent)===null||g===void 0?void 0:g.length)||0,v&&m&&e.contains(v)&&e.contains(m)&&v!==e){let S=!1;const C=_=>{if(_===v)S=!0;else if(_===m)return!0;const T=_.textContent;if(T&&!_.firstChild){const R=T.length;S?m!==v&&(i+=R):(n+=R,i+=R)}let A=!1;for(let R=_.firstChild;R&&!A;R=R.nextSibling)A=C(R);return A};C(e)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(s&&!await s||n!==i||n>0&&(r===Se.Left||r===Se.Up||r===Se.Home)||n{var a,s;const c=this._element.get(),l=i.input;if(c&&l){const u=Ze.getTabsterContext(this._tabster,c);let d;u&&(d=(a=ot.findNextTabbable(this._tabster,u,void 0,l,void 0,!i.isFirst,!0))===null||a===void 0?void 0:a.element);const f=(s=this._getMemorized())===null||s===void 0?void 0:s.get();f&&(d=f),d&&zo(d)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const Vh=1,M1=2,O1=3;class f4 extends Ol{constructor(e,r,o,n,i){var a;super(e,r,n),this._visible={},this._onIntersection=c=>{for(const l of c){const u=l.target,d=Qu(this._win,u);let f,h=this._fullyVisible;if(l.intersectionRatio>=.25?(f=l.intersectionRatio>=.75?qo.Visible:qo.PartiallyVisible,f===qo.Visible&&(h=d)):f=qo.Invisible,this._visible[d]!==f){f===void 0?(delete this._visible[d],h===d&&delete this._fullyVisible):(this._visible[d]=f,this._fullyVisible=h);const p=this.getState(u);p&&Qn(u,Ig,p)}}},this._win=e.getWindow,this.visibilityTolerance=(a=n.visibilityTolerance)!==null&&a!==void 0?a:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const s=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new d4(this._element,e,s,i))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new Tr(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const o=[];this._current!==this._prevCurrent&&(o.push(this._current),o.push(this._prevCurrent),this._prevCurrent=this._current);for(const n of o){const i=n?.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const a=this._props;if(i&&(a.visibilityAware!==void 0||a.trackState)){const s=this.getState(i);s&&Qn(i,Ig,s)}}}}))}getCurrent(){var e;return((e=this._current)===null||e===void 0?void 0:e.get())||null}findNextTabbable(e,r,o,n){var i;const a=this.getElement(),s=a&&((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!a)return null;let c=null,l=!1,u;if(this._props.tabbable||s||e&&!a.contains(e)){const d={currentElement:e,referenceElement:r,container:a,ignoreAccessibility:n,useActiveModalizer:!0},f={};c=this._tabster.focusable[o?"findPrev":"findNext"](d,f),l=!!f.outOfDOMOrder,u=f.uncontrolled}return{element:c,uncontrolled:u,outOfDOMOrder:l}}acceptElement(e,r){var o,n,i;if(!ot.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:a,visibilityAware:s,hasDefault:c=!0}=this._props,l=this.getElement();if(l&&(a||s||c)&&(!l.contains(r.from)||((n=r.from.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===l)){let u;if(a){const d=(i=this._current)===null||i===void 0?void 0:i.get();d&&r.acceptCondition(d)&&(u=d)}if(!u&&c&&(u=this._tabster.focusable.findDefault({container:l,useActiveModalizer:!0})),!u&&s&&(u=this._tabster.focusable.findElement({container:l,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:d=>{var f;const h=Qu(this._win,d),p=this._visible[h];return l!==d&&!!(!((f=this._allElements)===null||f===void 0)&&f.get(d))&&r.acceptCondition(d)&&(p===qo.Visible||p===qo.PartiallyVisible&&(s===qo.PartiallyVisible||!this._fullyVisible))}})),u)return r.found=!0,r.foundElement=u,r.rejectElementsFrom=l,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const a=new MutationObserver(h=>{for(const p of h){const g=p.target,y=p.removedNodes,v=p.addedNodes;if(p.type==="attributes")p.attributeName==="tabindex"&&i.push({element:g,type:M1});else{for(let m=0;m{var g,y;const v=o.get(h);v&&p&&((g=this._intersectionObserver)===null||g===void 0||g.unobserve(h),o.delete(h)),!v&&!p&&(o.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},c=h=>{const p=n.isFocusable(h);o.get(h)?p||s(h,!0):p&&s(h)},l=h=>{const{mover:p}=f(h);if(p&&p!==this)if(p.getElement()===h&&n.isFocusable(h))s(h);else return;const g=mb(r.document,h,y=>{const{mover:v,groupper:m}=f(y);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const b=m?.getFirst(!0);return m&&m.getElement()!==y&&b&&b!==y?NodeFilter.FILTER_REJECT:(n.isFocusable(y)&&s(y),NodeFilter.FILTER_SKIP)});if(g)for(g.currentNode=h;g.nextNode(););},u=h=>{o.get(h)&&s(h,!0);for(let g=h.firstElementChild;g;g=g.nextElementSibling)u(g)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:p}of i)switch(p){case M1:c(h);break;case Vh:l(h);break;case O1:u(h);break}i=this._updateQueue=[]},0))},f=h=>{const p={};for(let g=h;g;g=g.parentElement){const y=tr(this._tabster,g);if(y&&(y.groupper&&!p.groupper&&(p.groupper=y.groupper),y.mover)){p.mover=y.mover;break}}return p};i.push({element:e,type:Vh}),d(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{a.disconnect()}}getState(e){const r=Qu(this._win,e);if(r in this._visible){const o=this._visible[r]||qo.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:o}}}}function h4(t,e,r,o,n,i,a,s){const c=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;let i=o,a=o;for(let s=o?.parentElement;s;s=s.parentElement){const c=(n=tr(this._tabster,s))===null||n===void 0?void 0:n.mover;c&&(c.setCurrent(a),i=void 0),!i&&this._tabster.focusable.isFocusable(s)&&(i=a=s)}},this._onKeyDown=async o=>{var n,i,a,s;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1);let c=o.keyCode;if(o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;switch(c){case Se.Down:case Se.Right:case Se.Up:case Se.Left:case Se.PageDown:case Se.PageUp:case Se.Home:case Se.End:break;default:return}const l=this._tabster,u=l.focusedElement.getFocusedElement();if(!u||await this._isIgnoredInput(u,c))return;const d=Ze.getTabsterContext(l,u,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||d.ignoreKeydown(o))return;const f=d.mover,h=f.getElement();if(d.groupperBeforeMover){const E=d.groupper;if(E&&!E.isActive(!0)){for(let U=(i=E.getElement())===null||i===void 0?void 0:i.parentElement;U&&U!==h;U=U.parentElement)if(!((s=(a=tr(l,U))===null||a===void 0?void 0:a.groupper)===null||s===void 0)&&s.isActive(!0))return}else return}if(!h)return;const p=l.focusable,g=f.getProps(),y=g.direction||hi.Both,v=y===hi.Both,m=v||y===hi.Vertical,b=v||y===hi.Horizontal,k=y===hi.GridLinear,S=k||y===hi.Grid,C=g.cyclic;let _,T,A,R=0,V=0;if(S&&(A=u.getBoundingClientRect(),R=Math.ceil(A.left),V=Math.floor(A.right)),d.rtl&&(c===Se.Right?c=Se.Left:c===Se.Left&&(c=Se.Right)),c===Se.Down&&m||c===Se.Right&&(b||S))if(_=p.findNext({currentElement:u,container:h,useActiveModalizer:!0}),_&&S){const E=Math.ceil(_.getBoundingClientRect().left);!k&&V>E&&(_=void 0)}else!_&&C&&(_=p.findFirst({container:h,useActiveModalizer:!0}));else if(c===Se.Up&&m||c===Se.Left&&(b||S))if(_=p.findPrev({currentElement:u,container:h,useActiveModalizer:!0}),_&&S){const E=Math.floor(_.getBoundingClientRect().right);!k&&E>R&&(_=void 0)}else!_&&C&&(_=p.findLast({container:h,useActiveModalizer:!0}));else if(c===Se.Home)S?p.findElement({container:h,currentElement:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{var U;if(!p.isFocusable(E))return!1;const D=Math.ceil((U=E.getBoundingClientRect().left)!==null&&U!==void 0?U:0);return E!==u&&R<=D?!0:(_=E,!1)}}):_=p.findFirst({container:h,useActiveModalizer:!0});else if(c===Se.End)S?p.findElement({container:h,currentElement:u,useActiveModalizer:!0,acceptCondition:E=>{var U;if(!p.isFocusable(E))return!1;const D=Math.ceil((U=E.getBoundingClientRect().left)!==null&&U!==void 0?U:0);return E!==u&&R>=D?!0:(_=E,!1)}}):_=p.findLast({container:h,useActiveModalizer:!0});else if(c===Se.PageUp){if(p.findElement({currentElement:u,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>p.isFocusable(E)?B1(this._win,E,f.visibilityTolerance)?(_=E,!1):!0:!1}),S&&_){const E=Math.ceil(_.getBoundingClientRect().left);p.findElement({currentElement:_,container:h,useActiveModalizer:!0,acceptCondition:U=>{if(!p.isFocusable(U))return!1;const D=Math.ceil(U.getBoundingClientRect().left);return R=D?!0:(_=U,!1)}})}T=!1}else if(c===Se.PageDown){if(p.findElement({currentElement:u,container:h,useActiveModalizer:!0,acceptCondition:E=>p.isFocusable(E)?B1(this._win,E,f.visibilityTolerance)?(_=E,!1):!0:!1}),S&&_){const E=Math.ceil(_.getBoundingClientRect().left);p.findElement({currentElement:_,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:U=>{if(!p.isFocusable(U))return!1;const D=Math.ceil(U.getBoundingClientRect().left);return R>D||E<=D?!0:(_=U,!1)}})}T=!0}else if(S){const E=c===Se.Up,U=R,D=Math.ceil(A.top),B=V,M=Math.floor(A.bottom);let K,I,F=0;p.findAll({container:h,currentElement:u,isBackward:E,onElement:$=>{const N=$.getBoundingClientRect(),O=Math.ceil(N.left),G=Math.ceil(N.top),Q=Math.floor(N.right),fe=Math.floor(N.bottom);if(E&&DG)return!0;const Ae=Math.ceil(Math.min(B,Q))-Math.floor(Math.max(U,O)),se=Math.ceil(Math.min(B-U,Q-O));if(Ae>0&&se>=Ae){const ye=Ae/se;ye>F&&(K=$,F=ye)}else if(F===0){const ye=h4(U,D,B,M,O,G,Q,fe);(I===void 0||ye0)return!1;return!0}}),_=K}_&&Fn({by:"mover",owner:h,next:_,relatedEvent:o})&&(T!==void 0&&HM(this._win,_,T),o.preventDefault(),o.stopImmediatePropagation(),zo(_))},this._tabster=e,this._win=r,this._movers={},e.queueInit(this._init)}dispose(){var e;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(e=this._ignoredInputResolve)===null||e===void 0||e.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(e,r,o){const n=new f4(this._tabster,e,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}async _isIgnoredInput(e,r){var o;if(e.getAttribute("aria-expanded")==="true"&&e.hasAttribute("aria-activedescendant"))return!0;if(RT(e,u4)){let n=0,i=0,a=0,s;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"){const c=e.type;if(a=(e.value||"").length,c==="email"||c==="number"){if(a){const u=(o=e.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection();if(u){const d=u.toString().length,f=r===Se.Left||r===Se.Up;if(u.modify("extend",f?"backward":"forward","character"),d!==u.toString().length)return u.modify("extend",f?"forward":"backward","character"),!0;a=0}}}else{const u=e.selectionStart;if(u===null)return c==="hidden";n=u||0,i=e.selectionEnd||0}}else e.contentEditable==="true"&&(s=new(KM(this._win))(c=>{this._ignoredInputResolve=p=>{delete this._ignoredInputResolve,c(p)};const l=this._win();this._ignoredInputTimer&&l.clearTimeout(this._ignoredInputTimer);const{anchorNode:u,focusNode:d,anchorOffset:f,focusOffset:h}=l.getSelection()||{};this._ignoredInputTimer=l.setTimeout(()=>{var p,g,y;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:m,anchorOffset:b,focusOffset:k}=l.getSelection()||{};if(v!==u||m!==d||b!==f||k!==h){(p=this._ignoredInputResolve)===null||p===void 0||p.call(this,!1);return}if(n=b||0,i=k||0,a=((g=e.textContent)===null||g===void 0?void 0:g.length)||0,v&&m&&e.contains(v)&&e.contains(m)&&v!==e){let S=!1;const C=_=>{if(_===v)S=!0;else if(_===m)return!0;const T=_.textContent;if(T&&!_.firstChild){const R=T.length;S?m!==v&&(i+=R):(n+=R,i+=R)}let A=!1;for(let R=_.firstChild;R&&!A;R=R.nextSibling)A=C(R);return A};C(e)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(s&&!await s||n!==i||n>0&&(r===Se.Left||r===Se.Up||r===Se.Home)||n"u")return()=>{};const n=e.getWindow;let i;const a=u=>{var d,f,h,p,g;for(const y of u){const v=y.target,m=y.removedNodes,b=y.addedNodes;if(y.type==="attributes")y.attributeName===en&&r(e,v);else{for(let k=0;kc(h,d));if(f)for(;f.nextNode(););}function c(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const h=u.__tabsterElementUID;return h&&i&&(d?delete i[h]:(f=i[h])!==null&&f!==void 0||(i[h]=new Tr(n,u))),(tr(e,u)||u.hasAttribute(en))&&r(e,u,d),NodeFilter.FILTER_SKIP}const l=new MutationObserver(a);return o&&s(n().document.body),l.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[en]}),()=>{l.disconnect()}}/*! + */function g4(t,e,r,o){if(typeof MutationObserver>"u")return()=>{};const n=e.getWindow;let i;const a=u=>{var d,f,h,p,g;for(const y of u){const v=y.target,m=y.removedNodes,b=y.addedNodes;if(y.type==="attributes")y.attributeName===en&&r(e,v);else{for(let k=0;kc(h,d));if(f)for(;f.nextNode(););}function c(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const h=u.__tabsterElementUID;return h&&i&&(d?delete i[h]:(f=i[h])!==null&&f!==void 0||(i[h]=new Tr(n,u))),(tr(e,u)||u.hasAttribute(en))&&r(e,u,d),NodeFilter.FILTER_SKIP}const l=new MutationObserver(a);return o&&s(n().document.body),l.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[en]}),()=>{l.disconnect()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class g4{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var o;const n=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,e,r);return n===void 0?r:n}}/*! + */class m4{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var o;const n=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,e,r);return n===void 0?r:n}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const jd="restorer:restorefocus",m4=10;class v4 extends Dl{constructor(e,r,o){var n;if(super(e,r,o),this._hasFocus=!1,this._onFocusOut=i=>{var a;const s=(a=this._element)===null||a===void 0?void 0:a.get();s&&i.relatedTarget===null&&s.dispatchEvent(new Event(jd,{bubbles:!0})),s&&!s.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===$c.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn)}}dispose(){var e,r;if(this._props.type===$c.Source){const o=(e=this._element)===null||e===void 0?void 0:e.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(jd,{bubbles:!0})))}}}class b4{constructor(e){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const o=this._getWindow();this._restoreFocusTimeout&&o.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=o.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var o;if(!r)return;const n=tr(this._tabster,r);((o=n?.restorer)===null||o===void 0?void 0:o.getProps().type)===$c.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var o,n,i;const a=this._getWindow().document;if(a.activeElement!==a.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&a.body.contains(r))return;let s=this._history.pop();for(;s&&!a.body.contains((n=(o=s.get())===null||o===void 0?void 0:o.parentElement)!==null&&n!==void 0?n:null);)s=this._history.pop();(i=s?.get())===null||i===void 0||i.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(jd,this._onRestoreFocus),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),e.removeEventListener(jd,this._onRestoreFocus),this._restoreFocusTimeout&&e.clearTimeout(this._restoreFocusTimeout)}_addToHistory(e){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==e&&(this._history.length>m4&&this._history.shift(),this._history.push(new Tr(this._getWindow,e)))}createRestorer(e,r){const o=new v4(this._tabster,e,r);return r.type===$c.Target&&e.ownerDocument.activeElement===e&&this._addToHistory(e),o}}/*! + */const Dd="restorer:restorefocus",v4=10;class b4 extends Ol{constructor(e,r,o){var n;if(super(e,r,o),this._hasFocus=!1,this._onFocusOut=i=>{var a;const s=(a=this._element)===null||a===void 0?void 0:a.get();s&&i.relatedTarget===null&&s.dispatchEvent(new Event(Dd,{bubbles:!0})),s&&!s.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===$c.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn)}}dispose(){var e,r;if(this._props.type===$c.Source){const o=(e=this._element)===null||e===void 0?void 0:e.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(Dd,{bubbles:!0})))}}}class y4{constructor(e){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const o=this._getWindow();this._restoreFocusTimeout&&o.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=o.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var o;if(!r)return;const n=tr(this._tabster,r);((o=n?.restorer)===null||o===void 0?void 0:o.getProps().type)===$c.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var o,n,i;const a=this._getWindow().document;if(a.activeElement!==a.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&a.body.contains(r))return;let s=this._history.pop();for(;s&&!a.body.contains((n=(o=s.get())===null||o===void 0?void 0:o.parentElement)!==null&&n!==void 0?n:null);)s=this._history.pop();(i=s?.get())===null||i===void 0||i.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(Dd,this._onRestoreFocus),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),e.removeEventListener(Dd,this._onRestoreFocus),this._restoreFocusTimeout&&e.clearTimeout(this._restoreFocusTimeout)}_addToHistory(e){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==e&&(this._history.length>v4&&this._history.shift(),this._history.push(new Tr(this._getWindow,e)))}createRestorer(e,r){const o=new b4(this._tabster,e,r);return r.type===$c.Target&&e.ownerDocument.activeElement===e&&this._addToHistory(e),o}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class y4{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class w4{constructor(e,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=jM(e),this._win=e;const i=this.getWindow;this.keyboardNavigation=new n4(i),this.focusedElement=new ot(this,i),this.focusable=new JM(this),this.root=new Ze(this,r?.autoRoot),this.uncontrolled=new g4(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=(o=r?.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new VM(i),this.getParent=(n=r?.getParent)!==null&&n!==void 0?n:a=>a.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=i().document;this._unobserve=p4(s,this,_T,a)}}},TT(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const o=new y4(this);return e||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,o,n,i,a,s,c;this.internal.stopObserver();const l=this._win;l?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(a=this.modalizer)===null||a===void 0||a.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(c=this.restorer)===null||c===void 0||c.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),LM(this.getWindow),N1(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(DM(l),delete l.__tabsterInstance,delete this._win)}storageEntry(e,r){const o=this._storage;let n=o.get(e);return n?r===!1&&Object.keys(n).length===0&&o.delete(e):r===!0&&(n={},o.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())N1(this.getWindow,e),ot.forgetMemorized(this.focusedElement,e)},0),CT(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function k4(t,e){let r=x4(t);return r?r.createTabster(!1,e):(r=new w4(t,e),t.__tabsterInstance=r,r.createTabster())}function _4(t){const e=t.core;return e.groupper||(e.groupper=new o4(e,e.getWindow)),e.groupper}function S4(t){const e=t.core;return e.mover||(e.mover=new h4(e,e.getWindow)),e.mover}function C4(t,e,r){const o=t.core;return o.modalizer||(o.modalizer=new c4(o,e,r)),o.modalizer}function bb(t){const e=t.core;return e.restorer||(e.restorer=new b4(e)),e.restorer}function T4(t,e){t.core.disposeTabster(t,e)}function x4(t){return t.__tabsterInstance}const oa=()=>{const{targetDocument:t}=je(),e=t?.defaultView||void 0,r=w.useMemo(()=>e?k4(e,{autoRoot:{},controlTab:!1,getParent:cT,checkUncontrolledTrappingFocus:o=>{var n;return!!(!((n=o.firstElementChild)===null||n===void 0)&&n.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[e]);return er(()=>()=>{r&&T4(r)},[r]),r},Kc=t=>(oa(),Kf(t)),Wc=(t={})=>{const{circular:e,axis:r,memorizeCurrent:o,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:a}=t,s=oa();return s&&S4(s),Kc({mover:{cyclic:!!e,direction:E4(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function E4(t){switch(t){case"horizontal":return ur.MoverDirections.Horizontal;case"grid":return ur.MoverDirections.Grid;case"grid-linear":return ur.MoverDirections.GridLinear;case"both":return ur.MoverDirections.Both;case"vertical":default:return ur.MoverDirections.Vertical}}const Wf=t=>{const e=oa();return e&&_4(e),Kc({groupper:{tabbability:I4(t?.tabBehavior)},focusable:{ignoreKeydown:t?.ignoreDefaultKeydown}})},I4=t=>{switch(t){case"unlimited":return ur.GroupperTabbabilities.Unlimited;case"limited":return ur.GroupperTabbabilities.Limited;case"limited-trap-focus":return ur.GroupperTabbabilities.LimitedTrapFocus;default:return}},bn=()=>{const t=oa(),{targetDocument:e}=je(),r=w.useCallback((s,c)=>t?.focusable.findAll({container:s,acceptCondition:c})||[],[t]),o=w.useCallback(s=>t?.focusable.findFirst({container:s}),[t]),n=w.useCallback(s=>t?.focusable.findLast({container:s}),[t]),i=w.useCallback((s,c={})=>{if(!t||!e)return null;const{container:l=e.body}=c;return t.focusable.findNext({currentElement:s,container:l})},[t,e]),a=w.useCallback((s,c={})=>{if(!t||!e)return null;const{container:l=e.body}=c;return t.focusable.findPrev({currentElement:s,container:l})},[t,e]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:a}},D1="data-fui-focus-visible",BT="data-fui-focus-within";function A4(t,e){if(NT(t))return()=>{};const r={current:void 0},o=hb(e);function n(c){o.isNavigatingWithKeyboard()&&at(c)&&(r.current=c,c.setAttribute(D1,""))}function i(){r.current&&(r.current.removeAttribute(D1),r.current=void 0)}o.subscribe(c=>{c||i()});const a=c=>{i();const l=c.composedPath()[0];n(l)},s=c=>{(!c.relatedTarget||at(c.relatedTarget)&&!t.contains(c.relatedTarget))&&i()};return t.addEventListener(uo,a),t.addEventListener("focusout",s),t.focusVisible=!0,n(e.document.activeElement),()=>{i(),t.removeEventListener(uo,a),t.removeEventListener("focusout",s),delete t.focusVisible,pb(o)}}function NT(t){return t?t.focusVisible?!0:NT(t?.parentElement):!1}function yb(t={}){const e=je(),r=w.useRef(null);var o;const n=(o=t.targetDocument)!==null&&o!==void 0?o:e.targetDocument;return w.useEffect(()=>{if(n?.defaultView&&r.current)return A4(r.current,n.defaultView)},[r,n]),r}function R4(t,e){const r=hb(e);r.subscribe(i=>{i||j1(t)});const o=i=>{r.isNavigatingWithKeyboard()&&F1(i.target)&&P4(t)},n=i=>{(!i.relatedTarget||F1(i.relatedTarget)&&!t.contains(i.relatedTarget))&&j1(t)};return t.addEventListener(uo,o),t.addEventListener("focusout",n),()=>{t.removeEventListener(uo,o),t.removeEventListener("focusout",n),pb(r)}}function P4(t){t.setAttribute(BT,"")}function j1(t){t.removeAttribute(BT)}function F1(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function jl(){const{targetDocument:t}=je(),e=w.useRef(null);return w.useEffect(()=>{if(t?.defaultView&&e.current)return R4(e.current,t.defaultView)},[e,t]),e}const Vf=(t={})=>{const{trapFocus:e,alwaysFocusable:r,legacyTrapFocus:o}=t,n=oa();n&&(C4(n),bb(n));const i=gr("modal-",t.id),a=Kc({restorer:{type:ur.RestorerTypes.Source},...e&&{modalizer:{id:i,isOthersAccessible:!e,isAlwaysAccessible:r,isTrapped:o&&e}}}),s=Kc({restorer:{type:ur.RestorerTypes.Target}});return{modalAttributes:a,triggerAttributes:s}},B4=(...t)=>{const e=t.map(o=>o[ur.TabsterAttributeName]).filter(Boolean),r=w.useMemo(()=>{let o=e[0];t.shift();for(const n of e)o=N4(o,n);return o},e);return{[ur.TabsterAttributeName]:r}};function N4(t,e){if(!e)return t;let r={},o={};if(t)try{r=JSON.parse(t)}catch{}if(e)try{o=JSON.parse(e)}catch{}return JSON.stringify({...r,...o})}function z4(){const t=oa();return t&&bb(t),Kf({restorer:{type:ur.RestorerTypes.Target}})}function M4(){const t=oa();return t&&bb(t),Kf({restorer:{type:ur.RestorerTypes.Source}})}const le={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Sn={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},Cn={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},ft="#ffffff",O4="#000000",D4={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},zT={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},j4={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},F4={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},L4={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},q4={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},H4={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},U4={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},$4={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},K4={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},W4={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},V4={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},G4={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},X4={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},Y4={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},MT={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Q4={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},Z4={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},J4={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},eO={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},tO={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},rO={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},oO={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},nO={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},iO={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},aO={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},sO={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},cO={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lO={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},uO={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},dO={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},fO={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},hO={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},pO={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},gO={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},mO={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},wr={red:j4,green:MT,darkOrange:F4,yellow:$4,berry:cO,lightGreen:Y4,marigold:U4},Xh={darkRed:D4,cranberry:zT,pumpkin:L4,peach:H4,gold:K4,brass:W4,brown:V4,forest:G4,seafoam:X4,darkGreen:Q4,lightTeal:Z4,teal:J4,steel:eO,blue:tO,royalBlue:rO,cornflower:oO,navy:nO,lavender:iO,purple:aO,grape:sO,lilac:lO,pink:uO,magenta:dO,plum:fO,beige:hO,mink:pO,platinum:gO,anchor:mO},yr={cranberry:zT,green:MT,orange:q4},vO=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],bO=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Gf={success:"green",warning:"orange",danger:"cranberry"},Fl=vO.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:wr[e].tint60,[`colorPalette${r}Background2`]:wr[e].tint40,[`colorPalette${r}Background3`]:wr[e].primary,[`colorPalette${r}Foreground1`]:wr[e].shade10,[`colorPalette${r}Foreground2`]:wr[e].shade30,[`colorPalette${r}Foreground3`]:wr[e].primary,[`colorPalette${r}BorderActive`]:wr[e].primary,[`colorPalette${r}Border1`]:wr[e].tint40,[`colorPalette${r}Border2`]:wr[e].primary};return Object.assign(t,o)},{});Fl.colorPaletteYellowForeground1=wr.yellow.shade30;Fl.colorPaletteRedForegroundInverted=wr.red.tint20;Fl.colorPaletteGreenForegroundInverted=wr.green.tint20;Fl.colorPaletteYellowForegroundInverted=wr.yellow.tint40;const yO=bO.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:Xh[e].tint40,[`colorPalette${r}Foreground2`]:Xh[e].shade30,[`colorPalette${r}BorderActive`]:Xh[e].primary};return Object.assign(t,o)},{}),wO={...Fl,...yO},Xf=Object.entries(Gf).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:yr[r].tint60,[`colorStatus${o}Background2`]:yr[r].tint40,[`colorStatus${o}Background3`]:yr[r].primary,[`colorStatus${o}Foreground1`]:yr[r].shade10,[`colorStatus${o}Foreground2`]:yr[r].shade30,[`colorStatus${o}Foreground3`]:yr[r].primary,[`colorStatus${o}ForegroundInverted`]:yr[r].tint30,[`colorStatus${o}BorderActive`]:yr[r].primary,[`colorStatus${o}Border1`]:yr[r].tint40,[`colorStatus${o}Border2`]:yr[r].primary};return Object.assign(t,n)},{});Xf.colorStatusWarningForeground1=yr[Gf.warning].shade20;Xf.colorStatusWarningForeground3=yr[Gf.warning].shade20;Xf.colorStatusWarningBorder2=yr[Gf.warning].shade20;const kO=t=>({colorNeutralForeground1:le[14],colorNeutralForeground1Hover:le[14],colorNeutralForeground1Pressed:le[14],colorNeutralForeground1Selected:le[14],colorNeutralForeground2:le[26],colorNeutralForeground2Hover:le[14],colorNeutralForeground2Pressed:le[14],colorNeutralForeground2Selected:le[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:le[38],colorNeutralForeground3Hover:le[26],colorNeutralForeground3Pressed:le[26],colorNeutralForeground3Selected:le[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:le[44],colorNeutralForegroundDisabled:le[74],colorNeutralForegroundInvertedDisabled:Sn[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:le[26],colorNeutralForeground2LinkHover:le[14],colorNeutralForeground2LinkPressed:le[14],colorNeutralForeground2LinkSelected:le[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:le[14],colorNeutralForegroundStaticInverted:ft,colorNeutralForegroundInverted:ft,colorNeutralForegroundInvertedHover:ft,colorNeutralForegroundInvertedPressed:ft,colorNeutralForegroundInvertedSelected:ft,colorNeutralForegroundInverted2:ft,colorNeutralForegroundOnBrand:ft,colorNeutralForegroundInvertedLink:ft,colorNeutralForegroundInvertedLinkHover:ft,colorNeutralForegroundInvertedLinkPressed:ft,colorNeutralForegroundInvertedLinkSelected:ft,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:ft,colorNeutralBackground1Hover:le[96],colorNeutralBackground1Pressed:le[88],colorNeutralBackground1Selected:le[92],colorNeutralBackground2:le[98],colorNeutralBackground2Hover:le[94],colorNeutralBackground2Pressed:le[86],colorNeutralBackground2Selected:le[90],colorNeutralBackground3:le[96],colorNeutralBackground3Hover:le[92],colorNeutralBackground3Pressed:le[84],colorNeutralBackground3Selected:le[88],colorNeutralBackground4:le[94],colorNeutralBackground4Hover:le[98],colorNeutralBackground4Pressed:le[96],colorNeutralBackground4Selected:ft,colorNeutralBackground5:le[92],colorNeutralBackground5Hover:le[96],colorNeutralBackground5Pressed:le[94],colorNeutralBackground5Selected:le[98],colorNeutralBackground6:le[90],colorNeutralBackgroundInverted:le[16],colorNeutralBackgroundStatic:le[20],colorNeutralBackgroundAlpha:Sn[50],colorNeutralBackgroundAlpha2:Sn[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:le[96],colorSubtleBackgroundPressed:le[88],colorSubtleBackgroundSelected:le[92],colorSubtleBackgroundLightAlphaHover:Sn[70],colorSubtleBackgroundLightAlphaPressed:Sn[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Cn[10],colorSubtleBackgroundInvertedPressed:Cn[30],colorSubtleBackgroundInvertedSelected:Cn[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:le[94],colorNeutralBackgroundInvertedDisabled:Sn[10],colorNeutralStencil1:le[90],colorNeutralStencil2:le[98],colorNeutralStencil1Alpha:Cn[10],colorNeutralStencil2Alpha:Cn[5],colorBackgroundOverlay:Cn[40],colorScrollbarOverlay:Cn[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackgroundInverted:ft,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralStrokeAccessible:le[38],colorNeutralStrokeAccessibleHover:le[34],colorNeutralStrokeAccessiblePressed:le[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:le[82],colorNeutralStroke1Hover:le[78],colorNeutralStroke1Pressed:le[70],colorNeutralStroke1Selected:le[74],colorNeutralStroke2:le[88],colorNeutralStroke3:le[94],colorNeutralStrokeSubtle:le[88],colorNeutralStrokeOnBrand:ft,colorNeutralStrokeOnBrand2:ft,colorNeutralStrokeOnBrand2Hover:ft,colorNeutralStrokeOnBrand2Pressed:ft,colorNeutralStrokeOnBrand2Selected:ft,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:le[88],colorNeutralStrokeInvertedDisabled:Sn[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Cn[5],colorNeutralStrokeAlpha2:Sn[20],colorStrokeFocus1:ft,colorStrokeFocus2:O4,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),_O={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},SO={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},CO={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},TO={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},xO={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},EO={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},IO={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},nt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},AO={spacingHorizontalNone:nt.none,spacingHorizontalXXS:nt.xxs,spacingHorizontalXS:nt.xs,spacingHorizontalSNudge:nt.sNudge,spacingHorizontalS:nt.s,spacingHorizontalMNudge:nt.mNudge,spacingHorizontalM:nt.m,spacingHorizontalL:nt.l,spacingHorizontalXL:nt.xl,spacingHorizontalXXL:nt.xxl,spacingHorizontalXXXL:nt.xxxl},RO={spacingVerticalNone:nt.none,spacingVerticalXXS:nt.xxs,spacingVerticalXS:nt.xs,spacingVerticalSNudge:nt.sNudge,spacingVerticalS:nt.s,spacingVerticalMNudge:nt.mNudge,spacingVerticalM:nt.m,spacingVerticalL:nt.l,spacingVerticalXL:nt.xl,spacingVerticalXXL:nt.xxl,spacingVerticalXXXL:nt.xxxl},PO={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Me={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function L1(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const BO=t=>{const e=kO(t);return{..._O,...TO,...xO,...IO,...EO,...PO,...AO,...RO,...CO,...SO,...e,...wO,...Xf,...L1(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...L1(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},NO={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},zO=BO(NO),OT={root:"fui-FluentProvider"},MO=FC({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),OO=t=>{const e=zl(),r=MO({dir:t.dir,renderer:e});return t.root.className=j(OT.root,t.themeClassName,r.root,t.root.className),t},DO=w.useInsertionEffect?w.useInsertionEffect:er,jO=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(o=>{r.setAttribute(o,e[o])}),t.head.appendChild(r),r},FO=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},LO=t=>{const{targetDocument:e,theme:r,rendererAttributes:o}=t,n=w.useRef(),i=gr(OT.root),a=o,s=w.useMemo(()=>lz(`.${i}`,r),[r,i]);return qO(e,i),DO(()=>{const c=e?.getElementById(i);return c?n.current=c:(n.current=jO(e,{...a,id:i}),n.current&&FO(n.current,s)),()=>{var l;(l=n.current)===null||l===void 0||l.remove()}},[i,e,s,a]),{styleTagId:i,rule:s}};function qO(t,e){w.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const HO={},UO=(t,e)=>{const r=je(),o=$O(),n=Hf(),i=w.useContext(ub)||HO,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:c=r.dir,targetDocument:l=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=Yh(o,u),h=Yh(n,d),p=Yh(i,s),g=zl();var y;const{styleTagId:v,rule:m}=LO({theme:f,targetDocument:l,rendererAttributes:(y=g.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:a,customStyleHooks_unstable:p,dir:c,targetDocument:l,theme:f,overrides_unstable:h,themeClassName:v,components:{root:"div"},root:ae(we("div",{...t,dir:c,ref:bt(e,yb({targetDocument:l}))}),{elementType:"div"}),serverStyleProps:{cssRule:m,attributes:{...g.styleElementAttributes,id:v}}}};function Yh(t,e){return t&&e?{...t,...e}:t||e}function $O(){return w.useContext(GC)}function KO(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:c}=t,l=w.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=w.useState(()=>({})),d=w.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:c,provider:l,textDirection:o,iconDirection:d,tooltip:u,theme:a,themeClassName:e?n.className:s}}const DT=w.forwardRef((t,e)=>{const r=UO(t,e);OO(r);const o=KO(r);return kM(r,o)});DT.displayName="FluentProvider";var jT={exports:{}},FT={};/** @license React v0.20.2 + */class w4{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class k4{constructor(e,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=FM(e),this._win=e;const i=this.getWindow;this.keyboardNavigation=new i4(i),this.focusedElement=new ot(this,i),this.focusable=new e4(this),this.root=new Ze(this,r?.autoRoot),this.uncontrolled=new m4(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=(o=r?.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new GM(i),this.getParent=(n=r?.getParent)!==null&&n!==void 0?n:a=>a.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=i().document;this._unobserve=g4(s,this,ST,a)}}},xT(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const o=new w4(this);return e||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,o,n,i,a,s,c;this.internal.stopObserver();const l=this._win;l?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(a=this.modalizer)===null||a===void 0||a.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(c=this.restorer)===null||c===void 0||c.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),qM(this.getWindow),N1(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(jM(l),delete l.__tabsterInstance,delete this._win)}storageEntry(e,r){const o=this._storage;let n=o.get(e);return n?r===!1&&Object.keys(n).length===0&&o.delete(e):r===!0&&(n={},o.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())N1(this.getWindow,e),ot.forgetMemorized(this.focusedElement,e)},0),TT(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function _4(t,e){let r=E4(t);return r?r.createTabster(!1,e):(r=new k4(t,e),t.__tabsterInstance=r,r.createTabster())}function S4(t){const e=t.core;return e.groupper||(e.groupper=new n4(e,e.getWindow)),e.groupper}function C4(t){const e=t.core;return e.mover||(e.mover=new p4(e,e.getWindow)),e.mover}function T4(t,e,r){const o=t.core;return o.modalizer||(o.modalizer=new l4(o,e,r)),o.modalizer}function bb(t){const e=t.core;return e.restorer||(e.restorer=new y4(e)),e.restorer}function x4(t,e){t.core.disposeTabster(t,e)}function E4(t){return t.__tabsterInstance}const oa=()=>{const{targetDocument:t}=je(),e=t?.defaultView||void 0,r=w.useMemo(()=>e?_4(e,{autoRoot:{},controlTab:!1,getParent:cT,checkUncontrolledTrappingFocus:o=>{var n;return!!(!((n=o.firstElementChild)===null||n===void 0)&&n.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[e]);return er(()=>()=>{r&&x4(r)},[r]),r},Kc=t=>(oa(),$f(t)),Wc=(t={})=>{const{circular:e,axis:r,memorizeCurrent:o,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:a}=t,s=oa();return s&&C4(s),Kc({mover:{cyclic:!!e,direction:I4(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function I4(t){switch(t){case"horizontal":return ur.MoverDirections.Horizontal;case"grid":return ur.MoverDirections.Grid;case"grid-linear":return ur.MoverDirections.GridLinear;case"both":return ur.MoverDirections.Both;case"vertical":default:return ur.MoverDirections.Vertical}}const Kf=t=>{const e=oa();return e&&S4(e),Kc({groupper:{tabbability:A4(t?.tabBehavior)},focusable:{ignoreKeydown:t?.ignoreDefaultKeydown}})},A4=t=>{switch(t){case"unlimited":return ur.GroupperTabbabilities.Unlimited;case"limited":return ur.GroupperTabbabilities.Limited;case"limited-trap-focus":return ur.GroupperTabbabilities.LimitedTrapFocus;default:return}},bn=()=>{const t=oa(),{targetDocument:e}=je(),r=w.useCallback((s,c)=>t?.focusable.findAll({container:s,acceptCondition:c})||[],[t]),o=w.useCallback(s=>t?.focusable.findFirst({container:s}),[t]),n=w.useCallback(s=>t?.focusable.findLast({container:s}),[t]),i=w.useCallback((s,c={})=>{if(!t||!e)return null;const{container:l=e.body}=c;return t.focusable.findNext({currentElement:s,container:l})},[t,e]),a=w.useCallback((s,c={})=>{if(!t||!e)return null;const{container:l=e.body}=c;return t.focusable.findPrev({currentElement:s,container:l})},[t,e]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:a}},D1="data-fui-focus-visible",NT="data-fui-focus-within";function R4(t,e){if(zT(t))return()=>{};const r={current:void 0},o=hb(e);function n(c){o.isNavigatingWithKeyboard()&&at(c)&&(r.current=c,c.setAttribute(D1,""))}function i(){r.current&&(r.current.removeAttribute(D1),r.current=void 0)}o.subscribe(c=>{c||i()});const a=c=>{i();const l=c.composedPath()[0];n(l)},s=c=>{(!c.relatedTarget||at(c.relatedTarget)&&!t.contains(c.relatedTarget))&&i()};return t.addEventListener(uo,a),t.addEventListener("focusout",s),t.focusVisible=!0,n(e.document.activeElement),()=>{i(),t.removeEventListener(uo,a),t.removeEventListener("focusout",s),delete t.focusVisible,pb(o)}}function zT(t){return t?t.focusVisible?!0:zT(t?.parentElement):!1}function yb(t={}){const e=je(),r=w.useRef(null);var o;const n=(o=t.targetDocument)!==null&&o!==void 0?o:e.targetDocument;return w.useEffect(()=>{if(n?.defaultView&&r.current)return R4(r.current,n.defaultView)},[r,n]),r}function P4(t,e){const r=hb(e);r.subscribe(i=>{i||j1(t)});const o=i=>{r.isNavigatingWithKeyboard()&&F1(i.target)&&B4(t)},n=i=>{(!i.relatedTarget||F1(i.relatedTarget)&&!t.contains(i.relatedTarget))&&j1(t)};return t.addEventListener(uo,o),t.addEventListener("focusout",n),()=>{t.removeEventListener(uo,o),t.removeEventListener("focusout",n),pb(r)}}function B4(t){t.setAttribute(NT,"")}function j1(t){t.removeAttribute(NT)}function F1(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function Dl(){const{targetDocument:t}=je(),e=w.useRef(null);return w.useEffect(()=>{if(t?.defaultView&&e.current)return P4(e.current,t.defaultView)},[e,t]),e}const Wf=(t={})=>{const{trapFocus:e,alwaysFocusable:r,legacyTrapFocus:o}=t,n=oa();n&&(T4(n),bb(n));const i=gr("modal-",t.id),a=Kc({restorer:{type:ur.RestorerTypes.Source},...e&&{modalizer:{id:i,isOthersAccessible:!e,isAlwaysAccessible:r,isTrapped:o&&e}}}),s=Kc({restorer:{type:ur.RestorerTypes.Target}});return{modalAttributes:a,triggerAttributes:s}},N4=(...t)=>{const e=t.map(o=>o[ur.TabsterAttributeName]).filter(Boolean),r=w.useMemo(()=>{let o=e[0];t.shift();for(const n of e)o=z4(o,n);return o},e);return{[ur.TabsterAttributeName]:r}};function z4(t,e){if(!e)return t;let r={},o={};if(t)try{r=JSON.parse(t)}catch{}if(e)try{o=JSON.parse(e)}catch{}return JSON.stringify({...r,...o})}function M4(){const t=oa();return t&&bb(t),$f({restorer:{type:ur.RestorerTypes.Target}})}function O4(){const t=oa();return t&&bb(t),$f({restorer:{type:ur.RestorerTypes.Source}})}const le={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Sn={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},Cn={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},ft="#ffffff",D4="#000000",j4={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},MT={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},F4={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},L4={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},q4={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},H4={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},U4={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},$4={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},K4={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},W4={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},V4={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},G4={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},X4={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},Y4={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},Q4={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},OT={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Z4={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},J4={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},eO={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},tO={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},rO={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},oO={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},nO={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},iO={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},aO={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},sO={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},cO={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},lO={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},uO={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},dO={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},fO={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},hO={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},pO={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},gO={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},mO={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},vO={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},wr={red:F4,green:OT,darkOrange:L4,yellow:K4,berry:lO,lightGreen:Q4,marigold:$4},Gh={darkRed:j4,cranberry:MT,pumpkin:q4,peach:U4,gold:W4,brass:V4,brown:G4,forest:X4,seafoam:Y4,darkGreen:Z4,lightTeal:J4,teal:eO,steel:tO,blue:rO,royalBlue:oO,cornflower:nO,navy:iO,lavender:aO,purple:sO,grape:cO,lilac:uO,pink:dO,magenta:fO,plum:hO,beige:pO,mink:gO,platinum:mO,anchor:vO},yr={cranberry:MT,green:OT,orange:H4},bO=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],yO=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Vf={success:"green",warning:"orange",danger:"cranberry"},jl=bO.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:wr[e].tint60,[`colorPalette${r}Background2`]:wr[e].tint40,[`colorPalette${r}Background3`]:wr[e].primary,[`colorPalette${r}Foreground1`]:wr[e].shade10,[`colorPalette${r}Foreground2`]:wr[e].shade30,[`colorPalette${r}Foreground3`]:wr[e].primary,[`colorPalette${r}BorderActive`]:wr[e].primary,[`colorPalette${r}Border1`]:wr[e].tint40,[`colorPalette${r}Border2`]:wr[e].primary};return Object.assign(t,o)},{});jl.colorPaletteYellowForeground1=wr.yellow.shade30;jl.colorPaletteRedForegroundInverted=wr.red.tint20;jl.colorPaletteGreenForegroundInverted=wr.green.tint20;jl.colorPaletteYellowForegroundInverted=wr.yellow.tint40;const wO=yO.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:Gh[e].tint40,[`colorPalette${r}Foreground2`]:Gh[e].shade30,[`colorPalette${r}BorderActive`]:Gh[e].primary};return Object.assign(t,o)},{}),kO={...jl,...wO},Gf=Object.entries(Vf).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:yr[r].tint60,[`colorStatus${o}Background2`]:yr[r].tint40,[`colorStatus${o}Background3`]:yr[r].primary,[`colorStatus${o}Foreground1`]:yr[r].shade10,[`colorStatus${o}Foreground2`]:yr[r].shade30,[`colorStatus${o}Foreground3`]:yr[r].primary,[`colorStatus${o}ForegroundInverted`]:yr[r].tint30,[`colorStatus${o}BorderActive`]:yr[r].primary,[`colorStatus${o}Border1`]:yr[r].tint40,[`colorStatus${o}Border2`]:yr[r].primary};return Object.assign(t,n)},{});Gf.colorStatusWarningForeground1=yr[Vf.warning].shade20;Gf.colorStatusWarningForeground3=yr[Vf.warning].shade20;Gf.colorStatusWarningBorder2=yr[Vf.warning].shade20;const _O=t=>({colorNeutralForeground1:le[14],colorNeutralForeground1Hover:le[14],colorNeutralForeground1Pressed:le[14],colorNeutralForeground1Selected:le[14],colorNeutralForeground2:le[26],colorNeutralForeground2Hover:le[14],colorNeutralForeground2Pressed:le[14],colorNeutralForeground2Selected:le[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:le[38],colorNeutralForeground3Hover:le[26],colorNeutralForeground3Pressed:le[26],colorNeutralForeground3Selected:le[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:le[44],colorNeutralForegroundDisabled:le[74],colorNeutralForegroundInvertedDisabled:Sn[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:le[26],colorNeutralForeground2LinkHover:le[14],colorNeutralForeground2LinkPressed:le[14],colorNeutralForeground2LinkSelected:le[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:le[14],colorNeutralForegroundStaticInverted:ft,colorNeutralForegroundInverted:ft,colorNeutralForegroundInvertedHover:ft,colorNeutralForegroundInvertedPressed:ft,colorNeutralForegroundInvertedSelected:ft,colorNeutralForegroundInverted2:ft,colorNeutralForegroundOnBrand:ft,colorNeutralForegroundInvertedLink:ft,colorNeutralForegroundInvertedLinkHover:ft,colorNeutralForegroundInvertedLinkPressed:ft,colorNeutralForegroundInvertedLinkSelected:ft,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:ft,colorNeutralBackground1Hover:le[96],colorNeutralBackground1Pressed:le[88],colorNeutralBackground1Selected:le[92],colorNeutralBackground2:le[98],colorNeutralBackground2Hover:le[94],colorNeutralBackground2Pressed:le[86],colorNeutralBackground2Selected:le[90],colorNeutralBackground3:le[96],colorNeutralBackground3Hover:le[92],colorNeutralBackground3Pressed:le[84],colorNeutralBackground3Selected:le[88],colorNeutralBackground4:le[94],colorNeutralBackground4Hover:le[98],colorNeutralBackground4Pressed:le[96],colorNeutralBackground4Selected:ft,colorNeutralBackground5:le[92],colorNeutralBackground5Hover:le[96],colorNeutralBackground5Pressed:le[94],colorNeutralBackground5Selected:le[98],colorNeutralBackground6:le[90],colorNeutralBackgroundInverted:le[16],colorNeutralBackgroundStatic:le[20],colorNeutralBackgroundAlpha:Sn[50],colorNeutralBackgroundAlpha2:Sn[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:le[96],colorSubtleBackgroundPressed:le[88],colorSubtleBackgroundSelected:le[92],colorSubtleBackgroundLightAlphaHover:Sn[70],colorSubtleBackgroundLightAlphaPressed:Sn[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Cn[10],colorSubtleBackgroundInvertedPressed:Cn[30],colorSubtleBackgroundInvertedSelected:Cn[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:le[94],colorNeutralBackgroundInvertedDisabled:Sn[10],colorNeutralStencil1:le[90],colorNeutralStencil2:le[98],colorNeutralStencil1Alpha:Cn[10],colorNeutralStencil2Alpha:Cn[5],colorBackgroundOverlay:Cn[40],colorScrollbarOverlay:Cn[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackgroundInverted:ft,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralStrokeAccessible:le[38],colorNeutralStrokeAccessibleHover:le[34],colorNeutralStrokeAccessiblePressed:le[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:le[82],colorNeutralStroke1Hover:le[78],colorNeutralStroke1Pressed:le[70],colorNeutralStroke1Selected:le[74],colorNeutralStroke2:le[88],colorNeutralStroke3:le[94],colorNeutralStrokeSubtle:le[88],colorNeutralStrokeOnBrand:ft,colorNeutralStrokeOnBrand2:ft,colorNeutralStrokeOnBrand2Hover:ft,colorNeutralStrokeOnBrand2Pressed:ft,colorNeutralStrokeOnBrand2Selected:ft,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:le[88],colorNeutralStrokeInvertedDisabled:Sn[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Cn[5],colorNeutralStrokeAlpha2:Sn[20],colorStrokeFocus1:ft,colorStrokeFocus2:D4,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),SO={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},CO={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},TO={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},xO={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},EO={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},IO={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},AO={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},nt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},RO={spacingHorizontalNone:nt.none,spacingHorizontalXXS:nt.xxs,spacingHorizontalXS:nt.xs,spacingHorizontalSNudge:nt.sNudge,spacingHorizontalS:nt.s,spacingHorizontalMNudge:nt.mNudge,spacingHorizontalM:nt.m,spacingHorizontalL:nt.l,spacingHorizontalXL:nt.xl,spacingHorizontalXXL:nt.xxl,spacingHorizontalXXXL:nt.xxxl},PO={spacingVerticalNone:nt.none,spacingVerticalXXS:nt.xxs,spacingVerticalXS:nt.xs,spacingVerticalSNudge:nt.sNudge,spacingVerticalS:nt.s,spacingVerticalMNudge:nt.mNudge,spacingVerticalM:nt.m,spacingVerticalL:nt.l,spacingVerticalXL:nt.xl,spacingVerticalXXL:nt.xxl,spacingVerticalXXXL:nt.xxxl},BO={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Me={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function L1(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const NO=t=>{const e=_O(t);return{...SO,...xO,...EO,...AO,...IO,...BO,...RO,...PO,...TO,...CO,...e,...kO,...Gf,...L1(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...L1(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},zO={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},MO=NO(zO),DT={root:"fui-FluentProvider"},OO=FC({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),DO=t=>{const e=zl(),r=OO({dir:t.dir,renderer:e});return t.root.className=j(DT.root,t.themeClassName,r.root,t.root.className),t},jO=w.useInsertionEffect?w.useInsertionEffect:er,FO=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(o=>{r.setAttribute(o,e[o])}),t.head.appendChild(r),r},LO=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},qO=t=>{const{targetDocument:e,theme:r,rendererAttributes:o}=t,n=w.useRef(),i=gr(DT.root),a=o,s=w.useMemo(()=>uz(`.${i}`,r),[r,i]);return HO(e,i),jO(()=>{const c=e?.getElementById(i);return c?n.current=c:(n.current=FO(e,{...a,id:i}),n.current&&LO(n.current,s)),()=>{var l;(l=n.current)===null||l===void 0||l.remove()}},[i,e,s,a]),{styleTagId:i,rule:s}};function HO(t,e){w.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const UO={},$O=(t,e)=>{const r=je(),o=KO(),n=qf(),i=w.useContext(lb)||UO,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:c=r.dir,targetDocument:l=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=Xh(o,u),h=Xh(n,d),p=Xh(i,s),g=zl();var y;const{styleTagId:v,rule:m}=qO({theme:f,targetDocument:l,rendererAttributes:(y=g.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:a,customStyleHooks_unstable:p,dir:c,targetDocument:l,theme:f,overrides_unstable:h,themeClassName:v,components:{root:"div"},root:ae(we("div",{...t,dir:c,ref:bt(e,yb({targetDocument:l}))}),{elementType:"div"}),serverStyleProps:{cssRule:m,attributes:{...g.styleElementAttributes,id:v}}}};function Xh(t,e){return t&&e?{...t,...e}:t||e}function KO(){return w.useContext(GC)}function WO(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:c}=t,l=w.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=w.useState(()=>({})),d=w.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:c,provider:l,textDirection:o,iconDirection:d,tooltip:u,theme:a,themeClassName:e?n.className:s}}const jT=w.forwardRef((t,e)=>{const r=$O(t,e);DO(r);const o=WO(r);return _M(r,o)});jT.displayName="FluentProvider";var FT={exports:{}},LT={};/** @license React v0.20.2 * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){var e,r,o,n;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,l=null,u=function(){if(c!==null)try{var N=t.unstable_now();c(!0,N),c=null}catch(O){throw setTimeout(u,0),O}};e=function(N){c!==null?setTimeout(e,0,N):(c=N,setTimeout(u,0))},r=function(N,O){l=setTimeout(N,O)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},n=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,y=-1,v=5,m=0;t.unstable_shouldYield=function(){return t.unstable_now()>=m},n=function(){},t.unstable_forceFrameRate=function(N){0>N||125>>1,fe=N[Q];if(fe!==void 0&&0T(se,G))tt!==void 0&&0>T(tt,se)?(N[Q]=tt,N[ye]=G,Q=ye):(N[Q]=se,N[Ae]=G,Q=Ae);else if(tt!==void 0&&0>T(tt,G))N[Q]=tt,N[ye]=G,Q=ye;else break e}}return O}return null}function T(N,O){var G=N.sortIndex-O.sortIndex;return G!==0?G:N.id-O.id}var A=[],R=[],V=1,E=null,U=3,D=!1,B=!1,M=!1;function K(N){for(var O=C(R);O!==null;){if(O.callback===null)_(R);else if(O.startTime<=N)_(R),O.sortIndex=O.expirationTime,S(A,O);else break;O=C(R)}}function I(N){if(M=!1,K(N),!B)if(C(A)!==null)B=!0,e(F);else{var O=C(R);O!==null&&r(I,O.startTime-N)}}function F(N,O){B=!1,M&&(M=!1,o()),D=!0;var G=U;try{for(K(O),E=C(A);E!==null&&(!(E.expirationTime>O)||N&&!t.unstable_shouldYield());){var Q=E.callback;if(typeof Q=="function"){E.callback=null,U=E.priorityLevel;var fe=Q(E.expirationTime<=O);O=t.unstable_now(),typeof fe=="function"?E.callback=fe:E===C(A)&&_(A),K(O)}else _(A);E=C(A)}if(E!==null)var Ae=!0;else{var se=C(R);se!==null&&r(I,se.startTime-O),Ae=!1}return Ae}finally{E=null,U=G,D=!1}}var $=n;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_continueExecution=function(){B||D||(B=!0,e(F))},t.unstable_getCurrentPriorityLevel=function(){return U},t.unstable_getFirstCallbackNode=function(){return C(A)},t.unstable_next=function(N){switch(U){case 1:case 2:case 3:var O=3;break;default:O=U}var G=U;U=O;try{return N()}finally{U=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(N,O){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var G=U;U=N;try{return O()}finally{U=G}},t.unstable_scheduleCallback=function(N,O,G){var Q=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0Q?(N.sortIndex=G,S(R,N),C(A)===null&&N===C(R)&&(M?o():M=!0,r(I,G-Q))):(N.sortIndex=fe,S(A,N),B||D||(B=!0,e(F))),N},t.unstable_wrapCallback=function(N){var O=U;return function(){var G=U;U=O;try{return N.apply(this,arguments)}finally{U=G}}}})(FT);jT.exports=FT;var q1=jT.exports;const WO=t=>r=>{const o=w.useRef(r.value),n=w.useRef(0),i=w.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),er(()=>{o.current=r.value,n.current+=1,q1.unstable_runWithPriority(q1.unstable_NormalPriority,()=>{i.current.listeners.forEach(a=>{a([n.current,r.value])})})},[r.value]),w.createElement(t,{value:i.current},r.children)},As=t=>{const e=w.createContext({value:{current:t},version:{current:-1},listeners:[]});return e.Provider=WO(e.Provider),delete e.Consumer,e},Rs=(t,e)=>{const r=w.useContext(t),{value:{current:o},version:{current:n},listeners:i}=r,a=e(o),[s,c]=w.useReducer((l,u)=>{if(!u)return[o,a];if(u[0]<=n)return au(l[1],a)?l:[o,a];try{if(au(l[0],u[1]))return l;const d=e(u[1]);return au(l[1],d)?l:[u[1],d]}catch{}return[l[0],l[1]]},[o,a]);return au(s[1],a)||c(void 0),er(()=>(i.push(c),()=>{const l=i.indexOf(c);i.splice(l,1)}),[i]),s[1]};function VO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const au=typeof Object.is=="function"?Object.is:VO;function wb(t){const e=w.useContext(t);return e.version?e.version.current!==-1:!1}const GO=27,XO="Shift",Ai="Enter",Mn=" ",LT="Tab",Yf="ArrowDown",kb="ArrowLeft",Qf="ArrowRight",_b="ArrowUp",qT="End",HT="Home",YO="PageDown",QO="PageUp",ZO="Delete",yn="Escape";function Ui(t,e){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:a,onKeyUp:s,...c}=e??{},l=typeof n=="string"?n==="true":n,u=r||o||l,d=ee(p=>{u?(p.preventDefault(),p.stopPropagation()):i?.(p)}),f=ee(p=>{if(a?.(p),p.isDefaultPrevented())return;const g=p.key;if(u&&(g===Ai||g===Mn)){p.preventDefault(),p.stopPropagation();return}if(g===Mn){p.preventDefault();return}else g===Ai&&(p.preventDefault(),p.currentTarget.click())}),h=ee(p=>{if(s?.(p),p.isDefaultPrevented())return;const g=p.key;if(u&&(g===Ai||g===Mn)){p.preventDefault(),p.stopPropagation();return}g===Mn&&(p.preventDefault(),p.currentTarget.click())});if(t==="button"||t===void 0)return{...c,disabled:r&&!o,"aria-disabled":o?!0:l,onClick:o?void 0:d,onKeyUp:o?void 0:s,onKeyDown:o?void 0:a};{const p={role:"button",tabIndex:r&&!o?void 0:0,...c,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":r||o||l};return t==="a"&&u&&(p.href=void 0),p}}const JO=t=>Ee(t.root,{children:[t.initials&&q(t.initials,{}),t.icon&&q(t.icon,{}),t.image&&q(t.image,{}),t.badge&&q(t.badge,{}),t.activeAriaLabelElement]}),e6=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,t6=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,r6=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,o6=/\s+/g,n6=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function i6(t,e,r){let o="";const n=t.split(" ");return n.length!==0&&(o+=n[0].charAt(0).toUpperCase()),r||(n.length===2?o+=n[1].charAt(0).toUpperCase():n.length===3&&(o+=n[2].charAt(0).toUpperCase())),e&&o.length>1?o.charAt(1)+o.charAt(0):o}function a6(t){return t=t.replace(e6,""),t=t.replace(t6,""),t=t.replace(o6," "),t=t.trim(),t}function s6(t,e,r){return!t||(t=a6(t),n6.test(t)||!r?.allowPhoneInitials&&r6.test(t))?"":i6(t,e,r?.firstInitialOnly)}const c6=(t,e)=>{const{shape:r="circular",size:o="medium",iconPosition:n="before",appearance:i="filled",color:a="brand"}=t;return{shape:r,size:o,iconPosition:n,appearance:i,color:a,components:{root:"div",icon:"span"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),icon:ve(t.icon,{elementType:"span"})}},l6=t=>Ee(t.root,{children:[t.iconPosition==="before"&&t.icon&&q(t.icon,{}),t.root.children,t.iconPosition==="after"&&t.icon&&q(t.icon,{})]}),u6={tiny:g1,"extra-small":g1,small:J3,medium:eM,large:m1,"extra-large":m1},d6={tiny:f1,"extra-small":f1,small:Y3,medium:Z3,large:p1,"extra-large":p1},f6={tiny:d1,"extra-small":d1,small:X3,medium:Q3,large:h1,"extra-large":h1},h6={tiny:v1,"extra-small":v1,small:tM,medium:rM,large:b1,"extra-large":b1},p6={tiny:y1,"extra-small":y1,small:oM,medium:nM,large:w1,"extra-large":w1},g6={tiny:k1,"extra-small":k1,small:iM,medium:sM,large:S1,"extra-large":S1},m6={tiny:_1,"extra-small":_1,small:aM,medium:cM,large:C1,"extra-large":C1},Qh={tiny:E1,"extra-small":E1,small:dM,medium:fM,large:I1,"extra-large":I1},v6={tiny:T1,"extra-small":T1,small:lM,medium:uM,large:x1,"extra-large":x1},H1={tiny:A1,"extra-small":A1,small:hM,medium:pM,large:R1,"extra-large":R1},b6=(t,e,r)=>{switch(t){case"available":return e?d6[r]:f6[r];case"away":return e?Qh[r]:u6[r];case"blocked":return h6[r];case"busy":return e?H1[r]:p6[r];case"do-not-disturb":return e?m6[r]:g6[r];case"offline":return e?Qh[r]:v6[r];case"out-of-office":return Qh[r];case"unknown":return H1[r]}},U1={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},y6=(t,e)=>{const{size:r="medium",status:o="available",outOfOffice:n=!1}=t,i=U1[o],a=t.outOfOffice&&t.status!=="out-of-office"?` ${U1["out-of-office"]}`:"",s=b6(o,n,r);return{...c6({"aria-label":i+a,role:"img",...t,size:r,icon:ve(t.icon,{defaultProps:{children:s?w.createElement(s,null):null},renderByDefault:!0,elementType:"span"})},e),status:o,outOfOffice:n}},$1={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},w6=t=>t==="busy"||t==="do-not-disturb"||t==="blocked",k6=de("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),_6=de("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),S6=H({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),C6=t=>{const e=k6(),r=_6(),o=S6(),n=w6(t.status);return t.root.className=j($1.root,e,n&&o.statusBusy,t.status==="away"&&o.statusAway,t.status==="available"&&o.statusAvailable,t.status==="offline"&&o.statusOffline,t.status==="out-of-office"&&o.statusOutOfOffice,t.status==="unknown"&&o.statusUnknown,t.outOfOffice&&o.outOfOffice,t.outOfOffice&&t.status==="available"&&o.outOfOfficeAvailable,t.outOfOffice&&n&&o.outOfOfficeBusy,t.outOfOffice&&(t.status==="out-of-office"||t.status==="away"||t.status==="offline")&&o.statusOutOfOffice,t.outOfOffice&&t.status==="unknown"&&o.outOfOfficeUnknown,t.size==="tiny"&&o.tiny,t.size==="large"&&o.large,t.size==="extra-large"&&o.extraLarge,t.root.className),t.icon&&(t.icon.className=j($1.icon,r,t.icon.className)),t},Pg=w.forwardRef((t,e)=>{const r=y6(t,e);return C6(r),ge("usePresenceBadgeStyles_unstable")(r),l6(r)});Pg.displayName="PresenceBadge";const UT=w.createContext(void 0),T6={};UT.Provider;const x6=()=>{var t;return(t=w.useContext(UT))!==null&&t!==void 0?t:T6},E6={active:"active",inactive:"inactive"},I6=(t,e)=>{const{dir:r}=je(),{shape:o,size:n}=x6(),{name:i,size:a=n??32,shape:s=o??"circular",active:c="unset",activeAppearance:l="ring",idForColor:u}=t;let{color:d="neutral"}=t;if(d==="colorful"){var f;d=K1[R6((f=u??i)!==null&&f!==void 0?f:"")%K1.length]}const h=gr("avatar-"),p=ae(we("span",{role:"img",id:h,...t,ref:e},["name"]),{elementType:"span"}),[g,y]=w.useState(void 0);let v=ve(t.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:g},elementType:"img"});v?.src||(v=void 0),v&&(v.onError=ke(v.onError,()=>y(!0)),v.onLoad=ke(v.onLoad,()=>y(void 0)));let m=ve(t.initials,{renderByDefault:!0,defaultProps:{children:s6(i,r==="rtl",{firstInitialOnly:a<=16}),id:h+"__initials"},elementType:"span"});m?.children||(m=void 0);let b;!m&&(!v||g)&&(b=ve(t.icon,{renderByDefault:!0,defaultProps:{children:w.createElement(F3,null),"aria-hidden":!0},elementType:"span"}));const k=ve(t.badge,{defaultProps:{size:A6(a),id:h+"__badge"},elementType:Pg});let S;if(!p["aria-label"]&&!p["aria-labelledby"]&&(i?(p["aria-label"]=i,k&&(p["aria-labelledby"]=p.id+" "+k.id)):m&&(p["aria-labelledby"]=m.id+(k?" "+k.id:"")),c==="active"||c==="inactive")){const C=E6[c];if(p["aria-labelledby"]){const _=h+"__active";p["aria-labelledby"]+=" "+_,S=w.createElement("span",{hidden:!0,id:_},C)}else p["aria-label"]&&(p["aria-label"]+=" "+C)}return{size:a,shape:s,active:c,activeAppearance:l,activeAriaLabelElement:S,color:d,components:{root:"span",initials:"span",icon:"span",image:"img",badge:Pg},root:p,initials:m,icon:b,image:v,badge:k}},A6=t=>t>=96?"extra-large":t>=64?"large":t>=56?"medium":t>=40?"small":t>=28?"extra-small":"tiny",K1=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],R6=t=>{let e=0;for(let r=t.length-1;r>=0;r--){const o=t.charCodeAt(r),n=r%8;e^=(o<>8-n)}return e},Ls={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},P6=de("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),B6=de("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),N6=de("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}"]),z6=H({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},squareMedium:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},squareLarge:{Bbmb7ep:["f1ldthgs","frrelxk"],Beyfa6y:["frrelxk","f1ldthgs"],B7oj6ja:["fobrfso","ffisxpw"],Btl43ni:["ffisxpw","fobrfso"]},squareXLarge:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"]},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bucmhp4:"f1f5ar78",b2tv09:["fqxtap0","fhjukvy"],Bfgortx:"f1qj1nzo",Bnvr3x9:["fhjukvy","fqxtap0"],b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}",".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}",".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}",".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}",".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",".fqxtap0::before,.fqxtap0::after{margin-right:0;}",".fhjukvy::before,.fhjukvy::after{margin-left:0;}",".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),M6=H({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),O6=H({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),D6=H({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),j6=t=>{const{size:e,shape:r,active:o,activeAppearance:n,color:i}=t,a=P6(),s=B6(),c=N6(),l=z6(),u=M6(),d=O6(),f=D6(),h=[a,e!==32&&u[e]];if(t.badge&&h.push(l.badgeAlign,l[t.badge.size||"medium"]),e<=24?h.push(l.textCaption2Strong):e<=28?h.push(l.textCaption1Strong):e<=40||(e<=56?h.push(l.textSubtitle2):e<=96?h.push(l.textSubtitle1):h.push(l.textTitle3)),r==="square"&&(e<=24?h.push(l.squareSmall):e<=48?h.push(l.squareMedium):e<=72?h.push(l.squareLarge):h.push(l.squareXLarge)),(o==="active"||o==="inactive")&&(h.push(l.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(h.push(l.ring,f[i]),t.badge&&h.push(l.ringBadgeCutout),e<=48?h.push(l.ringThick):e<=64?h.push(l.ringThicker):h.push(l.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(h.push(l.shadow),e<=28?h.push(l.shadow4):e<=48?h.push(l.shadow8):e<=64?h.push(l.shadow16):h.push(l.shadow28)),o==="inactive"&&h.push(l.inactive)),t.root.className=j(Ls.root,...h,t.root.className),t.badge&&(t.badge.className=j(Ls.badge,l.badge,t.badge.className)),t.image&&(t.image.className=j(Ls.image,s,d[i],t.badge&&l.badgeCutout,t.image.className)),t.initials&&(t.initials.className=j(Ls.initials,c,d[i],t.badge&&l.badgeCutout,t.initials.className)),t.icon){let p;e<=16?p=l.icon12:e<=24?p=l.icon16:e<=40?p=l.icon20:e<=48?p=l.icon24:e<=56?p=l.icon28:e<=72?p=l.icon32:p=l.icon48,t.icon.className=j(Ls.icon,c,p,d[i],t.badge&&l.badgeCutout,t.icon.className)}return t},$T=w.forwardRef((t,e)=>{const r=I6(t,e);return j6(r),ge("useAvatarStyles_unstable")(r),JO(r)});$T.displayName="Avatar";function F6(t){const e=t.clientX,r=t.clientY,o=e+1,n=r+1;function i(){return{left:e,top:r,right:o,bottom:n,x:e,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const W1="data-popper-is-intersecting",V1="data-popper-escaped",G1="data-popper-reference-hidden",L6="data-popper-placement",q6=["top","right","bottom","left"],$i=Math.min,Mr=Math.max,Fd=Math.round,Zn=t=>({x:t,y:t}),H6={left:"right",right:"left",bottom:"top",top:"bottom"},U6={start:"end",end:"start"};function Bg(t,e,r){return Mr(t,$i(e,r))}function sn(t,e){return typeof t=="function"?t(e):t}function cn(t){return t.split("-")[0]}function Ps(t){return t.split("-")[1]}function Sb(t){return t==="x"?"y":"x"}function Cb(t){return t==="y"?"height":"width"}function Bs(t){return["top","bottom"].includes(cn(t))?"y":"x"}function Tb(t){return Sb(Bs(t))}function $6(t,e,r){r===void 0&&(r=!1);const o=Ps(t),n=Tb(t),i=Cb(n);let a=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Ld(a)),[a,Ld(a)]}function K6(t){const e=Ld(t);return[Ng(t),e,Ng(e)]}function Ng(t){return t.replace(/start|end/g,e=>U6[e])}function W6(t,e,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:o:e?o:n;case"left":case"right":return e?i:a;default:return[]}}function V6(t,e,r,o){const n=Ps(t);let i=W6(cn(t),r==="start",o);return n&&(i=i.map(a=>a+"-"+n),e&&(i=i.concat(i.map(Ng)))),i}function Ld(t){return t.replace(/left|right|bottom|top/g,e=>H6[e])}function G6(t){return{top:0,right:0,bottom:0,left:0,...t}}function KT(t){return typeof t!="number"?G6(t):{top:t,right:t,bottom:t,left:t}}function qd(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function X1(t,e,r){let{reference:o,floating:n}=t;const i=Bs(e),a=Tb(e),s=Cb(a),c=cn(e),l=i==="y",u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2;let h;switch(c){case"top":h={x:u,y:o.y-n.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-n.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Ps(e)){case"start":h[a]-=f*(r&&l?-1:1);break;case"end":h[a]+=f*(r&&l?-1:1);break}return h}const X6=async(t,e,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=X1(l,o,c),f=o,h={},p=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:c}=e,{element:l,padding:u=0}=sn(t,e)||{};if(l==null)return{};const d=KT(u),f={x:r,y:o},h=Tb(n),p=Cb(h),g=await a.getDimensions(l),y=h==="y",v=y?"top":"left",m=y?"bottom":"right",b=y?"clientHeight":"clientWidth",k=i.reference[p]+i.reference[h]-f[h]-i.floating[p],S=f[h]-i.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=C?C[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(C)))&&(_=s.floating[b]||i.floating[p]);const T=k/2-S/2,A=_/2-g[p]/2-1,R=$i(d[v],A),V=$i(d[m],A),E=R,U=_-g[p]-V,D=_/2-g[p]/2+T,B=Bg(E,D,U),M=!c.arrow&&Ps(n)!=null&&D!=B&&i.reference[p]/2-(DE<=0)){var A,R;const E=(((A=i.flip)==null?void 0:A.index)||0)+1,U=S[E];if(U)return{data:{index:E,overflows:T},reset:{placement:U}};let D=(R=T.filter(B=>B.overflows[0]<=0).sort((B,M)=>B.overflows[1]-M.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(h){case"bestFit":{var V;const B=(V=T.map(M=>[M.placement,M.overflows.filter(K=>K>0).reduce((K,I)=>K+I,0)]).sort((M,K)=>M[1]-K[1])[0])==null?void 0:V[0];B&&(D=B);break}case"initialPlacement":D=s;break}if(n!==D)return{reset:{placement:D}}}return{}}}};function Y1(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Q1(t){return q6.some(e=>t[e]>=0)}const Z1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:o="referenceHidden",...n}=sn(t,e);switch(o){case"referenceHidden":{const i=await ds(e,{...n,elementContext:"reference"}),a=Y1(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Q1(a)}}}case"escaped":{const i=await ds(e,{...n,altBoundary:!0}),a=Y1(i,r.floating);return{data:{escapedOffsets:a,escaped:Q1(a)}}}default:return{}}}}};async function Z6(t,e){const{placement:r,platform:o,elements:n}=t,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),a=cn(r),s=Ps(r),c=Bs(r)==="y",l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=sn(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const J6=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:n,y:i,placement:a,middlewareData:s}=e,c=await Z6(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:a}}}}},eD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:v,y:m}=y;return{x:v,y:m}}},...c}=sn(t,e),l={x:r,y:o},u=await ds(e,c),d=Bs(cn(n)),f=Sb(d);let h=l[f],p=l[d];if(i){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",m=h+u[y],b=h-u[v];h=Bg(m,h,b)}if(a){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+u[y],b=p-u[v];p=Bg(m,p,b)}const g=s.fn({...e,[f]:h,[d]:p});return{...g,data:{x:g.x-r,y:g.y-o}}}}},tD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:o,placement:n,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=sn(t,e),u={x:r,y:o},d=Bs(n),f=Sb(d);let h=u[f],p=u[d];const g=sn(s,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+y.mainAxis,S=i.reference[f]+i.reference[b]-y.mainAxis;hS&&(h=S)}if(l){var v,m;const b=f==="y"?"width":"height",k=["top","left"].includes(cn(n)),S=i.reference[d]-i.floating[b]+(k&&((v=a.offset)==null?void 0:v[d])||0)+(k?0:y.crossAxis),C=i.reference[d]+i.reference[b]+(k?0:((m=a.offset)==null?void 0:m[d])||0)-(k?y.crossAxis:0);pC&&(p=C)}return{[f]:h,[d]:p}}}},rD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:n,elements:i}=e,{apply:a=()=>{},...s}=sn(t,e),c=await ds(e,s),l=cn(r),u=Ps(r),d=Bs(r)==="y",{width:f,height:h}=o.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,p=u==="end"?"top":"bottom");const y=h-c[p],v=f-c[g],m=!e.middlewareData.shift;let b=y,k=v;if(d){const C=f-c.left-c.right;k=u||m?$i(v,C):C}else{const C=h-c.top-c.bottom;b=u||m?$i(y,C):C}if(m&&!u){const C=Mr(c.left,0),_=Mr(c.right,0),T=Mr(c.top,0),A=Mr(c.bottom,0);d?k=f-2*(C!==0||_!==0?C+_:Mr(c.left,c.right)):b=h-2*(T!==0||A!==0?T+A:Mr(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:b});const S=await n.getDimensions(i.floating);return f!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}};function Jn(t){return WT(t)?(t.nodeName||"").toLowerCase():"#document"}function xr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ii(t){var e;return(e=(WT(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function WT(t){return t instanceof Node||t instanceof xr(t).Node}function ln(t){return t instanceof Element||t instanceof xr(t).Element}function Mo(t){return t instanceof HTMLElement||t instanceof xr(t).HTMLElement}function J1(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xr(t).ShadowRoot}function Ll(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=Ur(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function oD(t){return["table","td","th"].includes(Jn(t))}function xb(t){const e=Eb(),r=Ur(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function nD(t){let e=fs(t);for(;Mo(e)&&!Zf(e);){if(xb(e))return e;e=fs(e)}return null}function Eb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zf(t){return["html","body","#document"].includes(Jn(t))}function Ur(t){return xr(t).getComputedStyle(t)}function Jf(t){return ln(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fs(t){if(Jn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||J1(t)&&t.host||ii(t);return J1(e)?e.host:e}function VT(t){const e=fs(t);return Zf(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mo(e)&&Ll(e)?e:VT(e)}function zg(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=VT(t),i=n===((o=t.ownerDocument)==null?void 0:o.body),a=xr(n);return i?e.concat(a,a.visualViewport||[],Ll(n)?n:[],a.frameElement&&r?zg(a.frameElement):[]):e.concat(n,zg(n,[],r))}function GT(t){const e=Ur(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=Mo(t),i=n?t.offsetWidth:r,a=n?t.offsetHeight:o,s=Fd(r)!==i||Fd(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function XT(t){return ln(t)?t:t.contextElement}function Ha(t){const e=XT(t);if(!Mo(e))return Zn(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:i}=GT(e);let a=(i?Fd(r.width):r.width)/o,s=(i?Fd(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const iD=Zn(0);function YT(t){const e=xr(t);return!Eb()||!e.visualViewport?iD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function aD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==xr(t)?!1:e}function Vc(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=XT(t);let a=Zn(1);e&&(o?ln(o)&&(a=Ha(o)):a=Ha(t));const s=aD(i,r,o)?YT(i):Zn(0);let c=(n.left+s.x)/a.x,l=(n.top+s.y)/a.y,u=n.width/a.x,d=n.height/a.y;if(i){const f=xr(i),h=o&&ln(o)?xr(o):o;let p=f.frameElement;for(;p&&o&&h!==f;){const g=Ha(p),y=p.getBoundingClientRect(),v=Ur(p),m=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*g.x,b=y.top+(p.clientTop+parseFloat(v.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,d*=g.y,c+=m,l+=b,p=xr(p).frameElement}}return qd({width:u,height:d,x:c,y:l})}function sD(t){let{rect:e,offsetParent:r,strategy:o}=t;const n=Mo(r),i=ii(r);if(r===i)return e;let a={scrollLeft:0,scrollTop:0},s=Zn(1);const c=Zn(0);if((n||!n&&o!=="fixed")&&((Jn(r)!=="body"||Ll(i))&&(a=Jf(r)),Mo(r))){const l=Vc(r);s=Ha(r),c.x=l.x+r.clientLeft,c.y=l.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}}function cD(t){return Array.from(t.getClientRects())}function QT(t){return Vc(ii(t)).left+Jf(t).scrollLeft}function lD(t){const e=ii(t),r=Jf(t),o=t.ownerDocument.body,n=Mr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Mr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+QT(t);const s=-r.scrollTop;return Ur(o).direction==="rtl"&&(a+=Mr(e.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}function uD(t,e){const r=xr(t),o=ii(t),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(n){i=n.width,a=n.height;const l=Eb();(!l||l&&e==="fixed")&&(s=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:s,y:c}}function dD(t,e){const r=Vc(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,i=Mo(t)?Ha(t):Zn(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,c=n*i.x,l=o*i.y;return{width:a,height:s,x:c,y:l}}function ew(t,e,r){let o;if(e==="viewport")o=uD(t,r);else if(e==="document")o=lD(ii(t));else if(ln(e))o=dD(e,r);else{const n=YT(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return qd(o)}function ZT(t,e){const r=fs(t);return r===e||!ln(r)||Zf(r)?!1:Ur(r).position==="fixed"||ZT(r,e)}function fD(t,e){const r=e.get(t);if(r)return r;let o=zg(t,[],!1).filter(s=>ln(s)&&Jn(s)!=="body"),n=null;const i=Ur(t).position==="fixed";let a=i?fs(t):t;for(;ln(a)&&!Zf(a);){const s=Ur(a),c=xb(a);!c&&s.position==="fixed"&&(n=null),(i?!c&&!n:!c&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ll(a)&&!c&&ZT(t,a))?o=o.filter(u=>u!==a):n=s,a=fs(a)}return e.set(t,o),o}function hD(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t;const a=[...r==="clippingAncestors"?fD(e,this._c):[].concat(r),o],s=a[0],c=a.reduce((l,u)=>{const d=ew(e,u,n);return l.top=Mr(d.top,l.top),l.right=$i(d.right,l.right),l.bottom=$i(d.bottom,l.bottom),l.left=Mr(d.left,l.left),l},ew(e,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function pD(t){return GT(t)}function gD(t,e,r){const o=Mo(e),n=ii(e),i=r==="fixed",a=Vc(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const c=Zn(0);if(o||!o&&!i)if((Jn(e)!=="body"||Ll(n))&&(s=Jf(e)),o){const l=Vc(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else n&&(c.x=QT(n));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function tw(t,e){return!Mo(t)||Ur(t).position==="fixed"?null:e?e(t):t.offsetParent}function JT(t,e){const r=xr(t);if(!Mo(t))return r;let o=tw(t,e);for(;o&&oD(o)&&Ur(o).position==="static";)o=tw(o,e);return o&&(Jn(o)==="html"||Jn(o)==="body"&&Ur(o).position==="static"&&!xb(o))?r:o||nD(t)||r}const mD=async function(t){let{reference:e,floating:r,strategy:o}=t;const n=this.getOffsetParent||JT,i=this.getDimensions;return{reference:gD(e,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function vD(t){return Ur(t).direction==="rtl"}const bD={convertOffsetParentRelativeRectToViewportRelativeRect:sD,getDocumentElement:ii,getClippingRect:hD,getOffsetParent:JT,getElementRects:mD,getClientRects:cD,getDimensions:pD,getScale:Ha,isElement:ln,isRTL:vD},yD=(t,e,r)=>{const o=new Map,n={platform:bD,...r},i={...n.platform,_c:o};return X6(t,e,{...n,platform:i})};function ex(t){const e=t.split("-");return{side:e[0],alignment:e[1]}}const wD=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,kD=t=>{var e;return t.nodeType!==1?{}:((e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView).getComputedStyle(t,null)},eh=t=>{const e=t&&wD(t);if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:r,overflowX:o,overflowY:n}=kD(e);return/(auto|scroll|overlay)/.test(r+n+o)?e:eh(e)},_D=t=>{var e;const r=eh(t);return r?r!==((e=r.ownerDocument)===null||e===void 0?void 0:e.body):!1};function Ib(t,e){if(e==="window")return t?.ownerDocument.documentElement;if(e==="clippingParents")return"clippingAncestors";if(e==="scrollParent"){let r=eh(t);return r.nodeName==="BODY"&&(r=t?.ownerDocument.documentElement),r}return e}function tx(t,e){return typeof t=="number"||typeof t=="object"&&t!==null?Zh(t,e):typeof t=="function"?r=>{const o=t(r);return Zh(o,e)}:{mainAxis:e}}const Zh=(t,e)=>{if(typeof t=="number")return{mainAxis:t+e};var r;return{...t,mainAxis:((r=t.mainAxis)!==null&&r!==void 0?r:0)+e}};function SD(t,e){if(typeof t=="number")return t;const{start:r,end:o,...n}=t,i=n,a=e?"end":"start",s=e?"start":"end";return t[a]&&(i.left=t[a]),t[s]&&(i.right=t[s]),i}const CD=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),TD=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),xD=(t,e)=>{const r=t==="above"||t==="below",o=e==="top"||e==="bottom";return r&&o||!r&&!o},rx=(t,e,r)=>{const o=xD(e,t)?"center":t,n=e&&CD(r)[e],i=o&&TD()[o];return n&&i?`${n}-${i}`:n},ED=()=>({top:"above",bottom:"below",right:"after",left:"before"}),ID=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},AD=t=>{const{side:e,alignment:r}=ex(t),o=ED()[e],n=r&&ID(o)[r];return{position:o,alignment:n}},RD={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function th(t){return t==null?{}:typeof t=="string"?RD[t]:t}function Jh(t,e,r){const o=w.useRef(!0),[n]=w.useState(()=>({value:t,callback:e,facade:{get current(){return n.value},set current(i){const a=n.value;if(a!==i){if(n.value=i,r&&o.current)return;n.callback(i,a)}}}}));return er(()=>{o.current=!1},[]),n.callback=e,n.facade}function PD(t){let e;return()=>(e||(e=new Promise(r=>{Promise.resolve().then(()=>{e=void 0,r(t())})})),e)}function BD(t){const{arrow:e,middlewareData:r}=t;if(!r.arrow||!e)return;const{x:o,y:n}=r.arrow;Object.assign(e.style,{left:`${o}px`,top:`${n}px`})}function ND(t){var e,r,o;const{container:n,placement:i,middlewareData:a,strategy:s,lowPPI:c,coordinates:l,useTransform:u=!0}=t;if(!n)return;n.setAttribute(L6,i),n.removeAttribute(W1),a.intersectionObserver.intersecting&&n.setAttribute(W1,""),n.removeAttribute(V1),!((e=a.hide)===null||e===void 0)&&e.escaped&&n.setAttribute(V1,""),n.removeAttribute(G1),!((r=a.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(G1,"");const d=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,f=Math.round(l.x*d)/d,h=Math.round(l.y*d)/d;if(Object.assign(n.style,{position:s}),u){Object.assign(n.style,{transform:c?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`});return}Object.assign(n.style,{left:`${f}px`,top:`${h}px`})}const zD=t=>{switch(t){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function MD(){return{name:"coverTarget",fn:t=>{const{placement:e,rects:r,x:o,y:n}=t,i=ex(e).side,a={x:o,y:n};switch(i){case"bottom":a.y-=r.reference.height;break;case"top":a.y+=r.reference.height;break;case"left":a.x+=r.reference.width;break;case"right":a.x-=r.reference.width;break}return a}}}function OD(t){const{hasScrollableElement:e,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=t,a=n.reduce((s,c)=>{const{position:l,align:u}=th(c),d=rx(u,l,i);return d&&s.push(d),s},[]);return Q6({...e&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Ib(o,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}function DD(){return{name:"intersectionObserver",fn:async t=>{const e=t.rects.floating,r=await ds(t,{altBoundary:!0}),o=r.top0,n=r.bottom0;return{data:{intersecting:o||n}}}}}const jD=t=>({name:"resetMaxSize",fn({middlewareData:e,elements:r}){var o;if(!((o=e.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=t;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function FD(t,e){const{container:r,overflowBoundary:o}=e;return rD({...o&&{altBoundary:!0,boundary:Ib(r,o)},apply({availableHeight:n,availableWidth:i,elements:a,rects:s}){const c=(d,f,h)=>{if(d&&(a.floating.style.setProperty("box-sizing","border-box"),a.floating.style.setProperty(`max-${f}`,`${h}px`),s.floating[f]>h)){a.floating.style.setProperty(f,`${h}px`);const p=f==="width"?"x":"y";a.floating.style.getPropertyValue(`overflow-${p}`)||a.floating.style.setProperty(`overflow-${p}`,"auto")}},{applyMaxWidth:l,applyMaxHeight:u}=t;c(l,"width",i),c(u,"height",n)}})}function LD(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:e,reference:r},placement:o})=>{const{position:n,alignment:i}=AD(o);return t({positionedRect:e,targetRect:r,position:n,alignment:i})}}function qD(t){const e=LD(t);return J6(e)}function HD(t){const{hasScrollableElement:e,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:a}=t;return eD({...e&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:tD({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:SD(i,a)},...o&&{altBoundary:!0,boundary:Ib(n,o)}})}const rw="--fui-match-target-size";function UD(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:e,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=t;if(e.width===r.width||n)return{};const{width:i}=e;return o.style.setProperty(rw,`${i}px`),o.style.width||(o.style.width=`var(${rw})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function ow(t){const e=[];let r=t;for(;r;){const o=eh(r);if(t.ownerDocument.body===o){e.push(o);break}e.push(o),r=o}return e}function $D(t){const{container:e,target:r,arrow:o,strategy:n,middleware:i,placement:a,useTransform:s=!0}=t;let c=!1;if(!r||!e)return{updatePosition:()=>{},dispose:()=>{}};let l=!0;const u=new Set,d=e.ownerDocument.defaultView;Object.assign(e.style,{position:"fixed",left:0,top:0,margin:0});const f=()=>{c||(l&&(ow(e).forEach(g=>u.add(g)),at(r)&&ow(r).forEach(g=>u.add(g)),u.forEach(g=>{g.addEventListener("scroll",h,{passive:!0})}),l=!1),Object.assign(e.style,{position:n}),yD(r,e,{placement:a,middleware:i,strategy:n}).then(({x:g,y,middlewareData:v,placement:m})=>{c||(BD({arrow:o,middlewareData:v}),ND({container:e,middlewareData:v,placement:m,coordinates:{x:g,y},lowPPI:(d?.devicePixelRatio||1)<=1,strategy:n,useTransform:s}))}).catch(g=>{}))},h=PD(()=>f()),p=()=>{c=!0,d&&(d.removeEventListener("scroll",h),d.removeEventListener("resize",h)),u.forEach(g=>{g.removeEventListener("scroll",h)}),u.clear()};return d&&(d.addEventListener("scroll",h,{passive:!0}),d.addEventListener("resize",h)),h(),{updatePosition:h,dispose:p}}function Ab(t){const e=w.useRef(null),r=w.useRef(null),o=w.useRef(null),n=w.useRef(null),i=w.useRef(null),{enabled:a=!0}=t,s=KD(t),c=w.useCallback(()=>{e.current&&e.current.dispose(),e.current=null;var h;const p=(h=o.current)!==null&&h!==void 0?h:r.current;a&&ra()&&p&&n.current&&(e.current=$D({container:n.current,target:p,arrow:i.current,...s(n.current,i.current)}))},[a,s]),l=ee(h=>{o.current=h,c()});w.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var h;return(h=e.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{t.target,l(h)}}),[t.target,l]),er(()=>{var h;l((h=t.target)!==null&&h!==void 0?h:null)},[t.target,l]),er(()=>{c()},[c]);const u=Jh(null,h=>{r.current!==h&&(r.current=h,c())}),d=Jh(null,h=>{n.current!==h&&(n.current=h,c())}),f=Jh(null,h=>{i.current!==h&&(i.current=h,c())});return{targetRef:u,containerRef:d,arrowRef:f}}function KD(t){const{align:e,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:a,overflowBoundary:s,pinned:c,position:l,unstable_disableTether:u,positionFixed:d,strategy:f,overflowBoundaryPadding:h,fallbackPositions:p,useTransform:g,matchTargetSize:y}=t,{dir:v,targetDocument:m}=je(),b=v==="rtl",k=f??d?"fixed":"absolute",S=zD(o);return w.useCallback((C,_)=>{const T=_D(C),A=[S&&jD(S),y&&UD(),a&&qD(a),n&&MD(),!c&&OD({container:C,flipBoundary:i,hasScrollableElement:T,isRtl:b,fallbackPositions:p}),HD({container:C,hasScrollableElement:T,overflowBoundary:s,disableTether:u,overflowBoundaryPadding:h,isRtl:b}),S&&FD(S,{container:C,overflowBoundary:s}),DD(),_&&Y6({element:_,padding:r}),Z1({strategy:"referenceHidden"}),Z1({strategy:"escaped"}),!1].filter(Boolean);return{placement:rx(e,l,b),middleware:A,strategy:k,useTransform:g}},[e,r,S,n,u,i,b,a,s,c,l,k,h,p,g,y,m])}const ox=t=>{const[e,r]=w.useState(t);return[e,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,i instanceof MouseEvent;const a=F6(i);r(a)}]},Rb=As(void 0),WD={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Rb.Provider;const Mt=t=>Rs(Rb,(e=WD)=>t(e)),VD=(t,e)=>{const r=Mt(m=>m.contentRef),o=Mt(m=>m.openOnHover),n=Mt(m=>m.setOpen),i=Mt(m=>m.mountNode),a=Mt(m=>m.arrowRef),s=Mt(m=>m.size),c=Mt(m=>m.withArrow),l=Mt(m=>m.appearance),u=Mt(m=>m.trapFocus),d=Mt(m=>m.inertTrapFocus),f=Mt(m=>m.inline),{modalAttributes:h}=Vf({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),p={inline:f,appearance:l,withArrow:c,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:ae(we("div",{ref:bt(e,r),role:u?"dialog":"group","aria-modal":u?!0:void 0,...h,...t}),{elementType:"div"})},{onMouseEnter:g,onMouseLeave:y,onKeyDown:v}=p.root;return p.root.onMouseEnter=m=>{o&&n(m,!0),g?.(m)},p.root.onMouseLeave=m=>{o&&n(m,!1),y?.(m)},p.root.onKeyDown=m=>{var b;m.key==="Escape"&&(!((b=r.current)===null||b===void 0)&&b.contains(m.target))&&(m.preventDefault(),n(m,!1)),v?.(m)},p};function GD(t){return at(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}var nx=()=>w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,XD=()=>!1,nw=new WeakSet;function YD(t,e){const r=nx();w.useEffect(()=>{if(!nw.has(r)){nw.add(r),t();return}return t()},e)}var iw=new WeakSet;function QD(t,e){return w.useMemo(()=>{const r=nx();return iw.has(r)?t():(iw.add(r),null)},e)}function ZD(t,e){var r;const o=XD()&&!1,n=o?QD:w.useMemo,i=o?YD:w.useEffect,[a,s]=(r=n(()=>t(),e))!=null?r:[null,()=>null];return i(()=>s,e),a}const JD=H({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),aw=Sd.useInsertionEffect,ej=t=>{const{targetDocument:e,dir:r}=je(),o=s3(),n=yb(),i=JD(),a=Qz(),s=j(a,i.root,t.className),c=o??e?.body,l=ZD(()=>{if(c===void 0||t.disabled)return[null,()=>null];const u=c.ownerDocument.createElement("div");return c.appendChild(u),[u,()=>u.remove()]},[c]);return aw?aw(()=>{if(!l)return;const u=s.split(" ").filter(Boolean);return l.classList.add(...u),l.setAttribute("dir",r),n.current=l,()=>{l.classList.remove(...u),l.removeAttribute("dir")}},[s,r,l,n]):w.useMemo(()=>{l&&(l.className=s,l.setAttribute("dir",r),n.current=l)},[s,r,l,n]),l},tj=t=>{const{element:e,className:r}=GD(t.mountNode),o=w.useRef(null),n=ej({disabled:!!e,className:r}),i=e??n,a={children:t.children,mountNode:i,virtualParentRootRef:o};return w.useEffect(()=>{if(!i)return;const s=o.current,c=i.contains(s);if(s&&!c)return u1(i,s),()=>{u1(i,void 0)}},[o,i]),a};var ix={exports:{}},Pr={},ax={exports:{}},sx={};/** + */(function(t){var e,r,o,n;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,l=null,u=function(){if(c!==null)try{var N=t.unstable_now();c(!0,N),c=null}catch(O){throw setTimeout(u,0),O}};e=function(N){c!==null?setTimeout(e,0,N):(c=N,setTimeout(u,0))},r=function(N,O){l=setTimeout(N,O)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},n=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,y=-1,v=5,m=0;t.unstable_shouldYield=function(){return t.unstable_now()>=m},n=function(){},t.unstable_forceFrameRate=function(N){0>N||125>>1,fe=N[Q];if(fe!==void 0&&0T(se,G))tt!==void 0&&0>T(tt,se)?(N[Q]=tt,N[ye]=G,Q=ye):(N[Q]=se,N[Ae]=G,Q=Ae);else if(tt!==void 0&&0>T(tt,G))N[Q]=tt,N[ye]=G,Q=ye;else break e}}return O}return null}function T(N,O){var G=N.sortIndex-O.sortIndex;return G!==0?G:N.id-O.id}var A=[],R=[],V=1,E=null,U=3,D=!1,B=!1,M=!1;function K(N){for(var O=C(R);O!==null;){if(O.callback===null)_(R);else if(O.startTime<=N)_(R),O.sortIndex=O.expirationTime,S(A,O);else break;O=C(R)}}function I(N){if(M=!1,K(N),!B)if(C(A)!==null)B=!0,e(F);else{var O=C(R);O!==null&&r(I,O.startTime-N)}}function F(N,O){B=!1,M&&(M=!1,o()),D=!0;var G=U;try{for(K(O),E=C(A);E!==null&&(!(E.expirationTime>O)||N&&!t.unstable_shouldYield());){var Q=E.callback;if(typeof Q=="function"){E.callback=null,U=E.priorityLevel;var fe=Q(E.expirationTime<=O);O=t.unstable_now(),typeof fe=="function"?E.callback=fe:E===C(A)&&_(A),K(O)}else _(A);E=C(A)}if(E!==null)var Ae=!0;else{var se=C(R);se!==null&&r(I,se.startTime-O),Ae=!1}return Ae}finally{E=null,U=G,D=!1}}var $=n;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_continueExecution=function(){B||D||(B=!0,e(F))},t.unstable_getCurrentPriorityLevel=function(){return U},t.unstable_getFirstCallbackNode=function(){return C(A)},t.unstable_next=function(N){switch(U){case 1:case 2:case 3:var O=3;break;default:O=U}var G=U;U=O;try{return N()}finally{U=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(N,O){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var G=U;U=N;try{return O()}finally{U=G}},t.unstable_scheduleCallback=function(N,O,G){var Q=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0Q?(N.sortIndex=G,S(R,N),C(A)===null&&N===C(R)&&(M?o():M=!0,r(I,G-Q))):(N.sortIndex=fe,S(A,N),B||D||(B=!0,e(F))),N},t.unstable_wrapCallback=function(N){var O=U;return function(){var G=U;U=O;try{return N.apply(this,arguments)}finally{U=G}}}})(LT);FT.exports=LT;var q1=FT.exports;const VO=t=>r=>{const o=w.useRef(r.value),n=w.useRef(0),i=w.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),er(()=>{o.current=r.value,n.current+=1,q1.unstable_runWithPriority(q1.unstable_NormalPriority,()=>{i.current.listeners.forEach(a=>{a([n.current,r.value])})})},[r.value]),w.createElement(t,{value:i.current},r.children)},As=t=>{const e=w.createContext({value:{current:t},version:{current:-1},listeners:[]});return e.Provider=VO(e.Provider),delete e.Consumer,e},Rs=(t,e)=>{const r=w.useContext(t),{value:{current:o},version:{current:n},listeners:i}=r,a=e(o),[s,c]=w.useReducer((l,u)=>{if(!u)return[o,a];if(u[0]<=n)return iu(l[1],a)?l:[o,a];try{if(iu(l[0],u[1]))return l;const d=e(u[1]);return iu(l[1],d)?l:[u[1],d]}catch{}return[l[0],l[1]]},[o,a]);return iu(s[1],a)||c(void 0),er(()=>(i.push(c),()=>{const l=i.indexOf(c);i.splice(l,1)}),[i]),s[1]};function GO(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const iu=typeof Object.is=="function"?Object.is:GO;function wb(t){const e=w.useContext(t);return e.version?e.version.current!==-1:!1}const XO=27,YO="Shift",Ai="Enter",Mn=" ",qT="Tab",Xf="ArrowDown",kb="ArrowLeft",Yf="ArrowRight",_b="ArrowUp",HT="End",UT="Home",QO="PageDown",ZO="PageUp",JO="Delete",yn="Escape";function Ui(t,e){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:a,onKeyUp:s,...c}=e??{},l=typeof n=="string"?n==="true":n,u=r||o||l,d=ee(p=>{u?(p.preventDefault(),p.stopPropagation()):i?.(p)}),f=ee(p=>{if(a?.(p),p.isDefaultPrevented())return;const g=p.key;if(u&&(g===Ai||g===Mn)){p.preventDefault(),p.stopPropagation();return}if(g===Mn){p.preventDefault();return}else g===Ai&&(p.preventDefault(),p.currentTarget.click())}),h=ee(p=>{if(s?.(p),p.isDefaultPrevented())return;const g=p.key;if(u&&(g===Ai||g===Mn)){p.preventDefault(),p.stopPropagation();return}g===Mn&&(p.preventDefault(),p.currentTarget.click())});if(t==="button"||t===void 0)return{...c,disabled:r&&!o,"aria-disabled":o?!0:l,onClick:o?void 0:d,onKeyUp:o?void 0:s,onKeyDown:o?void 0:a};{const p={role:"button",tabIndex:r&&!o?void 0:0,...c,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":r||o||l};return t==="a"&&u&&(p.href=void 0),p}}const e6=t=>Ee(t.root,{children:[t.initials&&q(t.initials,{}),t.icon&&q(t.icon,{}),t.image&&q(t.image,{}),t.badge&&q(t.badge,{}),t.activeAriaLabelElement]}),t6=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,r6=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,o6=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,n6=/\s+/g,i6=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function a6(t,e,r){let o="";const n=t.split(" ");return n.length!==0&&(o+=n[0].charAt(0).toUpperCase()),r||(n.length===2?o+=n[1].charAt(0).toUpperCase():n.length===3&&(o+=n[2].charAt(0).toUpperCase())),e&&o.length>1?o.charAt(1)+o.charAt(0):o}function s6(t){return t=t.replace(t6,""),t=t.replace(r6,""),t=t.replace(n6," "),t=t.trim(),t}function c6(t,e,r){return!t||(t=s6(t),i6.test(t)||!r?.allowPhoneInitials&&o6.test(t))?"":a6(t,e,r?.firstInitialOnly)}const l6=(t,e)=>{const{shape:r="circular",size:o="medium",iconPosition:n="before",appearance:i="filled",color:a="brand"}=t;return{shape:r,size:o,iconPosition:n,appearance:i,color:a,components:{root:"div",icon:"span"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),icon:ve(t.icon,{elementType:"span"})}},u6=t=>Ee(t.root,{children:[t.iconPosition==="before"&&t.icon&&q(t.icon,{}),t.root.children,t.iconPosition==="after"&&t.icon&&q(t.icon,{})]}),d6={tiny:g1,"extra-small":g1,small:eM,medium:tM,large:m1,"extra-large":m1},f6={tiny:f1,"extra-small":f1,small:Q3,medium:J3,large:p1,"extra-large":p1},h6={tiny:d1,"extra-small":d1,small:Y3,medium:Z3,large:h1,"extra-large":h1},p6={tiny:v1,"extra-small":v1,small:rM,medium:oM,large:b1,"extra-large":b1},g6={tiny:y1,"extra-small":y1,small:nM,medium:iM,large:w1,"extra-large":w1},m6={tiny:k1,"extra-small":k1,small:aM,medium:cM,large:S1,"extra-large":S1},v6={tiny:_1,"extra-small":_1,small:sM,medium:lM,large:C1,"extra-large":C1},Yh={tiny:E1,"extra-small":E1,small:fM,medium:hM,large:I1,"extra-large":I1},b6={tiny:T1,"extra-small":T1,small:uM,medium:dM,large:x1,"extra-large":x1},H1={tiny:A1,"extra-small":A1,small:pM,medium:gM,large:R1,"extra-large":R1},y6=(t,e,r)=>{switch(t){case"available":return e?f6[r]:h6[r];case"away":return e?Yh[r]:d6[r];case"blocked":return p6[r];case"busy":return e?H1[r]:g6[r];case"do-not-disturb":return e?v6[r]:m6[r];case"offline":return e?Yh[r]:b6[r];case"out-of-office":return Yh[r];case"unknown":return H1[r]}},U1={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},w6=(t,e)=>{const{size:r="medium",status:o="available",outOfOffice:n=!1}=t,i=U1[o],a=t.outOfOffice&&t.status!=="out-of-office"?` ${U1["out-of-office"]}`:"",s=y6(o,n,r);return{...l6({"aria-label":i+a,role:"img",...t,size:r,icon:ve(t.icon,{defaultProps:{children:s?w.createElement(s,null):null},renderByDefault:!0,elementType:"span"})},e),status:o,outOfOffice:n}},$1={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},k6=t=>t==="busy"||t==="do-not-disturb"||t==="blocked",_6=de("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),S6=de("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),C6=H({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),T6=t=>{const e=_6(),r=S6(),o=C6(),n=k6(t.status);return t.root.className=j($1.root,e,n&&o.statusBusy,t.status==="away"&&o.statusAway,t.status==="available"&&o.statusAvailable,t.status==="offline"&&o.statusOffline,t.status==="out-of-office"&&o.statusOutOfOffice,t.status==="unknown"&&o.statusUnknown,t.outOfOffice&&o.outOfOffice,t.outOfOffice&&t.status==="available"&&o.outOfOfficeAvailable,t.outOfOffice&&n&&o.outOfOfficeBusy,t.outOfOffice&&(t.status==="out-of-office"||t.status==="away"||t.status==="offline")&&o.statusOutOfOffice,t.outOfOffice&&t.status==="unknown"&&o.outOfOfficeUnknown,t.size==="tiny"&&o.tiny,t.size==="large"&&o.large,t.size==="extra-large"&&o.extraLarge,t.root.className),t.icon&&(t.icon.className=j($1.icon,r,t.icon.className)),t},Rg=w.forwardRef((t,e)=>{const r=w6(t,e);return T6(r),ge("usePresenceBadgeStyles_unstable")(r),u6(r)});Rg.displayName="PresenceBadge";const $T=w.createContext(void 0),x6={};$T.Provider;const E6=()=>{var t;return(t=w.useContext($T))!==null&&t!==void 0?t:x6},I6={active:"active",inactive:"inactive"},A6=(t,e)=>{const{dir:r}=je(),{shape:o,size:n}=E6(),{name:i,size:a=n??32,shape:s=o??"circular",active:c="unset",activeAppearance:l="ring",idForColor:u}=t;let{color:d="neutral"}=t;if(d==="colorful"){var f;d=K1[P6((f=u??i)!==null&&f!==void 0?f:"")%K1.length]}const h=gr("avatar-"),p=ae(we("span",{role:"img",id:h,...t,ref:e},["name"]),{elementType:"span"}),[g,y]=w.useState(void 0);let v=ve(t.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:g},elementType:"img"});v?.src||(v=void 0),v&&(v.onError=ke(v.onError,()=>y(!0)),v.onLoad=ke(v.onLoad,()=>y(void 0)));let m=ve(t.initials,{renderByDefault:!0,defaultProps:{children:c6(i,r==="rtl",{firstInitialOnly:a<=16}),id:h+"__initials"},elementType:"span"});m?.children||(m=void 0);let b;!m&&(!v||g)&&(b=ve(t.icon,{renderByDefault:!0,defaultProps:{children:w.createElement(L3,null),"aria-hidden":!0},elementType:"span"}));const k=ve(t.badge,{defaultProps:{size:R6(a),id:h+"__badge"},elementType:Rg});let S;if(!p["aria-label"]&&!p["aria-labelledby"]&&(i?(p["aria-label"]=i,k&&(p["aria-labelledby"]=p.id+" "+k.id)):m&&(p["aria-labelledby"]=m.id+(k?" "+k.id:"")),c==="active"||c==="inactive")){const C=I6[c];if(p["aria-labelledby"]){const _=h+"__active";p["aria-labelledby"]+=" "+_,S=w.createElement("span",{hidden:!0,id:_},C)}else p["aria-label"]&&(p["aria-label"]+=" "+C)}return{size:a,shape:s,active:c,activeAppearance:l,activeAriaLabelElement:S,color:d,components:{root:"span",initials:"span",icon:"span",image:"img",badge:Rg},root:p,initials:m,icon:b,image:v,badge:k}},R6=t=>t>=96?"extra-large":t>=64?"large":t>=56?"medium":t>=40?"small":t>=28?"extra-small":"tiny",K1=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],P6=t=>{let e=0;for(let r=t.length-1;r>=0;r--){const o=t.charCodeAt(r),n=r%8;e^=(o<>8-n)}return e},Ls={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},B6=de("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),N6=de("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),z6=de("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}"]),M6=H({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},squareMedium:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},squareLarge:{Bbmb7ep:["f1ldthgs","frrelxk"],Beyfa6y:["frrelxk","f1ldthgs"],B7oj6ja:["fobrfso","ffisxpw"],Btl43ni:["ffisxpw","fobrfso"]},squareXLarge:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"]},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bucmhp4:"f1f5ar78",b2tv09:["fqxtap0","fhjukvy"],Bfgortx:"f1qj1nzo",Bnvr3x9:["fhjukvy","fqxtap0"],b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}",".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}",".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}",".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}",".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",".fqxtap0::before,.fqxtap0::after{margin-right:0;}",".fhjukvy::before,.fhjukvy::after{margin-left:0;}",".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),O6=H({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),D6=H({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),j6=H({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),F6=t=>{const{size:e,shape:r,active:o,activeAppearance:n,color:i}=t,a=B6(),s=N6(),c=z6(),l=M6(),u=O6(),d=D6(),f=j6(),h=[a,e!==32&&u[e]];if(t.badge&&h.push(l.badgeAlign,l[t.badge.size||"medium"]),e<=24?h.push(l.textCaption2Strong):e<=28?h.push(l.textCaption1Strong):e<=40||(e<=56?h.push(l.textSubtitle2):e<=96?h.push(l.textSubtitle1):h.push(l.textTitle3)),r==="square"&&(e<=24?h.push(l.squareSmall):e<=48?h.push(l.squareMedium):e<=72?h.push(l.squareLarge):h.push(l.squareXLarge)),(o==="active"||o==="inactive")&&(h.push(l.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(h.push(l.ring,f[i]),t.badge&&h.push(l.ringBadgeCutout),e<=48?h.push(l.ringThick):e<=64?h.push(l.ringThicker):h.push(l.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(h.push(l.shadow),e<=28?h.push(l.shadow4):e<=48?h.push(l.shadow8):e<=64?h.push(l.shadow16):h.push(l.shadow28)),o==="inactive"&&h.push(l.inactive)),t.root.className=j(Ls.root,...h,t.root.className),t.badge&&(t.badge.className=j(Ls.badge,l.badge,t.badge.className)),t.image&&(t.image.className=j(Ls.image,s,d[i],t.badge&&l.badgeCutout,t.image.className)),t.initials&&(t.initials.className=j(Ls.initials,c,d[i],t.badge&&l.badgeCutout,t.initials.className)),t.icon){let p;e<=16?p=l.icon12:e<=24?p=l.icon16:e<=40?p=l.icon20:e<=48?p=l.icon24:e<=56?p=l.icon28:e<=72?p=l.icon32:p=l.icon48,t.icon.className=j(Ls.icon,c,p,d[i],t.badge&&l.badgeCutout,t.icon.className)}return t},KT=w.forwardRef((t,e)=>{const r=A6(t,e);return F6(r),ge("useAvatarStyles_unstable")(r),e6(r)});KT.displayName="Avatar";function L6(t){const e=t.clientX,r=t.clientY,o=e+1,n=r+1;function i(){return{left:e,top:r,right:o,bottom:n,x:e,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const W1="data-popper-is-intersecting",V1="data-popper-escaped",G1="data-popper-reference-hidden",q6="data-popper-placement",H6=["top","right","bottom","left"],$i=Math.min,Mr=Math.max,jd=Math.round,Zn=t=>({x:t,y:t}),U6={left:"right",right:"left",bottom:"top",top:"bottom"},$6={start:"end",end:"start"};function Pg(t,e,r){return Mr(t,$i(e,r))}function sn(t,e){return typeof t=="function"?t(e):t}function cn(t){return t.split("-")[0]}function Ps(t){return t.split("-")[1]}function Sb(t){return t==="x"?"y":"x"}function Cb(t){return t==="y"?"height":"width"}function Bs(t){return["top","bottom"].includes(cn(t))?"y":"x"}function Tb(t){return Sb(Bs(t))}function K6(t,e,r){r===void 0&&(r=!1);const o=Ps(t),n=Tb(t),i=Cb(n);let a=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Fd(a)),[a,Fd(a)]}function W6(t){const e=Fd(t);return[Bg(t),e,Bg(e)]}function Bg(t){return t.replace(/start|end/g,e=>$6[e])}function V6(t,e,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:o:e?o:n;case"left":case"right":return e?i:a;default:return[]}}function G6(t,e,r,o){const n=Ps(t);let i=V6(cn(t),r==="start",o);return n&&(i=i.map(a=>a+"-"+n),e&&(i=i.concat(i.map(Bg)))),i}function Fd(t){return t.replace(/left|right|bottom|top/g,e=>U6[e])}function X6(t){return{top:0,right:0,bottom:0,left:0,...t}}function WT(t){return typeof t!="number"?X6(t):{top:t,right:t,bottom:t,left:t}}function Ld(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function X1(t,e,r){let{reference:o,floating:n}=t;const i=Bs(e),a=Tb(e),s=Cb(a),c=cn(e),l=i==="y",u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2;let h;switch(c){case"top":h={x:u,y:o.y-n.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-n.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Ps(e)){case"start":h[a]-=f*(r&&l?-1:1);break;case"end":h[a]+=f*(r&&l?-1:1);break}return h}const Y6=async(t,e,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=X1(l,o,c),f=o,h={},p=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:c}=e,{element:l,padding:u=0}=sn(t,e)||{};if(l==null)return{};const d=WT(u),f={x:r,y:o},h=Tb(n),p=Cb(h),g=await a.getDimensions(l),y=h==="y",v=y?"top":"left",m=y?"bottom":"right",b=y?"clientHeight":"clientWidth",k=i.reference[p]+i.reference[h]-f[h]-i.floating[p],S=f[h]-i.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=C?C[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(C)))&&(_=s.floating[b]||i.floating[p]);const T=k/2-S/2,A=_/2-g[p]/2-1,R=$i(d[v],A),V=$i(d[m],A),E=R,U=_-g[p]-V,D=_/2-g[p]/2+T,B=Pg(E,D,U),M=!c.arrow&&Ps(n)!=null&&D!=B&&i.reference[p]/2-(DE<=0)){var A,R;const E=(((A=i.flip)==null?void 0:A.index)||0)+1,U=S[E];if(U)return{data:{index:E,overflows:T},reset:{placement:U}};let D=(R=T.filter(B=>B.overflows[0]<=0).sort((B,M)=>B.overflows[1]-M.overflows[1])[0])==null?void 0:R.placement;if(!D)switch(h){case"bestFit":{var V;const B=(V=T.map(M=>[M.placement,M.overflows.filter(K=>K>0).reduce((K,I)=>K+I,0)]).sort((M,K)=>M[1]-K[1])[0])==null?void 0:V[0];B&&(D=B);break}case"initialPlacement":D=s;break}if(n!==D)return{reset:{placement:D}}}return{}}}};function Y1(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Q1(t){return H6.some(e=>t[e]>=0)}const Z1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:o="referenceHidden",...n}=sn(t,e);switch(o){case"referenceHidden":{const i=await ds(e,{...n,elementContext:"reference"}),a=Y1(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Q1(a)}}}case"escaped":{const i=await ds(e,{...n,altBoundary:!0}),a=Y1(i,r.floating);return{data:{escapedOffsets:a,escaped:Q1(a)}}}default:return{}}}}};async function J6(t,e){const{placement:r,platform:o,elements:n}=t,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),a=cn(r),s=Ps(r),c=Bs(r)==="y",l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=sn(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}const eD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:n,y:i,placement:a,middlewareData:s}=e,c=await J6(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+c.x,y:i+c.y,data:{...c,placement:a}}}}},tD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:v,y:m}=y;return{x:v,y:m}}},...c}=sn(t,e),l={x:r,y:o},u=await ds(e,c),d=Bs(cn(n)),f=Sb(d);let h=l[f],p=l[d];if(i){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",m=h+u[y],b=h-u[v];h=Pg(m,h,b)}if(a){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=p+u[y],b=p-u[v];p=Pg(m,p,b)}const g=s.fn({...e,[f]:h,[d]:p});return{...g,data:{x:g.x-r,y:g.y-o}}}}},rD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:o,placement:n,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=sn(t,e),u={x:r,y:o},d=Bs(n),f=Sb(d);let h=u[f],p=u[d];const g=sn(s,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+y.mainAxis,S=i.reference[f]+i.reference[b]-y.mainAxis;hS&&(h=S)}if(l){var v,m;const b=f==="y"?"width":"height",k=["top","left"].includes(cn(n)),S=i.reference[d]-i.floating[b]+(k&&((v=a.offset)==null?void 0:v[d])||0)+(k?0:y.crossAxis),C=i.reference[d]+i.reference[b]+(k?0:((m=a.offset)==null?void 0:m[d])||0)-(k?y.crossAxis:0);pC&&(p=C)}return{[f]:h,[d]:p}}}},oD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:n,elements:i}=e,{apply:a=()=>{},...s}=sn(t,e),c=await ds(e,s),l=cn(r),u=Ps(r),d=Bs(r)==="y",{width:f,height:h}=o.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,p=u==="end"?"top":"bottom");const y=h-c[p],v=f-c[g],m=!e.middlewareData.shift;let b=y,k=v;if(d){const C=f-c.left-c.right;k=u||m?$i(v,C):C}else{const C=h-c.top-c.bottom;b=u||m?$i(y,C):C}if(m&&!u){const C=Mr(c.left,0),_=Mr(c.right,0),T=Mr(c.top,0),A=Mr(c.bottom,0);d?k=f-2*(C!==0||_!==0?C+_:Mr(c.left,c.right)):b=h-2*(T!==0||A!==0?T+A:Mr(c.top,c.bottom))}await a({...e,availableWidth:k,availableHeight:b});const S=await n.getDimensions(i.floating);return f!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}};function Jn(t){return VT(t)?(t.nodeName||"").toLowerCase():"#document"}function xr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ii(t){var e;return(e=(VT(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function VT(t){return t instanceof Node||t instanceof xr(t).Node}function ln(t){return t instanceof Element||t instanceof xr(t).Element}function Mo(t){return t instanceof HTMLElement||t instanceof xr(t).HTMLElement}function J1(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof xr(t).ShadowRoot}function Fl(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=Ur(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function nD(t){return["table","td","th"].includes(Jn(t))}function xb(t){const e=Eb(),r=Ur(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function iD(t){let e=fs(t);for(;Mo(e)&&!Qf(e);){if(xb(e))return e;e=fs(e)}return null}function Eb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qf(t){return["html","body","#document"].includes(Jn(t))}function Ur(t){return xr(t).getComputedStyle(t)}function Zf(t){return ln(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fs(t){if(Jn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||J1(t)&&t.host||ii(t);return J1(e)?e.host:e}function GT(t){const e=fs(t);return Qf(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mo(e)&&Fl(e)?e:GT(e)}function Ng(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=GT(t),i=n===((o=t.ownerDocument)==null?void 0:o.body),a=xr(n);return i?e.concat(a,a.visualViewport||[],Fl(n)?n:[],a.frameElement&&r?Ng(a.frameElement):[]):e.concat(n,Ng(n,[],r))}function XT(t){const e=Ur(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=Mo(t),i=n?t.offsetWidth:r,a=n?t.offsetHeight:o,s=jd(r)!==i||jd(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function YT(t){return ln(t)?t:t.contextElement}function Ha(t){const e=YT(t);if(!Mo(e))return Zn(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:i}=XT(e);let a=(i?jd(r.width):r.width)/o,s=(i?jd(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const aD=Zn(0);function QT(t){const e=xr(t);return!Eb()||!e.visualViewport?aD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==xr(t)?!1:e}function Vc(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=YT(t);let a=Zn(1);e&&(o?ln(o)&&(a=Ha(o)):a=Ha(t));const s=sD(i,r,o)?QT(i):Zn(0);let c=(n.left+s.x)/a.x,l=(n.top+s.y)/a.y,u=n.width/a.x,d=n.height/a.y;if(i){const f=xr(i),h=o&&ln(o)?xr(o):o;let p=f.frameElement;for(;p&&o&&h!==f;){const g=Ha(p),y=p.getBoundingClientRect(),v=Ur(p),m=y.left+(p.clientLeft+parseFloat(v.paddingLeft))*g.x,b=y.top+(p.clientTop+parseFloat(v.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,d*=g.y,c+=m,l+=b,p=xr(p).frameElement}}return Ld({width:u,height:d,x:c,y:l})}function cD(t){let{rect:e,offsetParent:r,strategy:o}=t;const n=Mo(r),i=ii(r);if(r===i)return e;let a={scrollLeft:0,scrollTop:0},s=Zn(1);const c=Zn(0);if((n||!n&&o!=="fixed")&&((Jn(r)!=="body"||Fl(i))&&(a=Zf(r)),Mo(r))){const l=Vc(r);s=Ha(r),c.x=l.x+r.clientLeft,c.y=l.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}}function lD(t){return Array.from(t.getClientRects())}function ZT(t){return Vc(ii(t)).left+Zf(t).scrollLeft}function uD(t){const e=ii(t),r=Zf(t),o=t.ownerDocument.body,n=Mr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Mr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+ZT(t);const s=-r.scrollTop;return Ur(o).direction==="rtl"&&(a+=Mr(e.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}function dD(t,e){const r=xr(t),o=ii(t),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(n){i=n.width,a=n.height;const l=Eb();(!l||l&&e==="fixed")&&(s=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:s,y:c}}function fD(t,e){const r=Vc(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,i=Mo(t)?Ha(t):Zn(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,c=n*i.x,l=o*i.y;return{width:a,height:s,x:c,y:l}}function ew(t,e,r){let o;if(e==="viewport")o=dD(t,r);else if(e==="document")o=uD(ii(t));else if(ln(e))o=fD(e,r);else{const n=QT(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return Ld(o)}function JT(t,e){const r=fs(t);return r===e||!ln(r)||Qf(r)?!1:Ur(r).position==="fixed"||JT(r,e)}function hD(t,e){const r=e.get(t);if(r)return r;let o=Ng(t,[],!1).filter(s=>ln(s)&&Jn(s)!=="body"),n=null;const i=Ur(t).position==="fixed";let a=i?fs(t):t;for(;ln(a)&&!Qf(a);){const s=Ur(a),c=xb(a);!c&&s.position==="fixed"&&(n=null),(i?!c&&!n:!c&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fl(a)&&!c&&JT(t,a))?o=o.filter(u=>u!==a):n=s,a=fs(a)}return e.set(t,o),o}function pD(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t;const a=[...r==="clippingAncestors"?hD(e,this._c):[].concat(r),o],s=a[0],c=a.reduce((l,u)=>{const d=ew(e,u,n);return l.top=Mr(d.top,l.top),l.right=$i(d.right,l.right),l.bottom=$i(d.bottom,l.bottom),l.left=Mr(d.left,l.left),l},ew(e,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gD(t){return XT(t)}function mD(t,e,r){const o=Mo(e),n=ii(e),i=r==="fixed",a=Vc(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const c=Zn(0);if(o||!o&&!i)if((Jn(e)!=="body"||Fl(n))&&(s=Zf(e)),o){const l=Vc(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else n&&(c.x=ZT(n));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function tw(t,e){return!Mo(t)||Ur(t).position==="fixed"?null:e?e(t):t.offsetParent}function ex(t,e){const r=xr(t);if(!Mo(t))return r;let o=tw(t,e);for(;o&&nD(o)&&Ur(o).position==="static";)o=tw(o,e);return o&&(Jn(o)==="html"||Jn(o)==="body"&&Ur(o).position==="static"&&!xb(o))?r:o||iD(t)||r}const vD=async function(t){let{reference:e,floating:r,strategy:o}=t;const n=this.getOffsetParent||ex,i=this.getDimensions;return{reference:mD(e,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function bD(t){return Ur(t).direction==="rtl"}const yD={convertOffsetParentRelativeRectToViewportRelativeRect:cD,getDocumentElement:ii,getClippingRect:pD,getOffsetParent:ex,getElementRects:vD,getClientRects:lD,getDimensions:gD,getScale:Ha,isElement:ln,isRTL:bD},wD=(t,e,r)=>{const o=new Map,n={platform:yD,...r},i={...n.platform,_c:o};return Y6(t,e,{...n,platform:i})};function tx(t){const e=t.split("-");return{side:e[0],alignment:e[1]}}const kD=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,_D=t=>{var e;return t.nodeType!==1?{}:((e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView).getComputedStyle(t,null)},Jf=t=>{const e=t&&kD(t);if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:r,overflowX:o,overflowY:n}=_D(e);return/(auto|scroll|overlay)/.test(r+n+o)?e:Jf(e)},SD=t=>{var e;const r=Jf(t);return r?r!==((e=r.ownerDocument)===null||e===void 0?void 0:e.body):!1};function Ib(t,e){if(e==="window")return t?.ownerDocument.documentElement;if(e==="clippingParents")return"clippingAncestors";if(e==="scrollParent"){let r=Jf(t);return r.nodeName==="BODY"&&(r=t?.ownerDocument.documentElement),r}return e}function rx(t,e){return typeof t=="number"||typeof t=="object"&&t!==null?Qh(t,e):typeof t=="function"?r=>{const o=t(r);return Qh(o,e)}:{mainAxis:e}}const Qh=(t,e)=>{if(typeof t=="number")return{mainAxis:t+e};var r;return{...t,mainAxis:((r=t.mainAxis)!==null&&r!==void 0?r:0)+e}};function CD(t,e){if(typeof t=="number")return t;const{start:r,end:o,...n}=t,i=n,a=e?"end":"start",s=e?"start":"end";return t[a]&&(i.left=t[a]),t[s]&&(i.right=t[s]),i}const TD=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),xD=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),ED=(t,e)=>{const r=t==="above"||t==="below",o=e==="top"||e==="bottom";return r&&o||!r&&!o},ox=(t,e,r)=>{const o=ED(e,t)?"center":t,n=e&&TD(r)[e],i=o&&xD()[o];return n&&i?`${n}-${i}`:n},ID=()=>({top:"above",bottom:"below",right:"after",left:"before"}),AD=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},RD=t=>{const{side:e,alignment:r}=tx(t),o=ID()[e],n=r&&AD(o)[r];return{position:o,alignment:n}},PD={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function eh(t){return t==null?{}:typeof t=="string"?PD[t]:t}function Zh(t,e,r){const o=w.useRef(!0),[n]=w.useState(()=>({value:t,callback:e,facade:{get current(){return n.value},set current(i){const a=n.value;if(a!==i){if(n.value=i,r&&o.current)return;n.callback(i,a)}}}}));return er(()=>{o.current=!1},[]),n.callback=e,n.facade}function BD(t){let e;return()=>(e||(e=new Promise(r=>{Promise.resolve().then(()=>{e=void 0,r(t())})})),e)}function ND(t){const{arrow:e,middlewareData:r}=t;if(!r.arrow||!e)return;const{x:o,y:n}=r.arrow;Object.assign(e.style,{left:`${o}px`,top:`${n}px`})}function zD(t){var e,r,o;const{container:n,placement:i,middlewareData:a,strategy:s,lowPPI:c,coordinates:l,useTransform:u=!0}=t;if(!n)return;n.setAttribute(q6,i),n.removeAttribute(W1),a.intersectionObserver.intersecting&&n.setAttribute(W1,""),n.removeAttribute(V1),!((e=a.hide)===null||e===void 0)&&e.escaped&&n.setAttribute(V1,""),n.removeAttribute(G1),!((r=a.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(G1,"");const d=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,f=Math.round(l.x*d)/d,h=Math.round(l.y*d)/d;if(Object.assign(n.style,{position:s}),u){Object.assign(n.style,{transform:c?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`});return}Object.assign(n.style,{left:`${f}px`,top:`${h}px`})}const MD=t=>{switch(t){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function OD(){return{name:"coverTarget",fn:t=>{const{placement:e,rects:r,x:o,y:n}=t,i=tx(e).side,a={x:o,y:n};switch(i){case"bottom":a.y-=r.reference.height;break;case"top":a.y+=r.reference.height;break;case"left":a.x+=r.reference.width;break;case"right":a.x-=r.reference.width;break}return a}}}function DD(t){const{hasScrollableElement:e,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=t,a=n.reduce((s,c)=>{const{position:l,align:u}=eh(c),d=ox(u,l,i);return d&&s.push(d),s},[]);return Z6({...e&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Ib(o,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}function jD(){return{name:"intersectionObserver",fn:async t=>{const e=t.rects.floating,r=await ds(t,{altBoundary:!0}),o=r.top0,n=r.bottom0;return{data:{intersecting:o||n}}}}}const FD=t=>({name:"resetMaxSize",fn({middlewareData:e,elements:r}){var o;if(!((o=e.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=t;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function LD(t,e){const{container:r,overflowBoundary:o}=e;return oD({...o&&{altBoundary:!0,boundary:Ib(r,o)},apply({availableHeight:n,availableWidth:i,elements:a,rects:s}){const c=(d,f,h)=>{if(d&&(a.floating.style.setProperty("box-sizing","border-box"),a.floating.style.setProperty(`max-${f}`,`${h}px`),s.floating[f]>h)){a.floating.style.setProperty(f,`${h}px`);const p=f==="width"?"x":"y";a.floating.style.getPropertyValue(`overflow-${p}`)||a.floating.style.setProperty(`overflow-${p}`,"auto")}},{applyMaxWidth:l,applyMaxHeight:u}=t;c(l,"width",i),c(u,"height",n)}})}function qD(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:e,reference:r},placement:o})=>{const{position:n,alignment:i}=RD(o);return t({positionedRect:e,targetRect:r,position:n,alignment:i})}}function HD(t){const e=qD(t);return eD(e)}function UD(t){const{hasScrollableElement:e,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:a}=t;return tD({...e&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:rD({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:CD(i,a)},...o&&{altBoundary:!0,boundary:Ib(n,o)}})}const rw="--fui-match-target-size";function $D(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:e,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=t;if(e.width===r.width||n)return{};const{width:i}=e;return o.style.setProperty(rw,`${i}px`),o.style.width||(o.style.width=`var(${rw})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function ow(t){const e=[];let r=t;for(;r;){const o=Jf(r);if(t.ownerDocument.body===o){e.push(o);break}e.push(o),r=o}return e}function KD(t){const{container:e,target:r,arrow:o,strategy:n,middleware:i,placement:a,useTransform:s=!0}=t;let c=!1;if(!r||!e)return{updatePosition:()=>{},dispose:()=>{}};let l=!0;const u=new Set,d=e.ownerDocument.defaultView;Object.assign(e.style,{position:"fixed",left:0,top:0,margin:0});const f=()=>{c||(l&&(ow(e).forEach(g=>u.add(g)),at(r)&&ow(r).forEach(g=>u.add(g)),u.forEach(g=>{g.addEventListener("scroll",h,{passive:!0})}),l=!1),Object.assign(e.style,{position:n}),wD(r,e,{placement:a,middleware:i,strategy:n}).then(({x:g,y,middlewareData:v,placement:m})=>{c||(ND({arrow:o,middlewareData:v}),zD({container:e,middlewareData:v,placement:m,coordinates:{x:g,y},lowPPI:(d?.devicePixelRatio||1)<=1,strategy:n,useTransform:s}))}).catch(g=>{}))},h=BD(()=>f()),p=()=>{c=!0,d&&(d.removeEventListener("scroll",h),d.removeEventListener("resize",h)),u.forEach(g=>{g.removeEventListener("scroll",h)}),u.clear()};return d&&(d.addEventListener("scroll",h,{passive:!0}),d.addEventListener("resize",h)),h(),{updatePosition:h,dispose:p}}function Ab(t){const e=w.useRef(null),r=w.useRef(null),o=w.useRef(null),n=w.useRef(null),i=w.useRef(null),{enabled:a=!0}=t,s=WD(t),c=w.useCallback(()=>{e.current&&e.current.dispose(),e.current=null;var h;const p=(h=o.current)!==null&&h!==void 0?h:r.current;a&&ra()&&p&&n.current&&(e.current=KD({container:n.current,target:p,arrow:i.current,...s(n.current,i.current)}))},[a,s]),l=ee(h=>{o.current=h,c()});w.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var h;return(h=e.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{t.target,l(h)}}),[t.target,l]),er(()=>{var h;l((h=t.target)!==null&&h!==void 0?h:null)},[t.target,l]),er(()=>{c()},[c]);const u=Zh(null,h=>{r.current!==h&&(r.current=h,c())}),d=Zh(null,h=>{n.current!==h&&(n.current=h,c())}),f=Zh(null,h=>{i.current!==h&&(i.current=h,c())});return{targetRef:u,containerRef:d,arrowRef:f}}function WD(t){const{align:e,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:a,overflowBoundary:s,pinned:c,position:l,unstable_disableTether:u,positionFixed:d,strategy:f,overflowBoundaryPadding:h,fallbackPositions:p,useTransform:g,matchTargetSize:y}=t,{dir:v,targetDocument:m}=je(),b=v==="rtl",k=f??d?"fixed":"absolute",S=MD(o);return w.useCallback((C,_)=>{const T=SD(C),A=[S&&FD(S),y&&$D(),a&&HD(a),n&&OD(),!c&&DD({container:C,flipBoundary:i,hasScrollableElement:T,isRtl:b,fallbackPositions:p}),UD({container:C,hasScrollableElement:T,overflowBoundary:s,disableTether:u,overflowBoundaryPadding:h,isRtl:b}),S&&LD(S,{container:C,overflowBoundary:s}),jD(),_&&Q6({element:_,padding:r}),Z1({strategy:"referenceHidden"}),Z1({strategy:"escaped"}),!1].filter(Boolean);return{placement:ox(e,l,b),middleware:A,strategy:k,useTransform:g}},[e,r,S,n,u,i,b,a,s,c,l,k,h,p,g,y,m])}const nx=t=>{const[e,r]=w.useState(t);return[e,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,i instanceof MouseEvent;const a=L6(i);r(a)}]},Rb=As(void 0),VD={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Rb.Provider;const Mt=t=>Rs(Rb,(e=VD)=>t(e)),GD=(t,e)=>{const r=Mt(m=>m.contentRef),o=Mt(m=>m.openOnHover),n=Mt(m=>m.setOpen),i=Mt(m=>m.mountNode),a=Mt(m=>m.arrowRef),s=Mt(m=>m.size),c=Mt(m=>m.withArrow),l=Mt(m=>m.appearance),u=Mt(m=>m.trapFocus),d=Mt(m=>m.inertTrapFocus),f=Mt(m=>m.inline),{modalAttributes:h}=Wf({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),p={inline:f,appearance:l,withArrow:c,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:ae(we("div",{ref:bt(e,r),role:u?"dialog":"group","aria-modal":u?!0:void 0,...h,...t}),{elementType:"div"})},{onMouseEnter:g,onMouseLeave:y,onKeyDown:v}=p.root;return p.root.onMouseEnter=m=>{o&&n(m,!0),g?.(m)},p.root.onMouseLeave=m=>{o&&n(m,!1),y?.(m)},p.root.onKeyDown=m=>{var b;m.key==="Escape"&&(!((b=r.current)===null||b===void 0)&&b.contains(m.target))&&(m.preventDefault(),n(m,!1)),v?.(m)},p};function XD(t){return at(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}var ix=()=>w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,YD=()=>!1,nw=new WeakSet;function QD(t,e){const r=ix();w.useEffect(()=>{if(!nw.has(r)){nw.add(r),t();return}return t()},e)}var iw=new WeakSet;function ZD(t,e){return w.useMemo(()=>{const r=ix();return iw.has(r)?t():(iw.add(r),null)},e)}function JD(t,e){var r;const o=YD()&&!1,n=o?ZD:w.useMemo,i=o?QD:w.useEffect,[a,s]=(r=n(()=>t(),e))!=null?r:[null,()=>null];return i(()=>s,e),a}const ej=H({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),aw=_d.useInsertionEffect,tj=t=>{const{targetDocument:e,dir:r}=je(),o=c3(),n=yb(),i=ej(),a=Zz(),s=j(a,i.root,t.className),c=o??e?.body,l=JD(()=>{if(c===void 0||t.disabled)return[null,()=>null];const u=c.ownerDocument.createElement("div");return c.appendChild(u),[u,()=>u.remove()]},[c]);return aw?aw(()=>{if(!l)return;const u=s.split(" ").filter(Boolean);return l.classList.add(...u),l.setAttribute("dir",r),n.current=l,()=>{l.classList.remove(...u),l.removeAttribute("dir")}},[s,r,l,n]):w.useMemo(()=>{l&&(l.className=s,l.setAttribute("dir",r),n.current=l)},[s,r,l,n]),l},rj=t=>{const{element:e,className:r}=XD(t.mountNode),o=w.useRef(null),n=tj({disabled:!!e,className:r}),i=e??n,a={children:t.children,mountNode:i,virtualParentRootRef:o};return w.useEffect(()=>{if(!i)return;const s=o.current,c=i.contains(s);if(s&&!c)return u1(i,s),()=>{u1(i,void 0)}},[o,i]),a};var ax={exports:{}},Pr={},sx={exports:{}},cx={};/** * @license React * scheduler.production.min.js * @@ -97,7 +91,7 @@ ${n}`);return}throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error,e. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(t){function e(I,F){var $=I.length;I.push(F);e:for(;0<$;){var N=$-1>>>1,O=I[N];if(0>>1;Nn(fe,$))Aen(se,fe)?(I[N]=se,I[Ae]=$,N=Ae):(I[N]=fe,I[Q]=$,N=Q);else if(Aen(se,$))I[N]=se,I[Ae]=$,N=Ae;else break e}}return F}function n(I,F){var $=I.sortIndex-F.sortIndex;return $!==0?$:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],l=[],u=1,d=null,f=3,h=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var F=r(l);F!==null;){if(F.callback===null)o(l);else if(F.startTime<=I)o(l),F.sortIndex=F.expirationTime,e(c,F);else break;F=r(l)}}function k(I){if(g=!1,b(I),!p)if(r(c)!==null)p=!0,M(S);else{var F=r(l);F!==null&&K(k,F.startTime-I)}}function S(I,F){p=!1,g&&(g=!1,v(T),T=-1),h=!0;var $=f;try{for(b(F),d=r(c);d!==null&&(!(d.expirationTime>F)||I&&!V());){var N=d.callback;if(typeof N=="function"){d.callback=null,f=d.priorityLevel;var O=N(d.expirationTime<=F);F=t.unstable_now(),typeof O=="function"?d.callback=O:d===r(c)&&o(c),b(F)}else o(c);d=r(c)}if(d!==null)var G=!0;else{var Q=r(l);Q!==null&&K(k,Q.startTime-F),G=!1}return G}finally{d=null,f=$,h=!1}}var C=!1,_=null,T=-1,A=5,R=-1;function V(){return!(t.unstable_now()-RI||125N?(I.sortIndex=$,e(l,I),r(c)===null&&I===r(l)&&(g?(v(T),T=-1):g=!0,K(k,$-N))):(I.sortIndex=O,e(c,I),p||h||(p=!0,M(S))),I},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(I){var F=f;return function(){var $=f;f=F;try{return I.apply(this,arguments)}finally{f=$}}}})(sx);ax.exports=sx;var rj=ax.exports;/** + */(function(t){function e(I,F){var $=I.length;I.push(F);e:for(;0<$;){var N=$-1>>>1,O=I[N];if(0>>1;Nn(fe,$))Aen(se,fe)?(I[N]=se,I[Ae]=$,N=Ae):(I[N]=fe,I[Q]=$,N=Q);else if(Aen(se,$))I[N]=se,I[Ae]=$,N=Ae;else break e}}return F}function n(I,F){var $=I.sortIndex-F.sortIndex;return $!==0?$:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],l=[],u=1,d=null,f=3,h=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(I){for(var F=r(l);F!==null;){if(F.callback===null)o(l);else if(F.startTime<=I)o(l),F.sortIndex=F.expirationTime,e(c,F);else break;F=r(l)}}function k(I){if(g=!1,b(I),!p)if(r(c)!==null)p=!0,M(S);else{var F=r(l);F!==null&&K(k,F.startTime-I)}}function S(I,F){p=!1,g&&(g=!1,v(T),T=-1),h=!0;var $=f;try{for(b(F),d=r(c);d!==null&&(!(d.expirationTime>F)||I&&!V());){var N=d.callback;if(typeof N=="function"){d.callback=null,f=d.priorityLevel;var O=N(d.expirationTime<=F);F=t.unstable_now(),typeof O=="function"?d.callback=O:d===r(c)&&o(c),b(F)}else o(c);d=r(c)}if(d!==null)var G=!0;else{var Q=r(l);Q!==null&&K(k,Q.startTime-F),G=!1}return G}finally{d=null,f=$,h=!1}}var C=!1,_=null,T=-1,A=5,R=-1;function V(){return!(t.unstable_now()-RI||125N?(I.sortIndex=$,e(l,I),r(c)===null&&I===r(l)&&(g?(v(T),T=-1):g=!0,K(k,$-N))):(I.sortIndex=O,e(c,I),p||h||(p=!0,M(S))),I},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(I){var F=f;return function(){var $=f;f=F;try{return I.apply(this,arguments)}finally{f=$}}}})(cx);sx.exports=cx;var oj=sx.exports;/** * @license React * react-dom.production.min.js * @@ -105,33 +99,33 @@ ${n}`);return}throw C0(e.error,e.error_description,e.suberror)?new Ao(e.error,e. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cx=w,Ar=rj;function Y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mg=Object.prototype.hasOwnProperty,oj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sw={},cw={};function nj(t){return Mg.call(cw,t)?!0:Mg.call(sw,t)?!1:oj.test(t)?cw[t]=!0:(sw[t]=!0,!1)}function ij(t,e,r,o){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function aj(t,e,r,o){if(e===null||typeof e>"u"||ij(t,e,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ir(t,e,r,o,n,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){jt[t]=new ir(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];jt[e]=new ir(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){jt[t]=new ir(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){jt[t]=new ir(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){jt[t]=new ir(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){jt[t]=new ir(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){jt[t]=new ir(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){jt[t]=new ir(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){jt[t]=new ir(t,5,!1,t.toLowerCase(),null,!1,!1)});var Pb=/[\-:]([a-z])/g;function Bb(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){jt[t]=new ir(t,1,!1,t.toLowerCase(),null,!1,!1)});jt.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){jt[t]=new ir(t,1,!1,t.toLowerCase(),null,!0,!0)});function Nb(t,e,r,o){var n=jt.hasOwnProperty(e)?jt[e]:null;(n!==null?n.type!==0:o||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zg=Object.prototype.hasOwnProperty,nj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sw={},cw={};function ij(t){return zg.call(cw,t)?!0:zg.call(sw,t)?!1:nj.test(t)?cw[t]=!0:(sw[t]=!0,!1)}function aj(t,e,r,o){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function sj(t,e,r,o){if(e===null||typeof e>"u"||aj(t,e,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ir(t,e,r,o,n,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){jt[t]=new ir(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];jt[e]=new ir(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){jt[t]=new ir(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){jt[t]=new ir(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){jt[t]=new ir(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){jt[t]=new ir(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){jt[t]=new ir(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){jt[t]=new ir(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){jt[t]=new ir(t,5,!1,t.toLowerCase(),null,!1,!1)});var Pb=/[\-:]([a-z])/g;function Bb(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Pb,Bb);jt[e]=new ir(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){jt[t]=new ir(t,1,!1,t.toLowerCase(),null,!1,!1)});jt.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){jt[t]=new ir(t,1,!1,t.toLowerCase(),null,!0,!0)});function Nb(t,e,r,o){var n=jt.hasOwnProperty(e)?jt[e]:null;(n!==null?n.type!==0:o||!(2s||n[a]!==i[s]){var c=` -`+n[a].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{tp=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?cc(t):""}function sj(t){switch(t.tag){case 5:return cc(t.type);case 16:return cc("Lazy");case 13:return cc("Suspense");case 19:return cc("SuspenseList");case 0:case 2:case 15:return t=rp(t.type,!1),t;case 11:return t=rp(t.type.render,!1),t;case 1:return t=rp(t.type,!0),t;default:return""}}function Fg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Aa:return"Fragment";case Ia:return"Portal";case Og:return"Profiler";case zb:return"StrictMode";case Dg:return"Suspense";case jg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case dx:return(t.displayName||"Context")+".Consumer";case ux:return(t._context.displayName||"Context")+".Provider";case Mb:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ob:return e=t.displayName||null,e!==null?e:Fg(t.type)||"Memo";case In:e=t._payload,t=t._init;try{return Fg(t(e))}catch{}}return null}function cj(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fg(e);case 8:return e===zb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ei(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function hx(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function lj(t){var e=hx(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function cu(t){t._valueTracker||(t._valueTracker=lj(t))}function px(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),o="";return t&&(o=hx(t)?t.checked?"true":"false":t.value),t=o,t!==r?(e.setValue(t),!0):!1}function Hd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Lg(t,e){var r=e.checked;return et({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function uw(t,e){var r=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;r=ei(e.value!=null?e.value:r),t._wrapperState={initialChecked:o,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function gx(t,e){e=e.checked,e!=null&&Nb(t,"checked",e,!1)}function qg(t,e){gx(t,e);var r=ei(e.value),o=e.type;if(r!=null)o==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Hg(t,e.type,r):e.hasOwnProperty("defaultValue")&&Hg(t,e.type,ei(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function dw(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Hg(t,e,r){(e!=="number"||Hd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var lc=Array.isArray;function Ua(t,e,r,o){if(t=t.options,e){e={};for(var n=0;n"+e.valueOf().toString()+"",e=lu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xc(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var wc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uj=["Webkit","ms","Moz","O"];Object.keys(wc).forEach(function(t){uj.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),wc[e]=wc[t]})});function yx(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||wc.hasOwnProperty(t)&&wc[t]?(""+e).trim():e+"px"}function wx(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=yx(r,e[r],o);r==="float"&&(r="cssFloat"),o?t.setProperty(r,n):t[r]=n}}var dj=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kg(t,e){if(e){if(dj[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Y(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Y(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Y(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Y(62))}}function Wg(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vg=null;function Db(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gg=null,$a=null,Ka=null;function pw(t){if(t=Ul(t)){if(typeof Gg!="function")throw Error(Y(280));var e=t.stateNode;e&&(e=ah(e),Gg(t.stateNode,t.type,e))}}function kx(t){$a?Ka?Ka.push(t):Ka=[t]:$a=t}function _x(){if($a){var t=$a,e=Ka;if(Ka=$a=null,pw(t),e)for(t=0;t>>=0,t===0?32:31-(_j(t)/Sj|0)|0}var uu=64,du=4194304;function uc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Wd(t,e){var r=t.pendingLanes;if(r===0)return 0;var o=0,n=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=uc(s):(i&=a,i!==0&&(o=uc(i)))}else a=r&~n,a!==0?o=uc(a):i!==0&&(o=uc(i));if(o===0)return 0;if(e!==0&&e!==o&&!(e&n)&&(n=o&-o,i=e&-e,n>=i||n===16&&(i&4194240)!==0))return e;if(o&4&&(o|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0r;r++)e.push(t);return e}function ql(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-so(e),t[e]=r}function Ej(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var o=t.eventTimes;for(t=t.expirationTimes;0=_c),Sw=" ",Cw=!1;function Hx(t,e){switch(t){case"keyup":return tF.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ux(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ra=!1;function oF(t,e){switch(t){case"compositionend":return Ux(e);case"keypress":return e.which!==32?null:(Cw=!0,Sw);case"textInput":return t=e.data,t===Sw&&Cw?null:t;default:return null}}function nF(t,e){if(Ra)return t==="compositionend"||!Kb&&Hx(t,e)?(t=Lx(),ed=Hb=On=null,Ra=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Iw(r)}}function Vx(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Vx(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gx(){for(var t=window,e=Hd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Hd(t.document)}return e}function Wb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function hF(t){var e=Gx(),r=t.focusedElem,o=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Vx(r.ownerDocument.documentElement,r)){if(o!==null&&Wb(r)){if(e=o.start,t=o.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!t.extend&&i>o&&(n=o,o=i,i=n),n=Aw(r,i);var a=Aw(r,o);n&&a&&(t.rangeCount!==1||t.anchorNode!==n.node||t.anchorOffset!==n.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),t.removeAllRanges(),i>o?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Pa=null,em=null,Cc=null,tm=!1;function Rw(t,e,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tm||Pa==null||Pa!==Hd(o)||(o=Pa,"selectionStart"in o&&Wb(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Cc&&tl(Cc,o)||(Cc=o,o=Xd(em,"onSelect"),0za||(t.current=sm[za],sm[za]=null,za--)}function Oe(t,e){za++,sm[za]=t.current,t.current=e}var ti={},Xt=si(ti),fr=si(!1),Ki=ti;function ps(t,e){var r=t.type.contextTypes;if(!r)return ti;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n),n}function hr(t){return t=t.childContextTypes,t!=null}function Qd(){He(fr),He(Xt)}function Dw(t,e,r){if(Xt.current!==ti)throw Error(Y(168));Oe(Xt,e),Oe(fr,r)}function oE(t,e,r){var o=t.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in e))throw Error(Y(108,cj(t)||"Unknown",n));return et({},r,o)}function Zd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ti,Ki=Xt.current,Oe(Xt,t),Oe(fr,fr.current),!0}function jw(t,e,r){var o=t.stateNode;if(!o)throw Error(Y(169));r?(t=oE(t,e,Ki),o.__reactInternalMemoizedMergedChildContext=t,He(fr),He(Xt),Oe(Xt,t)):He(fr),Oe(fr,r)}var $o=null,sh=!1,mp=!1;function nE(t){$o===null?$o=[t]:$o.push(t)}function TF(t){sh=!0,nE(t)}function ci(){if(!mp&&$o!==null){mp=!0;var t=0,e=Re;try{var r=$o;for(Re=1;t>=a,n-=a,Yo=1<<32-so(e)+n|r<T?(A=_,_=null):A=_.sibling;var R=f(v,_,b[T],k);if(R===null){_===null&&(_=A);break}t&&_&&R.alternate===null&&e(v,_),m=i(R,m,T),C===null?S=R:C.sibling=R,C=R,_=A}if(T===b.length)return r(v,_),We&&pi(v,T),S;if(_===null){for(;TT?(A=_,_=null):A=_.sibling;var V=f(v,_,R.value,k);if(V===null){_===null&&(_=A);break}t&&_&&V.alternate===null&&e(v,_),m=i(V,m,T),C===null?S=V:C.sibling=V,C=V,_=A}if(R.done)return r(v,_),We&&pi(v,T),S;if(_===null){for(;!R.done;T++,R=b.next())R=d(v,R.value,k),R!==null&&(m=i(R,m,T),C===null?S=R:C.sibling=R,C=R);return We&&pi(v,T),S}for(_=o(v,_);!R.done;T++,R=b.next())R=h(_,v,T,R.value,k),R!==null&&(t&&R.alternate!==null&&_.delete(R.key===null?T:R.key),m=i(R,m,T),C===null?S=R:C.sibling=R,C=R);return t&&_.forEach(function(E){return e(v,E)}),We&&pi(v,T),S}function y(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===Aa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case su:e:{for(var S=b.key,C=m;C!==null;){if(C.key===S){if(S=b.type,S===Aa){if(C.tag===7){r(v,C.sibling),m=n(C,b.props.children),m.return=v,v=m;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===In&&Kw(S)===C.type){r(v,C.sibling),m=n(C,b.props),m.ref=Ws(v,C,b),m.return=v,v=m;break e}r(v,C);break}else e(v,C);C=C.sibling}b.type===Aa?(m=Pi(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=cd(b.type,b.key,b.props,null,v.mode,k),k.ref=Ws(v,m,b),k.return=v,v=k)}return a(v);case Ia:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(v,m.sibling),m=n(m,b.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else e(v,m);m=m.sibling}m=Cp(b,v.mode,k),m.return=v,v=m}return a(v);case In:return C=b._init,y(v,m,C(b._payload),k)}if(lc(b))return p(v,m,b,k);if(qs(b))return g(v,m,b,k);bu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,b),m.return=v,v=m):(r(v,m),m=Sp(b,v.mode,k),m.return=v,v=m),a(v)):r(v,m)}return y}var ms=fE(!0),hE=fE(!1),$l={},Bo=si($l),il=si($l),al=si($l);function Ti(t){if(t===$l)throw Error(Y(174));return t}function ty(t,e){switch(Oe(al,e),Oe(il,t),Oe(Bo,$l),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:$g(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=$g(e,t)}He(Bo),Oe(Bo,e)}function vs(){He(Bo),He(il),He(al)}function pE(t){Ti(al.current);var e=Ti(Bo.current),r=$g(e,t.type);e!==r&&(Oe(il,t),Oe(Bo,r))}function ry(t){il.current===t&&(He(Bo),He(il))}var Ge=si(0);function nf(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var vp=[];function oy(){for(var t=0;tr?r:4,t(!0);var o=bp.transition;bp.transition={};try{t(!1),e()}finally{Re=r,bp.transition=o}}function RE(){return Kr().memoizedState}function AF(t,e,r){var o=Wn(t);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},PE(t))BE(e,r);else if(r=cE(t,e,r,o),r!==null){var n=rr();co(r,t,o,n),NE(r,e,o)}}function RF(t,e,r){var o=Wn(t),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(PE(t))BE(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,fo(s,a)){var c=e.interleaved;c===null?(n.next=n,Jb(e)):(n.next=c.next,c.next=n),e.interleaved=n;return}}catch{}finally{}r=cE(t,e,n,o),r!==null&&(n=rr(),co(r,t,o,n),NE(r,e,o))}}function PE(t){var e=t.alternate;return t===Je||e!==null&&e===Je}function BE(t,e){Tc=af=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function NE(t,e,r){if(r&4194240){var o=e.lanes;o&=t.pendingLanes,r|=o,e.lanes=r,Fb(t,r)}}var sf={readContext:$r,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},PF={readContext:$r,useCallback:function(t,e){return wo().memoizedState=[t,e===void 0?null:e],t},useContext:$r,useEffect:Vw,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,nd(4194308,4,TE.bind(null,e,t),r)},useLayoutEffect:function(t,e){return nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return nd(4,2,t,e)},useMemo:function(t,e){var r=wo();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var o=wo();return e=r!==void 0?r(e):e,o.memoizedState=o.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},o.queue=t,t=t.dispatch=AF.bind(null,Je,t),[o.memoizedState,t]},useRef:function(t){var e=wo();return t={current:t},e.memoizedState=t},useState:Ww,useDebugValue:cy,useDeferredValue:function(t){return wo().memoizedState=t},useTransition:function(){var t=Ww(!1),e=t[0];return t=IF.bind(null,t[1]),wo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var o=Je,n=wo();if(We){if(r===void 0)throw Error(Y(407));r=r()}else{if(r=e(),Pt===null)throw Error(Y(349));Vi&30||vE(o,e,r)}n.memoizedState=r;var i={value:r,getSnapshot:e};return n.queue=i,Vw(yE.bind(null,o,i,t),[t]),o.flags|=2048,ll(9,bE.bind(null,o,i,r,e),void 0,null),r},useId:function(){var t=wo(),e=Pt.identifierPrefix;if(We){var r=Qo,o=Yo;r=(o&~(1<<32-so(o)-1)).toString(32)+r,e=":"+e+"R"+r,r=sl++,0")&&(c=c.replace("",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{ep=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?cc(t):""}function cj(t){switch(t.tag){case 5:return cc(t.type);case 16:return cc("Lazy");case 13:return cc("Suspense");case 19:return cc("SuspenseList");case 0:case 2:case 15:return t=tp(t.type,!1),t;case 11:return t=tp(t.type.render,!1),t;case 1:return t=tp(t.type,!0),t;default:return""}}function jg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Aa:return"Fragment";case Ia:return"Portal";case Mg:return"Profiler";case zb:return"StrictMode";case Og:return"Suspense";case Dg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case fx:return(t.displayName||"Context")+".Consumer";case dx:return(t._context.displayName||"Context")+".Provider";case Mb:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ob:return e=t.displayName||null,e!==null?e:jg(t.type)||"Memo";case In:e=t._payload,t=t._init;try{return jg(t(e))}catch{}}return null}function lj(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jg(e);case 8:return e===zb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ei(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function px(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uj(t){var e=px(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function su(t){t._valueTracker||(t._valueTracker=uj(t))}function gx(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),o="";return t&&(o=px(t)?t.checked?"true":"false":t.value),t=o,t!==r?(e.setValue(t),!0):!1}function qd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Fg(t,e){var r=e.checked;return et({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function uw(t,e){var r=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;r=ei(e.value!=null?e.value:r),t._wrapperState={initialChecked:o,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function mx(t,e){e=e.checked,e!=null&&Nb(t,"checked",e,!1)}function Lg(t,e){mx(t,e);var r=ei(e.value),o=e.type;if(r!=null)o==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?qg(t,e.type,r):e.hasOwnProperty("defaultValue")&&qg(t,e.type,ei(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function dw(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function qg(t,e,r){(e!=="number"||qd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var lc=Array.isArray;function Ua(t,e,r,o){if(t=t.options,e){e={};for(var n=0;n"+e.valueOf().toString()+"",e=cu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xc(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var wc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dj=["Webkit","ms","Moz","O"];Object.keys(wc).forEach(function(t){dj.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),wc[e]=wc[t]})});function wx(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||wc.hasOwnProperty(t)&&wc[t]?(""+e).trim():e+"px"}function kx(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=wx(r,e[r],o);r==="float"&&(r="cssFloat"),o?t.setProperty(r,n):t[r]=n}}var fj=et({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $g(t,e){if(e){if(fj[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Y(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Y(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Y(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Y(62))}}function Kg(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wg=null;function Db(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Vg=null,$a=null,Ka=null;function pw(t){if(t=Hl(t)){if(typeof Vg!="function")throw Error(Y(280));var e=t.stateNode;e&&(e=ih(e),Vg(t.stateNode,t.type,e))}}function _x(t){$a?Ka?Ka.push(t):Ka=[t]:$a=t}function Sx(){if($a){var t=$a,e=Ka;if(Ka=$a=null,pw(t),e)for(t=0;t>>=0,t===0?32:31-(Sj(t)/Cj|0)|0}var lu=64,uu=4194304;function uc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Kd(t,e){var r=t.pendingLanes;if(r===0)return 0;var o=0,n=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=uc(s):(i&=a,i!==0&&(o=uc(i)))}else a=r&~n,a!==0?o=uc(a):i!==0&&(o=uc(i));if(o===0)return 0;if(e!==0&&e!==o&&!(e&n)&&(n=o&-o,i=e&-e,n>=i||n===16&&(i&4194240)!==0))return e;if(o&4&&(o|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0r;r++)e.push(t);return e}function Ll(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-so(e),t[e]=r}function Ij(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var o=t.eventTimes;for(t=t.expirationTimes;0=_c),Sw=" ",Cw=!1;function Ux(t,e){switch(t){case"keyup":return rF.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $x(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ra=!1;function nF(t,e){switch(t){case"compositionend":return $x(e);case"keypress":return e.which!==32?null:(Cw=!0,Sw);case"textInput":return t=e.data,t===Sw&&Cw?null:t;default:return null}}function iF(t,e){if(Ra)return t==="compositionend"||!Kb&&Ux(t,e)?(t=qx(),Ju=Hb=On=null,Ra=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Iw(r)}}function Gx(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Gx(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xx(){for(var t=window,e=qd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=qd(t.document)}return e}function Wb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function pF(t){var e=Xx(),r=t.focusedElem,o=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Gx(r.ownerDocument.documentElement,r)){if(o!==null&&Wb(r)){if(e=o.start,t=o.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!t.extend&&i>o&&(n=o,o=i,i=n),n=Aw(r,i);var a=Aw(r,o);n&&a&&(t.rangeCount!==1||t.anchorNode!==n.node||t.anchorOffset!==n.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),t.removeAllRanges(),i>o?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Pa=null,Jg=null,Cc=null,em=!1;function Rw(t,e,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;em||Pa==null||Pa!==qd(o)||(o=Pa,"selectionStart"in o&&Wb(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Cc&&tl(Cc,o)||(Cc=o,o=Gd(Jg,"onSelect"),0za||(t.current=am[za],am[za]=null,za--)}function Oe(t,e){za++,am[za]=t.current,t.current=e}var ti={},Xt=si(ti),fr=si(!1),Ki=ti;function ps(t,e){var r=t.type.contextTypes;if(!r)return ti;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n),n}function hr(t){return t=t.childContextTypes,t!=null}function Yd(){He(fr),He(Xt)}function Dw(t,e,r){if(Xt.current!==ti)throw Error(Y(168));Oe(Xt,e),Oe(fr,r)}function nE(t,e,r){var o=t.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in e))throw Error(Y(108,lj(t)||"Unknown",n));return et({},r,o)}function Qd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ti,Ki=Xt.current,Oe(Xt,t),Oe(fr,fr.current),!0}function jw(t,e,r){var o=t.stateNode;if(!o)throw Error(Y(169));r?(t=nE(t,e,Ki),o.__reactInternalMemoizedMergedChildContext=t,He(fr),He(Xt),Oe(Xt,t)):He(fr),Oe(fr,r)}var $o=null,ah=!1,gp=!1;function iE(t){$o===null?$o=[t]:$o.push(t)}function xF(t){ah=!0,iE(t)}function ci(){if(!gp&&$o!==null){gp=!0;var t=0,e=Re;try{var r=$o;for(Re=1;t>=a,n-=a,Yo=1<<32-so(e)+n|r<T?(A=_,_=null):A=_.sibling;var R=f(v,_,b[T],k);if(R===null){_===null&&(_=A);break}t&&_&&R.alternate===null&&e(v,_),m=i(R,m,T),C===null?S=R:C.sibling=R,C=R,_=A}if(T===b.length)return r(v,_),We&&pi(v,T),S;if(_===null){for(;TT?(A=_,_=null):A=_.sibling;var V=f(v,_,R.value,k);if(V===null){_===null&&(_=A);break}t&&_&&V.alternate===null&&e(v,_),m=i(V,m,T),C===null?S=V:C.sibling=V,C=V,_=A}if(R.done)return r(v,_),We&&pi(v,T),S;if(_===null){for(;!R.done;T++,R=b.next())R=d(v,R.value,k),R!==null&&(m=i(R,m,T),C===null?S=R:C.sibling=R,C=R);return We&&pi(v,T),S}for(_=o(v,_);!R.done;T++,R=b.next())R=h(_,v,T,R.value,k),R!==null&&(t&&R.alternate!==null&&_.delete(R.key===null?T:R.key),m=i(R,m,T),C===null?S=R:C.sibling=R,C=R);return t&&_.forEach(function(E){return e(v,E)}),We&&pi(v,T),S}function y(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===Aa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case au:e:{for(var S=b.key,C=m;C!==null;){if(C.key===S){if(S=b.type,S===Aa){if(C.tag===7){r(v,C.sibling),m=n(C,b.props.children),m.return=v,v=m;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===In&&Kw(S)===C.type){r(v,C.sibling),m=n(C,b.props),m.ref=Ws(v,C,b),m.return=v,v=m;break e}r(v,C);break}else e(v,C);C=C.sibling}b.type===Aa?(m=Pi(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=sd(b.type,b.key,b.props,null,v.mode,k),k.ref=Ws(v,m,b),k.return=v,v=k)}return a(v);case Ia:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(v,m.sibling),m=n(m,b.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else e(v,m);m=m.sibling}m=Sp(b,v.mode,k),m.return=v,v=m}return a(v);case In:return C=b._init,y(v,m,C(b._payload),k)}if(lc(b))return p(v,m,b,k);if(qs(b))return g(v,m,b,k);vu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,b),m.return=v,v=m):(r(v,m),m=_p(b,v.mode,k),m.return=v,v=m),a(v)):r(v,m)}return y}var ms=hE(!0),pE=hE(!1),Ul={},Bo=si(Ul),il=si(Ul),al=si(Ul);function Ti(t){if(t===Ul)throw Error(Y(174));return t}function ty(t,e){switch(Oe(al,e),Oe(il,t),Oe(Bo,Ul),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ug(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ug(e,t)}He(Bo),Oe(Bo,e)}function vs(){He(Bo),He(il),He(al)}function gE(t){Ti(al.current);var e=Ti(Bo.current),r=Ug(e,t.type);e!==r&&(Oe(il,t),Oe(Bo,r))}function ry(t){il.current===t&&(He(Bo),He(il))}var Ge=si(0);function of(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var mp=[];function oy(){for(var t=0;tr?r:4,t(!0);var o=vp.transition;vp.transition={};try{t(!1),e()}finally{Re=r,vp.transition=o}}function PE(){return Kr().memoizedState}function RF(t,e,r){var o=Wn(t);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},BE(t))NE(e,r);else if(r=lE(t,e,r,o),r!==null){var n=rr();co(r,t,o,n),zE(r,e,o)}}function PF(t,e,r){var o=Wn(t),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(BE(t))NE(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,fo(s,a)){var c=e.interleaved;c===null?(n.next=n,Jb(e)):(n.next=c.next,c.next=n),e.interleaved=n;return}}catch{}finally{}r=lE(t,e,n,o),r!==null&&(n=rr(),co(r,t,o,n),zE(r,e,o))}}function BE(t){var e=t.alternate;return t===Je||e!==null&&e===Je}function NE(t,e){Tc=nf=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function zE(t,e,r){if(r&4194240){var o=e.lanes;o&=t.pendingLanes,r|=o,e.lanes=r,Fb(t,r)}}var af={readContext:$r,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},BF={readContext:$r,useCallback:function(t,e){return wo().memoizedState=[t,e===void 0?null:e],t},useContext:$r,useEffect:Vw,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,od(4194308,4,xE.bind(null,e,t),r)},useLayoutEffect:function(t,e){return od(4194308,4,t,e)},useInsertionEffect:function(t,e){return od(4,2,t,e)},useMemo:function(t,e){var r=wo();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var o=wo();return e=r!==void 0?r(e):e,o.memoizedState=o.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},o.queue=t,t=t.dispatch=RF.bind(null,Je,t),[o.memoizedState,t]},useRef:function(t){var e=wo();return t={current:t},e.memoizedState=t},useState:Ww,useDebugValue:cy,useDeferredValue:function(t){return wo().memoizedState=t},useTransition:function(){var t=Ww(!1),e=t[0];return t=AF.bind(null,t[1]),wo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var o=Je,n=wo();if(We){if(r===void 0)throw Error(Y(407));r=r()}else{if(r=e(),Pt===null)throw Error(Y(349));Vi&30||bE(o,e,r)}n.memoizedState=r;var i={value:r,getSnapshot:e};return n.queue=i,Vw(wE.bind(null,o,i,t),[t]),o.flags|=2048,ll(9,yE.bind(null,o,i,r,e),void 0,null),r},useId:function(){var t=wo(),e=Pt.identifierPrefix;if(We){var r=Qo,o=Yo;r=(o&~(1<<32-so(o)-1)).toString(32)+r,e=":"+e+"R"+r,r=sl++,0<\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=a.createElement(r,{is:o.is}):(t=a.createElement(r),r==="select"&&(a=t,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):t=a.createElementNS(t,r),t[To]=e,t[nl]=o,HE(t,e,!1,!1),e.stateNode=t;e:{switch(a=Wg(r,o),r){case"dialog":Fe("cancel",t),Fe("close",t),n=o;break;case"iframe":case"object":case"embed":Fe("load",t),n=o;break;case"video":case"audio":for(n=0;nys&&(e.flags|=128,o=!0,Vs(i,!1),e.lanes=4194304)}else{if(!o)if(t=nf(a),t!==null){if(e.flags|=128,o=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!We)return Lt(e),null}else 2*lt()-i.renderingStartTime>ys&&r!==1073741824&&(e.flags|=128,o=!0,Vs(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=lt(),e.sibling=null,r=Ge.current,Oe(Ge,o?r&1|2:r&1),e):(Lt(e),null);case 22:case 23:return py(),o=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?kr&1073741824&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),null;case 24:return null;case 25:return null}throw Error(Y(156,e.tag))}function FF(t,e){switch(Gb(e),e.tag){case 1:return hr(e.type)&&Qd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vs(),He(fr),He(Xt),oy(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ry(e),null;case 13:if(He(Ge),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Y(340));gs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return He(Ge),null;case 4:return vs(),null;case 10:return Zb(e.type._context),null;case 22:case 23:return py(),null;case 24:return null;default:return null}}var wu=!1,Ut=!1,LF=typeof WeakSet=="function"?WeakSet:Set,ne=null;function ja(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){it(t,e,o)}else r.current=null}function ym(t,e,r){try{r()}catch(o){it(t,e,o)}}var rk=!1;function qF(t,e){if(rm=Vd,t=Gx(),Wb(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==r||n!==0&&d.nodeType!==3||(s=a+n),d!==i||o!==0&&d.nodeType!==3||(c=a+o),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===r&&++l===n&&(s=a),f===i&&++u===o&&(c=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(om={focusedElem:t,selectionRange:r},Vd=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,y=p.memoizedState,v=e.stateNode,m=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Qr(e.type,g),y);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(k){it(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return p=rk,rk=!1,p}function xc(t,e,r){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,i!==void 0&&ym(e,r,i)}n=n.next}while(n!==o)}}function uh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var o=r.create;r.destroy=o()}r=r.next}while(r!==e)}}function wm(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function KE(t){var e=t.alternate;e!==null&&(t.alternate=null,KE(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[To],delete e[nl],delete e[am],delete e[SF],delete e[CF])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function WE(t){return t.tag===5||t.tag===3||t.tag===4}function ok(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||WE(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function km(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Yd));else if(o!==4&&(t=t.child,t!==null))for(km(t,e,r),t=t.sibling;t!==null;)km(t,e,r),t=t.sibling}function _m(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(_m(t,e,r),t=t.sibling;t!==null;)_m(t,e,r),t=t.sibling}var zt=null,Jr=!1;function Tn(t,e,r){for(r=r.child;r!==null;)VE(t,e,r),r=r.sibling}function VE(t,e,r){if(Po&&typeof Po.onCommitFiberUnmount=="function")try{Po.onCommitFiberUnmount(rh,r)}catch{}switch(r.tag){case 5:Ut||ja(r,e);case 6:var o=zt,n=Jr;zt=null,Tn(t,e,r),zt=o,Jr=n,zt!==null&&(Jr?(t=zt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):zt.removeChild(r.stateNode));break;case 18:zt!==null&&(Jr?(t=zt,r=r.stateNode,t.nodeType===8?gp(t.parentNode,r):t.nodeType===1&&gp(t,r),Jc(t)):gp(zt,r.stateNode));break;case 4:o=zt,n=Jr,zt=r.stateNode.containerInfo,Jr=!0,Tn(t,e,r),zt=o,Jr=n;break;case 0:case 11:case 14:case 15:if(!Ut&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ym(r,e,a),n=n.next}while(n!==o)}Tn(t,e,r);break;case 1:if(!Ut&&(ja(r,e),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){it(r,e,s)}Tn(t,e,r);break;case 21:Tn(t,e,r);break;case 22:r.mode&1?(Ut=(o=Ut)||r.memoizedState!==null,Tn(t,e,r),Ut=o):Tn(t,e,r);break;default:Tn(t,e,r)}}function nk(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new LF),e.forEach(function(o){var n=YF.bind(null,t,o);r.has(o)||(r.add(o),o.then(n,n))})}}function Vr(t,e){var r=e.deletions;if(r!==null)for(var o=0;on&&(n=a),o&=~i}if(o=n,o=lt()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*UF(o/1960))-o,10t?16:t,Dn===null)var o=!1;else{if(t=Dn,Dn=null,uf=0,xe&6)throw Error(Y(331));var n=xe;for(xe|=4,ne=t.current;ne!==null;){var i=ne,a=i.child;if(ne.flags&16){var s=i.deletions;if(s!==null){for(var c=0;clt()-fy?Ri(t,0):dy|=r),pr(t,e)}function t2(t,e){e===0&&(t.mode&1?(e=du,du<<=1,!(du&130023424)&&(du=4194304)):e=1);var r=rr();t=fn(t,e),t!==null&&(ql(t,e,r),pr(t,r))}function XF(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),t2(t,r)}function YF(t,e){var r=0;switch(t.tag){case 13:var o=t.stateNode,n=t.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=t.stateNode;break;default:throw Error(Y(314))}o!==null&&o.delete(e),t2(t,r)}var r2;r2=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||fr.current)dr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return dr=!1,DF(t,e,r);dr=!!(t.flags&131072)}else dr=!1,We&&e.flags&1048576&&iE(e,ef,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;id(t,e),t=e.pendingProps;var n=ps(e,Xt.current);Va(e,r),n=iy(null,e,o,t,n,r);var i=ay();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,hr(o)?(i=!0,Zd(e)):i=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,ey(e),n.updater=ch,e.stateNode=n,n._reactInternals=e,fm(e,o,t,r),e=gm(null,e,o,!0,i,r)):(e.tag=0,We&&i&&Vb(e),Yt(null,e,n,r),e=e.child),e;case 16:o=e.elementType;e:{switch(id(t,e),t=e.pendingProps,n=o._init,o=n(o._payload),e.type=o,n=e.tag=ZF(o),t=Qr(o,t),n){case 0:e=pm(null,e,o,t,r);break e;case 1:e=Jw(null,e,o,t,r);break e;case 11:e=Qw(null,e,o,t,r);break e;case 14:e=Zw(null,e,o,Qr(o.type,t),r);break e}throw Error(Y(306,o,""))}return e;case 0:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),pm(t,e,o,n,r);case 1:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),Jw(t,e,o,n,r);case 3:e:{if(FE(e),t===null)throw Error(Y(387));o=e.pendingProps,i=e.memoizedState,n=i.element,lE(t,e),of(e,o,null,r);var a=e.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){n=bs(Error(Y(423)),e),e=ek(t,e,o,r,n);break e}else if(o!==n){n=bs(Error(Y(424)),e),e=ek(t,e,o,r,n);break e}else for(Sr=Un(e.stateNode.containerInfo.firstChild),Er=e,We=!0,to=null,r=hE(e,null,o,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(gs(),o===n){e=hn(t,e,r);break e}Yt(t,e,o,r)}e=e.child}return e;case 5:return pE(e),t===null&&lm(e),o=e.type,n=e.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,nm(o,n)?a=null:i!==null&&nm(o,i)&&(e.flags|=32),jE(t,e),Yt(t,e,a,r),e.child;case 6:return t===null&&lm(e),null;case 13:return LE(t,e,r);case 4:return ty(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=ms(e,null,o,r):Yt(t,e,o,r),e.child;case 11:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),Qw(t,e,o,n,r);case 7:return Yt(t,e,e.pendingProps,r),e.child;case 8:return Yt(t,e,e.pendingProps.children,r),e.child;case 12:return Yt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(o=e.type._context,n=e.pendingProps,i=e.memoizedProps,a=n.value,Oe(tf,o._currentValue),o._currentValue=a,i!==null)if(fo(i.value,a)){if(i.children===n.children&&!fr.current){e=hn(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===o){if(i.tag===1){c=tn(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),um(i.return,r,e),s.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Y(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),um(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Yt(t,e,n.children,r),e=e.child}return e;case 9:return n=e.type,o=e.pendingProps.children,Va(e,r),n=$r(n),o=o(n),e.flags|=1,Yt(t,e,o,r),e.child;case 14:return o=e.type,n=Qr(o,e.pendingProps),n=Qr(o.type,n),Zw(t,e,o,n,r);case 15:return OE(t,e,e.type,e.pendingProps,r);case 17:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),id(t,e),e.tag=1,hr(o)?(t=!0,Zd(e)):t=!1,Va(e,r),dE(e,o,n),fm(e,o,n,r),gm(null,e,o,!0,t,r);case 19:return qE(t,e,r);case 22:return DE(t,e,r)}throw Error(Y(156,e.tag))};function o2(t,e){return Ax(t,e)}function QF(t,e,r,o){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(t,e,r,o){return new QF(t,e,r,o)}function my(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ZF(t){if(typeof t=="function")return my(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Mb)return 11;if(t===Ob)return 14}return 2}function Vn(t,e){var r=t.alternate;return r===null?(r=Lr(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function cd(t,e,r,o,n,i){var a=2;if(o=t,typeof t=="function")my(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Aa:return Pi(r.children,n,i,e);case zb:a=8,n|=8;break;case Og:return t=Lr(12,r,e,n|2),t.elementType=Og,t.lanes=i,t;case Dg:return t=Lr(13,r,e,n),t.elementType=Dg,t.lanes=i,t;case jg:return t=Lr(19,r,e,n),t.elementType=jg,t.lanes=i,t;case fx:return fh(r,n,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ux:a=10;break e;case dx:a=9;break e;case Mb:a=11;break e;case Ob:a=14;break e;case In:a=16,o=null;break e}throw Error(Y(130,t==null?t:typeof t,""))}return e=Lr(a,r,e,n),e.elementType=t,e.type=o,e.lanes=i,e}function Pi(t,e,r,o){return t=Lr(7,t,o,e),t.lanes=r,t}function fh(t,e,r,o){return t=Lr(22,t,o,e),t.elementType=fx,t.lanes=r,t.stateNode={isHidden:!1},t}function Sp(t,e,r){return t=Lr(6,t,null,e),t.lanes=r,t}function Cp(t,e,r){return e=Lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function JF(t,e,r,o,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=np(0),this.expirationTimes=np(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=np(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function vy(t,e,r,o,n,i,a,s,c){return t=new JF(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Lr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ey(i),t}function e8(t,e,r){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(t){console.error(t)}}s2(),ix.exports=Pr;var ky=ix.exports;const Su=Oo(ky),i8=t=>w.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&ky.createPortal(t.children,t.mountNode)),aa=t=>{const e=tj(t);return i8(e)};aa.displayName="Portal";const a8=t=>{const e=Ee(t.root,{children:[t.withArrow&&q("div",{ref:t.arrowRef,className:t.arrowClassName}),t.root.children]});return t.inline?e:q(aa,{mountNode:t.mountNode,children:e})},s8={root:"fui-PopoverSurface"},c8={small:6,medium:8,large:8},l8=H({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),u8=t=>{const e=l8();return t.root.className=j(s8.root,e.root,t.inline&&e.inline,t.size==="small"&&e.smallPadding,t.size==="medium"&&e.mediumPadding,t.size==="large"&&e.largePadding,t.appearance==="inverted"&&e.inverted,t.appearance==="brand"&&e.brand,t.root.className),t.arrowClassName=j(e.arrow,t.size==="small"?e.smallArrow:e.mediumLargeArrow),t},c2=w.forwardRef((t,e)=>{const r=VD(t,e);return u8(r),ge("usePopoverSurfaceStyles_unstable")(r),a8(r)});c2.displayName="PopoverSurface";const d8=4,f8=t=>{const[e,r]=ox(),o={size:"medium",contextTarget:e,setContextTarget:r,...t},n=w.Children.toArray(t.children);let i,a;n.length===2?(i=n[0],a=n[1]):n.length===1&&(a=n[0]);const[s,c]=h8(o),l=w.useRef(0),u=ee((b,k)=>{if(clearTimeout(l.current),!(b instanceof Event)&&b.persist&&b.persist(),b.type==="mouseleave"){var S;l.current=setTimeout(()=>{c(b,k)},(S=t.mouseLeaveDelay)!==null&&S!==void 0?S:500)}else c(b,k)});w.useEffect(()=>()=>{clearTimeout(l.current)},[]);const d=w.useCallback(b=>{u(b,!s)},[u,s]),f=p8(o),{targetDocument:h}=je();var p;rT({contains:Uc,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s,disabledFocusOnIframe:!(!((p=t.closeOnIframeFocus)!==null&&p!==void 0)||p)});const g=o.openOnContext||o.closeOnScroll;oT({contains:Uc,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s||!g});const{findFirstFocusable:y}=bn();w.useEffect(()=>{if(!t.unstable_disableAutoFocus&&s&&f.contentRef.current){var b;const k=(b=f.contentRef.current.getAttribute("tabIndex"))!==null&&b!==void 0?b:void 0,S=isNaN(k)?y(f.contentRef.current):f.contentRef.current;S?.focus()}},[y,s,f.contentRef,t.unstable_disableAutoFocus]);var v,m;return{...o,...f,inertTrapFocus:(v=t.inertTrapFocus)!==null&&v!==void 0?v:t.legacyTrapFocus===void 0?!1:!t.legacyTrapFocus,popoverTrigger:i,popoverSurface:a,open:s,setOpen:u,toggleOpen:d,setContextTarget:r,contextTarget:e,inline:(m=t.inline)!==null&&m!==void 0?m:!1}};function h8(t){const e=ee((a,s)=>{var c;return(c=t.onOpenChange)===null||c===void 0?void 0:c.call(t,a,s)}),[r,o]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1});t.open=r!==void 0?r:t.open;const n=t.setContextTarget,i=w.useCallback((a,s)=>{s&&a.type==="contextmenu"&&n(a),s||n(void 0),o(s),e?.(a,{open:s})},[o,e,n]);return[r,i]}function p8(t){const e={position:"above",align:"center",arrowPadding:2*d8,target:t.openOnContext?t.contextTarget:void 0,...th(t.positioning)};e.coverTarget&&(t.withArrow=!1),t.withArrow&&(e.offset=tx(e.offset,c8[t.size]));const{targetRef:r,containerRef:o,arrowRef:n}=Ab(e);return{triggerRef:r,contentRef:o,arrowRef:n}}const g8=t=>{const{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:c,setOpen:l,size:u,toggleOpen:d,trapFocus:f,triggerRef:h,withArrow:p,inertTrapFocus:g}=t;return w.createElement(Rb.Provider,{value:{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:c,setOpen:l,toggleOpen:d,triggerRef:h,size:u,trapFocus:f,inertTrapFocus:g,withArrow:p}},t.popoverTrigger,t.open&&t.popoverSurface)},l2=t=>{const e=f8(t);return g8(e)};l2.displayName="Popover";const m8=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Ml(e),n=Mt(b=>b.open),i=Mt(b=>b.setOpen),a=Mt(b=>b.toggleOpen),s=Mt(b=>b.triggerRef),c=Mt(b=>b.openOnHover),l=Mt(b=>b.openOnContext),{triggerAttributes:u}=Vf(),d=b=>{l&&(b.preventDefault(),i(b,!0))},f=b=>{l||a(b)},h=b=>{b.key===yn&&n&&!b.isDefaultPrevented()&&(i(b,!1),b.preventDefault())},p=b=>{c&&i(b,!0)},g=b=>{c&&i(b,!1)},y={...u,"aria-expanded":`${n}`,...o?.props,onMouseEnter:ee(ke(o?.props.onMouseEnter,p)),onMouseLeave:ee(ke(o?.props.onMouseLeave,g)),onContextMenu:ee(ke(o?.props.onContextMenu,d)),ref:bt(s,o?.ref)},v={...y,onClick:ee(ke(o?.props.onClick,f)),onKeyDown:ee(ke(o?.props.onKeyDown,h))},m=Ui(o?.type==="button"||o?.type==="a"?o.type:"div",v);return{children:Uf(t.children,Ui(o?.type==="button"||o?.type==="a"?o.type:"div",l?y:r?v:m))}},v8=t=>t.children,_y=t=>{const e=m8(t);return v8(e)};_y.displayName="PopoverTrigger";_y.isFluentTriggerComponent=!0;const b8=6,y8=4,w8=t=>{var e,r,o,n;const i=e3(),a=$z(),{targetDocument:s}=je(),[c,l]=Hc(),{appearance:u="normal",children:d,content:f,withArrow:h=!1,positioning:p="above",onVisibleChange:g,relationship:y,showDelay:v=250,hideDelay:m=250,mountNode:b}=t,[k,S]=mr({state:t.visible,initialState:!1}),C=w.useCallback((I,F)=>{l(),S($=>(F.visible!==$&&g?.(I,F),F.visible))},[l,S,g]),_={withArrow:h,positioning:p,showDelay:v,hideDelay:m,relationship:y,visible:k,shouldRenderTooltip:k,appearance:u,mountNode:b,components:{content:"div"},content:ae(f,{defaultProps:{role:"tooltip"},elementType:"div"})};_.content.id=gr("tooltip-",_.content.id);const T={enabled:_.visible,arrowPadding:2*y8,position:"above",align:"center",offset:4,...th(_.positioning)};_.withArrow&&(T.offset=tx(T.offset,b8));const{targetRef:A,containerRef:R,arrowRef:V}=Ab(T);_.content.ref=bt(_.content.ref,R),_.arrowRef=V,er(()=>{if(k){var I;const F={hide:N=>C(void 0,{visible:!1,documentKeyboardEvent:N})};(I=i.visibleTooltip)===null||I===void 0||I.hide(),i.visibleTooltip=F;const $=N=>{N.key===yn&&!N.defaultPrevented&&(F.hide(N),N.preventDefault())};return s?.addEventListener("keydown",$,{capture:!0}),()=>{i.visibleTooltip===F&&(i.visibleTooltip=void 0),s?.removeEventListener("keydown",$,{capture:!0})}}},[i,s,k,C]);const E=w.useRef(!1),U=w.useCallback(I=>{if(I.type==="focus"&&E.current){E.current=!1;return}const F=i.visibleTooltip?0:_.showDelay;c(()=>{C(I,{visible:!0})},F),I.persist()},[c,C,_.showDelay,i]),[D]=w.useState(()=>{const I=$=>{var N;!((N=$.detail)===null||N===void 0)&&N.isFocusedProgrammatically&&(E.current=!0)};let F=null;return $=>{F?.removeEventListener(uo,I),$?.addEventListener(uo,I),F=$}}),B=w.useCallback(I=>{let F=_.hideDelay;I.type==="blur"&&(F=0,E.current=s?.activeElement===I.target),c(()=>{C(I,{visible:!1})},F),I.persist()},[c,C,_.hideDelay,s]);_.content.onPointerEnter=ke(_.content.onPointerEnter,l),_.content.onPointerLeave=ke(_.content.onPointerLeave,B),_.content.onFocus=ke(_.content.onFocus,l),_.content.onBlur=ke(_.content.onBlur,B);const M=Ml(d),K={};return y==="label"?typeof _.content.children=="string"?K["aria-label"]=_.content.children:(K["aria-labelledby"]=_.content.id,_.shouldRenderTooltip=!0):y==="description"&&(K["aria-describedby"]=_.content.id,_.shouldRenderTooltip=!0),a&&(_.shouldRenderTooltip=!1),_.children=Uf(d,{...K,...M?.props,ref:bt(M?.ref,D,T.target===void 0?A:void 0),onPointerEnter:ee(ke(M==null||(e=M.props)===null||e===void 0?void 0:e.onPointerEnter,U)),onPointerLeave:ee(ke(M==null||(r=M.props)===null||r===void 0?void 0:r.onPointerLeave,B)),onFocus:ee(ke(M==null||(o=M.props)===null||o===void 0?void 0:o.onFocus,U)),onBlur:ee(ke(M==null||(n=M.props)===null||n===void 0?void 0:n.onBlur,B))}),_},k8=t=>Ee(w.Fragment,{children:[t.children,t.shouldRenderTooltip&&q(aa,{mountNode:t.mountNode,children:Ee(t.content,{children:[t.withArrow&&q("div",{ref:t.arrowRef,className:t.arrowClassName}),t.content.children]})})]}),_8={content:"fui-Tooltip__content"},S8=H({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),C8=t=>{const e=S8();return t.content.className=j(_8.content,e.root,t.appearance==="inverted"&&e.inverted,t.visible&&e.visible,t.content.className),t.arrowClassName=e.arrow,t},Sy=t=>{const e=w8(t);return C8(e),ge("useTooltipStyles_unstable")(e),k8(e)};Sy.displayName="Tooltip";Sy.isFluentTriggerComponent=!0;const u2=t=>{const{iconOnly:e,iconPosition:r}=t;return Ee(t.root,{children:[r!=="after"&&t.icon&&q(t.icon,{}),!e&&t.root.children,r==="after"&&t.icon&&q(t.icon,{})]})},d2=w.createContext(void 0),T8={};d2.Provider;const x8=()=>{var t;return(t=w.useContext(d2))!==null&&t!==void 0?t:T8},f2=(t,e)=>{const{size:r}=x8(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:a=!1,icon:s,iconPosition:c="before",shape:l="rounded",size:u=r??"medium"}=t,d=ve(s,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:a,iconPosition:c,shape:l,size:u,iconOnly:!!(d?.children&&!t.children),components:{root:"button",icon:"span"},root:ae(we(n,Ui(t.as,t)),{elementType:"button",defaultProps:{ref:e,type:"button"}}),icon:d}},fk={root:"fui-Button",icon:"fui-Button__icon"},E8=de("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),I8=de("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),A8=H({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),R8=H({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),P8=H({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),B8=H({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),N8=H({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),h2=t=>{const e=E8(),r=I8(),o=A8(),n=R8(),i=P8(),a=B8(),s=N8(),{appearance:c,disabled:l,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:p,size:g}=t;return t.root.className=j(fk.root,e,c&&o[c],o[g],d&&g==="small"&&o.smallWithIcon,d&&g==="large"&&o.largeWithIcon,o[p],(l||u)&&n.base,(l||u)&&n.highContrast,c&&(l||u)&&n[c],c==="primary"&&i.primary,i[g],i[p],f&&a[g],t.root.className),t.icon&&(t.icon.className=j(fk.icon,r,!!t.root.children&&s[h],s[g],t.icon.className)),t},No=w.forwardRef((t,e)=>{const r=f2(t,e);return h2(r),ge("useButtonStyles_unstable")(r),u2(r)});No.displayName="Button";function z8(t,e){const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:i}=t,{onClick:a,role:s}=e.root,[c,l]=mr({state:r,defaultState:o,initialState:!1}),u=s==="menuitemcheckbox"||s==="checkbox",d=w.useCallback(f=>{if(!n&&!i){if(f.defaultPrevented)return;l(!c)}},[c,n,i,l]);return{...e,checked:c,root:{...e.root,[u?"aria-checked":"aria-pressed"]:c,onClick:ee(ke(a,d))}}}const M8=(t,e)=>{const r=f2(t,e);return z8(t,r)},hk={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},O8=H({base:{De3pzq:"f1nfm20t",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],sj55zd:"f14nttnl",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",Jwef8y:"f1knas48",Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1xlaoq0",gg5e9n:["f1m52nbi","f1ub3y4t"],Bi91k9c:"feu1g3u",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},outline:{De3pzq:"f1q9pm1r",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],Jwef8y:"fjxutwb",iro3zm:"fwiml72",B8q5s1w:"fcaw57c",Bci5o5g:["fpwd27e","f1999bjr"],n8qw10:"f1hi52o4",Bdrgwmp:["f1999bjr","fpwd27e"]},primary:{De3pzq:"f8w4g0q",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},secondary:{},subtle:{De3pzq:"fq5gl1p",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1eryozh",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},transparent:{De3pzq:"f1q9pm1r",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1qj7y59",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{d:[".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}",".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}",".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}",".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),D8=H({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),j8=H({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),F8=H({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),L8=t=>{const e=O8(),r=D8(),o=j8(),n=F8(),{appearance:i,checked:a,disabled:s,disabledFocusable:c}=t;return t.root.className=j(hk.root,i==="primary"&&n.base,i==="primary"&&(s||c)&&n.disabled,a&&e.base,a&&e.highContrast,i&&a&&e[i],(s||c)&&r.base,i&&(s||c)&&r[i],t.root.className),t.icon&&(t.icon.className=j(hk.icon,(i==="subtle"||i==="transparent")&&o.subtleOrTransparent&&o.highContrast,t.icon.className)),h2(t),t},p2=w.forwardRef((t,e)=>{const r=M8(t,e);return L8(r),ge("useToggleButtonStyles_unstable")(r),u2(r)});p2.displayName="ToggleButton";const g2=w.createContext(void 0),q8=g2.Provider,H8=()=>w.useContext(g2),U8=t=>{var e,r,o,n;const{generatedControlId:i,orientation:a,required:s,size:c,validationState:l}=t,u=(e=t.label)===null||e===void 0?void 0:e.htmlFor,d=(r=t.label)===null||r===void 0?void 0:r.id,f=(o=t.validationMessage)===null||o===void 0?void 0:o.id,h=(n=t.hint)===null||n===void 0?void 0:n.id;return{field:w.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:u,labelId:d,orientation:a,required:s,size:c,validationMessageId:f,validationState:l}),[i,h,u,d,a,s,c,f,l])}};function Kl(t,e){return m2(H8(),t,e)}function m2(t,e,r){if(!t)return e;e={...e};const{generatedControlId:o,hintId:n,labelFor:i,labelId:a,required:s,validationMessageId:c,validationState:l}=t;if(o){var u,d;(d=(u=e).id)!==null&&d!==void 0||(u.id=o)}if(a&&(!r?.supportsLabelFor||i!==e.id)){var f,h,p;(p=(f=e)[h="aria-labelledby"])!==null&&p!==void 0||(f[h]=a)}if((c||n)&&(e["aria-describedby"]=[c,n,e?.["aria-describedby"]].filter(Boolean).join(" ")),l==="error"){var g,y,v;(v=(g=e)[y="aria-invalid"])!==null&&v!==void 0||(g[y]=!0)}if(s)if(r?.supportsRequired){var m,b;(b=(m=e).required)!==null&&b!==void 0||(m.required=!0)}else{var k,S,C;(C=(k=e)[S="aria-required"])!==null&&C!==void 0||(k[S]=!0)}if(r?.supportsSize){var _,T;(T=(_=e).size)!==null&&T!==void 0||(_.size=t.size)}return e}const $8=(t,e)=>{let{children:r}=t;return typeof r=="function"&&(r=r(m2(e.field)||{})),q(q8,{value:e?.field,children:Ee(t.root,{children:[t.label&&q(t.label,{}),r,t.validationMessage&&Ee(t.validationMessage,{children:[t.validationMessageIcon&&q(t.validationMessageIcon,{}),t.validationMessage.children]}),t.hint&&q(t.hint,{})]})})},K8=(t,e)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=t;return{disabled:r,required:ve(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:ae(we("label",{ref:e,...t}),{elementType:"label"})}},W8=t=>Ee(t.root,{children:[t.root.children,t.required&&q(t.required,{})]}),pk={root:"fui-Label",required:"fui-Label__required"},V8=H({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),G8=t=>{const e=V8();return t.root.className=j(pk.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=j(pk.required,e.required,t.disabled&&e.requiredDisabled,t.required.className)),t},Vt=w.forwardRef((t,e)=>{const r=K8(t,e);return G8(r),ge("useLabelStyles_unstable")(r),W8(r)});Vt.displayName="Label";const X8={error:w.createElement(G3,null),warning:w.createElement(vM,null),success:w.createElement($3,null),none:void 0},Y8=(t,e)=>{const{children:r,orientation:o="vertical",required:n=!1,validationState:i=t.validationMessage?"error":"none",size:a="medium"}=t,s=gr("field-"),c=s+"__control",l=ae(we("div",{...t,ref:e},["children"]),{elementType:"div"}),u=ve(t.label,{defaultProps:{htmlFor:c,id:s+"__label",required:n,size:a},elementType:Vt}),d=ve(t.validationMessage,{defaultProps:{id:s+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),f=ve(t.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),h=X8[i],p=ve(t.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:c,orientation:o,required:n,size:a,validationState:i,components:{root:"div",label:Vt,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:l,label:u,validationMessageIcon:p,validationMessage:d,hint:f}},Xs={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},Q8=H({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),Z8=H({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),J8=de("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),e7=H({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),t7=de("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),r7=H({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),o7=t=>{const{validationState:e}=t,r=t.orientation==="horizontal",o=Q8();t.root.className=j(Xs.root,o.base,r&&o.horizontal,r&&!t.label&&o.horizontalNoLabel,t.root.className);const n=Z8();t.label&&(t.label.className=j(Xs.label,n.base,r&&n.horizontal,!r&&n.vertical,t.label.size==="large"&&n.large,!r&&t.label.size==="large"&&n.verticalLarge,t.label.className));const i=t7(),a=r7();t.validationMessageIcon&&(t.validationMessageIcon.className=j(Xs.validationMessageIcon,i,e!=="none"&&a[e],t.validationMessageIcon.className));const s=J8(),c=e7();t.validationMessage&&(t.validationMessage.className=j(Xs.validationMessage,s,e==="error"&&c.error,!!t.validationMessageIcon&&c.withIcon,t.validationMessage.className)),t.hint&&(t.hint.className=j(Xs.hint,s,t.hint.className))},Io=w.forwardRef((t,e)=>{const r=Y8(t,e);o7(r);const o=U8(r);return $8(r,o)});Io.displayName="Field";const n7=(t,e)=>{t=Kl(t,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:o,shape:n="square",size:i="medium",labelPosition:a="after",onChange:s}=t,[c,l]=mr({defaultState:t.defaultChecked,state:t.checked,initialState:!1}),u=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=c==="mixed",f=gr("checkbox-",u.primary.id);let h;d?n==="circular"?h=w.createElement(fb,null):h=i==="large"?w.createElement(mM,null):w.createElement(gM,null):c&&(h=i==="large"?w.createElement(U3,null):w.createElement(H3,null));const p={shape:n,checked:c,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:Vt},root:ae(t.root,{defaultProps:{ref:jl(),...u.root},elementType:"span"}),input:ae(t.input,{defaultProps:{type:"checkbox",id:f,ref:e,checked:c===!0,...u.primary},elementType:"input"}),label:ve(t.label,{defaultProps:{htmlFor:f,disabled:r,required:o,size:"medium"},elementType:Vt}),indicator:ve(t.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};p.input.onChange=ee(y=>{const v=y.currentTarget.indeterminate?"mixed":y.currentTarget.checked;s?.(y,{checked:v}),l(v)});const g=bt(p.input.ref);return p.input.ref=g,er(()=>{g.current&&(g.current.indeterminate=d)},[g,d]),p},i7=t=>Ee(t.root,{children:[q(t.input,{}),t.labelPosition==="before"&&t.label&&q(t.label,{}),q(t.indicator,{}),t.labelPosition==="after"&&t.label&&q(t.label,{})]}),Cu={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},a7=de("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),s7=H({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),c7=de("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),l7=H({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),u7=de("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),d7=H({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),f7=H({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),h7=t=>{const{checked:e,disabled:r,labelPosition:o,shape:n,size:i}=t,a=a7(),s=s7();t.root.className=j(Cu.root,a,r?s.disabled:e==="mixed"?s.mixed:e?s.checked:s.unchecked,t.root.className);const c=c7(),l=l7();t.input.className=j(Cu.input,c,i==="large"&&l.large,l[o],t.input.className);const u=u7(),d=d7();t.indicator&&(t.indicator.className=j(Cu.indicator,u,i==="large"&&d.large,n==="circular"&&d.circular,t.indicator.className));const f=f7();return t.label&&(t.label.className=j(Cu.label,f.base,f[i],f[o],t.label.className)),t},Em=w.forwardRef((t,e)=>{const r=n7(t,e);return h7(r),ge("useCheckboxStyles_unstable")(r),i7(r)});Em.displayName="Checkbox";const p7=(t,e)=>{t=Kl(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Hf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:a}=t,[s,c]=mr({state:t.value,defaultState:t.defaultValue,initialState:""}),l=Is({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:ae(t.input,{defaultProps:{type:"text",ref:e,...l.primary},elementType:"input"}),contentAfter:ve(t.contentAfter,{elementType:"span"}),contentBefore:ve(t.contentBefore,{elementType:"span"}),root:ae(t.root,{defaultProps:l.root,elementType:"span"})};return u.input.value=s,u.input.onChange=ee(d=>{const f=d.target.value;a?.(d,{value:f}),c(f)}),u},g7=t=>Ee(t.root,{children:[t.contentBefore&&q(t.contentBefore,{}),q(t.input,{}),t.contentAfter&&q(t.contentAfter,{})]}),Tu={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},m7=de("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),v7=H({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),b7=de("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),y7=H({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),w7=de("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),k7=H({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),_7=t=>{const{size:e,appearance:r}=t,o=t.input.disabled,n=`${t.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),a=v7(),s=y7(),c=k7();t.root.className=j(Tu.root,m7(),a[e],a[r],!o&&r==="outline"&&a.outlineInteractive,!o&&r==="underline"&&a.underlineInteractive,!o&&i&&a.filledInteractive,i&&a.filled,!o&&n&&a.invalid,o&&a.disabled,t.root.className),t.input.className=j(Tu.input,b7(),e==="large"&&s.large,o&&s.disabled,t.input.className);const l=[w7(),o&&c.disabled,c[e]];return t.contentBefore&&(t.contentBefore.className=j(Tu.contentBefore,...l,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=j(Tu.contentAfter,...l,t.contentAfter.className)),t},Xa=w.forwardRef((t,e)=>{const r=p7(t,e);return _7(r),ge("useInputStyles_unstable")(r),g7(r)});Xa.displayName="Input";const S7=t=>q(t.root,{}),C7=(t,e)=>{const{bordered:r=!1,fit:o="default",block:n=!1,shape:i="square",shadow:a=!1}=t;return{bordered:r,fit:o,block:n,shape:i,shadow:a,components:{root:"img"},root:ae(we("img",{ref:e,...t}),{elementType:"img"})}},T7={root:"fui-Image"},x7=H({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),E7=t=>{const e=x7();t.root.className=j(T7.root,e.base,t.block&&e.block,t.bordered&&e.bordered,t.shadow&&e.shadow,e[t.fit],e[t.shape],t.root.className)},Cy=w.forwardRef((t,e)=>{const r=C7(t,e);return E7(r),ge("useImageStyles_unstable")(r),S7(r)});Cy.displayName="Image";const I7=t=>{const{disabled:e,disabledFocusable:r}=t,{onClick:o,onKeyDown:n,role:i,tabIndex:a}=t.root;return t.root.as==="a"&&(t.root.href=e?void 0:t.root.href,(e||r)&&(t.root.role=i||"link")),(t.root.as==="a"||t.root.as==="span")&&(t.root.tabIndex=a??(e&&!r?void 0:0)),t.root.onClick=s=>{e||r?s.preventDefault():o?.(s)},t.root.onKeyDown=s=>{(e||r)&&(s.key===Ai||s.key===Mn)?(s.preventDefault(),s.stopPropagation()):n?.(s)},t.disabled=e||r,t.root["aria-disabled"]=e||r||void 0,t.root.as==="button"&&(t.root.disabled=e&&!r),t},A7=(t,e)=>{const r=db(),{appearance:o="default",disabled:n=!1,disabledFocusable:i=!1,inline:a=!1}=t,s=t.as||(t.href?"a":"button"),c={role:s==="span"?"button":void 0,type:s==="button"?"button":void 0,...t,as:s},l={appearance:o,disabled:n,disabledFocusable:i,inline:a,components:{root:s},root:ae(we(s,{ref:e,...c}),{elementType:s}),backgroundAppearance:r};return I7(l),l},R7={root:"fui-Link"},P7=H({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),B7=t=>{const e=P7(),{appearance:r,disabled:o,inline:n,root:i,backgroundAppearance:a}=t;return t.root.className=j(R7.root,e.root,e.focusIndicator,i.as==="a"&&i.href&&e.href,i.as==="button"&&e.button,r==="subtle"&&e.subtle,a==="inverted"&&e.inverted,n&&e.inline,o&&e.disabled,t.root.className),t},N7=t=>q(t.root,{}),Gn=w.forwardRef((t,e)=>{const r=A7(t,e);return B7(r),N7(r)});Gn.displayName="Link";const Ty=As(void 0),z7={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},M7=Ty.Provider,Xe=t=>Rs(Ty,(e=z7)=>t(e)),v2=w.createContext(void 0),O7=!1,D7=v2.Provider,j7=()=>{var t;return(t=w.useContext(v2))!==null&&t!==void 0?t:O7},b2=w.createContext(void 0),F7={headerId:""};b2.Provider;const L7=()=>{var t;return(t=w.useContext(b2))!==null&&t!==void 0?t:F7},xy=As(void 0),q7={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},H7=xy.Provider,Im=t=>Rs(xy,(e=q7)=>t(e)),dl="fuimenuenter",U7=t=>{const{refs:e,callback:r,element:o,disabled:n}=t,i=ee(a=>{const s=e[0],c=a.target;var l;!Uc((l=s.current)!==null&&l!==void 0?l:null,c)&&!n&&r(a)});w.useEffect(()=>{if(o!=null)return n||o.addEventListener(dl,i),()=>{o.removeEventListener(dl,i)}},[i,o,n])},$7=(t,e)=>{t.dispatchEvent(new CustomEvent(dl,{bubbles:!0,detail:{nativeEvent:e}}))};function Ey(){const t=Xe(r=>r.isSubmenu),e=wb(xy);return t||e}const K7=["after","after-bottom","before-top","before","before-bottom","above"],W7=t=>{const e=Ey(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:c=!1,openOnHover:l=e,defaultCheckedValues:u,mountNode:d=null}=t,f=gr("menu"),[h,p]=ox(),g={position:e?"after":"below",align:e?"top":"start",target:t.openOnContext?h:void 0,fallbackPositions:e?K7:void 0,...th(t.positioning)},y=w.Children.toArray(t.children);let v,m;y.length===2?(v=y[0],m=y[1]):y.length===1&&(m=y[0]);const{targetRef:b,containerRef:k}=Ab(g),[S,C]=G7({hoverDelay:r,isSubmenu:e,setContextTarget:p,closeOnScroll:a,menuPopoverRef:k,triggerRef:b,open:t.open,defaultOpen:t.defaultOpen,onOpenChange:t.onOpenChange,openOnContext:s}),[_,T]=V7({checkedValues:t.checkedValues,defaultCheckedValues:u,onCheckedValueChange:t.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:f,isSubmenu:e,openOnHover:l,contextTarget:h,setContextTarget:p,hasCheckmarks:n,hasIcons:i,closeOnScroll:a,menuTrigger:v,menuPopover:m,mountNode:d,triggerRef:b,menuPopoverRef:k,components:{},openOnContext:s,open:S,setOpen:C,checkedValues:_,onCheckedValueChange:T,persistOnItemClick:c}},V7=t=>{const[e,r]=mr({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),o=ee((n,{name:i,checkedItems:a})=>{var s;(s=t.onCheckedValueChange)===null||s===void 0||s.call(t,n,{name:i,checkedItems:a}),r(c=>({...c,[i]:a}))});return[e,o]},G7=t=>{const{targetDocument:e}=je(),r=Xe(h=>h.setOpen),o=ee((h,p)=>{var g;return(g=t.onOpenChange)===null||g===void 0?void 0:g.call(t,h,p)}),n=w.useRef(0),i=w.useRef(!1),[a,s]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1}),c=ee((h,p)=>{const g=h instanceof CustomEvent&&h.type===dl?h.detail.nativeEvent:h;o?.(g,{...p}),p.open&&h.type==="contextmenu"&&t.setContextTarget(h),p.open||t.setContextTarget(void 0),p.bubble&&r(h,{...p}),s(p.open)}),l=ee((h,p)=>{if(clearTimeout(n.current),!(h instanceof Event)&&h.persist&&h.persist(),h.type==="mouseleave"||h.type==="mouseenter"||h.type==="mousemove"||h.type===dl){var g;!((g=t.triggerRef.current)===null||g===void 0)&&g.contains(h.target)&&(i.current=h.type==="mouseenter"||h.type==="mousemove"),n.current=setTimeout(()=>c(h,p),t.hoverDelay)}else c(h,p)});rT({contains:Uc,disabled:!a,element:e,refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),callback:h=>l(h,{open:!1,type:"clickOutside",event:h})});const u=t.openOnContext||t.closeOnScroll;oT({contains:Uc,element:e,callback:h=>l(h,{open:!1,type:"scrollOutside",event:h}),refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),disabled:!a||!u}),U7({element:e,callback:h=>{i.current||l(h,{open:!1,type:"menuMouseEnter",event:h})},disabled:!a,refs:[t.menuPopoverRef]}),w.useEffect(()=>()=>{clearTimeout(n.current)},[]);const{findFirstFocusable:d}=bn(),f=w.useCallback(()=>{const h=d(t.menuPopoverRef.current);h?.focus()},[d,t.menuPopoverRef]);return w.useEffect(()=>{a&&f()},[a,f]),[a,l]};function X7(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:c,open:l,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:p,triggerRef:g}=t;return{menu:{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:c,open:l,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:p,triggerRef:g}}}const Y7=(t,e)=>w.createElement(M7,{value:e.menu},t.menuTrigger,t.open&&t.menuPopover),y2=t=>{const e=W7(t),r=X7(e);return Y7(e,r)};y2.displayName="Menu";function Q7(t,e){const{headerId:r}=L7();return{components:{root:"div"},root:ae(we("div",{ref:e,id:r,...t}),{elementType:"div"})}}const Z7={root:"fui-MenuGroupHeader"},J7=H({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),eL=t=>{const e=J7();return t.root.className=j(Z7.root,e.root,t.root.className),t},tL=t=>q(t.root,{}),w2=w.forwardRef((t,e)=>{const r=Q7(t,e);return eL(r),ge("useMenuGroupHeaderStyles_unstable")(r),tL(r)});w2.displayName="MenuGroupHeader";const rL=(t,e)=>{const r=Im(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=t.root;return t.root.onKeyDown=n=>{var i;o?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&e.current&&r?.(n,e.current)},t},oL=dT(N3,z3),nL=dT(P3,B3),iL=(t,e)=>{const r=j7(),o=Xe(g=>g.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:a=r,persistOnClick:s=o}=t,c=Im(g=>g.hasIcons),l=Im(g=>g.hasCheckmarks),u=Xe(g=>g.setOpen),{dir:d}=je(),f=w.useRef(null),h=w.useRef(!1),p={hasSubmenu:a,disabled:i,persistOnClick:s,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:ae(we(n,Ui(n,{role:"menuitem",...t,disabled:!1,disabledFocusable:i,ref:bt(e,f),onKeyDown:ee(g=>{var y;(y=t.onKeyDown)===null||y===void 0||y.call(t,g),!g.isDefaultPrevented()&&(g.key===Mn||g.key===Ai)&&(h.current=!0)}),onMouseEnter:ee(g=>{var y,v;(y=f.current)===null||y===void 0||y.focus(),(v=t.onMouseEnter)===null||v===void 0||v.call(t,g)}),onClick:ee(g=>{var y;!a&&!s&&(u(g,{open:!1,keyboard:h.current,bubble:!0,type:"menuItemClick",event:g}),h.current=!1),(y=t.onClick)===null||y===void 0||y.call(t,g)})})),{elementType:"div"}),icon:ve(t.icon,{renderByDefault:c,elementType:"span"}),checkmark:ve(t.checkmark,{renderByDefault:l,elementType:"span"}),submenuIndicator:ve(t.submenuIndicator,{renderByDefault:a,defaultProps:{children:d==="ltr"?w.createElement(oL,null):w.createElement(nL,null)},elementType:"span"}),content:ve(t.content,{renderByDefault:!!t.children,defaultProps:{children:t.children},elementType:"span"}),secondaryContent:ve(t.secondaryContent,{elementType:"span"})};return rL(p,f),p},aL=t=>Ee(t.root,{children:[t.checkmark&&q(t.checkmark,{}),t.icon&&q(t.icon,{}),t.content&&q(t.content,{}),t.secondaryContent&&q(t.secondaryContent,{}),t.submenuIndicator&&q(t.submenuIndicator,{})]}),sL=H({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),cL=t=>{const e=sL();t.checkmark&&(t.checkmark.className=j(e.root,t.checked&&e.rootChecked,t.checkmark.className))},fa={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},lL=de("rpii7ln","rj2dzlr",{r:[".rpii7ln{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rpii7ln:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rpii7ln:hover .fui-Icon-filled{display:inline;}",".rpii7ln:hover .fui-Icon-regular{display:none;}",".rpii7ln:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rpii7ln:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rpii7ln:focus{outline-style:none;}",".rpii7ln:focus-visible{outline-style:none;}",".rpii7ln[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rpii7ln[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rj2dzlr{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rj2dzlr:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rj2dzlr:hover .fui-Icon-filled{display:inline;}",".rj2dzlr:hover .fui-Icon-regular{display:none;}",".rj2dzlr:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rj2dzlr:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rj2dzlr:focus{outline-style:none;}",".rj2dzlr:focus-visible{outline-style:none;}",".rj2dzlr[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rj2dzlr[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rpii7ln[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rj2dzlr[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),uL=de("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),dL=de("r79npjw","r1j24c7y",[".r79npjw{padding-left:2px;padding-right:2px;color:var(--colorNeutralForeground3);}",".r79npjw:hover{color:var(--colorNeutralForeground3Hover);}",".r79npjw:focus{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y{padding-right:2px;padding-left:2px;color:var(--colorNeutralForeground3);}",".r1j24c7y:hover{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y:focus{color:var(--colorNeutralForeground3Hover);}"]),fL=de("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),hL=de("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),pL=H({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),gL=t=>{const e=pL(),r=lL(),o=uL(),n=dL(),i=fL(),a=hL();t.root.className=j(fa.root,r,t.disabled&&e.disabled,t.root.className),t.content&&(t.content.className=j(fa.content,o,t.content.className)),t.checkmark&&(t.checkmark.className=j(fa.checkmark,e.checkmark,t.checkmark.className)),t.secondaryContent&&(t.secondaryContent.className=j(fa.secondaryContent,!t.disabled&&n,t.secondaryContent.className)),t.icon&&(t.icon.className=j(fa.icon,i,t.icon.className)),t.submenuIndicator&&(t.submenuIndicator.className=j(fa.submenuIndicator,a,t.submenuIndicator.className)),cL(t)},Sa=w.forwardRef((t,e)=>{const r=iL(t,e);return gL(r),ge("useMenuItemStyles_unstable")(r),aL(r)});Sa.displayName="MenuItem";const mL=(t,e)=>{const{findAllFocusable:r}=bn(),o=vL(),n=wb(Ty),i=Wc({circular:!0,ignoreDefaultKeydown:{Tab:n}});bL(t,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=w.useRef(null),s=w.useCallback((g,y)=>{const v=["menuitem","menuitemcheckbox","menuitemradio"];if(!a.current)return;const m=r(a.current,T=>T.hasAttribute("role")&&v.indexOf(T.getAttribute("role"))!==-1);let b=m.indexOf(y)+1;b===m.length&&(b=0);const k=m.map(T=>{var A;return(A=T.textContent)===null||A===void 0?void 0:A.charAt(0).toLowerCase()}),S=g.key.toLowerCase(),C=(T,A)=>{for(let R=T;R-1&&m[_].focus()},[r]);var c;const[l,u]=mr({state:(c=t.checkedValues)!==null&&c!==void 0?c:n?o.checkedValues:void 0,defaultState:t.defaultCheckedValues,initialState:{}});var d;const f=(d=t.onCheckedValueChange)!==null&&d!==void 0?d:n?o.onCheckedValueChange:void 0,h=ee((g,y,v,m)=>{const k=[...l?.[y]||[]];m?k.splice(k.indexOf(v),1):k.push(v),f?.(g,{name:y,checkedItems:k}),u(S=>({...S,[y]:k}))}),p=ee((g,y,v)=>{const m=[v];u(b=>({...b,[y]:m})),f?.(g,{name:y,checkedItems:m})});return{components:{root:"div"},root:ae(we("div",{ref:bt(e,a),role:"menu","aria-labelledby":o.triggerId,...i,...t}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:l,hasMenuContext:n,setFocusByFirstCharacter:s,selectRadio:p,toggleCheckbox:h}},vL=()=>{const t=Xe(i=>i.checkedValues),e=Xe(i=>i.onCheckedValueChange),r=Xe(i=>i.triggerId),o=Xe(i=>i.hasIcons),n=Xe(i=>i.hasCheckmarks);return{checkedValues:t,onCheckedValueChange:e,triggerId:r,hasIcons:o,hasCheckmarks:n}},bL=(t,e,r)=>{let o=!1;for(const n in e)t[n]&&(o=!0);return r&&o},yL=(t,e)=>q(H7,{value:e.menuList,children:q(t.root,{})});function wL(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}=t;return{menuList:{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}}}const kL={root:"fui-MenuList"},_L=H({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),SL=t=>{const e=_L();return t.root.className=j(kL.root,e.root,t.hasMenuContext&&e.hasMenuContext,t.root.className),t},k2=w.forwardRef((t,e)=>{const r=mL(t,e),o=wL(r);return SL(r),ge("useMenuListStyles_unstable")(r),yL(r,o)});k2.displayName="MenuList";const CL=(t,e)=>{const r=Xe(k=>k.menuPopoverRef),o=Xe(k=>k.setOpen),n=Xe(k=>k.open),i=Xe(k=>k.openOnHover),a=Xe(k=>k.triggerRef),s=Ey(),c=w.useRef(!0),l=w.useRef(0),u=M4(),{dir:d}=je(),f=d==="ltr"?kb:Qf,h=w.useCallback(k=>{k&&k.addEventListener("mouseover",S=>{c.current&&(c.current=!1,$7(r.current,S),l.current=setTimeout(()=>c.current=!0,250))})},[r,l]);w.useEffect(()=>{},[]);var p;const g=(p=Xe(k=>k.inline))!==null&&p!==void 0?p:!1,y=Xe(k=>k.mountNode),v=ae(we("div",{role:"presentation",...u,...t,ref:bt(e,r,h)}),{elementType:"div"}),{onMouseEnter:m,onKeyDown:b}=v;return v.onMouseEnter=ee(k=>{i&&o(k,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:k}),m?.(k)}),v.onKeyDown=ee(k=>{const S=k.key;if(S===yn||s&&S===f){var C;n&&(!((C=r.current)===null||C===void 0)&&C.contains(k.target))&&!k.isDefaultPrevented()&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),k.preventDefault())}if(S===LT&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),!s)){var _;(_=a.current)===null||_===void 0||_.focus()}b?.(k)}),{inline:g,mountNode:y,components:{root:"div"},root:v}},TL={root:"fui-MenuPopover"},xL=H({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),EL=t=>{const e=xL();return t.root.className=j(TL.root,e.root,t.root.className),t},IL=t=>t.inline?q(t.root,{}):q(aa,{mountNode:t.mountNode,children:q(t.root,{})}),_2=w.forwardRef((t,e)=>{const r=CL(t,e);return EL(r),ge("useMenuPopoverStyles_unstable")(r),IL(r)});_2.displayName="MenuPopover";const AL=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Xe(E=>E.triggerRef),n=Xe(E=>E.menuPopoverRef),i=Xe(E=>E.setOpen),a=Xe(E=>E.open),s=Xe(E=>E.triggerId),c=Xe(E=>E.openOnHover),l=Xe(E=>E.openOnContext),u=z4(),d=Ey(),{findFirstFocusable:f}=bn(),h=w.useCallback(()=>{const E=f(n.current);E?.focus()},[f,n]),p=w.useRef(!1),g=w.useRef(!1),{dir:y}=je(),v=y==="ltr"?Qf:kb,m=Ml(e),b=E=>{ha(E)||E.isDefaultPrevented()||l&&(E.preventDefault(),i(E,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:E}))},k=E=>{ha(E)||l||(i(E,{open:!a,keyboard:p.current,type:"menuTriggerClick",event:E}),p.current=!1)},S=E=>{if(ha(E))return;const U=E.key;!l&&(d&&U===v||!d&&U===Yf)&&i(E,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:E}),U===yn&&!d&&i(E,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:E}),a&&U===v&&d&&h()},C=E=>{ha(E)||c&&g.current&&i(E,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:E})},_=E=>{ha(E)||c&&!g.current&&(i(E,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:E}),g.current=!0)},T=E=>{ha(E)||c&&i(E,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:E})},A={id:s,...u,...m?.props,ref:bt(o,m?.ref),onMouseEnter:ee(ke(m?.props.onMouseEnter,C)),onMouseLeave:ee(ke(m?.props.onMouseLeave,T)),onContextMenu:ee(ke(m?.props.onContextMenu,b)),onMouseMove:ee(ke(m?.props.onMouseMove,_))},R={"aria-haspopup":"menu","aria-expanded":!a&&!d?void 0:a,...A,onClick:ee(ke(m?.props.onClick,k)),onKeyDown:ee(ke(m?.props.onKeyDown,S))},V=Ui(m?.type==="button"||m?.type==="a"?m.type:"div",R);return{isSubmenu:d,children:Uf(e,l?A:r?R:V)}},ha=t=>{const e=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return at(t.target)&&e(t.target)?!0:at(t.currentTarget)&&e(t.currentTarget)},RL=t=>w.createElement(D7,{value:t.isSubmenu},t.children),Iy=t=>{const e=AL(t);return RL(e)};Iy.displayName="MenuTrigger";Iy.isFluentTriggerComponent=!0;const S2=w.createContext(void 0),PL={};S2.Provider;const BL=()=>w.useContext(S2)||PL,NL=t=>Ee(t.root,{children:[q(t.input,{}),q(t.indicator,{}),t.label&&q(t.label,{})]}),zL=(t,e)=>{const r=BL(),{name:o=r.name,checked:n=r.value!==void 0?r.value===t.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===t.value:void 0,labelPosition:a=r.layout==="horizontal-stacked"?"below":"after",disabled:s=r.disabled,required:c=r.required,"aria-describedby":l=r["aria-describedby"],onChange:u}=t,d=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=ae(t.root,{defaultProps:{ref:jl(),...d.root},elementType:"span"}),h=ae(t.input,{defaultProps:{ref:e,type:"radio",id:gr("radio-",d.primary.id),name:o,checked:n,defaultChecked:i,disabled:s,required:c,"aria-describedby":l,...d.primary},elementType:"input"});h.onChange=ke(h.onChange,y=>u?.(y,{value:y.currentTarget.value}));const p=ve(t.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:Vt}),g=ae(t.indicator,{defaultProps:{"aria-hidden":!0,children:w.createElement(fb,null)},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:Vt,indicator:"div"},root:f,input:h,label:p,indicator:g}},xu={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},ML=de("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),OL=H({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),DL=de("r9gx1vl","r1uk1i2c",[".r9gx1vl{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r9gx1vl:enabled{cursor:pointer;}",".r9gx1vl:enabled~.fui-Radio__label{cursor:pointer;}",".r9gx1vl:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r9gx1vl:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r9gx1vl:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r9gx1vl:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r9gx1vl:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r9gx1vl:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".r1uk1i2c{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r1uk1i2c:enabled{cursor:pointer;}",".r1uk1i2c:enabled~.fui-Radio__label{cursor:pointer;}",".r1uk1i2c:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1uk1i2c:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r1uk1i2c:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r1uk1i2c:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r1uk1i2c:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r1uk1i2c:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"]),jL=H({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}"]}),FL=de("rid4516",null,[".rid4516{width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}"]),LL=H({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),qL=t=>{const{labelPosition:e}=t,r=ML(),o=OL();t.root.className=j(xu.root,r,e==="below"&&o.vertical,t.root.className);const n=DL(),i=jL();t.input.className=j(xu.input,n,e==="below"&&i.below,t.input.className);const a=FL();t.indicator.className=j(xu.indicator,a,t.indicator.className);const s=LL();t.label&&(t.label.className=j(xu.label,s.base,s[e],t.label.className))},Am=w.forwardRef((t,e)=>{const r=zL(t,e);return qL(r),ge("useRadioStyles_unstable")(r),NL(r)});Am.displayName="Radio";const gk=(t,e,r)=>{let o=t;if(e!==void 0){if(r!==void 0&&e>r)return t;o=Math.max(e,o)}return r!==void 0&&(o=Math.min(r,o)),o},mk=(t,e,r)=>e!==void 0&&t===e?r===e?"both":"min":r!==void 0&&t===r?"max":"none";function HL(t){const e=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(t));return e?e[1]?-e[1].length:e[2]?e[2].length:0:0}function Eu(t,e,r=10){const o=Math.pow(r,e);return Math.round(t*o)/o}const Tp=150,UL=80,$L=1e3,KL=(t,e,r)=>t+(e-t)*r,WL=(t,e)=>{t=Kl(t,{supportsLabelFor:!0,supportsRequired:!0});const r=Is({props:t,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),o=Hf();var n;const{value:i,displayValue:a,defaultValue:s,min:c,max:l,step:u=1,stepPage:d=1,precision:f,onChange:h,size:p="medium",appearance:g=(n=o.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",root:y,input:v,incrementButton:m,decrementButton:b}=t,k=w.useMemo(()=>f??Math.max(HL(u),0),[f,u]),[S,C]=mr({state:i,defaultState:s,initialState:0}),_=i!==void 0,[T,A]=w.useState(void 0),[R,V]=w.useState("rest"),E=w.useRef({value:S,spinState:"rest",spinTime:0,spinDelay:Tp,atBound:S!==null?mk(Eu(S,k),c,l):"none"}),[U,D]=Hc(),B=(se,ye,tt)=>{let dt=E.current.value;if(tt){const Ah=parseFloat(tt);isNaN(Ah)||(dt=Ah)}const ar=dt,Nr=ye==="up"||ye==="upPage"?1:-1,go=ye==="upPage"||ye==="downPage"?d:u;if(ar===null){const jA=gk((c===void 0?0:c)+go*Nr,c,l);G(se,jA);return}let Yl=ar+go*Nr;Number.isNaN(Yl)||(Yl=gk(Yl,c,l)),G(se,Yl),E.current.spinState!=="rest"&&U(()=>{E.current.spinTime+=E.current.spinDelay,E.current.spinDelay=KL(Tp,UL,E.current.spinTime/$L),B(se,ye)},E.current.spinDelay)},M=se=>{E.current.previousTextValue||(E.current.previousTextValue=T??String(S));const ye=se.target.value;A(ye)},K=se=>{E.current.spinState="up",B(se,"up")},I=se=>{E.current.spinState="down",B(se,"down")},F=se=>{D(),E.current.spinState="rest",E.current.spinDelay=Tp,E.current.spinTime=0},$=se=>{G(se,S,T),E.current.previousTextValue=void 0},N=se=>{let ye="rest";se.key===_b?(B(se,"up",T),ye="up"):se.key===Yf?(B(se,"down",T),ye="down"):se.key===QO?(se.preventDefault(),B(se,"upPage",T),ye="up"):se.key===YO?(se.preventDefault(),B(se,"downPage",T),ye="down"):!se.shiftKey&&se.key===HT&&c!==void 0?(G(se,c),ye="down"):!se.shiftKey&&se.key===qT&&l!==void 0?(G(se,l),ye="up"):se.key===Ai?(G(se,S,T),E.current.previousTextValue=void 0):se.key===yn&&E.current.previousTextValue&&(A(void 0),E.current.previousTextValue=void 0),R!==ye&&V(ye)},O=se=>{R!=="rest"&&(V("rest"),E.current.spinState="rest")},G=(se,ye,tt)=>{const dt=ye!==void 0&&S!==ye,ar=tt!==void 0&&E.current.previousTextValue!==void 0&&E.current.previousTextValue!==tt;let Nr;if(dt)Nr=Eu(ye,k),C(Nr);else if(ar&&!_){const go=parseFloat(tt);isNaN(go)||C(Eu(go,k))}(dt||ar)&&h?.(se,{value:Nr,displayValue:tt}),A(void 0)},Q={size:p,appearance:g,spinState:R,atBound:E.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:ae(y,{defaultProps:r.root,elementType:"span"}),input:ae(v,{defaultProps:{ref:e,autoComplete:"off",role:"spinbutton",appearance:g,type:"text",...r.primary},elementType:"input"}),incrementButton:ae(m,{defaultProps:{tabIndex:-1,children:w.createElement(W3,null),disabled:r.primary.disabled,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:ae(b,{defaultProps:{tabIndex:-1,children:w.createElement(K3,null),disabled:r.primary.disabled,"aria-label":"Decrement value",type:"button"},elementType:"button"})};let fe;if(T!==void 0)fe=T;else if(i===null||S===null)fe=a??"",E.current.value=null,E.current.atBound="none";else{const se=Eu(S,k);E.current.value=se,E.current.atBound=mk(se,c,l),_?fe=a??String(se):fe=String(se)}Q.input.value=fe,Q.input["aria-valuemin"]=c,Q.input["aria-valuemax"]=l,Q.input["aria-valuenow"]=S??void 0;var Ae;return Q.input["aria-valuetext"]=(Ae=Q.input["aria-valuetext"])!==null&&Ae!==void 0?Ae:i!==void 0&&a||void 0,Q.input.onChange=ke(Q.input.onChange,M),Q.input.onBlur=ke(Q.input.onBlur,$),Q.input.onKeyDown=ke(Q.input.onKeyDown,N),Q.input.onKeyUp=ke(Q.input.onKeyUp,O),Q.incrementButton.onMouseDown=ke(K,Q.incrementButton.onMouseDown),Q.incrementButton.onMouseUp=ke(Q.incrementButton.onMouseUp,F),Q.incrementButton.onMouseLeave=ke(Q.incrementButton.onMouseLeave,F),Q.decrementButton.onMouseDown=ke(I,Q.decrementButton.onMouseDown),Q.decrementButton.onMouseUp=ke(Q.decrementButton.onMouseUp,F),Q.decrementButton.onMouseLeave=ke(Q.decrementButton.onMouseLeave,F),Q},VL=t=>Ee(t.root,{children:[q(t.input,{}),q(t.incrementButton,{}),q(t.decrementButton,{})]}),Iu={root:"fui-SpinButton",input:"fui-SpinButton__input",incrementButton:"fui-SpinButton__incrementButton",decrementButton:"fui-SpinButton__decrementButton"},vk={buttonActive:"fui-SpinButton__button_active"},GL=de("rkqmps4","r1trw52p",{r:[".rkqmps4{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.rkqmps4::before{content:"";box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.rkqmps4::after{box-sizing:border-box;content:"";position:absolute;right:0;bottom:0;left:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rkqmps4:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rkqmps4:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rkqmps4:focus-within{outline:2px solid transparent;}",".r1trw52p{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1trw52p::before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r1trw52p::after{box-sizing:border-box;content:"";position:absolute;left:0;bottom:0;right:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1trw52p:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1trw52p:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1trw52p:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.rkqmps4::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rkqmps4:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),XL=H({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",uwmqm3:["f1f5gg8d","f1vdfbxk"]},medium:{},outline:{},outlineInteractive:{Bo3r8zu:"f1w2y1rc",Hpvxnh:["f1gofhvl","f18htlvq"],Bx11ytk:"ffcnd28",B1rg0w0:["f18htlvq","f1gofhvl"],Bsg1tlv:"f6lmxco",Brjw370:["fcoc0mf","f15r4wkl"],xcfy85:"f1ipdth8",Bcc6kan:["f15r4wkl","fcoc0mf"]},underline:{B0qfbqy:"f1o236ok",B4f6apu:["faeg28l","f64aojp"],y0oebl:"fdw6hkg",uvfttm:["f64aojp","faeg28l"],Budzafs:["f1vk4jnx","f1v3v894"],r59vdv:["f1v3v894","f1vk4jnx"],n07z76:["fzi2j54","f1un0uoc"],ck0cow:["f1un0uoc","fzi2j54"]},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",B3778ie:["f9pmbr4","ffh3ws5"],d9w3h3:["ffh3ws5","f9pmbr4"],Bl18szs:["f19438ov","f1i9y5j"],B4j8arr:["f1i9y5j","f19438ov"]},filled:{B0qfbqy:"f1fjh9ub",B4f6apu:["ff9c942","f6rdg5o"],y0oebl:"fdw6hkg",uvfttm:["f6rdg5o","ff9c942"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f7dgwnz",Bk5zm6e:["f1edeodt","fszsv3f"],Bqjgrrk:"f1172wan",Bm6vgfq:["fszsv3f","f1edeodt"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},filledInteractive:{B05mzqr:"f1xqt08",tb9y6h:["fzt5lgo","f8tv3r9"],jcehpj:"fyhrops",B23o0hn:["f8tv3r9","fzt5lgo"]},invalid:{emecyz:"fl48pg9",lz0pba:["f1a168p3","f1pvdymy"],Bo1k74p:"f11knvgl",Ba322q7:["f1pvdymy","f1a168p3"]},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",Bq4z7u6:"f1a0lfh7",Bk5zm6e:["f1p2ejm6","fmzytvz"],Bqjgrrk:"fas2e61",Bm6vgfq:["fmzytvz","f1p2ejm6"],Cffpyd:"flb8es4",hxi8he:["f1lclws","frjp63v"],Bcuq369:"f1yv9wnt",Imo2if:["frjp63v","f1lclws"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1o236ok::before{border-top-width:0;}",".faeg28l::before{border-right-width:0;}",".f64aojp::before{border-left-width:0;}",".fdw6hkg::before{border-bottom-width:1px;}",".f1vk4jnx::before{border-bottom-right-radius:var(--borderRadiusNone);}",".f1v3v894::before{border-bottom-left-radius:var(--borderRadiusNone);}",".fzi2j54::before{border-top-right-radius:var(--borderRadiusNone);}",".f1un0uoc::before{border-top-left-radius:var(--borderRadiusNone);}",".f9pmbr4::after{border-bottom-right-radius:var(--borderRadiusNone);}",".ffh3ws5::after{border-bottom-left-radius:var(--borderRadiusNone);}",".f19438ov::after{border-top-right-radius:var(--borderRadiusNone);}",".f1i9y5j::after{border-top-left-radius:var(--borderRadiusNone);}",".f1fjh9ub::before{border-top-width:1px;}",".ff9c942::before{border-right-width:1px;}",".f6rdg5o::before{border-left-width:1px;}",".f163fonl::before{border-top-style:solid;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f11yjt3y::before{border-bottom-style:solid;}",".f7dgwnz::before{border-top-color:var(--colorTransparentStroke);}",".f1edeodt::before{border-right-color:var(--colorTransparentStroke);}",".fszsv3f::before{border-left-color:var(--colorTransparentStroke);}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fl48pg9:not(:focus-within)::before,.fl48pg9:hover:not(:focus-within)::before{border-top-color:var(--colorPaletteRedBorder2);}",".f1a168p3:not(:focus-within)::before,.f1a168p3:hover:not(:focus-within)::before{border-right-color:var(--colorPaletteRedBorder2);}",".f1pvdymy:not(:focus-within)::before,.f1pvdymy:hover:not(:focus-within)::before{border-left-color:var(--colorPaletteRedBorder2);}",".f11knvgl:not(:focus-within)::before,.f11knvgl:hover:not(:focus-within)::before{border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1a0lfh7::before{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1p2ejm6::before{border-right-color:var(--colorNeutralStrokeDisabled);}",".fmzytvz::before{border-left-color:var(--colorNeutralStrokeDisabled);}",".fas2e61::before{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],h:[".f1w2y1rc:hover::before{border-top-color:var(--colorNeutralStroke1Hover);}",".f1gofhvl:hover::before{border-right-color:var(--colorNeutralStroke1Hover);}",".f18htlvq:hover::before{border-left-color:var(--colorNeutralStroke1Hover);}",".ffcnd28:hover::before{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".f1xqt08:hover::before,.f1xqt08:focus-within::before{border-top-color:var(--colorTransparentStrokeInteractive);}",".fzt5lgo:hover::before,.fzt5lgo:focus-within::before{border-right-color:var(--colorTransparentStrokeInteractive);}",".f8tv3r9:hover::before,.f8tv3r9:focus-within::before{border-left-color:var(--colorTransparentStrokeInteractive);}",".fyhrops:hover::before,.fyhrops:focus-within::before{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f6lmxco:active::before,.f6lmxco:focus-within::before{border-top-color:var(--colorNeutralStroke1Pressed);}",".fcoc0mf:active::before,.fcoc0mf:focus-within::before{border-right-color:var(--colorNeutralStroke1Pressed);}",".f15r4wkl:active::before,.f15r4wkl:focus-within::before{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1ipdth8:active::before,.f1ipdth8:focus-within::before{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.flb8es4::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lclws::before{border-right-color:GrayText;}.frjp63v::before{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yv9wnt::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),YL=de("r1ljrqje",null,[".r1ljrqje{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:3;outline-style:none;border:0;padding:0;color:var(--colorNeutralForeground1);background-color:transparent;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;width:100%;}",".r1ljrqje::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),QL=H({disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",yvdlaj:"fahhnxm"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),bk=de("r1g4chgs",null,[".r1g4chgs{display:inline-flex;width:24px;align-items:center;justify-content:center;border:0;position:absolute;outline-style:none;height:16px;background-color:transparent;color:var(--colorNeutralForeground3);grid-column-start:2;border-radius:0;padding:0 5px 0 5px;}",".r1g4chgs:active{outline-style:none;}",".r1g4chgs:enabled:hover{cursor:pointer;color:var(--colorNeutralForeground3Hover);background-color:var(--colorSubtleBackgroundHover);}",".r1g4chgs:enabled:active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:disabled{cursor:not-allowed;color:var(--colorNeutralForegroundDisabled);}"]),ZL=H({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{z8tnut:"f1khb0e9",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},decrementButtonSmall:{z8tnut:"f1nbblvp",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1jnq6q7",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},outline:{},underline:{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1bifk9c",p743kt:"fp1zg4s",B7xitij:"fo6hitd",B6siaa6:"f1wiab75",Ba9qmo4:"fj9zm5z",Dyrjrp:"f1cqwcg4"},"filled-darker":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"fwwxidx",p743kt:"fp1zg4s",B7xitij:"f14i52sd",B6siaa6:"f1wiab75",Ba9qmo4:"fwry2ka",Dyrjrp:"f1cqwcg4"},"filled-lighter":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1yywxnv",drw0cw:"fzaa11h",idzz8t:"f4fpmm9",Dyrjrp:"f1cqwcg4"}},{d:[".f16hsg94{grid-row-start:1;}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f10ra9hq{padding-top:4px;}",".f1brlhvm{padding-bottom:1px;}",".faunodf{grid-row-start:2;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1sl3k7w{padding-top:1px;}",".f1y2xyjm{padding-bottom:4px;}",".f1khb0e9{padding-top:3px;}",".f1sgzk6v{padding-right:6px;}",".f1bg5zqg{padding-left:6px;}",".f1ov4xf1{padding-bottom:0px;}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fvblgha{height:12px;}",".f1nbblvp{padding-top:0px;}",".f1jnq6q7{padding-bottom:3px;}",".f3rmtva{background-color:transparent;}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1no7wuu:enabled:hover{color:var(--colorNeutralForeground3Hover);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fp1zg4s:enabled:active{color:var(--colorNeutralForeground3Pressed);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1wiab75:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".fj9zm5z:enabled.fui-SpinButton__button_active{background-color:var(--colorSubtleBackgroundPressed);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".fwry2ka:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground3Pressed);}",".f1yywxnv:enabled:hover{background-color:var(--colorNeutralBackground1Hover);}",".fzaa11h:enabled:active,.fzaa11h:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".f4fpmm9:enabled:active,.f4fpmm9:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground1Pressed);}"]}),JL=H({base:{Bceei9c:"fdrzuqr",eoavqd:"fphbwmw"},outline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},underline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-darker":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-lighter":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".few7wvn:enabled:hover{color:var(--colorNeutralForegroundDisabled);}",".f110wuh6:enabled:hover{background-color:transparent;}",".f9s4mys:enabled:active{color:var(--colorNeutralForegroundDisabled);}",".f10404rc:enabled:active{background-color:transparent;}",".fwzu9cz:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForegroundDisabled);}",".f1snwkb6:enabled.fui-SpinButton__button_active{background-color:transparent;}"],h:[".fphbwmw:hover{cursor:not-allowed;}"]}),e9=t=>{const{appearance:e,atBound:r,spinState:o,size:n}=t,i=t.input.disabled,a=`${t.input["aria-invalid"]}`=="true",s=e.startsWith("filled"),c=XL(),l=ZL(),u=JL(),d=QL();return t.root.className=j(Iu.root,GL(),c[n],c[e],s&&c.filled,!i&&e==="outline"&&c.outlineInteractive,!i&&e==="underline"&&c.underlineInteractive,!i&&s&&c.filledInteractive,!i&&a&&c.invalid,i&&c.disabled,t.root.className),t.incrementButton.className=j(Iu.incrementButton,o==="up"&&`${vk.buttonActive}`,bk(),l.increment,l[e],n==="small"&&l.incrementButtonSmall,(r==="max"||r==="both")&&u.base,(r==="max"||r==="both")&&u[e],t.incrementButton.className),t.decrementButton.className=j(Iu.decrementButton,o==="down"&&`${vk.buttonActive}`,bk(),l.decrement,l[e],n==="small"&&l.decrementButtonSmall,(r==="min"||r==="both")&&u.base,(r==="min"||r==="both")&&u[e],t.decrementButton.className),t.input.className=j(Iu.input,YL(),i&&d.disabled,t.input.className),t},C2=w.forwardRef((t,e)=>{const r=WL(t,e);return e9(r),ge("useSpinButtonStyles_unstable")(r),VL(r)});C2.displayName="SpinButton";const t9=()=>w.createElement("svg",{className:"fui-Spinner__Progressbar"},w.createElement("circle",{className:"fui-Spinner__Track"}),w.createElement("circle",{className:"fui-Spinner__Tail"})),T2=w.createContext(void 0),r9={};T2.Provider;const o9=()=>{var t;return(t=w.useContext(T2))!==null&&t!==void 0?t:r9},n9=(t,e)=>{const{size:r}=o9(),{appearance:o="primary",labelPosition:n="after",size:i=r??"medium",delay:a=0}=t,s=gr("spinner"),{role:c="progressbar",tabIndex:l,...u}=t,d=ae(we("div",{ref:e,role:c,...u},["size"]),{elementType:"div"}),[f,h]=w.useState(!0),[p,g]=Hc();w.useEffect(()=>{if(!(a<=0))return h(!1),p(()=>{h(!0)},a),()=>{g()}},[p,g,a]);const y=ve(t.label,{defaultProps:{id:s},renderByDefault:!1,elementType:Vt}),v=ve(t.spinner,{renderByDefault:!0,defaultProps:{children:w.createElement(t9,null),tabIndex:l},elementType:"span"});return y&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=y.id),{appearance:o,delay:a,labelPosition:n,size:i,shouldRenderSpinner:f,components:{root:"div",spinner:"span",label:Vt},root:d,spinner:v,label:y}},i9=t=>{const{labelPosition:e,shouldRenderSpinner:r}=t;return Ee(t.root,{children:[t.label&&r&&(e==="above"||e==="before")&&q(t.label,{}),t.spinner&&r&&q(t.spinner,{}),t.label&&r&&(e==="below"||e==="after")&&q(t.label,{})]})},xp={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},a9=H({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),s9=H({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),c9=H({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),l9=H({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),u9=t=>{const{labelPosition:e,size:r,appearance:o="primary"}=t,n=a9(),i=s9(),a=l9(),s=c9();return t.root.className=j(xp.root,n.root,(e==="above"||e==="below")&&n.vertical,(e==="before"||e==="after")&&n.horizontal,t.root.className),t.spinner&&(t.spinner.className=j(xp.spinner,i.spinnerSVG,i[r],s[o],t.spinner.className)),t.label&&(t.label.className=j(xp.label,a[r],a[o],t.label.className)),t},Ac=w.forwardRef((t,e)=>{const r=n9(t,e);return u9(r),ge("useSpinnerStyles_unstable")(r),i9(r)});Ac.displayName="Spinner";const d9=(t,e)=>{t=Kl(t,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:o,disabled:n,labelPosition:i="after",onChange:a,required:s}=t,c=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),l=gr("switch-",c.primary.id),u=ae(t.root,{defaultProps:{ref:jl(),...c.root},elementType:"div"}),d=ae(t.indicator,{defaultProps:{"aria-hidden":!0,children:w.createElement(fb,null)},elementType:"div"}),f=ae(t.input,{defaultProps:{checked:r,defaultChecked:o,id:l,ref:e,role:"switch",type:"checkbox",...c.primary},elementType:"input"});f.onChange=ke(f.onChange,p=>a?.(p,{checked:p.currentTarget.checked}));const h=ve(t.label,{defaultProps:{disabled:n,htmlFor:l,required:s,size:"medium"},elementType:Vt});return{labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:Vt},root:u,indicator:d,input:f,label:h}},f9=t=>{const{labelPosition:e}=t;return Ee(t.root,{children:[q(t.input,{}),e!=="after"&&t.label&&q(t.label,{}),q(t.indicator,{}),e==="after"&&t.label&&q(t.label,{})]})},Au={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},h9=de("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),p9=H({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),g9=de("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),m9=H({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),v9=de("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),b9=H({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),y9=H({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),w9=t=>{const e=h9(),r=p9(),o=g9(),n=m9(),i=v9(),a=b9(),s=y9(),{label:c,labelPosition:l}=t;return t.root.className=j(Au.root,e,l==="above"&&r.vertical,t.root.className),t.indicator.className=j(Au.indicator,o,c&&l==="above"&&n.labelAbove,t.indicator.className),t.input.className=j(Au.input,i,c&&a[l],t.input.className),t.label&&(t.label.className=j(Au.label,s.base,s[l],t.label.className)),t},x2=w.forwardRef((t,e)=>{const r=d9(t,e);return w9(r),ge("useSwitchStyles_unstable")(r),f9(r)});x2.displayName="Switch";const k9={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},E2=As(void 0),_9=E2.Provider,Yr=t=>Rs(E2,(e=k9)=>t(e)),S9=(t,e)=>{const{content:r,disabled:o=!1,icon:n,onClick:i,onFocus:a,value:s}=t,c=Yr(R=>R.appearance),l=Yr(R=>R.reserveSelectedTabSpace),u=Yr(R=>R.selectTabOnFocus),d=Yr(R=>R.disabled),f=Yr(R=>R.selectedValue===s),h=Yr(R=>R.onRegister),p=Yr(R=>R.onUnregister),g=Yr(R=>R.onSelect),y=Yr(R=>R.size),v=Yr(R=>!!R.vertical),m=d||o,b=w.useRef(null),k=R=>g(R,{value:s}),S=ee(ke(i,k)),C=ee(ke(a,k));w.useEffect(()=>(h({value:s,ref:b}),()=>{p({value:s,ref:b})}),[h,p,b,s]);const _=ve(n,{elementType:"span"}),T=ae(r,{defaultProps:{children:t.children},elementType:"span"}),A=!!(_?.children&&!T.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:ae(we("button",{ref:bt(e,b),role:"tab",type:"button","aria-selected":m?void 0:`${f}`,...t,disabled:m,onClick:S,onFocus:u?C:a}),{elementType:"button"}),icon:_,iconOnly:A,content:T,contentReservedSpace:ve(r,{renderByDefault:!f&&!A&&l,defaultProps:{children:t.children},elementType:"span"}),appearance:c,disabled:m,selected:f,size:y,value:s,vertical:v}},C9=t=>Ee(t.root,{children:[t.icon&&q(t.icon,{}),!t.iconOnly&&q(t.content,{}),t.contentReservedSpace&&q(t.contentReservedSpace,{})]}),yk={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},T9=H({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),x9=t=>{if(t){var e;const r=((e=t.parentElement)===null||e===void 0?void 0:e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},o=t.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},wk=(t,e)=>{var r;const o=e!=null?(r=t[JSON.stringify(e)])===null||r===void 0?void 0:r.ref.current:void 0;return o?x9(o):void 0},E9=t=>{const{disabled:e,selected:r,vertical:o}=t,n=T9(),[i,a]=w.useState(),[s,c]=w.useState({offset:0,scale:1}),l=Yr(f=>f.getRegisteredTabs);if(w.useEffect(()=>{i&&c({offset:0,scale:1})},[i]),r){const{previousSelectedValue:f,selectedValue:h,registeredTabs:p}=l();if(f&&i!==f){const g=wk(p,f),y=wk(p,h);if(y&&g){const v=o?g.y-y.y:g.x-y.x,m=o?g.height/y.height:g.width/y.width;c({offset:v,scale:m}),a(f)}}}else i&&a(void 0);if(e)return t;const u=s.offset===0&&s.scale===1;t.root.className=j(t.root.className,r&&n.base,r&&u&&n.animated,r&&(o?n.vertical:n.horizontal));const d={[yk.offsetVar]:`${s.offset}px`,[yk.scaleVar]:`${s.scale}`};return t.root.style={...d,...t.root.style},t},Ep={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},I9={content:"fui-Tab__content--reserved-space"},A9=H({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),R9=H({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),P9=H({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),B9=H({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),N9=H({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),z9=H({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),M9=t=>{const e=A9(),r=R9(),o=P9(),n=B9(),i=N9(),a=z9(),{appearance:s,disabled:c,selected:l,size:u,vertical:d}=t;return t.root.className=j(Ep.root,e.base,d?e.vertical:e.horizontal,u==="small"&&(d?e.smallVertical:e.smallHorizontal),u==="medium"&&(d?e.mediumVertical:e.mediumHorizontal),u==="large"&&(d?e.largeVertical:e.largeHorizontal),r.base,!c&&s==="subtle"&&e.subtle,!c&&s==="transparent"&&e.transparent,!c&&l&&e.selected,c&&e.disabled,o.base,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),c&&o.disabled,l&&n.base,l&&!c&&n.selected,l&&u==="small"&&(d?n.smallVertical:n.smallHorizontal),l&&u==="medium"&&(d?n.mediumVertical:n.mediumHorizontal),l&&u==="large"&&(d?n.largeVertical:n.largeHorizontal),l&&c&&n.disabled,t.root.className),t.icon&&(t.icon.className=j(Ep.icon,i.base,i[u],l&&i.selected,t.icon.className)),t.contentReservedSpace&&(t.contentReservedSpace.className=j(I9.content,a.base,u==="large"?a.largeSelected:a.selected,t.icon?a.iconBefore:a.noIconBefore,a.placeholder,t.content.className),t.contentReservedSpaceClassName=t.contentReservedSpace.className),t.content.className=j(Ep.content,a.base,u==="large"&&a.large,l&&(u==="large"?a.largeSelected:a.selected),t.icon?a.iconBefore:a.noIconBefore,t.content.className),E9(t),t},ld=w.forwardRef((t,e)=>{const r=S9(t,e);return M9(r),ge("useTabStyles_unstable")(r),C9(r)});ld.displayName="Tab";const O9=(t,e)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,disabled:n=!1,onTabSelect:i,selectTabOnFocus:a=!1,size:s="medium",vertical:c=!1}=t,l=w.useRef(null),u=Wc({circular:!0,axis:c?"vertical":"horizontal",memorizeCurrent:!0}),[d,f]=mr({state:t.selectedValue,defaultState:t.defaultSelectedValue,initialState:void 0}),h=w.useRef(void 0),p=w.useRef(void 0);w.useEffect(()=>{p.current=h.current,h.current=d},[d]);const g=ee((k,S)=>{f(S.value),i?.(k,S)}),y=w.useRef({}),v=ee(k=>{y.current[JSON.stringify(k.value)]=k}),m=ee(k=>{delete y.current[JSON.stringify(k.value)]}),b=w.useCallback(()=>({selectedValue:h.current,previousSelectedValue:p.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:ae(we("div",{ref:bt(e,l),role:"tablist","aria-orientation":c?"vertical":"horizontal",...u,...t}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:o,disabled:n,selectTabOnFocus:a,selectedValue:d,size:s,vertical:c,onRegister:v,onUnregister:m,onSelect:g,getRegisteredTabs:b}},D9=(t,e)=>q(t.root,{children:q(_9,{value:e.tabList,children:t.root.children})}),j9={root:"fui-TabList"},F9=H({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),L9=t=>{const{vertical:e}=t,r=F9();return t.root.className=j(j9.root,r.root,e?r.vertical:r.horizontal,t.root.className),t};function q9(t){const{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onRegister:a,onUnregister:s,onSelect:c,getRegisteredTabs:l,size:u,vertical:d}=t;return{tabList:{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onSelect:c,onRegister:a,onUnregister:s,getRegisteredTabs:l,size:u,vertical:d}}}const I2=w.forwardRef((t,e)=>{const r=O9(t,e),o=q9(r);return L9(r),ge("useTabListStyles_unstable")(r),D9(r,o)});I2.displayName="TabList";const A2=(t,e)=>{const{wrap:r,truncate:o,block:n,italic:i,underline:a,strikethrough:s,size:c,font:l,weight:u,align:d}=t;return{align:d??"start",block:n??!1,font:l??"base",italic:i??!1,size:c??300,strikethrough:s??!1,truncate:o??!1,underline:a??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:ae(we("span",{ref:e,...t}),{elementType:"span"})}},R2=t=>q(t.root,{}),H9={root:"fui-Text"},U9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),P2=t=>{const e=U9();return t.root.className=j(H9.root,e.root,t.wrap===!1&&e.nowrap,t.truncate&&e.truncate,t.block&&e.block,t.italic&&e.italic,t.underline&&e.underline,t.strikethrough&&e.strikethrough,t.underline&&t.strikethrough&&e.strikethroughUnderline,t.size===100&&e.base100,t.size===200&&e.base200,t.size===400&&e.base400,t.size===500&&e.base500,t.size===600&&e.base600,t.size===700&&e.hero700,t.size===800&&e.hero800,t.size===900&&e.hero900,t.size===1e3&&e.hero1000,t.font==="monospace"&&e.monospace,t.font==="numeric"&&e.numeric,t.weight==="medium"&&e.weightMedium,t.weight==="semibold"&&e.weightSemibold,t.weight==="bold"&&e.weightBold,t.align==="center"&&e.alignCenter,t.align==="end"&&e.alignEnd,t.align==="justify"&&e.alignJustify,t.root.className),t},fl=w.forwardRef((t,e)=>{const r=A2(t,e);return P2(r),ge("useTextStyles_unstable")(r),R2(r)});fl.displayName="Text";function vh(t){const{useStyles:e,className:r,displayName:o}=t,n=w.forwardRef((i,a)=>{const s=e(),c=A2(i,a);return P2(c),c.root.className=j(r,c.root.className,s.root,i.className),R2(c)});return n.displayName=o,n}const $9={root:"fui-Body1"},K9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),W9=vh({useStyles:K9,className:$9.root,displayName:"Body1"}),V9={root:"fui-Body1Strong"},G9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),X9=vh({useStyles:G9,className:V9.root,displayName:"Body1Strong"}),Y9={root:"fui-Caption1"},Q9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),Z9=vh({useStyles:Q9,className:Y9.root,displayName:"Caption1"}),J9={root:"fui-Subtitle2"},eq=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),tq=vh({useStyles:eq,className:J9.root,displayName:"Subtitle2"}),rq=t=>q(t.root,{children:q(t.textarea,{})}),oq=(t,e)=>{t=Kl(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Hf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",resize:a="none",onChange:s}=t,[c,l]=mr({state:t.value,defaultState:t.defaultValue,initialState:void 0}),u=Is({props:t,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:n,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:ae(t.textarea,{defaultProps:{ref:e,...u.primary},elementType:"textarea"}),root:ae(t.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=c,d.textarea.onChange=ee(f=>{const h=f.target.value;s?.(f,{value:h}),l(h)}),d},kk={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},nq=H({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1ean75l",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},disabled:{De3pzq:"f1c21dwh",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{ckks6v:"f7ic3uo",B2zwrfe:["f1omjgsz","f1snvl17"],xv9156:"fn6xmsl",dt87k2:["f1snvl17","f1omjgsz"],Bf40cpq:"f1sn8sm0",Bop6t4b:["f1wovo5e","f716mnf"],gvrnp0:"fm0h710",Beu9t3s:["f716mnf","f1wovo5e"],Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],uqwnxt:"fk7lb2a",Bvecx4l:["f1knhbbd","f17itt0b"],Bs0cc2w:"f15pjvi3",e1hlit:["f17itt0b","f1knhbbd"],e2sjt0:"f6ginmj",Bbcopvn:["f1grcyuh","fgzu20w"],Bj33j0h:"fk1xjsr",f7epvg:["fgzu20w","f1grcyuh"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bbs6y8j:"fu7v4fk",rexu52:["f1fnaxjy","fwory1w"],B7pmvfx:"f7hodha",Belqbek:["fwory1w","f1fnaxjy"],Bawrxx6:"f8jkv7v",r7b1zc:["f1f3jaeo","fh8au0q"],Bt3ojkv:"f19usxel",t1ykpo:["fh8au0q","f1f3jaeo"],Bvq3b66:"f12oevn0",Brahy3i:["fvdgz8d","f1cq0lt5"],zoxjo1:"f1so894s",an54nd:["f1cq0lt5","fvdgz8d"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1ean75l{padding-bottom:var(--strokeWidthThick);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fyed02w{box-shadow:var(--shadow2);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fu7v4fk:focus-within{border-top-width:var(--strokeWidthThin);}",".f1fnaxjy:focus-within{border-right-width:var(--strokeWidthThin);}",".fwory1w:focus-within{border-left-width:var(--strokeWidthThin);}",".f7hodha:focus-within{border-bottom-width:var(--strokeWidthThin);}",".f8jkv7v:focus-within{border-top-style:solid;}",".f1f3jaeo:focus-within{border-right-style:solid;}",".fh8au0q:focus-within{border-left-style:solid;}",".f19usxel:focus-within{border-bottom-style:solid;}",".f12oevn0:focus-within{border-top-color:var(--colorNeutralStroke1);}",".fvdgz8d:focus-within{border-right-color:var(--colorNeutralStroke1);}",".f1cq0lt5:focus-within{border-left-color:var(--colorNeutralStroke1);}",".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}",".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}",".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}",".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}",".f1sn8sm0:hover{border-top-style:solid;}",".f1wovo5e:hover{border-right-style:solid;}",".f716mnf:hover{border-left-style:solid;}",".fm0h710:hover{border-bottom-style:solid;}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}",".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}",".f17itt0b:active{border-left-width:var(--strokeWidthThin);}",".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}",".f6ginmj:active{border-top-style:solid;}",".f1grcyuh:active{border-right-style:solid;}",".fgzu20w:active{border-left-style:solid;}",".fk1xjsr:active{border-bottom-style:solid;}",".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),iq=H({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",z8tnut:"f1ywm7hm",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f14wxoun",uwmqm3:["f1xile11","fqznh8f"],Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",z8tnut:"fp2oml8",z189sj:["f135dnwl","f1e60jzv"],Byoj8tv:"f1tdddsa",uwmqm3:["f1e60jzv","f135dnwl"],Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",z8tnut:"f1kwiid1",z189sj:["fcgl2c4","f1anj20m"],Byoj8tv:"f5b47ha",uwmqm3:["f1anj20m","fcgl2c4"],Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".fcgl2c4{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f1anj20m{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),aq=H({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),sq=t=>{const{size:e,appearance:r,resize:o}=t,n=t.textarea.disabled,i=`${t.textarea["aria-invalid"]}`=="true",a=r.startsWith("filled"),s=nq();t.root.className=j(kk.root,s.base,n&&s.disabled,!n&&a&&s.filled,!n&&s[r],!n&&s.interactive,!n&&r==="outline"&&s.outlineInteractive,!n&&i&&s.invalid,t.root.className);const c=iq(),l=aq();return t.textarea.className=j(kk.textarea,c.base,c[e],l[o],n&&c.disabled,t.textarea.className),t},B2=w.forwardRef((t,e)=>{const r=oq(t,e);return sq(r),ge("useTextareaStyles_unstable")(r),rq(r)});B2.displayName="Textarea";const mi="__fluentDisableScrollElement";function cq(){const{targetDocument:t}=je();return w.useCallback(()=>{if(t)return lq(t.body)},[t])}function lq(t){var e;const{clientWidth:r}=t.ownerDocument.documentElement;var o;const n=(o=(e=t.ownerDocument.defaultView)===null||e===void 0?void 0:e.innerWidth)!==null&&o!==void 0?o:0;return uq(t),t[mi].count===0&&(t.style.overflow="hidden",t.style.paddingRight=`${n-r}px`),t[mi].count++,()=>{t[mi].count--,t[mi].count===0&&(t.style.overflow=t[mi].previousOverflowStyle,t.style.paddingRight=t[mi].previousPaddingRightStyle)}}function uq(t){var e,r,o;(o=(e=t)[r=mi])!==null&&o!==void 0||(e[r]={count:0,previousOverflowStyle:t.style.overflow,previousPaddingRightStyle:t.style.paddingRight})}function dq(t,e){const{findFirstFocusable:r}=bn(),{targetDocument:o}=je(),n=w.useRef(null);return w.useEffect(()=>{if(!t)return;const i=n.current&&r(n.current);if(i)i.focus();else{var a;(a=n.current)===null||a===void 0||a.focus()}},[r,t,e,o]),n}const fq={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},Ay=As(void 0),hq=Ay.Provider,So=t=>Rs(Ay,(e=fq)=>t(e)),pq=!1,N2=w.createContext(void 0),z2=N2.Provider,gq=()=>{var t;return(t=w.useContext(N2))!==null&&t!==void 0?t:pq},mq=t=>{const{children:e,modalType:r="modal",onOpenChange:o,inertTrapFocus:n=!1}=t,[i,a]=vq(e),[s,c]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1}),l=ee(g=>{o?.(g.event,g),g.event.isDefaultPrevented()||c(g.open)}),u=dq(s,r),d=cq(),f=!!(s&&r!=="non-modal");er(()=>{if(f)return d()},[d,f]);const{modalAttributes:h,triggerAttributes:p}=Vf({trapFocus:r!=="non-modal",legacyTrapFocus:!n});return{components:{backdrop:"div"},inertTrapFocus:n,open:s,modalType:r,content:a,trigger:i,requestOpenChange:l,dialogTitleId:gr("dialog-title-"),isNestedDialog:wb(Ay),dialogRef:u,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:p}};function vq(t){const e=w.Children.toArray(t);switch(e.length){case 2:return e;case 1:return[void 0,e[0]];default:return[void 0,void 0]}}function bq(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function Rm(t,e){return Rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Rm(t,e)}function yq(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Rm(t,e)}var M2={exports:{}},wq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kq=wq,_q=kq;function O2(){}function D2(){}D2.resetWarningCache=O2;var Sq=function(){function t(o,n,i,a,s,c){if(c!==_q){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:D2,resetWarningCache:O2};return r.PropTypes=r,r};M2.exports=Sq();var Cq=M2.exports;const Ue=Oo(Cq),_k={disabled:!1},j2=Kt.createContext(null);var Tq=function(e){return e.scrollTop},fc="unmounted",vi="exited",bi="entering",Ca="entered",Pm="exiting",kn=function(t){yq(e,t);function e(o,n){var i;i=t.call(this,o,n)||this;var a=n,s=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?s?(c=vi,i.appearStatus=bi):c=Ca:o.unmountOnExit||o.mountOnEnter?c=fc:c=vi,i.state={status:c},i.nextCallback=null,i}e.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===fc?{status:vi}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==bi&&a!==Ca&&(i=bi):(a===bi||a===Ca)&&(i=Pm)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,s;return i=a=s=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,s=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===bi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Su.findDOMNode(this);a&&Tq(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vi&&this.setState({status:fc})},r.performEnter=function(n){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:n,c=this.props.nodeRef?[s]:[Su.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!n&&!a||_k.disabled){this.safeSetState({status:Ca},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:bi},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Ca},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Su.findDOMNode(this);if(!i||_k.disabled){this.safeSetState({status:vi},function(){n.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Pm},function(){n.props.onExiting(s),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:vi},function(){n.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,n(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Su.findDOMNode(this),s=n==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===fc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=bq(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Kt.createElement(j2.Provider,{value:null},typeof a=="function"?a(n,s):Kt.cloneElement(Kt.Children.only(a),s))},e}(Kt.Component);kn.contextType=j2;kn.propTypes={};function pa(){}kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pa,onEntering:pa,onEntered:pa,onExit:pa,onExiting:pa,onExited:pa};kn.UNMOUNTED=fc;kn.EXITED=vi;kn.ENTERING=bi;kn.ENTERED=Ca;kn.EXITING=Pm;const F2=kn,xq=void 0,L2=w.createContext(void 0),Eq=L2.Provider,Iq=()=>{var t;return(t=w.useContext(L2))!==null&&t!==void 0?t:xq},Aq=(t,e)=>{const{content:r,trigger:o}=t;return q(hq,{value:e.dialog,children:Ee(z2,{value:e.dialogSurface,children:[o,q(F2,{mountOnEnter:!0,unmountOnExit:!0,in:t.open,nodeRef:t.dialogRef,appear:!0,timeout:250,children:n=>q(Eq,{value:n,children:r})})]})})};function Rq(t){const{modalType:e,open:r,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,requestOpenChange:s,modalAttributes:c,triggerAttributes:l}=t;return{dialog:{open:r,modalType:e,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,modalAttributes:c,triggerAttributes:l,requestOpenChange:s},dialogSurface:!1}}const hl=w.memo(t=>{const e=mq(t),r=Rq(e);return Aq(e,r)});hl.displayName="Dialog";const Pq=t=>{const e=gq(),{children:r,disableButtonEnhancement:o=!1,action:n=e?"close":"open"}=t,i=Ml(r),a=So(d=>d.requestOpenChange),{triggerAttributes:s}=Vf(),c=ee(d=>{var f,h;i==null||(f=(h=i.props).onClick)===null||f===void 0||f.call(h,d),d.isDefaultPrevented()||a({event:d,type:"triggerClick",open:n==="open"})}),l={...i?.props,ref:i?.ref,onClick:c,...s},u=Ui(i?.type==="button"||i?.type==="a"?i.type:"div",{...l,type:"button"});return{children:Uf(r,o?l:u)}},Bq=t=>t.children,ws=t=>{const e=Pq(t);return Bq(e)};ws.displayName="DialogTrigger";ws.isFluentTriggerComponent=!0;const Nq=(t,e)=>{const{position:r="end",fluid:o=!1}=t;return{components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),position:r,fluid:o}},zq=t=>q(t.root,{}),Mq={root:"fui-DialogActions"},Oq=de("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),Dq=H({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),jq=t=>{const e=Oq(),r=Dq();return t.root.className=j(Mq.root,e,t.position==="start"&&r.gridPositionStart,t.position==="end"&&r.gridPositionEnd,t.fluid&&t.position==="start"&&r.fluidStart,t.fluid&&t.position==="end"&&r.fluidEnd,t.root.className),t},Ry=w.forwardRef((t,e)=>{const r=Nq(t,e);return jq(r),ge("useDialogActionsStyles_unstable")(r),zq(r)});Ry.displayName="DialogActions";const Fq=(t,e)=>{var r;return{components:{root:"div"},root:ae(we((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},Lq=t=>q(t.root,{}),qq={root:"fui-DialogBody"},Hq=de("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),Uq=t=>{const e=Hq();return t.root.className=j(qq.root,e,t.root.className),t},Py=w.forwardRef((t,e)=>{const r=Fq(t,e);return Uq(r),ge("useDialogBodyStyles_unstable")(r),Lq(r)});Py.displayName="DialogBody";const Sk={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},$q=de("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),Kq=H({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),Wq=de("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),Vq=de("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),q2=t=>{const e=$q(),r=Wq(),o=Kq();return t.root.className=j(Sk.root,e,!t.action&&o.rootWithoutAction,t.root.className),t.action&&(t.action.className=j(Sk.action,r,t.action.className)),t},Gq=(t,e)=>{const{action:r}=t,o=So(i=>i.modalType),n=Vq();return{components:{root:"h2",action:"div"},root:ae(we("h2",{ref:e,id:So(i=>i.dialogTitleId),...t}),{elementType:"h2"}),action:ve(r,{renderByDefault:o==="non-modal",defaultProps:{children:w.createElement(ws,{disableButtonEnhancement:!0,action:"close"},w.createElement("button",{type:"button",className:n,"aria-label":"close"},w.createElement(V3,null)))},elementType:"div"})}},Xq=t=>Ee(w.Fragment,{children:[q(t.root,{children:t.root.children}),t.action&&q(t.action,{})]}),H2=w.forwardRef((t,e)=>{const r=Gq(t,e);return q2(r),ge("useDialogTitleStyles_unstable")(r),Xq(r)});H2.displayName="DialogTitle";const U2=(t,e)=>{const r=So(f=>f.modalType),o=So(f=>f.isNestedDialog),n=Iq(),i=So(f=>f.modalAttributes),a=So(f=>f.dialogRef),s=So(f=>f.requestOpenChange),c=So(f=>f.dialogTitleId),l=ee(f=>{if(uz(t.backdrop)){var h,p;(h=(p=t.backdrop).onClick)===null||h===void 0||h.call(p,f)}r==="modal"&&!f.isDefaultPrevented()&&s({event:f,open:!1,type:"backdropClick"})}),u=ee(f=>{var h;(h=t.onKeyDown)===null||h===void 0||h.call(t,f),f.key===yn&&!f.isDefaultPrevented()&&(s({event:f,open:!1,type:"escapeKeyDown"}),f.preventDefault())}),d=ve(t.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return d&&(d.onClick=l),{components:{backdrop:"div",root:"div"},backdrop:d,isNestedDialog:o,transitionStatus:n,mountNode:t.mountNode,root:ae(we("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":t["aria-label"]?void 0:c,...t,...i,onKeyDown:u,ref:bt(e,a)}),{elementType:"div"})}},$2=(t,e)=>Ee(aa,{mountNode:t.mountNode,children:[t.backdrop&&q(t.backdrop,{}),q(z2,{value:e.dialogSurface,children:q(t.root,{})})]}),Ck={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},Yq=de("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),Qq=H({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),Zq=de("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),Jq=H({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),eH=t=>{const{isNestedDialog:e,root:r,backdrop:o,transitionStatus:n}=t,i=Yq(),a=Qq(),s=Zq(),c=Jq();return r.className=j(Ck.root,i,n&&a.animated,n&&a[n],r.className),o&&(o.className=j(Ck.backdrop,s,e&&c.nestedDialogBackdrop,n&&c[n],o.className)),t};function K2(t){return{dialogSurface:!0}}const By=w.forwardRef((t,e)=>{const r=U2(t,e),o=K2();return eH(r),ge("useDialogSurfaceStyles_unstable")(r),$2(r,o)});By.displayName="DialogSurface";const tH=(t,e)=>{var r;return{components:{root:"div"},root:ae(we((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},rH=t=>q(t.root,{}),oH={root:"fui-DialogContent"},nH=de("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),iH=t=>{const e=nH();return t.root.className=j(oH.root,e,t.root.className),t},Ny=w.forwardRef((t,e)=>{const r=tH(t,e);return iH(r),ge("useDialogContentStyles_unstable")(r),rH(r)});Ny.displayName="DialogContent";const Ys=()=>{},W2={allRowsSelected:!1,clearRows:Ys,deselectRow:Ys,isRowSelected:()=>!1,selectRow:Ys,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:Ys,toggleRow:Ys,selectionMode:"multiselect"};function aH(t){return e=>sH(e,t)}function sH(t,e){const{items:r,getRowId:o}=t,{selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}=e,[c,l]=g3({selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}),u=w.useMemo(()=>{const b=new Set;for(let S=0;S{if(n==="single"){const k=Array.from(c)[0];return u.has(k)}if(c.size{c.has(k)||(b=!1)}),b},[u,c,n]),f=w.useMemo(()=>{if(c.size<=0)return!1;let b=!1;return u.forEach(k=>{c.has(k)&&(b=!0)}),b},[u,c]),h=ee(b=>{l.toggleAllItems(b,r.map((k,S)=>{var C;return(C=o?.(k))!==null&&C!==void 0?C:S}))}),p=ee((b,k)=>l.toggleItem(b,k)),g=ee((b,k)=>l.deselectItem(b,k)),y=ee((b,k)=>l.selectItem(b,k)),v=b=>l.isSelected(b),m=ee(b=>l.clearItems(b));return{...t,selection:{selectionMode:n,someRowsSelected:f,allRowsSelected:d,selectedRows:c,toggleRow:p,toggleAllRows:h,clearRows:m,deselectRow:g,selectRow:y,isRowSelected:v}}}const Tk=()=>{},V2={getSortDirection:()=>"ascending",setColumnSort:Tk,sort:t=>[...t],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Tk};function cH(t){return e=>lH(e,t)}function lH(t,e){const{columns:r}=t,{sortState:o,defaultSortState:n,onSortChange:i}=e,[a,s]=mr({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:n,state:o}),{sortColumn:c,sortDirection:l}=a;return{...t,sort:{sort:p=>p.slice().sort((g,y)=>{const v=r.find(b=>b.columnId===c);if(!v?.compare)return 0;const m=l==="ascending"?1:-1;return v.compare(g.item,y.item)*m}),sortColumn:c,sortDirection:l,setColumnSort:(p,g,y)=>{const v={sortColumn:g,sortDirection:y};i?.(p,v),s(v)},toggleColumnSort:(p,g)=>{s(y=>{const v={...y,sortColumn:g};return y.sortColumn===g?v.sortDirection=y.sortDirection==="ascending"?"descending":"ascending":v.sortDirection="ascending",i?.(p,v),v})},getSortDirection:p=>c===p?l:void 0}}}const uH=(t,e)=>{const r=ee(o=>{var n;(n=t.onClick)===null||n===void 0||n.call(t,o),o.stopPropagation()});return{components:{root:"div"},root:ae(we("div",{ref:e,...t,onClick:r}),{elementType:"div"})}},dH=t=>q(t.root,{}),fH={root:"fui-TableResizeHandle"},hH=H({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",B6of3ja:"f1hu3pq6",t21cq0:["fn2i5td","f1eybr6b"],jrapky:"f19f4twv",Frg6f3:["f1eybr6b","fn2i5td"],Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bs6t6z0:"ftgrb5f",Fdvyjd:"f2df6js",Biobvvw:"fshsryb",Hdbjpj:"f11ef69",jc51t6:["f12lb1dx","f13tbxeo"],u6d25:"fu4ulse",Bj55yzk:"fw2wsqs",Bkbwdz4:"f1swzn7y"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",".f1hu3pq6{margin-top:0;}",".fn2i5td{margin-right:-8px;}",".f1eybr6b{margin-left:-8px;}",".f19f4twv{margin-bottom:0;}",".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.ftgrb5f:after{content:" ";}',".f2df6js:after{display:block;}",".fshsryb:after{width:1px;}",".f11ef69:after{position:absolute;}",".f12lb1dx:after{left:50%;}",".f13tbxeo:after{right:50%;}",".fu4ulse:after{top:0;}",".fw2wsqs:after{bottom:0;}",".f1swzn7y:after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),pH=t=>{const e=hH();return t.root.className=j(fH.root,e.root,t.root.className),t},G2=w.forwardRef((t,e)=>{const r=uH(t,e);return pH(r),ge("useTableResizeHandleStyles_unstable")(r),dH(r)});G2.displayName="TableResizeHandle";function gH(){const[t,e]=w.useState(0),r=w.useRef(void 0),{targetDocument:o}=je(),n=w.useCallback(()=>{var s;const c=(s=r.current)===null||s===void 0?void 0:s.getBoundingClientRect().width;e(c||0)},[]),[i]=w.useState(()=>mH(o,n)),a=w.useCallback(s=>{!o||!i||(r.current&&i.unobserve(r.current),r.current=void 0,s?.parentElement&&(r.current=s.parentElement,i.observe(r.current),n()))},[o,i,n]);return w.useEffect(()=>()=>i?.disconnect(),[i]),{width:t,measureElementRef:a}}function mH(t,e){var r;return!(t==null||(r=t.defaultView)===null||r===void 0)&&r.ResizeObserver?new t.defaultView.ResizeObserver(e):null}function vH(t){const e=w.useRef(0),r=w.useRef(0),o=w.useRef(void 0),{targetDocument:n}=je(),i=n?.defaultView,a=w.useCallback(u=>{const{clientX:d}=c1(u),f=d-e.current;r.current+=f,o.current&&t.setColumnWidth(u,{columnId:o.current,width:r.current}),e.current=d},[t]),s=w.useCallback(u=>{typeof i?.requestAnimationFrame=="function"?requestAnimationFrame(()=>a(u)):a(u)},[i?.requestAnimationFrame,a]),c=w.useCallback(u=>{Eg(u)&&(n?.removeEventListener("mouseup",c),n?.removeEventListener("mousemove",s)),xg(u)&&(n?.removeEventListener("touchend",c),n?.removeEventListener("touchmove",s))},[s,n]),l=u=>d=>{if(r.current=t.getColumnWidth(u),e.current=c1(d).clientX,o.current=u,Eg(d)){if(d.target!==d.currentTarget||d.button!==0)return;n?.addEventListener("mouseup",c),n?.addEventListener("mousemove",s)}xg(d)&&(n?.addEventListener("touchend",c),n?.addEventListener("touchmove",s))};return{getOnMouseDown:u=>l(u)}}const bH=150,yH=100;function Bm(t,e=[],r={}){let o=!1;const n=new Map(e.map(a=>[a.columnId,a])),i=t.map(a=>{const s=n.get(a.columnId);if(s){var c;const{idealWidth:p=s.idealWidth,minWidth:g=s.minWidth,padding:y=s.padding}=(c=r[a.columnId])!==null&&c!==void 0?c:{};return p!==s.idealWidth||g!==s.minWidth||y!==s.padding?(o=!0,{...s,idealWidth:p,width:p,minWidth:g,padding:y}):s}var l;const{defaultWidth:u,idealWidth:d=bH,minWidth:f=yH,padding:h}=(l=r[a.columnId])!==null&&l!==void 0?l:{};return o=!0,{columnId:a.columnId,width:Math.max(u??d,f),minWidth:f,idealWidth:Math.max(u??d,f),padding:h??16}});if(i.length!==e.length||o){const a=i.find(s=>s.width>s.idealWidth);a&&(a.width=a.idealWidth),o=!0}return o?i:e}function pl(t,e){return t.find(r=>r.columnId===e)}function Ip(t,e){return t[e]}function wH(t){return t.reduce((e,r)=>e+r.width+r.padding,0)}function kH(t,e){const r=pl(t,e);var o;return(o=r?.width)!==null&&o!==void 0?o:0}function Rc(t,e,r,o){const n=pl(t,e);if(!n||n?.[r]===o)return t;const i={...n,[r]:o};return t.reduce((s,c)=>c.columnId===i.columnId?[...s,i]:[...s,c],[])}function Ru(t,e){let r=t;const o=wH(r);if(o0;){const a=Ip(r,i),s=Math.min(a.idealWidth-a.width,n);if(r=Rc(r,a.columnId,"width",a.width+s),n-=s,i===r.length-1&&n!==0){const c=Ip(r,i);r=Rc(r,c.columnId,"width",c.width+n)}i++}}else if(o>=e){let n=o-e,i=r.length-1;for(;i>=0&&n>0;){const a=Ip(r,i);if(a.width>a.minWidth){const s=Math.min(a.width-a.minWidth,n);n-=s,r=Rc(r,a.columnId,"width",a.width-s)}i--}}return r}const _H=()=>(t,e)=>{switch(e.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:e.containerWidth,columnWidthState:Ru(t.columnWidthState,e.containerWidth)};case"COLUMNS_UPDATED":const r=Bm(e.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:e.columns,columnWidthState:Ru(r,t.containerWidth)};case"COLUMN_SIZING_OPTIONS_UPDATED":const o=Bm(t.columns,t.columnWidthState,e.columnSizingOptions);return{...t,columnSizingOptions:e.columnSizingOptions,columnWidthState:Ru(o,t.containerWidth)};case"SET_COLUMN_WIDTH":const{columnId:n,width:i}=e,{containerWidth:a}=t,s=pl(t.columnWidthState,n);let c=[...t.columnWidthState];return s?(c=Rc(c,n,"width",i),c=Rc(c,n,"idealWidth",i),c=Ru(c,a),{...t,columnWidthState:c}):t}};function SH(t,e,r={}){const{onColumnResize:o,columnSizingOptions:n}=r,i=w.useMemo(()=>_H(),[]),[a,s]=w.useReducer(i,{columns:t,containerWidth:0,columnWidthState:Bm(t,void 0,n),columnSizingOptions:n});er(()=>{s({type:"CONTAINER_WIDTH_UPDATED",containerWidth:e})},[e]),er(()=>{s({type:"COLUMNS_UPDATED",columns:t})},[t]),er(()=>{s({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:n})},[n]);const c=ee((l,u)=>{let{width:d}=u;const{columnId:f}=u,h=pl(a.columnWidthState,f);h&&(d=Math.max(h.minWidth||0,d),o&&o(l,{columnId:f,width:d}),s({type:"SET_COLUMN_WIDTH",columnId:f,width:d}))});return{getColumnById:l=>pl(a.columnWidthState,l),getColumns:()=>a.columnWidthState,getColumnWidth:l=>kH(a.columnWidthState,l),setColumnWidth:c}}const Pu=20,CH=XO,xk=1/4;function TH(t){const[e,r]=w.useState(),o=w.useRef(),{findPrevFocusable:n}=bn(),i=w.useRef(t);w.useEffect(()=>{i.current=t},[t]);const[a]=w.useState(()=>new Map),s=ee(h=>{if(!e)return;const p=i.current.getColumnWidth(e),g=h.getModifierState(CH),y=()=>{h.preventDefault(),h.stopPropagation()};switch(h.key){case kb:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:p-(g?Pu*xk:Pu)});return;case Qf:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:p+(g?Pu*xk:Pu)});return;case Mn:case Ai:case yn:var v,m;y(),(m=a.get(e))===null||m===void 0||(v=m.current)===null||v===void 0||v.blur();break}}),c=w.useCallback(h=>{var p,g;r(h),(p=o.current)===null||p===void 0||p.call(o,h,!0);const y=(g=a.get(h))===null||g===void 0?void 0:g.current;y&&(y.setAttribute("tabindex","-1"),y.tabIndex=-1,y.focus())},[a]),l=w.useCallback(()=>{var h,p;if(!e)return;(h=o.current)===null||h===void 0||h.call(o,e,!1);const g=(p=a.get(e))===null||p===void 0?void 0:p.current;if(g){var y;(y=n(g))===null||y===void 0||y.focus(),g.removeAttribute("tabindex")}r(void 0)},[e,n,a]),u=(h,p)=>{o.current=p,e?h&&e!==h?(c(h),r(h)):l():c(h)},d=w.useCallback(h=>{const p=a.get(h)||w.createRef();return a.set(h,p),p},[a]),f=Kc({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:e,getKeyboardResizingProps:(h,p)=>({onKeyDown:s,onBlur:l,ref:d(h),role:"separator","aria-label":"Resize column","aria-valuetext":`${p} pixels`,"aria-hidden":h!==e,tabIndex:h===e?0:void 0,...f})}}const X2={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function xH(t){return e=>EH(e,t)}function Ek(t){const e=t.width;return{width:e,minWidth:e,maxWidth:e}}function EH(t,e){const{columns:r}=t,{width:o,measureElementRef:n}=gH(),i=SH(r,o+(e?.containerWidthOffset||0),e),a=vH(i),{toggleInteractiveMode:s,getKeyboardResizingProps:c}=TH(i),l=w.useCallback((u,d)=>f=>{f.preventDefault(),f.nativeEvent.stopPropagation(),s(u,d)},[s]);return{...t,tableRef:n,columnSizing_unstable:{getOnMouseDown:a.getOnMouseDown,setColumnWidth:(u,d)=>i.setColumnWidth(void 0,{columnId:u,width:d}),getColumnWidths:i.getColumns,getTableProps:(u={})=>({...u,style:{minWidth:"fit-content",...u.style||{}}}),getTableHeaderCellProps:u=>{var d;const f=i.getColumnById(u),p=((d=r[r.length-1])===null||d===void 0?void 0:d.columnId)===u?null:w.createElement(G2,{onMouseDown:a.getOnMouseDown(u),onTouchStart:a.getOnMouseDown(u),...c(u,f?.width||0)});return f?{style:Ek(f),aside:p}:{}},getTableCellProps:u=>{const d=i.getColumnById(u);return d?{style:Ek(d)}:{}},enableKeyboardMode:l}}}const IH=t=>t,AH={selection:W2,sort:V2,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:X2,tableRef:w.createRef()};function RH(t,e=[]){const{items:r,getRowId:o,columns:n}=t,a={getRowId:o,items:r,columns:n,getRows:(s=IH)=>r.map((c,l)=>{var u;return s({item:c,rowId:(u=o?.(c))!==null&&u!==void 0?u:l})}),selection:W2,sort:V2,columnSizing_unstable:X2,tableRef:w.createRef()};return e.reduce((s,c)=>c(s),a)}const PH=()=>0,BH=()=>null,NH=()=>null;function ud(t){const{columnId:e,renderCell:r=BH,renderHeaderCell:o=NH,compare:n=PH}=t;return{columnId:e,renderCell:r,renderHeaderCell:o,compare:n}}function zH(){const t=Wc({axis:"horizontal"}),e=Wc({axis:"grid"}),r=Wf({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:o}=bn(),{targetDocument:n}=je(),i=B4(t,r);return{onTableKeyDown:w.useCallback(s=>{if(!n)return;const c=n.activeElement;if(!c||!s.currentTarget.contains(c))return;const l=c.getAttribute("role");if(s.key===Qf&&l==="row"&&at(c)){var u;(u=o(c))===null||u===void 0||u.focus()}if(l==="row")return;const d=(()=>{let f=at(c)?c:null;for(;f;){const h=f.getAttribute("role");if(h==="cell"||h==="gridcell")return!0;f=f.parentElement}return!1})();(s.key===Yf||s.key===_b)&&d&&(c.dispatchEvent(new KeyboardEvent("keydown",{key:yn,keyCode:GO})),c.dispatchEvent(new KeyboardEvent("keydown",{key:s.key,keyCode:s.keyCode})))},[n,o]),tableTabsterAttribute:e,tableRowTabsterAttribute:i}}const Y2=w.createContext(void 0),MH={size:"medium",noNativeElements:!1,sortable:!1},OH=Y2.Provider,li=()=>{var t;return(t=w.useContext(Y2))!==null&&t!==void 0?t:MH},Q2=(t,e)=>{const{noNativeElements:r,size:o}=li();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"td";return{components:{root:i},root:ae(we(i,{ref:e,role:i==="div"?"cell":void 0,...t}),{elementType:i}),noNativeElements:r,size:o}},DH=t=>q(t.root,{}),jH="fui-TableCell",FH={root:jH},LH=H({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),qH=H({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),HH=H({root:{qhf8xq:"f10pi13n",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]}},{d:[".f10pi13n{position:relative;}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]}),UH=t=>{const e=HH(),r={table:LH(),flex:qH()};return t.root.className=j(FH.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.noNativeElements?r.flex[t.size]:r.table[t.size],t.root.className),t},Z2=w.createContext(void 0),$H="",KH=Z2.Provider,zy=()=>w.useContext(Z2)===$H,WH=(t,e)=>{const{noNativeElements:r,size:o}=li();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"tr",a=yb(),s=jl(),c=zy();var l;return{components:{root:i},root:ae(we(i,{ref:bt(e,a,s),role:i==="div"?"row":void 0,...t}),{elementType:i}),size:o,noNativeElements:r,appearance:(l=t.appearance)!==null&&l!==void 0?l:"none",isHeaderRow:c}},VH=44,Ap={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},GH=H({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),XH=H({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),YH=H({root:{fsow6f:"f17mccla",Huce71:"fz5stix",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{Bcdw1i0:"fd7fpy0"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}",".fd7fpy0{visibility:hidden;}"]}),QH=t=>{const e=YH(),r={table:GH(),flex:XH()};return t.root.className=j(Ap.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.subtle&&t.checked===!1&&e.subtle,t.hidden&&e.hidden,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=j(Ap.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=j(Ap.radioIndicator,e.radioIndicator,t.radioIndicator.className)),t},ZH="fui-TableRow",JH={root:ZH},eU=H({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),tU=H({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),rU=H({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},rootInteractive:{ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww"},medium:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},small:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.fqlf3fd{border-top-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dpb3h{border-right-width:2px;}.fw2muls{border-left-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yat0gj{border-bottom-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7nae3y{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa97sf3{border-left-style:solid;}.fkbere7{border-right-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fmtyzcc{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb6zhgp{border-top-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyowp6c{border-right-color:transparent;}.fz08sq8{border-left-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dii88{border-bottom-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1afxoft{border-bottom-right-radius:var(--borderRadiusMedium);}.flqq2yx{border-bottom-left-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1831rx6{border-top-left-radius:var(--borderRadiusMedium);}.f1b5xrmd{border-top-right-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),oU=t=>{const e=rU(),r={table:eU(),flex:tU()};return t.root.className=j(JH.root,e.root,!t.isHeaderRow&&e.rootInteractive,e[t.size],t.noNativeElements?r.flex.root:r.table.root,e[t.appearance],t.root.className),t},nU=(t,e)=>{const{noNativeElements:r}=li();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"tbody";return{components:{root:n},root:ae(we(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},iU=H({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),aU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),sU="fui-TableBody",cU=t=>{const e={table:iU(),flex:aU()};return t.root.className=j(sU,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},lU=(t,e)=>{var r;const o=((r=t.as)!==null&&r!==void 0?r:t.noNativeElements)?"div":"table";var n,i,a;return{components:{root:o},root:ae(we(o,{ref:e,role:o==="div"?"table":void 0,...t}),{elementType:o}),size:(n=t.size)!==null&&n!==void 0?n:"medium",noNativeElements:(i=t.noNativeElements)!==null&&i!==void 0?i:!1,sortable:(a=t.sortable)!==null&&a!==void 0?a:!1}},uU=(t,e)=>q(OH,{value:e.table,children:q(t.root,{})}),dU="fui-Table",fU=H({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),hU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),pU=H({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),gU=t=>{const e=pU(),r={table:fU(),flex:hU()};return t.root.className=j(dU,e.root,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t};function mU(t){const{size:e,noNativeElements:r,sortable:o}=t;return{table:w.useMemo(()=>({noNativeElements:r,size:e,sortable:o}),[r,e,o])}}const vU=(t,e)=>{const{noNativeElements:r}=li();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"thead";return{components:{root:n},root:ae(we(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},bU=t=>q(KH,{value:"",children:q(t.root,{})}),yU="fui-TableHeader",wU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),kU=H({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),_U=t=>{const e={table:kU(),flex:wU()};return t.root.className=j(yU,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},SU={ascending:w.createElement(I3,{fontSize:12}),descending:w.createElement(E3,{fontSize:12})},CU=(t,e)=>{const{noNativeElements:r,sortable:o}=li(),{sortable:n=o}=t;var i;const a=((i=t.as)!==null&&i!==void 0?i:r)?"div":"th",s=ae(t.button,{elementType:"div",defaultProps:{as:"div",...!n&&{role:"presentation",tabIndex:void 0}}});var c;return{components:{root:a,button:"div",sortIcon:"span",aside:"span"},root:ae(we(a,{ref:bt(e,jl()),role:a==="div"?"columnheader":void 0,"aria-sort":n?(c=t.sortDirection)!==null&&c!==void 0?c:"none":void 0,...t}),{elementType:a}),aside:ve(t.aside,{elementType:"span"}),sortIcon:ve(t.sortIcon,{renderByDefault:!!t.sortDirection,defaultProps:{children:t.sortDirection?SU[t.sortDirection]:void 0},elementType:"span"}),button:Ui(s.as,s),sortable:n,noNativeElements:r}},TU=t=>Ee(t.root,{children:[Ee(t.button,{children:[t.root.children,t.sortIcon&&q(t.sortIcon,{})]}),t.aside&&q(t.aside,{})]}),Bu={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},xU=H({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),EU=H({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f10tiqix{min-width:0px;}"]}),IU=H({root:{Bhrd7zp:"figsok6",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],B3nxjsc:"fhix6mv",Bmvh20x:"fha7anx",robkg1:"f1fmzww4",pehzd3:["fs9qmxf","f187m4uq"],B8osjzx:["f187m4uq","fs9qmxf"],u7xebq:["f145mzao","f1uha7eq"],Blsv9te:["f1uha7eq","f145mzao"],qhf8xq:"f10pi13n"},rootInteractive:{Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:"f1ufnopg",Belr9w4:"f14sijuj",sshi5w:"f1nxs5xn",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fhix6mv[data-fui-focus-within]:focus-within{outline-width:2px;}",".fha7anx[data-fui-focus-within]:focus-within{outline-style:solid;}",".f1fmzww4[data-fui-focus-within]:focus-within{outline-color:var(--colorStrokeFocus2);}",".fs9qmxf[data-fui-focus-within]:focus-within{border-bottom-right-radius:var(--borderRadiusMedium);}",".f187m4uq[data-fui-focus-within]:focus-within{border-bottom-left-radius:var(--borderRadiusMedium);}",".f145mzao[data-fui-focus-within]:focus-within{border-top-right-radius:var(--borderRadiusMedium);}",".f1uha7eq[data-fui-focus-within]:focus-within{border-top-left-radius:var(--borderRadiusMedium);}",".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f14sijuj{row-gap:var(--spacingHorizontalXS);}",".f1nxs5xn{min-height:32px;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),AU=t=>{const e=IU(),r={table:xU(),flex:EU()};return t.root.className=j(Bu.root,e.root,t.sortable&&e.rootInteractive,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t.button.className=j(Bu.button,e.resetButton,e.button,t.sortable&&e.sortable,t.button.className),t.sortIcon&&(t.sortIcon.className=j(Bu.sortIcon,e.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=j(Bu.aside,e.resizeHandle,t.aside.className)),t},J2=w.createContext(void 0),RU="",eI=()=>{var t;return(t=w.useContext(J2))!==null&&t!==void 0?t:RU},PU=J2.Provider,tI=w.createContext(void 0),BU="",rI=()=>{var t;return(t=w.useContext(tI))!==null&&t!==void 0?t:BU},NU=tI.Provider,zU=(t,e)=>{const r=Q2(t,e),{noNativeElements:o}=li(),{type:n="checkbox",checked:i=!1,subtle:a=!1,hidden:s=!1}=t;return{...r,components:{...r.components,checkboxIndicator:Em,radioIndicator:Am},checkboxIndicator:ve(t.checkboxIndicator,{renderByDefault:n==="checkbox",defaultProps:{checked:t.checked},elementType:Em}),radioIndicator:ve(t.radioIndicator,{renderByDefault:n==="radio",defaultProps:{checked:!!i,input:{name:gr("table-selection-radio")}},elementType:Am}),type:n,checked:i,noNativeElements:o,subtle:a,hidden:s}},MU=t=>Ee(t.root,{children:[t.type==="checkbox"&&t.checkboxIndicator&&q(t.checkboxIndicator,{}),t.type==="radio"&&t.radioIndicator&&q(t.radioIndicator,{})]}),oI=As(void 0),OU={...AH,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},DU=oI.Provider,st=t=>Rs(oI,(e=OU)=>t(e)),jU=(t,e)=>{const{focusMode:r="cell"}=t,o=eI(),n=st(c=>(c.focusMode==="cell"||c.focusMode==="composite")&&r!=="none"),i=st(c=>c.resizableColumns),a=st(c=>c.columnSizing_unstable),s=Wf({tabBehavior:"limited-trap-focus"});return Q2({as:"div",role:"gridcell",...r==="group"&&s,tabIndex:n?0:void 0,...i?a.getTableCellProps(o):{},...t},e)},FU=t=>DH(t),LU={root:"fui-DataGridCell"},qU=t=>(UH(t),t.root.className=j(LU.root,t.root.className),t),Pc=w.forwardRef((t,e)=>{const r=jU(t,e);return qU(r),ge("useDataGridCellStyles_unstable")(r),FU(r)});Pc.displayName="DataGridCell";const HU=(t,e)=>{const r=zy(),o=rI(),n=st(l=>l.subtleSelection),i=st(l=>r&&l.selection.selectionMode==="multiselect"?l.selection.allRowsSelected?!0:l.selection.someRowsSelected?"mixed":!1:l.selection.isRowSelected(o)),a=st(l=>l.selection.toggleAllRows),s=st(l=>l.selection.selectionMode==="multiselect"?"checkbox":"radio"),c=ee(l=>{var u;r&&a(l),(u=t.onClick)===null||u===void 0||u.call(t,l)});return zU({as:"div",role:"gridcell",checked:i,type:s,hidden:r&&s==="radio","aria-checked":r?i:void 0,"aria-selected":r||i==="mixed"?void 0:i,subtle:n,...t,onClick:c},e)},UU=t=>MU(t),Rp={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},$U=t=>(QH(t),t.root.className=j(Rp.root,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=j(Rp.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=j(Rp.radioIndicator,t.radioIndicator.className)),t),Nm=w.forwardRef((t,e)=>{const r=HU(t,e);return $U(r),ge("useDataGridSelectionCellStyles_unstable")(r),UU(r)});Nm.displayName="DataGridSelectionCell";const KU=(t,e)=>{const r=rI(),o=zy(),n=st(y=>y.columns),i=st(y=>y.selectableRows),a=st(y=>y.selection.isRowSelected(r)),s=st(y=>y.focusMode),c=st(y=>y.compositeRowTabsterAttribute),l=s==="row_unstable"||s==="composite",u=st(y=>!o&&i&&y.selection.isRowSelected(r)?y.selectionAppearance:"none"),d=st(y=>y.selection.toggleRow),f=st(y=>y),h=ee(y=>{var v;i&&!o&&d(y,r),(v=t.onClick)===null||v===void 0||v.call(t,y)}),p=ee(y=>{var v;i&&!o&&y.key===Mn&&!u3(y.target)&&(y.preventDefault(),d(y,r)),(v=t.onKeyDown)===null||v===void 0||v.call(t,y)}),g=WH({appearance:u,"aria-selected":i?a:void 0,tabIndex:l&&!o?0:void 0,...s==="composite"&&!o&&c,...t,onClick:h,onKeyDown:p,children:null,as:"div"},e);return{...g,components:{...g.components,selectionCell:Nm},selectionCell:ve(t.selectionCell,{renderByDefault:i,elementType:Nm}),renderCell:t.children,columnDefs:n,dataGridContextValue:f}},WU=t=>Ee(t.root,{children:[t.selectionCell&&q(t.selectionCell,{}),t.columnDefs.map(e=>q(PU,{value:e.columnId,children:t.renderCell(e,t.dataGridContextValue)},e.columnId))]}),Ik={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},VU=t=>(oU(t),t.root.className=j(Ik.root,t.root.className),t.selectionCell&&(t.selectionCell.className=j(Ik.selectionCell,t.selectionCell.className)),t),zm=w.forwardRef((t,e)=>{const r=KU(t,e);return VU(r),ge("useDataGridRowStyles_unstable")(r),WU(r)});zm.displayName="DataGridRow";const GU=(t,e)=>{const{sortable:r}=li(),o=st(s=>s.getRows),n=st(s=>s.sort.sort),i=r?n(o()):o();return{...nU({...t,children:null,as:"div"},e),rows:i,renderRow:t.children}},XU=t=>q(t.root,{children:t.rows.map(e=>q(NU,{value:e.rowId,children:t.renderRow(e)},e.rowId))}),YU={root:"fui-DataGridBody"},QU=t=>(cU(t),t.root.className=j(YU.root,t.root.className),t),nI=w.forwardRef((t,e)=>{const r=GU(t,e);return QU(r),ge("useDataGridBodyStyles_unstable")(r),XU(r)});nI.displayName="DataGridBody";const ZU=(t,e)=>{const{items:r,columns:o,focusMode:n="cell",selectionMode:i,onSortChange:a,onSelectionChange:s,defaultSortState:c,sortState:l,selectedItems:u,defaultSelectedItems:d,subtleSelection:f=!1,selectionAppearance:h="brand",getRowId:p,resizableColumns:g,columnSizingOptions:y,onColumnResize:v,containerWidthOffset:m}=t,b=m??(i?-VH:0),k=Wc({axis:"grid"}),{onTableKeyDown:S,tableTabsterAttribute:C,tableRowTabsterAttribute:_}=zH(),T=RH({items:r,columns:o,getRowId:p},[cH({defaultSortState:c,sortState:l,onSortChange:a}),aH({defaultSelectedItems:d,selectedItems:u,onSelectionChange:s,selectionMode:i??"multiselect"}),xH({onColumnResize:v,columnSizingOptions:y,containerWidthOffset:b})]),A=w.useRef(null),{findFirstFocusable:R,findLastFocusable:V}=bn(),E=ee(D=>{var B;if((B=t.onKeyDown)===null||B===void 0||B.call(t,D),n==="composite"&&S(D),!(!A.current||!D.ctrlKey||D.defaultPrevented)){if(D.key===HT){const I=A.current.querySelector('[role="row"]');if(I){var M;(M=R(I))===null||M===void 0||M.focus()}}if(D.key===qT){const I=A.current.querySelectorAll('[role="row"]');if(I.length){var K;const F=I.item(I.length-1);(K=V(F))===null||K===void 0||K.focus()}}}});return{...lU({role:"grid",as:"div",noNativeElements:!0,...n==="cell"&&k,...n==="composite"&&C,...t,onKeyDown:E,...g?T.columnSizing_unstable.getTableProps(t):{}},bt(e,T.tableRef,A)),focusMode:n,tableState:T,selectableRows:!!i,subtleSelection:f,selectionAppearance:h,resizableColumns:g,compositeRowTabsterAttribute:_}},JU=(t,e)=>w.createElement(DU,{value:e.dataGrid},uU(t,e)),e$={root:"fui-DataGrid"},t$=t=>(gU(t),t.root.className=j(e$.root,t.root.className),t);function r$(t){const e=mU(t),{tableState:r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:c}=t;return{...e,dataGrid:{...r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:c}}}const iI=w.forwardRef((t,e)=>{const r=ZU(t,e);return t$(r),ge("useDataGridStyles_unstable")(r),JU(r,r$(r))});iI.displayName="DataGrid";const o$=(t,e)=>vU({...t,as:"div"},e),n$=t=>bU(t),i$={root:"fui-DataGridHeader"},a$=t=>(_U(t),t.root.className=j(i$.root,t.root.className),t),aI=w.forwardRef((t,e)=>{const r=o$(t,e);return a$(r),ge("useDataGridHeaderStyles_unstable")(r),n$(r)});aI.displayName="DataGridHeader";function s$(t){return t.compare.length>0}const c$=(t,e)=>{const r=eI(),{sortable:o}=li(),n=st(u=>u.sort.toggleColumnSort),i=st(u=>{const d=!!u.columns.find(f=>f.columnId===r&&s$(f));return o?d:!1}),a=st(u=>i?u.sort.getSortDirection(r):void 0),s=st(u=>u.resizableColumns),c=st(u=>u.columnSizing_unstable),l=ee(u=>{var d;i&&n(u,r),(d=t.onClick)===null||d===void 0||d.call(t,u)});return CU({sortable:i,sortDirection:a,as:"div",tabIndex:i?void 0:0,...s?c.getTableHeaderCellProps(r):{},...t,onClick:l},e)},l$=t=>TU(t),Nu={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},u$=t=>(AU(t),t.root.className=j(Nu.root,t.root.className),t.button&&(t.button.className=j(Nu.button,t.button.className)),t.sortIcon&&(t.sortIcon.className=j(Nu.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=j(Nu.aside,t.aside.className)),t),sI=w.forwardRef((t,e)=>{const r=c$(t,e);return u$(r),ge("useDataGridHeaderCellStyles_unstable")(r),l$(r)});sI.displayName="DataGridHeaderCell";const jr={show:"fui-toast-show",dismiss:"fui-toast-dismiss",dismissAll:"fui-toast-dismiss-all",update:"fui-toast-update",pause:"fui-toast-pause",play:"fui-toast-play"},Fr={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let d$=0;function f$(t,e={},r){var o;const n={...e,content:t,toastId:(o=e.toastId)!==null&&o!==void 0?o:(d$++).toString()},i=new CustomEvent(jr.show,{bubbles:!1,cancelable:!1,detail:n});r.dispatchEvent(i)}function h$(t,e=void 0,r){const o=new CustomEvent(jr.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function p$(t=void 0,e){const r=new CustomEvent(jr.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:t}});e.dispatchEvent(r)}function g$(t,e){const r=new CustomEvent(jr.update,{bubbles:!1,cancelable:!1,detail:t});e.dispatchEvent(r)}function m$(t,e=void 0,r){const o=new CustomEvent(jr.pause,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function v$(t,e=void 0,r){const o=new CustomEvent(jr.play,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function Ak(t,e){for(const[r,o]of Object.entries(e))o!=null&&(t[r]=o)}const b$={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let y$=0;function w$(t){const{limit:e=Number.POSITIVE_INFINITY}=t,r=new Set,o=new Map,n=nT((u,d)=>{const f=o.get(u),h=o.get(d);return!f||!h?0:f.priority===h.priority?f.order-h.order:f.priority-h.priority});return{buildToast:(u,d)=>{var f;const{toastId:h,content:p,toasterId:g}=u;if(o.has(h))return;const m={...b$,close:()=>{var b;const k=o.get(h);k&&(r.delete(h),d(),(b=k.onStatusChange)===null||b===void 0||b.call(k,null,{status:"dismissed",...k}))},remove:()=>{if(o.get(h)){if(o.delete(h),r.size=e?n.enqueue(h):r.add(h)},dismissAllToasts:()=>{r.clear(),n.clear()},dismissToast:u=>{r.delete(u)},isToastVisible:u=>r.has(u),updateToast:u=>{const{toastId:d}=u,f=o.get(d);f&&(Object.assign(f,u),f.updateId++)},visibleToasts:r,toasts:o}}const ga=(t,e,r)=>{const o={};var n;const i=r?k$(r)?r:(n=r[t])!==null&&n!==void 0?n:{}:{},a=t==="top"||t==="bottom",{horizontal:s=a?0:20,vertical:c=16}=i,l=e==="ltr"?"left":"right",u=e==="ltr"?"right":"left";switch(t){case"top":Object.assign(o,{top:c,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(o,{bottom:c,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(o,{top:c,[l]:s});break;case"top-end":Object.assign(o,{top:c,[u]:s});break;case"bottom-start":Object.assign(o,{bottom:c,[l]:s});break;case"bottom-end":Object.assign(o,{bottom:c,[u]:s});break}return o};function k$(t){return"horizontal"in t||"vertical"in t}function _$(t={}){const e=Wz(),{toasterId:r,shortcuts:o}=t,[n]=w.useState(()=>w$(t)),{targetDocument:i}=je(),a=w.useRef(null),s=ee(g=>g===r),c=ee(g=>{if(o?.focus)return o.focus(g)}),l=w.useCallback(()=>{n.visibleToasts.forEach(g=>{var y;const v=n.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.pause()})},[n]),u=w.useCallback(()=>{n.visibleToasts.forEach(g=>{var y;const v=n.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.play()})},[n]),d=w.useCallback(()=>Array.from(n.visibleToasts).reduce((g,y)=>{const v=n.toasts.get(y);return v&&(!g||g.order{const g=d();if(g?.imperativeRef.current)g.imperativeRef.current.focus();else{var y;(y=a.current)===null||y===void 0||y.focus(),a.current=null}},[d]),h=w.useCallback(()=>{n.visibleToasts.forEach(g=>{const y=n.toasts.get(g);y?.close()}),f()},[n,f]);w.useEffect(()=>{if(!i)return;const g=(U,D)=>{const B=M=>{s(M.detail.toasterId)&&(D(M),e())};return i.addEventListener(U,B),()=>i.removeEventListener(U,B)},y=U=>{n.buildToast(U.detail,e)},v=U=>{n.dismissToast(U.detail.toastId)},m=U=>{n.updateToast(U.detail)},b=U=>{n.dismissAllToasts()},k=U=>{const D=n.toasts.get(U.detail.toastId);if(D){var B;(B=D.imperativeRef.current)===null||B===void 0||B.pause()}},S=U=>{const D=n.toasts.get(U.detail.toastId);if(D){var B;(B=D.imperativeRef.current)===null||B===void 0||B.play()}},C=g(jr.show,y),_=g(jr.update,m),T=g(jr.dismiss,v),A=g(jr.dismissAll,b),R=g(jr.pause,k),V=g(jr.play,S),E=U=>{if(c(U)){l();const B=d();if(B){var D;a.current=at(i.activeElement)?i.activeElement:null,(D=B.imperativeRef.current)===null||D===void 0||D.focus()}}};return i.addEventListener("keydown",E),()=>{C(),A(),_(),T(),R(),V(),i.removeEventListener("keydown",E)}},[n,e,i,s,l,d,c]);const p=(()=>{if(!n)return new Map;const g=new Map;return Array.from(n.toasts.values()).forEach(v=>{const{position:m}=v;g.has(m)||g.set(m,[]),m.startsWith("bottom")?g.get(m).push(v):g.get(m).unshift(v)}),g})();return{isToastVisible:n.isToastVisible,toastsToRender:p,pauseAllToasts:l,playAllToasts:u,tryRestoreFocus:f,closeAllToasts:h}}const ma=()=>{};function S$(t){const{targetDocument:e}=je();return w.useMemo(()=>e?{dispatchToast:(r,o)=>{f$(r,{...o,toasterId:t,data:{root:o?.root}},e)},dismissToast:r=>{h$(r,t,e)},dismissAllToasts:()=>{p$(t,e)},updateToast:r=>{g$({...r,data:{root:r.root},toasterId:t},e)},pauseToast:r=>{m$(r,t,e)},playToast:r=>{v$(r,t,e)}}:{dispatchToast:ma,dismissToast:ma,dismissAllToasts:ma,updateToast:ma,pauseToast:ma,playToast:ma},[e,t])}const C$={close:()=>null,intent:void 0,bodyId:"",titleId:""},cI=w.createContext(void 0),T$=cI.Provider,lI=()=>{var t;return(t=w.useContext(cI))!==null&&t!==void 0?t:C$},x$=de("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),Mm=w.forwardRef((t,e)=>{const r=x$(),{running:o,timeout:n,onTimeout:i}=t,a={animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};return n<0?null:w.createElement("span",{onAnimationEnd:i,"data-timer-status":a.animationPlayState,ref:e,style:a,className:r})});Mm.displayName="Timer";const E$={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},I$=(t,e)=>{const{visible:r,children:o,close:n,remove:i,updateId:a,announce:s,data:c,timeout:l,politeness:u,intent:d="info",pauseOnHover:f,pauseOnWindowBlur:h,imperativeRef:p,tryRestoreFocus:g,...y}=t,v=gr("toast-title"),m=gr("toast-body"),b=w.useRef(null),{targetDocument:k}=je(),[S,C]=w.useState(!1),_=w.useRef(!1),T=w.useRef(!1),A=Wf({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),R=ee(()=>{var O;const G=k?.activeElement;G&&(!((O=b.current)===null||O===void 0)&&O.contains(G))&&(T.current=!0),n()}),V=ee(O=>{var G;return(G=t.onStatusChange)===null||G===void 0?void 0:G.call(t,null,{status:O,...t})}),E=ee(()=>C(!1)),U=ee(()=>{var O;if(_.current)return;var G;const Q=!!(!((O=b.current)===null||O===void 0)&&O.contains((G=k?.activeElement)!==null&&G!==void 0?G:null));if(l<0){C(!0);return}Q||C(!0)});w.useImperativeHandle(p,()=>({focus:()=>{b.current&&b.current.focus()},play:()=>{_.current=!1,U()},pause:()=>{_.current=!0,E()}})),w.useEffect(()=>()=>V("unmounted"),[V]),w.useEffect(()=>{if(k&&h){var O,G;return(O=k.defaultView)===null||O===void 0||O.addEventListener("focus",U),(G=k.defaultView)===null||G===void 0||G.addEventListener("blur",E),()=>{var Q,fe;(Q=k.defaultView)===null||Q===void 0||Q.removeEventListener("focus",U),(fe=k.defaultView)===null||fe===void 0||fe.removeEventListener("blur",E)}}},[k,E,U,h]);const D=()=>{if(!b.current)return;const O=b.current;O.style.setProperty("--fui-toast-height",`${O.scrollHeight}px`)},B=c.root,M=w.useCallback(O=>{O&&b.current&&b.current.addEventListener("animationend",()=>{U(),V("visible")},{once:!0})},[U,V]),K=ee(O=>{var G;E(),B==null||(G=B.onMouseEnter)===null||G===void 0||G.call(B,O)}),I=ee(O=>{var G;U(),B==null||(G=B.onMouseEnter)===null||G===void 0||G.call(B,O)}),{findFirstFocusable:F,findLastFocusable:$}=bn(),N=ee(O=>{var G;if(O.key===ZO&&(O.preventDefault(),R()),O.key===LT&&O.currentTarget===O.target)if(O.preventDefault(),O.shiftKey){var Q;(Q=$(O.currentTarget))===null||Q===void 0||Q.focus()}else{var fe;(fe=F(O.currentTarget))===null||fe===void 0||fe.focus()}B==null||(G=B.onKeyDown)===null||G===void 0||G.call(B,O)});return w.useEffect(()=>{var O;if(!r)return;const G=u??E$[d];var Q;s((Q=(O=b.current)===null||O===void 0?void 0:O.textContent)!==null&&Q!==void 0?Q:"",{politeness:G})},[s,u,b,r,a,d]),w.useEffect(()=>()=>{T.current&&(T.current=!1,g())},[g]),{components:{timer:Mm,root:"div"},timer:ae({key:a,onTimeout:R,running:S,timeout:l??-1},{elementType:Mm}),root:ae(we("div",{ref:bt(e,b,M),children:o,tabIndex:0,role:"listitem","aria-labelledby":v,"aria-describedby":m,...y,...B,...A,onMouseEnter:K,onMouseLeave:I,onKeyDown:N}),{elementType:"div"}),timerTimeout:l,transitionTimeout:500,running:S,visible:r,remove:i,close:R,onTransitionEntering:D,updateId:a,nodeRef:b,intent:d,titleId:v,bodyId:m}},A$=(t,e)=>{const{onTransitionEntering:r,visible:o,transitionTimeout:n,remove:i,nodeRef:a}=t;return q(F2,{in:o,appear:!0,unmountOnExit:!0,timeout:n,onExited:i,onEntering:r,nodeRef:a,children:Ee(T$,{value:e.toast,children:[q(t.root,{}),q(t.timer,{})]})})},uI={root:"fui-ToastContainer",timer:"fui-ToastContainer__timer"},R$=de("r1qaza64","r1e6dlul",[".r1qaza64{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1qaza64[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",".r1e6dlul{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1e6dlul[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"]),P$=H({enter:{vin17d:"fayl5bc",m1gqa9:"f17oyct0",Bv12yb3:"fvv8lvk"},exit:{vin17d:"f1tk3cza",m1gqa9:"f1nx6yy9",Bv12yb3:"f9wuypy"}},{d:[".fayl5bc{animation-duration:200ms,400ms;}",".f17oyct0{animation-delay:0ms,200ms;}",".fvv8lvk{animation-name:f1rp83na,f5j8bii;}",".f1tk3cza{animation-duration:400ms,200ms;}",".f1nx6yy9{animation-delay:0ms,400ms;}",".f9wuypy{animation-name:fk0lfw7,f1n32sdh;}"],k:["@keyframes f1rp83na{from{max-height:0;opacity:0;margin-top:0;}to{margin-top:16px;opacity:0;max-height:var(--fui-toast-height);}}","@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fk0lfw7{from{opacity:1;}to{opacity:0;}}","@keyframes f1n32sdh{from{opacity:0;}to{opacity:0;margin-top:0;max-height:0;}}"]}),B$=t=>{const e=R$(),r=P$();return t.root.className=j(uI.root,e,t.visible?r.enter:r.exit,t.root.className),t};function N$(t){const{close:e,intent:r,titleId:o,bodyId:n}=t;return{toast:w.useMemo(()=>({close:e,intent:r,titleId:o,bodyId:n}),[e,r,o,n])}}const dI=w.forwardRef((t,e)=>{const r=I$(t,e);return B$(r),A$(r,N$(r))});dI.displayName="ToastContainer";const Rk=()=>{};function z$(t,e){const{targetDocument:r}=je(),o=w.useRef(Rk);return w.useCallback(n=>{if(!n||!r){o.current(),o.current=Rk;return}const i=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return at(l)&&l.classList.contains(uI.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),a=l=>{const{target:u,key:d}=l;if(at(u)){if(d===Yf){i.currentNode=u;let f=i.nextNode();f||(i.currentNode=n,f=i.nextNode()),at(f)&&f.focus()}if(d===_b){i.currentNode=u;let f=i.previousNode();f&&f.contains(u)&&(f=i.previousNode()),f||(i.currentNode=n,f=i.lastChild()),at(f)&&f.focus()}}},s=l=>{at(l.currentTarget)&&!l.currentTarget.contains(at(l.relatedTarget)?l.relatedTarget:null)&&t()},c=l=>{at(l.currentTarget)&&!l.currentTarget.contains(at(l.relatedTarget)?l.relatedTarget:null)&&e()};n.addEventListener("keydown",a),n.addEventListener("focusin",s),n.addEventListener("focusout",c),o.current=()=>{n.removeEventListener("keydown",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",c)}},[r,t,e])}function M$(t){const e=w.useRef(!0),r=w.useRef(()=>{}),o=w.useCallback((i,a)=>{e.current&&t(i,a)},[t]),n=w.useCallback(i=>{if(!i){r.current();return}const a=c=>{at(c.currentTarget)&&c.currentTarget.contains(at(c.relatedTarget)?c.relatedTarget:null)||(e.current=!1)},s=c=>{at(c.currentTarget)&&c.currentTarget.contains(at(c.relatedTarget)?c.relatedTarget:null)||(e.current=!0)};i.addEventListener("focusin",a),i.addEventListener("focusout",s),r.current=()=>{i.removeEventListener("focusin",a),i.removeEventListener("focusout",s)}},[]);return{announceToast:o,toasterRef:n}}const O$=t=>{const{offset:e,announce:r,mountNode:o,inline:n=!1,...i}=t,a=w.useRef(()=>null),{toastsToRender:s,isToastVisible:c,pauseAllToasts:l,playAllToasts:u,tryRestoreFocus:d,closeAllToasts:f}=_$(i),h=w.useCallback((b,k)=>a.current(b,k),[]),{dir:p}=je(),g=ae(we("div",i),{elementType:"div"}),y=Wf({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),v=ee(b=>{var k;b.key===yn&&(b.preventDefault(),f()),(k=t.onKeyDown)===null||k===void 0||k.call(t,b)}),m=b=>{var k;const S=z$(l,u),{announceToast:C,toasterRef:_}=M$(r??h);return ve(s.has(b)?g:null,{defaultProps:{ref:bt(S,_),children:(k=s.get(b))===null||k===void 0?void 0:k.map(T=>w.createElement(dI,{...T,tryRestoreFocus:d,intent:T.intent,announce:C,key:T.toastId,visible:c(T.toastId)},T.content)),onKeyDown:v,...y,"data-toaster-position":b,role:"list"},elementType:"div"})};return{dir:p,mountNode:o,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:ae(g,{elementType:"div"}),bottomStart:m(Fr.bottomStart),bottomEnd:m(Fr.bottomEnd),topStart:m(Fr.topStart),topEnd:m(Fr.topEnd),top:m(Fr.top),bottom:m(Fr.bottom),announceRef:a,offset:e,announce:r??h,renderAriaLive:!r,inline:n}},D$=500,j$=t=>{const[e,r]=w.useState(void 0),o=w.useRef(0),[n]=w.useState(()=>nT((c,l)=>c.politeness===l.politeness?c.createdAt-l.createdAt:c.politeness==="assertive"?-1:1)),i=ee((c,l)=>{const{politeness:u}=l;if(c===e?.message)return;const d={message:c,politeness:u,createdAt:o.current++};e?n.enqueue(d):r(d)});w.useEffect(()=>{const c=setTimeout(()=>{n.peek()?r(n.dequeue()):r(void 0)},D$);return()=>clearTimeout(c)},[e,n]),w.useImperativeHandle(t.announceRef,()=>i);const a=e?.politeness==="polite"?e.message:void 0,s=e?.politeness==="assertive"?e.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:ae(t.assertive,{defaultProps:{"aria-live":"assertive",children:s},elementType:"div"}),polite:ae(t.polite,{defaultProps:{"aria-live":"polite",children:a},elementType:"div"})}},F$=t=>Ee(w.Fragment,{children:[q(t.assertive,{}),q(t.polite,{})]}),Pk={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},L$=de("rsuwu0d","r1m1grr4",[".rsuwu0d{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-right:-1px;margin-bottom:-1px;margin-left:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;width:1px;position:absolute;}",".r1m1grr4{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-left:-1px;margin-bottom:-1px;margin-right:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-left:0px;padding-bottom:0px;padding-right:0px;width:1px;position:absolute;}"]),q$=t=>{const e=L$();return t.assertive.className=j(e,Pk.assertive,t.assertive.className),t.polite.className=j(e,Pk.polite,t.polite.className),t},fI=t=>{const e=j$(t);return q$(e),F$(e)};fI.displayName="AriaLive";const H$=t=>{const{announceRef:e,renderAriaLive:r,inline:o,mountNode:n}=t,i=!!t.bottomStart||!!t.bottomEnd||!!t.topStart||!!t.topEnd||!!t.top||!!t.bottom,a=r?q(fI,{announceRef:e}):null,s=Ee(w.Fragment,{children:[t.bottom?q(t.bottom,{}):null,t.bottomStart?q(t.bottomStart,{}):null,t.bottomEnd?q(t.bottomEnd,{}):null,t.topStart?q(t.topStart,{}):null,t.topEnd?q(t.topEnd,{}):null,t.top?q(t.top,{}):null]});return o?Ee(w.Fragment,{children:[a,i?s:null]}):Ee(w.Fragment,{children:[a,i?q(aa,{mountNode:n,children:s}):null]})},U$={root:"fui-Toaster"},$$=de("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),K$=H({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),W$=t=>{const e=$$(),r=K$(),o=j(U$.root,e,t.inline&&r.inline,t.root.className);if(t.bottomStart){var n;t.bottomStart.className=o;var i;(i=(n=t.bottomStart).style)!==null&&i!==void 0||(n.style={}),Object.assign(t.bottomStart.style,ga(Fr.bottomStart,t.dir,t.offset))}if(t.bottomEnd){var a;t.bottomEnd.className=o;var s;(s=(a=t.bottomEnd).style)!==null&&s!==void 0||(a.style={}),Object.assign(t.bottomEnd.style,ga(Fr.bottomEnd,t.dir,t.offset))}if(t.topStart){var c;t.topStart.className=o;var l;(l=(c=t.topStart).style)!==null&&l!==void 0||(c.style={}),Object.assign(t.topStart.style,ga(Fr.topStart,t.dir,t.offset))}if(t.topEnd){var u;t.topEnd.className=o;var d;(d=(u=t.topEnd).style)!==null&&d!==void 0||(u.style={}),Object.assign(t.topEnd.style,ga(Fr.topEnd,t.dir,t.offset))}if(t.top){var f;t.top.className=o;var h;(h=(f=t.top).style)!==null&&h!==void 0||(f.style={}),Object.assign(t.top.style,ga(Fr.top,t.dir,t.offset))}if(t.bottom){var p;t.bottom.className=o;var g;(g=(p=t.bottom).style)!==null&&g!==void 0||(p.style={}),Object.assign(t.bottom.style,ga(Fr.bottom,t.dir,t.offset))}return t},hI=t=>{const e=O$(t);return W$(e),ge("useToasterStyles_unstable")(e),H$(e)};hI.displayName="Toaster";const V$=(t,e)=>({components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),backgroundAppearance:t.appearance}),G$=(t,e)=>q(a3,{value:e.backgroundAppearance,children:q(t.root,{})}),X$={root:"fui-Toast"},Y$=de("rzyoxeq","r1lipnsg",[".rzyoxeq{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}",".r1lipnsg{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-left:12px;padding-bottom:12px;padding-right:12px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),Q$=H({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),Z$=t=>{const e=Y$(),r=Q$();return t.root.className=j(X$.root,e,t.backgroundAppearance==="inverted"&&r.inverted,t.root.className),t};function J$(t){const{backgroundAppearance:e}=t;return{backgroundAppearance:e}}const Ms=w.forwardRef((t,e)=>{const r=V$(t,e);return Z$(r),G$(r,J$(r))});Ms.displayName="Toast";const eK=(t,e)=>{const{intent:r,titleId:o}=lI(),n=db();let i;switch(r){case"success":i=w.createElement(R3,null);break;case"error":i=w.createElement(D3,null);break;case"warning":i=w.createElement(q3,null);break;case"info":i=w.createElement(j3,null);break}return{action:ve(t.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:ve(t.media,{renderByDefault:!!r,defaultProps:{children:i},elementType:"div"}),root:ae(we("div",{ref:e,children:t.children,id:o,...t}),{elementType:"div"}),intent:r,backgroundAppearance:n}},tK=t=>Ee(w.Fragment,{children:[t.media?q(t.media,{}):null,q(t.root,{}),t.action?q(t.action,{}):null]}),Pp={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},rK=de("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),oK=de("r8x5mrd","r1soj19y",[".r8x5mrd{display:flex;padding-top:2px;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}",".r1soj19y{display:flex;padding-top:2px;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}"]),nK=de("r2j19ip","rjfozdo",[".r2j19ip{display:flex;align-items:start;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}",".rjfozdo{display:flex;align-items:start;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}"]),iK=H({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),aK=H({success:{sj55zd:"f1m7fhi8"},error:{sj55zd:"fg9gses"},warning:{sj55zd:"f1k5f75o"},info:{sj55zd:"fkfq4zb"}},{d:[".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),sK=H({success:{sj55zd:"f1pvjcpr"},error:{sj55zd:"fcrp5ll"},warning:{sj55zd:"f1r8f1cl"},info:{sj55zd:"f1w7i9ko"}},{d:[".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),cK=t=>{const e=rK(),r=nK(),o=oK(),n=aK(),i=sK(),{intent:a}=t,s=iK();return t.root.className=j(Pp.root,e,t.backgroundAppearance==="inverted"&&s.root,t.root.className),t.media&&(t.media.className=j(Pp.media,o,t.backgroundAppearance==="inverted"&&s.media,t.media.className,a&&n[a],a&&t.backgroundAppearance==="inverted"&&i[a])),t.action&&(t.action.className=j(Pp.action,r,t.backgroundAppearance==="inverted"&&s.action,t.action.className)),t},Os=w.forwardRef((t,e)=>{const r=eK(t,e);return cK(r),tK(r)});Os.displayName="ToastTitle";const lK=(t,e)=>{const r=db(),{bodyId:o}=lI();return{components:{root:"div",subtitle:"div"},subtitle:ve(t.subtitle,{elementType:"div"}),root:ae(we("div",{ref:e,id:o,...t}),{elementType:"div"}),backgroundAppearance:r}},uK=t=>Ee(w.Fragment,{children:[q(t.root,{}),t.subtitle?q(t.subtitle,{}):null]}),Bk={root:"fui-ToastBody",subtitle:"fui-ToastBody__subtitle"},dK=de("rciajo9",null,[".rciajo9{grid-column-start:2;grid-column-end:3;padding-top:6px;font-size:var(--fontSizeBase300);line-height:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground1);word-break:break-word;}"]),fK=de("rzjw1xk",null,[".rzjw1xk{padding-top:4px;grid-column-start:2;grid-column-end:3;font-size:var(--fontSizeBase200);line-height:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground2);}"]),hK=H({root:{sj55zd:"f1w7i9ko"},subtitle:{sj55zd:"f1w7i9ko"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),pK=t=>{const e=dK(),r=fK(),o=hK();return t.root.className=j(Bk.root,e,t.backgroundAppearance==="inverted"&&o.root,t.root.className),t.subtitle&&(t.subtitle.className=j(Bk.subtitle,r,t.backgroundAppearance==="inverted"&&o.subtitle,t.subtitle.className)),t},Wl=w.forwardRef((t,e)=>{const r=lK(t,e);return pK(r),uK(r)});Wl.displayName="ToastBody";const gK=()=>{var t;const e=je(),r=w.useRef(!1),o=ra()&&((t=e.targetDocument)===null||t===void 0?void 0:t.defaultView),n=w.useCallback(i=>{r.current=i.matches},[]);return er(()=>{if(!o||!o.matchMedia)return;const i=o.matchMedia("screen and (prefers-reduced-motion: reduce)");return i.matches&&(r.current=!0),i.addEventListener("change",n),()=>i.removeEventListener("change",n)},[n,o]),r.current},mK=t=>pI(t)?t.computedStyleMap():vK(t),pI=t=>!!(typeof CSS<"u"&&CSS.number&&t.computedStyleMap),vK=t=>{var e,r;const o=ra()&&((r=(e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView)!==null&&r!==void 0?r:window);return o?o.getComputedStyle(t,null):{getPropertyValue:n=>""}};function Nk(t){const e=t.trim();if(e.includes("auto"))return 0;if(e.endsWith("ms")){const r=Number(e.replace("ms",""));return isNaN(r)?0:r}return Number(e.slice(0,-1).replace(",","."))*1e3}const bK=(t,e)=>{const r=t.getAll(e);return r.length>0?r.map(({value:o,unit:n})=>`${o}${n}`):["0"]},yK=(t,e)=>{const r=t.getPropertyValue(e);return r?r.split(","):["0"]},zk=(t,e)=>{const r=Math.max(t.length,e.length),o=[];if(r===0)return 0;for(let n=0;n{const e=pI(t),r=mK(t),o=a=>e?bK(r,a):yK(r,a),n=zk(o("transition-duration"),o("transition-delay")),i=zk(o("animation-duration"),o("animation-delay"));return Math.max(n,i)},kK=t=>{const e=w.useRef(!0);return e.current&&t?(e.current=!1,!0):e.current};function _K(t,e={}){const{animateOnFirstMount:r,duration:o}={animateOnFirstMount:!1,...e},[n,i]=w.useState(t&&r?"entering":t?"idle":"unmounted"),[a,s]=w.useState(!r&&t),[c,l]=Hc(),[u,d]=Hc(),[f,h]=Fz(),[p,g]=w.useState(null),y=gK(),v=Kz(),m=kK(!!p),b=w.useRef(t).current,k=y||m&&b&&!r,S=w.useCallback(T=>{T&&g(T)},[]),C=w.useCallback(T=>(u(()=>f(T),0),()=>{d(),h()}),[h,d,f,u]),_=w.useCallback(()=>{i(t?"entered":"exited"),C(()=>i(t?"idle":"unmounted"))},[C,t]);return w.useEffect(()=>{if(!v){if(k){i(t?"idle":"unmounted"),s(t);return}if(i(t?"entering":"exiting"),!!p)return C(()=>{s(t),C(()=>{const T=o||wK(p);if(T===0){_();return}c(()=>_(),T)})}),()=>l()}},[p,k,_,t]),w.useMemo(()=>({ref:S,type:n,active:a,canRender:t||n!=="unmounted"}),[a,n,t])}function gI(t,e){const r=typeof t=="object",o=_K(r?!1:t,e);return r?t:o}const SK=H({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});const Om=(t,e)=>{const{reduced:r}=SK(),o=w.useMemo(()=>!e.enter&&!e.exit?"":t.active||t.type==="idle"?e.enter:t.active?"":e.exit,[t.active,t.type,e.enter,e.exit]);return w.useEffect(()=>void 0,[e]),j(e.default,o,e[t.type],r)};function mI(t){const{open:e=!1,size:r="small",position:o="start"}=t;return{size:r,position:o,open:e}}const CK=de("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),TK=H({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),xK=t=>{const e=CK(),r=TK();return t.backdrop&&(t.backdrop.className=j(e,t.isNestedDialog&&r.nested,t.backdrop.className)),t},Dm=w.forwardRef((t,e)=>{const r=U2(t,e),o=K2();return xK(r),$2(r,o)});Dm.displayName="OverlayDrawerSurface";const EK=(t,e)=>{const{open:r,size:o,position:n}=mI(t),{modalType:i="modal",inertTrapFocus:a,defaultOpen:s=!1,onOpenChange:c}=t,l=gI(r),u=lb(t.backdrop),f=ae({...t,backdrop:i!=="non-modal"&&u!==null?{...u}:null},{elementType:Dm,defaultProps:{ref:bt(e,l.ref)}}),h=ae({open:!0,defaultOpen:s,onOpenChange:c,inertTrapFocus:a,modalType:i,children:null},{elementType:hl});return{components:{root:Dm,dialog:hl},root:f,dialog:h,size:o,position:n,motion:l}},IK=t=>t.motion.canRender?q(t.dialog,{children:q(t.root,{})}):null,AK=H({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),vI=H({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),bI=({position:t,size:e,motion:r})=>{const o=AK(),n=vI();return j(o[t],n[e],o[e],o.reducedMotion,r.type==="entering"&&o.entering,r.type==="exiting"&&o.exiting)},Mk={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},RK=de("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),PK=H({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),BK=H({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),NK=H({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),zK=t=>{const e=bI(t),r=RK(),o=PK(),n=vI(),i=Om(t.motion,BK()),a=Om(t.motion,NK()),s=t.root.backdrop;return t.root.className=j(Mk.root,e,r,o[t.position],i,t.root.className),s&&(s.className=j(Mk.backdrop,a,n[t.size],s.className)),t},yI=w.forwardRef((t,e)=>{const r=EK(t,e);return zK(r),ge("useDrawerOverlayStyles_unstable")(r),ge("useOverlayDrawerStyles_unstable")(r),IK(r)});yI.displayName="OverlayDrawer";const MK=(t,e)=>{const{size:r,position:o,open:n}=mI(t),{separator:i=!1}=t,a=gI(n);return{components:{root:"div"},root:ae(we("div",{...t,ref:bt(e,a.ref)}),{elementType:"div"}),size:r,position:o,separator:i,motion:a}},OK=t=>t.motion.canRender?q(t.root,{}):null,DK={root:"fui-InlineDrawer"},jK=de("r46ju4x",null,[".r46ju4x{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),FK=H({separatorStart:{Bekrc4i:["f1hqa2wf","finvdd3"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["fa8zu9y","f17e9lqh"]},separatorEnd:{ibv6hh:["finvdd3","f1hqa2wf"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["f17e9lqh","fa8zu9y"]},start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1h1g6jt"}},{d:[".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fa8zu9y{border-right-color:var(--colorNeutralBackground3);}",".f17e9lqh{border-left-color:var(--colorNeutralBackground3);}",".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1h1g6jt{transform:translate3D(var(--fui-Drawer--size), 0, 0);}"]}),LK=H({default:{abs64n:"fk73vx1",Bmy1vo4:"f15rjlgw",Es3by:"f1blt7p"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx"}},{d:[".fk73vx1{opacity:0;}",".f15rjlgw{transition-property:opacity,transform;}",".f1blt7p{will-change:opacity,transform;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}"]}),qK=t=>{const e=jK(),r=bI(t),o=FK(),n=Om(t.motion,LK()),i=w.useMemo(()=>{if(t.separator)return t.position==="start"?o.separatorStart:o.separatorEnd},[t.position,t.separator,o.separatorEnd,o.separatorStart]);return t.root.className=j(DK.root,e,r,i,o[t.position],n,t.root.className),t},wI=w.forwardRef((t,e)=>{const r=MK(t,e);return qK(r),ge("useDrawerInlineStyles_unstable")(r),ge("useInlineDrawerStyles_unstable")(r),OK(r)});wI.displayName="InlineDrawer";const HK=(t,e)=>{const r=t.type==="inline"?wI:yI;return{components:{root:r},root:ae(lb({ref:e,...t}),{elementType:r})}},UK=t=>q(t.root,{}),$K={root:"fui-Drawer"},KK=t=>(t.root.className=j($K.root,t.root.className),t),kI=w.forwardRef((t,e)=>{const r=HK(t,e);return KK(r),ge("useDrawerStyles_unstable")(r),UK(r)});kI.displayName="Drawer";const WK=(t,e)=>({components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"})}),VK=t=>q(t.root,{}),GK={root:"fui-DrawerBody"},XK=de("r10z3gsy","r1ppc5ap",[".r10z3gsy{margin-top:-1px;margin-right:0;margin-bottom:-1px;margin-left:0;padding-top:1px;padding-right:var(--spacingHorizontalXXL);padding-bottom:1px;padding-left:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r10z3gsy:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r10z3gsy:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap{margin-top:-1px;margin-left:0;margin-bottom:-1px;margin-right:0;padding-top:1px;padding-left:var(--spacingHorizontalXXL);padding-bottom:1px;padding-right:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r1ppc5ap:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),YK=t=>{const e=XK();return t.root.className=j(GK.root,e,t.root.className),t},_I=w.forwardRef((t,e)=>{const r=WK(t,e);return YK(r),ge("useDrawerBodyStyles_unstable")(r),VK(r)});_I.displayName="DrawerBody";const QK=(t,e)=>({components:{root:"header"},root:ae(we("header",{ref:e,...t}),{elementType:"header"})}),ZK=t=>q(t.root,{}),JK={root:"fui-DrawerHeader"},eW=de("rh4hr5f","r116c7xc",[".rh4hr5f{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}",".r116c7xc{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}"]),tW=t=>{const e=eW();return t.root.className=j(JK.root,e,t.root.className),t},SI=w.forwardRef((t,e)=>{const r=QK(t,e);return tW(r),ge("useDrawerHeaderStyles_unstable")(r),ZK(r)});SI.displayName="DrawerHeader";const rW=({children:t,heading:e})=>{const r=So(o=>o.dialogTitleId);return ve(e,{defaultProps:{id:r,children:t},renderByDefault:!0,elementType:"h2"})},oW=(t,e)=>{const r=rW(t);return{components:{root:"div",heading:"h2",action:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),heading:r,action:ve(t.action,{elementType:"div"})}},nW=t=>Ee(t.root,{children:[t.heading&&q(t.heading,{}),t.action&&q(t.action,{})]}),Bp={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},iW=H({root:{mc9l5x:"f22iagw",Brf1p80:"f1869bpl",Bt984gj:"f122n59",i8kkvl:"fsnqrgy"},action:{t21cq0:["faqnl2i","fd75udd"]}},{d:[".f22iagw{display:flex;}",".f1869bpl{justify-content:space-between;}",".f122n59{align-items:center;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".faqnl2i{margin-right:calc(var(--spacingHorizontalS) * -1);}",".fd75udd{margin-left:calc(var(--spacingHorizontalS) * -1);}"]}),aW=t=>{const e=iW(),{heading:r={},action:o,components:n}=t;return q2({components:{root:n.heading,action:n.action},root:r,action:o}),t.root.className=j(Bp.root,e.root,t.root.className),t.heading&&(t.heading.className=j(Bp.heading,t.heading.className)),t.action&&(t.action.className=j(Bp.action,e.action,t.action.className)),t},CI=w.forwardRef((t,e)=>{const r=oW(t,e);return aW(r),ge("useDrawerHeaderTitleStyles_unstable")(r),nW(r)});CI.displayName="DrawerHeaderTitle";var jm={},Ok=ky;jm.createRoot=Ok.createRoot,jm.hydrateRoot=Ok.hydrateRoot;var sW=function(t){return function(e,r){var o=w.useRef(!1);t(function(){return function(){o.current=!1}},[]),t(function(){if(!o.current)o.current=!0;else return e()},r)}},Fm=function(t,e){return Fm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},Fm(t,e)};function bh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Fm(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ro=function(){return ro=Object.assign||function(e){for(var r,o=1,n=arguments.length;o0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],a;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function _t(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o-1&&(n=setTimeout(function(){dd.delete(t)},e)),dd.set(t,ro(ro({},r),{timer:n}))},pW=function(t){return dd.get(t)},fd=new Map,gW=function(t){return fd.get(t)},mW=function(t,e){fd.set(t,e),e.then(function(r){return fd.delete(t),r}).catch(function(){fd.delete(t)})},yi={},vW=function(t,e){yi[t]&&yi[t].forEach(function(r){return r(e)})},Np=function(t,e){return yi[t]||(yi[t]=[]),yi[t].push(e),function(){var o=yi[t].indexOf(e);yi[t].splice(o,1)}},bW=function(t,e){var r=e.cacheKey,o=e.cacheTime,n=o===void 0?5*60*1e3:o,i=e.staleTime,a=i===void 0?0:i,s=e.setCache,c=e.getCache,l=w.useRef(),u=w.useRef(),d=function(h,p){s?s(p):hW(h,n,p),vW(h,p.data)},f=function(h,p){return p===void 0&&(p=[]),c?c(p):pW(h)};return EI(function(){if(r){var h=f(r);h&&Object.hasOwnProperty.call(h,"data")&&(t.state.data=h.data,t.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(t.state.loading=!1)),l.current=Np(r,function(p){t.setState({data:p})})}},[]),My(function(){var h;(h=l.current)===null||h===void 0||h.call(l)}),r?{onBefore:function(h){var p=f(r,h);return!p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p?.data,error:void 0,returnNow:!0}:{data:p?.data,error:void 0}},onRequest:function(h,p){var g=gW(r);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,_t([],ut(p),!1)),u.current=g,mW(r,g),{servicePromise:g})},onSuccess:function(h,p){var g;r&&((g=l.current)===null||g===void 0||g.call(l),d(r,{data:h,params:p,time:new Date().getTime()}),l.current=Np(r,function(y){t.setState({data:y})}))},onMutate:function(h){var p;r&&((p=l.current)===null||p===void 0||p.call(l),d(r,{data:h,params:t.state.params,time:new Date().getTime()}),l.current=Np(r,function(g){t.setState({data:g})}))}}:{}};const yW=bW;function wW(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Oy=wW,kW=typeof rc=="object"&&rc&&rc.Object===Object&&rc,_W=kW,SW=_W,CW=typeof self=="object"&&self&&self.Object===Object&&self,TW=SW||CW||Function("return this")(),AI=TW,xW=AI,EW=function(){return xW.Date.now()},IW=EW,AW=/\s/;function RW(t){for(var e=t.length;e--&&AW.test(t.charAt(e)););return e}var PW=RW,BW=PW,NW=/^\s+/;function zW(t){return t&&t.slice(0,BW(t)+1).replace(NW,"")}var MW=zW,OW=AI,DW=OW.Symbol,RI=DW,Dk=RI,PI=Object.prototype,jW=PI.hasOwnProperty,FW=PI.toString,Qs=Dk?Dk.toStringTag:void 0;function LW(t){var e=jW.call(t,Qs),r=t[Qs];try{t[Qs]=void 0;var o=!0}catch{}var n=FW.call(t);return o&&(e?t[Qs]=r:delete t[Qs]),n}var qW=LW,HW=Object.prototype,UW=HW.toString;function $W(t){return UW.call(t)}var KW=$W,jk=RI,WW=qW,VW=KW,GW="[object Null]",XW="[object Undefined]",Fk=jk?jk.toStringTag:void 0;function YW(t){return t==null?t===void 0?XW:GW:Fk&&Fk in Object(t)?WW(t):VW(t)}var QW=YW;function ZW(t){return t!=null&&typeof t=="object"}var JW=ZW,eV=QW,tV=JW,rV="[object Symbol]";function oV(t){return typeof t=="symbol"||tV(t)&&eV(t)==rV}var nV=oV,iV=MW,Lk=Oy,aV=nV,qk=NaN,sV=/^[-+]0x[0-9a-f]+$/i,cV=/^0b[01]+$/i,lV=/^0o[0-7]+$/i,uV=parseInt;function dV(t){if(typeof t=="number")return t;if(aV(t))return qk;if(Lk(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Lk(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=iV(t);var r=cV.test(t);return r||lV.test(t)?uV(t.slice(2),r?2:8):sV.test(t)?qk:+t}var fV=dV,hV=Oy,zp=IW,Hk=fV,pV="Expected a function",gV=Math.max,mV=Math.min;function vV(t,e,r){var o,n,i,a,s,c,l=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(pV);e=Hk(e)||0,hV(r)&&(u=!!r.leading,d="maxWait"in r,i=d?gV(Hk(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f);function h(C){var _=o,T=n;return o=n=void 0,l=C,a=t.apply(T,_),a}function p(C){return l=C,s=setTimeout(v,e),u?h(C):a}function g(C){var _=C-c,T=C-l,A=e-_;return d?mV(A,i-T):A}function y(C){var _=C-c,T=C-l;return c===void 0||_>=e||_<0||d&&T>=i}function v(){var C=zp();if(y(C))return m(C);s=setTimeout(v,g(C))}function m(C){return s=void 0,f&&o?h(C):(o=n=void 0,a)}function b(){s!==void 0&&clearTimeout(s),l=0,o=c=n=s=void 0}function k(){return s===void 0?a:m(zp())}function S(){var C=zp(),_=y(C);if(o=arguments,n=this,c=C,_){if(s===void 0)return p(c);if(d)return clearTimeout(s),s=setTimeout(v,e),h(c)}return s===void 0&&(s=setTimeout(v,e)),a}return S.cancel=b,S.flush=k,S}var BI=vV;const bV=Oo(BI);var yV=function(t,e){var r=e.debounceWait,o=e.debounceLeading,n=e.debounceTrailing,i=e.debounceMaxWait,a=w.useRef(),s=w.useMemo(function(){var c={};return o!==void 0&&(c.leading=o),n!==void 0&&(c.trailing=n),i!==void 0&&(c.maxWait=i),c},[o,n,i]);return w.useEffect(function(){if(r){var c=t.runAsync.bind(t);return a.current=bV(function(l){l()},r,s),t.runAsync=function(){for(var l=[],u=0;u-1&&Nc.splice(r,1)}}if(yh){var Uk=function(){if(!(!Dy()||!IV()))for(var t=0;t=B?D:""+Array(B+1-K.length).join(M)+D},k={s:b,z:function(D){var B=-D.utcOffset(),M=Math.abs(B),K=Math.floor(M/60),I=M%60;return(B<=0?"+":"-")+b(K,2,"0")+":"+b(I,2,"0")},m:function D(B,M){if(B.date()1)return D($[0])}else{var N=B.name;C[N]=B,I=N}return!K&&I&&(S=I),I||!K&&S},R=function(D,B){if(T(D))return D.clone();var M=typeof B=="object"?B:{};return M.date=D,M.args=arguments,new E(M)},V=k;V.l=A,V.i=T,V.w=function(D,B){return R(D,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function D(M){this.$L=A(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[_]=!0}var B=D.prototype;return B.parse=function(M){this.$d=function(K){var I=K.date,F=K.utc;if(I===null)return new Date(NaN);if(V.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var $=I.match(y);if($){var N=$[2]-1||0,O=($[7]||"0").substring(0,3);return F?new Date(Date.UTC($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(I)}(M),this.init()},B.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},B.$utils=function(){return V},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(M,K){var I=R(M);return this.startOf(K)<=I&&I<=this.endOf(K)},B.isAfter=function(M,K){return R(M)r).map(r=>r.toString().replace(/^\/+/,"")).join("/")}`}const zI=w.createContext({});function Ds(){return w.useContext(zI)}function GV({children:t}){const[e,r]=w.useState(()=>({Paths:location.pathname.split("/").filter(c=>c),Search:new URLSearchParams(location.search),Put:o,Nav:(...c)=>i(Mp(c)),Rep:(...c)=>a(Mp(c)),Reload:(...c)=>s(c)}));function o(c){history.replaceState(null,"",`${location.pathname}${c.size?"?":""}${c.toString()}`),e.Search=new URLSearchParams(c),r({...e})}function n(c){e.Paths=c.split("/").filter(l=>l),e.Search=new URLSearchParams(location.search),r({...e})}function i(c){history.pushState(null,"",c),n(c)}function a(c){history.replaceState(null,"",c),n(c)}function s(c){history.replaceState(null,"","/Reload"),n("/Reload"),setTimeout(()=>{const l=c.length?Mp(c):location.pathname;history.pushState(null,"",l),n(l)},100)}return jy(()=>{location.pathname==="/"&&location.search.startsWith("?/")&&a(location.search.substring(2)),addEventListener("click",c=>{const l=c.target?.closest("a");if(l){if(l.origin!==location.origin){l.target="_blank";return}c.preventDefault(),i(l.pathname)}}),addEventListener("popstate",c=>{c.preventDefault(),n(location.pathname)})}),x.jsx(zI.Provider,{value:e,children:t})}class sa{namespace;info;error;warn;debug;throw;constructor(...e){this.namespace=e.join(" > "),this.error=console.error.bind(this,this.baseColor(101,"error"),` +`+i.stack}return{value:t,source:e,stack:n,digest:null}}function wp(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function fm(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var MF=typeof WeakMap=="function"?WeakMap:Map;function ME(t,e,r){r=tn(-1,r),r.tag=3,r.payload={element:null};var o=e.value;return r.callback=function(){cf||(cf=!0,_m=o),fm(t,e)},r}function OE(t,e,r){r=tn(-1,r),r.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var n=e.value;r.payload=function(){return o(n)},r.callback=function(){fm(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){fm(t,e),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Gw(t,e,r){var o=t.pingCache;if(o===null){o=t.pingCache=new MF;var n=new Set;o.set(e,n)}else n=o.get(e),n===void 0&&(n=new Set,o.set(e,n));n.has(r)||(n.add(r),t=XF.bind(null,t,e,r),e.then(t,t))}function Xw(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Yw(t,e,r,o,n){return t.mode&1?(t.flags|=65536,t.lanes=n,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=tn(-1,1),e.tag=2,$n(r,e,1))),r.lanes|=1),t)}var OF=wn.ReactCurrentOwner,dr=!1;function Yt(t,e,r,o){e.child=t===null?pE(e,null,r,o):ms(e,t.child,r,o)}function Qw(t,e,r,o,n){r=r.render;var i=e.ref;return Va(e,n),o=iy(t,e,r,o,i,n),r=ay(),t!==null&&!dr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n,hn(t,e,n)):(We&&r&&Vb(e),e.flags|=1,Yt(t,e,o,n),e.child)}function Zw(t,e,r,o,n){if(t===null){var i=r.type;return typeof i=="function"&&!my(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,DE(t,e,i,o,n)):(t=sd(r.type,null,o,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&n)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:tl,r(a,o)&&t.ref===e.ref)return hn(t,e,n)}return e.flags|=1,t=Vn(i,o),t.ref=e.ref,t.return=e,e.child=t}function DE(t,e,r,o,n){if(t!==null){var i=t.memoizedProps;if(tl(i,o)&&t.ref===e.ref)if(dr=!1,e.pendingProps=o=i,(t.lanes&n)!==0)t.flags&131072&&(dr=!0);else return e.lanes=t.lanes,hn(t,e,n)}return hm(t,e,r,o,n)}function jE(t,e,r){var o=e.pendingProps,n=o.children,i=t!==null?t.memoizedState:null;if(o.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Fa,kr),kr|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Oe(Fa,kr),kr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,Oe(Fa,kr),kr|=o}else i!==null?(o=i.baseLanes|r,e.memoizedState=null):o=r,Oe(Fa,kr),kr|=o;return Yt(t,e,n,r),e.child}function FE(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function hm(t,e,r,o,n){var i=hr(r)?Ki:Xt.current;return i=ps(e,i),Va(e,n),r=iy(t,e,r,o,i,n),o=ay(),t!==null&&!dr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n,hn(t,e,n)):(We&&o&&Vb(e),e.flags|=1,Yt(t,e,r,n),e.child)}function Jw(t,e,r,o,n){if(hr(r)){var i=!0;Qd(e)}else i=!1;if(Va(e,n),e.stateNode===null)nd(t,e),fE(e,r,o),dm(e,r,o,n),o=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=$r(l):(l=hr(r)?Ki:Xt.current,l=ps(e,l));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==o||c!==l)&&$w(e,a,o,l),An=!1;var f=e.memoizedState;a.state=f,rf(e,o,a,n),c=e.memoizedState,s!==o||f!==c||fr.current||An?(typeof u=="function"&&(um(e,r,u,o),c=e.memoizedState),(s=An||Uw(e,r,s,o,f,c,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=o,e.memoizedState=c),a.props=o,a.state=c,a.context=l,o=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),o=!1)}else{a=e.stateNode,uE(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:Qr(e.type,s),a.props=l,d=e.pendingProps,f=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=$r(c):(c=hr(r)?Ki:Xt.current,c=ps(e,c));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==c)&&$w(e,a,o,c),An=!1,f=e.memoizedState,a.state=f,rf(e,o,a,n);var p=e.memoizedState;s!==d||f!==p||fr.current||An?(typeof h=="function"&&(um(e,r,h,o),p=e.memoizedState),(l=An||Uw(e,r,l,o,f,p,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,p,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,p,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=o,e.memoizedState=p),a.props=o,a.state=p,a.context=c,o=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),o=!1)}return pm(t,e,r,o,i,n)}function pm(t,e,r,o,n,i){FE(t,e);var a=(e.flags&128)!==0;if(!o&&!a)return n&&jw(e,r,!1),hn(t,e,i);o=e.stateNode,OF.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&a?(e.child=ms(e,t.child,null,i),e.child=ms(e,null,s,i)):Yt(t,e,s,i),e.memoizedState=o.state,n&&jw(e,r,!0),e.child}function LE(t){var e=t.stateNode;e.pendingContext?Dw(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Dw(t,e.context,!1),ty(t,e.containerInfo)}function ek(t,e,r,o,n){return gs(),Xb(n),e.flags|=256,Yt(t,e,r,o),e.child}var gm={dehydrated:null,treeContext:null,retryLane:0};function mm(t){return{baseLanes:t,cachePool:null,transitions:null}}function qE(t,e,r){var o=e.pendingProps,n=Ge.current,i=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(n&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(n|=1),Oe(Ge,n&1),t===null)return cm(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=o.children,t=o.fallback,i?(o=e.mode,i=e.child,a={mode:"hidden",children:a},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=dh(a,o,0,null),t=Pi(t,o,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=mm(r),e.memoizedState=gm,t):ly(e,a));if(n=t.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return DF(t,e,a,o,s,n,r);if(i){i=o.fallback,a=e.mode,n=t.child,s=n.sibling;var c={mode:"hidden",children:o.children};return!(a&1)&&e.child!==n?(o=e.child,o.childLanes=0,o.pendingProps=c,e.deletions=null):(o=Vn(n,c),o.subtreeFlags=n.subtreeFlags&14680064),s!==null?i=Vn(s,i):(i=Pi(i,a,r,null),i.flags|=2),i.return=e,o.return=e,o.sibling=i,e.child=o,o=i,i=e.child,a=t.child.memoizedState,a=a===null?mm(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=gm,o}return i=t.child,t=i.sibling,o=Vn(i,{mode:"visible",children:o.children}),!(e.mode&1)&&(o.lanes=r),o.return=e,o.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=o,e.memoizedState=null,o}function ly(t,e){return e=dh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function bu(t,e,r,o){return o!==null&&Xb(o),ms(e,t.child,null,r),t=ly(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function DF(t,e,r,o,n,i,a){if(r)return e.flags&256?(e.flags&=-257,o=wp(Error(Y(422))),bu(t,e,a,o)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=o.fallback,n=e.mode,o=dh({mode:"visible",children:o.children},n,0,null),i=Pi(i,n,a,null),i.flags|=2,o.return=e,i.return=e,o.sibling=i,e.child=o,e.mode&1&&ms(e,t.child,null,a),e.child.memoizedState=mm(a),e.memoizedState=gm,i);if(!(e.mode&1))return bu(t,e,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var s=o.dgst;return o=s,i=Error(Y(419)),o=wp(i,o,void 0),bu(t,e,a,o)}if(s=(a&t.childLanes)!==0,dr||s){if(o=Pt,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(o.suspendedLanes|a)?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,fn(t,n),co(o,t,n,-1))}return gy(),o=wp(Error(Y(421))),bu(t,e,a,o)}return n.data==="$?"?(e.flags|=128,e.child=t.child,e=YF.bind(null,t),n._reactRetry=e,null):(t=i.treeContext,Sr=Un(n.nextSibling),Er=e,We=!0,to=null,t!==null&&(Or[Dr++]=Yo,Or[Dr++]=Qo,Or[Dr++]=Wi,Yo=t.id,Qo=t.overflow,Wi=e),e=ly(e,o.children),e.flags|=4096,e)}function tk(t,e,r){t.lanes|=e;var o=t.alternate;o!==null&&(o.lanes|=e),lm(t.return,e,r)}function kp(t,e,r,o,n){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function HE(t,e,r){var o=e.pendingProps,n=o.revealOrder,i=o.tail;if(Yt(t,e,o.children,r),o=Ge.current,o&2)o=o&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&tk(t,r,e);else if(t.tag===19)tk(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}if(Oe(Ge,o),!(e.mode&1))e.memoizedState=null;else switch(n){case"forwards":for(r=e.child,n=null;r!==null;)t=r.alternate,t!==null&&of(t)===null&&(n=r),r=r.sibling;r=n,r===null?(n=e.child,e.child=null):(n=r.sibling,r.sibling=null),kp(e,!1,n,r,i);break;case"backwards":for(r=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&of(t)===null){e.child=n;break}t=n.sibling,n.sibling=r,r=n,n=t}kp(e,!0,r,null,i);break;case"together":kp(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function nd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function hn(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Gi|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Y(153));if(e.child!==null){for(t=e.child,r=Vn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Vn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function jF(t,e,r){switch(e.tag){case 3:LE(e),gs();break;case 5:gE(e);break;case 1:hr(e.type)&&Qd(e);break;case 4:ty(e,e.stateNode.containerInfo);break;case 10:var o=e.type._context,n=e.memoizedProps.value;Oe(ef,o._currentValue),o._currentValue=n;break;case 13:if(o=e.memoizedState,o!==null)return o.dehydrated!==null?(Oe(Ge,Ge.current&1),e.flags|=128,null):r&e.child.childLanes?qE(t,e,r):(Oe(Ge,Ge.current&1),t=hn(t,e,r),t!==null?t.sibling:null);Oe(Ge,Ge.current&1);break;case 19:if(o=(r&e.childLanes)!==0,t.flags&128){if(o)return HE(t,e,r);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Oe(Ge,Ge.current),o)break;return null;case 22:case 23:return e.lanes=0,jE(t,e,r)}return hn(t,e,r)}var UE,vm,$E,KE;UE=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};vm=function(){};$E=function(t,e,r,o){var n=t.memoizedProps;if(n!==o){t=e.stateNode,Ti(Bo.current);var i=null;switch(r){case"input":n=Fg(t,n),o=Fg(t,o),i=[];break;case"select":n=et({},n,{value:void 0}),o=et({},o,{value:void 0}),i=[];break;case"textarea":n=Hg(t,n),o=Hg(t,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=Xd)}$g(r,o);var a;r=null;for(l in n)if(!o.hasOwnProperty(l)&&n.hasOwnProperty(l)&&n[l]!=null)if(l==="style"){var s=n[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gc.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in o){var c=o[l];if(s=n?.[l],o.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Gc.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Fe("scroll",t),i||s===c||(i=[])):(i=i||[]).push(l,c))}r&&(i=i||[]).push("style",r);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};KE=function(t,e,r,o){r!==o&&(e.flags|=4)};function Vs(t,e){if(!We)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,o=0;if(e)for(var n=t.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=o,t.childLanes=r,e}function FF(t,e,r){var o=e.pendingProps;switch(Gb(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return hr(e.type)&&Yd(),Lt(e),null;case 3:return o=e.stateNode,vs(),He(fr),He(Xt),oy(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(mu(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,to!==null&&(Tm(to),to=null))),vm(t,e),Lt(e),null;case 5:ry(e);var n=Ti(al.current);if(r=e.type,t!==null&&e.stateNode!=null)$E(t,e,r,o,n),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!o){if(e.stateNode===null)throw Error(Y(166));return Lt(e),null}if(t=Ti(Bo.current),mu(e)){o=e.stateNode,r=e.type;var i=e.memoizedProps;switch(o[To]=e,o[nl]=i,t=(e.mode&1)!==0,r){case"dialog":Fe("cancel",o),Fe("close",o);break;case"iframe":case"object":case"embed":Fe("load",o);break;case"video":case"audio":for(n=0;n<\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=a.createElement(r,{is:o.is}):(t=a.createElement(r),r==="select"&&(a=t,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):t=a.createElementNS(t,r),t[To]=e,t[nl]=o,UE(t,e,!1,!1),e.stateNode=t;e:{switch(a=Kg(r,o),r){case"dialog":Fe("cancel",t),Fe("close",t),n=o;break;case"iframe":case"object":case"embed":Fe("load",t),n=o;break;case"video":case"audio":for(n=0;nys&&(e.flags|=128,o=!0,Vs(i,!1),e.lanes=4194304)}else{if(!o)if(t=of(a),t!==null){if(e.flags|=128,o=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!We)return Lt(e),null}else 2*lt()-i.renderingStartTime>ys&&r!==1073741824&&(e.flags|=128,o=!0,Vs(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=lt(),e.sibling=null,r=Ge.current,Oe(Ge,o?r&1|2:r&1),e):(Lt(e),null);case 22:case 23:return py(),o=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?kr&1073741824&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),null;case 24:return null;case 25:return null}throw Error(Y(156,e.tag))}function LF(t,e){switch(Gb(e),e.tag){case 1:return hr(e.type)&&Yd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return vs(),He(fr),He(Xt),oy(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return ry(e),null;case 13:if(He(Ge),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Y(340));gs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return He(Ge),null;case 4:return vs(),null;case 10:return Zb(e.type._context),null;case 22:case 23:return py(),null;case 24:return null;default:return null}}var yu=!1,Ut=!1,qF=typeof WeakSet=="function"?WeakSet:Set,ne=null;function ja(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){it(t,e,o)}else r.current=null}function bm(t,e,r){try{r()}catch(o){it(t,e,o)}}var rk=!1;function HF(t,e){if(tm=Wd,t=Xx(),Wb(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==r||n!==0&&d.nodeType!==3||(s=a+n),d!==i||o!==0&&d.nodeType!==3||(c=a+o),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===r&&++l===n&&(s=a),f===i&&++u===o&&(c=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(rm={focusedElem:t,selectionRange:r},Wd=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,y=p.memoizedState,v=e.stateNode,m=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:Qr(e.type,g),y);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(k){it(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return p=rk,rk=!1,p}function xc(t,e,r){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,i!==void 0&&bm(e,r,i)}n=n.next}while(n!==o)}}function lh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var o=r.create;r.destroy=o()}r=r.next}while(r!==e)}}function ym(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function WE(t){var e=t.alternate;e!==null&&(t.alternate=null,WE(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[To],delete e[nl],delete e[im],delete e[CF],delete e[TF])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function VE(t){return t.tag===5||t.tag===3||t.tag===4}function ok(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||VE(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function wm(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Xd));else if(o!==4&&(t=t.child,t!==null))for(wm(t,e,r),t=t.sibling;t!==null;)wm(t,e,r),t=t.sibling}function km(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(km(t,e,r),t=t.sibling;t!==null;)km(t,e,r),t=t.sibling}var zt=null,Jr=!1;function Tn(t,e,r){for(r=r.child;r!==null;)GE(t,e,r),r=r.sibling}function GE(t,e,r){if(Po&&typeof Po.onCommitFiberUnmount=="function")try{Po.onCommitFiberUnmount(th,r)}catch{}switch(r.tag){case 5:Ut||ja(r,e);case 6:var o=zt,n=Jr;zt=null,Tn(t,e,r),zt=o,Jr=n,zt!==null&&(Jr?(t=zt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):zt.removeChild(r.stateNode));break;case 18:zt!==null&&(Jr?(t=zt,r=r.stateNode,t.nodeType===8?pp(t.parentNode,r):t.nodeType===1&&pp(t,r),Jc(t)):pp(zt,r.stateNode));break;case 4:o=zt,n=Jr,zt=r.stateNode.containerInfo,Jr=!0,Tn(t,e,r),zt=o,Jr=n;break;case 0:case 11:case 14:case 15:if(!Ut&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&bm(r,e,a),n=n.next}while(n!==o)}Tn(t,e,r);break;case 1:if(!Ut&&(ja(r,e),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){it(r,e,s)}Tn(t,e,r);break;case 21:Tn(t,e,r);break;case 22:r.mode&1?(Ut=(o=Ut)||r.memoizedState!==null,Tn(t,e,r),Ut=o):Tn(t,e,r);break;default:Tn(t,e,r)}}function nk(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new qF),e.forEach(function(o){var n=QF.bind(null,t,o);r.has(o)||(r.add(o),o.then(n,n))})}}function Vr(t,e){var r=e.deletions;if(r!==null)for(var o=0;on&&(n=a),o&=~i}if(o=n,o=lt()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*$F(o/1960))-o,10t?16:t,Dn===null)var o=!1;else{if(t=Dn,Dn=null,lf=0,xe&6)throw Error(Y(331));var n=xe;for(xe|=4,ne=t.current;ne!==null;){var i=ne,a=i.child;if(ne.flags&16){var s=i.deletions;if(s!==null){for(var c=0;clt()-fy?Ri(t,0):dy|=r),pr(t,e)}function r2(t,e){e===0&&(t.mode&1?(e=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):e=1);var r=rr();t=fn(t,e),t!==null&&(Ll(t,e,r),pr(t,r))}function YF(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),r2(t,r)}function QF(t,e){var r=0;switch(t.tag){case 13:var o=t.stateNode,n=t.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=t.stateNode;break;default:throw Error(Y(314))}o!==null&&o.delete(e),r2(t,r)}var o2;o2=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||fr.current)dr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return dr=!1,jF(t,e,r);dr=!!(t.flags&131072)}else dr=!1,We&&e.flags&1048576&&aE(e,Jd,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;nd(t,e),t=e.pendingProps;var n=ps(e,Xt.current);Va(e,r),n=iy(null,e,o,t,n,r);var i=ay();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,hr(o)?(i=!0,Qd(e)):i=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,ey(e),n.updater=sh,e.stateNode=n,n._reactInternals=e,dm(e,o,t,r),e=pm(null,e,o,!0,i,r)):(e.tag=0,We&&i&&Vb(e),Yt(null,e,n,r),e=e.child),e;case 16:o=e.elementType;e:{switch(nd(t,e),t=e.pendingProps,n=o._init,o=n(o._payload),e.type=o,n=e.tag=JF(o),t=Qr(o,t),n){case 0:e=hm(null,e,o,t,r);break e;case 1:e=Jw(null,e,o,t,r);break e;case 11:e=Qw(null,e,o,t,r);break e;case 14:e=Zw(null,e,o,Qr(o.type,t),r);break e}throw Error(Y(306,o,""))}return e;case 0:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),hm(t,e,o,n,r);case 1:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),Jw(t,e,o,n,r);case 3:e:{if(LE(e),t===null)throw Error(Y(387));o=e.pendingProps,i=e.memoizedState,n=i.element,uE(t,e),rf(e,o,null,r);var a=e.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){n=bs(Error(Y(423)),e),e=ek(t,e,o,r,n);break e}else if(o!==n){n=bs(Error(Y(424)),e),e=ek(t,e,o,r,n);break e}else for(Sr=Un(e.stateNode.containerInfo.firstChild),Er=e,We=!0,to=null,r=pE(e,null,o,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(gs(),o===n){e=hn(t,e,r);break e}Yt(t,e,o,r)}e=e.child}return e;case 5:return gE(e),t===null&&cm(e),o=e.type,n=e.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,om(o,n)?a=null:i!==null&&om(o,i)&&(e.flags|=32),FE(t,e),Yt(t,e,a,r),e.child;case 6:return t===null&&cm(e),null;case 13:return qE(t,e,r);case 4:return ty(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=ms(e,null,o,r):Yt(t,e,o,r),e.child;case 11:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),Qw(t,e,o,n,r);case 7:return Yt(t,e,e.pendingProps,r),e.child;case 8:return Yt(t,e,e.pendingProps.children,r),e.child;case 12:return Yt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(o=e.type._context,n=e.pendingProps,i=e.memoizedProps,a=n.value,Oe(ef,o._currentValue),o._currentValue=a,i!==null)if(fo(i.value,a)){if(i.children===n.children&&!fr.current){e=hn(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===o){if(i.tag===1){c=tn(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),lm(i.return,r,e),s.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Y(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),lm(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Yt(t,e,n.children,r),e=e.child}return e;case 9:return n=e.type,o=e.pendingProps.children,Va(e,r),n=$r(n),o=o(n),e.flags|=1,Yt(t,e,o,r),e.child;case 14:return o=e.type,n=Qr(o,e.pendingProps),n=Qr(o.type,n),Zw(t,e,o,n,r);case 15:return DE(t,e,e.type,e.pendingProps,r);case 17:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Qr(o,n),nd(t,e),e.tag=1,hr(o)?(t=!0,Qd(e)):t=!1,Va(e,r),fE(e,o,n),dm(e,o,n,r),pm(null,e,o,!0,t,r);case 19:return HE(t,e,r);case 22:return jE(t,e,r)}throw Error(Y(156,e.tag))};function n2(t,e){return Rx(t,e)}function ZF(t,e,r,o){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(t,e,r,o){return new ZF(t,e,r,o)}function my(t){return t=t.prototype,!(!t||!t.isReactComponent)}function JF(t){if(typeof t=="function")return my(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Mb)return 11;if(t===Ob)return 14}return 2}function Vn(t,e){var r=t.alternate;return r===null?(r=Lr(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function sd(t,e,r,o,n,i){var a=2;if(o=t,typeof t=="function")my(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Aa:return Pi(r.children,n,i,e);case zb:a=8,n|=8;break;case Mg:return t=Lr(12,r,e,n|2),t.elementType=Mg,t.lanes=i,t;case Og:return t=Lr(13,r,e,n),t.elementType=Og,t.lanes=i,t;case Dg:return t=Lr(19,r,e,n),t.elementType=Dg,t.lanes=i,t;case hx:return dh(r,n,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case dx:a=10;break e;case fx:a=9;break e;case Mb:a=11;break e;case Ob:a=14;break e;case In:a=16,o=null;break e}throw Error(Y(130,t==null?t:typeof t,""))}return e=Lr(a,r,e,n),e.elementType=t,e.type=o,e.lanes=i,e}function Pi(t,e,r,o){return t=Lr(7,t,o,e),t.lanes=r,t}function dh(t,e,r,o){return t=Lr(22,t,o,e),t.elementType=hx,t.lanes=r,t.stateNode={isHidden:!1},t}function _p(t,e,r){return t=Lr(6,t,null,e),t.lanes=r,t}function Sp(t,e,r){return e=Lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function e8(t,e,r,o,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=op(0),this.expirationTimes=op(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=op(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function vy(t,e,r,o,n,i,a,s,c){return t=new e8(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Lr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ey(i),t}function t8(t,e,r){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c2)}catch(t){console.error(t)}}c2(),ax.exports=Pr;var ky=ax.exports;const _u=Oo(ky),a8=t=>w.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&ky.createPortal(t.children,t.mountNode)),aa=t=>{const e=rj(t);return a8(e)};aa.displayName="Portal";const s8=t=>{const e=Ee(t.root,{children:[t.withArrow&&q("div",{ref:t.arrowRef,className:t.arrowClassName}),t.root.children]});return t.inline?e:q(aa,{mountNode:t.mountNode,children:e})},c8={root:"fui-PopoverSurface"},l8={small:6,medium:8,large:8},u8=H({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),d8=t=>{const e=u8();return t.root.className=j(c8.root,e.root,t.inline&&e.inline,t.size==="small"&&e.smallPadding,t.size==="medium"&&e.mediumPadding,t.size==="large"&&e.largePadding,t.appearance==="inverted"&&e.inverted,t.appearance==="brand"&&e.brand,t.root.className),t.arrowClassName=j(e.arrow,t.size==="small"?e.smallArrow:e.mediumLargeArrow),t},l2=w.forwardRef((t,e)=>{const r=GD(t,e);return d8(r),ge("usePopoverSurfaceStyles_unstable")(r),s8(r)});l2.displayName="PopoverSurface";const f8=4,h8=t=>{const[e,r]=nx(),o={size:"medium",contextTarget:e,setContextTarget:r,...t},n=w.Children.toArray(t.children);let i,a;n.length===2?(i=n[0],a=n[1]):n.length===1&&(a=n[0]);const[s,c]=p8(o),l=w.useRef(0),u=ee((b,k)=>{if(clearTimeout(l.current),!(b instanceof Event)&&b.persist&&b.persist(),b.type==="mouseleave"){var S;l.current=setTimeout(()=>{c(b,k)},(S=t.mouseLeaveDelay)!==null&&S!==void 0?S:500)}else c(b,k)});w.useEffect(()=>()=>{clearTimeout(l.current)},[]);const d=w.useCallback(b=>{u(b,!s)},[u,s]),f=g8(o),{targetDocument:h}=je();var p;rT({contains:Uc,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s,disabledFocusOnIframe:!(!((p=t.closeOnIframeFocus)!==null&&p!==void 0)||p)});const g=o.openOnContext||o.closeOnScroll;oT({contains:Uc,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s||!g});const{findFirstFocusable:y}=bn();w.useEffect(()=>{if(!t.unstable_disableAutoFocus&&s&&f.contentRef.current){var b;const k=(b=f.contentRef.current.getAttribute("tabIndex"))!==null&&b!==void 0?b:void 0,S=isNaN(k)?y(f.contentRef.current):f.contentRef.current;S?.focus()}},[y,s,f.contentRef,t.unstable_disableAutoFocus]);var v,m;return{...o,...f,inertTrapFocus:(v=t.inertTrapFocus)!==null&&v!==void 0?v:t.legacyTrapFocus===void 0?!1:!t.legacyTrapFocus,popoverTrigger:i,popoverSurface:a,open:s,setOpen:u,toggleOpen:d,setContextTarget:r,contextTarget:e,inline:(m=t.inline)!==null&&m!==void 0?m:!1}};function p8(t){const e=ee((a,s)=>{var c;return(c=t.onOpenChange)===null||c===void 0?void 0:c.call(t,a,s)}),[r,o]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1});t.open=r!==void 0?r:t.open;const n=t.setContextTarget,i=w.useCallback((a,s)=>{s&&a.type==="contextmenu"&&n(a),s||n(void 0),o(s),e?.(a,{open:s})},[o,e,n]);return[r,i]}function g8(t){const e={position:"above",align:"center",arrowPadding:2*f8,target:t.openOnContext?t.contextTarget:void 0,...eh(t.positioning)};e.coverTarget&&(t.withArrow=!1),t.withArrow&&(e.offset=rx(e.offset,l8[t.size]));const{targetRef:r,containerRef:o,arrowRef:n}=Ab(e);return{triggerRef:r,contentRef:o,arrowRef:n}}const m8=t=>{const{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:c,setOpen:l,size:u,toggleOpen:d,trapFocus:f,triggerRef:h,withArrow:p,inertTrapFocus:g}=t;return w.createElement(Rb.Provider,{value:{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:c,setOpen:l,toggleOpen:d,triggerRef:h,size:u,trapFocus:f,inertTrapFocus:g,withArrow:p}},t.popoverTrigger,t.open&&t.popoverSurface)},u2=t=>{const e=h8(t);return m8(e)};u2.displayName="Popover";const v8=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Ml(e),n=Mt(b=>b.open),i=Mt(b=>b.setOpen),a=Mt(b=>b.toggleOpen),s=Mt(b=>b.triggerRef),c=Mt(b=>b.openOnHover),l=Mt(b=>b.openOnContext),{triggerAttributes:u}=Wf(),d=b=>{l&&(b.preventDefault(),i(b,!0))},f=b=>{l||a(b)},h=b=>{b.key===yn&&n&&!b.isDefaultPrevented()&&(i(b,!1),b.preventDefault())},p=b=>{c&&i(b,!0)},g=b=>{c&&i(b,!1)},y={...u,"aria-expanded":`${n}`,...o?.props,onMouseEnter:ee(ke(o?.props.onMouseEnter,p)),onMouseLeave:ee(ke(o?.props.onMouseLeave,g)),onContextMenu:ee(ke(o?.props.onContextMenu,d)),ref:bt(s,o?.ref)},v={...y,onClick:ee(ke(o?.props.onClick,f)),onKeyDown:ee(ke(o?.props.onKeyDown,h))},m=Ui(o?.type==="button"||o?.type==="a"?o.type:"div",v);return{children:Hf(t.children,Ui(o?.type==="button"||o?.type==="a"?o.type:"div",l?y:r?v:m))}},b8=t=>t.children,_y=t=>{const e=v8(t);return b8(e)};_y.displayName="PopoverTrigger";_y.isFluentTriggerComponent=!0;const y8=6,w8=4,k8=t=>{var e,r,o,n;const i=t3(),a=Kz(),{targetDocument:s}=je(),[c,l]=Hc(),{appearance:u="normal",children:d,content:f,withArrow:h=!1,positioning:p="above",onVisibleChange:g,relationship:y,showDelay:v=250,hideDelay:m=250,mountNode:b}=t,[k,S]=mr({state:t.visible,initialState:!1}),C=w.useCallback((I,F)=>{l(),S($=>(F.visible!==$&&g?.(I,F),F.visible))},[l,S,g]),_={withArrow:h,positioning:p,showDelay:v,hideDelay:m,relationship:y,visible:k,shouldRenderTooltip:k,appearance:u,mountNode:b,components:{content:"div"},content:ae(f,{defaultProps:{role:"tooltip"},elementType:"div"})};_.content.id=gr("tooltip-",_.content.id);const T={enabled:_.visible,arrowPadding:2*w8,position:"above",align:"center",offset:4,...eh(_.positioning)};_.withArrow&&(T.offset=rx(T.offset,y8));const{targetRef:A,containerRef:R,arrowRef:V}=Ab(T);_.content.ref=bt(_.content.ref,R),_.arrowRef=V,er(()=>{if(k){var I;const F={hide:N=>C(void 0,{visible:!1,documentKeyboardEvent:N})};(I=i.visibleTooltip)===null||I===void 0||I.hide(),i.visibleTooltip=F;const $=N=>{N.key===yn&&!N.defaultPrevented&&(F.hide(N),N.preventDefault())};return s?.addEventListener("keydown",$,{capture:!0}),()=>{i.visibleTooltip===F&&(i.visibleTooltip=void 0),s?.removeEventListener("keydown",$,{capture:!0})}}},[i,s,k,C]);const E=w.useRef(!1),U=w.useCallback(I=>{if(I.type==="focus"&&E.current){E.current=!1;return}const F=i.visibleTooltip?0:_.showDelay;c(()=>{C(I,{visible:!0})},F),I.persist()},[c,C,_.showDelay,i]),[D]=w.useState(()=>{const I=$=>{var N;!((N=$.detail)===null||N===void 0)&&N.isFocusedProgrammatically&&(E.current=!0)};let F=null;return $=>{F?.removeEventListener(uo,I),$?.addEventListener(uo,I),F=$}}),B=w.useCallback(I=>{let F=_.hideDelay;I.type==="blur"&&(F=0,E.current=s?.activeElement===I.target),c(()=>{C(I,{visible:!1})},F),I.persist()},[c,C,_.hideDelay,s]);_.content.onPointerEnter=ke(_.content.onPointerEnter,l),_.content.onPointerLeave=ke(_.content.onPointerLeave,B),_.content.onFocus=ke(_.content.onFocus,l),_.content.onBlur=ke(_.content.onBlur,B);const M=Ml(d),K={};return y==="label"?typeof _.content.children=="string"?K["aria-label"]=_.content.children:(K["aria-labelledby"]=_.content.id,_.shouldRenderTooltip=!0):y==="description"&&(K["aria-describedby"]=_.content.id,_.shouldRenderTooltip=!0),a&&(_.shouldRenderTooltip=!1),_.children=Hf(d,{...K,...M?.props,ref:bt(M?.ref,D,T.target===void 0?A:void 0),onPointerEnter:ee(ke(M==null||(e=M.props)===null||e===void 0?void 0:e.onPointerEnter,U)),onPointerLeave:ee(ke(M==null||(r=M.props)===null||r===void 0?void 0:r.onPointerLeave,B)),onFocus:ee(ke(M==null||(o=M.props)===null||o===void 0?void 0:o.onFocus,U)),onBlur:ee(ke(M==null||(n=M.props)===null||n===void 0?void 0:n.onBlur,B))}),_},_8=t=>Ee(w.Fragment,{children:[t.children,t.shouldRenderTooltip&&q(aa,{mountNode:t.mountNode,children:Ee(t.content,{children:[t.withArrow&&q("div",{ref:t.arrowRef,className:t.arrowClassName}),t.content.children]})})]}),S8={content:"fui-Tooltip__content"},C8=H({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),T8=t=>{const e=C8();return t.content.className=j(S8.content,e.root,t.appearance==="inverted"&&e.inverted,t.visible&&e.visible,t.content.className),t.arrowClassName=e.arrow,t},Sy=t=>{const e=k8(t);return T8(e),ge("useTooltipStyles_unstable")(e),_8(e)};Sy.displayName="Tooltip";Sy.isFluentTriggerComponent=!0;const d2=t=>{const{iconOnly:e,iconPosition:r}=t;return Ee(t.root,{children:[r!=="after"&&t.icon&&q(t.icon,{}),!e&&t.root.children,r==="after"&&t.icon&&q(t.icon,{})]})},f2=w.createContext(void 0),x8={};f2.Provider;const E8=()=>{var t;return(t=w.useContext(f2))!==null&&t!==void 0?t:x8},h2=(t,e)=>{const{size:r}=E8(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:a=!1,icon:s,iconPosition:c="before",shape:l="rounded",size:u=r??"medium"}=t,d=ve(s,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:a,iconPosition:c,shape:l,size:u,iconOnly:!!(d?.children&&!t.children),components:{root:"button",icon:"span"},root:ae(we(n,Ui(t.as,t)),{elementType:"button",defaultProps:{ref:e,type:"button"}}),icon:d}},fk={root:"fui-Button",icon:"fui-Button__icon"},I8=de("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),A8=de("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),R8=H({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),P8=H({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),B8=H({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),N8=H({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),z8=H({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),p2=t=>{const e=I8(),r=A8(),o=R8(),n=P8(),i=B8(),a=N8(),s=z8(),{appearance:c,disabled:l,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:p,size:g}=t;return t.root.className=j(fk.root,e,c&&o[c],o[g],d&&g==="small"&&o.smallWithIcon,d&&g==="large"&&o.largeWithIcon,o[p],(l||u)&&n.base,(l||u)&&n.highContrast,c&&(l||u)&&n[c],c==="primary"&&i.primary,i[g],i[p],f&&a[g],t.root.className),t.icon&&(t.icon.className=j(fk.icon,r,!!t.root.children&&s[h],s[g],t.icon.className)),t},No=w.forwardRef((t,e)=>{const r=h2(t,e);return p2(r),ge("useButtonStyles_unstable")(r),d2(r)});No.displayName="Button";function M8(t,e){const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:i}=t,{onClick:a,role:s}=e.root,[c,l]=mr({state:r,defaultState:o,initialState:!1}),u=s==="menuitemcheckbox"||s==="checkbox",d=w.useCallback(f=>{if(!n&&!i){if(f.defaultPrevented)return;l(!c)}},[c,n,i,l]);return{...e,checked:c,root:{...e.root,[u?"aria-checked":"aria-pressed"]:c,onClick:ee(ke(a,d))}}}const O8=(t,e)=>{const r=h2(t,e);return M8(t,r)},hk={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},D8=H({base:{De3pzq:"f1nfm20t",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],sj55zd:"f14nttnl",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],D0sxk3:"fxoiby5",t6yez3:"f15q0o9g",Jwef8y:"f1knas48",Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1xlaoq0",gg5e9n:["f1m52nbi","f1ub3y4t"],Bi91k9c:"feu1g3u",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},outline:{De3pzq:"f1q9pm1r",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],Jwef8y:"fjxutwb",iro3zm:"fwiml72",B8q5s1w:"fcaw57c",Bci5o5g:["fpwd27e","f1999bjr"],n8qw10:"f1hi52o4",Bdrgwmp:["f1999bjr","fpwd27e"]},primary:{De3pzq:"f8w4g0q",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},secondary:{},subtle:{De3pzq:"fq5gl1p",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1eryozh",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},transparent:{De3pzq:"f1q9pm1r",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1qj7y59",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{d:[".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".fcaw57c[data-fui-focus-visible]{border-top-color:var(--colorNeutralStroke1);}",".fpwd27e[data-fui-focus-visible]{border-right-color:var(--colorNeutralStroke1);}",".f1999bjr[data-fui-focus-visible]{border-left-color:var(--colorNeutralStroke1);}",".f1hi52o4[data-fui-focus-visible]{border-bottom-color:var(--colorNeutralStroke1);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1xlaoq0:hover{border-bottom-color:var(--colorNeutralStroke1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),j8=H({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),F8=H({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),L8=H({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),q8=t=>{const e=D8(),r=j8(),o=F8(),n=L8(),{appearance:i,checked:a,disabled:s,disabledFocusable:c}=t;return t.root.className=j(hk.root,i==="primary"&&n.base,i==="primary"&&(s||c)&&n.disabled,a&&e.base,a&&e.highContrast,i&&a&&e[i],(s||c)&&r.base,i&&(s||c)&&r[i],t.root.className),t.icon&&(t.icon.className=j(hk.icon,(i==="subtle"||i==="transparent")&&o.subtleOrTransparent&&o.highContrast,t.icon.className)),p2(t),t},g2=w.forwardRef((t,e)=>{const r=O8(t,e);return q8(r),ge("useToggleButtonStyles_unstable")(r),d2(r)});g2.displayName="ToggleButton";const m2=w.createContext(void 0),H8=m2.Provider,U8=()=>w.useContext(m2),$8=t=>{var e,r,o,n;const{generatedControlId:i,orientation:a,required:s,size:c,validationState:l}=t,u=(e=t.label)===null||e===void 0?void 0:e.htmlFor,d=(r=t.label)===null||r===void 0?void 0:r.id,f=(o=t.validationMessage)===null||o===void 0?void 0:o.id,h=(n=t.hint)===null||n===void 0?void 0:n.id;return{field:w.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:u,labelId:d,orientation:a,required:s,size:c,validationMessageId:f,validationState:l}),[i,h,u,d,a,s,c,f,l])}};function $l(t,e){return v2(U8(),t,e)}function v2(t,e,r){if(!t)return e;e={...e};const{generatedControlId:o,hintId:n,labelFor:i,labelId:a,required:s,validationMessageId:c,validationState:l}=t;if(o){var u,d;(d=(u=e).id)!==null&&d!==void 0||(u.id=o)}if(a&&(!r?.supportsLabelFor||i!==e.id)){var f,h,p;(p=(f=e)[h="aria-labelledby"])!==null&&p!==void 0||(f[h]=a)}if((c||n)&&(e["aria-describedby"]=[c,n,e?.["aria-describedby"]].filter(Boolean).join(" ")),l==="error"){var g,y,v;(v=(g=e)[y="aria-invalid"])!==null&&v!==void 0||(g[y]=!0)}if(s)if(r?.supportsRequired){var m,b;(b=(m=e).required)!==null&&b!==void 0||(m.required=!0)}else{var k,S,C;(C=(k=e)[S="aria-required"])!==null&&C!==void 0||(k[S]=!0)}if(r?.supportsSize){var _,T;(T=(_=e).size)!==null&&T!==void 0||(_.size=t.size)}return e}const K8=(t,e)=>{let{children:r}=t;return typeof r=="function"&&(r=r(v2(e.field)||{})),q(H8,{value:e?.field,children:Ee(t.root,{children:[t.label&&q(t.label,{}),r,t.validationMessage&&Ee(t.validationMessage,{children:[t.validationMessageIcon&&q(t.validationMessageIcon,{}),t.validationMessage.children]}),t.hint&&q(t.hint,{})]})})},W8=(t,e)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=t;return{disabled:r,required:ve(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:ae(we("label",{ref:e,...t}),{elementType:"label"})}},V8=t=>Ee(t.root,{children:[t.root.children,t.required&&q(t.required,{})]}),pk={root:"fui-Label",required:"fui-Label__required"},G8=H({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),X8=t=>{const e=G8();return t.root.className=j(pk.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=j(pk.required,e.required,t.disabled&&e.requiredDisabled,t.required.className)),t},Vt=w.forwardRef((t,e)=>{const r=W8(t,e);return X8(r),ge("useLabelStyles_unstable")(r),V8(r)});Vt.displayName="Label";const Y8={error:w.createElement(X3,null),warning:w.createElement(bM,null),success:w.createElement(K3,null),none:void 0},Q8=(t,e)=>{const{children:r,orientation:o="vertical",required:n=!1,validationState:i=t.validationMessage?"error":"none",size:a="medium"}=t,s=gr("field-"),c=s+"__control",l=ae(we("div",{...t,ref:e},["children"]),{elementType:"div"}),u=ve(t.label,{defaultProps:{htmlFor:c,id:s+"__label",required:n,size:a},elementType:Vt}),d=ve(t.validationMessage,{defaultProps:{id:s+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),f=ve(t.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),h=Y8[i],p=ve(t.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:c,orientation:o,required:n,size:a,validationState:i,components:{root:"div",label:Vt,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:l,label:u,validationMessageIcon:p,validationMessage:d,hint:f}},Xs={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},Z8=H({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),J8=H({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),e7=de("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),t7=H({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),r7=de("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),o7=H({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),n7=t=>{const{validationState:e}=t,r=t.orientation==="horizontal",o=Z8();t.root.className=j(Xs.root,o.base,r&&o.horizontal,r&&!t.label&&o.horizontalNoLabel,t.root.className);const n=J8();t.label&&(t.label.className=j(Xs.label,n.base,r&&n.horizontal,!r&&n.vertical,t.label.size==="large"&&n.large,!r&&t.label.size==="large"&&n.verticalLarge,t.label.className));const i=r7(),a=o7();t.validationMessageIcon&&(t.validationMessageIcon.className=j(Xs.validationMessageIcon,i,e!=="none"&&a[e],t.validationMessageIcon.className));const s=e7(),c=t7();t.validationMessage&&(t.validationMessage.className=j(Xs.validationMessage,s,e==="error"&&c.error,!!t.validationMessageIcon&&c.withIcon,t.validationMessage.className)),t.hint&&(t.hint.className=j(Xs.hint,s,t.hint.className))},Io=w.forwardRef((t,e)=>{const r=Q8(t,e);n7(r);const o=$8(r);return K8(r,o)});Io.displayName="Field";const i7=(t,e)=>{t=$l(t,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:o,shape:n="square",size:i="medium",labelPosition:a="after",onChange:s}=t,[c,l]=mr({defaultState:t.defaultChecked,state:t.checked,initialState:!1}),u=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=c==="mixed",f=gr("checkbox-",u.primary.id);let h;d?n==="circular"?h=w.createElement(db,null):h=i==="large"?w.createElement(vM,null):w.createElement(mM,null):c&&(h=i==="large"?w.createElement($3,null):w.createElement(U3,null));const p={shape:n,checked:c,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:Vt},root:ae(t.root,{defaultProps:{ref:Dl(),...u.root},elementType:"span"}),input:ae(t.input,{defaultProps:{type:"checkbox",id:f,ref:e,checked:c===!0,...u.primary},elementType:"input"}),label:ve(t.label,{defaultProps:{htmlFor:f,disabled:r,required:o,size:"medium"},elementType:Vt}),indicator:ve(t.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};p.input.onChange=ee(y=>{const v=y.currentTarget.indeterminate?"mixed":y.currentTarget.checked;s?.(y,{checked:v}),l(v)});const g=bt(p.input.ref);return p.input.ref=g,er(()=>{g.current&&(g.current.indeterminate=d)},[g,d]),p},a7=t=>Ee(t.root,{children:[q(t.input,{}),t.labelPosition==="before"&&t.label&&q(t.label,{}),q(t.indicator,{}),t.labelPosition==="after"&&t.label&&q(t.label,{})]}),Su={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},s7=de("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),c7=H({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),l7=de("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),u7=H({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),d7=de("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),f7=H({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),h7=H({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),p7=t=>{const{checked:e,disabled:r,labelPosition:o,shape:n,size:i}=t,a=s7(),s=c7();t.root.className=j(Su.root,a,r?s.disabled:e==="mixed"?s.mixed:e?s.checked:s.unchecked,t.root.className);const c=l7(),l=u7();t.input.className=j(Su.input,c,i==="large"&&l.large,l[o],t.input.className);const u=d7(),d=f7();t.indicator&&(t.indicator.className=j(Su.indicator,u,i==="large"&&d.large,n==="circular"&&d.circular,t.indicator.className));const f=h7();return t.label&&(t.label.className=j(Su.label,f.base,f[i],f[o],t.label.className)),t},xm=w.forwardRef((t,e)=>{const r=i7(t,e);return p7(r),ge("useCheckboxStyles_unstable")(r),a7(r)});xm.displayName="Checkbox";const g7=(t,e)=>{t=$l(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=qf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:a}=t,[s,c]=mr({state:t.value,defaultState:t.defaultValue,initialState:""}),l=Is({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:ae(t.input,{defaultProps:{type:"text",ref:e,...l.primary},elementType:"input"}),contentAfter:ve(t.contentAfter,{elementType:"span"}),contentBefore:ve(t.contentBefore,{elementType:"span"}),root:ae(t.root,{defaultProps:l.root,elementType:"span"})};return u.input.value=s,u.input.onChange=ee(d=>{const f=d.target.value;a?.(d,{value:f}),c(f)}),u},m7=t=>Ee(t.root,{children:[t.contentBefore&&q(t.contentBefore,{}),q(t.input,{}),t.contentAfter&&q(t.contentAfter,{})]}),Cu={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},v7=de("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),b7=H({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),y7=de("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),w7=H({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),k7=de("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),_7=H({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),S7=t=>{const{size:e,appearance:r}=t,o=t.input.disabled,n=`${t.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),a=b7(),s=w7(),c=_7();t.root.className=j(Cu.root,v7(),a[e],a[r],!o&&r==="outline"&&a.outlineInteractive,!o&&r==="underline"&&a.underlineInteractive,!o&&i&&a.filledInteractive,i&&a.filled,!o&&n&&a.invalid,o&&a.disabled,t.root.className),t.input.className=j(Cu.input,y7(),e==="large"&&s.large,o&&s.disabled,t.input.className);const l=[k7(),o&&c.disabled,c[e]];return t.contentBefore&&(t.contentBefore.className=j(Cu.contentBefore,...l,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=j(Cu.contentAfter,...l,t.contentAfter.className)),t},Xa=w.forwardRef((t,e)=>{const r=g7(t,e);return S7(r),ge("useInputStyles_unstable")(r),m7(r)});Xa.displayName="Input";const C7=t=>q(t.root,{}),T7=(t,e)=>{const{bordered:r=!1,fit:o="default",block:n=!1,shape:i="square",shadow:a=!1}=t;return{bordered:r,fit:o,block:n,shape:i,shadow:a,components:{root:"img"},root:ae(we("img",{ref:e,...t}),{elementType:"img"})}},x7={root:"fui-Image"},E7=H({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),I7=t=>{const e=E7();t.root.className=j(x7.root,e.base,t.block&&e.block,t.bordered&&e.bordered,t.shadow&&e.shadow,e[t.fit],e[t.shape],t.root.className)},Cy=w.forwardRef((t,e)=>{const r=T7(t,e);return I7(r),ge("useImageStyles_unstable")(r),C7(r)});Cy.displayName="Image";const A7=t=>{const{disabled:e,disabledFocusable:r}=t,{onClick:o,onKeyDown:n,role:i,tabIndex:a}=t.root;return t.root.as==="a"&&(t.root.href=e?void 0:t.root.href,(e||r)&&(t.root.role=i||"link")),(t.root.as==="a"||t.root.as==="span")&&(t.root.tabIndex=a??(e&&!r?void 0:0)),t.root.onClick=s=>{e||r?s.preventDefault():o?.(s)},t.root.onKeyDown=s=>{(e||r)&&(s.key===Ai||s.key===Mn)?(s.preventDefault(),s.stopPropagation()):n?.(s)},t.disabled=e||r,t.root["aria-disabled"]=e||r||void 0,t.root.as==="button"&&(t.root.disabled=e&&!r),t},R7=(t,e)=>{const r=ub(),{appearance:o="default",disabled:n=!1,disabledFocusable:i=!1,inline:a=!1}=t,s=t.as||(t.href?"a":"button"),c={role:s==="span"?"button":void 0,type:s==="button"?"button":void 0,...t,as:s},l={appearance:o,disabled:n,disabledFocusable:i,inline:a,components:{root:s},root:ae(we(s,{ref:e,...c}),{elementType:s}),backgroundAppearance:r};return A7(l),l},P7={root:"fui-Link"},B7=H({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),N7=t=>{const e=B7(),{appearance:r,disabled:o,inline:n,root:i,backgroundAppearance:a}=t;return t.root.className=j(P7.root,e.root,e.focusIndicator,i.as==="a"&&i.href&&e.href,i.as==="button"&&e.button,r==="subtle"&&e.subtle,a==="inverted"&&e.inverted,n&&e.inline,o&&e.disabled,t.root.className),t},z7=t=>q(t.root,{}),Gn=w.forwardRef((t,e)=>{const r=R7(t,e);return N7(r),z7(r)});Gn.displayName="Link";const Ty=As(void 0),M7={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},O7=Ty.Provider,Xe=t=>Rs(Ty,(e=M7)=>t(e)),b2=w.createContext(void 0),D7=!1,j7=b2.Provider,F7=()=>{var t;return(t=w.useContext(b2))!==null&&t!==void 0?t:D7},y2=w.createContext(void 0),L7={headerId:""};y2.Provider;const q7=()=>{var t;return(t=w.useContext(y2))!==null&&t!==void 0?t:L7},xy=As(void 0),H7={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},U7=xy.Provider,Em=t=>Rs(xy,(e=H7)=>t(e)),dl="fuimenuenter",$7=t=>{const{refs:e,callback:r,element:o,disabled:n}=t,i=ee(a=>{const s=e[0],c=a.target;var l;!Uc((l=s.current)!==null&&l!==void 0?l:null,c)&&!n&&r(a)});w.useEffect(()=>{if(o!=null)return n||o.addEventListener(dl,i),()=>{o.removeEventListener(dl,i)}},[i,o,n])},K7=(t,e)=>{t.dispatchEvent(new CustomEvent(dl,{bubbles:!0,detail:{nativeEvent:e}}))};function Ey(){const t=Xe(r=>r.isSubmenu),e=wb(xy);return t||e}const W7=["after","after-bottom","before-top","before","before-bottom","above"],V7=t=>{const e=Ey(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:c=!1,openOnHover:l=e,defaultCheckedValues:u,mountNode:d=null}=t,f=gr("menu"),[h,p]=nx(),g={position:e?"after":"below",align:e?"top":"start",target:t.openOnContext?h:void 0,fallbackPositions:e?W7:void 0,...eh(t.positioning)},y=w.Children.toArray(t.children);let v,m;y.length===2?(v=y[0],m=y[1]):y.length===1&&(m=y[0]);const{targetRef:b,containerRef:k}=Ab(g),[S,C]=X7({hoverDelay:r,isSubmenu:e,setContextTarget:p,closeOnScroll:a,menuPopoverRef:k,triggerRef:b,open:t.open,defaultOpen:t.defaultOpen,onOpenChange:t.onOpenChange,openOnContext:s}),[_,T]=G7({checkedValues:t.checkedValues,defaultCheckedValues:u,onCheckedValueChange:t.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:f,isSubmenu:e,openOnHover:l,contextTarget:h,setContextTarget:p,hasCheckmarks:n,hasIcons:i,closeOnScroll:a,menuTrigger:v,menuPopover:m,mountNode:d,triggerRef:b,menuPopoverRef:k,components:{},openOnContext:s,open:S,setOpen:C,checkedValues:_,onCheckedValueChange:T,persistOnItemClick:c}},G7=t=>{const[e,r]=mr({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),o=ee((n,{name:i,checkedItems:a})=>{var s;(s=t.onCheckedValueChange)===null||s===void 0||s.call(t,n,{name:i,checkedItems:a}),r(c=>({...c,[i]:a}))});return[e,o]},X7=t=>{const{targetDocument:e}=je(),r=Xe(h=>h.setOpen),o=ee((h,p)=>{var g;return(g=t.onOpenChange)===null||g===void 0?void 0:g.call(t,h,p)}),n=w.useRef(0),i=w.useRef(!1),[a,s]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1}),c=ee((h,p)=>{const g=h instanceof CustomEvent&&h.type===dl?h.detail.nativeEvent:h;o?.(g,{...p}),p.open&&h.type==="contextmenu"&&t.setContextTarget(h),p.open||t.setContextTarget(void 0),p.bubble&&r(h,{...p}),s(p.open)}),l=ee((h,p)=>{if(clearTimeout(n.current),!(h instanceof Event)&&h.persist&&h.persist(),h.type==="mouseleave"||h.type==="mouseenter"||h.type==="mousemove"||h.type===dl){var g;!((g=t.triggerRef.current)===null||g===void 0)&&g.contains(h.target)&&(i.current=h.type==="mouseenter"||h.type==="mousemove"),n.current=setTimeout(()=>c(h,p),t.hoverDelay)}else c(h,p)});rT({contains:Uc,disabled:!a,element:e,refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),callback:h=>l(h,{open:!1,type:"clickOutside",event:h})});const u=t.openOnContext||t.closeOnScroll;oT({contains:Uc,element:e,callback:h=>l(h,{open:!1,type:"scrollOutside",event:h}),refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),disabled:!a||!u}),$7({element:e,callback:h=>{i.current||l(h,{open:!1,type:"menuMouseEnter",event:h})},disabled:!a,refs:[t.menuPopoverRef]}),w.useEffect(()=>()=>{clearTimeout(n.current)},[]);const{findFirstFocusable:d}=bn(),f=w.useCallback(()=>{const h=d(t.menuPopoverRef.current);h?.focus()},[d,t.menuPopoverRef]);return w.useEffect(()=>{a&&f()},[a,f]),[a,l]};function Y7(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:c,open:l,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:p,triggerRef:g}=t;return{menu:{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:c,open:l,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:p,triggerRef:g}}}const Q7=(t,e)=>w.createElement(O7,{value:e.menu},t.menuTrigger,t.open&&t.menuPopover),w2=t=>{const e=V7(t),r=Y7(e);return Q7(e,r)};w2.displayName="Menu";function Z7(t,e){const{headerId:r}=q7();return{components:{root:"div"},root:ae(we("div",{ref:e,id:r,...t}),{elementType:"div"})}}const J7={root:"fui-MenuGroupHeader"},eL=H({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),tL=t=>{const e=eL();return t.root.className=j(J7.root,e.root,t.root.className),t},rL=t=>q(t.root,{}),k2=w.forwardRef((t,e)=>{const r=Z7(t,e);return tL(r),ge("useMenuGroupHeaderStyles_unstable")(r),rL(r)});k2.displayName="MenuGroupHeader";const oL=(t,e)=>{const r=Em(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=t.root;return t.root.onKeyDown=n=>{var i;o?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&e.current&&r?.(n,e.current)},t},nL=dT(z3,M3),iL=dT(B3,N3),aL=(t,e)=>{const r=F7(),o=Xe(g=>g.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:a=r,persistOnClick:s=o}=t,c=Em(g=>g.hasIcons),l=Em(g=>g.hasCheckmarks),u=Xe(g=>g.setOpen),{dir:d}=je(),f=w.useRef(null),h=w.useRef(!1),p={hasSubmenu:a,disabled:i,persistOnClick:s,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:ae(we(n,Ui(n,{role:"menuitem",...t,disabled:!1,disabledFocusable:i,ref:bt(e,f),onKeyDown:ee(g=>{var y;(y=t.onKeyDown)===null||y===void 0||y.call(t,g),!g.isDefaultPrevented()&&(g.key===Mn||g.key===Ai)&&(h.current=!0)}),onMouseEnter:ee(g=>{var y,v;(y=f.current)===null||y===void 0||y.focus(),(v=t.onMouseEnter)===null||v===void 0||v.call(t,g)}),onClick:ee(g=>{var y;!a&&!s&&(u(g,{open:!1,keyboard:h.current,bubble:!0,type:"menuItemClick",event:g}),h.current=!1),(y=t.onClick)===null||y===void 0||y.call(t,g)})})),{elementType:"div"}),icon:ve(t.icon,{renderByDefault:c,elementType:"span"}),checkmark:ve(t.checkmark,{renderByDefault:l,elementType:"span"}),submenuIndicator:ve(t.submenuIndicator,{renderByDefault:a,defaultProps:{children:d==="ltr"?w.createElement(nL,null):w.createElement(iL,null)},elementType:"span"}),content:ve(t.content,{renderByDefault:!!t.children,defaultProps:{children:t.children},elementType:"span"}),secondaryContent:ve(t.secondaryContent,{elementType:"span"})};return oL(p,f),p},sL=t=>Ee(t.root,{children:[t.checkmark&&q(t.checkmark,{}),t.icon&&q(t.icon,{}),t.content&&q(t.content,{}),t.secondaryContent&&q(t.secondaryContent,{}),t.submenuIndicator&&q(t.submenuIndicator,{})]}),cL=H({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),lL=t=>{const e=cL();t.checkmark&&(t.checkmark.className=j(e.root,t.checked&&e.rootChecked,t.checkmark.className))},fa={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},uL=de("rpii7ln","rj2dzlr",{r:[".rpii7ln{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rpii7ln:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rpii7ln:hover .fui-Icon-filled{display:inline;}",".rpii7ln:hover .fui-Icon-regular{display:none;}",".rpii7ln:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rpii7ln:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rpii7ln:focus{outline-style:none;}",".rpii7ln:focus-visible{outline-style:none;}",".rpii7ln[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rpii7ln[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rj2dzlr{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".rj2dzlr:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rj2dzlr:hover .fui-Icon-filled{display:inline;}",".rj2dzlr:hover .fui-Icon-regular{display:none;}",".rj2dzlr:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rj2dzlr:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rj2dzlr:focus{outline-style:none;}",".rj2dzlr:focus-visible{outline-style:none;}",".rj2dzlr[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rj2dzlr[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rpii7ln[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rj2dzlr[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),dL=de("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),fL=de("r79npjw","r1j24c7y",[".r79npjw{padding-left:2px;padding-right:2px;color:var(--colorNeutralForeground3);}",".r79npjw:hover{color:var(--colorNeutralForeground3Hover);}",".r79npjw:focus{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y{padding-right:2px;padding-left:2px;color:var(--colorNeutralForeground3);}",".r1j24c7y:hover{color:var(--colorNeutralForeground3Hover);}",".r1j24c7y:focus{color:var(--colorNeutralForeground3Hover);}"]),hL=de("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),pL=de("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),gL=H({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),mL=t=>{const e=gL(),r=uL(),o=dL(),n=fL(),i=hL(),a=pL();t.root.className=j(fa.root,r,t.disabled&&e.disabled,t.root.className),t.content&&(t.content.className=j(fa.content,o,t.content.className)),t.checkmark&&(t.checkmark.className=j(fa.checkmark,e.checkmark,t.checkmark.className)),t.secondaryContent&&(t.secondaryContent.className=j(fa.secondaryContent,!t.disabled&&n,t.secondaryContent.className)),t.icon&&(t.icon.className=j(fa.icon,i,t.icon.className)),t.submenuIndicator&&(t.submenuIndicator.className=j(fa.submenuIndicator,a,t.submenuIndicator.className)),lL(t)},Sa=w.forwardRef((t,e)=>{const r=aL(t,e);return mL(r),ge("useMenuItemStyles_unstable")(r),sL(r)});Sa.displayName="MenuItem";const vL=(t,e)=>{const{findAllFocusable:r}=bn(),o=bL(),n=wb(Ty),i=Wc({circular:!0,ignoreDefaultKeydown:{Tab:n}});yL(t,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=w.useRef(null),s=w.useCallback((g,y)=>{const v=["menuitem","menuitemcheckbox","menuitemradio"];if(!a.current)return;const m=r(a.current,T=>T.hasAttribute("role")&&v.indexOf(T.getAttribute("role"))!==-1);let b=m.indexOf(y)+1;b===m.length&&(b=0);const k=m.map(T=>{var A;return(A=T.textContent)===null||A===void 0?void 0:A.charAt(0).toLowerCase()}),S=g.key.toLowerCase(),C=(T,A)=>{for(let R=T;R-1&&m[_].focus()},[r]);var c;const[l,u]=mr({state:(c=t.checkedValues)!==null&&c!==void 0?c:n?o.checkedValues:void 0,defaultState:t.defaultCheckedValues,initialState:{}});var d;const f=(d=t.onCheckedValueChange)!==null&&d!==void 0?d:n?o.onCheckedValueChange:void 0,h=ee((g,y,v,m)=>{const k=[...l?.[y]||[]];m?k.splice(k.indexOf(v),1):k.push(v),f?.(g,{name:y,checkedItems:k}),u(S=>({...S,[y]:k}))}),p=ee((g,y,v)=>{const m=[v];u(b=>({...b,[y]:m})),f?.(g,{name:y,checkedItems:m})});return{components:{root:"div"},root:ae(we("div",{ref:bt(e,a),role:"menu","aria-labelledby":o.triggerId,...i,...t}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:l,hasMenuContext:n,setFocusByFirstCharacter:s,selectRadio:p,toggleCheckbox:h}},bL=()=>{const t=Xe(i=>i.checkedValues),e=Xe(i=>i.onCheckedValueChange),r=Xe(i=>i.triggerId),o=Xe(i=>i.hasIcons),n=Xe(i=>i.hasCheckmarks);return{checkedValues:t,onCheckedValueChange:e,triggerId:r,hasIcons:o,hasCheckmarks:n}},yL=(t,e,r)=>{let o=!1;for(const n in e)t[n]&&(o=!0);return r&&o},wL=(t,e)=>q(U7,{value:e.menuList,children:q(t.root,{})});function kL(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}=t;return{menuList:{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}}}const _L={root:"fui-MenuList"},SL=H({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),CL=t=>{const e=SL();return t.root.className=j(_L.root,e.root,t.hasMenuContext&&e.hasMenuContext,t.root.className),t},_2=w.forwardRef((t,e)=>{const r=vL(t,e),o=kL(r);return CL(r),ge("useMenuListStyles_unstable")(r),wL(r,o)});_2.displayName="MenuList";const TL=(t,e)=>{const r=Xe(k=>k.menuPopoverRef),o=Xe(k=>k.setOpen),n=Xe(k=>k.open),i=Xe(k=>k.openOnHover),a=Xe(k=>k.triggerRef),s=Ey(),c=w.useRef(!0),l=w.useRef(0),u=O4(),{dir:d}=je(),f=d==="ltr"?kb:Yf,h=w.useCallback(k=>{k&&k.addEventListener("mouseover",S=>{c.current&&(c.current=!1,K7(r.current,S),l.current=setTimeout(()=>c.current=!0,250))})},[r,l]);w.useEffect(()=>{},[]);var p;const g=(p=Xe(k=>k.inline))!==null&&p!==void 0?p:!1,y=Xe(k=>k.mountNode),v=ae(we("div",{role:"presentation",...u,...t,ref:bt(e,r,h)}),{elementType:"div"}),{onMouseEnter:m,onKeyDown:b}=v;return v.onMouseEnter=ee(k=>{i&&o(k,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:k}),m?.(k)}),v.onKeyDown=ee(k=>{const S=k.key;if(S===yn||s&&S===f){var C;n&&(!((C=r.current)===null||C===void 0)&&C.contains(k.target))&&!k.isDefaultPrevented()&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),k.preventDefault())}if(S===qT&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),!s)){var _;(_=a.current)===null||_===void 0||_.focus()}b?.(k)}),{inline:g,mountNode:y,components:{root:"div"},root:v}},xL={root:"fui-MenuPopover"},EL=H({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),IL=t=>{const e=EL();return t.root.className=j(xL.root,e.root,t.root.className),t},AL=t=>t.inline?q(t.root,{}):q(aa,{mountNode:t.mountNode,children:q(t.root,{})}),S2=w.forwardRef((t,e)=>{const r=TL(t,e);return IL(r),ge("useMenuPopoverStyles_unstable")(r),AL(r)});S2.displayName="MenuPopover";const RL=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Xe(E=>E.triggerRef),n=Xe(E=>E.menuPopoverRef),i=Xe(E=>E.setOpen),a=Xe(E=>E.open),s=Xe(E=>E.triggerId),c=Xe(E=>E.openOnHover),l=Xe(E=>E.openOnContext),u=M4(),d=Ey(),{findFirstFocusable:f}=bn(),h=w.useCallback(()=>{const E=f(n.current);E?.focus()},[f,n]),p=w.useRef(!1),g=w.useRef(!1),{dir:y}=je(),v=y==="ltr"?Yf:kb,m=Ml(e),b=E=>{ha(E)||E.isDefaultPrevented()||l&&(E.preventDefault(),i(E,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:E}))},k=E=>{ha(E)||l||(i(E,{open:!a,keyboard:p.current,type:"menuTriggerClick",event:E}),p.current=!1)},S=E=>{if(ha(E))return;const U=E.key;!l&&(d&&U===v||!d&&U===Xf)&&i(E,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:E}),U===yn&&!d&&i(E,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:E}),a&&U===v&&d&&h()},C=E=>{ha(E)||c&&g.current&&i(E,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:E})},_=E=>{ha(E)||c&&!g.current&&(i(E,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:E}),g.current=!0)},T=E=>{ha(E)||c&&i(E,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:E})},A={id:s,...u,...m?.props,ref:bt(o,m?.ref),onMouseEnter:ee(ke(m?.props.onMouseEnter,C)),onMouseLeave:ee(ke(m?.props.onMouseLeave,T)),onContextMenu:ee(ke(m?.props.onContextMenu,b)),onMouseMove:ee(ke(m?.props.onMouseMove,_))},R={"aria-haspopup":"menu","aria-expanded":!a&&!d?void 0:a,...A,onClick:ee(ke(m?.props.onClick,k)),onKeyDown:ee(ke(m?.props.onKeyDown,S))},V=Ui(m?.type==="button"||m?.type==="a"?m.type:"div",R);return{isSubmenu:d,children:Hf(e,l?A:r?R:V)}},ha=t=>{const e=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return at(t.target)&&e(t.target)?!0:at(t.currentTarget)&&e(t.currentTarget)},PL=t=>w.createElement(j7,{value:t.isSubmenu},t.children),Iy=t=>{const e=RL(t);return PL(e)};Iy.displayName="MenuTrigger";Iy.isFluentTriggerComponent=!0;const C2=w.createContext(void 0),BL={};C2.Provider;const NL=()=>w.useContext(C2)||BL,zL=t=>Ee(t.root,{children:[q(t.input,{}),q(t.indicator,{}),t.label&&q(t.label,{})]}),ML=(t,e)=>{const r=NL(),{name:o=r.name,checked:n=r.value!==void 0?r.value===t.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===t.value:void 0,labelPosition:a=r.layout==="horizontal-stacked"?"below":"after",disabled:s=r.disabled,required:c=r.required,"aria-describedby":l=r["aria-describedby"],onChange:u}=t,d=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=ae(t.root,{defaultProps:{ref:Dl(),...d.root},elementType:"span"}),h=ae(t.input,{defaultProps:{ref:e,type:"radio",id:gr("radio-",d.primary.id),name:o,checked:n,defaultChecked:i,disabled:s,required:c,"aria-describedby":l,...d.primary},elementType:"input"});h.onChange=ke(h.onChange,y=>u?.(y,{value:y.currentTarget.value}));const p=ve(t.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:Vt}),g=ae(t.indicator,{defaultProps:{"aria-hidden":!0,children:w.createElement(db,null)},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:Vt,indicator:"div"},root:f,input:h,label:p,indicator:g}},Tu={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},OL=de("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),DL=H({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),jL=de("r9gx1vl","r1uk1i2c",[".r9gx1vl{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r9gx1vl:enabled{cursor:pointer;}",".r9gx1vl:enabled~.fui-Radio__label{cursor:pointer;}",".r9gx1vl:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r9gx1vl:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r9gx1vl:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r9gx1vl:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r9gx1vl:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r9gx1vl:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r9gx1vl:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r9gx1vl:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r9gx1vl:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".r1uk1i2c{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".r1uk1i2c:enabled{cursor:pointer;}",".r1uk1i2c:enabled~.fui-Radio__label{cursor:pointer;}",".r1uk1i2c:not(:checked)~.fui-Radio__indicator>*{opacity:0;}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".r1uk1i2c:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".r1uk1i2c:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1uk1i2c:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".r1uk1i2c:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".r1uk1i2c:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".r1uk1i2c:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".r1uk1i2c:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".r1uk1i2c:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"]),FL=H({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}"]}),LL=de("rid4516",null,[".rid4516{width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}"]),qL=H({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),HL=t=>{const{labelPosition:e}=t,r=OL(),o=DL();t.root.className=j(Tu.root,r,e==="below"&&o.vertical,t.root.className);const n=jL(),i=FL();t.input.className=j(Tu.input,n,e==="below"&&i.below,t.input.className);const a=LL();t.indicator.className=j(Tu.indicator,a,t.indicator.className);const s=qL();t.label&&(t.label.className=j(Tu.label,s.base,s[e],t.label.className))},Im=w.forwardRef((t,e)=>{const r=ML(t,e);return HL(r),ge("useRadioStyles_unstable")(r),zL(r)});Im.displayName="Radio";const gk=(t,e,r)=>{let o=t;if(e!==void 0){if(r!==void 0&&e>r)return t;o=Math.max(e,o)}return r!==void 0&&(o=Math.min(r,o)),o},mk=(t,e,r)=>e!==void 0&&t===e?r===e?"both":"min":r!==void 0&&t===r?"max":"none";function UL(t){const e=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(t));return e?e[1]?-e[1].length:e[2]?e[2].length:0:0}function xu(t,e,r=10){const o=Math.pow(r,e);return Math.round(t*o)/o}const Cp=150,$L=80,KL=1e3,WL=(t,e,r)=>t+(e-t)*r,VL=(t,e)=>{t=$l(t,{supportsLabelFor:!0,supportsRequired:!0});const r=Is({props:t,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),o=qf();var n;const{value:i,displayValue:a,defaultValue:s,min:c,max:l,step:u=1,stepPage:d=1,precision:f,onChange:h,size:p="medium",appearance:g=(n=o.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",root:y,input:v,incrementButton:m,decrementButton:b}=t,k=w.useMemo(()=>f??Math.max(UL(u),0),[f,u]),[S,C]=mr({state:i,defaultState:s,initialState:0}),_=i!==void 0,[T,A]=w.useState(void 0),[R,V]=w.useState("rest"),E=w.useRef({value:S,spinState:"rest",spinTime:0,spinDelay:Cp,atBound:S!==null?mk(xu(S,k),c,l):"none"}),[U,D]=Hc(),B=(se,ye,tt)=>{let dt=E.current.value;if(tt){const Ih=parseFloat(tt);isNaN(Ih)||(dt=Ih)}const ar=dt,Nr=ye==="up"||ye==="upPage"?1:-1,go=ye==="upPage"||ye==="downPage"?d:u;if(ar===null){const FA=gk((c===void 0?0:c)+go*Nr,c,l);G(se,FA);return}let Xl=ar+go*Nr;Number.isNaN(Xl)||(Xl=gk(Xl,c,l)),G(se,Xl),E.current.spinState!=="rest"&&U(()=>{E.current.spinTime+=E.current.spinDelay,E.current.spinDelay=WL(Cp,$L,E.current.spinTime/KL),B(se,ye)},E.current.spinDelay)},M=se=>{E.current.previousTextValue||(E.current.previousTextValue=T??String(S));const ye=se.target.value;A(ye)},K=se=>{E.current.spinState="up",B(se,"up")},I=se=>{E.current.spinState="down",B(se,"down")},F=se=>{D(),E.current.spinState="rest",E.current.spinDelay=Cp,E.current.spinTime=0},$=se=>{G(se,S,T),E.current.previousTextValue=void 0},N=se=>{let ye="rest";se.key===_b?(B(se,"up",T),ye="up"):se.key===Xf?(B(se,"down",T),ye="down"):se.key===ZO?(se.preventDefault(),B(se,"upPage",T),ye="up"):se.key===QO?(se.preventDefault(),B(se,"downPage",T),ye="down"):!se.shiftKey&&se.key===UT&&c!==void 0?(G(se,c),ye="down"):!se.shiftKey&&se.key===HT&&l!==void 0?(G(se,l),ye="up"):se.key===Ai?(G(se,S,T),E.current.previousTextValue=void 0):se.key===yn&&E.current.previousTextValue&&(A(void 0),E.current.previousTextValue=void 0),R!==ye&&V(ye)},O=se=>{R!=="rest"&&(V("rest"),E.current.spinState="rest")},G=(se,ye,tt)=>{const dt=ye!==void 0&&S!==ye,ar=tt!==void 0&&E.current.previousTextValue!==void 0&&E.current.previousTextValue!==tt;let Nr;if(dt)Nr=xu(ye,k),C(Nr);else if(ar&&!_){const go=parseFloat(tt);isNaN(go)||C(xu(go,k))}(dt||ar)&&h?.(se,{value:Nr,displayValue:tt}),A(void 0)},Q={size:p,appearance:g,spinState:R,atBound:E.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:ae(y,{defaultProps:r.root,elementType:"span"}),input:ae(v,{defaultProps:{ref:e,autoComplete:"off",role:"spinbutton",appearance:g,type:"text",...r.primary},elementType:"input"}),incrementButton:ae(m,{defaultProps:{tabIndex:-1,children:w.createElement(V3,null),disabled:r.primary.disabled,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:ae(b,{defaultProps:{tabIndex:-1,children:w.createElement(W3,null),disabled:r.primary.disabled,"aria-label":"Decrement value",type:"button"},elementType:"button"})};let fe;if(T!==void 0)fe=T;else if(i===null||S===null)fe=a??"",E.current.value=null,E.current.atBound="none";else{const se=xu(S,k);E.current.value=se,E.current.atBound=mk(se,c,l),_?fe=a??String(se):fe=String(se)}Q.input.value=fe,Q.input["aria-valuemin"]=c,Q.input["aria-valuemax"]=l,Q.input["aria-valuenow"]=S??void 0;var Ae;return Q.input["aria-valuetext"]=(Ae=Q.input["aria-valuetext"])!==null&&Ae!==void 0?Ae:i!==void 0&&a||void 0,Q.input.onChange=ke(Q.input.onChange,M),Q.input.onBlur=ke(Q.input.onBlur,$),Q.input.onKeyDown=ke(Q.input.onKeyDown,N),Q.input.onKeyUp=ke(Q.input.onKeyUp,O),Q.incrementButton.onMouseDown=ke(K,Q.incrementButton.onMouseDown),Q.incrementButton.onMouseUp=ke(Q.incrementButton.onMouseUp,F),Q.incrementButton.onMouseLeave=ke(Q.incrementButton.onMouseLeave,F),Q.decrementButton.onMouseDown=ke(I,Q.decrementButton.onMouseDown),Q.decrementButton.onMouseUp=ke(Q.decrementButton.onMouseUp,F),Q.decrementButton.onMouseLeave=ke(Q.decrementButton.onMouseLeave,F),Q},GL=t=>Ee(t.root,{children:[q(t.input,{}),q(t.incrementButton,{}),q(t.decrementButton,{})]}),Eu={root:"fui-SpinButton",input:"fui-SpinButton__input",incrementButton:"fui-SpinButton__incrementButton",decrementButton:"fui-SpinButton__decrementButton"},vk={buttonActive:"fui-SpinButton__button_active"},XL=de("rkqmps4","r1trw52p",{r:[".rkqmps4{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.rkqmps4::before{content:"";box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.rkqmps4::after{box-sizing:border-box;content:"";position:absolute;right:0;bottom:0;left:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rkqmps4:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rkqmps4:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rkqmps4:focus-within{outline:2px solid transparent;}",".r1trw52p{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1trw52p::before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r1trw52p::after{box-sizing:border-box;content:"";position:absolute;left:0;bottom:0;right:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1trw52p:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1trw52p:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1trw52p:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.rkqmps4::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rkqmps4:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),YL=H({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",uwmqm3:["f1f5gg8d","f1vdfbxk"]},medium:{},outline:{},outlineInteractive:{Bo3r8zu:"f1w2y1rc",Hpvxnh:["f1gofhvl","f18htlvq"],Bx11ytk:"ffcnd28",B1rg0w0:["f18htlvq","f1gofhvl"],Bsg1tlv:"f6lmxco",Brjw370:["fcoc0mf","f15r4wkl"],xcfy85:"f1ipdth8",Bcc6kan:["f15r4wkl","fcoc0mf"]},underline:{B0qfbqy:"f1o236ok",B4f6apu:["faeg28l","f64aojp"],y0oebl:"fdw6hkg",uvfttm:["f64aojp","faeg28l"],Budzafs:["f1vk4jnx","f1v3v894"],r59vdv:["f1v3v894","f1vk4jnx"],n07z76:["fzi2j54","f1un0uoc"],ck0cow:["f1un0uoc","fzi2j54"]},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",B3778ie:["f9pmbr4","ffh3ws5"],d9w3h3:["ffh3ws5","f9pmbr4"],Bl18szs:["f19438ov","f1i9y5j"],B4j8arr:["f1i9y5j","f19438ov"]},filled:{B0qfbqy:"f1fjh9ub",B4f6apu:["ff9c942","f6rdg5o"],y0oebl:"fdw6hkg",uvfttm:["f6rdg5o","ff9c942"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f7dgwnz",Bk5zm6e:["f1edeodt","fszsv3f"],Bqjgrrk:"f1172wan",Bm6vgfq:["fszsv3f","f1edeodt"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},filledInteractive:{B05mzqr:"f1xqt08",tb9y6h:["fzt5lgo","f8tv3r9"],jcehpj:"fyhrops",B23o0hn:["f8tv3r9","fzt5lgo"]},invalid:{emecyz:"fl48pg9",lz0pba:["f1a168p3","f1pvdymy"],Bo1k74p:"f11knvgl",Ba322q7:["f1pvdymy","f1a168p3"]},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",Bq4z7u6:"f1a0lfh7",Bk5zm6e:["f1p2ejm6","fmzytvz"],Bqjgrrk:"fas2e61",Bm6vgfq:["fmzytvz","f1p2ejm6"],Cffpyd:"flb8es4",hxi8he:["f1lclws","frjp63v"],Bcuq369:"f1yv9wnt",Imo2if:["frjp63v","f1lclws"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1o236ok::before{border-top-width:0;}",".faeg28l::before{border-right-width:0;}",".f64aojp::before{border-left-width:0;}",".fdw6hkg::before{border-bottom-width:1px;}",".f1vk4jnx::before{border-bottom-right-radius:var(--borderRadiusNone);}",".f1v3v894::before{border-bottom-left-radius:var(--borderRadiusNone);}",".fzi2j54::before{border-top-right-radius:var(--borderRadiusNone);}",".f1un0uoc::before{border-top-left-radius:var(--borderRadiusNone);}",".f9pmbr4::after{border-bottom-right-radius:var(--borderRadiusNone);}",".ffh3ws5::after{border-bottom-left-radius:var(--borderRadiusNone);}",".f19438ov::after{border-top-right-radius:var(--borderRadiusNone);}",".f1i9y5j::after{border-top-left-radius:var(--borderRadiusNone);}",".f1fjh9ub::before{border-top-width:1px;}",".ff9c942::before{border-right-width:1px;}",".f6rdg5o::before{border-left-width:1px;}",".f163fonl::before{border-top-style:solid;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f11yjt3y::before{border-bottom-style:solid;}",".f7dgwnz::before{border-top-color:var(--colorTransparentStroke);}",".f1edeodt::before{border-right-color:var(--colorTransparentStroke);}",".fszsv3f::before{border-left-color:var(--colorTransparentStroke);}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fl48pg9:not(:focus-within)::before,.fl48pg9:hover:not(:focus-within)::before{border-top-color:var(--colorPaletteRedBorder2);}",".f1a168p3:not(:focus-within)::before,.f1a168p3:hover:not(:focus-within)::before{border-right-color:var(--colorPaletteRedBorder2);}",".f1pvdymy:not(:focus-within)::before,.f1pvdymy:hover:not(:focus-within)::before{border-left-color:var(--colorPaletteRedBorder2);}",".f11knvgl:not(:focus-within)::before,.f11knvgl:hover:not(:focus-within)::before{border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1a0lfh7::before{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1p2ejm6::before{border-right-color:var(--colorNeutralStrokeDisabled);}",".fmzytvz::before{border-left-color:var(--colorNeutralStrokeDisabled);}",".fas2e61::before{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],h:[".f1w2y1rc:hover::before{border-top-color:var(--colorNeutralStroke1Hover);}",".f1gofhvl:hover::before{border-right-color:var(--colorNeutralStroke1Hover);}",".f18htlvq:hover::before{border-left-color:var(--colorNeutralStroke1Hover);}",".ffcnd28:hover::before{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".f1xqt08:hover::before,.f1xqt08:focus-within::before{border-top-color:var(--colorTransparentStrokeInteractive);}",".fzt5lgo:hover::before,.fzt5lgo:focus-within::before{border-right-color:var(--colorTransparentStrokeInteractive);}",".f8tv3r9:hover::before,.f8tv3r9:focus-within::before{border-left-color:var(--colorTransparentStrokeInteractive);}",".fyhrops:hover::before,.fyhrops:focus-within::before{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f6lmxco:active::before,.f6lmxco:focus-within::before{border-top-color:var(--colorNeutralStroke1Pressed);}",".fcoc0mf:active::before,.fcoc0mf:focus-within::before{border-right-color:var(--colorNeutralStroke1Pressed);}",".f15r4wkl:active::before,.f15r4wkl:focus-within::before{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1ipdth8:active::before,.f1ipdth8:focus-within::before{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.flb8es4::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lclws::before{border-right-color:GrayText;}.frjp63v::before{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yv9wnt::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),QL=de("r1ljrqje",null,[".r1ljrqje{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:3;outline-style:none;border:0;padding:0;color:var(--colorNeutralForeground1);background-color:transparent;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;width:100%;}",".r1ljrqje::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),ZL=H({disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",yvdlaj:"fahhnxm"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),bk=de("r1g4chgs",null,[".r1g4chgs{display:inline-flex;width:24px;align-items:center;justify-content:center;border:0;position:absolute;outline-style:none;height:16px;background-color:transparent;color:var(--colorNeutralForeground3);grid-column-start:2;border-radius:0;padding:0 5px 0 5px;}",".r1g4chgs:active{outline-style:none;}",".r1g4chgs:enabled:hover{cursor:pointer;color:var(--colorNeutralForeground3Hover);background-color:var(--colorSubtleBackgroundHover);}",".r1g4chgs:enabled:active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:disabled{cursor:not-allowed;color:var(--colorNeutralForegroundDisabled);}"]),JL=H({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{z8tnut:"f1khb0e9",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},decrementButtonSmall:{z8tnut:"f1nbblvp",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1jnq6q7",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},outline:{},underline:{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1bifk9c",p743kt:"fp1zg4s",B7xitij:"fo6hitd",B6siaa6:"f1wiab75",Ba9qmo4:"fj9zm5z",Dyrjrp:"f1cqwcg4"},"filled-darker":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"fwwxidx",p743kt:"fp1zg4s",B7xitij:"f14i52sd",B6siaa6:"f1wiab75",Ba9qmo4:"fwry2ka",Dyrjrp:"f1cqwcg4"},"filled-lighter":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1yywxnv",drw0cw:"fzaa11h",idzz8t:"f4fpmm9",Dyrjrp:"f1cqwcg4"}},{d:[".f16hsg94{grid-row-start:1;}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f10ra9hq{padding-top:4px;}",".f1brlhvm{padding-bottom:1px;}",".faunodf{grid-row-start:2;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1sl3k7w{padding-top:1px;}",".f1y2xyjm{padding-bottom:4px;}",".f1khb0e9{padding-top:3px;}",".f1sgzk6v{padding-right:6px;}",".f1bg5zqg{padding-left:6px;}",".f1ov4xf1{padding-bottom:0px;}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fvblgha{height:12px;}",".f1nbblvp{padding-top:0px;}",".f1jnq6q7{padding-bottom:3px;}",".f3rmtva{background-color:transparent;}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1no7wuu:enabled:hover{color:var(--colorNeutralForeground3Hover);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fp1zg4s:enabled:active{color:var(--colorNeutralForeground3Pressed);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1wiab75:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".fj9zm5z:enabled.fui-SpinButton__button_active{background-color:var(--colorSubtleBackgroundPressed);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".fwry2ka:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground3Pressed);}",".f1yywxnv:enabled:hover{background-color:var(--colorNeutralBackground1Hover);}",".fzaa11h:enabled:active,.fzaa11h:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".f4fpmm9:enabled:active,.f4fpmm9:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground1Pressed);}"]}),e9=H({base:{Bceei9c:"fdrzuqr",eoavqd:"fphbwmw"},outline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},underline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-darker":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-lighter":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".few7wvn:enabled:hover{color:var(--colorNeutralForegroundDisabled);}",".f110wuh6:enabled:hover{background-color:transparent;}",".f9s4mys:enabled:active{color:var(--colorNeutralForegroundDisabled);}",".f10404rc:enabled:active{background-color:transparent;}",".fwzu9cz:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForegroundDisabled);}",".f1snwkb6:enabled.fui-SpinButton__button_active{background-color:transparent;}"],h:[".fphbwmw:hover{cursor:not-allowed;}"]}),t9=t=>{const{appearance:e,atBound:r,spinState:o,size:n}=t,i=t.input.disabled,a=`${t.input["aria-invalid"]}`=="true",s=e.startsWith("filled"),c=YL(),l=JL(),u=e9(),d=ZL();return t.root.className=j(Eu.root,XL(),c[n],c[e],s&&c.filled,!i&&e==="outline"&&c.outlineInteractive,!i&&e==="underline"&&c.underlineInteractive,!i&&s&&c.filledInteractive,!i&&a&&c.invalid,i&&c.disabled,t.root.className),t.incrementButton.className=j(Eu.incrementButton,o==="up"&&`${vk.buttonActive}`,bk(),l.increment,l[e],n==="small"&&l.incrementButtonSmall,(r==="max"||r==="both")&&u.base,(r==="max"||r==="both")&&u[e],t.incrementButton.className),t.decrementButton.className=j(Eu.decrementButton,o==="down"&&`${vk.buttonActive}`,bk(),l.decrement,l[e],n==="small"&&l.decrementButtonSmall,(r==="min"||r==="both")&&u.base,(r==="min"||r==="both")&&u[e],t.decrementButton.className),t.input.className=j(Eu.input,QL(),i&&d.disabled,t.input.className),t},T2=w.forwardRef((t,e)=>{const r=VL(t,e);return t9(r),ge("useSpinButtonStyles_unstable")(r),GL(r)});T2.displayName="SpinButton";const r9=()=>w.createElement("svg",{className:"fui-Spinner__Progressbar"},w.createElement("circle",{className:"fui-Spinner__Track"}),w.createElement("circle",{className:"fui-Spinner__Tail"})),x2=w.createContext(void 0),o9={};x2.Provider;const n9=()=>{var t;return(t=w.useContext(x2))!==null&&t!==void 0?t:o9},i9=(t,e)=>{const{size:r}=n9(),{appearance:o="primary",labelPosition:n="after",size:i=r??"medium",delay:a=0}=t,s=gr("spinner"),{role:c="progressbar",tabIndex:l,...u}=t,d=ae(we("div",{ref:e,role:c,...u},["size"]),{elementType:"div"}),[f,h]=w.useState(!0),[p,g]=Hc();w.useEffect(()=>{if(!(a<=0))return h(!1),p(()=>{h(!0)},a),()=>{g()}},[p,g,a]);const y=ve(t.label,{defaultProps:{id:s},renderByDefault:!1,elementType:Vt}),v=ve(t.spinner,{renderByDefault:!0,defaultProps:{children:w.createElement(r9,null),tabIndex:l},elementType:"span"});return y&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=y.id),{appearance:o,delay:a,labelPosition:n,size:i,shouldRenderSpinner:f,components:{root:"div",spinner:"span",label:Vt},root:d,spinner:v,label:y}},a9=t=>{const{labelPosition:e,shouldRenderSpinner:r}=t;return Ee(t.root,{children:[t.label&&r&&(e==="above"||e==="before")&&q(t.label,{}),t.spinner&&r&&q(t.spinner,{}),t.label&&r&&(e==="below"||e==="after")&&q(t.label,{})]})},Tp={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},s9=H({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),c9=H({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),l9=H({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),u9=H({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),d9=t=>{const{labelPosition:e,size:r,appearance:o="primary"}=t,n=s9(),i=c9(),a=u9(),s=l9();return t.root.className=j(Tp.root,n.root,(e==="above"||e==="below")&&n.vertical,(e==="before"||e==="after")&&n.horizontal,t.root.className),t.spinner&&(t.spinner.className=j(Tp.spinner,i.spinnerSVG,i[r],s[o],t.spinner.className)),t.label&&(t.label.className=j(Tp.label,a[r],a[o],t.label.className)),t},Ac=w.forwardRef((t,e)=>{const r=i9(t,e);return d9(r),ge("useSpinnerStyles_unstable")(r),a9(r)});Ac.displayName="Spinner";const f9=(t,e)=>{t=$l(t,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:o,disabled:n,labelPosition:i="after",onChange:a,required:s}=t,c=Is({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),l=gr("switch-",c.primary.id),u=ae(t.root,{defaultProps:{ref:Dl(),...c.root},elementType:"div"}),d=ae(t.indicator,{defaultProps:{"aria-hidden":!0,children:w.createElement(db,null)},elementType:"div"}),f=ae(t.input,{defaultProps:{checked:r,defaultChecked:o,id:l,ref:e,role:"switch",type:"checkbox",...c.primary},elementType:"input"});f.onChange=ke(f.onChange,p=>a?.(p,{checked:p.currentTarget.checked}));const h=ve(t.label,{defaultProps:{disabled:n,htmlFor:l,required:s,size:"medium"},elementType:Vt});return{labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:Vt},root:u,indicator:d,input:f,label:h}},h9=t=>{const{labelPosition:e}=t;return Ee(t.root,{children:[q(t.input,{}),e!=="after"&&t.label&&q(t.label,{}),q(t.indicator,{}),e==="after"&&t.label&&q(t.label,{})]})},Iu={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},p9=de("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),g9=H({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),m9=de("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),v9=H({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),b9=de("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),y9=H({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),w9=H({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),k9=t=>{const e=p9(),r=g9(),o=m9(),n=v9(),i=b9(),a=y9(),s=w9(),{label:c,labelPosition:l}=t;return t.root.className=j(Iu.root,e,l==="above"&&r.vertical,t.root.className),t.indicator.className=j(Iu.indicator,o,c&&l==="above"&&n.labelAbove,t.indicator.className),t.input.className=j(Iu.input,i,c&&a[l],t.input.className),t.label&&(t.label.className=j(Iu.label,s.base,s[l],t.label.className)),t},E2=w.forwardRef((t,e)=>{const r=f9(t,e);return k9(r),ge("useSwitchStyles_unstable")(r),h9(r)});E2.displayName="Switch";const _9={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},I2=As(void 0),S9=I2.Provider,Yr=t=>Rs(I2,(e=_9)=>t(e)),C9=(t,e)=>{const{content:r,disabled:o=!1,icon:n,onClick:i,onFocus:a,value:s}=t,c=Yr(R=>R.appearance),l=Yr(R=>R.reserveSelectedTabSpace),u=Yr(R=>R.selectTabOnFocus),d=Yr(R=>R.disabled),f=Yr(R=>R.selectedValue===s),h=Yr(R=>R.onRegister),p=Yr(R=>R.onUnregister),g=Yr(R=>R.onSelect),y=Yr(R=>R.size),v=Yr(R=>!!R.vertical),m=d||o,b=w.useRef(null),k=R=>g(R,{value:s}),S=ee(ke(i,k)),C=ee(ke(a,k));w.useEffect(()=>(h({value:s,ref:b}),()=>{p({value:s,ref:b})}),[h,p,b,s]);const _=ve(n,{elementType:"span"}),T=ae(r,{defaultProps:{children:t.children},elementType:"span"}),A=!!(_?.children&&!T.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:ae(we("button",{ref:bt(e,b),role:"tab",type:"button","aria-selected":m?void 0:`${f}`,...t,disabled:m,onClick:S,onFocus:u?C:a}),{elementType:"button"}),icon:_,iconOnly:A,content:T,contentReservedSpace:ve(r,{renderByDefault:!f&&!A&&l,defaultProps:{children:t.children},elementType:"span"}),appearance:c,disabled:m,selected:f,size:y,value:s,vertical:v}},T9=t=>Ee(t.root,{children:[t.icon&&q(t.icon,{}),!t.iconOnly&&q(t.content,{}),t.contentReservedSpace&&q(t.contentReservedSpace,{})]}),yk={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},x9=H({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),E9=t=>{if(t){var e;const r=((e=t.parentElement)===null||e===void 0?void 0:e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},o=t.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},wk=(t,e)=>{var r;const o=e!=null?(r=t[JSON.stringify(e)])===null||r===void 0?void 0:r.ref.current:void 0;return o?E9(o):void 0},I9=t=>{const{disabled:e,selected:r,vertical:o}=t,n=x9(),[i,a]=w.useState(),[s,c]=w.useState({offset:0,scale:1}),l=Yr(f=>f.getRegisteredTabs);if(w.useEffect(()=>{i&&c({offset:0,scale:1})},[i]),r){const{previousSelectedValue:f,selectedValue:h,registeredTabs:p}=l();if(f&&i!==f){const g=wk(p,f),y=wk(p,h);if(y&&g){const v=o?g.y-y.y:g.x-y.x,m=o?g.height/y.height:g.width/y.width;c({offset:v,scale:m}),a(f)}}}else i&&a(void 0);if(e)return t;const u=s.offset===0&&s.scale===1;t.root.className=j(t.root.className,r&&n.base,r&&u&&n.animated,r&&(o?n.vertical:n.horizontal));const d={[yk.offsetVar]:`${s.offset}px`,[yk.scaleVar]:`${s.scale}`};return t.root.style={...d,...t.root.style},t},xp={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},A9={content:"fui-Tab__content--reserved-space"},R9=H({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),P9=H({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),B9=H({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),N9=H({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),z9=H({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),M9=H({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),O9=t=>{const e=R9(),r=P9(),o=B9(),n=N9(),i=z9(),a=M9(),{appearance:s,disabled:c,selected:l,size:u,vertical:d}=t;return t.root.className=j(xp.root,e.base,d?e.vertical:e.horizontal,u==="small"&&(d?e.smallVertical:e.smallHorizontal),u==="medium"&&(d?e.mediumVertical:e.mediumHorizontal),u==="large"&&(d?e.largeVertical:e.largeHorizontal),r.base,!c&&s==="subtle"&&e.subtle,!c&&s==="transparent"&&e.transparent,!c&&l&&e.selected,c&&e.disabled,o.base,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),c&&o.disabled,l&&n.base,l&&!c&&n.selected,l&&u==="small"&&(d?n.smallVertical:n.smallHorizontal),l&&u==="medium"&&(d?n.mediumVertical:n.mediumHorizontal),l&&u==="large"&&(d?n.largeVertical:n.largeHorizontal),l&&c&&n.disabled,t.root.className),t.icon&&(t.icon.className=j(xp.icon,i.base,i[u],l&&i.selected,t.icon.className)),t.contentReservedSpace&&(t.contentReservedSpace.className=j(A9.content,a.base,u==="large"?a.largeSelected:a.selected,t.icon?a.iconBefore:a.noIconBefore,a.placeholder,t.content.className),t.contentReservedSpaceClassName=t.contentReservedSpace.className),t.content.className=j(xp.content,a.base,u==="large"&&a.large,l&&(u==="large"?a.largeSelected:a.selected),t.icon?a.iconBefore:a.noIconBefore,t.content.className),I9(t),t},cd=w.forwardRef((t,e)=>{const r=C9(t,e);return O9(r),ge("useTabStyles_unstable")(r),T9(r)});cd.displayName="Tab";const D9=(t,e)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,disabled:n=!1,onTabSelect:i,selectTabOnFocus:a=!1,size:s="medium",vertical:c=!1}=t,l=w.useRef(null),u=Wc({circular:!0,axis:c?"vertical":"horizontal",memorizeCurrent:!0}),[d,f]=mr({state:t.selectedValue,defaultState:t.defaultSelectedValue,initialState:void 0}),h=w.useRef(void 0),p=w.useRef(void 0);w.useEffect(()=>{p.current=h.current,h.current=d},[d]);const g=ee((k,S)=>{f(S.value),i?.(k,S)}),y=w.useRef({}),v=ee(k=>{y.current[JSON.stringify(k.value)]=k}),m=ee(k=>{delete y.current[JSON.stringify(k.value)]}),b=w.useCallback(()=>({selectedValue:h.current,previousSelectedValue:p.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:ae(we("div",{ref:bt(e,l),role:"tablist","aria-orientation":c?"vertical":"horizontal",...u,...t}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:o,disabled:n,selectTabOnFocus:a,selectedValue:d,size:s,vertical:c,onRegister:v,onUnregister:m,onSelect:g,getRegisteredTabs:b}},j9=(t,e)=>q(t.root,{children:q(S9,{value:e.tabList,children:t.root.children})}),F9={root:"fui-TabList"},L9=H({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),q9=t=>{const{vertical:e}=t,r=L9();return t.root.className=j(F9.root,r.root,e?r.vertical:r.horizontal,t.root.className),t};function H9(t){const{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onRegister:a,onUnregister:s,onSelect:c,getRegisteredTabs:l,size:u,vertical:d}=t;return{tabList:{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onSelect:c,onRegister:a,onUnregister:s,getRegisteredTabs:l,size:u,vertical:d}}}const A2=w.forwardRef((t,e)=>{const r=D9(t,e),o=H9(r);return q9(r),ge("useTabListStyles_unstable")(r),j9(r,o)});A2.displayName="TabList";const R2=(t,e)=>{const{wrap:r,truncate:o,block:n,italic:i,underline:a,strikethrough:s,size:c,font:l,weight:u,align:d}=t;return{align:d??"start",block:n??!1,font:l??"base",italic:i??!1,size:c??300,strikethrough:s??!1,truncate:o??!1,underline:a??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:ae(we("span",{ref:e,...t}),{elementType:"span"})}},P2=t=>q(t.root,{}),U9={root:"fui-Text"},$9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),B2=t=>{const e=$9();return t.root.className=j(U9.root,e.root,t.wrap===!1&&e.nowrap,t.truncate&&e.truncate,t.block&&e.block,t.italic&&e.italic,t.underline&&e.underline,t.strikethrough&&e.strikethrough,t.underline&&t.strikethrough&&e.strikethroughUnderline,t.size===100&&e.base100,t.size===200&&e.base200,t.size===400&&e.base400,t.size===500&&e.base500,t.size===600&&e.base600,t.size===700&&e.hero700,t.size===800&&e.hero800,t.size===900&&e.hero900,t.size===1e3&&e.hero1000,t.font==="monospace"&&e.monospace,t.font==="numeric"&&e.numeric,t.weight==="medium"&&e.weightMedium,t.weight==="semibold"&&e.weightSemibold,t.weight==="bold"&&e.weightBold,t.align==="center"&&e.alignCenter,t.align==="end"&&e.alignEnd,t.align==="justify"&&e.alignJustify,t.root.className),t},fl=w.forwardRef((t,e)=>{const r=R2(t,e);return B2(r),ge("useTextStyles_unstable")(r),P2(r)});fl.displayName="Text";function mh(t){const{useStyles:e,className:r,displayName:o}=t,n=w.forwardRef((i,a)=>{const s=e(),c=R2(i,a);return B2(c),c.root.className=j(r,c.root.className,s.root,i.className),P2(c)});return n.displayName=o,n}const K9={root:"fui-Body1"},W9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),V9=mh({useStyles:W9,className:K9.root,displayName:"Body1"}),G9={root:"fui-Body1Strong"},X9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),Y9=mh({useStyles:X9,className:G9.root,displayName:"Body1Strong"}),Q9={root:"fui-Caption1"},Z9=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),J9=mh({useStyles:Z9,className:Q9.root,displayName:"Caption1"}),eq={root:"fui-Subtitle2"},tq=H({root:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),rq=mh({useStyles:tq,className:eq.root,displayName:"Subtitle2"}),oq=t=>q(t.root,{children:q(t.textarea,{})}),nq=(t,e)=>{t=$l(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=qf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",resize:a="none",onChange:s}=t,[c,l]=mr({state:t.value,defaultState:t.defaultValue,initialState:void 0}),u=Is({props:t,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:n,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:ae(t.textarea,{defaultProps:{ref:e,...u.primary},elementType:"textarea"}),root:ae(t.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=c,d.textarea.onChange=ee(f=>{const h=f.target.value;s?.(f,{value:h}),l(h)}),d},kk={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},iq=H({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1ean75l",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},disabled:{De3pzq:"f1c21dwh",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{ckks6v:"f7ic3uo",B2zwrfe:["f1omjgsz","f1snvl17"],xv9156:"fn6xmsl",dt87k2:["f1snvl17","f1omjgsz"],Bf40cpq:"f1sn8sm0",Bop6t4b:["f1wovo5e","f716mnf"],gvrnp0:"fm0h710",Beu9t3s:["f716mnf","f1wovo5e"],Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],uqwnxt:"fk7lb2a",Bvecx4l:["f1knhbbd","f17itt0b"],Bs0cc2w:"f15pjvi3",e1hlit:["f17itt0b","f1knhbbd"],e2sjt0:"f6ginmj",Bbcopvn:["f1grcyuh","fgzu20w"],Bj33j0h:"fk1xjsr",f7epvg:["fgzu20w","f1grcyuh"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bbs6y8j:"fu7v4fk",rexu52:["f1fnaxjy","fwory1w"],B7pmvfx:"f7hodha",Belqbek:["fwory1w","f1fnaxjy"],Bawrxx6:"f8jkv7v",r7b1zc:["f1f3jaeo","fh8au0q"],Bt3ojkv:"f19usxel",t1ykpo:["fh8au0q","f1f3jaeo"],Bvq3b66:"f12oevn0",Brahy3i:["fvdgz8d","f1cq0lt5"],zoxjo1:"f1so894s",an54nd:["f1cq0lt5","fvdgz8d"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1ean75l{padding-bottom:var(--strokeWidthThick);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fyed02w{box-shadow:var(--shadow2);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fu7v4fk:focus-within{border-top-width:var(--strokeWidthThin);}",".f1fnaxjy:focus-within{border-right-width:var(--strokeWidthThin);}",".fwory1w:focus-within{border-left-width:var(--strokeWidthThin);}",".f7hodha:focus-within{border-bottom-width:var(--strokeWidthThin);}",".f8jkv7v:focus-within{border-top-style:solid;}",".f1f3jaeo:focus-within{border-right-style:solid;}",".fh8au0q:focus-within{border-left-style:solid;}",".f19usxel:focus-within{border-bottom-style:solid;}",".f12oevn0:focus-within{border-top-color:var(--colorNeutralStroke1);}",".fvdgz8d:focus-within{border-right-color:var(--colorNeutralStroke1);}",".f1cq0lt5:focus-within{border-left-color:var(--colorNeutralStroke1);}",".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}",".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}",".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}",".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}",".f1sn8sm0:hover{border-top-style:solid;}",".f1wovo5e:hover{border-right-style:solid;}",".f716mnf:hover{border-left-style:solid;}",".fm0h710:hover{border-bottom-style:solid;}",".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}",".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}",".f17itt0b:active{border-left-width:var(--strokeWidthThin);}",".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}",".f6ginmj:active{border-top-style:solid;}",".f1grcyuh:active{border-right-style:solid;}",".fgzu20w:active{border-left-style:solid;}",".fk1xjsr:active{border-bottom-style:solid;}",".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),aq=H({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",z8tnut:"f1ywm7hm",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f14wxoun",uwmqm3:["f1xile11","fqznh8f"],Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",z8tnut:"fp2oml8",z189sj:["f135dnwl","f1e60jzv"],Byoj8tv:"f1tdddsa",uwmqm3:["f1e60jzv","f135dnwl"],Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",z8tnut:"f1kwiid1",z189sj:["fcgl2c4","f1anj20m"],Byoj8tv:"f5b47ha",uwmqm3:["f1anj20m","fcgl2c4"],Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".fcgl2c4{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f1anj20m{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),sq=H({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),cq=t=>{const{size:e,appearance:r,resize:o}=t,n=t.textarea.disabled,i=`${t.textarea["aria-invalid"]}`=="true",a=r.startsWith("filled"),s=iq();t.root.className=j(kk.root,s.base,n&&s.disabled,!n&&a&&s.filled,!n&&s[r],!n&&s.interactive,!n&&r==="outline"&&s.outlineInteractive,!n&&i&&s.invalid,t.root.className);const c=aq(),l=sq();return t.textarea.className=j(kk.textarea,c.base,c[e],l[o],n&&c.disabled,t.textarea.className),t},N2=w.forwardRef((t,e)=>{const r=nq(t,e);return cq(r),ge("useTextareaStyles_unstable")(r),oq(r)});N2.displayName="Textarea";const mi="__fluentDisableScrollElement";function lq(){const{targetDocument:t}=je();return w.useCallback(()=>{if(t)return uq(t.body)},[t])}function uq(t){var e;const{clientWidth:r}=t.ownerDocument.documentElement;var o;const n=(o=(e=t.ownerDocument.defaultView)===null||e===void 0?void 0:e.innerWidth)!==null&&o!==void 0?o:0;return dq(t),t[mi].count===0&&(t.style.overflow="hidden",t.style.paddingRight=`${n-r}px`),t[mi].count++,()=>{t[mi].count--,t[mi].count===0&&(t.style.overflow=t[mi].previousOverflowStyle,t.style.paddingRight=t[mi].previousPaddingRightStyle)}}function dq(t){var e,r,o;(o=(e=t)[r=mi])!==null&&o!==void 0||(e[r]={count:0,previousOverflowStyle:t.style.overflow,previousPaddingRightStyle:t.style.paddingRight})}function fq(t,e){const{findFirstFocusable:r}=bn(),{targetDocument:o}=je(),n=w.useRef(null);return w.useEffect(()=>{if(!t)return;const i=n.current&&r(n.current);if(i)i.focus();else{var a;(a=n.current)===null||a===void 0||a.focus()}},[r,t,e,o]),n}const hq={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},Ay=As(void 0),pq=Ay.Provider,So=t=>Rs(Ay,(e=hq)=>t(e)),gq=!1,z2=w.createContext(void 0),M2=z2.Provider,mq=()=>{var t;return(t=w.useContext(z2))!==null&&t!==void 0?t:gq},vq=t=>{const{children:e,modalType:r="modal",onOpenChange:o,inertTrapFocus:n=!1}=t,[i,a]=bq(e),[s,c]=mr({state:t.open,defaultState:t.defaultOpen,initialState:!1}),l=ee(g=>{o?.(g.event,g),g.event.isDefaultPrevented()||c(g.open)}),u=fq(s,r),d=lq(),f=!!(s&&r!=="non-modal");er(()=>{if(f)return d()},[d,f]);const{modalAttributes:h,triggerAttributes:p}=Wf({trapFocus:r!=="non-modal",legacyTrapFocus:!n});return{components:{backdrop:"div"},inertTrapFocus:n,open:s,modalType:r,content:a,trigger:i,requestOpenChange:l,dialogTitleId:gr("dialog-title-"),isNestedDialog:wb(Ay),dialogRef:u,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:p}};function bq(t){const e=w.Children.toArray(t);switch(e.length){case 2:return e;case 1:return[void 0,e[0]];default:return[void 0,void 0]}}function yq(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function Am(t,e){return Am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Am(t,e)}function wq(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Am(t,e)}var O2={exports:{}},kq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_q=kq,Sq=_q;function D2(){}function j2(){}j2.resetWarningCache=D2;var Cq=function(){function t(o,n,i,a,s,c){if(c!==Sq){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:j2,resetWarningCache:D2};return r.PropTypes=r,r};O2.exports=Cq();var Tq=O2.exports;const Ue=Oo(Tq),_k={disabled:!1},F2=Kt.createContext(null);var xq=function(e){return e.scrollTop},fc="unmounted",vi="exited",bi="entering",Ca="entered",Rm="exiting",kn=function(t){wq(e,t);function e(o,n){var i;i=t.call(this,o,n)||this;var a=n,s=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?s?(c=vi,i.appearStatus=bi):c=Ca:o.unmountOnExit||o.mountOnEnter?c=fc:c=vi,i.state={status:c},i.nextCallback=null,i}e.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===fc?{status:vi}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==bi&&a!==Ca&&(i=bi):(a===bi||a===Ca)&&(i=Rm)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,s;return i=a=s=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,s=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===bi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:_u.findDOMNode(this);a&&xq(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vi&&this.setState({status:fc})},r.performEnter=function(n){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:n,c=this.props.nodeRef?[s]:[_u.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!n&&!a||_k.disabled){this.safeSetState({status:Ca},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:bi},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Ca},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:_u.findDOMNode(this);if(!i||_k.disabled){this.safeSetState({status:vi},function(){n.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Rm},function(){n.props.onExiting(s),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:vi},function(){n.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,n(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:_u.findDOMNode(this),s=n==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===fc)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=yq(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Kt.createElement(F2.Provider,{value:null},typeof a=="function"?a(n,s):Kt.cloneElement(Kt.Children.only(a),s))},e}(Kt.Component);kn.contextType=F2;kn.propTypes={};function pa(){}kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pa,onEntering:pa,onEntered:pa,onExit:pa,onExiting:pa,onExited:pa};kn.UNMOUNTED=fc;kn.EXITED=vi;kn.ENTERING=bi;kn.ENTERED=Ca;kn.EXITING=Rm;const L2=kn,Eq=void 0,q2=w.createContext(void 0),Iq=q2.Provider,Aq=()=>{var t;return(t=w.useContext(q2))!==null&&t!==void 0?t:Eq},Rq=(t,e)=>{const{content:r,trigger:o}=t;return q(pq,{value:e.dialog,children:Ee(M2,{value:e.dialogSurface,children:[o,q(L2,{mountOnEnter:!0,unmountOnExit:!0,in:t.open,nodeRef:t.dialogRef,appear:!0,timeout:250,children:n=>q(Iq,{value:n,children:r})})]})})};function Pq(t){const{modalType:e,open:r,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,requestOpenChange:s,modalAttributes:c,triggerAttributes:l}=t;return{dialog:{open:r,modalType:e,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,modalAttributes:c,triggerAttributes:l,requestOpenChange:s},dialogSurface:!1}}const hl=w.memo(t=>{const e=vq(t),r=Pq(e);return Rq(e,r)});hl.displayName="Dialog";const Bq=t=>{const e=mq(),{children:r,disableButtonEnhancement:o=!1,action:n=e?"close":"open"}=t,i=Ml(r),a=So(d=>d.requestOpenChange),{triggerAttributes:s}=Wf(),c=ee(d=>{var f,h;i==null||(f=(h=i.props).onClick)===null||f===void 0||f.call(h,d),d.isDefaultPrevented()||a({event:d,type:"triggerClick",open:n==="open"})}),l={...i?.props,ref:i?.ref,onClick:c,...s},u=Ui(i?.type==="button"||i?.type==="a"?i.type:"div",{...l,type:"button"});return{children:Hf(r,o?l:u)}},Nq=t=>t.children,ws=t=>{const e=Bq(t);return Nq(e)};ws.displayName="DialogTrigger";ws.isFluentTriggerComponent=!0;const zq=(t,e)=>{const{position:r="end",fluid:o=!1}=t;return{components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),position:r,fluid:o}},Mq=t=>q(t.root,{}),Oq={root:"fui-DialogActions"},Dq=de("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),jq=H({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),Fq=t=>{const e=Dq(),r=jq();return t.root.className=j(Oq.root,e,t.position==="start"&&r.gridPositionStart,t.position==="end"&&r.gridPositionEnd,t.fluid&&t.position==="start"&&r.fluidStart,t.fluid&&t.position==="end"&&r.fluidEnd,t.root.className),t},Ry=w.forwardRef((t,e)=>{const r=zq(t,e);return Fq(r),ge("useDialogActionsStyles_unstable")(r),Mq(r)});Ry.displayName="DialogActions";const Lq=(t,e)=>{var r;return{components:{root:"div"},root:ae(we((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},qq=t=>q(t.root,{}),Hq={root:"fui-DialogBody"},Uq=de("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),$q=t=>{const e=Uq();return t.root.className=j(Hq.root,e,t.root.className),t},Py=w.forwardRef((t,e)=>{const r=Lq(t,e);return $q(r),ge("useDialogBodyStyles_unstable")(r),qq(r)});Py.displayName="DialogBody";const Sk={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},Kq=de("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),Wq=H({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),Vq=de("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),Gq=de("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),H2=t=>{const e=Kq(),r=Vq(),o=Wq();return t.root.className=j(Sk.root,e,!t.action&&o.rootWithoutAction,t.root.className),t.action&&(t.action.className=j(Sk.action,r,t.action.className)),t},Xq=(t,e)=>{const{action:r}=t,o=So(i=>i.modalType),n=Gq();return{components:{root:"h2",action:"div"},root:ae(we("h2",{ref:e,id:So(i=>i.dialogTitleId),...t}),{elementType:"h2"}),action:ve(r,{renderByDefault:o==="non-modal",defaultProps:{children:w.createElement(ws,{disableButtonEnhancement:!0,action:"close"},w.createElement("button",{type:"button",className:n,"aria-label":"close"},w.createElement(G3,null)))},elementType:"div"})}},Yq=t=>Ee(w.Fragment,{children:[q(t.root,{children:t.root.children}),t.action&&q(t.action,{})]}),U2=w.forwardRef((t,e)=>{const r=Xq(t,e);return H2(r),ge("useDialogTitleStyles_unstable")(r),Yq(r)});U2.displayName="DialogTitle";const $2=(t,e)=>{const r=So(f=>f.modalType),o=So(f=>f.isNestedDialog),n=Aq(),i=So(f=>f.modalAttributes),a=So(f=>f.dialogRef),s=So(f=>f.requestOpenChange),c=So(f=>f.dialogTitleId),l=ee(f=>{if(dz(t.backdrop)){var h,p;(h=(p=t.backdrop).onClick)===null||h===void 0||h.call(p,f)}r==="modal"&&!f.isDefaultPrevented()&&s({event:f,open:!1,type:"backdropClick"})}),u=ee(f=>{var h;(h=t.onKeyDown)===null||h===void 0||h.call(t,f),f.key===yn&&!f.isDefaultPrevented()&&(s({event:f,open:!1,type:"escapeKeyDown"}),f.preventDefault())}),d=ve(t.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return d&&(d.onClick=l),{components:{backdrop:"div",root:"div"},backdrop:d,isNestedDialog:o,transitionStatus:n,mountNode:t.mountNode,root:ae(we("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":t["aria-label"]?void 0:c,...t,...i,onKeyDown:u,ref:bt(e,a)}),{elementType:"div"})}},K2=(t,e)=>Ee(aa,{mountNode:t.mountNode,children:[t.backdrop&&q(t.backdrop,{}),q(M2,{value:e.dialogSurface,children:q(t.root,{})})]}),Ck={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},Qq=de("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),Zq=H({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),Jq=de("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),eH=H({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),tH=t=>{const{isNestedDialog:e,root:r,backdrop:o,transitionStatus:n}=t,i=Qq(),a=Zq(),s=Jq(),c=eH();return r.className=j(Ck.root,i,n&&a.animated,n&&a[n],r.className),o&&(o.className=j(Ck.backdrop,s,e&&c.nestedDialogBackdrop,n&&c[n],o.className)),t};function W2(t){return{dialogSurface:!0}}const By=w.forwardRef((t,e)=>{const r=$2(t,e),o=W2();return tH(r),ge("useDialogSurfaceStyles_unstable")(r),K2(r,o)});By.displayName="DialogSurface";const rH=(t,e)=>{var r;return{components:{root:"div"},root:ae(we((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},oH=t=>q(t.root,{}),nH={root:"fui-DialogContent"},iH=de("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),aH=t=>{const e=iH();return t.root.className=j(nH.root,e,t.root.className),t},Ny=w.forwardRef((t,e)=>{const r=rH(t,e);return aH(r),ge("useDialogContentStyles_unstable")(r),oH(r)});Ny.displayName="DialogContent";const Ys=()=>{},V2={allRowsSelected:!1,clearRows:Ys,deselectRow:Ys,isRowSelected:()=>!1,selectRow:Ys,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:Ys,toggleRow:Ys,selectionMode:"multiselect"};function sH(t){return e=>cH(e,t)}function cH(t,e){const{items:r,getRowId:o}=t,{selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}=e,[c,l]=m3({selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}),u=w.useMemo(()=>{const b=new Set;for(let S=0;S{if(n==="single"){const k=Array.from(c)[0];return u.has(k)}if(c.size{c.has(k)||(b=!1)}),b},[u,c,n]),f=w.useMemo(()=>{if(c.size<=0)return!1;let b=!1;return u.forEach(k=>{c.has(k)&&(b=!0)}),b},[u,c]),h=ee(b=>{l.toggleAllItems(b,r.map((k,S)=>{var C;return(C=o?.(k))!==null&&C!==void 0?C:S}))}),p=ee((b,k)=>l.toggleItem(b,k)),g=ee((b,k)=>l.deselectItem(b,k)),y=ee((b,k)=>l.selectItem(b,k)),v=b=>l.isSelected(b),m=ee(b=>l.clearItems(b));return{...t,selection:{selectionMode:n,someRowsSelected:f,allRowsSelected:d,selectedRows:c,toggleRow:p,toggleAllRows:h,clearRows:m,deselectRow:g,selectRow:y,isRowSelected:v}}}const Tk=()=>{},G2={getSortDirection:()=>"ascending",setColumnSort:Tk,sort:t=>[...t],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Tk};function lH(t){return e=>uH(e,t)}function uH(t,e){const{columns:r}=t,{sortState:o,defaultSortState:n,onSortChange:i}=e,[a,s]=mr({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:n,state:o}),{sortColumn:c,sortDirection:l}=a;return{...t,sort:{sort:p=>p.slice().sort((g,y)=>{const v=r.find(b=>b.columnId===c);if(!v?.compare)return 0;const m=l==="ascending"?1:-1;return v.compare(g.item,y.item)*m}),sortColumn:c,sortDirection:l,setColumnSort:(p,g,y)=>{const v={sortColumn:g,sortDirection:y};i?.(p,v),s(v)},toggleColumnSort:(p,g)=>{s(y=>{const v={...y,sortColumn:g};return y.sortColumn===g?v.sortDirection=y.sortDirection==="ascending"?"descending":"ascending":v.sortDirection="ascending",i?.(p,v),v})},getSortDirection:p=>c===p?l:void 0}}}const dH=(t,e)=>{const r=ee(o=>{var n;(n=t.onClick)===null||n===void 0||n.call(t,o),o.stopPropagation()});return{components:{root:"div"},root:ae(we("div",{ref:e,...t,onClick:r}),{elementType:"div"})}},fH=t=>q(t.root,{}),hH={root:"fui-TableResizeHandle"},pH=H({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",B6of3ja:"f1hu3pq6",t21cq0:["fn2i5td","f1eybr6b"],jrapky:"f19f4twv",Frg6f3:["f1eybr6b","fn2i5td"],Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bs6t6z0:"ftgrb5f",Fdvyjd:"f2df6js",Biobvvw:"fshsryb",Hdbjpj:"f11ef69",jc51t6:["f12lb1dx","f13tbxeo"],u6d25:"fu4ulse",Bj55yzk:"fw2wsqs",Bkbwdz4:"f1swzn7y"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",".f1hu3pq6{margin-top:0;}",".fn2i5td{margin-right:-8px;}",".f1eybr6b{margin-left:-8px;}",".f19f4twv{margin-bottom:0;}",".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.ftgrb5f:after{content:" ";}',".f2df6js:after{display:block;}",".fshsryb:after{width:1px;}",".f11ef69:after{position:absolute;}",".f12lb1dx:after{left:50%;}",".f13tbxeo:after{right:50%;}",".fu4ulse:after{top:0;}",".fw2wsqs:after{bottom:0;}",".f1swzn7y:after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),gH=t=>{const e=pH();return t.root.className=j(hH.root,e.root,t.root.className),t},X2=w.forwardRef((t,e)=>{const r=dH(t,e);return gH(r),ge("useTableResizeHandleStyles_unstable")(r),fH(r)});X2.displayName="TableResizeHandle";function mH(){const[t,e]=w.useState(0),r=w.useRef(void 0),{targetDocument:o}=je(),n=w.useCallback(()=>{var s;const c=(s=r.current)===null||s===void 0?void 0:s.getBoundingClientRect().width;e(c||0)},[]),[i]=w.useState(()=>vH(o,n)),a=w.useCallback(s=>{!o||!i||(r.current&&i.unobserve(r.current),r.current=void 0,s?.parentElement&&(r.current=s.parentElement,i.observe(r.current),n()))},[o,i,n]);return w.useEffect(()=>()=>i?.disconnect(),[i]),{width:t,measureElementRef:a}}function vH(t,e){var r;return!(t==null||(r=t.defaultView)===null||r===void 0)&&r.ResizeObserver?new t.defaultView.ResizeObserver(e):null}function bH(t){const e=w.useRef(0),r=w.useRef(0),o=w.useRef(void 0),{targetDocument:n}=je(),i=n?.defaultView,a=w.useCallback(u=>{const{clientX:d}=c1(u),f=d-e.current;r.current+=f,o.current&&t.setColumnWidth(u,{columnId:o.current,width:r.current}),e.current=d},[t]),s=w.useCallback(u=>{typeof i?.requestAnimationFrame=="function"?requestAnimationFrame(()=>a(u)):a(u)},[i?.requestAnimationFrame,a]),c=w.useCallback(u=>{xg(u)&&(n?.removeEventListener("mouseup",c),n?.removeEventListener("mousemove",s)),Tg(u)&&(n?.removeEventListener("touchend",c),n?.removeEventListener("touchmove",s))},[s,n]),l=u=>d=>{if(r.current=t.getColumnWidth(u),e.current=c1(d).clientX,o.current=u,xg(d)){if(d.target!==d.currentTarget||d.button!==0)return;n?.addEventListener("mouseup",c),n?.addEventListener("mousemove",s)}Tg(d)&&(n?.addEventListener("touchend",c),n?.addEventListener("touchmove",s))};return{getOnMouseDown:u=>l(u)}}const yH=150,wH=100;function Pm(t,e=[],r={}){let o=!1;const n=new Map(e.map(a=>[a.columnId,a])),i=t.map(a=>{const s=n.get(a.columnId);if(s){var c;const{idealWidth:p=s.idealWidth,minWidth:g=s.minWidth,padding:y=s.padding}=(c=r[a.columnId])!==null&&c!==void 0?c:{};return p!==s.idealWidth||g!==s.minWidth||y!==s.padding?(o=!0,{...s,idealWidth:p,width:p,minWidth:g,padding:y}):s}var l;const{defaultWidth:u,idealWidth:d=yH,minWidth:f=wH,padding:h}=(l=r[a.columnId])!==null&&l!==void 0?l:{};return o=!0,{columnId:a.columnId,width:Math.max(u??d,f),minWidth:f,idealWidth:Math.max(u??d,f),padding:h??16}});if(i.length!==e.length||o){const a=i.find(s=>s.width>s.idealWidth);a&&(a.width=a.idealWidth),o=!0}return o?i:e}function pl(t,e){return t.find(r=>r.columnId===e)}function Ep(t,e){return t[e]}function kH(t){return t.reduce((e,r)=>e+r.width+r.padding,0)}function _H(t,e){const r=pl(t,e);var o;return(o=r?.width)!==null&&o!==void 0?o:0}function Rc(t,e,r,o){const n=pl(t,e);if(!n||n?.[r]===o)return t;const i={...n,[r]:o};return t.reduce((s,c)=>c.columnId===i.columnId?[...s,i]:[...s,c],[])}function Au(t,e){let r=t;const o=kH(r);if(o0;){const a=Ep(r,i),s=Math.min(a.idealWidth-a.width,n);if(r=Rc(r,a.columnId,"width",a.width+s),n-=s,i===r.length-1&&n!==0){const c=Ep(r,i);r=Rc(r,c.columnId,"width",c.width+n)}i++}}else if(o>=e){let n=o-e,i=r.length-1;for(;i>=0&&n>0;){const a=Ep(r,i);if(a.width>a.minWidth){const s=Math.min(a.width-a.minWidth,n);n-=s,r=Rc(r,a.columnId,"width",a.width-s)}i--}}return r}const SH=()=>(t,e)=>{switch(e.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:e.containerWidth,columnWidthState:Au(t.columnWidthState,e.containerWidth)};case"COLUMNS_UPDATED":const r=Pm(e.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:e.columns,columnWidthState:Au(r,t.containerWidth)};case"COLUMN_SIZING_OPTIONS_UPDATED":const o=Pm(t.columns,t.columnWidthState,e.columnSizingOptions);return{...t,columnSizingOptions:e.columnSizingOptions,columnWidthState:Au(o,t.containerWidth)};case"SET_COLUMN_WIDTH":const{columnId:n,width:i}=e,{containerWidth:a}=t,s=pl(t.columnWidthState,n);let c=[...t.columnWidthState];return s?(c=Rc(c,n,"width",i),c=Rc(c,n,"idealWidth",i),c=Au(c,a),{...t,columnWidthState:c}):t}};function CH(t,e,r={}){const{onColumnResize:o,columnSizingOptions:n}=r,i=w.useMemo(()=>SH(),[]),[a,s]=w.useReducer(i,{columns:t,containerWidth:0,columnWidthState:Pm(t,void 0,n),columnSizingOptions:n});er(()=>{s({type:"CONTAINER_WIDTH_UPDATED",containerWidth:e})},[e]),er(()=>{s({type:"COLUMNS_UPDATED",columns:t})},[t]),er(()=>{s({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:n})},[n]);const c=ee((l,u)=>{let{width:d}=u;const{columnId:f}=u,h=pl(a.columnWidthState,f);h&&(d=Math.max(h.minWidth||0,d),o&&o(l,{columnId:f,width:d}),s({type:"SET_COLUMN_WIDTH",columnId:f,width:d}))});return{getColumnById:l=>pl(a.columnWidthState,l),getColumns:()=>a.columnWidthState,getColumnWidth:l=>_H(a.columnWidthState,l),setColumnWidth:c}}const Ru=20,TH=YO,xk=1/4;function xH(t){const[e,r]=w.useState(),o=w.useRef(),{findPrevFocusable:n}=bn(),i=w.useRef(t);w.useEffect(()=>{i.current=t},[t]);const[a]=w.useState(()=>new Map),s=ee(h=>{if(!e)return;const p=i.current.getColumnWidth(e),g=h.getModifierState(TH),y=()=>{h.preventDefault(),h.stopPropagation()};switch(h.key){case kb:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:p-(g?Ru*xk:Ru)});return;case Yf:y(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:p+(g?Ru*xk:Ru)});return;case Mn:case Ai:case yn:var v,m;y(),(m=a.get(e))===null||m===void 0||(v=m.current)===null||v===void 0||v.blur();break}}),c=w.useCallback(h=>{var p,g;r(h),(p=o.current)===null||p===void 0||p.call(o,h,!0);const y=(g=a.get(h))===null||g===void 0?void 0:g.current;y&&(y.setAttribute("tabindex","-1"),y.tabIndex=-1,y.focus())},[a]),l=w.useCallback(()=>{var h,p;if(!e)return;(h=o.current)===null||h===void 0||h.call(o,e,!1);const g=(p=a.get(e))===null||p===void 0?void 0:p.current;if(g){var y;(y=n(g))===null||y===void 0||y.focus(),g.removeAttribute("tabindex")}r(void 0)},[e,n,a]),u=(h,p)=>{o.current=p,e?h&&e!==h?(c(h),r(h)):l():c(h)},d=w.useCallback(h=>{const p=a.get(h)||w.createRef();return a.set(h,p),p},[a]),f=Kc({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:e,getKeyboardResizingProps:(h,p)=>({onKeyDown:s,onBlur:l,ref:d(h),role:"separator","aria-label":"Resize column","aria-valuetext":`${p} pixels`,"aria-hidden":h!==e,tabIndex:h===e?0:void 0,...f})}}const Y2={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function EH(t){return e=>IH(e,t)}function Ek(t){const e=t.width;return{width:e,minWidth:e,maxWidth:e}}function IH(t,e){const{columns:r}=t,{width:o,measureElementRef:n}=mH(),i=CH(r,o+(e?.containerWidthOffset||0),e),a=bH(i),{toggleInteractiveMode:s,getKeyboardResizingProps:c}=xH(i),l=w.useCallback((u,d)=>f=>{f.preventDefault(),f.nativeEvent.stopPropagation(),s(u,d)},[s]);return{...t,tableRef:n,columnSizing_unstable:{getOnMouseDown:a.getOnMouseDown,setColumnWidth:(u,d)=>i.setColumnWidth(void 0,{columnId:u,width:d}),getColumnWidths:i.getColumns,getTableProps:(u={})=>({...u,style:{minWidth:"fit-content",...u.style||{}}}),getTableHeaderCellProps:u=>{var d;const f=i.getColumnById(u),p=((d=r[r.length-1])===null||d===void 0?void 0:d.columnId)===u?null:w.createElement(X2,{onMouseDown:a.getOnMouseDown(u),onTouchStart:a.getOnMouseDown(u),...c(u,f?.width||0)});return f?{style:Ek(f),aside:p}:{}},getTableCellProps:u=>{const d=i.getColumnById(u);return d?{style:Ek(d)}:{}},enableKeyboardMode:l}}}const AH=t=>t,RH={selection:V2,sort:G2,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:Y2,tableRef:w.createRef()};function PH(t,e=[]){const{items:r,getRowId:o,columns:n}=t,a={getRowId:o,items:r,columns:n,getRows:(s=AH)=>r.map((c,l)=>{var u;return s({item:c,rowId:(u=o?.(c))!==null&&u!==void 0?u:l})}),selection:V2,sort:G2,columnSizing_unstable:Y2,tableRef:w.createRef()};return e.reduce((s,c)=>c(s),a)}const BH=()=>0,NH=()=>null,zH=()=>null;function ld(t){const{columnId:e,renderCell:r=NH,renderHeaderCell:o=zH,compare:n=BH}=t;return{columnId:e,renderCell:r,renderHeaderCell:o,compare:n}}function MH(){const t=Wc({axis:"horizontal"}),e=Wc({axis:"grid"}),r=Kf({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:o}=bn(),{targetDocument:n}=je(),i=N4(t,r);return{onTableKeyDown:w.useCallback(s=>{if(!n)return;const c=n.activeElement;if(!c||!s.currentTarget.contains(c))return;const l=c.getAttribute("role");if(s.key===Yf&&l==="row"&&at(c)){var u;(u=o(c))===null||u===void 0||u.focus()}if(l==="row")return;const d=(()=>{let f=at(c)?c:null;for(;f;){const h=f.getAttribute("role");if(h==="cell"||h==="gridcell")return!0;f=f.parentElement}return!1})();(s.key===Xf||s.key===_b)&&d&&(c.dispatchEvent(new KeyboardEvent("keydown",{key:yn,keyCode:XO})),c.dispatchEvent(new KeyboardEvent("keydown",{key:s.key,keyCode:s.keyCode})))},[n,o]),tableTabsterAttribute:e,tableRowTabsterAttribute:i}}const Q2=w.createContext(void 0),OH={size:"medium",noNativeElements:!1,sortable:!1},DH=Q2.Provider,li=()=>{var t;return(t=w.useContext(Q2))!==null&&t!==void 0?t:OH},Z2=(t,e)=>{const{noNativeElements:r,size:o}=li();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"td";return{components:{root:i},root:ae(we(i,{ref:e,role:i==="div"?"cell":void 0,...t}),{elementType:i}),noNativeElements:r,size:o}},jH=t=>q(t.root,{}),FH="fui-TableCell",LH={root:FH},qH=H({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"},medium:{Bqenvij:"f1ft4266"},small:{Bqenvij:"fbsu25e"},"extra-small":{Bqenvij:"frvgh55"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}",".f1ft4266{height:44px;}",".fbsu25e{height:34px;}",".frvgh55{height:24px;}"]}),HH=H({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),UH=H({root:{qhf8xq:"f10pi13n",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]}},{d:[".f10pi13n{position:relative;}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]}),$H=t=>{const e=UH(),r={table:qH(),flex:HH()};return t.root.className=j(LH.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.noNativeElements?r.flex[t.size]:r.table[t.size],t.root.className),t},J2=w.createContext(void 0),KH="",WH=J2.Provider,zy=()=>w.useContext(J2)===KH,VH=(t,e)=>{const{noNativeElements:r,size:o}=li();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"tr",a=yb(),s=Dl(),c=zy();var l;return{components:{root:i},root:ae(we(i,{ref:bt(e,a,s),role:i==="div"?"row":void 0,...t}),{elementType:i}),size:o,noNativeElements:r,appearance:(l=t.appearance)!==null&&l!==void 0?l:"none",isHeaderRow:c}},GH=44,Ip={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},XH=H({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),YH=H({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),QH=H({root:{fsow6f:"f17mccla",Huce71:"fz5stix",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{Bcdw1i0:"fd7fpy0"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fk73vx1{opacity:0;}",".f1y7ij6c[data-fui-focus-within]:focus-within{opacity:1;}",".fd7fpy0{visibility:hidden;}"]}),ZH=t=>{const e=QH(),r={table:XH(),flex:YH()};return t.root.className=j(Ip.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.subtle&&t.checked===!1&&e.subtle,t.hidden&&e.hidden,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=j(Ip.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=j(Ip.radioIndicator,e.radioIndicator,t.radioIndicator.className)),t},JH="fui-TableRow",eU={root:JH},tU=H({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),rU=H({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),oU=H({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},rootInteractive:{ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww"},medium:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},small:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.fqlf3fd{border-top-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dpb3h{border-right-width:2px;}.fw2muls{border-left-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yat0gj{border-bottom-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7nae3y{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa97sf3{border-left-style:solid;}.fkbere7{border-right-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fmtyzcc{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb6zhgp{border-top-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyowp6c{border-right-color:transparent;}.fz08sq8{border-left-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dii88{border-bottom-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1afxoft{border-bottom-right-radius:var(--borderRadiusMedium);}.flqq2yx{border-bottom-left-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1831rx6{border-top-left-radius:var(--borderRadiusMedium);}.f1b5xrmd{border-top-right-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),nU=t=>{const e=oU(),r={table:tU(),flex:rU()};return t.root.className=j(eU.root,e.root,!t.isHeaderRow&&e.rootInteractive,e[t.size],t.noNativeElements?r.flex.root:r.table.root,e[t.appearance],t.root.className),t},iU=(t,e)=>{const{noNativeElements:r}=li();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"tbody";return{components:{root:n},root:ae(we(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},aU=H({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),sU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),cU="fui-TableBody",lU=t=>{const e={table:aU(),flex:sU()};return t.root.className=j(cU,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},uU=(t,e)=>{var r;const o=((r=t.as)!==null&&r!==void 0?r:t.noNativeElements)?"div":"table";var n,i,a;return{components:{root:o},root:ae(we(o,{ref:e,role:o==="div"?"table":void 0,...t}),{elementType:o}),size:(n=t.size)!==null&&n!==void 0?n:"medium",noNativeElements:(i=t.noNativeElements)!==null&&i!==void 0?i:!1,sortable:(a=t.sortable)!==null&&a!==void 0?a:!1}},dU=(t,e)=>q(DH,{value:e.table,children:q(t.root,{})}),fU="fui-Table",hU=H({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),pU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),gU=H({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),mU=t=>{const e=gU(),r={table:hU(),flex:pU()};return t.root.className=j(fU,e.root,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t};function vU(t){const{size:e,noNativeElements:r,sortable:o}=t;return{table:w.useMemo(()=>({noNativeElements:r,size:e,sortable:o}),[r,e,o])}}const bU=(t,e)=>{const{noNativeElements:r}=li();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"thead";return{components:{root:n},root:ae(we(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},yU=t=>q(WH,{value:"",children:q(t.root,{})}),wU="fui-TableHeader",kU=H({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),_U=H({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),SU=t=>{const e={table:_U(),flex:kU()};return t.root.className=j(wU,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},CU={ascending:w.createElement(A3,{fontSize:12}),descending:w.createElement(I3,{fontSize:12})},TU=(t,e)=>{const{noNativeElements:r,sortable:o}=li(),{sortable:n=o}=t;var i;const a=((i=t.as)!==null&&i!==void 0?i:r)?"div":"th",s=ae(t.button,{elementType:"div",defaultProps:{as:"div",...!n&&{role:"presentation",tabIndex:void 0}}});var c;return{components:{root:a,button:"div",sortIcon:"span",aside:"span"},root:ae(we(a,{ref:bt(e,Dl()),role:a==="div"?"columnheader":void 0,"aria-sort":n?(c=t.sortDirection)!==null&&c!==void 0?c:"none":void 0,...t}),{elementType:a}),aside:ve(t.aside,{elementType:"span"}),sortIcon:ve(t.sortIcon,{renderByDefault:!!t.sortDirection,defaultProps:{children:t.sortDirection?CU[t.sortDirection]:void 0},elementType:"span"}),button:Ui(s.as,s),sortable:n,noNativeElements:r}},xU=t=>Ee(t.root,{children:[Ee(t.button,{children:[t.root.children,t.sortIcon&&q(t.sortIcon,{})]}),t.aside&&q(t.aside,{})]}),Pu={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},EU=H({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),IU=H({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f10tiqix{min-width:0px;}"]}),AU=H({root:{Bhrd7zp:"figsok6",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],B3nxjsc:"fhix6mv",Bmvh20x:"fha7anx",robkg1:"f1fmzww4",pehzd3:["fs9qmxf","f187m4uq"],B8osjzx:["f187m4uq","fs9qmxf"],u7xebq:["f145mzao","f1uha7eq"],Blsv9te:["f1uha7eq","f145mzao"],qhf8xq:"f10pi13n"},rootInteractive:{Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:"f1ufnopg",Belr9w4:"f14sijuj",sshi5w:"f1nxs5xn",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fhix6mv[data-fui-focus-within]:focus-within{outline-width:2px;}",".fha7anx[data-fui-focus-within]:focus-within{outline-style:solid;}",".f1fmzww4[data-fui-focus-within]:focus-within{outline-color:var(--colorStrokeFocus2);}",".fs9qmxf[data-fui-focus-within]:focus-within{border-bottom-right-radius:var(--borderRadiusMedium);}",".f187m4uq[data-fui-focus-within]:focus-within{border-bottom-left-radius:var(--borderRadiusMedium);}",".f145mzao[data-fui-focus-within]:focus-within{border-top-right-radius:var(--borderRadiusMedium);}",".f1uha7eq[data-fui-focus-within]:focus-within{border-top-left-radius:var(--borderRadiusMedium);}",".f10pi13n{position:relative;}",".fq6nmtn{resize:horizontal;}",".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f14sijuj{row-gap:var(--spacingHorizontalXS);}",".f1nxs5xn{min-height:32px;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),RU=t=>{const e=AU(),r={table:EU(),flex:IU()};return t.root.className=j(Pu.root,e.root,t.sortable&&e.rootInteractive,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t.button.className=j(Pu.button,e.resetButton,e.button,t.sortable&&e.sortable,t.button.className),t.sortIcon&&(t.sortIcon.className=j(Pu.sortIcon,e.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=j(Pu.aside,e.resizeHandle,t.aside.className)),t},eI=w.createContext(void 0),PU="",tI=()=>{var t;return(t=w.useContext(eI))!==null&&t!==void 0?t:PU},BU=eI.Provider,rI=w.createContext(void 0),NU="",oI=()=>{var t;return(t=w.useContext(rI))!==null&&t!==void 0?t:NU},zU=rI.Provider,MU=(t,e)=>{const r=Z2(t,e),{noNativeElements:o}=li(),{type:n="checkbox",checked:i=!1,subtle:a=!1,hidden:s=!1}=t;return{...r,components:{...r.components,checkboxIndicator:xm,radioIndicator:Im},checkboxIndicator:ve(t.checkboxIndicator,{renderByDefault:n==="checkbox",defaultProps:{checked:t.checked},elementType:xm}),radioIndicator:ve(t.radioIndicator,{renderByDefault:n==="radio",defaultProps:{checked:!!i,input:{name:gr("table-selection-radio")}},elementType:Im}),type:n,checked:i,noNativeElements:o,subtle:a,hidden:s}},OU=t=>Ee(t.root,{children:[t.type==="checkbox"&&t.checkboxIndicator&&q(t.checkboxIndicator,{}),t.type==="radio"&&t.radioIndicator&&q(t.radioIndicator,{})]}),nI=As(void 0),DU={...RH,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},jU=nI.Provider,st=t=>Rs(nI,(e=DU)=>t(e)),FU=(t,e)=>{const{focusMode:r="cell"}=t,o=tI(),n=st(c=>(c.focusMode==="cell"||c.focusMode==="composite")&&r!=="none"),i=st(c=>c.resizableColumns),a=st(c=>c.columnSizing_unstable),s=Kf({tabBehavior:"limited-trap-focus"});return Z2({as:"div",role:"gridcell",...r==="group"&&s,tabIndex:n?0:void 0,...i?a.getTableCellProps(o):{},...t},e)},LU=t=>jH(t),qU={root:"fui-DataGridCell"},HU=t=>($H(t),t.root.className=j(qU.root,t.root.className),t),Pc=w.forwardRef((t,e)=>{const r=FU(t,e);return HU(r),ge("useDataGridCellStyles_unstable")(r),LU(r)});Pc.displayName="DataGridCell";const UU=(t,e)=>{const r=zy(),o=oI(),n=st(l=>l.subtleSelection),i=st(l=>r&&l.selection.selectionMode==="multiselect"?l.selection.allRowsSelected?!0:l.selection.someRowsSelected?"mixed":!1:l.selection.isRowSelected(o)),a=st(l=>l.selection.toggleAllRows),s=st(l=>l.selection.selectionMode==="multiselect"?"checkbox":"radio"),c=ee(l=>{var u;r&&a(l),(u=t.onClick)===null||u===void 0||u.call(t,l)});return MU({as:"div",role:"gridcell",checked:i,type:s,hidden:r&&s==="radio","aria-checked":r?i:void 0,"aria-selected":r||i==="mixed"?void 0:i,subtle:n,...t,onClick:c},e)},$U=t=>OU(t),Ap={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},KU=t=>(ZH(t),t.root.className=j(Ap.root,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=j(Ap.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=j(Ap.radioIndicator,t.radioIndicator.className)),t),Bm=w.forwardRef((t,e)=>{const r=UU(t,e);return KU(r),ge("useDataGridSelectionCellStyles_unstable")(r),$U(r)});Bm.displayName="DataGridSelectionCell";const WU=(t,e)=>{const r=oI(),o=zy(),n=st(y=>y.columns),i=st(y=>y.selectableRows),a=st(y=>y.selection.isRowSelected(r)),s=st(y=>y.focusMode),c=st(y=>y.compositeRowTabsterAttribute),l=s==="row_unstable"||s==="composite",u=st(y=>!o&&i&&y.selection.isRowSelected(r)?y.selectionAppearance:"none"),d=st(y=>y.selection.toggleRow),f=st(y=>y),h=ee(y=>{var v;i&&!o&&d(y,r),(v=t.onClick)===null||v===void 0||v.call(t,y)}),p=ee(y=>{var v;i&&!o&&y.key===Mn&&!d3(y.target)&&(y.preventDefault(),d(y,r)),(v=t.onKeyDown)===null||v===void 0||v.call(t,y)}),g=VH({appearance:u,"aria-selected":i?a:void 0,tabIndex:l&&!o?0:void 0,...s==="composite"&&!o&&c,...t,onClick:h,onKeyDown:p,children:null,as:"div"},e);return{...g,components:{...g.components,selectionCell:Bm},selectionCell:ve(t.selectionCell,{renderByDefault:i,elementType:Bm}),renderCell:t.children,columnDefs:n,dataGridContextValue:f}},VU=t=>Ee(t.root,{children:[t.selectionCell&&q(t.selectionCell,{}),t.columnDefs.map(e=>q(BU,{value:e.columnId,children:t.renderCell(e,t.dataGridContextValue)},e.columnId))]}),Ik={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},GU=t=>(nU(t),t.root.className=j(Ik.root,t.root.className),t.selectionCell&&(t.selectionCell.className=j(Ik.selectionCell,t.selectionCell.className)),t),Nm=w.forwardRef((t,e)=>{const r=WU(t,e);return GU(r),ge("useDataGridRowStyles_unstable")(r),VU(r)});Nm.displayName="DataGridRow";const XU=(t,e)=>{const{sortable:r}=li(),o=st(s=>s.getRows),n=st(s=>s.sort.sort),i=r?n(o()):o();return{...iU({...t,children:null,as:"div"},e),rows:i,renderRow:t.children}},YU=t=>q(t.root,{children:t.rows.map(e=>q(zU,{value:e.rowId,children:t.renderRow(e)},e.rowId))}),QU={root:"fui-DataGridBody"},ZU=t=>(lU(t),t.root.className=j(QU.root,t.root.className),t),iI=w.forwardRef((t,e)=>{const r=XU(t,e);return ZU(r),ge("useDataGridBodyStyles_unstable")(r),YU(r)});iI.displayName="DataGridBody";const JU=(t,e)=>{const{items:r,columns:o,focusMode:n="cell",selectionMode:i,onSortChange:a,onSelectionChange:s,defaultSortState:c,sortState:l,selectedItems:u,defaultSelectedItems:d,subtleSelection:f=!1,selectionAppearance:h="brand",getRowId:p,resizableColumns:g,columnSizingOptions:y,onColumnResize:v,containerWidthOffset:m}=t,b=m??(i?-GH:0),k=Wc({axis:"grid"}),{onTableKeyDown:S,tableTabsterAttribute:C,tableRowTabsterAttribute:_}=MH(),T=PH({items:r,columns:o,getRowId:p},[lH({defaultSortState:c,sortState:l,onSortChange:a}),sH({defaultSelectedItems:d,selectedItems:u,onSelectionChange:s,selectionMode:i??"multiselect"}),EH({onColumnResize:v,columnSizingOptions:y,containerWidthOffset:b})]),A=w.useRef(null),{findFirstFocusable:R,findLastFocusable:V}=bn(),E=ee(D=>{var B;if((B=t.onKeyDown)===null||B===void 0||B.call(t,D),n==="composite"&&S(D),!(!A.current||!D.ctrlKey||D.defaultPrevented)){if(D.key===UT){const I=A.current.querySelector('[role="row"]');if(I){var M;(M=R(I))===null||M===void 0||M.focus()}}if(D.key===HT){const I=A.current.querySelectorAll('[role="row"]');if(I.length){var K;const F=I.item(I.length-1);(K=V(F))===null||K===void 0||K.focus()}}}});return{...uU({role:"grid",as:"div",noNativeElements:!0,...n==="cell"&&k,...n==="composite"&&C,...t,onKeyDown:E,...g?T.columnSizing_unstable.getTableProps(t):{}},bt(e,T.tableRef,A)),focusMode:n,tableState:T,selectableRows:!!i,subtleSelection:f,selectionAppearance:h,resizableColumns:g,compositeRowTabsterAttribute:_}},e$=(t,e)=>w.createElement(jU,{value:e.dataGrid},dU(t,e)),t$={root:"fui-DataGrid"},r$=t=>(mU(t),t.root.className=j(t$.root,t.root.className),t);function o$(t){const e=vU(t),{tableState:r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:c}=t;return{...e,dataGrid:{...r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:c}}}const aI=w.forwardRef((t,e)=>{const r=JU(t,e);return r$(r),ge("useDataGridStyles_unstable")(r),e$(r,o$(r))});aI.displayName="DataGrid";const n$=(t,e)=>bU({...t,as:"div"},e),i$=t=>yU(t),a$={root:"fui-DataGridHeader"},s$=t=>(SU(t),t.root.className=j(a$.root,t.root.className),t),sI=w.forwardRef((t,e)=>{const r=n$(t,e);return s$(r),ge("useDataGridHeaderStyles_unstable")(r),i$(r)});sI.displayName="DataGridHeader";function c$(t){return t.compare.length>0}const l$=(t,e)=>{const r=tI(),{sortable:o}=li(),n=st(u=>u.sort.toggleColumnSort),i=st(u=>{const d=!!u.columns.find(f=>f.columnId===r&&c$(f));return o?d:!1}),a=st(u=>i?u.sort.getSortDirection(r):void 0),s=st(u=>u.resizableColumns),c=st(u=>u.columnSizing_unstable),l=ee(u=>{var d;i&&n(u,r),(d=t.onClick)===null||d===void 0||d.call(t,u)});return TU({sortable:i,sortDirection:a,as:"div",tabIndex:i?void 0:0,...s?c.getTableHeaderCellProps(r):{},...t,onClick:l},e)},u$=t=>xU(t),Bu={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},d$=t=>(RU(t),t.root.className=j(Bu.root,t.root.className),t.button&&(t.button.className=j(Bu.button,t.button.className)),t.sortIcon&&(t.sortIcon.className=j(Bu.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=j(Bu.aside,t.aside.className)),t),cI=w.forwardRef((t,e)=>{const r=l$(t,e);return d$(r),ge("useDataGridHeaderCellStyles_unstable")(r),u$(r)});cI.displayName="DataGridHeaderCell";const jr={show:"fui-toast-show",dismiss:"fui-toast-dismiss",dismissAll:"fui-toast-dismiss-all",update:"fui-toast-update",pause:"fui-toast-pause",play:"fui-toast-play"},Fr={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let f$=0;function h$(t,e={},r){var o;const n={...e,content:t,toastId:(o=e.toastId)!==null&&o!==void 0?o:(f$++).toString()},i=new CustomEvent(jr.show,{bubbles:!1,cancelable:!1,detail:n});r.dispatchEvent(i)}function p$(t,e=void 0,r){const o=new CustomEvent(jr.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function g$(t=void 0,e){const r=new CustomEvent(jr.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:t}});e.dispatchEvent(r)}function m$(t,e){const r=new CustomEvent(jr.update,{bubbles:!1,cancelable:!1,detail:t});e.dispatchEvent(r)}function v$(t,e=void 0,r){const o=new CustomEvent(jr.pause,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function b$(t,e=void 0,r){const o=new CustomEvent(jr.play,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function Ak(t,e){for(const[r,o]of Object.entries(e))o!=null&&(t[r]=o)}const y$={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let w$=0;function k$(t){const{limit:e=Number.POSITIVE_INFINITY}=t,r=new Set,o=new Map,n=nT((u,d)=>{const f=o.get(u),h=o.get(d);return!f||!h?0:f.priority===h.priority?f.order-h.order:f.priority-h.priority});return{buildToast:(u,d)=>{var f;const{toastId:h,content:p,toasterId:g}=u;if(o.has(h))return;const m={...y$,close:()=>{var b;const k=o.get(h);k&&(r.delete(h),d(),(b=k.onStatusChange)===null||b===void 0||b.call(k,null,{status:"dismissed",...k}))},remove:()=>{if(o.get(h)){if(o.delete(h),r.size=e?n.enqueue(h):r.add(h)},dismissAllToasts:()=>{r.clear(),n.clear()},dismissToast:u=>{r.delete(u)},isToastVisible:u=>r.has(u),updateToast:u=>{const{toastId:d}=u,f=o.get(d);f&&(Object.assign(f,u),f.updateId++)},visibleToasts:r,toasts:o}}const ga=(t,e,r)=>{const o={};var n;const i=r?_$(r)?r:(n=r[t])!==null&&n!==void 0?n:{}:{},a=t==="top"||t==="bottom",{horizontal:s=a?0:20,vertical:c=16}=i,l=e==="ltr"?"left":"right",u=e==="ltr"?"right":"left";switch(t){case"top":Object.assign(o,{top:c,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(o,{bottom:c,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(o,{top:c,[l]:s});break;case"top-end":Object.assign(o,{top:c,[u]:s});break;case"bottom-start":Object.assign(o,{bottom:c,[l]:s});break;case"bottom-end":Object.assign(o,{bottom:c,[u]:s});break}return o};function _$(t){return"horizontal"in t||"vertical"in t}function S$(t={}){const e=Vz(),{toasterId:r,shortcuts:o}=t,[n]=w.useState(()=>k$(t)),{targetDocument:i}=je(),a=w.useRef(null),s=ee(g=>g===r),c=ee(g=>{if(o?.focus)return o.focus(g)}),l=w.useCallback(()=>{n.visibleToasts.forEach(g=>{var y;const v=n.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.pause()})},[n]),u=w.useCallback(()=>{n.visibleToasts.forEach(g=>{var y;const v=n.toasts.get(g);v==null||(y=v.imperativeRef.current)===null||y===void 0||y.play()})},[n]),d=w.useCallback(()=>Array.from(n.visibleToasts).reduce((g,y)=>{const v=n.toasts.get(y);return v&&(!g||g.order{const g=d();if(g?.imperativeRef.current)g.imperativeRef.current.focus();else{var y;(y=a.current)===null||y===void 0||y.focus(),a.current=null}},[d]),h=w.useCallback(()=>{n.visibleToasts.forEach(g=>{const y=n.toasts.get(g);y?.close()}),f()},[n,f]);w.useEffect(()=>{if(!i)return;const g=(U,D)=>{const B=M=>{s(M.detail.toasterId)&&(D(M),e())};return i.addEventListener(U,B),()=>i.removeEventListener(U,B)},y=U=>{n.buildToast(U.detail,e)},v=U=>{n.dismissToast(U.detail.toastId)},m=U=>{n.updateToast(U.detail)},b=U=>{n.dismissAllToasts()},k=U=>{const D=n.toasts.get(U.detail.toastId);if(D){var B;(B=D.imperativeRef.current)===null||B===void 0||B.pause()}},S=U=>{const D=n.toasts.get(U.detail.toastId);if(D){var B;(B=D.imperativeRef.current)===null||B===void 0||B.play()}},C=g(jr.show,y),_=g(jr.update,m),T=g(jr.dismiss,v),A=g(jr.dismissAll,b),R=g(jr.pause,k),V=g(jr.play,S),E=U=>{if(c(U)){l();const B=d();if(B){var D;a.current=at(i.activeElement)?i.activeElement:null,(D=B.imperativeRef.current)===null||D===void 0||D.focus()}}};return i.addEventListener("keydown",E),()=>{C(),A(),_(),T(),R(),V(),i.removeEventListener("keydown",E)}},[n,e,i,s,l,d,c]);const p=(()=>{if(!n)return new Map;const g=new Map;return Array.from(n.toasts.values()).forEach(v=>{const{position:m}=v;g.has(m)||g.set(m,[]),m.startsWith("bottom")?g.get(m).push(v):g.get(m).unshift(v)}),g})();return{isToastVisible:n.isToastVisible,toastsToRender:p,pauseAllToasts:l,playAllToasts:u,tryRestoreFocus:f,closeAllToasts:h}}const ma=()=>{};function C$(t){const{targetDocument:e}=je();return w.useMemo(()=>e?{dispatchToast:(r,o)=>{h$(r,{...o,toasterId:t,data:{root:o?.root}},e)},dismissToast:r=>{p$(r,t,e)},dismissAllToasts:()=>{g$(t,e)},updateToast:r=>{m$({...r,data:{root:r.root},toasterId:t},e)},pauseToast:r=>{v$(r,t,e)},playToast:r=>{b$(r,t,e)}}:{dispatchToast:ma,dismissToast:ma,dismissAllToasts:ma,updateToast:ma,pauseToast:ma,playToast:ma},[e,t])}const T$={close:()=>null,intent:void 0,bodyId:"",titleId:""},lI=w.createContext(void 0),x$=lI.Provider,uI=()=>{var t;return(t=w.useContext(lI))!==null&&t!==void 0?t:T$},E$=de("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),zm=w.forwardRef((t,e)=>{const r=E$(),{running:o,timeout:n,onTimeout:i}=t,a={animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};return n<0?null:w.createElement("span",{onAnimationEnd:i,"data-timer-status":a.animationPlayState,ref:e,style:a,className:r})});zm.displayName="Timer";const I$={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},A$=(t,e)=>{const{visible:r,children:o,close:n,remove:i,updateId:a,announce:s,data:c,timeout:l,politeness:u,intent:d="info",pauseOnHover:f,pauseOnWindowBlur:h,imperativeRef:p,tryRestoreFocus:g,...y}=t,v=gr("toast-title"),m=gr("toast-body"),b=w.useRef(null),{targetDocument:k}=je(),[S,C]=w.useState(!1),_=w.useRef(!1),T=w.useRef(!1),A=Kf({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),R=ee(()=>{var O;const G=k?.activeElement;G&&(!((O=b.current)===null||O===void 0)&&O.contains(G))&&(T.current=!0),n()}),V=ee(O=>{var G;return(G=t.onStatusChange)===null||G===void 0?void 0:G.call(t,null,{status:O,...t})}),E=ee(()=>C(!1)),U=ee(()=>{var O;if(_.current)return;var G;const Q=!!(!((O=b.current)===null||O===void 0)&&O.contains((G=k?.activeElement)!==null&&G!==void 0?G:null));if(l<0){C(!0);return}Q||C(!0)});w.useImperativeHandle(p,()=>({focus:()=>{b.current&&b.current.focus()},play:()=>{_.current=!1,U()},pause:()=>{_.current=!0,E()}})),w.useEffect(()=>()=>V("unmounted"),[V]),w.useEffect(()=>{if(k&&h){var O,G;return(O=k.defaultView)===null||O===void 0||O.addEventListener("focus",U),(G=k.defaultView)===null||G===void 0||G.addEventListener("blur",E),()=>{var Q,fe;(Q=k.defaultView)===null||Q===void 0||Q.removeEventListener("focus",U),(fe=k.defaultView)===null||fe===void 0||fe.removeEventListener("blur",E)}}},[k,E,U,h]);const D=()=>{if(!b.current)return;const O=b.current;O.style.setProperty("--fui-toast-height",`${O.scrollHeight}px`)},B=c.root,M=w.useCallback(O=>{O&&b.current&&b.current.addEventListener("animationend",()=>{U(),V("visible")},{once:!0})},[U,V]),K=ee(O=>{var G;E(),B==null||(G=B.onMouseEnter)===null||G===void 0||G.call(B,O)}),I=ee(O=>{var G;U(),B==null||(G=B.onMouseEnter)===null||G===void 0||G.call(B,O)}),{findFirstFocusable:F,findLastFocusable:$}=bn(),N=ee(O=>{var G;if(O.key===JO&&(O.preventDefault(),R()),O.key===qT&&O.currentTarget===O.target)if(O.preventDefault(),O.shiftKey){var Q;(Q=$(O.currentTarget))===null||Q===void 0||Q.focus()}else{var fe;(fe=F(O.currentTarget))===null||fe===void 0||fe.focus()}B==null||(G=B.onKeyDown)===null||G===void 0||G.call(B,O)});return w.useEffect(()=>{var O;if(!r)return;const G=u??I$[d];var Q;s((Q=(O=b.current)===null||O===void 0?void 0:O.textContent)!==null&&Q!==void 0?Q:"",{politeness:G})},[s,u,b,r,a,d]),w.useEffect(()=>()=>{T.current&&(T.current=!1,g())},[g]),{components:{timer:zm,root:"div"},timer:ae({key:a,onTimeout:R,running:S,timeout:l??-1},{elementType:zm}),root:ae(we("div",{ref:bt(e,b,M),children:o,tabIndex:0,role:"listitem","aria-labelledby":v,"aria-describedby":m,...y,...B,...A,onMouseEnter:K,onMouseLeave:I,onKeyDown:N}),{elementType:"div"}),timerTimeout:l,transitionTimeout:500,running:S,visible:r,remove:i,close:R,onTransitionEntering:D,updateId:a,nodeRef:b,intent:d,titleId:v,bodyId:m}},R$=(t,e)=>{const{onTransitionEntering:r,visible:o,transitionTimeout:n,remove:i,nodeRef:a}=t;return q(L2,{in:o,appear:!0,unmountOnExit:!0,timeout:n,onExited:i,onEntering:r,nodeRef:a,children:Ee(x$,{value:e.toast,children:[q(t.root,{}),q(t.timer,{})]})})},dI={root:"fui-ToastContainer",timer:"fui-ToastContainer__timer"},P$=de("r1qaza64","r1e6dlul",[".r1qaza64{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1qaza64[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",".r1e6dlul{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1e6dlul[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"]),B$=H({enter:{vin17d:"fayl5bc",m1gqa9:"f17oyct0",Bv12yb3:"fvv8lvk"},exit:{vin17d:"f1tk3cza",m1gqa9:"f1nx6yy9",Bv12yb3:"f9wuypy"}},{d:[".fayl5bc{animation-duration:200ms,400ms;}",".f17oyct0{animation-delay:0ms,200ms;}",".fvv8lvk{animation-name:f1rp83na,f5j8bii;}",".f1tk3cza{animation-duration:400ms,200ms;}",".f1nx6yy9{animation-delay:0ms,400ms;}",".f9wuypy{animation-name:fk0lfw7,f1n32sdh;}"],k:["@keyframes f1rp83na{from{max-height:0;opacity:0;margin-top:0;}to{margin-top:16px;opacity:0;max-height:var(--fui-toast-height);}}","@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fk0lfw7{from{opacity:1;}to{opacity:0;}}","@keyframes f1n32sdh{from{opacity:0;}to{opacity:0;margin-top:0;max-height:0;}}"]}),N$=t=>{const e=P$(),r=B$();return t.root.className=j(dI.root,e,t.visible?r.enter:r.exit,t.root.className),t};function z$(t){const{close:e,intent:r,titleId:o,bodyId:n}=t;return{toast:w.useMemo(()=>({close:e,intent:r,titleId:o,bodyId:n}),[e,r,o,n])}}const fI=w.forwardRef((t,e)=>{const r=A$(t,e);return N$(r),R$(r,z$(r))});fI.displayName="ToastContainer";const Rk=()=>{};function M$(t,e){const{targetDocument:r}=je(),o=w.useRef(Rk);return w.useCallback(n=>{if(!n||!r){o.current(),o.current=Rk;return}const i=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(l){return at(l)&&l.classList.contains(dI.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),a=l=>{const{target:u,key:d}=l;if(at(u)){if(d===Xf){i.currentNode=u;let f=i.nextNode();f||(i.currentNode=n,f=i.nextNode()),at(f)&&f.focus()}if(d===_b){i.currentNode=u;let f=i.previousNode();f&&f.contains(u)&&(f=i.previousNode()),f||(i.currentNode=n,f=i.lastChild()),at(f)&&f.focus()}}},s=l=>{at(l.currentTarget)&&!l.currentTarget.contains(at(l.relatedTarget)?l.relatedTarget:null)&&t()},c=l=>{at(l.currentTarget)&&!l.currentTarget.contains(at(l.relatedTarget)?l.relatedTarget:null)&&e()};n.addEventListener("keydown",a),n.addEventListener("focusin",s),n.addEventListener("focusout",c),o.current=()=>{n.removeEventListener("keydown",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",c)}},[r,t,e])}function O$(t){const e=w.useRef(!0),r=w.useRef(()=>{}),o=w.useCallback((i,a)=>{e.current&&t(i,a)},[t]),n=w.useCallback(i=>{if(!i){r.current();return}const a=c=>{at(c.currentTarget)&&c.currentTarget.contains(at(c.relatedTarget)?c.relatedTarget:null)||(e.current=!1)},s=c=>{at(c.currentTarget)&&c.currentTarget.contains(at(c.relatedTarget)?c.relatedTarget:null)||(e.current=!0)};i.addEventListener("focusin",a),i.addEventListener("focusout",s),r.current=()=>{i.removeEventListener("focusin",a),i.removeEventListener("focusout",s)}},[]);return{announceToast:o,toasterRef:n}}const D$=t=>{const{offset:e,announce:r,mountNode:o,inline:n=!1,...i}=t,a=w.useRef(()=>null),{toastsToRender:s,isToastVisible:c,pauseAllToasts:l,playAllToasts:u,tryRestoreFocus:d,closeAllToasts:f}=S$(i),h=w.useCallback((b,k)=>a.current(b,k),[]),{dir:p}=je(),g=ae(we("div",i),{elementType:"div"}),y=Kf({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),v=ee(b=>{var k;b.key===yn&&(b.preventDefault(),f()),(k=t.onKeyDown)===null||k===void 0||k.call(t,b)}),m=b=>{var k;const S=M$(l,u),{announceToast:C,toasterRef:_}=O$(r??h);return ve(s.has(b)?g:null,{defaultProps:{ref:bt(S,_),children:(k=s.get(b))===null||k===void 0?void 0:k.map(T=>w.createElement(fI,{...T,tryRestoreFocus:d,intent:T.intent,announce:C,key:T.toastId,visible:c(T.toastId)},T.content)),onKeyDown:v,...y,"data-toaster-position":b,role:"list"},elementType:"div"})};return{dir:p,mountNode:o,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:ae(g,{elementType:"div"}),bottomStart:m(Fr.bottomStart),bottomEnd:m(Fr.bottomEnd),topStart:m(Fr.topStart),topEnd:m(Fr.topEnd),top:m(Fr.top),bottom:m(Fr.bottom),announceRef:a,offset:e,announce:r??h,renderAriaLive:!r,inline:n}},j$=500,F$=t=>{const[e,r]=w.useState(void 0),o=w.useRef(0),[n]=w.useState(()=>nT((c,l)=>c.politeness===l.politeness?c.createdAt-l.createdAt:c.politeness==="assertive"?-1:1)),i=ee((c,l)=>{const{politeness:u}=l;if(c===e?.message)return;const d={message:c,politeness:u,createdAt:o.current++};e?n.enqueue(d):r(d)});w.useEffect(()=>{const c=setTimeout(()=>{n.peek()?r(n.dequeue()):r(void 0)},j$);return()=>clearTimeout(c)},[e,n]),w.useImperativeHandle(t.announceRef,()=>i);const a=e?.politeness==="polite"?e.message:void 0,s=e?.politeness==="assertive"?e.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:ae(t.assertive,{defaultProps:{"aria-live":"assertive",children:s},elementType:"div"}),polite:ae(t.polite,{defaultProps:{"aria-live":"polite",children:a},elementType:"div"})}},L$=t=>Ee(w.Fragment,{children:[q(t.assertive,{}),q(t.polite,{})]}),Pk={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},q$=de("rsuwu0d","r1m1grr4",[".rsuwu0d{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-right:-1px;margin-bottom:-1px;margin-left:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;width:1px;position:absolute;}",".r1m1grr4{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-left:-1px;margin-bottom:-1px;margin-right:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-left:0px;padding-bottom:0px;padding-right:0px;width:1px;position:absolute;}"]),H$=t=>{const e=q$();return t.assertive.className=j(e,Pk.assertive,t.assertive.className),t.polite.className=j(e,Pk.polite,t.polite.className),t},hI=t=>{const e=F$(t);return H$(e),L$(e)};hI.displayName="AriaLive";const U$=t=>{const{announceRef:e,renderAriaLive:r,inline:o,mountNode:n}=t,i=!!t.bottomStart||!!t.bottomEnd||!!t.topStart||!!t.topEnd||!!t.top||!!t.bottom,a=r?q(hI,{announceRef:e}):null,s=Ee(w.Fragment,{children:[t.bottom?q(t.bottom,{}):null,t.bottomStart?q(t.bottomStart,{}):null,t.bottomEnd?q(t.bottomEnd,{}):null,t.topStart?q(t.topStart,{}):null,t.topEnd?q(t.topEnd,{}):null,t.top?q(t.top,{}):null]});return o?Ee(w.Fragment,{children:[a,i?s:null]}):Ee(w.Fragment,{children:[a,i?q(aa,{mountNode:n,children:s}):null]})},$$={root:"fui-Toaster"},K$=de("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),W$=H({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),V$=t=>{const e=K$(),r=W$(),o=j($$.root,e,t.inline&&r.inline,t.root.className);if(t.bottomStart){var n;t.bottomStart.className=o;var i;(i=(n=t.bottomStart).style)!==null&&i!==void 0||(n.style={}),Object.assign(t.bottomStart.style,ga(Fr.bottomStart,t.dir,t.offset))}if(t.bottomEnd){var a;t.bottomEnd.className=o;var s;(s=(a=t.bottomEnd).style)!==null&&s!==void 0||(a.style={}),Object.assign(t.bottomEnd.style,ga(Fr.bottomEnd,t.dir,t.offset))}if(t.topStart){var c;t.topStart.className=o;var l;(l=(c=t.topStart).style)!==null&&l!==void 0||(c.style={}),Object.assign(t.topStart.style,ga(Fr.topStart,t.dir,t.offset))}if(t.topEnd){var u;t.topEnd.className=o;var d;(d=(u=t.topEnd).style)!==null&&d!==void 0||(u.style={}),Object.assign(t.topEnd.style,ga(Fr.topEnd,t.dir,t.offset))}if(t.top){var f;t.top.className=o;var h;(h=(f=t.top).style)!==null&&h!==void 0||(f.style={}),Object.assign(t.top.style,ga(Fr.top,t.dir,t.offset))}if(t.bottom){var p;t.bottom.className=o;var g;(g=(p=t.bottom).style)!==null&&g!==void 0||(p.style={}),Object.assign(t.bottom.style,ga(Fr.bottom,t.dir,t.offset))}return t},pI=t=>{const e=D$(t);return V$(e),ge("useToasterStyles_unstable")(e),U$(e)};pI.displayName="Toaster";const G$=(t,e)=>({components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),backgroundAppearance:t.appearance}),X$=(t,e)=>q(s3,{value:e.backgroundAppearance,children:q(t.root,{})}),Y$={root:"fui-Toast"},Q$=de("rzyoxeq","r1lipnsg",[".rzyoxeq{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}",".r1lipnsg{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-left:12px;padding-bottom:12px;padding-right:12px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),Z$=H({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),J$=t=>{const e=Q$(),r=Z$();return t.root.className=j(Y$.root,e,t.backgroundAppearance==="inverted"&&r.inverted,t.root.className),t};function eK(t){const{backgroundAppearance:e}=t;return{backgroundAppearance:e}}const Ms=w.forwardRef((t,e)=>{const r=G$(t,e);return J$(r),X$(r,eK(r))});Ms.displayName="Toast";const tK=(t,e)=>{const{intent:r,titleId:o}=uI(),n=ub();let i;switch(r){case"success":i=w.createElement(P3,null);break;case"error":i=w.createElement(j3,null);break;case"warning":i=w.createElement(H3,null);break;case"info":i=w.createElement(F3,null);break}return{action:ve(t.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:ve(t.media,{renderByDefault:!!r,defaultProps:{children:i},elementType:"div"}),root:ae(we("div",{ref:e,children:t.children,id:o,...t}),{elementType:"div"}),intent:r,backgroundAppearance:n}},rK=t=>Ee(w.Fragment,{children:[t.media?q(t.media,{}):null,q(t.root,{}),t.action?q(t.action,{}):null]}),Rp={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},oK=de("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),nK=de("r8x5mrd","r1soj19y",[".r8x5mrd{display:flex;padding-top:2px;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}",".r1soj19y{display:flex;padding-top:2px;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}"]),iK=de("r2j19ip","rjfozdo",[".r2j19ip{display:flex;align-items:start;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}",".rjfozdo{display:flex;align-items:start;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}"]),aK=H({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),sK=H({success:{sj55zd:"f1m7fhi8"},error:{sj55zd:"fg9gses"},warning:{sj55zd:"f1k5f75o"},info:{sj55zd:"fkfq4zb"}},{d:[".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),cK=H({success:{sj55zd:"f1pvjcpr"},error:{sj55zd:"fcrp5ll"},warning:{sj55zd:"f1r8f1cl"},info:{sj55zd:"f1w7i9ko"}},{d:[".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),lK=t=>{const e=oK(),r=iK(),o=nK(),n=sK(),i=cK(),{intent:a}=t,s=aK();return t.root.className=j(Rp.root,e,t.backgroundAppearance==="inverted"&&s.root,t.root.className),t.media&&(t.media.className=j(Rp.media,o,t.backgroundAppearance==="inverted"&&s.media,t.media.className,a&&n[a],a&&t.backgroundAppearance==="inverted"&&i[a])),t.action&&(t.action.className=j(Rp.action,r,t.backgroundAppearance==="inverted"&&s.action,t.action.className)),t},Os=w.forwardRef((t,e)=>{const r=tK(t,e);return lK(r),rK(r)});Os.displayName="ToastTitle";const uK=(t,e)=>{const r=ub(),{bodyId:o}=uI();return{components:{root:"div",subtitle:"div"},subtitle:ve(t.subtitle,{elementType:"div"}),root:ae(we("div",{ref:e,id:o,...t}),{elementType:"div"}),backgroundAppearance:r}},dK=t=>Ee(w.Fragment,{children:[q(t.root,{}),t.subtitle?q(t.subtitle,{}):null]}),Bk={root:"fui-ToastBody",subtitle:"fui-ToastBody__subtitle"},fK=de("rciajo9",null,[".rciajo9{grid-column-start:2;grid-column-end:3;padding-top:6px;font-size:var(--fontSizeBase300);line-height:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground1);word-break:break-word;}"]),hK=de("rzjw1xk",null,[".rzjw1xk{padding-top:4px;grid-column-start:2;grid-column-end:3;font-size:var(--fontSizeBase200);line-height:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground2);}"]),pK=H({root:{sj55zd:"f1w7i9ko"},subtitle:{sj55zd:"f1w7i9ko"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),gK=t=>{const e=fK(),r=hK(),o=pK();return t.root.className=j(Bk.root,e,t.backgroundAppearance==="inverted"&&o.root,t.root.className),t.subtitle&&(t.subtitle.className=j(Bk.subtitle,r,t.backgroundAppearance==="inverted"&&o.subtitle,t.subtitle.className)),t},Kl=w.forwardRef((t,e)=>{const r=uK(t,e);return gK(r),dK(r)});Kl.displayName="ToastBody";const mK=()=>{var t;const e=je(),r=w.useRef(!1),o=ra()&&((t=e.targetDocument)===null||t===void 0?void 0:t.defaultView),n=w.useCallback(i=>{r.current=i.matches},[]);return er(()=>{if(!o||!o.matchMedia)return;const i=o.matchMedia("screen and (prefers-reduced-motion: reduce)");return i.matches&&(r.current=!0),i.addEventListener("change",n),()=>i.removeEventListener("change",n)},[n,o]),r.current},vK=t=>gI(t)?t.computedStyleMap():bK(t),gI=t=>!!(typeof CSS<"u"&&CSS.number&&t.computedStyleMap),bK=t=>{var e,r;const o=ra()&&((r=(e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView)!==null&&r!==void 0?r:window);return o?o.getComputedStyle(t,null):{getPropertyValue:n=>""}};function Nk(t){const e=t.trim();if(e.includes("auto"))return 0;if(e.endsWith("ms")){const r=Number(e.replace("ms",""));return isNaN(r)?0:r}return Number(e.slice(0,-1).replace(",","."))*1e3}const yK=(t,e)=>{const r=t.getAll(e);return r.length>0?r.map(({value:o,unit:n})=>`${o}${n}`):["0"]},wK=(t,e)=>{const r=t.getPropertyValue(e);return r?r.split(","):["0"]},zk=(t,e)=>{const r=Math.max(t.length,e.length),o=[];if(r===0)return 0;for(let n=0;n{const e=gI(t),r=vK(t),o=a=>e?yK(r,a):wK(r,a),n=zk(o("transition-duration"),o("transition-delay")),i=zk(o("animation-duration"),o("animation-delay"));return Math.max(n,i)},_K=t=>{const e=w.useRef(!0);return e.current&&t?(e.current=!1,!0):e.current};function SK(t,e={}){const{animateOnFirstMount:r,duration:o}={animateOnFirstMount:!1,...e},[n,i]=w.useState(t&&r?"entering":t?"idle":"unmounted"),[a,s]=w.useState(!r&&t),[c,l]=Hc(),[u,d]=Hc(),[f,h]=Lz(),[p,g]=w.useState(null),y=mK(),v=Wz(),m=_K(!!p),b=w.useRef(t).current,k=y||m&&b&&!r,S=w.useCallback(T=>{T&&g(T)},[]),C=w.useCallback(T=>(u(()=>f(T),0),()=>{d(),h()}),[h,d,f,u]),_=w.useCallback(()=>{i(t?"entered":"exited"),C(()=>i(t?"idle":"unmounted"))},[C,t]);return w.useEffect(()=>{if(!v){if(k){i(t?"idle":"unmounted"),s(t);return}if(i(t?"entering":"exiting"),!!p)return C(()=>{s(t),C(()=>{const T=o||kK(p);if(T===0){_();return}c(()=>_(),T)})}),()=>l()}},[p,k,_,t]),w.useMemo(()=>({ref:S,type:n,active:a,canRender:t||n!=="unmounted"}),[a,n,t])}function mI(t,e){const r=typeof t=="object",o=SK(r?!1:t,e);return r?t:o}const CK=H({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});const Mm=(t,e)=>{const{reduced:r}=CK(),o=w.useMemo(()=>!e.enter&&!e.exit?"":t.active||t.type==="idle"?e.enter:t.active?"":e.exit,[t.active,t.type,e.enter,e.exit]);return w.useEffect(()=>void 0,[e]),j(e.default,o,e[t.type],r)};function vI(t){const{open:e=!1,size:r="small",position:o="start"}=t;return{size:r,position:o,open:e}}const TK=de("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),xK=H({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),EK=t=>{const e=TK(),r=xK();return t.backdrop&&(t.backdrop.className=j(e,t.isNestedDialog&&r.nested,t.backdrop.className)),t},Om=w.forwardRef((t,e)=>{const r=$2(t,e),o=W2();return EK(r),K2(r,o)});Om.displayName="OverlayDrawerSurface";const IK=(t,e)=>{const{open:r,size:o,position:n}=vI(t),{modalType:i="modal",inertTrapFocus:a,defaultOpen:s=!1,onOpenChange:c}=t,l=mI(r),u=cb(t.backdrop),f=ae({...t,backdrop:i!=="non-modal"&&u!==null?{...u}:null},{elementType:Om,defaultProps:{ref:bt(e,l.ref)}}),h=ae({open:!0,defaultOpen:s,onOpenChange:c,inertTrapFocus:a,modalType:i,children:null},{elementType:hl});return{components:{root:Om,dialog:hl},root:f,dialog:h,size:o,position:n,motion:l}},AK=t=>t.motion.canRender?q(t.dialog,{children:q(t.root,{})}):null,RK=H({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),bI=H({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),yI=({position:t,size:e,motion:r})=>{const o=RK(),n=bI();return j(o[t],n[e],o[e],o.reducedMotion,r.type==="entering"&&o.entering,r.type==="exiting"&&o.exiting)},Mk={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},PK=de("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),BK=H({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),NK=H({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),zK=H({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),MK=t=>{const e=yI(t),r=PK(),o=BK(),n=bI(),i=Mm(t.motion,NK()),a=Mm(t.motion,zK()),s=t.root.backdrop;return t.root.className=j(Mk.root,e,r,o[t.position],i,t.root.className),s&&(s.className=j(Mk.backdrop,a,n[t.size],s.className)),t},wI=w.forwardRef((t,e)=>{const r=IK(t,e);return MK(r),ge("useDrawerOverlayStyles_unstable")(r),ge("useOverlayDrawerStyles_unstable")(r),AK(r)});wI.displayName="OverlayDrawer";const OK=(t,e)=>{const{size:r,position:o,open:n}=vI(t),{separator:i=!1}=t,a=mI(n);return{components:{root:"div"},root:ae(we("div",{...t,ref:bt(e,a.ref)}),{elementType:"div"}),size:r,position:o,separator:i,motion:a}},DK=t=>t.motion.canRender?q(t.root,{}):null,jK={root:"fui-InlineDrawer"},FK=de("r46ju4x",null,[".r46ju4x{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),LK=H({separatorStart:{Bekrc4i:["f1hqa2wf","finvdd3"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["fa8zu9y","f17e9lqh"]},separatorEnd:{ibv6hh:["finvdd3","f1hqa2wf"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["f17e9lqh","fa8zu9y"]},start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1h1g6jt"}},{d:[".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fa8zu9y{border-right-color:var(--colorNeutralBackground3);}",".f17e9lqh{border-left-color:var(--colorNeutralBackground3);}",".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1h1g6jt{transform:translate3D(var(--fui-Drawer--size), 0, 0);}"]}),qK=H({default:{abs64n:"fk73vx1",Bmy1vo4:"f15rjlgw",Es3by:"f1blt7p"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx"}},{d:[".fk73vx1{opacity:0;}",".f15rjlgw{transition-property:opacity,transform;}",".f1blt7p{will-change:opacity,transform;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}"]}),HK=t=>{const e=FK(),r=yI(t),o=LK(),n=Mm(t.motion,qK()),i=w.useMemo(()=>{if(t.separator)return t.position==="start"?o.separatorStart:o.separatorEnd},[t.position,t.separator,o.separatorEnd,o.separatorStart]);return t.root.className=j(jK.root,e,r,i,o[t.position],n,t.root.className),t},kI=w.forwardRef((t,e)=>{const r=OK(t,e);return HK(r),ge("useDrawerInlineStyles_unstable")(r),ge("useInlineDrawerStyles_unstable")(r),DK(r)});kI.displayName="InlineDrawer";const UK=(t,e)=>{const r=t.type==="inline"?kI:wI;return{components:{root:r},root:ae(cb({ref:e,...t}),{elementType:r})}},$K=t=>q(t.root,{}),KK={root:"fui-Drawer"},WK=t=>(t.root.className=j(KK.root,t.root.className),t),_I=w.forwardRef((t,e)=>{const r=UK(t,e);return WK(r),ge("useDrawerStyles_unstable")(r),$K(r)});_I.displayName="Drawer";const VK=(t,e)=>({components:{root:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"})}),GK=t=>q(t.root,{}),XK={root:"fui-DrawerBody"},YK=de("r10z3gsy","r1ppc5ap",[".r10z3gsy{margin-top:-1px;margin-right:0;margin-bottom:-1px;margin-left:0;padding-top:1px;padding-right:var(--spacingHorizontalXXL);padding-bottom:1px;padding-left:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r10z3gsy:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r10z3gsy:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap{margin-top:-1px;margin-left:0;margin-bottom:-1px;margin-right:0;padding-top:1px;padding-left:var(--spacingHorizontalXXL);padding-bottom:1px;padding-right:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r1ppc5ap:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),QK=t=>{const e=YK();return t.root.className=j(XK.root,e,t.root.className),t},SI=w.forwardRef((t,e)=>{const r=VK(t,e);return QK(r),ge("useDrawerBodyStyles_unstable")(r),GK(r)});SI.displayName="DrawerBody";const ZK=(t,e)=>({components:{root:"header"},root:ae(we("header",{ref:e,...t}),{elementType:"header"})}),JK=t=>q(t.root,{}),eW={root:"fui-DrawerHeader"},tW=de("rh4hr5f","r116c7xc",[".rh4hr5f{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}",".r116c7xc{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}"]),rW=t=>{const e=tW();return t.root.className=j(eW.root,e,t.root.className),t},CI=w.forwardRef((t,e)=>{const r=ZK(t,e);return rW(r),ge("useDrawerHeaderStyles_unstable")(r),JK(r)});CI.displayName="DrawerHeader";const oW=({children:t,heading:e})=>{const r=So(o=>o.dialogTitleId);return ve(e,{defaultProps:{id:r,children:t},renderByDefault:!0,elementType:"h2"})},nW=(t,e)=>{const r=oW(t);return{components:{root:"div",heading:"h2",action:"div"},root:ae(we("div",{ref:e,...t}),{elementType:"div"}),heading:r,action:ve(t.action,{elementType:"div"})}},iW=t=>Ee(t.root,{children:[t.heading&&q(t.heading,{}),t.action&&q(t.action,{})]}),Pp={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},aW=H({root:{mc9l5x:"f22iagw",Brf1p80:"f1869bpl",Bt984gj:"f122n59",i8kkvl:"fsnqrgy"},action:{t21cq0:["faqnl2i","fd75udd"]}},{d:[".f22iagw{display:flex;}",".f1869bpl{justify-content:space-between;}",".f122n59{align-items:center;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".faqnl2i{margin-right:calc(var(--spacingHorizontalS) * -1);}",".fd75udd{margin-left:calc(var(--spacingHorizontalS) * -1);}"]}),sW=t=>{const e=aW(),{heading:r={},action:o,components:n}=t;return H2({components:{root:n.heading,action:n.action},root:r,action:o}),t.root.className=j(Pp.root,e.root,t.root.className),t.heading&&(t.heading.className=j(Pp.heading,t.heading.className)),t.action&&(t.action.className=j(Pp.action,e.action,t.action.className)),t},TI=w.forwardRef((t,e)=>{const r=nW(t,e);return sW(r),ge("useDrawerHeaderTitleStyles_unstable")(r),iW(r)});TI.displayName="DrawerHeaderTitle";var Dm={},Ok=ky;Dm.createRoot=Ok.createRoot,Dm.hydrateRoot=Ok.hydrateRoot;var cW=function(t){return function(e,r){var o=w.useRef(!1);t(function(){return function(){o.current=!1}},[]),t(function(){if(!o.current)o.current=!0;else return e()},r)}},jm=function(t,e){return jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},jm(t,e)};function vh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");jm(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ro=function(){return ro=Object.assign||function(e){for(var r,o=1,n=arguments.length;o0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],a;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function _t(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o-1&&(n=setTimeout(function(){ud.delete(t)},e)),ud.set(t,ro(ro({},r),{timer:n}))},gW=function(t){return ud.get(t)},dd=new Map,mW=function(t){return dd.get(t)},vW=function(t,e){dd.set(t,e),e.then(function(r){return dd.delete(t),r}).catch(function(){dd.delete(t)})},yi={},bW=function(t,e){yi[t]&&yi[t].forEach(function(r){return r(e)})},Bp=function(t,e){return yi[t]||(yi[t]=[]),yi[t].push(e),function(){var o=yi[t].indexOf(e);yi[t].splice(o,1)}},yW=function(t,e){var r=e.cacheKey,o=e.cacheTime,n=o===void 0?5*60*1e3:o,i=e.staleTime,a=i===void 0?0:i,s=e.setCache,c=e.getCache,l=w.useRef(),u=w.useRef(),d=function(h,p){s?s(p):pW(h,n,p),bW(h,p.data)},f=function(h,p){return p===void 0&&(p=[]),c?c(p):gW(h)};return II(function(){if(r){var h=f(r);h&&Object.hasOwnProperty.call(h,"data")&&(t.state.data=h.data,t.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(t.state.loading=!1)),l.current=Bp(r,function(p){t.setState({data:p})})}},[]),My(function(){var h;(h=l.current)===null||h===void 0||h.call(l)}),r?{onBefore:function(h){var p=f(r,h);return!p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p?.data,error:void 0,returnNow:!0}:{data:p?.data,error:void 0}},onRequest:function(h,p){var g=mW(r);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,_t([],ut(p),!1)),u.current=g,vW(r,g),{servicePromise:g})},onSuccess:function(h,p){var g;r&&((g=l.current)===null||g===void 0||g.call(l),d(r,{data:h,params:p,time:new Date().getTime()}),l.current=Bp(r,function(y){t.setState({data:y})}))},onMutate:function(h){var p;r&&((p=l.current)===null||p===void 0||p.call(l),d(r,{data:h,params:t.state.params,time:new Date().getTime()}),l.current=Bp(r,function(g){t.setState({data:g})}))}}:{}};const wW=yW;function kW(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Oy=kW,_W=typeof rc=="object"&&rc&&rc.Object===Object&&rc,SW=_W,CW=SW,TW=typeof self=="object"&&self&&self.Object===Object&&self,xW=CW||TW||Function("return this")(),RI=xW,EW=RI,IW=function(){return EW.Date.now()},AW=IW,RW=/\s/;function PW(t){for(var e=t.length;e--&&RW.test(t.charAt(e)););return e}var BW=PW,NW=BW,zW=/^\s+/;function MW(t){return t&&t.slice(0,NW(t)+1).replace(zW,"")}var OW=MW,DW=RI,jW=DW.Symbol,PI=jW,Dk=PI,BI=Object.prototype,FW=BI.hasOwnProperty,LW=BI.toString,Qs=Dk?Dk.toStringTag:void 0;function qW(t){var e=FW.call(t,Qs),r=t[Qs];try{t[Qs]=void 0;var o=!0}catch{}var n=LW.call(t);return o&&(e?t[Qs]=r:delete t[Qs]),n}var HW=qW,UW=Object.prototype,$W=UW.toString;function KW(t){return $W.call(t)}var WW=KW,jk=PI,VW=HW,GW=WW,XW="[object Null]",YW="[object Undefined]",Fk=jk?jk.toStringTag:void 0;function QW(t){return t==null?t===void 0?YW:XW:Fk&&Fk in Object(t)?VW(t):GW(t)}var ZW=QW;function JW(t){return t!=null&&typeof t=="object"}var eV=JW,tV=ZW,rV=eV,oV="[object Symbol]";function nV(t){return typeof t=="symbol"||rV(t)&&tV(t)==oV}var iV=nV,aV=OW,Lk=Oy,sV=iV,qk=NaN,cV=/^[-+]0x[0-9a-f]+$/i,lV=/^0b[01]+$/i,uV=/^0o[0-7]+$/i,dV=parseInt;function fV(t){if(typeof t=="number")return t;if(sV(t))return qk;if(Lk(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Lk(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=aV(t);var r=lV.test(t);return r||uV.test(t)?dV(t.slice(2),r?2:8):cV.test(t)?qk:+t}var hV=fV,pV=Oy,Np=AW,Hk=hV,gV="Expected a function",mV=Math.max,vV=Math.min;function bV(t,e,r){var o,n,i,a,s,c,l=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(gV);e=Hk(e)||0,pV(r)&&(u=!!r.leading,d="maxWait"in r,i=d?mV(Hk(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f);function h(C){var _=o,T=n;return o=n=void 0,l=C,a=t.apply(T,_),a}function p(C){return l=C,s=setTimeout(v,e),u?h(C):a}function g(C){var _=C-c,T=C-l,A=e-_;return d?vV(A,i-T):A}function y(C){var _=C-c,T=C-l;return c===void 0||_>=e||_<0||d&&T>=i}function v(){var C=Np();if(y(C))return m(C);s=setTimeout(v,g(C))}function m(C){return s=void 0,f&&o?h(C):(o=n=void 0,a)}function b(){s!==void 0&&clearTimeout(s),l=0,o=c=n=s=void 0}function k(){return s===void 0?a:m(Np())}function S(){var C=Np(),_=y(C);if(o=arguments,n=this,c=C,_){if(s===void 0)return p(c);if(d)return clearTimeout(s),s=setTimeout(v,e),h(c)}return s===void 0&&(s=setTimeout(v,e)),a}return S.cancel=b,S.flush=k,S}var NI=bV;const yV=Oo(NI);var wV=function(t,e){var r=e.debounceWait,o=e.debounceLeading,n=e.debounceTrailing,i=e.debounceMaxWait,a=w.useRef(),s=w.useMemo(function(){var c={};return o!==void 0&&(c.leading=o),n!==void 0&&(c.trailing=n),i!==void 0&&(c.maxWait=i),c},[o,n,i]);return w.useEffect(function(){if(r){var c=t.runAsync.bind(t);return a.current=yV(function(l){l()},r,s),t.runAsync=function(){for(var l=[],u=0;u-1&&Nc.splice(r,1)}}if(bh){var Uk=function(){if(!(!Dy()||!AV()))for(var t=0;t=B?D:""+Array(B+1-K.length).join(M)+D},k={s:b,z:function(D){var B=-D.utcOffset(),M=Math.abs(B),K=Math.floor(M/60),I=M%60;return(B<=0?"+":"-")+b(K,2,"0")+":"+b(I,2,"0")},m:function D(B,M){if(B.date()1)return D($[0])}else{var N=B.name;C[N]=B,I=N}return!K&&I&&(S=I),I||!K&&S},R=function(D,B){if(T(D))return D.clone();var M=typeof B=="object"?B:{};return M.date=D,M.args=arguments,new E(M)},V=k;V.l=A,V.i=T,V.w=function(D,B){return R(D,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function D(M){this.$L=A(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[_]=!0}var B=D.prototype;return B.parse=function(M){this.$d=function(K){var I=K.date,F=K.utc;if(I===null)return new Date(NaN);if(V.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var $=I.match(y);if($){var N=$[2]-1||0,O=($[7]||"0").substring(0,3);return F?new Date(Date.UTC($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(I)}(M),this.init()},B.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},B.$utils=function(){return V},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(M,K){var I=R(M);return this.startOf(K)<=I&&I<=this.endOf(K)},B.isAfter=function(M,K){return R(M)r).map(r=>r.toString().replace(/^\/+/,"")).join("/")}`}const MI=w.createContext({});function Ds(){return w.useContext(MI)}function XV({children:t}){const[e,r]=w.useState(()=>({Paths:location.pathname.split("/").filter(c=>c),Search:new URLSearchParams(location.search),Put:o,Nav:(...c)=>i(zp(c)),Rep:(...c)=>a(zp(c)),Reload:(...c)=>s(c)}));function o(c){history.replaceState(null,"",`${location.pathname}${c.size?"?":""}${c.toString()}`),e.Search=new URLSearchParams(c),r({...e})}function n(c){e.Paths=c.split("/").filter(l=>l),e.Search=new URLSearchParams(location.search),r({...e})}function i(c){history.pushState(null,"",c),n(c)}function a(c){history.replaceState(null,"",c),n(c)}function s(c){history.replaceState(null,"","/Reload"),n("/Reload"),setTimeout(()=>{const l=c.length?zp(c):location.pathname;history.pushState(null,"",l),n(l)},100)}return jy(()=>{location.pathname==="/"&&location.search.startsWith("?/")&&a(location.search.substring(2)),addEventListener("click",c=>{const l=c.target?.closest("a");if(l){if(l.origin!==location.origin){l.target="_blank";return}c.preventDefault(),i(l.pathname)}}),addEventListener("popstate",c=>{c.preventDefault(),n(location.pathname)})}),x.jsx(MI.Provider,{value:e,children:t})}class sa{namespace;info;error;warn;debug;throw;constructor(...e){this.namespace=e.join(" > "),this.error=console.error.bind(this,this.baseColor(101,"error"),` `),this.warn=console.warn.bind(this,this.baseColor(103,"warn"),` `),this.info=console.info.bind(this,this.baseColor(104,"info"),` `),this.debug=console.debug.bind(this,this.baseColor(102,"debug"),` - `),this.throw=console.log.bind(this,this.baseColor(105,"throw"),"↓ The Following Error is Thrown ↓")}With(...e){return new sa(this.namespace,...e)}baseColor(e,r){return`\x1B[${e};30;1m ${r.toUpperCase()} \x1B[0m\x1B[100;97m ${Ct().format("YY-M-D H:m:s")} \x1B[1m\x1B[40;97m ${this.namespace} `}}class Ni extends Error{constructor(e,r){const o=new.target.prototype;super(`${e}: Status code '${r}'`),this.statusCode=r,this.__proto__=o}}class Fy extends Error{constructor(e="A timeout occurred."){const r=new.target.prototype;super(e),this.__proto__=r}}class oo extends Error{constructor(e="An abort occurred."){const r=new.target.prototype;super(e),this.__proto__=r}}class XV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=o}}class YV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=o}}class QV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=o}}class $k extends Error{constructor(e){const r=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}}class ZV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.innerErrors=r,this.__proto__=o}}class MI{constructor(e,r,o){this.statusCode=e,this.statusText=r,this.content=o}}class wh{get(e,r){return this.send({...r,method:"GET",url:e})}post(e,r){return this.send({...r,method:"POST",url:e})}delete(e,r){return this.send({...r,method:"DELETE",url:e})}getCookieString(e){return""}}var L;(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"})(L||(L={}));class ks{constructor(){}log(e,r){}}ks.instance=new ks;const JV="8.0.0";class gt{static isRequired(e,r){if(e==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(e,r){if(!e||e.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(e,r,o){if(!(e in r))throw new Error(`Unknown ${o} value: ${e}.`)}}class Qe{static get isBrowser(){return!Qe.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Qe.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Qe.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function gl(t,e){let r="";return Yi(t)?(r=`Binary data of length ${t.byteLength}`,e&&(r+=`. Content: '${eG(t)}'`)):typeof t=="string"&&(r=`String data of length ${t.length}`,e&&(r+=`. Content: '${t}'`)),r}function eG(t){const e=new Uint8Array(t);let r="";return e.forEach(o=>{const n=o<16?"0":"";r+=`0x${n}${o.toString(16)} `}),r.substr(0,r.length-1)}function Yi(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}async function OI(t,e,r,o,n,i){const a={},[s,c]=_s();a[s]=c,t.log(L.Trace,`(${e} transport) sending data. ${gl(n,i.logMessageContent)}.`);const l=Yi(n)?"arraybuffer":"text",u=await r.post(o,{content:n,headers:{...a,...i.headers},responseType:l,timeout:i.timeout,withCredentials:i.withCredentials});t.log(L.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}function tG(t){return t===void 0?new pf(L.Information):t===null?ks.instance:t.log!==void 0?t:new pf(t)}class rG{constructor(e,r){this._subject=e,this._observer=r}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}}class pf{constructor(e){this._minLevel=e,this.out=console}log(e,r){if(e>=this._minLevel){const o=`[${new Date().toISOString()}] ${L[e]}: ${r}`;switch(e){case L.Critical:case L.Error:this.out.error(o);break;case L.Warning:this.out.warn(o);break;case L.Information:this.out.info(o);break;default:this.out.log(o);break}}}}function _s(){let t="X-SignalR-User-Agent";return Qe.isNode&&(t="User-Agent"),[t,oG(JV,nG(),aG(),iG())]}function oG(t,e,r,o){let n="Microsoft SignalR/";const i=t.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${t}; `,e&&e!==""?n+=`${e}; `:n+="Unknown OS; ",n+=`${r}`,o?n+=`; ${o}`:n+="; Unknown Runtime Version",n+=")",n}function nG(){if(Qe.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function iG(){if(Qe.isNode)return process.versions.node}function aG(){return Qe.isNode?"NodeJS":"Browser"}function Kk(t){return t.stack?t.stack:t.message?t.message:`${t}`}function sG(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}function cG(t){return typeof fetch>"u"||Qe.isNode?(t._jar=new(require("tough-cookie")).CookieJar,typeof fetch>"u"?t._fetchType=require("node-fetch"):t._fetchType=fetch,t._fetchType=require("fetch-cookie")(t._fetchType,t._jar),!0):!1}function lG(t){return typeof AbortController>"u"?(t._abortControllerType=require("abort-controller"),!0):!1}function uG(){return require("ws")}function dG(){return require("eventsource")}class fG extends wh{constructor(e){super(),this._logger=e;const r={_fetchType:void 0,_jar:void 0};cG(r)?(this._fetchType=r._fetchType,this._jar=r._jar):this._fetchType=fetch.bind(sG()),this._abortControllerType=AbortController;const o={_abortControllerType:this._abortControllerType};lG(o)&&(this._abortControllerType=o._abortControllerType)}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new oo;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new this._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new oo});let n=null;if(e.timeout){const c=e.timeout;n=setTimeout(()=>{r.abort(),this._logger.log(L.Warning,"Timeout from HTTP request."),o=new Fy},c)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},Yi(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(c){throw o||(this._logger.log(L.Warning,`Error from HTTP request. ${c}.`),c)}finally{n&&clearTimeout(n),e.abortSignal&&(e.abortSignal.onabort=null)}if(!i.ok){const c=await Wk(i,"text");throw new Ni(c||i.statusText,i.status)}const s=await Wk(i,e.responseType);return new MI(i.status,i.statusText,s)}getCookieString(e){let r="";return Qe.isNode&&this._jar&&this._jar.getCookies(e,(o,n)=>r=n.join("; ")),r}}function Wk(t,e){let r;switch(e){case"arraybuffer":r=t.arrayBuffer();break;case"text":r=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:r=t.text();break}return r}class hG extends wh{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new oo):e.method?e.url?new Promise((r,o)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(Yi(e.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(a=>{n.setRequestHeader(a,i[a])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),o(new oo)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new MI(n.status,n.statusText,n.response||n.responseText)):o(new Ni(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(L.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),o(new Ni(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(L.Warning,"Timeout from HTTP request."),o(new Fy)},n.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class pG extends wh{constructor(e){if(super(),typeof fetch<"u"||Qe.isNode)this._httpClient=new fG(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new hG(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new oo):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class Cr{static write(e){return`${e}${Cr.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Cr.RecordSeparator)throw new Error("Message is incomplete.");const r=e.split(Cr.RecordSeparator);return r.pop(),r}}Cr.RecordSeparatorCode=30;Cr.RecordSeparator=String.fromCharCode(Cr.RecordSeparatorCode);class gG{writeHandshakeRequest(e){return Cr.write(JSON.stringify(e))}parseHandshakeResponse(e){let r,o;if(Yi(e)){const s=new Uint8Array(e),c=s.indexOf(Cr.RecordSeparatorCode);if(c===-1)throw new Error("Message is incomplete.");const l=c+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,l))),o=s.byteLength>l?s.slice(l).buffer:null}else{const s=e,c=s.indexOf(Cr.RecordSeparator);if(c===-1)throw new Error("Message is incomplete.");const l=c+1;r=s.substring(0,l),o=s.length>l?s.substring(l):null}const n=Cr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[o,i]}}var Z;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(Z||(Z={}));let mG=class{constructor(){this.observers=[]}next(e){for(const r of this.observers)r.next(e)}error(e){for(const r of this.observers)r.error&&r.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new rG(this,e)}};class vG{constructor(e,r,o){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=r,this._bufferSize=o}async _send(e){const r=this._protocol.writeMessage(e);let o=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let n=()=>{},i=()=>{};Yi(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(o=new Promise((a,s)=>{n=a,i=s})),this._messages.push(new bG(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await o}_ack(e){let r=-1;for(let o=0;othis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:Z.Sequence,sequenceId:e}));const r=this._messages;for(const o of r)await this._connection.send(o._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const r of this._messages)r._rejector(e)}_isInvocationMessage(e){switch(e.type){case Z.Invocation:case Z.StreamItem:case Z.Completion:case Z.StreamInvocation:case Z.CancelInvocation:return!0;case Z.Close:case Z.Sequence:case Z.Ping:case Z.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:Z.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class bG{constructor(e,r,o,n){this._message=e,this._id=r,this._resolver=o,this._rejector=n}}const yG=30*1e3,wG=15*1e3,kG=1e5;var Pe;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(Pe||(Pe={}));class Ly{static create(e,r,o,n,i,a,s){return new Ly(e,r,o,n,i,a,s)}constructor(e,r,o,n,i,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(L.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},gt.isRequired(e,"connection"),gt.isRequired(r,"logger"),gt.isRequired(o,"protocol"),this.serverTimeoutInMilliseconds=i??yG,this.keepAliveIntervalInMilliseconds=a??wG,this._statefulReconnectBufferSize=s??kG,this._logger=r,this._protocol=o,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new gG,this.connection.onreceive=c=>this._processIncomingData(c),this.connection.onclose=c=>this._connectionClosed(c),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Z.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==Pe.Disconnected&&this._connectionState!==Pe.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Pe.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Pe.Connecting,this._logger.log(L.Debug,"Starting HubConnection.");try{await this._startInternal(),Qe.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Pe.Connected,this._connectionStarted=!0,this._logger.log(L.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=Pe.Disconnected,this._logger.log(L.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((r,o)=>{this._handshakeResolver=r,this._handshakeRejecter=o});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);const o={protocol:this._protocol.name,version:r};if(this._logger.log(L.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)),this._logger.log(L.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new vG(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log(L.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===Pe.Disconnected)return this._logger.log(L.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Pe.Disconnecting)return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return this._connectionState=Pe.Disconnecting,this._logger.log(L.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(L.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Pe.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new oo("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(e,r,n);let a;const s=new mG;return s.cancelCallback=()=>{const c=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],a.then(()=>this._sendWithProtocol(c))},this._callbacks[i.invocationId]=(c,l)=>{if(l){s.error(l);return}else c&&(c.type===Z.Completion?c.error?s.error(new Error(c.error)):s.complete():s.next(c.item))},a=this._sendWithProtocol(i).catch(c=>{s.error(c),delete this._callbacks[i.invocationId]}),this._launchStreams(o,a),s}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(e,r,!0,n));return this._launchStreams(o,i),i}invoke(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createInvocation(e,r,!1,n);return new Promise((s,c)=>{this._callbacks[i.invocationId]=(u,d)=>{if(d){c(d);return}else u&&(u.type===Z.Completion?u.error?c(new Error(u.error)):s(u.result):c(new Error(`Unexpected message type: ${u.type}`)))};const l=this._sendWithProtocol(i).catch(u=>{c(u),delete this._callbacks[i.invocationId]});this._launchStreams(o,l)})}on(e,r){!e||!r||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(r)===-1&&this._methods[e].push(r))}off(e,r){if(!e)return;e=e.toLowerCase();const o=this._methods[e];if(o)if(r){const n=o.indexOf(r);n!==-1&&(o.splice(n,1),o.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const r=this._protocol.parseMessages(e,this._logger);for(const o of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(o)))switch(o.type){case Z.Invocation:this._invokeClientMethod(o);break;case Z.StreamItem:case Z.Completion:{const n=this._callbacks[o.invocationId];if(n){o.type===Z.Completion&&delete this._callbacks[o.invocationId];try{n(o)}catch(i){this._logger.log(L.Error,`Stream callback threw error: ${Kk(i)}`)}}break}case Z.Ping:break;case Z.Close:{this._logger.log(L.Information,"Close message received from server.");const n=o.error?new Error("Server returned an error on close: "+o.error):void 0;o.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case Z.Ack:this._messageBuffer&&this._messageBuffer._ack(o);break;case Z.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(o);break;default:this._logger.log(L.Warning,`Invalid message type: ${o.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let r,o;try{[o,r]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const i="Error parsing handshake response: "+n;this._logger.log(L.Error,i);const a=new Error(i);throw this._handshakeRejecter(a),a}if(r.error){const n="Server returned handshake error: "+r.error;this._logger.log(L.Error,n);const i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log(L.Debug,"Server handshake complete.");return this._handshakeResolver(),o}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Pe.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const r=e.target.toLowerCase(),o=this._methods[r];if(!o){this._logger.log(L.Warning,`No client method with the name '${r}' found.`),e.invocationId&&(this._logger.log(L.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const n=o.slice(),i=!!e.invocationId;let a,s,c;for(const l of n)try{const u=a;a=await l.apply(this,e.arguments),i&&a&&u&&(this._logger.log(L.Error,`Multiple results provided for '${r}'. Sending error to server.`),c=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(L.Error,`A callback for the method '${r}' threw error '${u}'.`)}c?await this._sendWithProtocol(c):i?(s?c=this._createCompletionMessage(e.invocationId,`${s}`,null):a!==void 0?c=this._createCompletionMessage(e.invocationId,null,a):(this._logger.log(L.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),c=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(c)):a&&this._logger.log(L.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log(L.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new oo("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Pe.Disconnecting?this._completeClose(e):this._connectionState===Pe.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===Pe.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),Qe.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[e]))}catch(r){this._logger.log(L.Error,`An onclose callback called with error '${e}' threw error '${r}'.`)}}}async _reconnect(e){const r=Date.now();let o=0,n=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(o++,0,n);if(i===null){this._logger.log(L.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=Pe.Reconnecting,e?this._logger.log(L.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(L.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[e]))}catch(a){this._logger.log(L.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(L.Information,`Reconnect attempt number ${o} will start in ${i} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Pe.Connected,this._logger.log(L.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(L.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(L.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Pe.Disconnecting&&this._completeClose();return}n=a instanceof Error?a:new Error(a.toString()),i=this._getNextRetryDelay(o++,Date.now()-r,n)}}this._logger.log(L.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,r,o){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:e,retryReason:o})}catch(n){return this._logger.log(L.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const r=this._callbacks;this._callbacks={},Object.keys(r).forEach(o=>{const n=r[o];try{n(null,e)}catch(i){this._logger.log(L.Error,`Stream 'error' callback called with '${e}' threw error: ${Kk(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,r,o,n){if(o)return n.length!==0?{arguments:r,streamIds:n,target:e,type:Z.Invocation}:{arguments:r,target:e,type:Z.Invocation};{const i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:e,type:Z.Invocation}:{arguments:r,invocationId:i.toString(),target:e,type:Z.Invocation}}}_launchStreams(e,r){if(e.length!==0){r||(r=Promise.resolve());for(const o in e)e[o].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(o,n)))}})}}_replaceStreamingParams(e){const r=[],o=[];for(let n=0;n0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const o=await this._innerClient.send(e);return r&&o.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):o}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[zi.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[zi.Authorization]&&delete e.headers[zi.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var ct;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(ct||(ct={}));var Ot;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(Ot||(Ot={}));let CG=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Gk{get pollAborted(){return this._pollAbort.aborted}constructor(e,r,o){this._httpClient=e,this._logger=r,this._pollAbort=new CG,this._options=o,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,r){if(gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._url=e,this._logger.log(L.Trace,"(LongPolling transport) Connecting."),r===Ot.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,n]=_s(),i={[o]:n,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===Ot.Binary&&(a.responseType="arraybuffer");const s=`${e}&_=${Date.now()}`;this._logger.log(L.Trace,`(LongPolling transport) polling: ${s}.`);const c=await this._httpClient.get(s,a);c.statusCode!==200?(this._logger.log(L.Error,`(LongPolling transport) Unexpected response code: ${c.statusCode}.`),this._closeError=new Ni(c.statusText||"",c.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(e,r){try{for(;this._running;)try{const o=`${e}&_=${Date.now()}`;this._logger.log(L.Trace,`(LongPolling transport) polling: ${o}.`);const n=await this._httpClient.get(o,r);n.statusCode===204?(this._logger.log(L.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log(L.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new Ni(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(L.Trace,`(LongPolling transport) data received. ${gl(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(L.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){this._running?o instanceof Fy?this._logger.log(L.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=o,this._running=!1):this._logger.log(L.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{this._logger.log(L.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?OI(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(L.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(L.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[r,o]=_s();e[r]=o;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let i;try{await this._httpClient.delete(this._url,n)}catch(a){i=a}i?i instanceof Ni&&(i.statusCode===404?this._logger.log(L.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(L.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(L.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(L.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(L.Trace,e),this.onclose(this._closeError)}}}class TG{constructor(e,r,o,n){this._httpClient=e,this._accessToken=r,this._logger=o,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,r){return gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._logger.log(L.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((o,n)=>{let i=!1;if(r!==Ot.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(Qe.isBrowser||Qe.isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(e),c={};c.Cookie=s;const[l,u]=_s();c[l]=u,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...c,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log(L.Trace,`(SSE transport) data received. ${gl(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(c){this._close(c);return}},a.onerror=s=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(L.Information,`SSE connected to ${this._url}`),this._eventSource=a,i=!0,o()}}catch(s){n(s);return}})}async send(e){return this._eventSource?OI(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class xG{constructor(e,r,o,n,i,a){this._logger=o,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=a}async connect(e,r){gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._logger.log(L.Trace,"(WebSockets transport) Connecting.");let o;return this._accessTokenFactory&&(o=await this._accessTokenFactory()),new Promise((n,i)=>{e=e.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(e);let c=!1;if(Qe.isNode||Qe.isReactNative){const l={},[u,d]=_s();l[u]=d,o&&(l[zi.Authorization]=`Bearer ${o}`),s&&(l[zi.Cookie]=s),a=new this._webSocketConstructor(e,void 0,{headers:{...l,...this._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new this._webSocketConstructor(e)),r===Ot.Binary&&(a.binaryType="arraybuffer"),a.onopen=l=>{this._logger.log(L.Information,`WebSocket connected to ${e}.`),this._webSocket=a,c=!0,n()},a.onerror=l=>{let u=null;typeof ErrorEvent<"u"&&l instanceof ErrorEvent?u=l.error:u="There was an error with the transport",this._logger.log(L.Information,`(WebSockets transport) ${u}.`)},a.onmessage=l=>{if(this._logger.log(L.Trace,`(WebSockets transport) data received. ${gl(l.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(l.data)}catch(u){this._close(u);return}},a.onclose=l=>{if(c)this._close(l);else{let u=null;typeof ErrorEvent<"u"&&l instanceof ErrorEvent?u=l.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(u))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(L.Trace,`(WebSockets transport) sending data. ${gl(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(L.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const Xk=100;class EG{constructor(e,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,gt.isRequired(e,"url"),this._logger=tG(r.logger),this.baseUrl=this._resolveUrl(e),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let o=null,n=null;Qe.isNode&&typeof require<"u"&&(o=uG(),n=dG()),!Qe.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:Qe.isNode&&!r.WebSocket&&o&&(r.WebSocket=o),!Qe.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:Qe.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new SG(r.httpClient||new pG(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(e){if(e=e||Ot.Binary,gt.isIn(e,Ot,"transferFormat"),this._logger.log(L.Debug,`Starting connection with transfer format '${Ot[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){const r="Failed to start the HttpConnection before stop() was called.";return this._logger.log(L.Error,r),await this._stopPromise,Promise.reject(new oo(r))}else if(this._connectionState!=="Connected"){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(L.Error,r),Promise.reject(new oo(r))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new qy(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log(L.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(L.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===ct.WebSockets)this.transport=this._constructTransport(ct.WebSockets),await this._startTransport(r,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let o=null,n=0;do{if(o=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new oo("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const i=o.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(o.url&&n0?Promise.reject(new ZV(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case ct.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new xG(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ct.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new TG(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ct.LongPolling:return new Gk(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async o=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(o);return}n&&this._stopConnection(o)}:this.transport.onclose=o=>this._stopConnection(o),this.transport.connect(e,r)}_resolveTransportOrError(e,r,o,n){const i=ct[e.transport];if(i==null)return this._logger.log(L.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(IG(r,i))if(e.transferFormats.map(s=>Ot[s]).indexOf(o)>=0){if(i===ct.WebSockets&&!this._options.WebSocket||i===ct.ServerSentEvents&&!this._options.EventSource)return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it is not supported in your environment.'`),new XV(`'${ct[i]}' is not supported in your environment.`,i);this._logger.log(L.Debug,`Selecting transport '${ct[i]}'.`);try{return this.features.reconnect=i===ct.WebSockets?n:void 0,this._constructTransport(i)}catch(s){return s}}else return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it does not support the requested transfer format '${Ot[o]}'.`),new Error(`'${ct[i]}' does not support ${Ot[o]}.`);else return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it was disabled by the client.`),new YV(`'${ct[i]}' is disabled by the client.`,i)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(L.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(L.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(L.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(L.Error,`Connection disconnected with error '${e}'.`):this._logger.log(L.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log(L.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(r){this._logger.log(L.Error,`HttpConnection.onclose(${e}) threw error '${r}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!Qe.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const r=window.document.createElement("a");return r.href=e,this._logger.log(L.Information,`Normalizing '${e}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(e){const r=new URL(e);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const o=new URLSearchParams(r.searchParams);return o.has("negotiateVersion")||o.append("negotiateVersion",this._negotiateVersion.toString()),o.has("useStatefulReconnect")?o.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&o.append("useStatefulReconnect","true"),r.search=o.toString(),r.toString()}}function IG(t,e){return!t||(e&t)!==0}class qy{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new zu,this._transportResult=new zu,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new zu),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new zu;const e=this._transportResult;this._transportResult=void 0;const r=typeof this._buffer[0]=="string"?this._buffer.join(""):qy._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),e.resolve()}catch(o){e.reject(o)}}}static _concatBuffers(e){const r=e.map(i=>i.byteLength).reduce((i,a)=>i+a),o=new Uint8Array(r);let n=0;for(const i of e)o.set(new Uint8Array(i),n),n+=i.byteLength;return o.buffer}}class zu{constructor(){this.promise=new Promise((e,r)=>[this._resolver,this._rejecter]=[e,r])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const AG="json";class RG{constructor(){this.name=AG,this.version=2,this.transferFormat=Ot.Text}parseMessages(e,r){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];r===null&&(r=ks.instance);const o=Cr.parse(e),n=[];for(const i of o){const a=JSON.parse(i);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case Z.Invocation:this._isInvocationMessage(a);break;case Z.StreamItem:this._isStreamItemMessage(a);break;case Z.Completion:this._isCompletionMessage(a);break;case Z.Ping:break;case Z.Close:break;case Z.Ack:this._isAckMessage(a);break;case Z.Sequence:this._isSequenceMessage(a);break;default:r.log(L.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n}writeMessage(e){return Cr.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,r){if(typeof e!="string"||e==="")throw new Error(r)}}const PG={trace:L.Trace,debug:L.Debug,info:L.Information,information:L.Information,warn:L.Warning,warning:L.Warning,error:L.Error,critical:L.Critical,none:L.None};function BG(t){const e=PG[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}class DI{configureLogging(e){if(gt.isRequired(e,"logging"),NG(e))this.logger=e;else if(typeof e=="string"){const r=BG(e);this.logger=new pf(r)}else this.logger=new pf(e);return this}withUrl(e,r){return gt.isRequired(e,"url"),gt.isNotEmpty(e,"url"),this.url=e,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(e){return gt.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Vk(e):this.reconnectPolicy=e:this.reconnectPolicy=new Vk,this}withServerTimeout(e){return gt.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return gt.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new EG(this.url,e);return Ly.create(r,this.logger||ks.instance,this.protocol||new RG,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function NG(t){return t.log!==void 0}var wi=4294967295;function zG(t,e,r){var o=r/4294967296,n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function jI(t,e,r){var o=Math.floor(r/4294967296),n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function FI(t,e){var r=t.getInt32(e),o=t.getUint32(e+4);return r*4294967296+o}function MG(t,e){var r=t.getUint32(e),o=t.getUint32(e+4);return r*4294967296+o}var Hy={},Op,Dp,jp,kh=(typeof process>"u"||((Op=process==null?void 0:Hy)===null||Op===void 0?void 0:Op.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function Yk(t){for(var e=t.length,r=0,o=0;o=55296&&n<=56319&&o>6&31|192;else{if(a>=55296&&a<=56319&&i>18&7|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128):(e[n++]=a>>12&15|224,e[n++]=a>>6&63|128)}else{e[n++]=a;continue}e[n++]=a&63|128}}var zc=kh?new TextEncoder:void 0,DG=kh?typeof process<"u"&&((Dp=process==null?void 0:Hy)===null||Dp===void 0?void 0:Dp.TEXT_ENCODING)!=="force"?200:0:wi;function jG(t,e,r){e.set(zc.encode(t),r)}function FG(t,e,r){zc.encodeInto(t,e.subarray(r))}var LG=zc?.encodeInto?FG:jG,qG=4096;function LI(t,e,r){for(var o=e,n=o+r,i=[],a="";o65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|d&1023),i.push(d)}else i.push(s);i.length>=qG&&(a+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(a+=String.fromCharCode.apply(String,i)),a}var HG=kh?new TextDecoder:null,UG=kh?typeof process<"u"&&((jp=process==null?void 0:Hy)===null||jp===void 0?void 0:jp.TEXT_DECODER)!=="force"?200:0:wi;function $G(t,e,r){var o=t.subarray(e,e+r);return HG.decode(o)}var Mu=function(){function t(e,r){this.type=e,this.data=r}return t}(),KG=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),bo=function(t){KG(e,t);function e(r){var o=t.call(this,r)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(o,n),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:e.name}),o}return e}(Error),WG=-1,VG=4294967296-1,GG=17179869184-1;function XG(t){var e=t.sec,r=t.nsec;if(e>=0&&r>=0&&e<=GG)if(r===0&&e<=VG){var o=new Uint8Array(4),n=new DataView(o.buffer);return n.setUint32(0,e),o}else{var i=e/4294967296,a=e&4294967295,o=new Uint8Array(8),n=new DataView(o.buffer);return n.setUint32(0,r<<2|i&3),n.setUint32(4,a),o}else{var o=new Uint8Array(12),n=new DataView(o.buffer);return n.setUint32(0,r),jI(n,4,e),o}}function YG(t){var e=t.getTime(),r=Math.floor(e/1e3),o=(e-r*1e3)*1e6,n=Math.floor(o/1e9);return{sec:r+n,nsec:o-n*1e9}}function QG(t){if(t instanceof Date){var e=YG(t);return XG(e)}else return null}function ZG(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var r=e.getUint32(0),o=0;return{sec:r,nsec:o}}case 8:{var n=e.getUint32(0),i=e.getUint32(4),r=(n&3)*4294967296+i,o=n>>>2;return{sec:r,nsec:o}}case 12:{var r=FI(e,4),o=e.getUint32(0);return{sec:r,nsec:o}}default:throw new bo("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function JG(t){var e=ZG(t);return new Date(e.sec*1e3+e.nsec/1e6)}var eX={type:WG,encode:QG,decode:JG},qI=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(eX)}return t.prototype.register=function(e){var r=e.type,o=e.encode,n=e.decode;if(r>=0)this.encoders[r]=o,this.decoders[r]=n;else{var i=1+r;this.builtInEncoders[i]=o,this.builtInDecoders[i]=n}},t.prototype.tryToEncode=function(e,r){for(var o=0;othis.maxDepth)throw new Error("Too deep objects in depth ".concat(r));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,r)},t.prototype.ensureBufferSizeToWrite=function(e){var r=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var r=5,o=e.length;if(o>DG){var n=Yk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),LG(e,this.bytes,this.pos),this.pos+=n}else{var n=Yk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),OG(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,r){var o=this.extensionCodec.tryToEncode(e,this.context);if(o!=null)this.encodeExtension(o);else if(Array.isArray(e))this.encodeArray(e,r);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,r);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var r=e.byteLength;if(r<256)this.writeU8(196),this.writeU8(r);else if(r<65536)this.writeU8(197),this.writeU16(r);else if(r<4294967296)this.writeU8(198),this.writeU32(r);else throw new Error("Too large binary: ".concat(r));var o=gf(e);this.writeU8a(o)},t.prototype.encodeArray=function(e,r){var o=e.length;if(o<16)this.writeU8(144+o);else if(o<65536)this.writeU8(220),this.writeU16(o);else if(o<4294967296)this.writeU8(221),this.writeU32(o);else throw new Error("Too large array: ".concat(o));for(var n=0,i=e;n0&&e<=this.maxKeyLength},t.prototype.find=function(e,r,o){var n=this.caches[o-1];e:for(var i=0,a=n;i=this.maxLengthPerKey?o[Math.random()*o.length|0]=n:o.push(n)},t.prototype.decode=function(e,r,o){var n=this.find(e,r,o);if(n!=null)return this.hit++,n;this.miss++;var i=LI(e,r,o),a=Uint8Array.prototype.slice.call(e,r,r+o);return this.store(a,i),i},t}(),cX=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):n(u.value).then(s,c)}l((o=o.apply(t,e||[])).next())})},Lp=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]1||s(f,h)})})}function s(f,h){try{c(o[f](h))}catch(p){d(i[0][3],p)}}function c(f){f.value instanceof Ya?Promise.resolve(f.value.v).then(l,u):d(i[0][2],f)}function l(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),i.shift(),i.length&&s(i[0][0],i[0][1])}},uX=function(t){var e=typeof t;return e==="string"||e==="number"},Zs=-1,Uy=new DataView(new ArrayBuffer(0)),dX=new Uint8Array(Uy.buffer),qm=function(){try{Uy.getInt8(0)}catch(t){return t.constructor}throw new Error("never reached")}(),Zk=new qm("Insufficient data"),fX=new sX,hX=function(){function t(e,r,o,n,i,a,s,c){e===void 0&&(e=qI.defaultCodec),r===void 0&&(r=void 0),o===void 0&&(o=wi),n===void 0&&(n=wi),i===void 0&&(i=wi),a===void 0&&(a=wi),s===void 0&&(s=wi),c===void 0&&(c=fX),this.extensionCodec=e,this.context=r,this.maxStrLength=o,this.maxBinLength=n,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=c,this.totalPos=0,this.pos=0,this.view=Uy,this.bytes=dX,this.headByte=Zs,this.stack=[]}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Zs,this.stack.length=0},t.prototype.setBuffer=function(e){this.bytes=gf(e),this.view=tX(this.bytes),this.pos=0},t.prototype.appendBuffer=function(e){if(this.headByte===Zs&&!this.hasRemaining(1))this.setBuffer(e);else{var r=this.bytes.subarray(this.pos),o=gf(e),n=new Uint8Array(r.length+o.length);n.set(r),n.set(o,r.length),this.setBuffer(n)}},t.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},t.prototype.createExtraByteError=function(e){var r=this,o=r.view,n=r.pos;return new RangeError("Extra ".concat(o.byteLength-n," of ").concat(o.byteLength," byte(s) found at buffer[").concat(e,"]"))},t.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var r=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return r},t.prototype.decodeMulti=function(e){return Lp(this,function(r){switch(r.label){case 0:this.reinitializeState(),this.setBuffer(e),r.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return r.sent(),[3,1];case 3:return[2]}})},t.prototype.decodeAsync=function(e){var r,o,n,i;return cX(this,void 0,void 0,function(){var a,s,c,l,u,d,f,h;return Lp(this,function(p){switch(p.label){case 0:a=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),r=Qk(e),p.label=2;case 2:return[4,r.next()];case 3:if(o=p.sent(),!!o.done)return[3,5];if(c=o.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(c);try{s=this.doDecodeSync(),a=!0}catch(g){if(!(g instanceof qm))throw g}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return l=p.sent(),n={error:l},[3,12];case 7:return p.trys.push([7,,10,11]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(n)throw n.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,d=u.headByte,f=u.pos,h=u.totalPos,new RangeError("Insufficient data in parsing ".concat(Fp(d)," at ").concat(h," (").concat(f," in the current buffer)"))}})})},t.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},t.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},t.prototype.decodeMultiAsync=function(e,r){return lX(this,arguments,function(){var n,i,a,s,c,l,u,d,f;return Lp(this,function(h){switch(h.label){case 0:n=r,i=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),a=Qk(e),h.label=2;case 2:return[4,Ya(a.next())];case 3:if(s=h.sent(),!!s.done)return[3,12];if(c=s.value,r&&i===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(c),n&&(i=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,Ya(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),--i===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(l=h.sent(),!(l instanceof qm))throw l;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=h.sent(),d={error:u},[3,19];case 14:return h.trys.push([14,,17,18]),s&&!s.done&&(f=a.return)?[4,Ya(f.call(a))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(d)throw d.error;return[7];case 18:return[7];case 19:return[2]}})})},t.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),r=void 0;if(e>=224)r=e-256;else if(e<192)if(e<128)r=e;else if(e<144){var o=e-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e<160){var o=e-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else{var n=e-160;r=this.decodeUtf8String(n,0)}else if(e===192)r=null;else if(e===194)r=!1;else if(e===195)r=!0;else if(e===202)r=this.readF32();else if(e===203)r=this.readF64();else if(e===204)r=this.readU8();else if(e===205)r=this.readU16();else if(e===206)r=this.readU32();else if(e===207)r=this.readU64();else if(e===208)r=this.readI8();else if(e===209)r=this.readI16();else if(e===210)r=this.readI32();else if(e===211)r=this.readI64();else if(e===217){var n=this.lookU8();r=this.decodeUtf8String(n,1)}else if(e===218){var n=this.lookU16();r=this.decodeUtf8String(n,2)}else if(e===219){var n=this.lookU32();r=this.decodeUtf8String(n,4)}else if(e===220){var o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===221){var o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===222){var o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===223){var o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===196){var o=this.lookU8();r=this.decodeBinary(o,1)}else if(e===197){var o=this.lookU16();r=this.decodeBinary(o,2)}else if(e===198){var o=this.lookU32();r=this.decodeBinary(o,4)}else if(e===212)r=this.decodeExtension(1,0);else if(e===213)r=this.decodeExtension(2,0);else if(e===214)r=this.decodeExtension(4,0);else if(e===215)r=this.decodeExtension(8,0);else if(e===216)r=this.decodeExtension(16,0);else if(e===199){var o=this.lookU8();r=this.decodeExtension(o,1)}else if(e===200){var o=this.lookU16();r=this.decodeExtension(o,2)}else if(e===201){var o=this.lookU32();r=this.decodeExtension(o,4)}else throw new bo("Unrecognized type byte: ".concat(Fp(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(a.type===0)if(a.array[a.position]=r,a.position++,a.position===a.size)i.pop(),r=a.array;else continue e;else if(a.type===1){if(!uX(r))throw new bo("The type of key must be string or number but "+typeof r);if(r==="__proto__")throw new bo("The key __proto__ is not allowed");a.key=r,a.type=2;continue e}else if(a.map[a.key]=r,a.readCount++,a.readCount===a.size)i.pop(),r=a.map;else{a.key=null,a.type=1;continue e}}return r}},t.prototype.readHeadByte=function(){return this.headByte===Zs&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=Zs},t.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new bo("Unrecognized array type byte: ".concat(Fp(e)))}}},t.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new bo("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},t.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new bo("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},t.prototype.decodeUtf8String=function(e,r){var o;if(e>this.maxStrLength)throw new bo("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLengthUG?i=$G(this.bytes,n,e):i=LI(this.bytes,n,e),this.pos+=r+e,i},t.prototype.stateIsMapKey=function(){if(this.stack.length>0){var e=this.stack[this.stack.length-1];return e.type===1}return!1},t.prototype.decodeBinary=function(e,r){if(e>this.maxBinLength)throw new bo("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+r))throw Zk;var o=this.pos+r,n=this.bytes.subarray(o,o+e);return this.pos+=r+e,n},t.prototype.decodeExtension=function(e,r){if(e>this.maxExtLength)throw new bo("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var o=this.view.getInt8(this.pos+r),n=this.decodeBinary(e,r+1);return this.extensionCodec.decode(n,o,this.context)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},t.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},t.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},t.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},t.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},t.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},t.prototype.readU64=function(){var e=MG(this.view,this.pos);return this.pos+=8,e},t.prototype.readI64=function(){var e=FI(this.view,this.pos);return this.pos+=8,e},t.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},t.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},t}();class vo{static write(e){let r=e.byteLength||e.length;const o=[];do{let i=r&127;r=r>>7,r>0&&(i|=128),o.push(i)}while(r>0);r=e.byteLength||e.length;const n=new Uint8Array(o.length+r);return n.set(o,0),n.set(e,o.length),n.buffer}static parse(e){const r=[],o=new Uint8Array(e),n=5,i=[0,7,14,21,28];for(let a=0;a7)throw new Error("Messages bigger than 2GB are not supported.");if(o.byteLength>=a+s+c)r.push(o.slice?o.slice(a+s,a+s+c):o.subarray(a+s,a+s+c));else throw new Error("Incomplete message.");a=a+s+c}return r}}function pX(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}const gX=new Uint8Array([145,Z.Ping]);class HI{constructor(e){this.name="messagepack",this.version=2,this.transferFormat=Ot.Binary,this._errorResult=1,this._voidResult=2,this._nonVoidResult=3,e=e||{},this._encoder=new nX(e.extensionCodec,e.context,e.maxDepth,e.initialBufferSize,e.sortKeys,e.forceFloat32,e.ignoreUndefined,e.forceIntegerToFloat),this._decoder=new hX(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength)}parseMessages(e,r){if(!pX(e))throw new Error("Invalid input for MessagePack hub protocol. Expected an ArrayBuffer.");r===null&&(r=ks.instance);const o=vo.parse(e),n=[];for(const i of o){const a=this._parseMessage(i,r);a&&n.push(a)}return n}writeMessage(e){switch(e.type){case Z.Invocation:return this._writeInvocation(e);case Z.StreamInvocation:return this._writeStreamInvocation(e);case Z.StreamItem:return this._writeStreamItem(e);case Z.Completion:return this._writeCompletion(e);case Z.Ping:return vo.write(gX);case Z.CancelInvocation:return this._writeCancelInvocation(e);case Z.Close:return this._writeClose();case Z.Ack:return this._writeAck(e);case Z.Sequence:return this._writeSequence(e);default:throw new Error("Invalid message type.")}}_parseMessage(e,r){if(e.length===0)throw new Error("Invalid payload.");const o=this._decoder.decode(e);if(o.length===0||!(o instanceof Array))throw new Error("Invalid payload.");const n=o[0];switch(n){case Z.Invocation:return this._createInvocationMessage(this._readHeaders(o),o);case Z.StreamItem:return this._createStreamItemMessage(this._readHeaders(o),o);case Z.Completion:return this._createCompletionMessage(this._readHeaders(o),o);case Z.Ping:return this._createPingMessage(o);case Z.Close:return this._createCloseMessage(o);case Z.Ack:return this._createAckMessage(o);case Z.Sequence:return this._createSequenceMessage(o);default:return r.log(L.Information,"Unknown message type '"+n+"' ignored."),null}}_createCloseMessage(e){if(e.length<2)throw new Error("Invalid payload for Close message.");return{allowReconnect:e.length>=3?e[2]:void 0,error:e[1],type:Z.Close}}_createPingMessage(e){if(e.length<1)throw new Error("Invalid payload for Ping message.");return{type:Z.Ping}}_createInvocationMessage(e,r){if(r.length<5)throw new Error("Invalid payload for Invocation message.");const o=r[2];return o?{arguments:r[4],headers:e,invocationId:o,streamIds:[],target:r[3],type:Z.Invocation}:{arguments:r[4],headers:e,streamIds:[],target:r[3],type:Z.Invocation}}_createStreamItemMessage(e,r){if(r.length<4)throw new Error("Invalid payload for StreamItem message.");return{headers:e,invocationId:r[2],item:r[3],type:Z.StreamItem}}_createCompletionMessage(e,r){if(r.length<4)throw new Error("Invalid payload for Completion message.");const o=r[3];if(o!==this._voidResult&&r.length<5)throw new Error("Invalid payload for Completion message.");let n,i;switch(o){case this._errorResult:n=r[4];break;case this._nonVoidResult:i=r[4];break}return{error:n,headers:e,invocationId:r[2],result:i,type:Z.Completion}}_createAckMessage(e){if(e.length<1)throw new Error("Invalid payload for Ack message.");return{sequenceId:e[1],type:Z.Ack}}_createSequenceMessage(e){if(e.length<1)throw new Error("Invalid payload for Sequence message.");return{sequenceId:e[1],type:Z.Sequence}}_writeInvocation(e){let r;return e.streamIds?r=this._encoder.encode([Z.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([Z.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments]),vo.write(r.slice())}_writeStreamInvocation(e){let r;return e.streamIds?r=this._encoder.encode([Z.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([Z.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments]),vo.write(r.slice())}_writeStreamItem(e){const r=this._encoder.encode([Z.StreamItem,e.headers||{},e.invocationId,e.item]);return vo.write(r.slice())}_writeCompletion(e){const r=e.error?this._errorResult:e.result!==void 0?this._nonVoidResult:this._voidResult;let o;switch(r){case this._errorResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r,e.error]);break;case this._voidResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r]);break;case this._nonVoidResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r,e.result]);break}return vo.write(o.slice())}_writeCancelInvocation(e){const r=this._encoder.encode([Z.CancelInvocation,e.headers||{},e.invocationId]);return vo.write(r.slice())}_writeClose(){const e=this._encoder.encode([Z.Close,null]);return vo.write(e.slice())}_writeAck(e){const r=this._encoder.encode([Z.Ack,e.sequenceId]);return vo.write(r.slice())}_writeSequence(e){const r=this._encoder.encode([Z.Sequence,e.sequenceId]);return vo.write(r.slice())}_readHeaders(e){const r=e[1];if(typeof r!="object")throw new Error("Invalid headers.");return r}}function rn(t){return typeof t=="function"}function UI(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var qp=UI(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: + `),this.throw=console.log.bind(this,this.baseColor(105,"throw"),"↓ The Following Error is Thrown ↓")}With(...e){return new sa(this.namespace,...e)}baseColor(e,r){return`\x1B[${e};30;1m ${r.toUpperCase()} \x1B[0m\x1B[100;97m ${Ct().format("YY-M-D H:m:s")} \x1B[1m\x1B[40;97m ${this.namespace} `}}class Ni extends Error{constructor(e,r){const o=new.target.prototype;super(`${e}: Status code '${r}'`),this.statusCode=r,this.__proto__=o}}class Fy extends Error{constructor(e="A timeout occurred."){const r=new.target.prototype;super(e),this.__proto__=r}}class oo extends Error{constructor(e="An abort occurred."){const r=new.target.prototype;super(e),this.__proto__=r}}class YV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=o}}class QV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=o}}class ZV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=o}}class $k extends Error{constructor(e){const r=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}}class JV extends Error{constructor(e,r){const o=new.target.prototype;super(e),this.innerErrors=r,this.__proto__=o}}class OI{constructor(e,r,o){this.statusCode=e,this.statusText=r,this.content=o}}class yh{get(e,r){return this.send({...r,method:"GET",url:e})}post(e,r){return this.send({...r,method:"POST",url:e})}delete(e,r){return this.send({...r,method:"DELETE",url:e})}getCookieString(e){return""}}var L;(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"})(L||(L={}));class ks{constructor(){}log(e,r){}}ks.instance=new ks;const eG="8.0.0";class gt{static isRequired(e,r){if(e==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(e,r){if(!e||e.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(e,r,o){if(!(e in r))throw new Error(`Unknown ${o} value: ${e}.`)}}class Qe{static get isBrowser(){return!Qe.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Qe.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Qe.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function gl(t,e){let r="";return Yi(t)?(r=`Binary data of length ${t.byteLength}`,e&&(r+=`. Content: '${tG(t)}'`)):typeof t=="string"&&(r=`String data of length ${t.length}`,e&&(r+=`. Content: '${t}'`)),r}function tG(t){const e=new Uint8Array(t);let r="";return e.forEach(o=>{const n=o<16?"0":"";r+=`0x${n}${o.toString(16)} `}),r.substr(0,r.length-1)}function Yi(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}async function DI(t,e,r,o,n,i){const a={},[s,c]=_s();a[s]=c,t.log(L.Trace,`(${e} transport) sending data. ${gl(n,i.logMessageContent)}.`);const l=Yi(n)?"arraybuffer":"text",u=await r.post(o,{content:n,headers:{...a,...i.headers},responseType:l,timeout:i.timeout,withCredentials:i.withCredentials});t.log(L.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}function rG(t){return t===void 0?new hf(L.Information):t===null?ks.instance:t.log!==void 0?t:new hf(t)}class oG{constructor(e,r){this._subject=e,this._observer=r}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}}class hf{constructor(e){this._minLevel=e,this.out=console}log(e,r){if(e>=this._minLevel){const o=`[${new Date().toISOString()}] ${L[e]}: ${r}`;switch(e){case L.Critical:case L.Error:this.out.error(o);break;case L.Warning:this.out.warn(o);break;case L.Information:this.out.info(o);break;default:this.out.log(o);break}}}}function _s(){let t="X-SignalR-User-Agent";return Qe.isNode&&(t="User-Agent"),[t,nG(eG,iG(),sG(),aG())]}function nG(t,e,r,o){let n="Microsoft SignalR/";const i=t.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${t}; `,e&&e!==""?n+=`${e}; `:n+="Unknown OS; ",n+=`${r}`,o?n+=`; ${o}`:n+="; Unknown Runtime Version",n+=")",n}function iG(){if(Qe.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function aG(){if(Qe.isNode)return process.versions.node}function sG(){return Qe.isNode?"NodeJS":"Browser"}function Kk(t){return t.stack?t.stack:t.message?t.message:`${t}`}function cG(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}function lG(t){return typeof fetch>"u"||Qe.isNode?(t._jar=new(require("tough-cookie")).CookieJar,typeof fetch>"u"?t._fetchType=require("node-fetch"):t._fetchType=fetch,t._fetchType=require("fetch-cookie")(t._fetchType,t._jar),!0):!1}function uG(t){return typeof AbortController>"u"?(t._abortControllerType=require("abort-controller"),!0):!1}function dG(){return require("ws")}function fG(){return require("eventsource")}class hG extends yh{constructor(e){super(),this._logger=e;const r={_fetchType:void 0,_jar:void 0};lG(r)?(this._fetchType=r._fetchType,this._jar=r._jar):this._fetchType=fetch.bind(cG()),this._abortControllerType=AbortController;const o={_abortControllerType:this._abortControllerType};uG(o)&&(this._abortControllerType=o._abortControllerType)}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new oo;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new this._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new oo});let n=null;if(e.timeout){const c=e.timeout;n=setTimeout(()=>{r.abort(),this._logger.log(L.Warning,"Timeout from HTTP request."),o=new Fy},c)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},Yi(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(c){throw o||(this._logger.log(L.Warning,`Error from HTTP request. ${c}.`),c)}finally{n&&clearTimeout(n),e.abortSignal&&(e.abortSignal.onabort=null)}if(!i.ok){const c=await Wk(i,"text");throw new Ni(c||i.statusText,i.status)}const s=await Wk(i,e.responseType);return new OI(i.status,i.statusText,s)}getCookieString(e){let r="";return Qe.isNode&&this._jar&&this._jar.getCookies(e,(o,n)=>r=n.join("; ")),r}}function Wk(t,e){let r;switch(e){case"arraybuffer":r=t.arrayBuffer();break;case"text":r=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:r=t.text();break}return r}class pG extends yh{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new oo):e.method?e.url?new Promise((r,o)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(Yi(e.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(a=>{n.setRequestHeader(a,i[a])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),o(new oo)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new OI(n.status,n.statusText,n.response||n.responseText)):o(new Ni(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(L.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),o(new Ni(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(L.Warning,"Timeout from HTTP request."),o(new Fy)},n.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class gG extends yh{constructor(e){if(super(),typeof fetch<"u"||Qe.isNode)this._httpClient=new hG(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new pG(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new oo):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class Cr{static write(e){return`${e}${Cr.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Cr.RecordSeparator)throw new Error("Message is incomplete.");const r=e.split(Cr.RecordSeparator);return r.pop(),r}}Cr.RecordSeparatorCode=30;Cr.RecordSeparator=String.fromCharCode(Cr.RecordSeparatorCode);class mG{writeHandshakeRequest(e){return Cr.write(JSON.stringify(e))}parseHandshakeResponse(e){let r,o;if(Yi(e)){const s=new Uint8Array(e),c=s.indexOf(Cr.RecordSeparatorCode);if(c===-1)throw new Error("Message is incomplete.");const l=c+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,l))),o=s.byteLength>l?s.slice(l).buffer:null}else{const s=e,c=s.indexOf(Cr.RecordSeparator);if(c===-1)throw new Error("Message is incomplete.");const l=c+1;r=s.substring(0,l),o=s.length>l?s.substring(l):null}const n=Cr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[o,i]}}var Z;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(Z||(Z={}));let vG=class{constructor(){this.observers=[]}next(e){for(const r of this.observers)r.next(e)}error(e){for(const r of this.observers)r.error&&r.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new oG(this,e)}};class bG{constructor(e,r,o){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=r,this._bufferSize=o}async _send(e){const r=this._protocol.writeMessage(e);let o=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let n=()=>{},i=()=>{};Yi(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(o=new Promise((a,s)=>{n=a,i=s})),this._messages.push(new yG(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await o}_ack(e){let r=-1;for(let o=0;othis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:Z.Sequence,sequenceId:e}));const r=this._messages;for(const o of r)await this._connection.send(o._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const r of this._messages)r._rejector(e)}_isInvocationMessage(e){switch(e.type){case Z.Invocation:case Z.StreamItem:case Z.Completion:case Z.StreamInvocation:case Z.CancelInvocation:return!0;case Z.Close:case Z.Sequence:case Z.Ping:case Z.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:Z.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class yG{constructor(e,r,o,n){this._message=e,this._id=r,this._resolver=o,this._rejector=n}}const wG=30*1e3,kG=15*1e3,_G=1e5;var Pe;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(Pe||(Pe={}));class Ly{static create(e,r,o,n,i,a,s){return new Ly(e,r,o,n,i,a,s)}constructor(e,r,o,n,i,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(L.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},gt.isRequired(e,"connection"),gt.isRequired(r,"logger"),gt.isRequired(o,"protocol"),this.serverTimeoutInMilliseconds=i??wG,this.keepAliveIntervalInMilliseconds=a??kG,this._statefulReconnectBufferSize=s??_G,this._logger=r,this._protocol=o,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new mG,this.connection.onreceive=c=>this._processIncomingData(c),this.connection.onclose=c=>this._connectionClosed(c),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:Z.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==Pe.Disconnected&&this._connectionState!==Pe.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Pe.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Pe.Connecting,this._logger.log(L.Debug,"Starting HubConnection.");try{await this._startInternal(),Qe.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Pe.Connected,this._connectionStarted=!0,this._logger.log(L.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=Pe.Disconnected,this._logger.log(L.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((r,o)=>{this._handshakeResolver=r,this._handshakeRejecter=o});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);const o={protocol:this._protocol.name,version:r};if(this._logger.log(L.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)),this._logger.log(L.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new bG(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log(L.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===Pe.Disconnected)return this._logger.log(L.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Pe.Disconnecting)return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return this._connectionState=Pe.Disconnecting,this._logger.log(L.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(L.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Pe.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new oo("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(e,r,n);let a;const s=new vG;return s.cancelCallback=()=>{const c=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],a.then(()=>this._sendWithProtocol(c))},this._callbacks[i.invocationId]=(c,l)=>{if(l){s.error(l);return}else c&&(c.type===Z.Completion?c.error?s.error(new Error(c.error)):s.complete():s.next(c.item))},a=this._sendWithProtocol(i).catch(c=>{s.error(c),delete this._callbacks[i.invocationId]}),this._launchStreams(o,a),s}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(e,r,!0,n));return this._launchStreams(o,i),i}invoke(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createInvocation(e,r,!1,n);return new Promise((s,c)=>{this._callbacks[i.invocationId]=(u,d)=>{if(d){c(d);return}else u&&(u.type===Z.Completion?u.error?c(new Error(u.error)):s(u.result):c(new Error(`Unexpected message type: ${u.type}`)))};const l=this._sendWithProtocol(i).catch(u=>{c(u),delete this._callbacks[i.invocationId]});this._launchStreams(o,l)})}on(e,r){!e||!r||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(r)===-1&&this._methods[e].push(r))}off(e,r){if(!e)return;e=e.toLowerCase();const o=this._methods[e];if(o)if(r){const n=o.indexOf(r);n!==-1&&(o.splice(n,1),o.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const r=this._protocol.parseMessages(e,this._logger);for(const o of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(o)))switch(o.type){case Z.Invocation:this._invokeClientMethod(o);break;case Z.StreamItem:case Z.Completion:{const n=this._callbacks[o.invocationId];if(n){o.type===Z.Completion&&delete this._callbacks[o.invocationId];try{n(o)}catch(i){this._logger.log(L.Error,`Stream callback threw error: ${Kk(i)}`)}}break}case Z.Ping:break;case Z.Close:{this._logger.log(L.Information,"Close message received from server.");const n=o.error?new Error("Server returned an error on close: "+o.error):void 0;o.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case Z.Ack:this._messageBuffer&&this._messageBuffer._ack(o);break;case Z.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(o);break;default:this._logger.log(L.Warning,`Invalid message type: ${o.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let r,o;try{[o,r]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const i="Error parsing handshake response: "+n;this._logger.log(L.Error,i);const a=new Error(i);throw this._handshakeRejecter(a),a}if(r.error){const n="Server returned handshake error: "+r.error;this._logger.log(L.Error,n);const i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log(L.Debug,"Server handshake complete.");return this._handshakeResolver(),o}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Pe.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const r=e.target.toLowerCase(),o=this._methods[r];if(!o){this._logger.log(L.Warning,`No client method with the name '${r}' found.`),e.invocationId&&(this._logger.log(L.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const n=o.slice(),i=!!e.invocationId;let a,s,c;for(const l of n)try{const u=a;a=await l.apply(this,e.arguments),i&&a&&u&&(this._logger.log(L.Error,`Multiple results provided for '${r}'. Sending error to server.`),c=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(L.Error,`A callback for the method '${r}' threw error '${u}'.`)}c?await this._sendWithProtocol(c):i?(s?c=this._createCompletionMessage(e.invocationId,`${s}`,null):a!==void 0?c=this._createCompletionMessage(e.invocationId,null,a):(this._logger.log(L.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),c=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(c)):a&&this._logger.log(L.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log(L.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new oo("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Pe.Disconnecting?this._completeClose(e):this._connectionState===Pe.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===Pe.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),Qe.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[e]))}catch(r){this._logger.log(L.Error,`An onclose callback called with error '${e}' threw error '${r}'.`)}}}async _reconnect(e){const r=Date.now();let o=0,n=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(o++,0,n);if(i===null){this._logger.log(L.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=Pe.Reconnecting,e?this._logger.log(L.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(L.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[e]))}catch(a){this._logger.log(L.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(L.Information,`Reconnect attempt number ${o} will start in ${i} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Pe.Connected,this._logger.log(L.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(L.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(L.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==Pe.Reconnecting){this._logger.log(L.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Pe.Disconnecting&&this._completeClose();return}n=a instanceof Error?a:new Error(a.toString()),i=this._getNextRetryDelay(o++,Date.now()-r,n)}}this._logger.log(L.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,r,o){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:e,retryReason:o})}catch(n){return this._logger.log(L.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const r=this._callbacks;this._callbacks={},Object.keys(r).forEach(o=>{const n=r[o];try{n(null,e)}catch(i){this._logger.log(L.Error,`Stream 'error' callback called with '${e}' threw error: ${Kk(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,r,o,n){if(o)return n.length!==0?{arguments:r,streamIds:n,target:e,type:Z.Invocation}:{arguments:r,target:e,type:Z.Invocation};{const i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:e,type:Z.Invocation}:{arguments:r,invocationId:i.toString(),target:e,type:Z.Invocation}}}_launchStreams(e,r){if(e.length!==0){r||(r=Promise.resolve());for(const o in e)e[o].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(o,n)))}})}}_replaceStreamingParams(e){const r=[],o=[];for(let n=0;n0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const o=await this._innerClient.send(e);return r&&o.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):o}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[zi.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[zi.Authorization]&&delete e.headers[zi.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var ct;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(ct||(ct={}));var Ot;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(Ot||(Ot={}));let TG=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Gk{get pollAborted(){return this._pollAbort.aborted}constructor(e,r,o){this._httpClient=e,this._logger=r,this._pollAbort=new TG,this._options=o,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,r){if(gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._url=e,this._logger.log(L.Trace,"(LongPolling transport) Connecting."),r===Ot.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,n]=_s(),i={[o]:n,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===Ot.Binary&&(a.responseType="arraybuffer");const s=`${e}&_=${Date.now()}`;this._logger.log(L.Trace,`(LongPolling transport) polling: ${s}.`);const c=await this._httpClient.get(s,a);c.statusCode!==200?(this._logger.log(L.Error,`(LongPolling transport) Unexpected response code: ${c.statusCode}.`),this._closeError=new Ni(c.statusText||"",c.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(e,r){try{for(;this._running;)try{const o=`${e}&_=${Date.now()}`;this._logger.log(L.Trace,`(LongPolling transport) polling: ${o}.`);const n=await this._httpClient.get(o,r);n.statusCode===204?(this._logger.log(L.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log(L.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new Ni(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(L.Trace,`(LongPolling transport) data received. ${gl(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(L.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){this._running?o instanceof Fy?this._logger.log(L.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=o,this._running=!1):this._logger.log(L.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{this._logger.log(L.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?DI(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(L.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(L.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[r,o]=_s();e[r]=o;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let i;try{await this._httpClient.delete(this._url,n)}catch(a){i=a}i?i instanceof Ni&&(i.statusCode===404?this._logger.log(L.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(L.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(L.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(L.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(L.Trace,e),this.onclose(this._closeError)}}}class xG{constructor(e,r,o,n){this._httpClient=e,this._accessToken=r,this._logger=o,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,r){return gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._logger.log(L.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((o,n)=>{let i=!1;if(r!==Ot.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(Qe.isBrowser||Qe.isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(e),c={};c.Cookie=s;const[l,u]=_s();c[l]=u,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...c,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log(L.Trace,`(SSE transport) data received. ${gl(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(c){this._close(c);return}},a.onerror=s=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(L.Information,`SSE connected to ${this._url}`),this._eventSource=a,i=!0,o()}}catch(s){n(s);return}})}async send(e){return this._eventSource?DI(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class EG{constructor(e,r,o,n,i,a){this._logger=o,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=a}async connect(e,r){gt.isRequired(e,"url"),gt.isRequired(r,"transferFormat"),gt.isIn(r,Ot,"transferFormat"),this._logger.log(L.Trace,"(WebSockets transport) Connecting.");let o;return this._accessTokenFactory&&(o=await this._accessTokenFactory()),new Promise((n,i)=>{e=e.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(e);let c=!1;if(Qe.isNode||Qe.isReactNative){const l={},[u,d]=_s();l[u]=d,o&&(l[zi.Authorization]=`Bearer ${o}`),s&&(l[zi.Cookie]=s),a=new this._webSocketConstructor(e,void 0,{headers:{...l,...this._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new this._webSocketConstructor(e)),r===Ot.Binary&&(a.binaryType="arraybuffer"),a.onopen=l=>{this._logger.log(L.Information,`WebSocket connected to ${e}.`),this._webSocket=a,c=!0,n()},a.onerror=l=>{let u=null;typeof ErrorEvent<"u"&&l instanceof ErrorEvent?u=l.error:u="There was an error with the transport",this._logger.log(L.Information,`(WebSockets transport) ${u}.`)},a.onmessage=l=>{if(this._logger.log(L.Trace,`(WebSockets transport) data received. ${gl(l.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(l.data)}catch(u){this._close(u);return}},a.onclose=l=>{if(c)this._close(l);else{let u=null;typeof ErrorEvent<"u"&&l instanceof ErrorEvent?u=l.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(u))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(L.Trace,`(WebSockets transport) sending data. ${gl(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(L.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const Xk=100;class IG{constructor(e,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,gt.isRequired(e,"url"),this._logger=rG(r.logger),this.baseUrl=this._resolveUrl(e),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let o=null,n=null;Qe.isNode&&typeof require<"u"&&(o=dG(),n=fG()),!Qe.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:Qe.isNode&&!r.WebSocket&&o&&(r.WebSocket=o),!Qe.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:Qe.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new CG(r.httpClient||new gG(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(e){if(e=e||Ot.Binary,gt.isIn(e,Ot,"transferFormat"),this._logger.log(L.Debug,`Starting connection with transfer format '${Ot[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){const r="Failed to start the HttpConnection before stop() was called.";return this._logger.log(L.Error,r),await this._stopPromise,Promise.reject(new oo(r))}else if(this._connectionState!=="Connected"){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(L.Error,r),Promise.reject(new oo(r))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new qy(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(L.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log(L.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(L.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===ct.WebSockets)this.transport=this._constructTransport(ct.WebSockets),await this._startTransport(r,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let o=null,n=0;do{if(o=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new oo("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const i=o.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(o.url&&n0?Promise.reject(new JV(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case ct.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new EG(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ct.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new xG(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ct.LongPolling:return new Gk(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async o=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(o);return}n&&this._stopConnection(o)}:this.transport.onclose=o=>this._stopConnection(o),this.transport.connect(e,r)}_resolveTransportOrError(e,r,o,n){const i=ct[e.transport];if(i==null)return this._logger.log(L.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(AG(r,i))if(e.transferFormats.map(s=>Ot[s]).indexOf(o)>=0){if(i===ct.WebSockets&&!this._options.WebSocket||i===ct.ServerSentEvents&&!this._options.EventSource)return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it is not supported in your environment.'`),new YV(`'${ct[i]}' is not supported in your environment.`,i);this._logger.log(L.Debug,`Selecting transport '${ct[i]}'.`);try{return this.features.reconnect=i===ct.WebSockets?n:void 0,this._constructTransport(i)}catch(s){return s}}else return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it does not support the requested transfer format '${Ot[o]}'.`),new Error(`'${ct[i]}' does not support ${Ot[o]}.`);else return this._logger.log(L.Debug,`Skipping transport '${ct[i]}' because it was disabled by the client.`),new QV(`'${ct[i]}' is disabled by the client.`,i)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log(L.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(L.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(L.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log(L.Error,`Connection disconnected with error '${e}'.`):this._logger.log(L.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log(L.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(r){this._logger.log(L.Error,`HttpConnection.onclose(${e}) threw error '${r}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!Qe.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const r=window.document.createElement("a");return r.href=e,this._logger.log(L.Information,`Normalizing '${e}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(e){const r=new URL(e);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const o=new URLSearchParams(r.searchParams);return o.has("negotiateVersion")||o.append("negotiateVersion",this._negotiateVersion.toString()),o.has("useStatefulReconnect")?o.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&o.append("useStatefulReconnect","true"),r.search=o.toString(),r.toString()}}function AG(t,e){return!t||(e&t)!==0}class qy{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new Nu,this._transportResult=new Nu,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Nu),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Nu;const e=this._transportResult;this._transportResult=void 0;const r=typeof this._buffer[0]=="string"?this._buffer.join(""):qy._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),e.resolve()}catch(o){e.reject(o)}}}static _concatBuffers(e){const r=e.map(i=>i.byteLength).reduce((i,a)=>i+a),o=new Uint8Array(r);let n=0;for(const i of e)o.set(new Uint8Array(i),n),n+=i.byteLength;return o.buffer}}class Nu{constructor(){this.promise=new Promise((e,r)=>[this._resolver,this._rejecter]=[e,r])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const RG="json";class PG{constructor(){this.name=RG,this.version=2,this.transferFormat=Ot.Text}parseMessages(e,r){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];r===null&&(r=ks.instance);const o=Cr.parse(e),n=[];for(const i of o){const a=JSON.parse(i);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case Z.Invocation:this._isInvocationMessage(a);break;case Z.StreamItem:this._isStreamItemMessage(a);break;case Z.Completion:this._isCompletionMessage(a);break;case Z.Ping:break;case Z.Close:break;case Z.Ack:this._isAckMessage(a);break;case Z.Sequence:this._isSequenceMessage(a);break;default:r.log(L.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n}writeMessage(e){return Cr.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,r){if(typeof e!="string"||e==="")throw new Error(r)}}const BG={trace:L.Trace,debug:L.Debug,info:L.Information,information:L.Information,warn:L.Warning,warning:L.Warning,error:L.Error,critical:L.Critical,none:L.None};function NG(t){const e=BG[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}class jI{configureLogging(e){if(gt.isRequired(e,"logging"),zG(e))this.logger=e;else if(typeof e=="string"){const r=NG(e);this.logger=new hf(r)}else this.logger=new hf(e);return this}withUrl(e,r){return gt.isRequired(e,"url"),gt.isNotEmpty(e,"url"),this.url=e,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(e){return gt.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Vk(e):this.reconnectPolicy=e:this.reconnectPolicy=new Vk,this}withServerTimeout(e){return gt.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return gt.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new IG(this.url,e);return Ly.create(r,this.logger||ks.instance,this.protocol||new PG,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function zG(t){return t.log!==void 0}var wi=4294967295;function MG(t,e,r){var o=r/4294967296,n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function FI(t,e,r){var o=Math.floor(r/4294967296),n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function LI(t,e){var r=t.getInt32(e),o=t.getUint32(e+4);return r*4294967296+o}function OG(t,e){var r=t.getUint32(e),o=t.getUint32(e+4);return r*4294967296+o}var Hy={},Mp,Op,Dp,wh=(typeof process>"u"||((Mp=process==null?void 0:Hy)===null||Mp===void 0?void 0:Mp.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function Yk(t){for(var e=t.length,r=0,o=0;o=55296&&n<=56319&&o>6&31|192;else{if(a>=55296&&a<=56319&&i>18&7|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128):(e[n++]=a>>12&15|224,e[n++]=a>>6&63|128)}else{e[n++]=a;continue}e[n++]=a&63|128}}var zc=wh?new TextEncoder:void 0,jG=wh?typeof process<"u"&&((Op=process==null?void 0:Hy)===null||Op===void 0?void 0:Op.TEXT_ENCODING)!=="force"?200:0:wi;function FG(t,e,r){e.set(zc.encode(t),r)}function LG(t,e,r){zc.encodeInto(t,e.subarray(r))}var qG=zc?.encodeInto?LG:FG,HG=4096;function qI(t,e,r){for(var o=e,n=o+r,i=[],a="";o65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|d&1023),i.push(d)}else i.push(s);i.length>=HG&&(a+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(a+=String.fromCharCode.apply(String,i)),a}var UG=wh?new TextDecoder:null,$G=wh?typeof process<"u"&&((Dp=process==null?void 0:Hy)===null||Dp===void 0?void 0:Dp.TEXT_DECODER)!=="force"?200:0:wi;function KG(t,e,r){var o=t.subarray(e,e+r);return UG.decode(o)}var zu=function(){function t(e,r){this.type=e,this.data=r}return t}(),WG=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),bo=function(t){WG(e,t);function e(r){var o=t.call(this,r)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(o,n),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:e.name}),o}return e}(Error),VG=-1,GG=4294967296-1,XG=17179869184-1;function YG(t){var e=t.sec,r=t.nsec;if(e>=0&&r>=0&&e<=XG)if(r===0&&e<=GG){var o=new Uint8Array(4),n=new DataView(o.buffer);return n.setUint32(0,e),o}else{var i=e/4294967296,a=e&4294967295,o=new Uint8Array(8),n=new DataView(o.buffer);return n.setUint32(0,r<<2|i&3),n.setUint32(4,a),o}else{var o=new Uint8Array(12),n=new DataView(o.buffer);return n.setUint32(0,r),FI(n,4,e),o}}function QG(t){var e=t.getTime(),r=Math.floor(e/1e3),o=(e-r*1e3)*1e6,n=Math.floor(o/1e9);return{sec:r+n,nsec:o-n*1e9}}function ZG(t){if(t instanceof Date){var e=QG(t);return YG(e)}else return null}function JG(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var r=e.getUint32(0),o=0;return{sec:r,nsec:o}}case 8:{var n=e.getUint32(0),i=e.getUint32(4),r=(n&3)*4294967296+i,o=n>>>2;return{sec:r,nsec:o}}case 12:{var r=LI(e,4),o=e.getUint32(0);return{sec:r,nsec:o}}default:throw new bo("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function eX(t){var e=JG(t);return new Date(e.sec*1e3+e.nsec/1e6)}var tX={type:VG,encode:ZG,decode:eX},HI=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(tX)}return t.prototype.register=function(e){var r=e.type,o=e.encode,n=e.decode;if(r>=0)this.encoders[r]=o,this.decoders[r]=n;else{var i=1+r;this.builtInEncoders[i]=o,this.builtInDecoders[i]=n}},t.prototype.tryToEncode=function(e,r){for(var o=0;othis.maxDepth)throw new Error("Too deep objects in depth ".concat(r));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,r)},t.prototype.ensureBufferSizeToWrite=function(e){var r=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var r=5,o=e.length;if(o>jG){var n=Yk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),qG(e,this.bytes,this.pos),this.pos+=n}else{var n=Yk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),DG(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,r){var o=this.extensionCodec.tryToEncode(e,this.context);if(o!=null)this.encodeExtension(o);else if(Array.isArray(e))this.encodeArray(e,r);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,r);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var r=e.byteLength;if(r<256)this.writeU8(196),this.writeU8(r);else if(r<65536)this.writeU8(197),this.writeU16(r);else if(r<4294967296)this.writeU8(198),this.writeU32(r);else throw new Error("Too large binary: ".concat(r));var o=pf(e);this.writeU8a(o)},t.prototype.encodeArray=function(e,r){var o=e.length;if(o<16)this.writeU8(144+o);else if(o<65536)this.writeU8(220),this.writeU16(o);else if(o<4294967296)this.writeU8(221),this.writeU32(o);else throw new Error("Too large array: ".concat(o));for(var n=0,i=e;n0&&e<=this.maxKeyLength},t.prototype.find=function(e,r,o){var n=this.caches[o-1];e:for(var i=0,a=n;i=this.maxLengthPerKey?o[Math.random()*o.length|0]=n:o.push(n)},t.prototype.decode=function(e,r,o){var n=this.find(e,r,o);if(n!=null)return this.hit++,n;this.miss++;var i=qI(e,r,o),a=Uint8Array.prototype.slice.call(e,r,r+o);return this.store(a,i),i},t}(),lX=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(o.next(u))}catch(d){a(d)}}function c(u){try{l(o.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):n(u.value).then(s,c)}l((o=o.apply(t,e||[])).next())})},Fp=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]1||s(f,h)})})}function s(f,h){try{c(o[f](h))}catch(p){d(i[0][3],p)}}function c(f){f.value instanceof Ya?Promise.resolve(f.value.v).then(l,u):d(i[0][2],f)}function l(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),i.shift(),i.length&&s(i[0][0],i[0][1])}},dX=function(t){var e=typeof t;return e==="string"||e==="number"},Zs=-1,Uy=new DataView(new ArrayBuffer(0)),fX=new Uint8Array(Uy.buffer),Lm=function(){try{Uy.getInt8(0)}catch(t){return t.constructor}throw new Error("never reached")}(),Zk=new Lm("Insufficient data"),hX=new cX,pX=function(){function t(e,r,o,n,i,a,s,c){e===void 0&&(e=HI.defaultCodec),r===void 0&&(r=void 0),o===void 0&&(o=wi),n===void 0&&(n=wi),i===void 0&&(i=wi),a===void 0&&(a=wi),s===void 0&&(s=wi),c===void 0&&(c=hX),this.extensionCodec=e,this.context=r,this.maxStrLength=o,this.maxBinLength=n,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=c,this.totalPos=0,this.pos=0,this.view=Uy,this.bytes=fX,this.headByte=Zs,this.stack=[]}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Zs,this.stack.length=0},t.prototype.setBuffer=function(e){this.bytes=pf(e),this.view=rX(this.bytes),this.pos=0},t.prototype.appendBuffer=function(e){if(this.headByte===Zs&&!this.hasRemaining(1))this.setBuffer(e);else{var r=this.bytes.subarray(this.pos),o=pf(e),n=new Uint8Array(r.length+o.length);n.set(r),n.set(o,r.length),this.setBuffer(n)}},t.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},t.prototype.createExtraByteError=function(e){var r=this,o=r.view,n=r.pos;return new RangeError("Extra ".concat(o.byteLength-n," of ").concat(o.byteLength," byte(s) found at buffer[").concat(e,"]"))},t.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var r=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return r},t.prototype.decodeMulti=function(e){return Fp(this,function(r){switch(r.label){case 0:this.reinitializeState(),this.setBuffer(e),r.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return r.sent(),[3,1];case 3:return[2]}})},t.prototype.decodeAsync=function(e){var r,o,n,i;return lX(this,void 0,void 0,function(){var a,s,c,l,u,d,f,h;return Fp(this,function(p){switch(p.label){case 0:a=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),r=Qk(e),p.label=2;case 2:return[4,r.next()];case 3:if(o=p.sent(),!!o.done)return[3,5];if(c=o.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(c);try{s=this.doDecodeSync(),a=!0}catch(g){if(!(g instanceof Lm))throw g}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return l=p.sent(),n={error:l},[3,12];case 7:return p.trys.push([7,,10,11]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(n)throw n.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,d=u.headByte,f=u.pos,h=u.totalPos,new RangeError("Insufficient data in parsing ".concat(jp(d)," at ").concat(h," (").concat(f," in the current buffer)"))}})})},t.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},t.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},t.prototype.decodeMultiAsync=function(e,r){return uX(this,arguments,function(){var n,i,a,s,c,l,u,d,f;return Fp(this,function(h){switch(h.label){case 0:n=r,i=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),a=Qk(e),h.label=2;case 2:return[4,Ya(a.next())];case 3:if(s=h.sent(),!!s.done)return[3,12];if(c=s.value,r&&i===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(c),n&&(i=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,Ya(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),--i===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(l=h.sent(),!(l instanceof Lm))throw l;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=h.sent(),d={error:u},[3,19];case 14:return h.trys.push([14,,17,18]),s&&!s.done&&(f=a.return)?[4,Ya(f.call(a))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(d)throw d.error;return[7];case 18:return[7];case 19:return[2]}})})},t.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),r=void 0;if(e>=224)r=e-256;else if(e<192)if(e<128)r=e;else if(e<144){var o=e-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e<160){var o=e-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else{var n=e-160;r=this.decodeUtf8String(n,0)}else if(e===192)r=null;else if(e===194)r=!1;else if(e===195)r=!0;else if(e===202)r=this.readF32();else if(e===203)r=this.readF64();else if(e===204)r=this.readU8();else if(e===205)r=this.readU16();else if(e===206)r=this.readU32();else if(e===207)r=this.readU64();else if(e===208)r=this.readI8();else if(e===209)r=this.readI16();else if(e===210)r=this.readI32();else if(e===211)r=this.readI64();else if(e===217){var n=this.lookU8();r=this.decodeUtf8String(n,1)}else if(e===218){var n=this.lookU16();r=this.decodeUtf8String(n,2)}else if(e===219){var n=this.lookU32();r=this.decodeUtf8String(n,4)}else if(e===220){var o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===221){var o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===222){var o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===223){var o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===196){var o=this.lookU8();r=this.decodeBinary(o,1)}else if(e===197){var o=this.lookU16();r=this.decodeBinary(o,2)}else if(e===198){var o=this.lookU32();r=this.decodeBinary(o,4)}else if(e===212)r=this.decodeExtension(1,0);else if(e===213)r=this.decodeExtension(2,0);else if(e===214)r=this.decodeExtension(4,0);else if(e===215)r=this.decodeExtension(8,0);else if(e===216)r=this.decodeExtension(16,0);else if(e===199){var o=this.lookU8();r=this.decodeExtension(o,1)}else if(e===200){var o=this.lookU16();r=this.decodeExtension(o,2)}else if(e===201){var o=this.lookU32();r=this.decodeExtension(o,4)}else throw new bo("Unrecognized type byte: ".concat(jp(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(a.type===0)if(a.array[a.position]=r,a.position++,a.position===a.size)i.pop(),r=a.array;else continue e;else if(a.type===1){if(!dX(r))throw new bo("The type of key must be string or number but "+typeof r);if(r==="__proto__")throw new bo("The key __proto__ is not allowed");a.key=r,a.type=2;continue e}else if(a.map[a.key]=r,a.readCount++,a.readCount===a.size)i.pop(),r=a.map;else{a.key=null,a.type=1;continue e}}return r}},t.prototype.readHeadByte=function(){return this.headByte===Zs&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=Zs},t.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new bo("Unrecognized array type byte: ".concat(jp(e)))}}},t.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new bo("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},t.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new bo("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},t.prototype.decodeUtf8String=function(e,r){var o;if(e>this.maxStrLength)throw new bo("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLength$G?i=KG(this.bytes,n,e):i=qI(this.bytes,n,e),this.pos+=r+e,i},t.prototype.stateIsMapKey=function(){if(this.stack.length>0){var e=this.stack[this.stack.length-1];return e.type===1}return!1},t.prototype.decodeBinary=function(e,r){if(e>this.maxBinLength)throw new bo("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+r))throw Zk;var o=this.pos+r,n=this.bytes.subarray(o,o+e);return this.pos+=r+e,n},t.prototype.decodeExtension=function(e,r){if(e>this.maxExtLength)throw new bo("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var o=this.view.getInt8(this.pos+r),n=this.decodeBinary(e,r+1);return this.extensionCodec.decode(n,o,this.context)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},t.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},t.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},t.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},t.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},t.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},t.prototype.readU64=function(){var e=OG(this.view,this.pos);return this.pos+=8,e},t.prototype.readI64=function(){var e=LI(this.view,this.pos);return this.pos+=8,e},t.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},t.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},t}();class vo{static write(e){let r=e.byteLength||e.length;const o=[];do{let i=r&127;r=r>>7,r>0&&(i|=128),o.push(i)}while(r>0);r=e.byteLength||e.length;const n=new Uint8Array(o.length+r);return n.set(o,0),n.set(e,o.length),n.buffer}static parse(e){const r=[],o=new Uint8Array(e),n=5,i=[0,7,14,21,28];for(let a=0;a7)throw new Error("Messages bigger than 2GB are not supported.");if(o.byteLength>=a+s+c)r.push(o.slice?o.slice(a+s,a+s+c):o.subarray(a+s,a+s+c));else throw new Error("Incomplete message.");a=a+s+c}return r}}function gX(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}const mX=new Uint8Array([145,Z.Ping]);class UI{constructor(e){this.name="messagepack",this.version=2,this.transferFormat=Ot.Binary,this._errorResult=1,this._voidResult=2,this._nonVoidResult=3,e=e||{},this._encoder=new iX(e.extensionCodec,e.context,e.maxDepth,e.initialBufferSize,e.sortKeys,e.forceFloat32,e.ignoreUndefined,e.forceIntegerToFloat),this._decoder=new pX(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength)}parseMessages(e,r){if(!gX(e))throw new Error("Invalid input for MessagePack hub protocol. Expected an ArrayBuffer.");r===null&&(r=ks.instance);const o=vo.parse(e),n=[];for(const i of o){const a=this._parseMessage(i,r);a&&n.push(a)}return n}writeMessage(e){switch(e.type){case Z.Invocation:return this._writeInvocation(e);case Z.StreamInvocation:return this._writeStreamInvocation(e);case Z.StreamItem:return this._writeStreamItem(e);case Z.Completion:return this._writeCompletion(e);case Z.Ping:return vo.write(mX);case Z.CancelInvocation:return this._writeCancelInvocation(e);case Z.Close:return this._writeClose();case Z.Ack:return this._writeAck(e);case Z.Sequence:return this._writeSequence(e);default:throw new Error("Invalid message type.")}}_parseMessage(e,r){if(e.length===0)throw new Error("Invalid payload.");const o=this._decoder.decode(e);if(o.length===0||!(o instanceof Array))throw new Error("Invalid payload.");const n=o[0];switch(n){case Z.Invocation:return this._createInvocationMessage(this._readHeaders(o),o);case Z.StreamItem:return this._createStreamItemMessage(this._readHeaders(o),o);case Z.Completion:return this._createCompletionMessage(this._readHeaders(o),o);case Z.Ping:return this._createPingMessage(o);case Z.Close:return this._createCloseMessage(o);case Z.Ack:return this._createAckMessage(o);case Z.Sequence:return this._createSequenceMessage(o);default:return r.log(L.Information,"Unknown message type '"+n+"' ignored."),null}}_createCloseMessage(e){if(e.length<2)throw new Error("Invalid payload for Close message.");return{allowReconnect:e.length>=3?e[2]:void 0,error:e[1],type:Z.Close}}_createPingMessage(e){if(e.length<1)throw new Error("Invalid payload for Ping message.");return{type:Z.Ping}}_createInvocationMessage(e,r){if(r.length<5)throw new Error("Invalid payload for Invocation message.");const o=r[2];return o?{arguments:r[4],headers:e,invocationId:o,streamIds:[],target:r[3],type:Z.Invocation}:{arguments:r[4],headers:e,streamIds:[],target:r[3],type:Z.Invocation}}_createStreamItemMessage(e,r){if(r.length<4)throw new Error("Invalid payload for StreamItem message.");return{headers:e,invocationId:r[2],item:r[3],type:Z.StreamItem}}_createCompletionMessage(e,r){if(r.length<4)throw new Error("Invalid payload for Completion message.");const o=r[3];if(o!==this._voidResult&&r.length<5)throw new Error("Invalid payload for Completion message.");let n,i;switch(o){case this._errorResult:n=r[4];break;case this._nonVoidResult:i=r[4];break}return{error:n,headers:e,invocationId:r[2],result:i,type:Z.Completion}}_createAckMessage(e){if(e.length<1)throw new Error("Invalid payload for Ack message.");return{sequenceId:e[1],type:Z.Ack}}_createSequenceMessage(e){if(e.length<1)throw new Error("Invalid payload for Sequence message.");return{sequenceId:e[1],type:Z.Sequence}}_writeInvocation(e){let r;return e.streamIds?r=this._encoder.encode([Z.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([Z.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments]),vo.write(r.slice())}_writeStreamInvocation(e){let r;return e.streamIds?r=this._encoder.encode([Z.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([Z.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments]),vo.write(r.slice())}_writeStreamItem(e){const r=this._encoder.encode([Z.StreamItem,e.headers||{},e.invocationId,e.item]);return vo.write(r.slice())}_writeCompletion(e){const r=e.error?this._errorResult:e.result!==void 0?this._nonVoidResult:this._voidResult;let o;switch(r){case this._errorResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r,e.error]);break;case this._voidResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r]);break;case this._nonVoidResult:o=this._encoder.encode([Z.Completion,e.headers||{},e.invocationId,r,e.result]);break}return vo.write(o.slice())}_writeCancelInvocation(e){const r=this._encoder.encode([Z.CancelInvocation,e.headers||{},e.invocationId]);return vo.write(r.slice())}_writeClose(){const e=this._encoder.encode([Z.Close,null]);return vo.write(e.slice())}_writeAck(e){const r=this._encoder.encode([Z.Ack,e.sequenceId]);return vo.write(r.slice())}_writeSequence(e){const r=this._encoder.encode([Z.Sequence,e.sequenceId]);return vo.write(r.slice())}_readHeaders(e){const r=e[1];if(typeof r!="object")throw new Error("Invalid headers.");return r}}function rn(t){return typeof t=="function"}function $I(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Lp=$I(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(o,n){return n+1+") "+o.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function Hm(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var _h=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Lm(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(rn(u))try{u()}catch(g){i=g instanceof qp?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Lm(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{Jk(p)}catch(g){i=i??[],g instanceof qp?i=_t(_t([],ut(i)),ut(g.errors)):i.push(g)}}}catch(g){o={error:g}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new qp(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Jk(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Hm(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Hm(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),$I=_h.EMPTY;function KI(t){return t instanceof _h||t&&"closed"in t&&rn(t.remove)&&rn(t.add)&&rn(t.unsubscribe)}function Jk(t){rn(t)?t():t.unsubscribe()}var WI={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},VI={setTimeout:function(t,e){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?$I:(this.currentObservers=null,s.push(r),new _h(function(){o.currentObservers=null,Hm(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new t_;return r.source=this,r},e.create=function(r,o){return new o_(r,o)},e}(t_),o_=function(t){bh(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:$I},e}(Sh);const pn={display:"flex"},EX={flexDirection:"column"},Qi={...pn,...EX},SZ={...pn,backgroundColor:Me.colorNeutralBackground1,boxShadow:Me.shadow4,...ls.borderRadius(Me.borderRadiusMedium)},IX={whiteSpace:"pre-line"},$y=60,Ky="1636px",AX={objectFit:"cover",objectPosition:"center"},RX=Wr({pre:IX});function Ch(t){const e=RX(),{dispatchToast:r}=S$();return{dispatch:o=>{const n=o.Error.message,i=n.indexOf("Exception:");let a=n;i!==-1&&(a=n.substring(i+10)),r(x.jsxs(Ms,{children:[x.jsx(Os,{children:"Internal Error"}),x.jsx(Wl,{subtitle:x.jsxs(fl,{className:e.pre,children:[a,x.jsx("br",{}),"More Info, See Console"]}),children:x.jsx(fl,{className:e.pre,children:o.Message})})]}),{intent:"error",timeout:1e4}),t.error(o)},dispatchToast:r}}const PX=Wr({box:{...Qi,rowGap:Me.spacingVerticalM},one:{...pn,columnGap:Me.spacingVerticalXXXL}}),n_=new sa("Setting");function XI({Open:t,Toggle:e,New:r}){const o=PX(),n=Pl().instance.getActiveAccount(),[i,a]=w.useState(),[s,c]=w.useState(),[l,u]=w.useState();mn.User.Get.useMe(n_,{manual:r,onSuccess(p){if(!p)return;const{Name:g,Phone:y,Address:v}=p;a(g),c(y),u(v)}});const{dispatch:d,dispatchToast:f}=Ch(n_),{run:h}=mn.User.Post.useUpdate({manual:!0,onError(p,[g]){d({Message:`Failed ${r?"Create":"Update"} Info`,Error:p,Request:g})},onSuccess(p,[g]){f(x.jsxs(Ms,{children:[x.jsxs(Os,{children:["Info ",r?"Created":"Updated"]}),x.jsxs(Wl,{children:[g.Name,x.jsx("br",{}),g.Phone,x.jsx("br",{}),g.Address]})]}),{intent:"success"}),r&&(Qa.next(!1),Qa.complete(),Qa.closed=!0),e()}});return x.jsx(hl,{open:t,onOpenChange:e,modalType:r?"alert":"modal",children:x.jsx(By,{children:x.jsxs(Py,{children:[x.jsx(H2,{children:r?"Welcome! Fill in your info to get started.":"Personal Information"}),x.jsxs(Ny,{className:o.box,children:[x.jsxs("div",{className:o.one,children:[x.jsx(Io,{label:"Name",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:i,maxLength:20,onChange:(p,g)=>a(g.value)})}),x.jsx(Io,{label:"Phone",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:s,maxLength:20,onChange:(p,g)=>c(g.value)})})]}),x.jsx(Io,{label:"E-Mail",size:"large",children:x.jsx(Vt,{children:n?.username})}),x.jsx(Io,{label:"Address",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:l,maxLength:100,minLength:20,onChange:(p,g)=>u(g.value)})})]}),x.jsxs(Ry,{children:[!r&&x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"secondary",children:"Cancel"})}),x.jsx(No,{appearance:"primary",onClick:()=>h({EMail:n?.username,Name:i,Address:l,Phone:s}),children:"Submit"})]})]})})})}const Qa=new Sh;function BX(){const[t,{toggle:e}]=Bi();return jy(()=>{Qa.subscribe(r=>r&&e())}),x.jsx(Wu,{children:x.jsx(XI,{Open:t,Toggle:e,New:!0})})}const qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vt=Object.keys,Gt=Array.isArray;function or(t,e){return typeof e!="object"||vt(e).forEach(function(r){t[r]=e[r]}),t}typeof Promise>"u"||qe.Promise||(qe.Promise=Promise);const ml=Object.getPrototypeOf,NX={}.hasOwnProperty;function Rr(t,e){return NX.call(t,e)}function Ss(t,e){typeof e=="function"&&(e=e(ml(t))),(typeof Reflect>"u"?vt:Reflect.ownKeys)(e).forEach(r=>{on(t,r,e[r])})}const YI=Object.defineProperty;function on(t,e,r,o){YI(t,e,or(r&&Rr(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},o))}function Za(t){return{from:function(e){return t.prototype=Object.create(e.prototype),on(t.prototype,"constructor",t),{extend:Ss.bind(null,t.prototype)}}}}const zX=Object.getOwnPropertyDescriptor;function Wy(t,e){let r;return zX(t,e)||(r=ml(t))&&Wy(r,e)}const MX=[].slice;function mf(t,e,r){return MX.call(t,e,r)}function QI(t,e){return e(t)}function hc(t){if(!t)throw new Error("Assertion Failed")}function ZI(t){qe.setImmediate?setImmediate(t):setTimeout(t,0)}function JI(t,e){return t.reduce((r,o,n)=>{var i=e(o,n);return i&&(r[i[0]]=i[1]),r},{})}function nn(t,e){if(Rr(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var r=[],o=0,n=e.length;o["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>qe[t]),DX=rA.map(t=>qe[t]);JI(rA,t=>[t,!0]);let Rn=null;function Vl(t){Rn=typeof WeakMap<"u"&&new WeakMap;const e=$m(t);return Rn=null,e}function $m(t){if(!t||typeof t!="object")return t;let e=Rn&&Rn.get(t);if(e)return e;if(Gt(t)){e=[],Rn&&Rn.set(t,e);for(var r=0,o=t.length;r=0)e=t;else{const i=ml(t);for(var n in e=i===Object.prototype?{}:Object.create(i),Rn&&Rn.set(t,e),t)Rr(t,n)&&(e[n]=$m(t[n]))}return e}const{toString:jX}={};function Km(t){return jX.call(t).slice(8,-1)}const Wm=typeof Symbol<"u"?Symbol.iterator:"@@iterator",FX=typeof Wm=="symbol"?function(t){var e;return t!=null&&(e=t[Wm])&&e.apply(t)}:function(){return null},Ta={};function Go(t){var e,r,o,n;if(arguments.length===1){if(Gt(t))return t.slice();if(this===Ta&&typeof t=="string")return[t];if(n=FX(t)){for(r=[];!(o=n.next()).done;)r.push(o.value);return r}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(r=new Array(e);e--;)r[e]=t[e];return r}return[t]}for(e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return r}const Vy=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var Do=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function oA(t,e){Do=t,nA=e}var nA=()=>!0;const LX=!new Error("").stack;function ca(){if(LX)try{throw ca.arguments,new Error}catch(t){return t}return new Error}function Vm(t,e){var r=t.stack;return r?(e=e||0,r.indexOf(t.name)===0&&(e+=(t.name+t.message).split(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function qm(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var kh=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Fm(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(rn(u))try{u()}catch(g){i=g instanceof Lp?g.errors:[g]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Fm(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{Jk(p)}catch(g){i=i??[],g instanceof Lp?i=_t(_t([],ut(i)),ut(g.errors)):i.push(g)}}}catch(g){o={error:g}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new Lp(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Jk(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&qm(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&qm(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),KI=kh.EMPTY;function WI(t){return t instanceof kh||t&&"closed"in t&&rn(t.remove)&&rn(t.add)&&rn(t.unsubscribe)}function Jk(t){rn(t)?t():t.unsubscribe()}var VI={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},GI={setTimeout:function(t,e){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?KI:(this.currentObservers=null,s.push(r),new kh(function(){o.currentObservers=null,qm(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new t_;return r.source=this,r},e.create=function(r,o){return new o_(r,o)},e}(t_),o_=function(t){vh(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:KI},e}(_h);const pn={display:"flex"},IX={flexDirection:"column"},Qi={...pn,...IX},CZ={...pn,backgroundColor:Me.colorNeutralBackground1,boxShadow:Me.shadow4,...ls.borderRadius(Me.borderRadiusMedium)},AX={whiteSpace:"pre-line"},$y=60,Ky="1636px",RX={objectFit:"cover",objectPosition:"center"},PX=Wr({pre:AX});function Sh(t){const e=PX(),{dispatchToast:r}=C$();return{dispatch:o=>{const n=o.Error.message,i=n.indexOf("Exception:");let a=n;i!==-1&&(a=n.substring(i+10)),r(x.jsxs(Ms,{children:[x.jsx(Os,{children:"Internal Error"}),x.jsx(Kl,{subtitle:x.jsxs(fl,{className:e.pre,children:[a,x.jsx("br",{}),"More Info, See Console"]}),children:x.jsx(fl,{className:e.pre,children:o.Message})})]}),{intent:"error",timeout:1e4}),t.error(o)},dispatchToast:r}}const BX=Wr({box:{...Qi,rowGap:Me.spacingVerticalM},one:{...pn,columnGap:Me.spacingVerticalXXXL}}),n_=new sa("Setting");function YI({Open:t,Toggle:e,New:r}){const o=BX(),n=Pl().instance.getActiveAccount(),[i,a]=w.useState(),[s,c]=w.useState(),[l,u]=w.useState();mn.User.Get.useMe(n_,{manual:r,onSuccess(p){if(!p)return;const{Name:g,Phone:y,Address:v}=p;a(g),c(y),u(v)}});const{dispatch:d,dispatchToast:f}=Sh(n_),{run:h}=mn.User.Post.useUpdate({manual:!0,onError(p,[g]){d({Message:`Failed ${r?"Create":"Update"} Info`,Error:p,Request:g})},onSuccess(p,[g]){f(x.jsxs(Ms,{children:[x.jsxs(Os,{children:["Info ",r?"Created":"Updated"]}),x.jsxs(Kl,{children:[g.Name,x.jsx("br",{}),g.Phone,x.jsx("br",{}),g.Address]})]}),{intent:"success"}),r&&(Qa.next(!1),Qa.complete(),Qa.closed=!0),e()}});return x.jsx(hl,{open:t,onOpenChange:e,modalType:r?"alert":"modal",children:x.jsx(By,{children:x.jsxs(Py,{children:[x.jsx(U2,{children:r?"Welcome! Fill in your info to get started.":"Personal Information"}),x.jsxs(Ny,{className:o.box,children:[x.jsxs("div",{className:o.one,children:[x.jsx(Io,{label:"Name",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:i,maxLength:20,onChange:(p,g)=>a(g.value)})}),x.jsx(Io,{label:"Phone",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:s,maxLength:20,onChange:(p,g)=>c(g.value)})})]}),x.jsx(Io,{label:"E-Mail",size:"large",children:x.jsx(Vt,{children:n?.username})}),x.jsx(Io,{label:"Address",size:"large",required:!0,children:x.jsx(Xa,{size:"medium",value:l,maxLength:100,minLength:20,onChange:(p,g)=>u(g.value)})})]}),x.jsxs(Ry,{children:[!r&&x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"secondary",children:"Cancel"})}),x.jsx(No,{appearance:"primary",onClick:()=>h({EMail:n?.username,Name:i,Address:l,Phone:s}),children:"Submit"})]})]})})})}const Qa=new _h;function NX(){const[t,{toggle:e}]=Bi();return jy(()=>{Qa.subscribe(r=>r&&e())}),x.jsx(Ku,{children:x.jsx(YI,{Open:t,Toggle:e,New:!0})})}const qe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vt=Object.keys,Gt=Array.isArray;function or(t,e){return typeof e!="object"||vt(e).forEach(function(r){t[r]=e[r]}),t}typeof Promise>"u"||qe.Promise||(qe.Promise=Promise);const ml=Object.getPrototypeOf,zX={}.hasOwnProperty;function Rr(t,e){return zX.call(t,e)}function Ss(t,e){typeof e=="function"&&(e=e(ml(t))),(typeof Reflect>"u"?vt:Reflect.ownKeys)(e).forEach(r=>{on(t,r,e[r])})}const QI=Object.defineProperty;function on(t,e,r,o){QI(t,e,or(r&&Rr(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},o))}function Za(t){return{from:function(e){return t.prototype=Object.create(e.prototype),on(t.prototype,"constructor",t),{extend:Ss.bind(null,t.prototype)}}}}const MX=Object.getOwnPropertyDescriptor;function Wy(t,e){let r;return MX(t,e)||(r=ml(t))&&Wy(r,e)}const OX=[].slice;function gf(t,e,r){return OX.call(t,e,r)}function ZI(t,e){return e(t)}function hc(t){if(!t)throw new Error("Assertion Failed")}function JI(t){qe.setImmediate?setImmediate(t):setTimeout(t,0)}function eA(t,e){return t.reduce((r,o,n)=>{var i=e(o,n);return i&&(r[i[0]]=i[1]),r},{})}function nn(t,e){if(Rr(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var r=[],o=0,n=e.length;o["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>qe[t]),jX=oA.map(t=>qe[t]);eA(oA,t=>[t,!0]);let Rn=null;function Wl(t){Rn=typeof WeakMap<"u"&&new WeakMap;const e=Um(t);return Rn=null,e}function Um(t){if(!t||typeof t!="object")return t;let e=Rn&&Rn.get(t);if(e)return e;if(Gt(t)){e=[],Rn&&Rn.set(t,e);for(var r=0,o=t.length;r=0)e=t;else{const i=ml(t);for(var n in e=i===Object.prototype?{}:Object.create(i),Rn&&Rn.set(t,e),t)Rr(t,n)&&(e[n]=Um(t[n]))}return e}const{toString:FX}={};function $m(t){return FX.call(t).slice(8,-1)}const Km=typeof Symbol<"u"?Symbol.iterator:"@@iterator",LX=typeof Km=="symbol"?function(t){var e;return t!=null&&(e=t[Km])&&e.apply(t)}:function(){return null},Ta={};function Go(t){var e,r,o,n;if(arguments.length===1){if(Gt(t))return t.slice();if(this===Ta&&typeof t=="string")return[t];if(n=LX(t)){for(r=[];!(o=n.next()).done;)r.push(o.value);return r}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(r=new Array(e);e--;)r[e]=t[e];return r}return[t]}for(e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return r}const Vy=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var Do=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function nA(t,e){Do=t,iA=e}var iA=()=>!0;const qX=!new Error("").stack;function ca(){if(qX)try{throw ca.arguments,new Error}catch(t){return t}return new Error}function Wm(t,e){var r=t.stack;return r?(e=e||0,r.indexOf(t.name)===0&&(e+=(t.name+t.message).split(` `).length),r.split(` -`).slice(e).filter(nA).map(o=>` -`+o).join("")):""}var iA=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Gy=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(iA),qX={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ja(t,e){this._e=ca(),this.name=t,this.message=e}function aA(t,e){return t+". Errors: "+Object.keys(e).map(r=>e[r].toString()).filter((r,o,n)=>n.indexOf(r)===o).join(` -`)}function vf(t,e,r,o){this._e=ca(),this.failures=e,this.failedKeys=o,this.successCount=r,this.message=aA(t,e)}function Mc(t,e){this._e=ca(),this.name="BulkError",this.failures=Object.keys(e).map(r=>e[r]),this.failuresByPos=e,this.message=aA(t,e)}Za(Ja).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Vm(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Za(vf).from(Ja),Za(Mc).from(Ja);var Xy=Gy.reduce((t,e)=>(t[e]=e+"Error",t),{});const HX=Ja;var pe=Gy.reduce((t,e)=>{var r=e+"Error";function o(n,i){this._e=ca(),this.name=r,n?typeof n=="string"?(this.message=`${n}${i?` - `+i:""}`,this.inner=i||null):typeof n=="object"&&(this.message=`${n.name} ${n.message}`,this.inner=n):(this.message=qX[e]||r,this.inner=null)}return Za(o).from(HX),t[e]=o,t},{});pe.Syntax=SyntaxError,pe.Type=TypeError,pe.Range=RangeError;var i_=iA.reduce((t,e)=>(t[e+"Error"]=pe[e],t),{}),pd=Gy.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=pe[e]),t),{});function ze(){}function vl(t){return t}function UX(t,e){return t==null||t===vl?e:function(r){return e(t(r))}}function Zi(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function $X(t,e){return t===ze?e:function(){var r=t.apply(this,arguments);r!==void 0&&(arguments[0]=r);var o=this.onsuccess,n=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Zi(o,this.onsuccess):o),n&&(this.onerror=this.onerror?Zi(n,this.onerror):n),i!==void 0?i:r}}function KX(t,e){return t===ze?e:function(){t.apply(this,arguments);var r=this.onsuccess,o=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?Zi(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Zi(o,this.onerror):o)}}function WX(t,e){return t===ze?e:function(r){var o=t.apply(this,arguments);or(r,o);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?Zi(n,this.onsuccess):n),i&&(this.onerror=this.onerror?Zi(i,this.onerror):i),o===void 0?a===void 0?void 0:a:or(o,a)}}function VX(t,e){return t===ze?e:function(){return e.apply(this,arguments)!==!1&&t.apply(this,arguments)}}function Yy(t,e){return t===ze?e:function(){var r=t.apply(this,arguments);if(r&&typeof r.then=="function"){for(var o=this,n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];return r.then(function(){return e.apply(o,i)})}return e.apply(this,arguments)}}pd.ModifyError=vf,pd.DexieError=Ja,pd.BulkError=Mc;var bl={};const sA=100,[Gm,bf,Xm]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,ml(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,ml(e),t]})(),cA=bf&&bf.then,gd=Gm&&Gm.constructor,Qy=!!Xm;var Ym=!1,GX=Xm?()=>{Xm.then(Du)}:qe.setImmediate?setImmediate.bind(null,Du):qe.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{Du(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(Du,0)},Oc=function(t,e){pc.push([t,e]),yf&&(GX(),yf=!1)},Qm=!0,yf=!0,Mi=[],md=[],Zm=null,Jm=vl,es={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:c_,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{c_(t[0],t[1])}catch{}})}},ue=es,pc=[],Oi=0,vd=[];function ie(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ze,this._lib=!1;var e=this._PSD=ue;if(Do&&(this._stackHolder=ca(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==bl)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&tv(this,this._value))}this._state=null,this._value=null,++e.ref,uA(this,t)}const ev={get:function(){var t=ue,e=wf;function r(o,n){var i=!t.global&&(t!==ue||e!==wf);const a=i&&!gn();var s=new ie((c,l)=>{Zy(this,new lA(kf(o,t,i,a),kf(n,t,i,a),c,l,t))});return Do&&hA(s,this),s}return r.prototype=bl,r},set:function(t){on(this,"then",t&&t.prototype===bl?ev:{get:function(){return t},set:ev.set})}};function lA(t,e,r,o,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=r,this.reject=o,this.psd=n}function uA(t,e){try{e(r=>{if(t._state===null){if(r===t)throw new TypeError("A promise cannot be resolved with itself.");var o=t._lib&&Gl();r&&typeof r.then=="function"?uA(t,(n,i)=>{r instanceof ie?r._then(n,i):r.then(n,i)}):(t._state=!0,t._value=r,dA(t)),o&&Xl()}},tv.bind(null,t))}catch(r){tv(t,r)}}function tv(t,e){if(md.push(e),t._state===null){var r=t._lib&&Gl();e=Jm(e),t._state=!1,t._value=e,Do&&e!==null&&typeof e=="object"&&!e._promise&&function(o,n,i){try{o.apply(null,i)}catch(a){n&&n(a)}}(()=>{var o=Wy(e,"stack");e._promise=t,on(e,"stack",{get:()=>Ym?o&&(o.get?o.get.apply(e):o.value):t.stack})}),function(o){Mi.some(n=>n._value===o._value)||Mi.push(o)}(t),dA(t),r&&Xl()}}function dA(t){var e=t._listeners;t._listeners=[];for(var r=0,o=e.length;r{--Oi==0&&Jy()},[]))}function Zy(t,e){if(t._state!==null){var r=t._state?e.onFulfilled:e.onRejected;if(r===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Oi,Oc(XX,[r,t,e])}else t._listeners.push(e)}function XX(t,e,r){try{Zm=e;var o,n=e._value;e._state?o=t(n):(md.length&&(md=[]),o=t(n),md.indexOf(n)===-1&&function(i){for(var a=Mi.length;a;)if(Mi[--a]._value===i._value)return void Mi.splice(a,1)}(e)),r.resolve(o)}catch(i){r.reject(i)}finally{Zm=null,--Oi==0&&Jy(),--r.psd.ref||r.psd.finalize()}}function fA(t,e,r){if(e.length===r)return e;var o="";if(t._state===!1){var n,i,a=t._value;a!=null?(n=a.name||"Error",i=a.message||a,o=Vm(a,0)):(n=a,i=""),e.push(n+(i?": "+i:"")+o)}return Do&&((o=Vm(t._stackHolder,2))&&e.indexOf(o)===-1&&e.push(o),t._prev&&fA(t._prev,e,r)),e}function hA(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function Du(){Gl()&&Xl()}function Gl(){var t=Qm;return Qm=!1,yf=!1,t}function Xl(){var t,e,r;do for(;pc.length>0;)for(t=pc,pc=[],r=t.length,e=0;e0);Qm=!0,yf=!0}function Jy(){var t=Mi;Mi=[],t.forEach(o=>{o._PSD.onunhandled.call(null,o._value,o)});for(var e=vd.slice(0),r=e.length;r;)e[--r]()}function ju(t){return new ie(bl,!1,t)}function Ke(t,e){var r=ue;return function(){var o=Gl(),n=ue;try{return oi(r,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{oi(n,!1),o&&Xl()}}}Ss(ie.prototype,{then:ev,_then:function(t,e){Zy(this,new lA(null,null,t,e,ue))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],r=arguments[1];return typeof e=="function"?this.then(null,o=>o instanceof e?r(o):ju(o)):this.then(null,o=>o&&o.name===e?r(o):ju(o))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),ju(e)))},stack:{get:function(){if(this._stack)return this._stack;try{Ym=!0;var t=fA(this,[],20).join(` -From previous: `);return this._state!==null&&(this._stack=t),t}finally{Ym=!1}}},timeout:function(t,e){return t<1/0?new ie((r,o)=>{var n=setTimeout(()=>o(new pe.Timeout(e)),t);this.then(r,o).finally(clearTimeout.bind(null,n))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&on(ie.prototype,Symbol.toStringTag,"Dexie.Promise"),es.env=pA(),Ss(ie,{all:function(){var t=Go.apply(null,arguments).map(Fu);return new ie(function(e,r){t.length===0&&e([]);var o=t.length;t.forEach((n,i)=>ie.resolve(n).then(a=>{t[i]=a,--o||e(t)},r))})},resolve:t=>{if(t instanceof ie)return t;if(t&&typeof t.then=="function")return new ie((r,o)=>{t.then(r,o)});var e=new ie(bl,!0,t);return hA(e,Zm),e},reject:ju,race:function(){var t=Go.apply(null,arguments).map(Fu);return new ie((e,r)=>{t.map(o=>ie.resolve(o).then(e,r))})},PSD:{get:()=>ue,set:t=>ue=t},totalEchoes:{get:()=>wf},newPSD:ri,usePSD:Fs,scheduler:{get:()=>Oc,set:t=>{Oc=t}},rejectionMapper:{get:()=>Jm,set:t=>{Jm=t}},follow:(t,e)=>new ie((r,o)=>ri((n,i)=>{var a=ue;a.unhandleds=[],a.onunhandled=i,a.finalize=Zi(function(){(function(s){function c(){s(),vd.splice(vd.indexOf(c),1)}vd.push(c),++Oi,Oc(()=>{--Oi==0&&Jy()},[])})(()=>{this.unhandleds.length===0?n():i(this.unhandleds[0])})},a.finalize),t()},e,r,o))}),gd&&(gd.allSettled&&on(ie,"allSettled",function(){const t=Go.apply(null,arguments).map(Fu);return new ie(e=>{t.length===0&&e([]);let r=t.length;const o=new Array(r);t.forEach((n,i)=>ie.resolve(n).then(a=>o[i]={status:"fulfilled",value:a},a=>o[i]={status:"rejected",reason:a}).then(()=>--r||e(o)))})}),gd.any&&typeof AggregateError<"u"&&on(ie,"any",function(){const t=Go.apply(null,arguments).map(Fu);return new ie((e,r)=>{t.length===0&&r(new AggregateError([]));let o=t.length;const n=new Array(o);t.forEach((i,a)=>ie.resolve(i).then(s=>e(s),s=>{n[a]=s,--o||r(new AggregateError(n))}))})}));const $t={awaits:0,echoes:0,id:0};var YX=0,bd=[],Up=0,wf=0,QX=0;function ri(t,e,r,o){var n=ue,i=Object.create(n);i.parent=n,i.ref=0,i.global=!1,i.id=++QX;var a=es.env;i.env=Qy?{Promise:ie,PromiseProp:{value:ie,configurable:!0,writable:!0},all:ie.all,race:ie.race,allSettled:ie.allSettled,any:ie.any,resolve:ie.resolve,reject:ie.reject,nthen:a_(a.nthen,i),gthen:a_(a.gthen,i)}:{},e&&or(i,e),++n.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=Fs(i,t,r,o);return i.ref===0&&i.finalize(),s}function js(){return $t.id||($t.id=++YX),++$t.awaits,$t.echoes+=sA,$t.id}function gn(){return!!$t.awaits&&(--$t.awaits==0&&($t.id=0),$t.echoes=$t.awaits*sA,!0)}function Fu(t){return $t.echoes&&t&&t.constructor===gd?(js(),t.then(e=>(gn(),e),e=>(gn(),xt(e)))):t}function ZX(t){++wf,$t.echoes&&--$t.echoes!=0||($t.echoes=$t.id=0),bd.push(ue),oi(t,!0)}function JX(){var t=bd[bd.length-1];bd.pop(),oi(t,!1)}function oi(t,e){var r=ue;if((e?!$t.echoes||Up++&&t===ue:!Up||--Up&&t===ue)||gA(e?ZX.bind(null,t):JX),t!==ue&&(ue=t,r===es&&(es.env=pA()),Qy)){var o=es.env.Promise,n=t.env;bf.then=n.nthen,o.prototype.then=n.gthen,(r.global||t.global)&&(Object.defineProperty(qe,"Promise",n.PromiseProp),o.all=n.all,o.race=n.race,o.resolve=n.resolve,o.reject=n.reject,n.allSettled&&(o.allSettled=n.allSettled),n.any&&(o.any=n.any))}}function pA(){var t=qe.Promise;return Qy?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(qe,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:bf.then,gthen:t.prototype.then}:{}}function Fs(t,e,r,o,n){var i=ue;try{return oi(t,!0),e(r,o,n)}finally{oi(i,!1)}}function gA(t){cA.call(Gm,t)}function kf(t,e,r,o){return typeof t!="function"?t:function(){var n=ue;r&&js(),oi(e,!0);try{return t.apply(this,arguments)}finally{oi(n,!1),o&&gA(gn)}}}function a_(t,e){return function(r,o){return t.call(this,kf(r,e),kf(o,e))}}(""+cA).indexOf("[native code]")===-1&&(js=gn=ze);const s_="unhandledrejection";function c_(t,e){var r;try{r=e.onuncatched(t)}catch{}if(r!==!1)try{var o,n={promise:e,reason:t};if(qe.document&&document.createEvent?((o=document.createEvent("Event")).initEvent(s_,!0,!0),or(o,n)):qe.CustomEvent&&or(o=new CustomEvent(s_,{detail:n}),n),o&&qe.dispatchEvent&&(dispatchEvent(o),!qe.PromiseRejectionEvent&&qe.onunhandledrejection))try{qe.onunhandledrejection(o)}catch{}Do&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}var xt=ie.reject;function rv(t,e,r,o){if(t.idbdb&&(t._state.openComplete||ue.letThrough||t._vip)){var n=t._createTransaction(e,r,t._dbSchema);try{n.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===Xy.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>rv(t,e,r,o))):xt(i)}return n._promise(e,(i,a)=>ri(()=>(ue.trans=n,o(i,a,n)))).then(i=>n._completion.then(()=>i))}if(t._state.openComplete)return xt(new pe.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return xt(new pe.DatabaseClosed);t.open().catch(ze)}return t._state.dbReadyPromise.then(()=>rv(t,e,r,o))}const l_="3.2.4",xi="￿",ov=-1/0,Fo="Invalid key provided. Keys must be of type string, number, Date or Array.",mA="String expected.",Dc=[],Th=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),eY=Th,tY=Th,vA=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),xh="__dbnames",$p="readonly",Kp="readwrite";function Ji(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const bA={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Lu(t){return typeof t!="string"||/\./.test(t)?e=>e:e=>(e[t]===void 0&&t in e&&delete(e=Vl(e))[t],e)}class rY{_trans(e,r,o){const n=this._tx||ue.trans,i=this.name;function a(c,l,u){if(!u.schema[i])throw new pe.NotFound("Table "+i+" not part of transaction");return r(u.idbtrans,u)}const s=Gl();try{return n&&n.db===this.db?n===ue.trans?n._promise(e,a,o):ri(()=>n._promise(e,a,o),{trans:n,transless:ue.transless||ue}):rv(this.db,e,[this.name],a)}finally{s&&Xl()}}get(e,r){return e&&e.constructor===Object?this.where(e).first(r):this._trans("readonly",o=>this.core.get({trans:o,key:e}).then(n=>this.hook.reading.fire(n))).then(r)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(Gt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const r=vt(e);if(r.length===1)return this.where(r[0]).equals(e[r[0]]);const o=this.schema.indexes.concat(this.schema.primKey).filter(l=>l.compound&&r.every(u=>l.keyPath.indexOf(u)>=0)&&l.keyPath.every(u=>r.indexOf(u)>=0))[0];if(o&&this.db._maxKey!==xi)return this.where(o.name).equals(o.keyPath.map(l=>e[l]));!o&&Do&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:n}=this.schema,i=this.db._deps.indexedDB;function a(l,u){try{return i.cmp(l,u)===0}catch{return!1}}const[s,c]=r.reduce(([l,u],d)=>{const f=n[d],h=e[d];return[l||f,l||!f?Ji(u,f&&f.multi?p=>{const g=nn(p,d);return Gt(g)&&g.some(y=>a(h,y))}:p=>a(h,nn(p,d))):u]},[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(c):o?this.filter(c):this.where(r).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,Gt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const r=o=>{if(!o)return o;const n=Object.create(e.prototype);for(var i in o)if(Rr(o,i))try{n[i]=o[i]}catch{}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e}defineClass(){return this.mapToClass(function(e){or(this,e)})}add(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=Lu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{lo(e,n,a)}catch{}return a})}update(e,r){if(typeof e!="object"||Gt(e))return this.where(":id").equals(e).modify(r);{const o=nn(e,this.schema.primKey.keyPath);if(o===void 0)return xt(new pe.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?vt(r).forEach(n=>{lo(e,n,r[n])}):r(e,{value:e,primKey:o})}catch{}return this.where(":id").equals(o).modify(r)}}put(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=Lu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{lo(e,n,a)}catch{}return a})}delete(e){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[e]})).then(r=>r.numFailures?ie.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:bA})).then(e=>e.numFailures?ie.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",r=>this.core.getMany({keys:e,trans:r}).then(o=>o.map(n=>this.hook.reading.fire(n))))}bulkAdd(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:c}=this.schema.primKey;if(c&&n)throw new pe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const l=e.length;let u=c&&s?e.map(Lu(c)):e;return this.core.mutate({trans:a,type:"add",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Mc(`${this.name}.bulkAdd(): ${d} of ${l} operations failed`,p)})})}bulkPut(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:c}=this.schema.primKey;if(c&&n)throw new pe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const l=e.length;let u=c&&s?e.map(Lu(c)):e;return this.core.mutate({trans:a,type:"put",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Mc(`${this.name}.bulkPut(): ${d} of ${l} operations failed`,p)})})}bulkDelete(e){const r=e.length;return this._trans("readwrite",o=>this.core.mutate({trans:o,type:"delete",keys:e})).then(({numFailures:o,lastResult:n,failures:i})=>{if(o===0)return n;throw new Mc(`${this.name}.bulkDelete(): ${o} of ${r} operations failed`,i)})}}function jc(t){var e={},r=function(a,s){if(s){for(var c=arguments.length,l=new Array(c-1);--c;)l[c-1]=arguments[c];return e[a].subscribe.apply(null,l),t}if(typeof a=="string")return e[a]};r.addEventType=i;for(var o=1,n=arguments.length;oJi(o(),e()):e,t.justLimit=r&&!o}function yd(t,e){if(t.isPrimKey)return e.primaryKey;const r=e.getIndexByKeyPath(t.index);if(!r)throw new pe.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function u_(t,e,r){const o=yd(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:o,range:t.range}})}function qu(t,e,r,o){const n=t.replayFilter?Ji(t.filter,t.replayFilter()):t.filter;if(t.or){const i={},a=(s,c,l)=>{if(!n||n(c,l,f=>c.stop(f),f=>c.fail(f))){var u=c.primaryKey,d=""+u;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(u)),Rr(i,d)||(i[d]=!0,e(s,c,l))}};return Promise.all([t.or._iterate(a,r),d_(u_(t,o,r),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return d_(u_(t,o,r),Ji(t.algorithm,n),e,!t.keysOnly&&t.valueMapper)}function d_(t,e,r,o){var n=Ke(o?(i,a,s)=>r(o(i),a,s):r);return t.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();e&&!e(i,s=>a=s,s=>{i.stop(s),a=ze},s=>{i.fail(s),a=ze})||n(i.value,i,s=>a=s),a()})})}function Zt(t,e){try{const r=f_(t),o=f_(e);if(r!==o)return r==="Array"?1:o==="Array"?-1:r==="binary"?1:o==="binary"?-1:r==="string"?1:o==="string"?-1:r==="Date"?1:o!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:tqu(r,e,o,r.table.core))}count(e){return this._read(r=>{const o=this._ctx,n=o.table.core;if(ba(o,!0))return n.count({trans:r,query:{index:yd(o,n.schema),range:o.range}}).then(a=>Math.min(a,o.limit));var i=0;return qu(o,()=>(++i,!1),r,n).then(()=>i)}).then(e)}sortBy(e,r){const o=e.split(".").reverse(),n=o[0],i=o.length-1;function a(l,u){return u?a(l[o[u]],u-1):l[n]}var s=this._ctx.dir==="next"?1:-1;function c(l,u){var d=a(l,i),f=a(u,i);return df?s:0}return this.toArray(function(l){return l.sort(c)}).then(r)}toArray(e){return this._read(r=>{var o=this._ctx;if(o.dir==="next"&&ba(o,!0)&&o.limit>0){const{valueMapper:n}=o,i=yd(o,o.table.core.schema);return o.table.core.query({trans:r,limit:o.limit,values:!0,query:{index:i,range:o.range}}).then(({result:a})=>n?a.map(n):a)}{const n=[];return qu(o,i=>n.push(i),r,o.table.core).then(()=>n)}},e)}offset(e){var r=this._ctx;return e<=0||(r.offset+=e,ba(r)?Vp(r,()=>{var o=e;return(n,i)=>o===0||(o===1?(--o,!1):(i(()=>{n.advance(o),o=0}),!1))}):Vp(r,()=>{var o=e;return()=>--o<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Vp(this._ctx,()=>{var r=e;return function(o,n,i){return--r<=0&&n(i),r>=0}},!0),this}until(e,r){return Wp(this._ctx,function(o,n,i){return!e(o.value)||(n(i),r)}),this}first(e){return this.limit(1).toArray(function(r){return r[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var r,o;return Wp(this._ctx,function(n){return e(n.value)}),r=this._ctx,o=e,r.isMatch=Ji(r.isMatch,o),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.primaryKey,n)})}keys(e){var r=this._ctx;r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.key)}).then(function(){return o}).then(e)}primaryKeys(e){var r=this._ctx;if(r.dir==="next"&&ba(r,!0)&&r.limit>0)return this._read(n=>{var i=yd(r,r.table.core.schema);return r.table.core.query({trans:n,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:n})=>n).then(e);r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.primaryKey)}).then(function(){return o}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(r){return r[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return Wp(this._ctx,function(n){var i=n.primaryKey.toString(),a=Rr(o,i);return o[i]=!0,!a}),this}modify(e){var r=this._ctx;return this._write(o=>{var n;if(typeof e=="function")n=e;else{var i=vt(e),a=i.length;n=function(g){for(var y=!1,v=0;v{const{failures:v,numFailures:m}=y;f+=g-m;for(let b of vt(v))d.push(v[b])};return this.clone().primaryKeys().then(g=>{const y=v=>{const m=Math.min(u,g.length-v);return s.getMany({trans:o,keys:g.slice(v,v+m),cache:"immutable"}).then(b=>{const k=[],S=[],C=c?[]:null,_=[];for(let A=0;A0&&s.mutate({trans:o,type:"add",values:k}).then(A=>{for(let R in A.failures)_.splice(parseInt(R),1);p(k.length,A)})).then(()=>(S.length>0||T&&typeof e=="object")&&s.mutate({trans:o,type:"put",keys:C,values:S,criteria:T,changeSpec:typeof e!="function"&&e}).then(A=>p(S.length,A))).then(()=>(_.length>0||T&&e===Gp)&&s.mutate({trans:o,type:"delete",keys:_,criteria:T}).then(A=>p(_.length,A))).then(()=>g.length>v+m&&y(v+u))})};return y(0).then(()=>{if(d.length>0)throw new vf("Error modifying one or more objects",d,f,h);return g.length})})})}delete(){var e=this._ctx,r=e.range;return ba(e)&&(e.isPrimKey&&!tY||r.type===3)?this._write(o=>{const{primaryKey:n}=e.table.core.schema,i=r;return e.table.core.count({trans:o,query:{index:n,range:i}}).then(a=>e.table.core.mutate({trans:o,type:"deleteRange",range:i}).then(({failures:s,lastResult:c,results:l,numFailures:u})=>{if(u)throw new vf("Could not delete some values",Object.keys(s).map(d=>s[d]),a-u);return a-u}))}):this.modify(Gp)}}const Gp=(t,e)=>e.value=null;function nY(t,e){return te?-1:t===e?0:1}function vr(t,e,r){var o=t instanceof wA?new t.Collection(t):t;return o._ctx.error=r?new r(e):new TypeError(e),o}function ya(t){return new t.Collection(t,()=>yA("")).limit(0)}function aY(t,e,r,o,n,i){for(var a=Math.min(t.length,o.length),s=-1,c=0;c=0?t.substr(0,s)+e[s]+r.substr(s+1):null;n(t[c],l)<0&&(s=c)}return atypeof g=="string"))return vr(t,mA);function f(g){n=function(v){return v==="next"?m=>m.toUpperCase():m=>m.toLowerCase()}(g),i=function(v){return v==="next"?m=>m.toLowerCase():m=>m.toUpperCase()}(g),a=g==="next"?nY:iY;var y=r.map(function(v){return{lower:i(v),upper:n(v)}}).sort(function(v,m){return a(v.lower,m.lower)});s=y.map(function(v){return v.upper}),c=y.map(function(v){return v.lower}),l=g,u=g==="next"?"":o}f("next");var h=new t.Collection(t,()=>En(s[0],c[d-1]+o));h._ondirectionchange=function(g){f(g)};var p=0;return h._addAlgorithm(function(g,y,v){var m=g.key;if(typeof m!="string")return!1;var b=i(m);if(e(b,c,p))return!0;for(var k=null,S=p;S0)&&(k=C)}return y(k!==null?function(){g.continue(k+u)}:v),!1}),h}function En(t,e,r,o){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:o}}function yA(t){return{type:1,lower:t,upper:t}}class wA{get Collection(){return this._ctx.table.db.Collection}between(e,r,o,n){o=o!==!1,n=n===!0;try{return this._cmp(e,r)>0||this._cmp(e,r)===0&&(o||n)&&(!o||!n)?ya(this):new this.Collection(this,()=>En(e,r,!o,!n))}catch{return vr(this,Fo)}}equals(e){return e==null?vr(this,Fo):new this.Collection(this,()=>yA(e))}above(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(e,void 0,!0))}aboveOrEqual(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(e,void 0,!1))}below(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(void 0,e,!1,!0))}belowOrEqual(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(void 0,e))}startsWith(e){return typeof e!="string"?vr(this,mA):this.between(e,e+xi,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):Hu(this,(r,o)=>r.indexOf(o[0])===0,[e],xi)}equalsIgnoreCase(e){return Hu(this,(r,o)=>r===o[0],[e],"")}anyOfIgnoreCase(){var e=Go.apply(Ta,arguments);return e.length===0?ya(this):Hu(this,(r,o)=>o.indexOf(r)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=Go.apply(Ta,arguments);return e.length===0?ya(this):Hu(this,(r,o)=>o.some(n=>r.indexOf(n)===0),e,xi)}anyOf(){const e=Go.apply(Ta,arguments);let r=this._cmp;try{e.sort(r)}catch{return vr(this,Fo)}if(e.length===0)return ya(this);const o=new this.Collection(this,()=>En(e[0],e[e.length-1]));o._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,e.sort(r)};let n=0;return o._addAlgorithm((i,a,s)=>{const c=i.key;for(;r(c,e[n])>0;)if(++n,n===e.length)return a(s),!1;return r(c,e[n])===0||(a(()=>{i.continue(e[n])}),!1)}),o}notEqual(e){return this.inAnyRange([[ov,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=Go.apply(Ta,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return vr(this,Fo)}const r=e.reduce((o,n)=>o?o.concat([[o[o.length-1][1],n]]):[[ov,n]],null);return r.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,r){const o=this._cmp,n=this._ascending,i=this._descending,a=this._min,s=this._max;if(e.length===0)return ya(this);if(!e.every(m=>m[0]!==void 0&&m[1]!==void 0&&n(m[0],m[1])<=0))return vr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",pe.InvalidArgument);const c=!r||r.includeLowers!==!1,l=r&&r.includeUppers===!0;let u,d=n;function f(m,b){return d(m[0],b[0])}try{u=e.reduce(function(m,b){let k=0,S=m.length;for(;k0){C[0]=a(C[0],b[0]),C[1]=s(C[1],b[1]);break}}return k===S&&m.push(b),m},[]),u.sort(f)}catch{return vr(this,Fo)}let h=0;const p=l?m=>n(m,u[h][1])>0:m=>n(m,u[h][1])>=0,g=c?m=>i(m,u[h][0])>0:m=>i(m,u[h][0])>=0;let y=p;const v=new this.Collection(this,()=>En(u[0][0],u[u.length-1][1],!c,!l));return v._ondirectionchange=m=>{m==="next"?(y=p,d=n):(y=g,d=i),u.sort(f)},v._addAlgorithm((m,b,k)=>{for(var S=m.key;y(S);)if(++h,h===u.length)return b(k),!1;return!!function(C){return!p(C)&&!g(C)}(S)||(this._cmp(S,u[h][1])===0||this._cmp(S,u[h][0])===0||b(()=>{d===n?m.continue(u[h][0]):m.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){const e=Go.apply(Ta,arguments);return e.every(r=>typeof r=="string")?e.length===0?ya(this):this.inAnyRange(e.map(r=>[r,r+xi])):vr(this,"startsWithAnyOf() only works with strings")}}function ko(t){return Ke(function(e){return yl(e),t(e.target.error),!1})}function yl(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const wl="storagemutated",Nn="x-storagemutated-1",ni=jc(null,wl);class sY{_lock(){return hc(!ue.global),++this._reculock,this._reculock!==1||ue.global||(ue.lockOwnerFor=this),this}_unlock(){if(hc(!ue.global),--this._reculock==0)for(ue.global||(ue.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Fs(e[1],e[0])}catch{}}return this}_locked(){return this._reculock&&ue.lockOwnerFor!==this}create(e){if(!this.mode)return this;const r=this.db.idbdb,o=this.db._state.dbOpenError;if(hc(!this.idbtrans),!e&&!r)switch(o&&o.name){case"DatabaseClosedError":throw new pe.DatabaseClosed(o);case"MissingAPIError":throw new pe.MissingAPI(o.message,o);default:throw new pe.OpenFailed(o)}if(!this.active)throw new pe.TransactionInactive;return hc(this._completion._state===null),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ke(n=>{yl(n),this._reject(e.error)}),e.onabort=Ke(n=>{yl(n),this.active&&this._reject(new pe.Abort(e.error)),this.active=!1,this.on("abort").fire(n)}),e.oncomplete=Ke(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&ni.storagemutated.fire(e.mutatedParts)}),this}_promise(e,r,o){if(e==="readwrite"&&this.mode!=="readwrite")return xt(new pe.ReadOnly("Transaction is readonly"));if(!this.active)return xt(new pe.TransactionInactive);if(this._locked())return new ie((i,a)=>{this._blockedFuncs.push([()=>{this._promise(e,r,o).then(i,a)},ue])});if(o)return ri(()=>{var i=new ie((a,s)=>{this._lock();const c=r(a,s,this);c&&c.then&&c.then(a,s)});return i.finally(()=>this._unlock()),i._lib=!0,i});var n=new ie((i,a)=>{var s=r(i,a,this);s&&s.then&&s.then(i,a)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var r=this._root();const o=ie.resolve(e);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>o);else{r._waitingFor=o,r._waitingQueue=[];var n=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(n.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new ie((a,s)=>{o.then(c=>r._waitingQueue.push(Ke(a.bind(null,c))),c=>r._waitingQueue.push(Ke(s.bind(null,c)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new pe.Abort))}table(e){const r=this._memoizedTables||(this._memoizedTables={});if(Rr(r,e))return r[e];const o=this.schema[e];if(!o)throw new pe.NotFound("Table "+e+" not part of transaction");const n=new this.db.Table(e,o,this);return n.core=this.db.core.table(e),r[e]=n,n}}function nv(t,e,r,o,n,i,a){return{name:t,keyPath:e,unique:r,multi:o,auto:n,compound:i,src:(r&&!a?"&":"")+(o?"*":"")+(n?"++":"")+kA(e)}}function kA(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function _A(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:JI(r,o=>[o.name,o])}}let kl=t=>{try{return t.only([[]]),kl=()=>[[]],[[]]}catch{return kl=()=>xi,xi}};function iv(t){return t==null?()=>{}:typeof t=="string"?function(e){return e.split(".").length===1?o=>o[e]:o=>nn(o,e)}(t):e=>nn(e,t)}function p_(t){return[].slice.call(t)}let cY=0;function Fc(t){return t==null?":id":typeof t=="string"?t:`[${t.join("+")}]`}function lY(t,e,r){function o(c){if(c.type===3)return null;if(c.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:l,upper:u,lowerOpen:d,upperOpen:f}=c;return l===void 0?u===void 0?null:e.upperBound(u,!!f):u===void 0?e.lowerBound(l,!!d):e.bound(l,u,!!d,!!f)}const{schema:n,hasGetAll:i}=function(c,l){const u=p_(c.objectStoreNames);return{schema:{name:c.name,tables:u.map(d=>l.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:h}=d,p=Gt(f),g=f==null,y={},v={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:g,compound:p,keyPath:f,autoIncrement:h,unique:!0,extractKey:iv(f)},indexes:p_(d.indexNames).map(m=>d.index(m)).map(m=>{const{name:b,unique:k,multiEntry:S,keyPath:C}=m,_={name:b,compound:Gt(C),keyPath:C,unique:k,multiEntry:S,extractKey:iv(C)};return y[Fc(C)]=_,_}),getIndexByKeyPath:m=>y[Fc(m)]};return y[":id"]=v.primaryKey,f!=null&&(y[Fc(f)]=v.primaryKey),v})},hasGetAll:u.length>0&&"getAll"in l.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),a=n.tables.map(c=>function(l){const u=l.name;return{name:u,schema:l,mutate:function({trans:d,type:f,keys:h,values:p,range:g}){return new Promise((y,v)=>{y=Ke(y);const m=d.objectStore(u),b=m.keyPath==null,k=f==="put"||f==="add";if(!k&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:S}=h||p||{length:1};if(h&&p&&h.length!==p.length)throw new Error("Given keys array must have same length as given values array.");if(S===0)return y({numFailures:0,failures:{},results:[],lastResult:void 0});let C;const _=[],T=[];let A=0;const R=E=>{++A,yl(E)};if(f==="deleteRange"){if(g.type===4)return y({numFailures:A,failures:T,results:[],lastResult:void 0});g.type===3?_.push(C=m.clear()):_.push(C=m.delete(o(g)))}else{const[E,U]=k?b?[p,h]:[p,null]:[h,null];if(k)for(let D=0;D{const U=E.target.result;_.forEach((D,B)=>D.error!=null&&(T[B]=D.error)),y({numFailures:A,failures:T,results:f==="delete"?h:_.map(D=>D.result),lastResult:U})};C.onerror=E=>{R(E),V(E)},C.onsuccess=V})},getMany:({trans:d,keys:f})=>new Promise((h,p)=>{h=Ke(h);const g=d.objectStore(u),y=f.length,v=new Array(y);let m,b=0,k=0;const S=_=>{const T=_.target;v[T._pos]=T.result,++k===b&&h(v)},C=ko(p);for(let _=0;_new Promise((h,p)=>{h=Ke(h);const g=d.objectStore(u).get(f);g.onsuccess=y=>h(y.target.result),g.onerror=ko(p)}),query:function(d){return f=>new Promise((h,p)=>{h=Ke(h);const{trans:g,values:y,limit:v,query:m}=f,b=v===1/0?void 0:v,{index:k,range:S}=m,C=g.objectStore(u),_=k.isPrimaryKey?C:C.index(k.name),T=o(S);if(v===0)return h({result:[]});if(d){const A=y?_.getAll(T,b):_.getAllKeys(T,b);A.onsuccess=R=>h({result:R.target.result}),A.onerror=ko(p)}else{let A=0;const R=y||!("openKeyCursor"in _)?_.openCursor(T):_.openKeyCursor(T),V=[];R.onsuccess=E=>{const U=R.result;return U?(V.push(y?U.value:U.primaryKey),++A===v?h({result:V}):void U.continue()):h({result:V})},R.onerror=ko(p)}})}(i),openCursor:function({trans:d,values:f,query:h,reverse:p,unique:g}){return new Promise((y,v)=>{y=Ke(y);const{index:m,range:b}=h,k=d.objectStore(u),S=m.isPrimaryKey?k:k.index(m.name),C=p?g?"prevunique":"prev":g?"nextunique":"next",_=f||!("openKeyCursor"in S)?S.openCursor(o(b),C):S.openKeyCursor(o(b),C);_.onerror=ko(v),_.onsuccess=Ke(T=>{const A=_.result;if(!A)return void y(null);A.___id=++cY,A.done=!1;const R=A.continue.bind(A);let V=A.continuePrimaryKey;V&&(V=V.bind(A));const E=A.advance.bind(A),U=()=>{throw new Error("Cursor not stopped")};A.trans=d,A.stop=A.continue=A.continuePrimaryKey=A.advance=()=>{throw new Error("Cursor not started")},A.fail=Ke(v),A.next=function(){let D=1;return this.start(()=>D--?this.continue():this.stop()).then(()=>this)},A.start=D=>{const B=new Promise((K,I)=>{K=Ke(K),_.onerror=ko(I),A.fail=I,A.stop=F=>{A.stop=A.continue=A.continuePrimaryKey=A.advance=U,K(F)}}),M=()=>{if(_.result)try{D()}catch(K){A.fail(K)}else A.done=!0,A.start=()=>{throw new Error("Cursor behind last entry")},A.stop()};return _.onsuccess=Ke(K=>{_.onsuccess=M,M()}),A.continue=R,A.continuePrimaryKey=V,A.advance=E,M(),B},y(A)},v)})},count({query:d,trans:f}){const{index:h,range:p}=d;return new Promise((g,y)=>{const v=f.objectStore(u),m=h.isPrimaryKey?v:v.index(h.name),b=o(p),k=b?m.count(b):m.count();k.onsuccess=Ke(S=>g(S.target.result)),k.onerror=ko(y)})}}}(c)),s={};return a.forEach(c=>s[c.name]=c),{stack:"dbcore",transaction:t.transaction.bind(t),table(c){if(!s[c])throw new Error(`Table '${c}' not found`);return s[c]},MIN_KEY:-1/0,MAX_KEY:kl(e),schema:n}}function av({_novip:t},e){const r=e.db,o=function(n,i,{IDBKeyRange:a,indexedDB:s},c){return{dbcore:function(u,d){return d.reduce((f,{create:h})=>({...f,...h(f)}),u)}(lY(i,a,c),n.dbcore)}}(t._middlewares,r,t._deps,e);t.core=o.dbcore,t.tables.forEach(n=>{const i=n.name;t.core.schema.tables.some(a=>a.name===i)&&(n.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=n.core))})}function _f({_novip:t},e,r,o){r.forEach(n=>{const i=o[n];e.forEach(a=>{const s=Wy(a,n);(!s||"value"in s&&s.value===void 0)&&(a===t.Transaction.prototype||a instanceof t.Transaction?on(a,n,{get(){return this.table(n)},set(c){YI(this,n,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):a[n]=new t.Table(n,i))})})}function sv({_novip:t},e){e.forEach(r=>{for(let o in r)r[o]instanceof t.Table&&delete r[o]})}function uY(t,e){return t._cfg.version-e._cfg.version}function dY(t,e,r,o){const n=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,n);i.create(r),i._completion.catch(o);const a=i._reject.bind(i),s=ue.transless||ue;ri(()=>{ue.trans=i,ue.transless=s,e===0?(vt(n).forEach(c=>{Xp(r,c,n[c].primKey,n[c].indexes)}),av(t,r),ie.follow(()=>t.on.populate.fire(i)).catch(a)):function({_novip:c},l,u,d){const f=[],h=c._versions;let p=c._dbSchema=lv(c,c.idbdb,d),g=!1;const y=h.filter(m=>m._cfg.version>=l);function v(){return f.length?ie.resolve(f.shift()(u.idbtrans)).then(v):ie.resolve()}return y.forEach(m=>{f.push(()=>{const b=p,k=m._cfg.dbschema;uv(c,b,d),uv(c,k,d),p=c._dbSchema=k;const S=SA(b,k);S.add.forEach(_=>{Xp(d,_[0],_[1].primKey,_[1].indexes)}),S.change.forEach(_=>{if(_.recreate)throw new pe.Upgrade("Not yet support for changing primary key");{const T=d.objectStore(_.name);_.add.forEach(A=>cv(T,A)),_.change.forEach(A=>{T.deleteIndex(A.name),cv(T,A)}),_.del.forEach(A=>T.deleteIndex(A))}});const C=m._cfg.contentUpgrade;if(C&&m._cfg.version>l){av(c,d),u._memoizedTables={},g=!0;let _=eA(k);S.del.forEach(V=>{_[V]=b[V]}),sv(c,[c.Transaction.prototype]),_f(c,[c.Transaction.prototype],vt(_),_),u.schema=_;const T=Vy(C);let A;T&&js();const R=ie.follow(()=>{if(A=C(u),A&&T){var V=gn.bind(null,null);A.then(V,V)}});return A&&typeof A.then=="function"?ie.resolve(A):R.then(()=>A)}}),f.push(b=>{(!g||!eY)&&function(k,S){[].slice.call(S.db.objectStoreNames).forEach(C=>k[C]==null&&S.db.deleteObjectStore(C))}(m._cfg.dbschema,b),sv(c,[c.Transaction.prototype]),_f(c,[c.Transaction.prototype],c._storeNames,c._dbSchema),u.schema=c._dbSchema})}),v().then(()=>{var m,b;b=d,vt(m=p).forEach(k=>{b.db.objectStoreNames.contains(k)||Xp(b,k,m[k].primKey,m[k].indexes)})})}(t,e,i,r).catch(a)})}function SA(t,e){const r={del:[],add:[],change:[]};let o;for(o in t)e[o]||r.del.push(o);for(o in e){const n=t[o],i=e[o];if(n){const a={name:o,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(n.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||n.primKey.auto!==i.primKey.auto&&!Th)a.recreate=!0,r.change.push(a);else{const s=n.idxByName,c=i.idxByName;let l;for(l in s)c[l]||a.del.push(l);for(l in c){const u=s[l],d=c[l];u?u.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([o,i])}return r}function Xp(t,e,r,o){const n=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return o.forEach(i=>cv(n,i)),n}function cv(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function lv(t,e,r){const o={};return mf(e.objectStoreNames,0).forEach(n=>{const i=r.objectStore(n);let a=i.keyPath;const s=nv(kA(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),c=[];for(let u=0;u{if(e[o]!==null){var n=e[o].split(",").map((a,s)=>{const c=(a=a.trim()).replace(/([&*]|\+\+)/g,""),l=/^\[/.test(c)?c.match(/^\[(.*)\]$/)[1].split("+"):c;return nv(c,l||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Gt(l),s===0)}),i=n.shift();if(i.multi)throw new pe.Schema("Primary key cannot be multi-valued");n.forEach(a=>{if(a.auto)throw new pe.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new pe.Schema("Index must have a name and cannot be an empty string")}),r[o]=_A(o,i,n)}})}stores(e){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?or(this._cfg.storesSource,e):e;const o=r._versions,n={};let i={};return o.forEach(a=>{or(n,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(n,i)}),r._dbSchema=i,sv(r,[r._allTables,r,r.Transaction.prototype]),_f(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],vt(i),i),r._storeNames=vt(i),this}upgrade(e){return this._cfg.contentUpgrade=Yy(this._cfg.contentUpgrade||ze,e),this}}function e0(t,e){let r=t._dbNamesDB;return r||(r=t._dbNamesDB=new Di(xh,{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function t0(t){return t&&typeof t.databases=="function"}function dv(t){return ri(function(){return ue.letThrough=!0,t()})}function hY(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function pY(t){const e=t._state,{indexedDB:r}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?xt(e.dbOpenError):t);Do&&(e.openCanceller._stackHolder=ca()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const o=e.openCanceller;function n(){if(e.openCanceller!==o)throw new pe.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,a=null,s=!1;return ie.race([o,(typeof navigator>"u"?ie.resolve():hY()).then(()=>new ie((c,l)=>{if(n(),!r)throw new pe.MissingAPI;const u=t.name,d=e.autoSchema?r.open(u):r.open(u,Math.round(10*t.verno));if(!d)throw new pe.MissingAPI;d.onerror=ko(l),d.onblocked=Ke(t._fireOnBlocked),d.onupgradeneeded=Ke(f=>{if(a=d.transaction,e.autoSchema&&!t._options.allowEmptyDB){d.onerror=yl,a.abort(),d.result.close();const p=r.deleteDatabase(u);p.onsuccess=p.onerror=Ke(()=>{l(new pe.NoSuchDatabase(`Database ${u} doesnt exist`))})}else{a.onerror=ko(l);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;s=h<1,t._novip.idbdb=d.result,dY(t,h/10,a,l)}},l),d.onsuccess=Ke(()=>{a=null;const f=t._novip.idbdb=d.result,h=mf(f.objectStoreNames);if(h.length>0)try{const g=f.transaction((p=h).length===1?p[0]:p,"readonly");e.autoSchema?function({_novip:y},v,m){y.verno=v.version/10;const b=y._dbSchema=lv(0,v,m);y._storeNames=mf(v.objectStoreNames,0),_f(y,[y._allTables],vt(b),b)}(t,f,g):(uv(t,t._dbSchema,g),function(y,v){const m=SA(lv(0,y.idbdb,v),y._dbSchema);return!(m.add.length||m.change.some(b=>b.add.length||b.change.length))}(t,g)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),av(t,g)}catch{}var p;Dc.push(t),f.onversionchange=Ke(g=>{e.vcFired=!0,t.on("versionchange").fire(g)}),f.onclose=Ke(g=>{t.on("close").fire(g)}),s&&function({indexedDB:g,IDBKeyRange:y},v){!t0(g)&&v!==xh&&e0(g,y).put({name:v}).catch(ze)}(t._deps,u),c()},l)}))]).then(()=>(n(),e.onReadyBeingFired=[],ie.resolve(dv(()=>t.on.ready.fire(t.vip))).then(function c(){if(e.onReadyBeingFired.length>0){let l=e.onReadyBeingFired.reduce(Yy,ze);return e.onReadyBeingFired=[],ie.resolve(dv(()=>l(t.vip))).then(c)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(c=>{e.dbOpenError=c;try{a&&a.abort()}catch{}return o===e.openCanceller&&t._close(),xt(c)}).finally(()=>{e.openComplete=!0,i()})}function fv(t){var e=i=>t.next(i),r=n(e),o=n(i=>t.throw(i));function n(i){return a=>{var s=i(a),c=s.value;return s.done?c:c&&typeof c.then=="function"?c.then(r,o):Gt(c)?Promise.all(c).then(r,o):r(c)}}return n(e)()}function gY(t,e,r){var o=arguments.length;if(o<2)throw new pe.InvalidArgument("Too few arguments");for(var n=new Array(o-1);--o;)n[o-1]=arguments[o];return r=n.pop(),[t,tA(n),r]}function CA(t,e,r,o,n){return ie.resolve().then(()=>{const i=ue.transless||ue,a=t._createTransaction(e,r,t._dbSchema,o),s={trans:a,transless:i};if(o)a.idbtrans=o.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===Xy.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>CA(t,e,r,null,n))):xt(d)}const c=Vy(n);let l;c&&js();const u=ie.follow(()=>{if(l=n.call(a,a),l)if(c){var d=gn.bind(null,null);l.then(d,d)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=fv(l))},s);return(l&&typeof l.then=="function"?ie.resolve(l).then(d=>a.active?d:xt(new pe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>l)).then(d=>(o&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),xt(d)))})}function Uu(t,e,r){const o=Gt(t)?t.slice():[t];for(let n=0;n0,v={...f,isVirtual:y,keyTail:d,keyLength:g,extractKey:iv(u),unique:!y&&f.unique};return p.push(v),v.isPrimaryKey||i.push(v),g>1&&a(g===2?u[0]:u.slice(0,g-1),d+1,f),p.sort((m,b)=>m.keyTail-b.keyTail),v}const s=a(o.primaryKey.keyPath,0,o.primaryKey);n[":id"]=[s];for(const u of o.indexes)a(u.keyPath,0,u);function c(u){const d=u.query.index;return d.isVirtual?{...u,query:{index:d,range:(f=u.query.range,h=d.keyTail,{type:f.type===1?2:f.type,lower:Uu(f.lower,f.lowerOpen?t.MAX_KEY:t.MIN_KEY,h),lowerOpen:!0,upper:Uu(f.upper,f.upperOpen?t.MIN_KEY:t.MAX_KEY,h),upperOpen:!0})}}:u;var f,h}return{...r,schema:{...o,primaryKey:s,indexes:i,getIndexByKeyPath:function(u){const d=n[Fc(u)];return d&&d[0]}},count:u=>r.count(c(u)),query:u=>r.query(c(u)),openCursor(u){const{keyTail:d,isVirtual:f,keyLength:h}=u.query.index;return f?r.openCursor(c(u)).then(p=>p&&function(g){return Object.create(g,{continue:{value:function(v){v!=null?g.continue(Uu(v,u.reverse?t.MAX_KEY:t.MIN_KEY,d)):u.unique?g.continue(g.key.slice(0,h).concat(u.reverse?t.MIN_KEY:t.MAX_KEY,d)):g.continue()}},continuePrimaryKey:{value(v,m){g.continuePrimaryKey(Uu(v,t.MAX_KEY,d),m)}},primaryKey:{get:()=>g.primaryKey},key:{get(){const v=g.key;return h===1?v[0]:v.slice(0,h)}},value:{get:()=>g.value}})}(p)):r.openCursor(u)}}}}}};function r0(t,e,r,o){return r=r||{},o=o||"",vt(t).forEach(n=>{if(Rr(e,n)){var i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"&&i&&a){const s=Km(i);s!==Km(a)?r[o+n]=e[n]:s==="Object"?r0(i,a,r,o+n+"."):i!==a&&(r[o+n]=e[n])}else i!==a&&(r[o+n]=e[n])}else r[o+n]=void 0}),vt(e).forEach(n=>{Rr(t,n)||(r[o+n]=e[n])}),r}const vY={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(e){const r=t.table(e),{primaryKey:o}=r.schema;return{...r,mutate(i){const a=ue.trans,{deleting:s,creating:c,updating:l}=a.table(e).hook;switch(i.type){case"add":if(c.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"put":if(c.fire===ze&&l.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"delete":if(s.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"deleteRange":if(s.fire===ze)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function u(f){const h=ue.trans,p=f.keys||function(g,y){return y.type==="delete"?y.keys:y.keys||y.values.map(g.extractKey)}(o,f);if(!p)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:p}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(g,y,v){return y.type==="add"?Promise.resolve([]):g.getMany({trans:y.trans,keys:v,cache:"immutable"})}(r,f,p).then(g=>{const y=p.map((v,m)=>{const b=g[m],k={onerror:null,onsuccess:null};if(f.type==="delete")s.fire.call(k,v,b,h);else if(f.type==="add"||b===void 0){const S=c.fire.call(k,v,f.values[m],h);v==null&&S!=null&&(v=S,f.keys[m]=v,o.outbound||lo(f.values[m],o.keyPath,v))}else{const S=r0(b,f.values[m]),C=l.fire.call(k,S,v,b,h);if(C){const _=f.values[m];Object.keys(C).forEach(T=>{Rr(_,T)?_[T]=C[T]:lo(_,T,C[T])})}}return k});return r.mutate(f).then(({failures:v,results:m,numFailures:b,lastResult:k})=>{for(let S=0;S(y.forEach(m=>m.onerror&&m.onerror(v)),Promise.reject(v)))})}function d(f,h,p){return r.query({trans:f,values:!1,query:{index:o,range:h},limit:p}).then(({result:g})=>u({type:"delete",keys:g,trans:f}).then(y=>y.numFailures>0?Promise.reject(y.failures[0]):g.length({table:e=>{const r=t.table(e);return{...r,getMany:o=>{if(!o.cache)return r.getMany(o);const n=TA(o.keys,o.trans._cache,o.cache==="clone");return n?ie.resolve(n):r.getMany(o).then(i=>(o.trans._cache={keys:o.keys,values:o.cache==="clone"?Vl(i):i},i))},mutate:o=>(o.type!=="add"&&(o.trans._cache=null),r.mutate(o))}}})};function o0(t){return!("from"in t)}const Ko=function(t,e){if(!this){const r=new Ko;return t&&"d"in t&&or(r,t),r}or(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function _l(t,e,r){const o=Zt(e,r);if(isNaN(o))return;if(o>0)throw RangeError();if(o0(t))return or(t,{from:e,to:r,d:1});const n=t.l,i=t.r;if(Zt(r,t.from)<0)return n?_l(n,e,r):t.l={from:e,to:r,d:1,l:null,r:null},g_(t);if(Zt(e,t.to)>0)return i?_l(i,e,r):t.r={from:e,to:r,d:1,l:null,r:null},g_(t);Zt(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),Zt(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);const a=!t.r;n&&!t.l&&Sf(t,n),i&&a&&Sf(t,i)}function Sf(t,e){o0(e)||function r(o,{from:n,to:i,l:a,r:s}){_l(o,n,i),a&&r(o,a),s&&r(o,s)}(t,e)}function yY(t,e){const r=hv(e);let o=r.next();if(o.done)return!1;let n=o.value;const i=hv(t);let a=i.next(n.from),s=a.value;for(;!o.done&&!a.done;){if(Zt(s.from,n.to)<=0&&Zt(s.to,n.from)>=0)return!0;Zt(n.from,s.from)<0?n=(o=r.next(s.from)).value:s=(a=i.next(n.from)).value}return!1}function hv(t){let e=o0(t)?null:{s:0,n:t};return{next(r){const o=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,o)for(;e.n.l&&Zt(r,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!o||Zt(r,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function g_(t){var e,r;const o=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((r=t.l)===null||r===void 0?void 0:r.d)||0),n=o>1?"r":o<-1?"l":"";if(n){const i=n==="r"?"l":"r",a={...t},s=t[n];t.from=s.from,t.to=s.to,t[n]=s[n],a[n]=s[i],t[i]=a,a.d=m_(a)}t.d=m_(t)}function m_({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}Ss(Ko.prototype,{add(t){return Sf(this,t),this},addKey(t){return _l(this,t,t),this},addKeys(t){return t.forEach(e=>_l(this,e,e)),this},[Wm](){return hv(this)}});const wY={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,r=new Ko(t.MIN_KEY,t.MAX_KEY);return{...t,table:o=>{const n=t.table(o),{schema:i}=n,{primaryKey:a}=i,{extractKey:s,outbound:c}=a,l={...n,mutate:f=>{const h=f.trans,p=h.mutatedParts||(h.mutatedParts={}),g=C=>{const _=`idb://${e}/${o}/${C}`;return p[_]||(p[_]=new Ko)},y=g(""),v=g(":dels"),{type:m}=f;let[b,k]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const S=f.trans._cache;return n.mutate(f).then(C=>{if(Gt(b)){m!=="delete"&&(b=C.results),y.addKeys(b);const _=TA(b,S);_||m==="add"||v.addKeys(b),(_||k)&&function(T,A,R,V){function E(U){const D=T(U.name||"");function B(K){return K!=null?U.extractKey(K):null}const M=K=>U.multiEntry&&Gt(K)?K.forEach(I=>D.addKey(I)):D.addKey(K);(R||V).forEach((K,I)=>{const F=R&&B(R[I]),$=V&&B(V[I]);Zt(F,$)!==0&&(F!=null&&M(F),$!=null&&M($))})}A.indexes.forEach(E)}(g,i,_,k)}else if(b){const _={from:b.lower,to:b.upper};v.add(_),y.add(_)}else y.add(r),v.add(r),i.indexes.forEach(_=>g(_.name).add(r));return C})}},u=({query:{index:f,range:h}})=>{var p,g;return[f,new Ko((p=h.lower)!==null&&p!==void 0?p:t.MIN_KEY,(g=h.upper)!==null&&g!==void 0?g:t.MAX_KEY)]},d={get:f=>[a,new Ko(f.key)],getMany:f=>[a,new Ko().addKeys(f.keys)],count:u,query:u,openCursor:u};return vt(d).forEach(f=>{l[f]=function(h){const{subscr:p}=ue;if(p){const g=k=>{const S=`idb://${e}/${o}/${k}`;return p[S]||(p[S]=new Ko)},y=g(""),v=g(":dels"),[m,b]=d[f](h);if(g(m.name||"").add(b),!m.isPrimaryKey){if(f!=="count"){const k=f==="query"&&c&&h.values&&n.query({...h,values:!1});return n[f].apply(this,arguments).then(S=>{if(f==="query"){if(c&&h.values)return k.then(({result:_})=>(y.addKeys(_),S));const C=h.values?S.result.map(s):S.result;h.values?y.addKeys(C):v.addKeys(C)}else if(f==="openCursor"){const C=S,_=h.values;return C&&Object.create(C,{key:{get:()=>(v.addKey(C.primaryKey),C.key)},primaryKey:{get(){const T=C.primaryKey;return v.addKey(T),T}},value:{get:()=>(_&&y.addKey(C.primaryKey),C.value)}})}return S})}v.add(r)}}return n[f].apply(this,arguments)}}),l}}}};class Di{constructor(e,r){this._middlewares={},this.verno=0;const o=Di.dependencies;this._options=r={addons:Di.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:n}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ze,dbReadyPromise:null,cancelOpen:ze,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new ie(s=>{i.dbReadyResolve=s}),i.openCanceller=new ie((s,c)=>{i.cancelOpen=c}),this._state=i,this.name=e,this.on=jc(this,"populate","blocked","versionchange","close",{ready:[Yy,ze]}),this.on.ready.subscribe=QI(this.on.ready.subscribe,s=>(c,l)=>{Di.vip(()=>{const u=this._state;if(u.openComplete)u.dbOpenError||ie.resolve().then(c),l&&s(c);else if(u.onReadyBeingFired)u.onReadyBeingFired.push(c),l&&s(c);else{s(c);const d=this;l||s(function f(){d.on.ready.unsubscribe(c),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,Js(oY.prototype,function(s,c){this.db=a;let l=bA,u=null;if(c)try{l=c()}catch(p){u=p}const d=s._ctx,f=d.table,h=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:l,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:d.or,valueMapper:h!==vl?h:null}})),this.Table=function(s){return Js(rY.prototype,function(c,l,u){this.db=s,this._tx=u,this.name=c,this.schema=l,this.hook=s._allTables[c]?s._allTables[c].hook:jc(null,{creating:[$X,ze],reading:[UX,vl],updating:[WX,ze],deleting:[KX,ze]})})}(this),this.Transaction=function(s){return Js(sY.prototype,function(c,l,u,d,f){this.db=s,this.mode=c,this.storeNames=l,this.schema=u,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=jc(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ie((h,p)=>{this._resolve=h,this._reject=p}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},h=>{var p=this.active;return this.active=!1,this.on.error.fire(h),this.parent?this.parent._reject(h):p&&this.idbtrans&&this.idbtrans.abort(),xt(h)})})}(this),this.Version=function(s){return Js(fY.prototype,function(c){this.db=s,this._cfg={version:c,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return Js(wA.prototype,function(c,l,u){this.db=s,this._ctx={table:c,index:l===":id"?null:l,or:u};const d=s._deps.indexedDB;if(!d)throw new pe.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,h)=>d.cmp(h,f),this._max=(f,h)=>d.cmp(f,h)>0?f:h,this._min=(f,h)=>d.cmp(f,h)<0?f:h,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersionnew this.Transaction(s,c,l,this._options.chromeTransactionDurability,u),this._fireOnBlocked=s=>{this.on("blocked").fire(s),Dc.filter(c=>c.name===this.name&&c!==this&&!c._state.vcFired).map(c=>c.on("versionchange").fire(s))},this.use(mY),this.use(vY),this.use(wY),this.use(bY),this.vip=Object.create(this,{_vip:{value:!0}}),n.forEach(s=>s(this))}version(e){if(isNaN(e)||e<.1)throw new pe.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new pe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const r=this._versions;var o=r.filter(n=>n._cfg.version===e)[0];return o||(o=new this.Version(e),r.push(o),r.sort(uY),o.stores({}),this._state.autoSchema=!1,o)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ue.letThrough||this._vip)?e():new ie((r,o)=>{if(this._state.openComplete)return o(new pe.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void o(new pe.DatabaseClosed);this.open().catch(ze)}this._state.dbReadyPromise.then(r,o)}).then(e)}use({stack:e,create:r,level:o,name:n}){n&&this.unuse({stack:e,name:n});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:r,level:o??10,name:n}),i.sort((a,s)=>a.level-s.level),this}unuse({stack:e,name:r,create:o}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(n=>o?n.create!==o:!!r&&n.name!==r)),this}open(){return pY(this)}_close(){const e=this._state,r=Dc.indexOf(this);if(r>=0&&Dc.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}e.dbReadyPromise=new ie(o=>{e.dbReadyResolve=o}),e.openCanceller=new ie((o,n)=>{e.cancelOpen=n})}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new pe.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,r=this._state;return new ie((o,n)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Ke(()=>{(function({indexedDB:s,IDBKeyRange:c},l){!t0(s)&&l!==xh&&e0(s,c).delete(l).catch(ze)})(this._deps,this.name),o()}),a.onerror=ko(n),a.onblocked=this._fireOnBlocked};if(e)throw new pe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return vt(this._allTables).map(e=>this._allTables[e])}transaction(){const e=gY.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,r,o){let n=ue.trans;n&&n.db===this&&e.indexOf("!")===-1||(n=null);const i=e.indexOf("?")!==-1;let a,s;e=e.replace("!","").replace("?","");try{if(s=r.map(l=>{var u=l instanceof this.Table?l.name:l;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),e=="r"||e===$p)a=$p;else{if(e!="rw"&&e!=Kp)throw new pe.InvalidArgument("Invalid transaction mode: "+e);a=Kp}if(n){if(n.mode===$p&&a===Kp){if(!i)throw new pe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");n=null}n&&s.forEach(l=>{if(n&&n.storeNames.indexOf(l)===-1){if(!i)throw new pe.SubTransaction("Table "+l+" not included in parent transaction.");n=null}}),i&&n&&!n.active&&(n=null)}}catch(l){return n?n._promise(null,(u,d)=>{d(l)}):xt(l)}const c=CA.bind(null,this,a,s,n,o);return n?n._promise(a,c,"lock"):ue.trans?Fs(ue.transless,()=>this._whenReady(c)):this._whenReady(c)}table(e){if(!Rr(this._allTables,e))throw new pe.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const kY=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class _Y{constructor(e){this._subscribe=e}subscribe(e,r,o){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:r,complete:o})}[kY](){return this}}function xA(t,e){return vt(e).forEach(r=>{Sf(t[r]||(t[r]=new Ko),e[r])}),t}function SY(t){let e,r=!1;const o=new _Y(n=>{const i=Vy(t);let a=!1,s={},c={};const l={get closed(){return a},unsubscribe:()=>{a=!0,ni.storagemutated.unsubscribe(h)}};n.start&&n.start(l);let u=!1,d=!1;function f(){return vt(c).some(g=>s[g]&&yY(s[g],c[g]))}const h=g=>{xA(s,g),f()&&p()},p=()=>{if(u||a)return;s={};const g={},y=function(v){i&&js();const m=()=>ri(t,{subscr:v,trans:null}),b=ue.trans?Fs(ue.transless,m):m();return i&&b.then(gn,gn),b}(g);d||(ni(wl,h),d=!0),u=!0,Promise.resolve(y).then(v=>{r=!0,e=v,u=!1,a||(f()?p():(s={},c=g,n.next&&n.next(v)))},v=>{u=!1,r=!1,n.error&&n.error(v),l.unsubscribe()})};return p(),l});return o.hasValue=()=>r,o.getValue=()=>e,o}let pv;try{pv={indexedDB:qe.indexedDB||qe.mozIndexedDB||qe.webkitIndexedDB||qe.msIndexedDB,IDBKeyRange:qe.IDBKeyRange||qe.webkitIDBKeyRange}}catch{pv={indexedDB:null,IDBKeyRange:null}}const ui=Di;function wd(t){let e=Zo;try{Zo=!0,ni.storagemutated.fire(t)}finally{Zo=e}}Ss(ui,{...pd,delete:t=>new ui(t,{addons:[]}).delete(),exists:t=>new ui(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:e,IDBKeyRange:r}){return t0(e)?Promise.resolve(e.databases()).then(o=>o.map(n=>n.name).filter(n=>n!==xh)):e0(e,r).toCollection().primaryKeys()}(ui.dependencies).then(t)}catch{return xt(new pe.MissingAPI)}},defineClass:()=>function(t){or(this,t)},ignoreTransaction:t=>ue.trans?Fs(ue.transless,t):t(),vip:dv,async:function(t){return function(){try{var e=fv(t.apply(this,arguments));return e&&typeof e.then=="function"?e:ie.resolve(e)}catch(r){return xt(r)}}},spawn:function(t,e,r){try{var o=fv(t.apply(r,e||[]));return o&&typeof o.then=="function"?o:ie.resolve(o)}catch(n){return xt(n)}},currentTransaction:{get:()=>ue.trans||null},waitFor:function(t,e){const r=ie.resolve(typeof t=="function"?ui.ignoreTransaction(t):t).timeout(e||6e4);return ue.trans?ue.trans.waitFor(r):r},Promise:ie,debug:{get:()=>Do,set:t=>{oA(t,t==="dexie"?()=>!0:vA)}},derive:Za,extend:or,props:Ss,override:QI,Events:jc,on:ni,liveQuery:SY,extendObservabilitySet:xA,getByKeyPath:nn,setByKeyPath:lo,delByKeyPath:function(t,e){typeof e=="string"?lo(t,e,void 0):"length"in e&&[].map.call(e,function(r){lo(t,r,void 0)})},shallowClone:eA,deepClone:Vl,getObjectDiff:r0,cmp:Zt,asap:ZI,minKey:ov,addons:[],connections:Dc,errnames:Xy,dependencies:pv,semVer:l_,version:l_.split(".").map(t=>parseInt(t)).reduce((t,e,r)=>t+e/Math.pow(10,2*r))}),ui.maxKey=kl(ui.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ni(wl,t=>{if(!Zo){let e;Th?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Nn,!0,!0,t)):e=new CustomEvent(Nn,{detail:t}),Zo=!0,dispatchEvent(e),Zo=!1}}),addEventListener(Nn,({detail:t})=>{Zo||wd(t)}));let Zo=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel(Nn);typeof t.unref=="function"&&t.unref(),ni(wl,e=>{Zo||t.postMessage(e)}),t.onmessage=e=>{e.data&&wd(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){ni(wl,e=>{try{Zo||(typeof localStorage<"u"&&localStorage.setItem(Nn,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Nn,changedParts:e})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",e=>{if(e.key===Nn){const r=JSON.parse(e.newValue);r&&wd(r.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:e}){e&&e.type===Nn&&wd(e.changedParts)})}ie.rejectionMapper=function(t,e){if(!t||t instanceof Ja||t instanceof TypeError||t instanceof SyntaxError||!t.name||!i_[t.name])return t;var r=new i_[t.name](e||t.message,t);return"stack"in t&&on(r,"stack",{get:function(){return this.inner.stack}}),r},oA(Do,vA);class CY{constructor(e,r){this.DB=e,this.Name=r,this.Sto=e.table(r),this.Trim()}Sto;async Get(e,r){const o=await this.Sto.get(e);return o?r&&await r(o)||typeof o.Exp=="number"&&o.Exptypeof e.Exp=="number"&&e.Exp{const r=setInterval(()=>{this.Hub.state===Pe.Connected&&(clearInterval(r),e())},100)}))}static async Invoke(e,...r){return await this.EnsureConnected(),this.Hub.invoke(e,...r)}static EnsureLogin(){if(!an.getActiveAccount())throw new IA}static EnsureTrue(e){if(!e)throw new TY}static async WithVersionCache(e,r,o){const n=`${r}_${o?`Admin_${e}`:e}`,i=await xa.Get(n);if(i&&i.QueryExp>Ct().unix())return i;const a=await this.Invoke(r,e,i?.Version);return a===!0?(xa.Set(n,{...i,QueryExp:Ct().add(1,"m").unix()},null),i):a?(xa.Set(n,{...a,QueryExp:Ct().add(1,"m").unix()},null),a):xa.Sto.delete(n)}static async WithTimeCache(e,r,o,...n){return await xa.GetOrSet(`${r}_${e}`,async()=>await this.Invoke(r,...n),o)}static async FindCover(e,r,o){const n=[];for(const i of e){const a=await(await Ts(()=>Promise.resolve().then(()=>RY),void 0)).ProductEntity.Photo(i);if(a){if(n.push(a),a.Cover)return a.ObjectId}else o?.warn(`Photo ${i} not found in Product ${r}`)}if(n.length>0)return o?.warn(`Product ${r} has no cover photo, using first photo instead`),n.sort((i,a)=>i.Order-a.Order)[0].ObjectId}static async HandleFileStream(e,r,o){const i=Math.ceil(e.size/30720);let a=0;for(;a{u.onload=()=>f(new Uint8Array(u.result)),u.onerror=()=>h(u.error),u.readAsArrayBuffer(l)});r.next(d),o?.debug(`Sent chunk ${a+1}/${i}`),a++}r.complete()}}class ho extends AA{static Log=["|","ShopNet"];static Hub=new DI().withUrl("https://awaishop.aloen.to:3389/Hub",{skipNegotiation:!0,transport:ct.WebSockets,logMessageContent:!1,async accessTokenFactory(){const e=await EA();return e||""}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new HI).configureLogging(L.Information).build()}ho.Hub.on("OnNewUser",()=>{Qa.next(!0),console.debug("OnNewUser")});class xY extends ho{static Categories(){return this.WithTimeCache("","GalleryGetCategories",Ct().add(1,"m"))}static async Products(e){const r=await this.WithTimeCache(e,"GalleryGetProducts",Ct().add(1,"m"),e);return[r,4-r.length%4]}}const EY={Get:xY};class IY extends ho{static async Get(e){if(!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(e))throw new Error(`Invalid ObjectId ${e}`);return await this.EnsureConnected(),this.Hub.stream("ObjectStorageGet",e)}static GetBySlice(e,r){const o=[];return xa.GetOrSet(e,()=>new Promise((n,i)=>{this.Get(e).then(a=>a.subscribe({error(s){i(s)},next(s){o.push(s),r.debug("Received Slice",e,o.length)},complete(){n(o)}}))}))}}class AY extends ho{static useDelete(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("OrderDeleteCancel",r);return this.EnsureTrue(o),o},e)}}class Rt extends ho{static Product(e){return this.WithVersionCache(e,"ProductEntity")}static Photo(e){return this.WithVersionCache(e,"PhotoEntity")}static Type(e){return this.WithVersionCache(e,"TypeEntity")}static Variant(e){return this.WithVersionCache(e,"VariantEntity")}}const RY=Object.freeze(Object.defineProperty({__proto__:null,ProductEntity:Rt},Symbol.toStringTag,{value:"Module"}));class Ih extends ho{static Log=[...super.Log,"Product","Get"];static async Basic(e,r){const o=r.With(...this.Log,"Basic"),n=await Rt.Product(e);if(!n)throw new Error(`Product ${e} Not Found`);const i=await this.PhotoList(e),a=await this.FindCover(i,e,o);return a?{Name:n.Name,Cover:a}:(o.warn(`Product ${e} has no photo`),{Name:n.Name,Cover:""})}static Limit(e){return this.Invoke("ProdGetLimit",e)}static async Combo(e,r){const o=r.With(...this.Log,"Combo"),n=await this.ComboList(e),i=[];for(const a of n){const s={};for(const c of a.Types){const l=await Rt.Type(c);if(!l){o.error(`[Mismatch] Type ${c} not found. Combo ${a.ComboId} : Product ${e}`);continue}const u=await Rt.Variant(l.VariantId);if(!u){o.error(`[Mismatch] Variant ${l.VariantId} not found. Combo ${a.ComboId} : Type ${c} : Product ${e}`);continue}s[u.Name]=l.Name}i.push({Id:a.ComboId,Stock:a.Stock,Combo:s})}return i}static async Carousel(e,r){const o=r.With(...this.Log,"Carousel"),n=await this.PhotoList(e),i=[];for(let a=0;aa.Id-s.Id)}static async Lexical(e){return"This is a demo"}static ComboList(e){return this.WithTimeCache(e,"ProductGetComboList",Ct().add(1,"m"),e)}static PhotoList(e){return this.WithTimeCache(e,"ProductGetPhotoList",Ct().add(1,"m"),e)}}class Qp extends ho{static Order(e){return this.EnsureLogin(),this.WithVersionCache(e,"OrderEntity")}static Comment(e){return this.EnsureLogin(),this.WithVersionCache(e,"CommentEntity")}}class PY extends ho{static Log=[...super.Log,"Order","Get"];static async List(e){this.EnsureLogin();const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","OrderGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await Qp.Order(i.OrderId);if(!a){r.warn(`[Mismatch] Order ${i.OrderId} not found`);continue}const s=[];for(const c of i.Products){const l=await Rt.Product(c);if(!l){r.warn(`[Mismatch] Product ${c} not found`);continue}s.push(l.Name)}n.push({Id:i.OrderId,Items:s,Quantity:i.Quantity,Status:a.Status,TrackNumber:a.TrackingNumber,OrderDate:a.CreateAt})}return n.sort((i,a)=>a.OrderDate.getTime()-i.OrderDate.getTime())}static async Detail(e,r){this.EnsureLogin();const o=r.With(...this.Log,"Detail"),n=await this.WithTimeCache(e,"OrderGetDetail",Ct().add(1,"m"),e),i=[];let a=0;for(const c of n.Items){const l={};let u=0;for(const p of c.Types){const g=await Rt.Type(p);if(!g){o.warn(`[Mismatch] Type ${p} not found. Order : ${e}`);continue}const y=await Rt.Variant(g.VariantId);if(!y){o.warn(`[Mismatch] Variant ${g.VariantId} not found. Type : ${p}, Order : ${e}`);continue}l[y.Name]=g.Name,u=y.ProductId}const d=await Rt.Product(u);if(!d){o.warn(`[Mismatch] Product ${u} not found. Order : ${e}`);continue}const f=await Ih.PhotoList(u),h=await this.FindCover(f,u,o);h||o.warn(`Product ${u} has no photo`),i.push({Id:a++,ProdId:u,Cover:h||"",Name:d.Name,Type:l,Quantity:c.Quantity})}const s=[];for(const c of n.Comments){const l=await Qp.Comment(c);if(!l){o.warn(`[Mismatch] Comment ${c} not found. Order : ${e}`);continue}s.push({Content:l.Content,Time:l.CreateAt,User:l.Name||"You"})}return{ShopCart:i,Comments:s.sort((c,l)=>c.Time.getTime()-l.Time.getTime())}}static Order=Qp.Order}class BY extends ho{static useNew(e){return Ce((r,o)=>{this.EnsureLogin();const n=r.map(i=>({ProdId:i.ProdId,Type:Object.values(i.Type),Quantity:i.Quantity}));return this.Invoke("OrderPostNew",n,o)},e)}static useAppend(e){return Ce(async(r,o)=>{this.EnsureLogin();const n=await this.Invoke("OrderPostAppend",r,o);return this.EnsureTrue(n),n},e)}static useCancel(e){return Ce(async(r,o)=>{this.EnsureLogin();const n=await this.Invoke("OrderPostCancel",r,o);return this.EnsureTrue(n),n},e)}static useReceived(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("OrderPostReceived",r);return this.EnsureTrue(o),o},e)}}const NY={Get:PY,Post:BY,Delete:AY},zY={Get:Ih};function la(t){var e=w.useRef();return e.current===void 0&&(e.current={value:typeof t=="function"?t():t}),e.current.value}class MY extends ho{static useMe(e,r,o=!0){const n=la(()=>e.With("|","Hub","User","Get","Me")),{dispatch:i,dispatchToast:a}=Ch(n);return Ce(()=>(this.EnsureLogin(),this.WithVersionCache(0,"UserGetMe")),{...r,onError:(s,c)=>{s instanceof IA?o?n.debug(s):a(x.jsx(Ms,{children:x.jsx(Os,{children:s.message})}),{intent:"warning",timeout:5e3}):i({Message:"Failed to Get Your Info",Error:s,Request:c})}})}}class OY extends ho{static useUpdate(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("UserPostUpdate",r);return this.EnsureTrue(o),o},e)}}const DY={Get:MY,Post:OY},mn={Gallery:EY,Product:zY,User:DY,Order:NY,Storage:IY},RA=w.createContext({});function Sl(){return w.useContext(RA)}const Zp=new sa("ShopCart","Context");function jY({children:t}){const[e,r]=w.useState([]);Ce(async()=>{const i=await Yp.toArray(),a=[];for(const s of i){const c=await mn.Product.Get.Basic(s.ProdId,Zp);a.push({...s,...c})}r(a)},{onError:Zp.error});async function o(i){for(let a=0;a({Id:a.Id,ProdId:a.ProdId,Type:a.Type,Quantity:a.Quantity})))}async function n(i,a,s){const c=await mn.Product.Get.Basic(i,Zp);e.push({...c,Id:e.length,ProdId:i,Type:a,Quantity:s}),o(e)}return x.jsx(RA.Provider,{value:{List:e,Add:n,Update:o},children:t})}const n0={Name:"AwaiShop"},FY=Wr({box:{width:"-webkit-fill-available",marginTop:Me.spacingVerticalXXXL,...ls.padding(Me.spacingVerticalXXXL,0),backgroundColor:Me.colorNeutralBackgroundInverted},main:{...pn,maxWidth:Ky,...ls.margin(0,"auto")},logo:{width:"150px",filter:"invert(96%)"},otc:{color:"white"}});function LY(){const t=FY();return x.jsx("footer",{className:t.box,children:x.jsx("div",{className:t.main,children:x.jsx("img",{src:"/safari-pinned-tab.svg",className:t.logo})})})}function qY(){const{Paths:t,Search:e,Put:r}=Ds(),o=t.at(0),n=t.at(1),i=n==="User",a=n==="Order",s=i?"admin":"pending";return o==="Admin"&&(i||a)&&x.jsxs(x.Fragment,{children:[x.jsx(Xa,{placeholder:"Search in Any Field",contentBefore:x.jsx(L3,{}),appearance:"underline",onChange:(c,l)=>{l.value?e.set("search",l.value):e.delete("search"),r(e)}}),x.jsx(x2,{label:`Only ${i?"Admin":"Pending"}`,checked:e.get(s)==="",onChange:(c,l)=>{l.checked?e.set(s,""):e.delete(s),r(e)}})]})}const HY=Wr({box:{...pn,flexGrow:1,height:"inherit",marginLeft:Me.spacingHorizontalS,alignItems:"center"},div:{color:Me.colorNeutralForegroundDisabled},link:{textDecorationLine:"unset !important"}});function UY(){const t=HY(),{Paths:e}=Ds(),r=e.at(0),o=e.at(1)||"Product";return r==="Admin"&&x.jsxs("div",{className:t.box,children:[x.jsx(fl,{size:600,font:"monospace",className:t.div,children:"|"}),x.jsxs(I2,{selectedValue:o,children:[x.jsx(Gn,{appearance:"subtle",href:"/Admin",className:t.link,children:x.jsx(ld,{value:"Product",children:"Product List"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin/Order",className:t.link,children:x.jsx(ld,{value:"Order",children:"Order List"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin/User",className:t.link,children:x.jsx(ld,{value:"User",children:"User List"})})]})]})}class po extends AA{static Log=["|","AdminNet"];static Hub=new DI().withUrl("https://awaishop.aloen.to:3389/AdminHub",{skipNegotiation:!0,transport:ct.WebSockets,logMessageContent:!1,async accessTokenFactory(){const e=await EA();if(e)return e;throw new Error("Please Login First")}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new HI).configureLogging(L.Information).build();static WithVersionCache(e,r){return super.WithVersionCache(e,r,!0)}static WithTimeCache(e,r,o,...n){return super.WithTimeCache(`Admin_${e}`,r,o,...n)}}class Cf extends po{static User(e){return this.EnsureLogin(),this.WithVersionCache(e,"UserEntity")}}class kd extends po{static Order(e){return this.EnsureLogin(),this.WithVersionCache(e,"OrderEntity")}static Comment(e){return this.EnsureLogin(),this.WithVersionCache(e,"CommentEntity")}}class $Y extends po{static Log=[...super.Log,"Order","Get"];static async List(e){this.EnsureLogin();const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","OrderGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await kd.Order(i.OrderId);if(!a){r.warn(`[Mismatch] Order ${i.OrderId} not found`);continue}const s=[];for(const l of i.Products){const u=await Rt.Product(l);if(!u){r.warn(`[Mismatch] Product ${l} not found`);continue}s.push(u.Name)}const c=await Cf.User(a.UserId);if(!c){r.error(`[Mismatch] User ${a.UserId} not found`);continue}n.push({Id:i.OrderId,Items:s,Quantity:i.Quantity,Status:a.Status,TrackNumber:a.TrackingNumber,OrderDate:a.CreateAt,User:c.Name})}return n.sort((i,a)=>a.OrderDate.getTime()-i.OrderDate.getTime())}static async Detail(e,r){this.EnsureLogin();const o=r.With(...this.Log,"Detail"),n=await this.WithTimeCache(e,"OrderGetDetail",Ct().add(1,"m"),e),i=[];let a=0;for(const c of n.Items){const l={};let u=0;for(const p of c.Types){const g=await Rt.Type(p);if(!g){o.warn(`[Mismatch] Type ${p} not found. Order : ${e}`);continue}const y=await Rt.Variant(g.VariantId);if(!y){o.warn(`[Mismatch] Variant ${g.VariantId} not found. Type : ${p}, Order : ${e}`);continue}l[y.Name]=g.Name,u=y.ProductId}const d=await Rt.Product(u);if(!d){o.warn(`[Mismatch] Product ${u} not found. Order : ${e}`);continue}const f=await Ih.PhotoList(u),h=await this.FindCover(f,u,o);h||o.warn(`Product ${u} has no photo`),i.push({Id:a++,ProdId:u,Cover:h||"",Name:d.Name,Type:l,Quantity:c.Quantity})}const s=[];for(const c of n.Comments){const l=await kd.Comment(c);if(!l){o.warn(`[Mismatch] Comment ${c} not found. Order : ${e}`);continue}let u="Client";if(l.UserId){const d=await Cf.User(l.UserId);d?u=d.Name:o.warn(`[Mismatch] User ${l.UserId} not found. Order : ${e}`)}s.push({Content:l.Content,Time:l.CreateAt,User:u})}return{ShopCart:i,Comments:s.sort((c,l)=>c.Time.getTime()-l.Time.getTime())}}static Order=kd.Order}class KY extends po{static useAppend(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostAppend",r,o);return this.EnsureTrue(n),n},e)}static useClose(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostClose",r,o);return this.EnsureTrue(n),n},e)}static useShip(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostShip",r,o);return this.EnsureTrue(n),n},e)}static useAccept(e){return Ce(async r=>{const o=await this.Invoke("OrderPostAccept",r);return this.EnsureTrue(o),o},e)}}const WY={Get:$Y,Post:KY};class VY extends po{static usePhoto(e){return Ce(async r=>{const o=await this.Invoke("ProductDeletePhoto",r);return this.EnsureTrue(o),o},e)}static useVariant(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteVariant",r);return this.EnsureTrue(o),o},e)}static useType(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductDeleteType",r,o);return this.EnsureTrue(n),n},e)}static useCombo(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteCombo",r);return this.EnsureTrue(o),o},e)}static useProduct(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteProduct",r);return this.EnsureTrue(o),o},e)}}class GY extends po{static Log=[...super.Log,"Product","Get"];static async List(e){const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","ProductGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await Rt.Product(i.ProductId);if(!a){r.warn(`Product ${i.ProductId} Not Found`);continue}const s=await Ih.PhotoList(i.ProductId),c=await this.FindCover(s,i.ProductId,r);c||r.warn(`Product ${i.ProductId} has no photo`),n.push({Id:i.ProductId,Cover:c||"",Name:a.Name,Category:a.Category||"Pending",Variant:i.Variant,Combo:i.Combo,Stock:i.Stock})}return n}static async Name(e){const r=await Rt.Product(e);if(!r)throw new Error(`Product ${e} Not Found`);return r.Name}static async Category(e){const r=await Rt.Product(e);if(!r)throw new Error(`Product ${e} Not Found`);return r.Category}static async Variants(e,r){const o=r.With(...this.Log,"Variants"),n=await this.WithTimeCache(e,"ProductGetVariants",Ct().add(1,"m"),e),i=[];for(const a of n){const s=await Rt.Variant(a.VariantId);if(!s){o.warn(`Variant ${a} Not Found. Product : ${e}`);continue}const c=[];for(const l of a.Types){const u=await Rt.Type(l);if(!u){o.warn(`Type ${l} Not Found. Variant : ${a.VariantId}, Product : ${e}`);continue}c.push(u.Name)}i.push({Id:a.VariantId,Name:s.Name,Types:c})}return i}}class XY extends po{static Log=[...super.Log,"Product","Patch"];static useName(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchName",r,o);return this.EnsureTrue(n),n},e)}static useCategory(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchCategory",r,o);return this.EnsureTrue(n),n},e)}static usePhoto(e,r){const o=la(()=>e.With(...this.Log,"Photo"));return Ce(async(n,i)=>{if(!i.type.startsWith("image/"))throw new TypeError("File is not an image");if(i.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");await this.EnsureConnected();const a=new Sh,s=this.Hub.invoke("ProductPatchPhoto",n,a);return await this.HandleFileStream(i,a,o),this.EnsureTrue(await s),!0},r)}static useCaption(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchCaption",r,o);return this.EnsureTrue(n),n},e)}static useVariantName(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchVariantName",r,o);return this.EnsureTrue(n),n},e)}static useType(e){return Ce(async(r,o,n)=>{const i=await this.Invoke("ProductPatchType",r,o,n);return this.EnsureTrue(i),i},e)}static useCombo(e){return Ce(async(r,o,n)=>{const i=await this.Invoke("ProductPatchCombo",r,o,n);return this.EnsureTrue(i),i},e)}}class YY extends po{static Log=[...super.Log,"Product","Post"];static useCreate(e){return Ce(r=>this.Invoke("ProductPostCreate",r),e)}static useMovePhoto(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPostMovePhoto",r,o);return this.EnsureTrue(n),n},e)}static usePhoto(e,r){const o=la(()=>e.With(...this.Log,"Photo"));return Ce(async(n,i)=>{if(!i.type.startsWith("image/"))throw new TypeError("File is not an image");if(i.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");const a=new Sh,s=this.Invoke("ProductPostPhoto",n,a);return await this.HandleFileStream(i,a,o),this.EnsureTrue(await s),!0},r)}static useVariant(e){return Ce((r,o)=>this.Invoke("ProductPostVariant",r,o),e)}static useType(e){return Ce((r,o)=>this.Invoke("ProductPostType",r,o),e)}static useCombo(e){return Ce((r,o,n)=>this.Invoke("ProductPostCombo",r,o,n),e)}}const QY={Get:GY,Post:YY,Patch:XY,Delete:VY};class ZY extends po{static useUser(e){return Ce(async r=>{const o=await this.Invoke("UserDeleteUser",r);return this.EnsureTrue(o),o},e)}static useAdmin(e){return Ce(async r=>{const o=await this.Invoke("UserDeleteAdmin",r);return this.EnsureTrue(o),o},e)}}class JY extends po{static async OrderUser(e){const r=await kd.Order(e);if(!r)throw new Error(`Order ${e} not found`);const o=await Cf.User(r.UserId);if(!o)throw new Error(`User ${r.UserId} not found in order ${e}`);return o}static async List(){const e=await this.WithTimeCache("","UserGetList",Ct().add(1,"m")),r=[];for(const o of e){const n=await Cf.User(o);if(!n){console.warn(`User ${o} not found`);continue}r.push({Id:o,Name:n.Name,EMail:n.EMail,Admin:n.Admin})}return r}}class eQ extends po{static useAdmin(e){return Ce(async r=>{const o=await this.Invoke("UserPostAdmin",r);return this.EnsureTrue(o),o},e)}}const tQ={Get:JY,Post:eQ,Delete:ZY},rQ={Product:QY,Order:WY,User:tQ},oQ=Wr({body:Qi}),nQ=new sa("Admin","Product","AddButton");function iQ(){const{Nav:t,Paths:e}=Ds(),r=e.at(0),o=e.at(1),n=oQ(),[i,a]=w.useState(""),{dispatch:s,dispatchToast:c}=Ch(nQ),{run:l}=rQ.Product.Post.useCreate({manual:!0,onError(u,d){s({Message:`Failed Create ${i}`,Request:d,Error:u})},onSuccess(u){c(x.jsxs(Ms,{children:[x.jsx(Os,{children:"New Product Created"}),x.jsxs(Wl,{children:[u," ",i]})]}),{intent:"success"}),t("Admin",u)}});return r==="Admin"&&!o&&x.jsxs(hl,{children:[x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"primary",icon:x.jsx(x3,{}),children:"New Product"})}),x.jsx(By,{children:x.jsxs(Py,{children:[x.jsx(Ny,{className:n.body,children:x.jsx(Xa,{required:!0,size:"large",value:i,maxLength:15,appearance:"underline",onChange:(u,d)=>a(d.value),contentBefore:x.jsx(tq,{children:"Give A Name"})})}),x.jsxs(Ry,{children:[x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"secondary",children:"Cancel"})}),x.jsx(No,{appearance:"primary",onClick:()=>l(i),children:"Create"})]})]})})]})}function aQ(){const[t,{toggle:e}]=Bi(),[r,{toggle:o}]=Bi(),{instance:n}=Pl(),[i,{set:a}]=Bi(!0);w.useEffect(()=>{Qa.subscribe(c=>a(!c))},[]);const s=n.getActiveAccount();return x.jsxs(x.Fragment,{children:[x.jsxs(y2,{open:t,onOpenChange:e,children:[x.jsx(Iy,{children:x.jsx($T,{size:36,active:t?"active":"unset"})}),x.jsx(_2,{children:x.jsxs(k2,{children:[x.jsx(Wu,{children:x.jsxs(w2,{children:["Hi ",s?.name||s?.username]})}),x.jsx(hN,{children:x.jsx(Sa,{onClick:()=>n.loginRedirect(),children:"Login"})}),x.jsxs(Wu,{children:[x.jsx(Gn,{appearance:"subtle",href:"/History",children:x.jsx(Sa,{children:"History"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin",children:x.jsx(Sa,{children:"Admin"})}),x.jsx(Sa,{onClick:o,children:"Setting"}),x.jsx(Sa,{onClick:()=>n.logoutRedirect(),children:"Logout"})]})]})})]}),i&&x.jsx(Wu,{children:x.jsx(XI,{Open:r,Toggle:o})})]})}function PA({Items:t,Columns:e,NoHeader:r}){return x.jsxs(iI,{items:t,columns:e,getRowId:o=>o.Id,children:[!r&&x.jsx(aI,{children:x.jsx(zm,{children:({renderHeaderCell:o})=>o()})}),x.jsx(nI,{children:({item:o,rowId:n})=>x.jsx(zm,{children:({renderCell:i})=>i(o)},n)})]})}function sQ({Guid:t,Log:e,...r}){const o=la(()=>e.With("GuidImage")),{data:n,run:i}=Ce(mn.Storage.GetBySlice.bind(mn.Storage),{manual:!0,onError:o.error});return w.useEffect(()=>{t&&i(t,o)},[t]),x.jsx(Cy,{...r,src:n?URL.createObjectURL(new Blob(n)):"https://placehold.co/400?text=Loading..."})}const v_=Wr({unset:{flexBasis:"unset",flexGrow:0},img:{...AX,aspectRatio:"1",marginTop:Me.spacingVerticalXS,marginBottom:Me.spacingVerticalXS}});function cQ(t,e){const r={width:`${t}px`};return ud({columnId:"Cover",renderHeaderCell:()=>{const o=v_();return x.jsx(sI,{className:o.unset,children:x.jsx("div",{style:r})})},renderCell(o){const n=v_();return x.jsx(Pc,{className:n.unset,children:x.jsx(sQ,{className:n.img,style:r,Guid:o.Cover,Log:e})})}})}function lQ(t){const{List:e}=Sl(),{data:r}=Ce(()=>mn.Product.Get.Limit(t)),o=r||3;let n=0;for(const i of e)if(i.ProdId===t&&(n+=i.Quantity),n>=o)return[!0,o];return[!1,o]}const Jp=Wr({prod:{...Qi,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"12%",flexGrow:0},act:{flexBasis:"7%",flexGrow:0}}),uQ=[ud({columnId:"Product",renderCell(t){return x.jsxs(Pc,{className:Jp().prod,children:[x.jsx(Gn,{href:`/Product/${t.ProdId}`,appearance:"subtle",children:x.jsx(X9,{children:t.Name})}),x.jsx(Z9,{children:Object.values(t.Type).reduce((e,r)=>`${e} ${r},`,"")})]})}}),ud({columnId:"Quantity",renderCell(t){const{List:e,Update:r}=Sl(),[o,n]=lQ(t.ProdId);return x.jsx(Pc,{className:Jp().qua,children:x.jsx(C2,{min:1,max:n,value:t.Quantity,onChange:(i,a)=>{o&&a.value>=t.Quantity||(t.Quantity=a.value,r(e))}})})}}),ud({columnId:"Action",renderCell(t){const{List:e,Update:r}=Sl();return x.jsx(Pc,{className:Jp().act,children:x.jsx(No,{appearance:"subtle",icon:x.jsx(M3,{}),onClick:()=>r(e.filter(o=>o.Id!==t.Id))})})}})];function BA(t){return[cQ(44,t),...uQ]}const dQ=Wr({person:pn,inf:{...Qi,flexBasis:"50%",rowGap:Me.spacingVerticalM}});function fQ({Log:t}){const e=dQ(),r=la(()=>t.With("PersonaInfo")),{data:o}=mn.User.Get.useMe(r);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:e.person,children:[x.jsx("div",{className:e.inf,children:x.jsx(Io,{label:"Name",size:"large",children:x.jsx(Vt,{children:o?.Name})})}),x.jsx("div",{className:e.inf,children:x.jsx(Io,{label:"Phone",size:"large",children:x.jsx(Vt,{children:o?.Phone})})})]}),x.jsx(Io,{label:"E-Mail",size:"large",children:x.jsx(Vt,{children:o?.EMail})}),x.jsx(Io,{label:"Address",size:"large",children:x.jsx(Vt,{children:o?.Address})})]})}const hQ=Wr({body:{...Qi,rowGap:Me.spacingVerticalXL},sub:{width:"fit-content",alignSelf:"flex-end"}}),eg=new sa("TopNavBar","ShopCart","Confirm");function pQ(){const[t,e]=w.useState(),[r,{toggle:o}]=Bi(),{List:n,Update:i}=Sl(),{Nav:a}=Ds(),s=hQ(),{dispatch:c,dispatchToast:l}=Ch(eg),{run:u}=mn.Order.Post.useNew({manual:!0,onError(d,f){c({Message:"Failed Create Order",Request:f,Error:d})},onSuccess(d){l(x.jsxs(Ms,{children:[x.jsx(Os,{children:"Order Placed"}),x.jsxs(Wl,{children:["Order Id: ",d]})]}),{intent:"success"}),i([]),o(),a("History",d)}});return x.jsxs(x.Fragment,{children:[x.jsx(No,{appearance:"primary",onClick:o,disabled:!n.length,children:"Checkout"}),x.jsxs(kI,{open:r,onOpenChange:o,position:"end",size:"medium",modalType:"alert",children:[x.jsx(SI,{children:x.jsx(CI,{action:x.jsx(No,{appearance:"subtle",icon:x.jsx(O3,{}),onClick:o}),children:"Confirm Order"})}),x.jsx(_I,{children:x.jsxs("div",{className:s.body,children:[x.jsx(fQ,{Log:eg}),x.jsx(PA,{Items:n,Columns:la(()=>BA(eg)),NoHeader:!0}),x.jsx(Io,{label:"Comment",size:"large",children:x.jsx(B2,{value:t,onChange:(d,f)=>e(f.value),maxLength:1e3})}),x.jsx(No,{appearance:"primary",className:s.sub,disabled:!n.length,onClick:()=>u(n,t),children:"Submit"})]})})]})]})}const gQ=Wr({conf:{...pn,width:"100%",alignItems:"center",justifyContent:"space-between",marginTop:Me.spacingVerticalS,columnGap:Me.spacingHorizontalL},tooltip:{backgroundColor:Me.colorBrandBackground,color:Me.colorNeutralForegroundInverted,...ls.borderRadius(Me.borderRadiusCircular)}}),mQ=new sa("TopNavBar","ShopCart");function vQ(){const[t,{toggle:e}]=Bi(),[r,{toggle:o}]=Bi(),n=gQ(),{List:i}=Sl();return hf(()=>{if(t)return;o();const a=setTimeout(o,2e3);return()=>clearTimeout(a)},[i]),x.jsxs(l2,{withArrow:!0,open:t,onOpenChange:e,children:[x.jsx(_y,{disableButtonEnhancement:!0,children:x.jsx(Sy,{visible:r,withArrow:!0,content:{children:"↑",className:n.tooltip},relationship:"inaccessible",children:x.jsx(p2,{icon:x.jsx(A3,{}),appearance:"subtle",size:"large",checked:t})})}),x.jsxs(c2,{children:[x.jsx(PA,{Items:i,Columns:la(()=>BA(mQ)),NoHeader:!0}),x.jsxs("div",{className:n.conf,children:[x.jsxs(W9,{children:[i.map(a=>a.Quantity).reduce((a,s)=>a+s,0)," items in shopping cart"]}),x.jsx(pQ,{})]})]})]})}const bQ=Wr({navBox:{position:"fixed",top:0,width:"100%",height:`${$y}px`,...ls.padding(0,Me.spacingHorizontalXXXL),backgroundColor:"#fff",boxSizing:"border-box",boxShadow:Me.shadow4},navBar:{...pn,maxWidth:Ky,height:"100%",...ls.margin(0,"auto"),alignItems:"center",justifyContent:"space-between"},logoBox:{...pn,columnGap:Me.spacingHorizontalL,alignItems:"center"},logoText:{color:Me.colorBrandForeground2}});function yQ(){const t=bQ();return x.jsx(aa,{children:x.jsx("header",{className:t.navBox,children:x.jsxs("nav",{className:t.navBar,children:[x.jsxs(Gn,{className:t.logoBox,href:"/",appearance:"subtle",children:[x.jsx(Cy,{src:"/Awai.png",height:$y}),x.jsx(fl,{size:600,font:"monospace",className:t.logoText,children:n0.Name})]}),x.jsx(UY,{}),x.jsxs("div",{className:t.logoBox,children:[x.jsx(iQ,{}),x.jsx(qY,{}),x.jsx(vQ,{}),x.jsx(aQ,{})]})]})})})}function wQ(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var NA=w,kQ=wQ(NA);function b_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _Q(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var SQ=!!(typeof window<"u"&&window.document&&window.document.createElement);function CQ(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(n){return n.displayName||n.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],s;function c(){s=t(a.map(function(u){return u.props})),l.canUseDOM?e(s):r&&(s=r(s))}var l=function(u){_Q(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return s},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var p=s;return s=void 0,a=[],p};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){a.push(this),c()},f.componentDidUpdate=function(){c()},f.componentWillUnmount=function(){var p=a.indexOf(this);a.splice(p,1),c()},f.render=function(){return kQ.createElement(i,this.props)},d}(NA.PureComponent);return b_(l,"displayName","SideEffect("+o(i)+")"),b_(l,"canUseDOM",SQ),l}}var TQ=CQ;const xQ=Oo(TQ);var EQ=typeof Element<"u",IQ=typeof Map=="function",AQ=typeof Set=="function",RQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _d(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!_d(t[o],e[o]))return!1;return!0}var i;if(IQ&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!_d(o.value[1],e.get(o.value[0])))return!1;return!0}if(AQ&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(RQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;if(EQ&&t instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&t.$$typeof)&&!_d(t[n[o]],e[n[o]]))return!1;return!0}return t!==t&&e!==e}var PQ=function(e,r){try{return _d(e,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const BQ=Oo(PQ);/* +`).slice(e).filter(iA).map(o=>` +`+o).join("")):""}var aA=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Gy=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(aA),HX={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ja(t,e){this._e=ca(),this.name=t,this.message=e}function sA(t,e){return t+". Errors: "+Object.keys(e).map(r=>e[r].toString()).filter((r,o,n)=>n.indexOf(r)===o).join(` +`)}function mf(t,e,r,o){this._e=ca(),this.failures=e,this.failedKeys=o,this.successCount=r,this.message=sA(t,e)}function Mc(t,e){this._e=ca(),this.name="BulkError",this.failures=Object.keys(e).map(r=>e[r]),this.failuresByPos=e,this.message=sA(t,e)}Za(Ja).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Wm(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Za(mf).from(Ja),Za(Mc).from(Ja);var Xy=Gy.reduce((t,e)=>(t[e]=e+"Error",t),{});const UX=Ja;var pe=Gy.reduce((t,e)=>{var r=e+"Error";function o(n,i){this._e=ca(),this.name=r,n?typeof n=="string"?(this.message=`${n}${i?` + `+i:""}`,this.inner=i||null):typeof n=="object"&&(this.message=`${n.name} ${n.message}`,this.inner=n):(this.message=HX[e]||r,this.inner=null)}return Za(o).from(UX),t[e]=o,t},{});pe.Syntax=SyntaxError,pe.Type=TypeError,pe.Range=RangeError;var i_=aA.reduce((t,e)=>(t[e+"Error"]=pe[e],t),{}),hd=Gy.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=pe[e]),t),{});function ze(){}function vl(t){return t}function $X(t,e){return t==null||t===vl?e:function(r){return e(t(r))}}function Zi(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function KX(t,e){return t===ze?e:function(){var r=t.apply(this,arguments);r!==void 0&&(arguments[0]=r);var o=this.onsuccess,n=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Zi(o,this.onsuccess):o),n&&(this.onerror=this.onerror?Zi(n,this.onerror):n),i!==void 0?i:r}}function WX(t,e){return t===ze?e:function(){t.apply(this,arguments);var r=this.onsuccess,o=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?Zi(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Zi(o,this.onerror):o)}}function VX(t,e){return t===ze?e:function(r){var o=t.apply(this,arguments);or(r,o);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?Zi(n,this.onsuccess):n),i&&(this.onerror=this.onerror?Zi(i,this.onerror):i),o===void 0?a===void 0?void 0:a:or(o,a)}}function GX(t,e){return t===ze?e:function(){return e.apply(this,arguments)!==!1&&t.apply(this,arguments)}}function Yy(t,e){return t===ze?e:function(){var r=t.apply(this,arguments);if(r&&typeof r.then=="function"){for(var o=this,n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];return r.then(function(){return e.apply(o,i)})}return e.apply(this,arguments)}}hd.ModifyError=mf,hd.DexieError=Ja,hd.BulkError=Mc;var bl={};const cA=100,[Vm,vf,Gm]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,ml(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,ml(e),t]})(),lA=vf&&vf.then,pd=Vm&&Vm.constructor,Qy=!!Gm;var Xm=!1,XX=Gm?()=>{Gm.then(Ou)}:qe.setImmediate?setImmediate.bind(null,Ou):qe.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{Ou(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(Ou,0)},Oc=function(t,e){pc.push([t,e]),bf&&(XX(),bf=!1)},Ym=!0,bf=!0,Mi=[],gd=[],Qm=null,Zm=vl,es={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:c_,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{c_(t[0],t[1])}catch{}})}},ue=es,pc=[],Oi=0,md=[];function ie(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ze,this._lib=!1;var e=this._PSD=ue;if(Do&&(this._stackHolder=ca(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==bl)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ev(this,this._value))}this._state=null,this._value=null,++e.ref,dA(this,t)}const Jm={get:function(){var t=ue,e=yf;function r(o,n){var i=!t.global&&(t!==ue||e!==yf);const a=i&&!gn();var s=new ie((c,l)=>{Zy(this,new uA(wf(o,t,i,a),wf(n,t,i,a),c,l,t))});return Do&&pA(s,this),s}return r.prototype=bl,r},set:function(t){on(this,"then",t&&t.prototype===bl?Jm:{get:function(){return t},set:Jm.set})}};function uA(t,e,r,o,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=r,this.reject=o,this.psd=n}function dA(t,e){try{e(r=>{if(t._state===null){if(r===t)throw new TypeError("A promise cannot be resolved with itself.");var o=t._lib&&Vl();r&&typeof r.then=="function"?dA(t,(n,i)=>{r instanceof ie?r._then(n,i):r.then(n,i)}):(t._state=!0,t._value=r,fA(t)),o&&Gl()}},ev.bind(null,t))}catch(r){ev(t,r)}}function ev(t,e){if(gd.push(e),t._state===null){var r=t._lib&&Vl();e=Zm(e),t._state=!1,t._value=e,Do&&e!==null&&typeof e=="object"&&!e._promise&&function(o,n,i){try{o.apply(null,i)}catch(a){n&&n(a)}}(()=>{var o=Wy(e,"stack");e._promise=t,on(e,"stack",{get:()=>Xm?o&&(o.get?o.get.apply(e):o.value):t.stack})}),function(o){Mi.some(n=>n._value===o._value)||Mi.push(o)}(t),fA(t),r&&Gl()}}function fA(t){var e=t._listeners;t._listeners=[];for(var r=0,o=e.length;r{--Oi==0&&Jy()},[]))}function Zy(t,e){if(t._state!==null){var r=t._state?e.onFulfilled:e.onRejected;if(r===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Oi,Oc(YX,[r,t,e])}else t._listeners.push(e)}function YX(t,e,r){try{Qm=e;var o,n=e._value;e._state?o=t(n):(gd.length&&(gd=[]),o=t(n),gd.indexOf(n)===-1&&function(i){for(var a=Mi.length;a;)if(Mi[--a]._value===i._value)return void Mi.splice(a,1)}(e)),r.resolve(o)}catch(i){r.reject(i)}finally{Qm=null,--Oi==0&&Jy(),--r.psd.ref||r.psd.finalize()}}function hA(t,e,r){if(e.length===r)return e;var o="";if(t._state===!1){var n,i,a=t._value;a!=null?(n=a.name||"Error",i=a.message||a,o=Wm(a,0)):(n=a,i=""),e.push(n+(i?": "+i:"")+o)}return Do&&((o=Wm(t._stackHolder,2))&&e.indexOf(o)===-1&&e.push(o),t._prev&&hA(t._prev,e,r)),e}function pA(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function Ou(){Vl()&&Gl()}function Vl(){var t=Ym;return Ym=!1,bf=!1,t}function Gl(){var t,e,r;do for(;pc.length>0;)for(t=pc,pc=[],r=t.length,e=0;e0);Ym=!0,bf=!0}function Jy(){var t=Mi;Mi=[],t.forEach(o=>{o._PSD.onunhandled.call(null,o._value,o)});for(var e=md.slice(0),r=e.length;r;)e[--r]()}function Du(t){return new ie(bl,!1,t)}function Ke(t,e){var r=ue;return function(){var o=Vl(),n=ue;try{return oi(r,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{oi(n,!1),o&&Gl()}}}Ss(ie.prototype,{then:Jm,_then:function(t,e){Zy(this,new uA(null,null,t,e,ue))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],r=arguments[1];return typeof e=="function"?this.then(null,o=>o instanceof e?r(o):Du(o)):this.then(null,o=>o&&o.name===e?r(o):Du(o))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),Du(e)))},stack:{get:function(){if(this._stack)return this._stack;try{Xm=!0;var t=hA(this,[],20).join(` +From previous: `);return this._state!==null&&(this._stack=t),t}finally{Xm=!1}}},timeout:function(t,e){return t<1/0?new ie((r,o)=>{var n=setTimeout(()=>o(new pe.Timeout(e)),t);this.then(r,o).finally(clearTimeout.bind(null,n))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&on(ie.prototype,Symbol.toStringTag,"Dexie.Promise"),es.env=gA(),Ss(ie,{all:function(){var t=Go.apply(null,arguments).map(ju);return new ie(function(e,r){t.length===0&&e([]);var o=t.length;t.forEach((n,i)=>ie.resolve(n).then(a=>{t[i]=a,--o||e(t)},r))})},resolve:t=>{if(t instanceof ie)return t;if(t&&typeof t.then=="function")return new ie((r,o)=>{t.then(r,o)});var e=new ie(bl,!0,t);return pA(e,Qm),e},reject:Du,race:function(){var t=Go.apply(null,arguments).map(ju);return new ie((e,r)=>{t.map(o=>ie.resolve(o).then(e,r))})},PSD:{get:()=>ue,set:t=>ue=t},totalEchoes:{get:()=>yf},newPSD:ri,usePSD:Fs,scheduler:{get:()=>Oc,set:t=>{Oc=t}},rejectionMapper:{get:()=>Zm,set:t=>{Zm=t}},follow:(t,e)=>new ie((r,o)=>ri((n,i)=>{var a=ue;a.unhandleds=[],a.onunhandled=i,a.finalize=Zi(function(){(function(s){function c(){s(),md.splice(md.indexOf(c),1)}md.push(c),++Oi,Oc(()=>{--Oi==0&&Jy()},[])})(()=>{this.unhandleds.length===0?n():i(this.unhandleds[0])})},a.finalize),t()},e,r,o))}),pd&&(pd.allSettled&&on(ie,"allSettled",function(){const t=Go.apply(null,arguments).map(ju);return new ie(e=>{t.length===0&&e([]);let r=t.length;const o=new Array(r);t.forEach((n,i)=>ie.resolve(n).then(a=>o[i]={status:"fulfilled",value:a},a=>o[i]={status:"rejected",reason:a}).then(()=>--r||e(o)))})}),pd.any&&typeof AggregateError<"u"&&on(ie,"any",function(){const t=Go.apply(null,arguments).map(ju);return new ie((e,r)=>{t.length===0&&r(new AggregateError([]));let o=t.length;const n=new Array(o);t.forEach((i,a)=>ie.resolve(i).then(s=>e(s),s=>{n[a]=s,--o||r(new AggregateError(n))}))})}));const $t={awaits:0,echoes:0,id:0};var QX=0,vd=[],Hp=0,yf=0,ZX=0;function ri(t,e,r,o){var n=ue,i=Object.create(n);i.parent=n,i.ref=0,i.global=!1,i.id=++ZX;var a=es.env;i.env=Qy?{Promise:ie,PromiseProp:{value:ie,configurable:!0,writable:!0},all:ie.all,race:ie.race,allSettled:ie.allSettled,any:ie.any,resolve:ie.resolve,reject:ie.reject,nthen:a_(a.nthen,i),gthen:a_(a.gthen,i)}:{},e&&or(i,e),++n.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=Fs(i,t,r,o);return i.ref===0&&i.finalize(),s}function js(){return $t.id||($t.id=++QX),++$t.awaits,$t.echoes+=cA,$t.id}function gn(){return!!$t.awaits&&(--$t.awaits==0&&($t.id=0),$t.echoes=$t.awaits*cA,!0)}function ju(t){return $t.echoes&&t&&t.constructor===pd?(js(),t.then(e=>(gn(),e),e=>(gn(),xt(e)))):t}function JX(t){++yf,$t.echoes&&--$t.echoes!=0||($t.echoes=$t.id=0),vd.push(ue),oi(t,!0)}function eY(){var t=vd[vd.length-1];vd.pop(),oi(t,!1)}function oi(t,e){var r=ue;if((e?!$t.echoes||Hp++&&t===ue:!Hp||--Hp&&t===ue)||mA(e?JX.bind(null,t):eY),t!==ue&&(ue=t,r===es&&(es.env=gA()),Qy)){var o=es.env.Promise,n=t.env;vf.then=n.nthen,o.prototype.then=n.gthen,(r.global||t.global)&&(Object.defineProperty(qe,"Promise",n.PromiseProp),o.all=n.all,o.race=n.race,o.resolve=n.resolve,o.reject=n.reject,n.allSettled&&(o.allSettled=n.allSettled),n.any&&(o.any=n.any))}}function gA(){var t=qe.Promise;return Qy?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(qe,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:vf.then,gthen:t.prototype.then}:{}}function Fs(t,e,r,o,n){var i=ue;try{return oi(t,!0),e(r,o,n)}finally{oi(i,!1)}}function mA(t){lA.call(Vm,t)}function wf(t,e,r,o){return typeof t!="function"?t:function(){var n=ue;r&&js(),oi(e,!0);try{return t.apply(this,arguments)}finally{oi(n,!1),o&&mA(gn)}}}function a_(t,e){return function(r,o){return t.call(this,wf(r,e),wf(o,e))}}(""+lA).indexOf("[native code]")===-1&&(js=gn=ze);const s_="unhandledrejection";function c_(t,e){var r;try{r=e.onuncatched(t)}catch{}if(r!==!1)try{var o,n={promise:e,reason:t};if(qe.document&&document.createEvent?((o=document.createEvent("Event")).initEvent(s_,!0,!0),or(o,n)):qe.CustomEvent&&or(o=new CustomEvent(s_,{detail:n}),n),o&&qe.dispatchEvent&&(dispatchEvent(o),!qe.PromiseRejectionEvent&&qe.onunhandledrejection))try{qe.onunhandledrejection(o)}catch{}Do&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}var xt=ie.reject;function tv(t,e,r,o){if(t.idbdb&&(t._state.openComplete||ue.letThrough||t._vip)){var n=t._createTransaction(e,r,t._dbSchema);try{n.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===Xy.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>tv(t,e,r,o))):xt(i)}return n._promise(e,(i,a)=>ri(()=>(ue.trans=n,o(i,a,n)))).then(i=>n._completion.then(()=>i))}if(t._state.openComplete)return xt(new pe.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return xt(new pe.DatabaseClosed);t.open().catch(ze)}return t._state.dbReadyPromise.then(()=>tv(t,e,r,o))}const l_="3.2.4",xi="￿",rv=-1/0,Fo="Invalid key provided. Keys must be of type string, number, Date or Array.",vA="String expected.",Dc=[],Ch=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),tY=Ch,rY=Ch,bA=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),Th="__dbnames",Up="readonly",$p="readwrite";function Ji(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const yA={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Fu(t){return typeof t!="string"||/\./.test(t)?e=>e:e=>(e[t]===void 0&&t in e&&delete(e=Wl(e))[t],e)}class oY{_trans(e,r,o){const n=this._tx||ue.trans,i=this.name;function a(c,l,u){if(!u.schema[i])throw new pe.NotFound("Table "+i+" not part of transaction");return r(u.idbtrans,u)}const s=Vl();try{return n&&n.db===this.db?n===ue.trans?n._promise(e,a,o):ri(()=>n._promise(e,a,o),{trans:n,transless:ue.transless||ue}):tv(this.db,e,[this.name],a)}finally{s&&Gl()}}get(e,r){return e&&e.constructor===Object?this.where(e).first(r):this._trans("readonly",o=>this.core.get({trans:o,key:e}).then(n=>this.hook.reading.fire(n))).then(r)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(Gt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const r=vt(e);if(r.length===1)return this.where(r[0]).equals(e[r[0]]);const o=this.schema.indexes.concat(this.schema.primKey).filter(l=>l.compound&&r.every(u=>l.keyPath.indexOf(u)>=0)&&l.keyPath.every(u=>r.indexOf(u)>=0))[0];if(o&&this.db._maxKey!==xi)return this.where(o.name).equals(o.keyPath.map(l=>e[l]));!o&&Do&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:n}=this.schema,i=this.db._deps.indexedDB;function a(l,u){try{return i.cmp(l,u)===0}catch{return!1}}const[s,c]=r.reduce(([l,u],d)=>{const f=n[d],h=e[d];return[l||f,l||!f?Ji(u,f&&f.multi?p=>{const g=nn(p,d);return Gt(g)&&g.some(y=>a(h,y))}:p=>a(h,nn(p,d))):u]},[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(c):o?this.filter(c):this.where(r).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,Gt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const r=o=>{if(!o)return o;const n=Object.create(e.prototype);for(var i in o)if(Rr(o,i))try{n[i]=o[i]}catch{}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e}defineClass(){return this.mapToClass(function(e){or(this,e)})}add(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=Fu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{lo(e,n,a)}catch{}return a})}update(e,r){if(typeof e!="object"||Gt(e))return this.where(":id").equals(e).modify(r);{const o=nn(e,this.schema.primKey.keyPath);if(o===void 0)return xt(new pe.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?vt(r).forEach(n=>{lo(e,n,r[n])}):r(e,{value:e,primKey:o})}catch{}return this.where(":id").equals(o).modify(r)}}put(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=Fu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{lo(e,n,a)}catch{}return a})}delete(e){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[e]})).then(r=>r.numFailures?ie.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:yA})).then(e=>e.numFailures?ie.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",r=>this.core.getMany({keys:e,trans:r}).then(o=>o.map(n=>this.hook.reading.fire(n))))}bulkAdd(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:c}=this.schema.primKey;if(c&&n)throw new pe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const l=e.length;let u=c&&s?e.map(Fu(c)):e;return this.core.mutate({trans:a,type:"add",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Mc(`${this.name}.bulkAdd(): ${d} of ${l} operations failed`,p)})})}bulkPut(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:c}=this.schema.primKey;if(c&&n)throw new pe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const l=e.length;let u=c&&s?e.map(Fu(c)):e;return this.core.mutate({trans:a,type:"put",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Mc(`${this.name}.bulkPut(): ${d} of ${l} operations failed`,p)})})}bulkDelete(e){const r=e.length;return this._trans("readwrite",o=>this.core.mutate({trans:o,type:"delete",keys:e})).then(({numFailures:o,lastResult:n,failures:i})=>{if(o===0)return n;throw new Mc(`${this.name}.bulkDelete(): ${o} of ${r} operations failed`,i)})}}function jc(t){var e={},r=function(a,s){if(s){for(var c=arguments.length,l=new Array(c-1);--c;)l[c-1]=arguments[c];return e[a].subscribe.apply(null,l),t}if(typeof a=="string")return e[a]};r.addEventType=i;for(var o=1,n=arguments.length;oJi(o(),e()):e,t.justLimit=r&&!o}function bd(t,e){if(t.isPrimKey)return e.primaryKey;const r=e.getIndexByKeyPath(t.index);if(!r)throw new pe.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function u_(t,e,r){const o=bd(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:o,range:t.range}})}function Lu(t,e,r,o){const n=t.replayFilter?Ji(t.filter,t.replayFilter()):t.filter;if(t.or){const i={},a=(s,c,l)=>{if(!n||n(c,l,f=>c.stop(f),f=>c.fail(f))){var u=c.primaryKey,d=""+u;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(u)),Rr(i,d)||(i[d]=!0,e(s,c,l))}};return Promise.all([t.or._iterate(a,r),d_(u_(t,o,r),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return d_(u_(t,o,r),Ji(t.algorithm,n),e,!t.keysOnly&&t.valueMapper)}function d_(t,e,r,o){var n=Ke(o?(i,a,s)=>r(o(i),a,s):r);return t.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();e&&!e(i,s=>a=s,s=>{i.stop(s),a=ze},s=>{i.fail(s),a=ze})||n(i.value,i,s=>a=s),a()})})}function Zt(t,e){try{const r=f_(t),o=f_(e);if(r!==o)return r==="Array"?1:o==="Array"?-1:r==="binary"?1:o==="binary"?-1:r==="string"?1:o==="string"?-1:r==="Date"?1:o!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:tLu(r,e,o,r.table.core))}count(e){return this._read(r=>{const o=this._ctx,n=o.table.core;if(ba(o,!0))return n.count({trans:r,query:{index:bd(o,n.schema),range:o.range}}).then(a=>Math.min(a,o.limit));var i=0;return Lu(o,()=>(++i,!1),r,n).then(()=>i)}).then(e)}sortBy(e,r){const o=e.split(".").reverse(),n=o[0],i=o.length-1;function a(l,u){return u?a(l[o[u]],u-1):l[n]}var s=this._ctx.dir==="next"?1:-1;function c(l,u){var d=a(l,i),f=a(u,i);return df?s:0}return this.toArray(function(l){return l.sort(c)}).then(r)}toArray(e){return this._read(r=>{var o=this._ctx;if(o.dir==="next"&&ba(o,!0)&&o.limit>0){const{valueMapper:n}=o,i=bd(o,o.table.core.schema);return o.table.core.query({trans:r,limit:o.limit,values:!0,query:{index:i,range:o.range}}).then(({result:a})=>n?a.map(n):a)}{const n=[];return Lu(o,i=>n.push(i),r,o.table.core).then(()=>n)}},e)}offset(e){var r=this._ctx;return e<=0||(r.offset+=e,ba(r)?Wp(r,()=>{var o=e;return(n,i)=>o===0||(o===1?(--o,!1):(i(()=>{n.advance(o),o=0}),!1))}):Wp(r,()=>{var o=e;return()=>--o<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Wp(this._ctx,()=>{var r=e;return function(o,n,i){return--r<=0&&n(i),r>=0}},!0),this}until(e,r){return Kp(this._ctx,function(o,n,i){return!e(o.value)||(n(i),r)}),this}first(e){return this.limit(1).toArray(function(r){return r[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var r,o;return Kp(this._ctx,function(n){return e(n.value)}),r=this._ctx,o=e,r.isMatch=Ji(r.isMatch,o),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.primaryKey,n)})}keys(e){var r=this._ctx;r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.key)}).then(function(){return o}).then(e)}primaryKeys(e){var r=this._ctx;if(r.dir==="next"&&ba(r,!0)&&r.limit>0)return this._read(n=>{var i=bd(r,r.table.core.schema);return r.table.core.query({trans:n,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:n})=>n).then(e);r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.primaryKey)}).then(function(){return o}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(r){return r[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return Kp(this._ctx,function(n){var i=n.primaryKey.toString(),a=Rr(o,i);return o[i]=!0,!a}),this}modify(e){var r=this._ctx;return this._write(o=>{var n;if(typeof e=="function")n=e;else{var i=vt(e),a=i.length;n=function(g){for(var y=!1,v=0;v{const{failures:v,numFailures:m}=y;f+=g-m;for(let b of vt(v))d.push(v[b])};return this.clone().primaryKeys().then(g=>{const y=v=>{const m=Math.min(u,g.length-v);return s.getMany({trans:o,keys:g.slice(v,v+m),cache:"immutable"}).then(b=>{const k=[],S=[],C=c?[]:null,_=[];for(let A=0;A0&&s.mutate({trans:o,type:"add",values:k}).then(A=>{for(let R in A.failures)_.splice(parseInt(R),1);p(k.length,A)})).then(()=>(S.length>0||T&&typeof e=="object")&&s.mutate({trans:o,type:"put",keys:C,values:S,criteria:T,changeSpec:typeof e!="function"&&e}).then(A=>p(S.length,A))).then(()=>(_.length>0||T&&e===Vp)&&s.mutate({trans:o,type:"delete",keys:_,criteria:T}).then(A=>p(_.length,A))).then(()=>g.length>v+m&&y(v+u))})};return y(0).then(()=>{if(d.length>0)throw new mf("Error modifying one or more objects",d,f,h);return g.length})})})}delete(){var e=this._ctx,r=e.range;return ba(e)&&(e.isPrimKey&&!rY||r.type===3)?this._write(o=>{const{primaryKey:n}=e.table.core.schema,i=r;return e.table.core.count({trans:o,query:{index:n,range:i}}).then(a=>e.table.core.mutate({trans:o,type:"deleteRange",range:i}).then(({failures:s,lastResult:c,results:l,numFailures:u})=>{if(u)throw new mf("Could not delete some values",Object.keys(s).map(d=>s[d]),a-u);return a-u}))}):this.modify(Vp)}}const Vp=(t,e)=>e.value=null;function iY(t,e){return te?-1:t===e?0:1}function vr(t,e,r){var o=t instanceof kA?new t.Collection(t):t;return o._ctx.error=r?new r(e):new TypeError(e),o}function ya(t){return new t.Collection(t,()=>wA("")).limit(0)}function sY(t,e,r,o,n,i){for(var a=Math.min(t.length,o.length),s=-1,c=0;c=0?t.substr(0,s)+e[s]+r.substr(s+1):null;n(t[c],l)<0&&(s=c)}return atypeof g=="string"))return vr(t,vA);function f(g){n=function(v){return v==="next"?m=>m.toUpperCase():m=>m.toLowerCase()}(g),i=function(v){return v==="next"?m=>m.toLowerCase():m=>m.toUpperCase()}(g),a=g==="next"?iY:aY;var y=r.map(function(v){return{lower:i(v),upper:n(v)}}).sort(function(v,m){return a(v.lower,m.lower)});s=y.map(function(v){return v.upper}),c=y.map(function(v){return v.lower}),l=g,u=g==="next"?"":o}f("next");var h=new t.Collection(t,()=>En(s[0],c[d-1]+o));h._ondirectionchange=function(g){f(g)};var p=0;return h._addAlgorithm(function(g,y,v){var m=g.key;if(typeof m!="string")return!1;var b=i(m);if(e(b,c,p))return!0;for(var k=null,S=p;S0)&&(k=C)}return y(k!==null?function(){g.continue(k+u)}:v),!1}),h}function En(t,e,r,o){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:o}}function wA(t){return{type:1,lower:t,upper:t}}class kA{get Collection(){return this._ctx.table.db.Collection}between(e,r,o,n){o=o!==!1,n=n===!0;try{return this._cmp(e,r)>0||this._cmp(e,r)===0&&(o||n)&&(!o||!n)?ya(this):new this.Collection(this,()=>En(e,r,!o,!n))}catch{return vr(this,Fo)}}equals(e){return e==null?vr(this,Fo):new this.Collection(this,()=>wA(e))}above(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(e,void 0,!0))}aboveOrEqual(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(e,void 0,!1))}below(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(void 0,e,!1,!0))}belowOrEqual(e){return e==null?vr(this,Fo):new this.Collection(this,()=>En(void 0,e))}startsWith(e){return typeof e!="string"?vr(this,vA):this.between(e,e+xi,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):qu(this,(r,o)=>r.indexOf(o[0])===0,[e],xi)}equalsIgnoreCase(e){return qu(this,(r,o)=>r===o[0],[e],"")}anyOfIgnoreCase(){var e=Go.apply(Ta,arguments);return e.length===0?ya(this):qu(this,(r,o)=>o.indexOf(r)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=Go.apply(Ta,arguments);return e.length===0?ya(this):qu(this,(r,o)=>o.some(n=>r.indexOf(n)===0),e,xi)}anyOf(){const e=Go.apply(Ta,arguments);let r=this._cmp;try{e.sort(r)}catch{return vr(this,Fo)}if(e.length===0)return ya(this);const o=new this.Collection(this,()=>En(e[0],e[e.length-1]));o._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,e.sort(r)};let n=0;return o._addAlgorithm((i,a,s)=>{const c=i.key;for(;r(c,e[n])>0;)if(++n,n===e.length)return a(s),!1;return r(c,e[n])===0||(a(()=>{i.continue(e[n])}),!1)}),o}notEqual(e){return this.inAnyRange([[rv,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=Go.apply(Ta,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return vr(this,Fo)}const r=e.reduce((o,n)=>o?o.concat([[o[o.length-1][1],n]]):[[rv,n]],null);return r.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,r){const o=this._cmp,n=this._ascending,i=this._descending,a=this._min,s=this._max;if(e.length===0)return ya(this);if(!e.every(m=>m[0]!==void 0&&m[1]!==void 0&&n(m[0],m[1])<=0))return vr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",pe.InvalidArgument);const c=!r||r.includeLowers!==!1,l=r&&r.includeUppers===!0;let u,d=n;function f(m,b){return d(m[0],b[0])}try{u=e.reduce(function(m,b){let k=0,S=m.length;for(;k0){C[0]=a(C[0],b[0]),C[1]=s(C[1],b[1]);break}}return k===S&&m.push(b),m},[]),u.sort(f)}catch{return vr(this,Fo)}let h=0;const p=l?m=>n(m,u[h][1])>0:m=>n(m,u[h][1])>=0,g=c?m=>i(m,u[h][0])>0:m=>i(m,u[h][0])>=0;let y=p;const v=new this.Collection(this,()=>En(u[0][0],u[u.length-1][1],!c,!l));return v._ondirectionchange=m=>{m==="next"?(y=p,d=n):(y=g,d=i),u.sort(f)},v._addAlgorithm((m,b,k)=>{for(var S=m.key;y(S);)if(++h,h===u.length)return b(k),!1;return!!function(C){return!p(C)&&!g(C)}(S)||(this._cmp(S,u[h][1])===0||this._cmp(S,u[h][0])===0||b(()=>{d===n?m.continue(u[h][0]):m.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){const e=Go.apply(Ta,arguments);return e.every(r=>typeof r=="string")?e.length===0?ya(this):this.inAnyRange(e.map(r=>[r,r+xi])):vr(this,"startsWithAnyOf() only works with strings")}}function ko(t){return Ke(function(e){return yl(e),t(e.target.error),!1})}function yl(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const wl="storagemutated",Nn="x-storagemutated-1",ni=jc(null,wl);class cY{_lock(){return hc(!ue.global),++this._reculock,this._reculock!==1||ue.global||(ue.lockOwnerFor=this),this}_unlock(){if(hc(!ue.global),--this._reculock==0)for(ue.global||(ue.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Fs(e[1],e[0])}catch{}}return this}_locked(){return this._reculock&&ue.lockOwnerFor!==this}create(e){if(!this.mode)return this;const r=this.db.idbdb,o=this.db._state.dbOpenError;if(hc(!this.idbtrans),!e&&!r)switch(o&&o.name){case"DatabaseClosedError":throw new pe.DatabaseClosed(o);case"MissingAPIError":throw new pe.MissingAPI(o.message,o);default:throw new pe.OpenFailed(o)}if(!this.active)throw new pe.TransactionInactive;return hc(this._completion._state===null),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ke(n=>{yl(n),this._reject(e.error)}),e.onabort=Ke(n=>{yl(n),this.active&&this._reject(new pe.Abort(e.error)),this.active=!1,this.on("abort").fire(n)}),e.oncomplete=Ke(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&ni.storagemutated.fire(e.mutatedParts)}),this}_promise(e,r,o){if(e==="readwrite"&&this.mode!=="readwrite")return xt(new pe.ReadOnly("Transaction is readonly"));if(!this.active)return xt(new pe.TransactionInactive);if(this._locked())return new ie((i,a)=>{this._blockedFuncs.push([()=>{this._promise(e,r,o).then(i,a)},ue])});if(o)return ri(()=>{var i=new ie((a,s)=>{this._lock();const c=r(a,s,this);c&&c.then&&c.then(a,s)});return i.finally(()=>this._unlock()),i._lib=!0,i});var n=new ie((i,a)=>{var s=r(i,a,this);s&&s.then&&s.then(i,a)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var r=this._root();const o=ie.resolve(e);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>o);else{r._waitingFor=o,r._waitingQueue=[];var n=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(n.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new ie((a,s)=>{o.then(c=>r._waitingQueue.push(Ke(a.bind(null,c))),c=>r._waitingQueue.push(Ke(s.bind(null,c)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new pe.Abort))}table(e){const r=this._memoizedTables||(this._memoizedTables={});if(Rr(r,e))return r[e];const o=this.schema[e];if(!o)throw new pe.NotFound("Table "+e+" not part of transaction");const n=new this.db.Table(e,o,this);return n.core=this.db.core.table(e),r[e]=n,n}}function ov(t,e,r,o,n,i,a){return{name:t,keyPath:e,unique:r,multi:o,auto:n,compound:i,src:(r&&!a?"&":"")+(o?"*":"")+(n?"++":"")+_A(e)}}function _A(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function SA(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:eA(r,o=>[o.name,o])}}let kl=t=>{try{return t.only([[]]),kl=()=>[[]],[[]]}catch{return kl=()=>xi,xi}};function nv(t){return t==null?()=>{}:typeof t=="string"?function(e){return e.split(".").length===1?o=>o[e]:o=>nn(o,e)}(t):e=>nn(e,t)}function p_(t){return[].slice.call(t)}let lY=0;function Fc(t){return t==null?":id":typeof t=="string"?t:`[${t.join("+")}]`}function uY(t,e,r){function o(c){if(c.type===3)return null;if(c.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:l,upper:u,lowerOpen:d,upperOpen:f}=c;return l===void 0?u===void 0?null:e.upperBound(u,!!f):u===void 0?e.lowerBound(l,!!d):e.bound(l,u,!!d,!!f)}const{schema:n,hasGetAll:i}=function(c,l){const u=p_(c.objectStoreNames);return{schema:{name:c.name,tables:u.map(d=>l.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:h}=d,p=Gt(f),g=f==null,y={},v={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:g,compound:p,keyPath:f,autoIncrement:h,unique:!0,extractKey:nv(f)},indexes:p_(d.indexNames).map(m=>d.index(m)).map(m=>{const{name:b,unique:k,multiEntry:S,keyPath:C}=m,_={name:b,compound:Gt(C),keyPath:C,unique:k,multiEntry:S,extractKey:nv(C)};return y[Fc(C)]=_,_}),getIndexByKeyPath:m=>y[Fc(m)]};return y[":id"]=v.primaryKey,f!=null&&(y[Fc(f)]=v.primaryKey),v})},hasGetAll:u.length>0&&"getAll"in l.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),a=n.tables.map(c=>function(l){const u=l.name;return{name:u,schema:l,mutate:function({trans:d,type:f,keys:h,values:p,range:g}){return new Promise((y,v)=>{y=Ke(y);const m=d.objectStore(u),b=m.keyPath==null,k=f==="put"||f==="add";if(!k&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:S}=h||p||{length:1};if(h&&p&&h.length!==p.length)throw new Error("Given keys array must have same length as given values array.");if(S===0)return y({numFailures:0,failures:{},results:[],lastResult:void 0});let C;const _=[],T=[];let A=0;const R=E=>{++A,yl(E)};if(f==="deleteRange"){if(g.type===4)return y({numFailures:A,failures:T,results:[],lastResult:void 0});g.type===3?_.push(C=m.clear()):_.push(C=m.delete(o(g)))}else{const[E,U]=k?b?[p,h]:[p,null]:[h,null];if(k)for(let D=0;D{const U=E.target.result;_.forEach((D,B)=>D.error!=null&&(T[B]=D.error)),y({numFailures:A,failures:T,results:f==="delete"?h:_.map(D=>D.result),lastResult:U})};C.onerror=E=>{R(E),V(E)},C.onsuccess=V})},getMany:({trans:d,keys:f})=>new Promise((h,p)=>{h=Ke(h);const g=d.objectStore(u),y=f.length,v=new Array(y);let m,b=0,k=0;const S=_=>{const T=_.target;v[T._pos]=T.result,++k===b&&h(v)},C=ko(p);for(let _=0;_new Promise((h,p)=>{h=Ke(h);const g=d.objectStore(u).get(f);g.onsuccess=y=>h(y.target.result),g.onerror=ko(p)}),query:function(d){return f=>new Promise((h,p)=>{h=Ke(h);const{trans:g,values:y,limit:v,query:m}=f,b=v===1/0?void 0:v,{index:k,range:S}=m,C=g.objectStore(u),_=k.isPrimaryKey?C:C.index(k.name),T=o(S);if(v===0)return h({result:[]});if(d){const A=y?_.getAll(T,b):_.getAllKeys(T,b);A.onsuccess=R=>h({result:R.target.result}),A.onerror=ko(p)}else{let A=0;const R=y||!("openKeyCursor"in _)?_.openCursor(T):_.openKeyCursor(T),V=[];R.onsuccess=E=>{const U=R.result;return U?(V.push(y?U.value:U.primaryKey),++A===v?h({result:V}):void U.continue()):h({result:V})},R.onerror=ko(p)}})}(i),openCursor:function({trans:d,values:f,query:h,reverse:p,unique:g}){return new Promise((y,v)=>{y=Ke(y);const{index:m,range:b}=h,k=d.objectStore(u),S=m.isPrimaryKey?k:k.index(m.name),C=p?g?"prevunique":"prev":g?"nextunique":"next",_=f||!("openKeyCursor"in S)?S.openCursor(o(b),C):S.openKeyCursor(o(b),C);_.onerror=ko(v),_.onsuccess=Ke(T=>{const A=_.result;if(!A)return void y(null);A.___id=++lY,A.done=!1;const R=A.continue.bind(A);let V=A.continuePrimaryKey;V&&(V=V.bind(A));const E=A.advance.bind(A),U=()=>{throw new Error("Cursor not stopped")};A.trans=d,A.stop=A.continue=A.continuePrimaryKey=A.advance=()=>{throw new Error("Cursor not started")},A.fail=Ke(v),A.next=function(){let D=1;return this.start(()=>D--?this.continue():this.stop()).then(()=>this)},A.start=D=>{const B=new Promise((K,I)=>{K=Ke(K),_.onerror=ko(I),A.fail=I,A.stop=F=>{A.stop=A.continue=A.continuePrimaryKey=A.advance=U,K(F)}}),M=()=>{if(_.result)try{D()}catch(K){A.fail(K)}else A.done=!0,A.start=()=>{throw new Error("Cursor behind last entry")},A.stop()};return _.onsuccess=Ke(K=>{_.onsuccess=M,M()}),A.continue=R,A.continuePrimaryKey=V,A.advance=E,M(),B},y(A)},v)})},count({query:d,trans:f}){const{index:h,range:p}=d;return new Promise((g,y)=>{const v=f.objectStore(u),m=h.isPrimaryKey?v:v.index(h.name),b=o(p),k=b?m.count(b):m.count();k.onsuccess=Ke(S=>g(S.target.result)),k.onerror=ko(y)})}}}(c)),s={};return a.forEach(c=>s[c.name]=c),{stack:"dbcore",transaction:t.transaction.bind(t),table(c){if(!s[c])throw new Error(`Table '${c}' not found`);return s[c]},MIN_KEY:-1/0,MAX_KEY:kl(e),schema:n}}function iv({_novip:t},e){const r=e.db,o=function(n,i,{IDBKeyRange:a,indexedDB:s},c){return{dbcore:function(u,d){return d.reduce((f,{create:h})=>({...f,...h(f)}),u)}(uY(i,a,c),n.dbcore)}}(t._middlewares,r,t._deps,e);t.core=o.dbcore,t.tables.forEach(n=>{const i=n.name;t.core.schema.tables.some(a=>a.name===i)&&(n.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=n.core))})}function kf({_novip:t},e,r,o){r.forEach(n=>{const i=o[n];e.forEach(a=>{const s=Wy(a,n);(!s||"value"in s&&s.value===void 0)&&(a===t.Transaction.prototype||a instanceof t.Transaction?on(a,n,{get(){return this.table(n)},set(c){QI(this,n,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):a[n]=new t.Table(n,i))})})}function av({_novip:t},e){e.forEach(r=>{for(let o in r)r[o]instanceof t.Table&&delete r[o]})}function dY(t,e){return t._cfg.version-e._cfg.version}function fY(t,e,r,o){const n=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,n);i.create(r),i._completion.catch(o);const a=i._reject.bind(i),s=ue.transless||ue;ri(()=>{ue.trans=i,ue.transless=s,e===0?(vt(n).forEach(c=>{Gp(r,c,n[c].primKey,n[c].indexes)}),iv(t,r),ie.follow(()=>t.on.populate.fire(i)).catch(a)):function({_novip:c},l,u,d){const f=[],h=c._versions;let p=c._dbSchema=cv(c,c.idbdb,d),g=!1;const y=h.filter(m=>m._cfg.version>=l);function v(){return f.length?ie.resolve(f.shift()(u.idbtrans)).then(v):ie.resolve()}return y.forEach(m=>{f.push(()=>{const b=p,k=m._cfg.dbschema;lv(c,b,d),lv(c,k,d),p=c._dbSchema=k;const S=CA(b,k);S.add.forEach(_=>{Gp(d,_[0],_[1].primKey,_[1].indexes)}),S.change.forEach(_=>{if(_.recreate)throw new pe.Upgrade("Not yet support for changing primary key");{const T=d.objectStore(_.name);_.add.forEach(A=>sv(T,A)),_.change.forEach(A=>{T.deleteIndex(A.name),sv(T,A)}),_.del.forEach(A=>T.deleteIndex(A))}});const C=m._cfg.contentUpgrade;if(C&&m._cfg.version>l){iv(c,d),u._memoizedTables={},g=!0;let _=tA(k);S.del.forEach(V=>{_[V]=b[V]}),av(c,[c.Transaction.prototype]),kf(c,[c.Transaction.prototype],vt(_),_),u.schema=_;const T=Vy(C);let A;T&&js();const R=ie.follow(()=>{if(A=C(u),A&&T){var V=gn.bind(null,null);A.then(V,V)}});return A&&typeof A.then=="function"?ie.resolve(A):R.then(()=>A)}}),f.push(b=>{(!g||!tY)&&function(k,S){[].slice.call(S.db.objectStoreNames).forEach(C=>k[C]==null&&S.db.deleteObjectStore(C))}(m._cfg.dbschema,b),av(c,[c.Transaction.prototype]),kf(c,[c.Transaction.prototype],c._storeNames,c._dbSchema),u.schema=c._dbSchema})}),v().then(()=>{var m,b;b=d,vt(m=p).forEach(k=>{b.db.objectStoreNames.contains(k)||Gp(b,k,m[k].primKey,m[k].indexes)})})}(t,e,i,r).catch(a)})}function CA(t,e){const r={del:[],add:[],change:[]};let o;for(o in t)e[o]||r.del.push(o);for(o in e){const n=t[o],i=e[o];if(n){const a={name:o,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(n.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||n.primKey.auto!==i.primKey.auto&&!Ch)a.recreate=!0,r.change.push(a);else{const s=n.idxByName,c=i.idxByName;let l;for(l in s)c[l]||a.del.push(l);for(l in c){const u=s[l],d=c[l];u?u.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([o,i])}return r}function Gp(t,e,r,o){const n=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return o.forEach(i=>sv(n,i)),n}function sv(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function cv(t,e,r){const o={};return gf(e.objectStoreNames,0).forEach(n=>{const i=r.objectStore(n);let a=i.keyPath;const s=ov(_A(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),c=[];for(let u=0;u{if(e[o]!==null){var n=e[o].split(",").map((a,s)=>{const c=(a=a.trim()).replace(/([&*]|\+\+)/g,""),l=/^\[/.test(c)?c.match(/^\[(.*)\]$/)[1].split("+"):c;return ov(c,l||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Gt(l),s===0)}),i=n.shift();if(i.multi)throw new pe.Schema("Primary key cannot be multi-valued");n.forEach(a=>{if(a.auto)throw new pe.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new pe.Schema("Index must have a name and cannot be an empty string")}),r[o]=SA(o,i,n)}})}stores(e){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?or(this._cfg.storesSource,e):e;const o=r._versions,n={};let i={};return o.forEach(a=>{or(n,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(n,i)}),r._dbSchema=i,av(r,[r._allTables,r,r.Transaction.prototype]),kf(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],vt(i),i),r._storeNames=vt(i),this}upgrade(e){return this._cfg.contentUpgrade=Yy(this._cfg.contentUpgrade||ze,e),this}}function e0(t,e){let r=t._dbNamesDB;return r||(r=t._dbNamesDB=new Di(Th,{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function t0(t){return t&&typeof t.databases=="function"}function uv(t){return ri(function(){return ue.letThrough=!0,t()})}function pY(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function gY(t){const e=t._state,{indexedDB:r}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?xt(e.dbOpenError):t);Do&&(e.openCanceller._stackHolder=ca()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const o=e.openCanceller;function n(){if(e.openCanceller!==o)throw new pe.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,a=null,s=!1;return ie.race([o,(typeof navigator>"u"?ie.resolve():pY()).then(()=>new ie((c,l)=>{if(n(),!r)throw new pe.MissingAPI;const u=t.name,d=e.autoSchema?r.open(u):r.open(u,Math.round(10*t.verno));if(!d)throw new pe.MissingAPI;d.onerror=ko(l),d.onblocked=Ke(t._fireOnBlocked),d.onupgradeneeded=Ke(f=>{if(a=d.transaction,e.autoSchema&&!t._options.allowEmptyDB){d.onerror=yl,a.abort(),d.result.close();const p=r.deleteDatabase(u);p.onsuccess=p.onerror=Ke(()=>{l(new pe.NoSuchDatabase(`Database ${u} doesnt exist`))})}else{a.onerror=ko(l);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;s=h<1,t._novip.idbdb=d.result,fY(t,h/10,a,l)}},l),d.onsuccess=Ke(()=>{a=null;const f=t._novip.idbdb=d.result,h=gf(f.objectStoreNames);if(h.length>0)try{const g=f.transaction((p=h).length===1?p[0]:p,"readonly");e.autoSchema?function({_novip:y},v,m){y.verno=v.version/10;const b=y._dbSchema=cv(0,v,m);y._storeNames=gf(v.objectStoreNames,0),kf(y,[y._allTables],vt(b),b)}(t,f,g):(lv(t,t._dbSchema,g),function(y,v){const m=CA(cv(0,y.idbdb,v),y._dbSchema);return!(m.add.length||m.change.some(b=>b.add.length||b.change.length))}(t,g)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),iv(t,g)}catch{}var p;Dc.push(t),f.onversionchange=Ke(g=>{e.vcFired=!0,t.on("versionchange").fire(g)}),f.onclose=Ke(g=>{t.on("close").fire(g)}),s&&function({indexedDB:g,IDBKeyRange:y},v){!t0(g)&&v!==Th&&e0(g,y).put({name:v}).catch(ze)}(t._deps,u),c()},l)}))]).then(()=>(n(),e.onReadyBeingFired=[],ie.resolve(uv(()=>t.on.ready.fire(t.vip))).then(function c(){if(e.onReadyBeingFired.length>0){let l=e.onReadyBeingFired.reduce(Yy,ze);return e.onReadyBeingFired=[],ie.resolve(uv(()=>l(t.vip))).then(c)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(c=>{e.dbOpenError=c;try{a&&a.abort()}catch{}return o===e.openCanceller&&t._close(),xt(c)}).finally(()=>{e.openComplete=!0,i()})}function dv(t){var e=i=>t.next(i),r=n(e),o=n(i=>t.throw(i));function n(i){return a=>{var s=i(a),c=s.value;return s.done?c:c&&typeof c.then=="function"?c.then(r,o):Gt(c)?Promise.all(c).then(r,o):r(c)}}return n(e)()}function mY(t,e,r){var o=arguments.length;if(o<2)throw new pe.InvalidArgument("Too few arguments");for(var n=new Array(o-1);--o;)n[o-1]=arguments[o];return r=n.pop(),[t,rA(n),r]}function TA(t,e,r,o,n){return ie.resolve().then(()=>{const i=ue.transless||ue,a=t._createTransaction(e,r,t._dbSchema,o),s={trans:a,transless:i};if(o)a.idbtrans=o.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===Xy.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>TA(t,e,r,null,n))):xt(d)}const c=Vy(n);let l;c&&js();const u=ie.follow(()=>{if(l=n.call(a,a),l)if(c){var d=gn.bind(null,null);l.then(d,d)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=dv(l))},s);return(l&&typeof l.then=="function"?ie.resolve(l).then(d=>a.active?d:xt(new pe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>l)).then(d=>(o&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),xt(d)))})}function Hu(t,e,r){const o=Gt(t)?t.slice():[t];for(let n=0;n0,v={...f,isVirtual:y,keyTail:d,keyLength:g,extractKey:nv(u),unique:!y&&f.unique};return p.push(v),v.isPrimaryKey||i.push(v),g>1&&a(g===2?u[0]:u.slice(0,g-1),d+1,f),p.sort((m,b)=>m.keyTail-b.keyTail),v}const s=a(o.primaryKey.keyPath,0,o.primaryKey);n[":id"]=[s];for(const u of o.indexes)a(u.keyPath,0,u);function c(u){const d=u.query.index;return d.isVirtual?{...u,query:{index:d,range:(f=u.query.range,h=d.keyTail,{type:f.type===1?2:f.type,lower:Hu(f.lower,f.lowerOpen?t.MAX_KEY:t.MIN_KEY,h),lowerOpen:!0,upper:Hu(f.upper,f.upperOpen?t.MIN_KEY:t.MAX_KEY,h),upperOpen:!0})}}:u;var f,h}return{...r,schema:{...o,primaryKey:s,indexes:i,getIndexByKeyPath:function(u){const d=n[Fc(u)];return d&&d[0]}},count:u=>r.count(c(u)),query:u=>r.query(c(u)),openCursor(u){const{keyTail:d,isVirtual:f,keyLength:h}=u.query.index;return f?r.openCursor(c(u)).then(p=>p&&function(g){return Object.create(g,{continue:{value:function(v){v!=null?g.continue(Hu(v,u.reverse?t.MAX_KEY:t.MIN_KEY,d)):u.unique?g.continue(g.key.slice(0,h).concat(u.reverse?t.MIN_KEY:t.MAX_KEY,d)):g.continue()}},continuePrimaryKey:{value(v,m){g.continuePrimaryKey(Hu(v,t.MAX_KEY,d),m)}},primaryKey:{get:()=>g.primaryKey},key:{get(){const v=g.key;return h===1?v[0]:v.slice(0,h)}},value:{get:()=>g.value}})}(p)):r.openCursor(u)}}}}}};function r0(t,e,r,o){return r=r||{},o=o||"",vt(t).forEach(n=>{if(Rr(e,n)){var i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"&&i&&a){const s=$m(i);s!==$m(a)?r[o+n]=e[n]:s==="Object"?r0(i,a,r,o+n+"."):i!==a&&(r[o+n]=e[n])}else i!==a&&(r[o+n]=e[n])}else r[o+n]=void 0}),vt(e).forEach(n=>{Rr(t,n)||(r[o+n]=e[n])}),r}const bY={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(e){const r=t.table(e),{primaryKey:o}=r.schema;return{...r,mutate(i){const a=ue.trans,{deleting:s,creating:c,updating:l}=a.table(e).hook;switch(i.type){case"add":if(c.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"put":if(c.fire===ze&&l.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"delete":if(s.fire===ze)break;return a._promise("readwrite",()=>u(i),!0);case"deleteRange":if(s.fire===ze)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function u(f){const h=ue.trans,p=f.keys||function(g,y){return y.type==="delete"?y.keys:y.keys||y.values.map(g.extractKey)}(o,f);if(!p)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:p}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(g,y,v){return y.type==="add"?Promise.resolve([]):g.getMany({trans:y.trans,keys:v,cache:"immutable"})}(r,f,p).then(g=>{const y=p.map((v,m)=>{const b=g[m],k={onerror:null,onsuccess:null};if(f.type==="delete")s.fire.call(k,v,b,h);else if(f.type==="add"||b===void 0){const S=c.fire.call(k,v,f.values[m],h);v==null&&S!=null&&(v=S,f.keys[m]=v,o.outbound||lo(f.values[m],o.keyPath,v))}else{const S=r0(b,f.values[m]),C=l.fire.call(k,S,v,b,h);if(C){const _=f.values[m];Object.keys(C).forEach(T=>{Rr(_,T)?_[T]=C[T]:lo(_,T,C[T])})}}return k});return r.mutate(f).then(({failures:v,results:m,numFailures:b,lastResult:k})=>{for(let S=0;S(y.forEach(m=>m.onerror&&m.onerror(v)),Promise.reject(v)))})}function d(f,h,p){return r.query({trans:f,values:!1,query:{index:o,range:h},limit:p}).then(({result:g})=>u({type:"delete",keys:g,trans:f}).then(y=>y.numFailures>0?Promise.reject(y.failures[0]):g.length({table:e=>{const r=t.table(e);return{...r,getMany:o=>{if(!o.cache)return r.getMany(o);const n=xA(o.keys,o.trans._cache,o.cache==="clone");return n?ie.resolve(n):r.getMany(o).then(i=>(o.trans._cache={keys:o.keys,values:o.cache==="clone"?Wl(i):i},i))},mutate:o=>(o.type!=="add"&&(o.trans._cache=null),r.mutate(o))}}})};function o0(t){return!("from"in t)}const Ko=function(t,e){if(!this){const r=new Ko;return t&&"d"in t&&or(r,t),r}or(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function _l(t,e,r){const o=Zt(e,r);if(isNaN(o))return;if(o>0)throw RangeError();if(o0(t))return or(t,{from:e,to:r,d:1});const n=t.l,i=t.r;if(Zt(r,t.from)<0)return n?_l(n,e,r):t.l={from:e,to:r,d:1,l:null,r:null},g_(t);if(Zt(e,t.to)>0)return i?_l(i,e,r):t.r={from:e,to:r,d:1,l:null,r:null},g_(t);Zt(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),Zt(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);const a=!t.r;n&&!t.l&&_f(t,n),i&&a&&_f(t,i)}function _f(t,e){o0(e)||function r(o,{from:n,to:i,l:a,r:s}){_l(o,n,i),a&&r(o,a),s&&r(o,s)}(t,e)}function wY(t,e){const r=fv(e);let o=r.next();if(o.done)return!1;let n=o.value;const i=fv(t);let a=i.next(n.from),s=a.value;for(;!o.done&&!a.done;){if(Zt(s.from,n.to)<=0&&Zt(s.to,n.from)>=0)return!0;Zt(n.from,s.from)<0?n=(o=r.next(s.from)).value:s=(a=i.next(n.from)).value}return!1}function fv(t){let e=o0(t)?null:{s:0,n:t};return{next(r){const o=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,o)for(;e.n.l&&Zt(r,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!o||Zt(r,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function g_(t){var e,r;const o=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((r=t.l)===null||r===void 0?void 0:r.d)||0),n=o>1?"r":o<-1?"l":"";if(n){const i=n==="r"?"l":"r",a={...t},s=t[n];t.from=s.from,t.to=s.to,t[n]=s[n],a[n]=s[i],t[i]=a,a.d=m_(a)}t.d=m_(t)}function m_({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}Ss(Ko.prototype,{add(t){return _f(this,t),this},addKey(t){return _l(this,t,t),this},addKeys(t){return t.forEach(e=>_l(this,e,e)),this},[Km](){return fv(this)}});const kY={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,r=new Ko(t.MIN_KEY,t.MAX_KEY);return{...t,table:o=>{const n=t.table(o),{schema:i}=n,{primaryKey:a}=i,{extractKey:s,outbound:c}=a,l={...n,mutate:f=>{const h=f.trans,p=h.mutatedParts||(h.mutatedParts={}),g=C=>{const _=`idb://${e}/${o}/${C}`;return p[_]||(p[_]=new Ko)},y=g(""),v=g(":dels"),{type:m}=f;let[b,k]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const S=f.trans._cache;return n.mutate(f).then(C=>{if(Gt(b)){m!=="delete"&&(b=C.results),y.addKeys(b);const _=xA(b,S);_||m==="add"||v.addKeys(b),(_||k)&&function(T,A,R,V){function E(U){const D=T(U.name||"");function B(K){return K!=null?U.extractKey(K):null}const M=K=>U.multiEntry&&Gt(K)?K.forEach(I=>D.addKey(I)):D.addKey(K);(R||V).forEach((K,I)=>{const F=R&&B(R[I]),$=V&&B(V[I]);Zt(F,$)!==0&&(F!=null&&M(F),$!=null&&M($))})}A.indexes.forEach(E)}(g,i,_,k)}else if(b){const _={from:b.lower,to:b.upper};v.add(_),y.add(_)}else y.add(r),v.add(r),i.indexes.forEach(_=>g(_.name).add(r));return C})}},u=({query:{index:f,range:h}})=>{var p,g;return[f,new Ko((p=h.lower)!==null&&p!==void 0?p:t.MIN_KEY,(g=h.upper)!==null&&g!==void 0?g:t.MAX_KEY)]},d={get:f=>[a,new Ko(f.key)],getMany:f=>[a,new Ko().addKeys(f.keys)],count:u,query:u,openCursor:u};return vt(d).forEach(f=>{l[f]=function(h){const{subscr:p}=ue;if(p){const g=k=>{const S=`idb://${e}/${o}/${k}`;return p[S]||(p[S]=new Ko)},y=g(""),v=g(":dels"),[m,b]=d[f](h);if(g(m.name||"").add(b),!m.isPrimaryKey){if(f!=="count"){const k=f==="query"&&c&&h.values&&n.query({...h,values:!1});return n[f].apply(this,arguments).then(S=>{if(f==="query"){if(c&&h.values)return k.then(({result:_})=>(y.addKeys(_),S));const C=h.values?S.result.map(s):S.result;h.values?y.addKeys(C):v.addKeys(C)}else if(f==="openCursor"){const C=S,_=h.values;return C&&Object.create(C,{key:{get:()=>(v.addKey(C.primaryKey),C.key)},primaryKey:{get(){const T=C.primaryKey;return v.addKey(T),T}},value:{get:()=>(_&&y.addKey(C.primaryKey),C.value)}})}return S})}v.add(r)}}return n[f].apply(this,arguments)}}),l}}}};class Di{constructor(e,r){this._middlewares={},this.verno=0;const o=Di.dependencies;this._options=r={addons:Di.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:n}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ze,dbReadyPromise:null,cancelOpen:ze,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new ie(s=>{i.dbReadyResolve=s}),i.openCanceller=new ie((s,c)=>{i.cancelOpen=c}),this._state=i,this.name=e,this.on=jc(this,"populate","blocked","versionchange","close",{ready:[Yy,ze]}),this.on.ready.subscribe=ZI(this.on.ready.subscribe,s=>(c,l)=>{Di.vip(()=>{const u=this._state;if(u.openComplete)u.dbOpenError||ie.resolve().then(c),l&&s(c);else if(u.onReadyBeingFired)u.onReadyBeingFired.push(c),l&&s(c);else{s(c);const d=this;l||s(function f(){d.on.ready.unsubscribe(c),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,Js(nY.prototype,function(s,c){this.db=a;let l=yA,u=null;if(c)try{l=c()}catch(p){u=p}const d=s._ctx,f=d.table,h=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:l,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:d.or,valueMapper:h!==vl?h:null}})),this.Table=function(s){return Js(oY.prototype,function(c,l,u){this.db=s,this._tx=u,this.name=c,this.schema=l,this.hook=s._allTables[c]?s._allTables[c].hook:jc(null,{creating:[KX,ze],reading:[$X,vl],updating:[VX,ze],deleting:[WX,ze]})})}(this),this.Transaction=function(s){return Js(cY.prototype,function(c,l,u,d,f){this.db=s,this.mode=c,this.storeNames=l,this.schema=u,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=jc(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ie((h,p)=>{this._resolve=h,this._reject=p}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},h=>{var p=this.active;return this.active=!1,this.on.error.fire(h),this.parent?this.parent._reject(h):p&&this.idbtrans&&this.idbtrans.abort(),xt(h)})})}(this),this.Version=function(s){return Js(hY.prototype,function(c){this.db=s,this._cfg={version:c,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return Js(kA.prototype,function(c,l,u){this.db=s,this._ctx={table:c,index:l===":id"?null:l,or:u};const d=s._deps.indexedDB;if(!d)throw new pe.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,h)=>d.cmp(h,f),this._max=(f,h)=>d.cmp(f,h)>0?f:h,this._min=(f,h)=>d.cmp(f,h)<0?f:h,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersionnew this.Transaction(s,c,l,this._options.chromeTransactionDurability,u),this._fireOnBlocked=s=>{this.on("blocked").fire(s),Dc.filter(c=>c.name===this.name&&c!==this&&!c._state.vcFired).map(c=>c.on("versionchange").fire(s))},this.use(vY),this.use(bY),this.use(kY),this.use(yY),this.vip=Object.create(this,{_vip:{value:!0}}),n.forEach(s=>s(this))}version(e){if(isNaN(e)||e<.1)throw new pe.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new pe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const r=this._versions;var o=r.filter(n=>n._cfg.version===e)[0];return o||(o=new this.Version(e),r.push(o),r.sort(dY),o.stores({}),this._state.autoSchema=!1,o)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ue.letThrough||this._vip)?e():new ie((r,o)=>{if(this._state.openComplete)return o(new pe.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void o(new pe.DatabaseClosed);this.open().catch(ze)}this._state.dbReadyPromise.then(r,o)}).then(e)}use({stack:e,create:r,level:o,name:n}){n&&this.unuse({stack:e,name:n});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:r,level:o??10,name:n}),i.sort((a,s)=>a.level-s.level),this}unuse({stack:e,name:r,create:o}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(n=>o?n.create!==o:!!r&&n.name!==r)),this}open(){return gY(this)}_close(){const e=this._state,r=Dc.indexOf(this);if(r>=0&&Dc.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}e.dbReadyPromise=new ie(o=>{e.dbReadyResolve=o}),e.openCanceller=new ie((o,n)=>{e.cancelOpen=n})}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new pe.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,r=this._state;return new ie((o,n)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Ke(()=>{(function({indexedDB:s,IDBKeyRange:c},l){!t0(s)&&l!==Th&&e0(s,c).delete(l).catch(ze)})(this._deps,this.name),o()}),a.onerror=ko(n),a.onblocked=this._fireOnBlocked};if(e)throw new pe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return vt(this._allTables).map(e=>this._allTables[e])}transaction(){const e=mY.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,r,o){let n=ue.trans;n&&n.db===this&&e.indexOf("!")===-1||(n=null);const i=e.indexOf("?")!==-1;let a,s;e=e.replace("!","").replace("?","");try{if(s=r.map(l=>{var u=l instanceof this.Table?l.name:l;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),e=="r"||e===Up)a=Up;else{if(e!="rw"&&e!=$p)throw new pe.InvalidArgument("Invalid transaction mode: "+e);a=$p}if(n){if(n.mode===Up&&a===$p){if(!i)throw new pe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");n=null}n&&s.forEach(l=>{if(n&&n.storeNames.indexOf(l)===-1){if(!i)throw new pe.SubTransaction("Table "+l+" not included in parent transaction.");n=null}}),i&&n&&!n.active&&(n=null)}}catch(l){return n?n._promise(null,(u,d)=>{d(l)}):xt(l)}const c=TA.bind(null,this,a,s,n,o);return n?n._promise(a,c,"lock"):ue.trans?Fs(ue.transless,()=>this._whenReady(c)):this._whenReady(c)}table(e){if(!Rr(this._allTables,e))throw new pe.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const _Y=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class SY{constructor(e){this._subscribe=e}subscribe(e,r,o){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:r,complete:o})}[_Y](){return this}}function EA(t,e){return vt(e).forEach(r=>{_f(t[r]||(t[r]=new Ko),e[r])}),t}function CY(t){let e,r=!1;const o=new SY(n=>{const i=Vy(t);let a=!1,s={},c={};const l={get closed(){return a},unsubscribe:()=>{a=!0,ni.storagemutated.unsubscribe(h)}};n.start&&n.start(l);let u=!1,d=!1;function f(){return vt(c).some(g=>s[g]&&wY(s[g],c[g]))}const h=g=>{EA(s,g),f()&&p()},p=()=>{if(u||a)return;s={};const g={},y=function(v){i&&js();const m=()=>ri(t,{subscr:v,trans:null}),b=ue.trans?Fs(ue.transless,m):m();return i&&b.then(gn,gn),b}(g);d||(ni(wl,h),d=!0),u=!0,Promise.resolve(y).then(v=>{r=!0,e=v,u=!1,a||(f()?p():(s={},c=g,n.next&&n.next(v)))},v=>{u=!1,r=!1,n.error&&n.error(v),l.unsubscribe()})};return p(),l});return o.hasValue=()=>r,o.getValue=()=>e,o}let hv;try{hv={indexedDB:qe.indexedDB||qe.mozIndexedDB||qe.webkitIndexedDB||qe.msIndexedDB,IDBKeyRange:qe.IDBKeyRange||qe.webkitIDBKeyRange}}catch{hv={indexedDB:null,IDBKeyRange:null}}const ui=Di;function yd(t){let e=Zo;try{Zo=!0,ni.storagemutated.fire(t)}finally{Zo=e}}Ss(ui,{...hd,delete:t=>new ui(t,{addons:[]}).delete(),exists:t=>new ui(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:e,IDBKeyRange:r}){return t0(e)?Promise.resolve(e.databases()).then(o=>o.map(n=>n.name).filter(n=>n!==Th)):e0(e,r).toCollection().primaryKeys()}(ui.dependencies).then(t)}catch{return xt(new pe.MissingAPI)}},defineClass:()=>function(t){or(this,t)},ignoreTransaction:t=>ue.trans?Fs(ue.transless,t):t(),vip:uv,async:function(t){return function(){try{var e=dv(t.apply(this,arguments));return e&&typeof e.then=="function"?e:ie.resolve(e)}catch(r){return xt(r)}}},spawn:function(t,e,r){try{var o=dv(t.apply(r,e||[]));return o&&typeof o.then=="function"?o:ie.resolve(o)}catch(n){return xt(n)}},currentTransaction:{get:()=>ue.trans||null},waitFor:function(t,e){const r=ie.resolve(typeof t=="function"?ui.ignoreTransaction(t):t).timeout(e||6e4);return ue.trans?ue.trans.waitFor(r):r},Promise:ie,debug:{get:()=>Do,set:t=>{nA(t,t==="dexie"?()=>!0:bA)}},derive:Za,extend:or,props:Ss,override:ZI,Events:jc,on:ni,liveQuery:CY,extendObservabilitySet:EA,getByKeyPath:nn,setByKeyPath:lo,delByKeyPath:function(t,e){typeof e=="string"?lo(t,e,void 0):"length"in e&&[].map.call(e,function(r){lo(t,r,void 0)})},shallowClone:tA,deepClone:Wl,getObjectDiff:r0,cmp:Zt,asap:JI,minKey:rv,addons:[],connections:Dc,errnames:Xy,dependencies:hv,semVer:l_,version:l_.split(".").map(t=>parseInt(t)).reduce((t,e,r)=>t+e/Math.pow(10,2*r))}),ui.maxKey=kl(ui.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(ni(wl,t=>{if(!Zo){let e;Ch?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Nn,!0,!0,t)):e=new CustomEvent(Nn,{detail:t}),Zo=!0,dispatchEvent(e),Zo=!1}}),addEventListener(Nn,({detail:t})=>{Zo||yd(t)}));let Zo=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel(Nn);typeof t.unref=="function"&&t.unref(),ni(wl,e=>{Zo||t.postMessage(e)}),t.onmessage=e=>{e.data&&yd(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){ni(wl,e=>{try{Zo||(typeof localStorage<"u"&&localStorage.setItem(Nn,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Nn,changedParts:e})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",e=>{if(e.key===Nn){const r=JSON.parse(e.newValue);r&&yd(r.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:e}){e&&e.type===Nn&&yd(e.changedParts)})}ie.rejectionMapper=function(t,e){if(!t||t instanceof Ja||t instanceof TypeError||t instanceof SyntaxError||!t.name||!i_[t.name])return t;var r=new i_[t.name](e||t.message,t);return"stack"in t&&on(r,"stack",{get:function(){return this.inner.stack}}),r},nA(Do,bA);class TY{constructor(e,r){this.DB=e,this.Name=r,this.Sto=e.table(r),this.Trim()}Sto;async Get(e,r){const o=await this.Sto.get(e);return o?r&&await r(o)||typeof o.Exp=="number"&&o.Exptypeof e.Exp=="number"&&e.Exp{const r=setInterval(()=>{this.Hub.state===Pe.Connected&&(clearInterval(r),e())},100)}))}static async Invoke(e,...r){return await this.EnsureConnected(),this.Hub.invoke(e,...r)}static EnsureLogin(){if(!an.getActiveAccount())throw new AA}static EnsureTrue(e){if(!e)throw new xY}static async WithVersionCache(e,r,o){const n=`${r}_${o?`Admin_${e}`:e}`,i=await xa.Get(n);if(i&&i.QueryExp>Ct().unix())return i;const a=await this.Invoke(r,e,i?.Version);return a===!0?(xa.Set(n,{...i,QueryExp:Ct().add(1,"m").unix()},null),i):a?(xa.Set(n,{...a,QueryExp:Ct().add(1,"m").unix()},null),a):xa.Sto.delete(n)}static async WithTimeCache(e,r,o,...n){return await xa.GetOrSet(`${r}_${e}`,async()=>await this.Invoke(r,...n),o)}static async FindCover(e,r,o){const n=[];for(const i of e){const a=await(await Ts(()=>Promise.resolve().then(()=>PY),void 0)).ProductEntity.Photo(i);if(a){if(n.push(a),a.Cover)return a.ObjectId}else o?.warn(`Photo ${i} not found in Product ${r}`)}if(n.length>0)return o?.warn(`Product ${r} has no cover photo, using first photo instead`),n.sort((i,a)=>i.Order-a.Order)[0].ObjectId}static async HandleFileStream(e,r,o){const i=Math.ceil(e.size/30720);let a=0;for(;a{u.onload=()=>f(new Uint8Array(u.result)),u.onerror=()=>h(u.error),u.readAsArrayBuffer(l)});r.next(d),o?.debug(`Sent chunk ${a+1}/${i}`),a++}r.complete()}}class ho extends RA{static Log=["|","ShopNet"];static Hub=new jI().withUrl("https://awaishop.aloen.to:3389/Hub",{skipNegotiation:!0,transport:ct.WebSockets,logMessageContent:!1,async accessTokenFactory(){const e=await IA();return e||""}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new UI).configureLogging(L.Information).build()}ho.Hub.on("OnNewUser",()=>{Qa.next(!0),console.debug("OnNewUser")});class EY extends ho{static Categories(){return this.WithTimeCache("","GalleryGetCategories",Ct().add(1,"m"))}static async Products(e){const r=await this.WithTimeCache(e,"GalleryGetProducts",Ct().add(1,"m"),e);return[r,4-r.length%4]}}const IY={Get:EY};class AY extends ho{static async Get(e){if(!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(e))throw new Error(`Invalid ObjectId ${e}`);return await this.EnsureConnected(),this.Hub.stream("ObjectStorageGet",e)}static GetBySlice(e,r){const o=[];return xa.GetOrSet(e,()=>new Promise((n,i)=>{this.Get(e).then(a=>a.subscribe({error(s){i(s)},next(s){o.push(s),r.debug("Received Slice",e,o.length)},complete(){n(o)}}))}))}}class RY extends ho{static useDelete(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("OrderDeleteCancel",r);return this.EnsureTrue(o),o},e)}}class Rt extends ho{static Product(e){return this.WithVersionCache(e,"ProductEntity")}static Photo(e){return this.WithVersionCache(e,"PhotoEntity")}static Type(e){return this.WithVersionCache(e,"TypeEntity")}static Variant(e){return this.WithVersionCache(e,"VariantEntity")}}const PY=Object.freeze(Object.defineProperty({__proto__:null,ProductEntity:Rt},Symbol.toStringTag,{value:"Module"}));class Eh extends ho{static Log=[...super.Log,"Product","Get"];static async Basic(e,r){const o=r.With(...this.Log,"Basic"),n=await Rt.Product(e);if(!n)throw new Error(`Product ${e} Not Found`);const i=await this.PhotoList(e),a=await this.FindCover(i,e,o);return a?{Name:n.Name,Cover:a}:(o.warn(`Product ${e} has no photo`),{Name:n.Name,Cover:""})}static Limit(e){return this.Invoke("ProdGetLimit",e)}static async Combo(e,r){const o=r.With(...this.Log,"Combo"),n=await this.ComboList(e),i=[];for(const a of n){const s={};for(const c of a.Types){const l=await Rt.Type(c);if(!l){o.error(`[Mismatch] Type ${c} not found. Combo ${a.ComboId} : Product ${e}`);continue}const u=await Rt.Variant(l.VariantId);if(!u){o.error(`[Mismatch] Variant ${l.VariantId} not found. Combo ${a.ComboId} : Type ${c} : Product ${e}`);continue}s[u.Name]=l.Name}i.push({Id:a.ComboId,Stock:a.Stock,Combo:s})}return i}static async Carousel(e,r){const o=r.With(...this.Log,"Carousel"),n=await this.PhotoList(e),i=[];for(let a=0;aa.Id-s.Id)}static async Lexical(e){return"This is a demo"}static ComboList(e){return this.WithTimeCache(e,"ProductGetComboList",Ct().add(1,"m"),e)}static PhotoList(e){return this.WithTimeCache(e,"ProductGetPhotoList",Ct().add(1,"m"),e)}}class Yp extends ho{static Order(e){return this.EnsureLogin(),this.WithVersionCache(e,"OrderEntity")}static Comment(e){return this.EnsureLogin(),this.WithVersionCache(e,"CommentEntity")}}class BY extends ho{static Log=[...super.Log,"Order","Get"];static async List(e){this.EnsureLogin();const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","OrderGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await Yp.Order(i.OrderId);if(!a){r.warn(`[Mismatch] Order ${i.OrderId} not found`);continue}const s=[];for(const c of i.Products){const l=await Rt.Product(c);if(!l){r.warn(`[Mismatch] Product ${c} not found`);continue}s.push(l.Name)}n.push({Id:i.OrderId,Items:s,Quantity:i.Quantity,Status:a.Status,TrackNumber:a.TrackingNumber,OrderDate:a.CreateAt})}return n.sort((i,a)=>a.OrderDate.getTime()-i.OrderDate.getTime())}static async Detail(e,r){this.EnsureLogin();const o=r.With(...this.Log,"Detail"),n=await this.WithTimeCache(e,"OrderGetDetail",Ct().add(1,"m"),e),i=[];let a=0;for(const c of n.Items){const l={};let u=0;for(const p of c.Types){const g=await Rt.Type(p);if(!g){o.warn(`[Mismatch] Type ${p} not found. Order : ${e}`);continue}const y=await Rt.Variant(g.VariantId);if(!y){o.warn(`[Mismatch] Variant ${g.VariantId} not found. Type : ${p}, Order : ${e}`);continue}l[y.Name]=g.Name,u=y.ProductId}const d=await Rt.Product(u);if(!d){o.warn(`[Mismatch] Product ${u} not found. Order : ${e}`);continue}const f=await Eh.PhotoList(u),h=await this.FindCover(f,u,o);h||o.warn(`Product ${u} has no photo`),i.push({Id:a++,ProdId:u,Cover:h||"",Name:d.Name,Type:l,Quantity:c.Quantity})}const s=[];for(const c of n.Comments){const l=await Yp.Comment(c);if(!l){o.warn(`[Mismatch] Comment ${c} not found. Order : ${e}`);continue}s.push({Content:l.Content,Time:l.CreateAt,User:l.Name||"You"})}return{ShopCart:i,Comments:s.sort((c,l)=>c.Time.getTime()-l.Time.getTime())}}static Order=Yp.Order}class NY extends ho{static useNew(e){return Ce((r,o)=>{this.EnsureLogin();const n=r.map(i=>({ProdId:i.ProdId,Type:Object.values(i.Type),Quantity:i.Quantity}));return this.Invoke("OrderPostNew",n,o)},e)}static useAppend(e){return Ce(async(r,o)=>{this.EnsureLogin();const n=await this.Invoke("OrderPostAppend",r,o);return this.EnsureTrue(n),n},e)}static useCancel(e){return Ce(async(r,o)=>{this.EnsureLogin();const n=await this.Invoke("OrderPostCancel",r,o);return this.EnsureTrue(n),n},e)}static useReceived(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("OrderPostReceived",r);return this.EnsureTrue(o),o},e)}}const zY={Get:BY,Post:NY,Delete:RY},MY={Get:Eh};function la(t){var e=w.useRef();return e.current===void 0&&(e.current={value:typeof t=="function"?t():t}),e.current.value}class OY extends ho{static useMe(e,r,o=!0){const n=la(()=>e.With("|","Hub","User","Get","Me")),{dispatch:i,dispatchToast:a}=Sh(n);return Ce(()=>(this.EnsureLogin(),this.WithVersionCache(0,"UserGetMe")),{...r,onError:(s,c)=>{s instanceof AA?o?n.debug(s):a(x.jsx(Ms,{children:x.jsx(Os,{children:s.message})}),{intent:"warning",timeout:5e3}):i({Message:"Failed to Get Your Info",Error:s,Request:c})}})}}class DY extends ho{static useUpdate(e){return Ce(async r=>{this.EnsureLogin();const o=await this.Invoke("UserPostUpdate",r);return this.EnsureTrue(o),o},e)}}const jY={Get:OY,Post:DY},mn={Gallery:IY,Product:MY,User:jY,Order:zY,Storage:AY},PA=w.createContext({});function Sl(){return w.useContext(PA)}const Qp=new sa("ShopCart","Context");function FY({children:t}){const[e,r]=w.useState([]);Ce(async()=>{const i=await Xp.toArray(),a=[];for(const s of i){const c=await mn.Product.Get.Basic(s.ProdId,Qp);a.push({...s,...c})}r(a)},{onError:Qp.error});async function o(i){for(let a=0;a({Id:a.Id,ProdId:a.ProdId,Type:a.Type,Quantity:a.Quantity})))}async function n(i,a,s){const c=await mn.Product.Get.Basic(i,Qp);e.push({...c,Id:e.length,ProdId:i,Type:a,Quantity:s}),o(e)}return x.jsx(PA.Provider,{value:{List:e,Add:n,Update:o},children:t})}const n0={Name:"AwaiShop"},LY=Wr({box:{width:"-webkit-fill-available",marginTop:Me.spacingVerticalXXXL,...ls.padding(Me.spacingVerticalXXXL,0),backgroundColor:Me.colorNeutralBackgroundInverted},main:{...pn,maxWidth:Ky,...ls.margin(0,"auto")},logo:{width:"150px",filter:"invert(96%)"},otc:{color:"white"}});function qY(){const t=LY();return x.jsx("footer",{className:t.box,children:x.jsx("div",{className:t.main,children:x.jsx("img",{src:"/safari-pinned-tab.svg",className:t.logo})})})}function HY(){const{Paths:t,Search:e,Put:r}=Ds(),o=t.at(0),n=t.at(1),i=n==="User",a=n==="Order",s=i?"admin":"pending";return o==="Admin"&&(i||a)&&x.jsxs(x.Fragment,{children:[x.jsx(Xa,{placeholder:"Search in Any Field",contentBefore:x.jsx(q3,{}),appearance:"underline",onChange:(c,l)=>{l.value?e.set("search",l.value):e.delete("search"),r(e)}}),x.jsx(E2,{label:`Only ${i?"Admin":"Pending"}`,checked:e.get(s)==="",onChange:(c,l)=>{l.checked?e.set(s,""):e.delete(s),r(e)}})]})}const UY=Wr({box:{...pn,flexGrow:1,height:"inherit",marginLeft:Me.spacingHorizontalS,alignItems:"center"},div:{color:Me.colorNeutralForegroundDisabled},link:{textDecorationLine:"unset !important"}});function $Y(){const t=UY(),{Paths:e}=Ds(),r=e.at(0),o=e.at(1)||"Product";return r==="Admin"&&x.jsxs("div",{className:t.box,children:[x.jsx(fl,{size:600,font:"monospace",className:t.div,children:"|"}),x.jsxs(A2,{selectedValue:o,children:[x.jsx(Gn,{appearance:"subtle",href:"/Admin",className:t.link,children:x.jsx(cd,{value:"Product",children:"Product List"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin/Order",className:t.link,children:x.jsx(cd,{value:"Order",children:"Order List"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin/User",className:t.link,children:x.jsx(cd,{value:"User",children:"User List"})})]})]})}class po extends RA{static Log=["|","AdminNet"];static Hub=new jI().withUrl("https://awaishop.aloen.to:3389/AdminHub",{skipNegotiation:!0,transport:ct.WebSockets,logMessageContent:!1,async accessTokenFactory(){const e=await IA();if(e)return e;throw new Error("Please Login First")}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new UI).configureLogging(L.Information).build();static WithVersionCache(e,r){return super.WithVersionCache(e,r,!0)}static WithTimeCache(e,r,o,...n){return super.WithTimeCache(`Admin_${e}`,r,o,...n)}}class Sf extends po{static User(e){return this.EnsureLogin(),this.WithVersionCache(e,"UserEntity")}}class wd extends po{static Order(e){return this.EnsureLogin(),this.WithVersionCache(e,"OrderEntity")}static Comment(e){return this.EnsureLogin(),this.WithVersionCache(e,"CommentEntity")}}class KY extends po{static Log=[...super.Log,"Order","Get"];static async List(e){this.EnsureLogin();const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","OrderGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await wd.Order(i.OrderId);if(!a){r.warn(`[Mismatch] Order ${i.OrderId} not found`);continue}const s=[];for(const l of i.Products){const u=await Rt.Product(l);if(!u){r.warn(`[Mismatch] Product ${l} not found`);continue}s.push(u.Name)}const c=await Sf.User(a.UserId);if(!c){r.error(`[Mismatch] User ${a.UserId} not found`);continue}n.push({Id:i.OrderId,Items:s,Quantity:i.Quantity,Status:a.Status,TrackNumber:a.TrackingNumber,OrderDate:a.CreateAt,User:c.Name})}return n.sort((i,a)=>a.OrderDate.getTime()-i.OrderDate.getTime())}static async Detail(e,r){this.EnsureLogin();const o=r.With(...this.Log,"Detail"),n=await this.WithTimeCache(e,"OrderGetDetail",Ct().add(1,"m"),e),i=[];let a=0;for(const c of n.Items){const l={};let u=0;for(const p of c.Types){const g=await Rt.Type(p);if(!g){o.warn(`[Mismatch] Type ${p} not found. Order : ${e}`);continue}const y=await Rt.Variant(g.VariantId);if(!y){o.warn(`[Mismatch] Variant ${g.VariantId} not found. Type : ${p}, Order : ${e}`);continue}l[y.Name]=g.Name,u=y.ProductId}const d=await Rt.Product(u);if(!d){o.warn(`[Mismatch] Product ${u} not found. Order : ${e}`);continue}const f=await Eh.PhotoList(u),h=await this.FindCover(f,u,o);h||o.warn(`Product ${u} has no photo`),i.push({Id:a++,ProdId:u,Cover:h||"",Name:d.Name,Type:l,Quantity:c.Quantity})}const s=[];for(const c of n.Comments){const l=await wd.Comment(c);if(!l){o.warn(`[Mismatch] Comment ${c} not found. Order : ${e}`);continue}let u="Client";if(l.UserId){const d=await Sf.User(l.UserId);d?u=d.Name:o.warn(`[Mismatch] User ${l.UserId} not found. Order : ${e}`)}s.push({Content:l.Content,Time:l.CreateAt,User:u})}return{ShopCart:i,Comments:s.sort((c,l)=>c.Time.getTime()-l.Time.getTime())}}static Order=wd.Order}class WY extends po{static useAppend(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostAppend",r,o);return this.EnsureTrue(n),n},e)}static useClose(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostClose",r,o);return this.EnsureTrue(n),n},e)}static useShip(e){return Ce(async(r,o)=>{const n=await this.Invoke("OrderPostShip",r,o);return this.EnsureTrue(n),n},e)}static useAccept(e){return Ce(async r=>{const o=await this.Invoke("OrderPostAccept",r);return this.EnsureTrue(o),o},e)}}const VY={Get:KY,Post:WY};class GY extends po{static usePhoto(e){return Ce(async r=>{const o=await this.Invoke("ProductDeletePhoto",r);return this.EnsureTrue(o),o},e)}static useVariant(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteVariant",r);return this.EnsureTrue(o),o},e)}static useType(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductDeleteType",r,o);return this.EnsureTrue(n),n},e)}static useCombo(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteCombo",r);return this.EnsureTrue(o),o},e)}static useProduct(e){return Ce(async r=>{const o=await this.Invoke("ProductDeleteProduct",r);return this.EnsureTrue(o),o},e)}}class XY extends po{static Log=[...super.Log,"Product","Get"];static async List(e){const r=e.With(...this.Log,"List"),o=await this.WithTimeCache("","ProductGetList",Ct().add(1,"m")),n=[];for(const i of o){const a=await Rt.Product(i.ProductId);if(!a){r.warn(`Product ${i.ProductId} Not Found`);continue}const s=await Eh.PhotoList(i.ProductId),c=await this.FindCover(s,i.ProductId,r);c||r.warn(`Product ${i.ProductId} has no photo`),n.push({Id:i.ProductId,Cover:c||"",Name:a.Name,Category:a.Category||"Pending",Variant:i.Variant,Combo:i.Combo,Stock:i.Stock})}return n}static async Name(e){const r=await Rt.Product(e);if(!r)throw new Error(`Product ${e} Not Found`);return r.Name}static async Category(e){const r=await Rt.Product(e);if(!r)throw new Error(`Product ${e} Not Found`);return r.Category}static async Variants(e,r){const o=r.With(...this.Log,"Variants"),n=await this.WithTimeCache(e,"ProductGetVariants",Ct().add(1,"m"),e),i=[];for(const a of n){const s=await Rt.Variant(a.VariantId);if(!s){o.warn(`Variant ${a} Not Found. Product : ${e}`);continue}const c=[];for(const l of a.Types){const u=await Rt.Type(l);if(!u){o.warn(`Type ${l} Not Found. Variant : ${a.VariantId}, Product : ${e}`);continue}c.push(u.Name)}i.push({Id:a.VariantId,Name:s.Name,Types:c})}return i}}class YY extends po{static Log=[...super.Log,"Product","Patch"];static useName(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchName",r,o);return this.EnsureTrue(n),n},e)}static useCategory(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchCategory",r,o);return this.EnsureTrue(n),n},e)}static usePhoto(e,r){const o=la(()=>e.With(...this.Log,"Photo"));return Ce(async(n,i)=>{if(!i.type.startsWith("image/"))throw new TypeError("File is not an image");if(i.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");await this.EnsureConnected();const a=new _h,s=this.Hub.invoke("ProductPatchPhoto",n,a);return await this.HandleFileStream(i,a,o),this.EnsureTrue(await s),!0},r)}static useCaption(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchCaption",r,o);return this.EnsureTrue(n),n},e)}static useVariantName(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPatchVariantName",r,o);return this.EnsureTrue(n),n},e)}static useType(e){return Ce(async(r,o,n)=>{const i=await this.Invoke("ProductPatchType",r,o,n);return this.EnsureTrue(i),i},e)}static useCombo(e){return Ce(async(r,o,n)=>{const i=await this.Invoke("ProductPatchCombo",r,o,n);return this.EnsureTrue(i),i},e)}}class QY extends po{static Log=[...super.Log,"Product","Post"];static useCreate(e){return Ce(r=>this.Invoke("ProductPostCreate",r),e)}static useMovePhoto(e){return Ce(async(r,o)=>{const n=await this.Invoke("ProductPostMovePhoto",r,o);return this.EnsureTrue(n),n},e)}static usePhoto(e,r){const o=la(()=>e.With(...this.Log,"Photo"));return Ce(async(n,i)=>{if(!i.type.startsWith("image/"))throw new TypeError("File is not an image");if(i.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");const a=new _h,s=this.Invoke("ProductPostPhoto",n,a);return await this.HandleFileStream(i,a,o),this.EnsureTrue(await s),!0},r)}static useVariant(e){return Ce((r,o)=>this.Invoke("ProductPostVariant",r,o),e)}static useType(e){return Ce((r,o)=>this.Invoke("ProductPostType",r,o),e)}static useCombo(e){return Ce((r,o,n)=>this.Invoke("ProductPostCombo",r,o,n),e)}}const ZY={Get:XY,Post:QY,Patch:YY,Delete:GY};class JY extends po{static useUser(e){return Ce(async r=>{const o=await this.Invoke("UserDeleteUser",r);return this.EnsureTrue(o),o},e)}static useAdmin(e){return Ce(async r=>{const o=await this.Invoke("UserDeleteAdmin",r);return this.EnsureTrue(o),o},e)}}class eQ extends po{static async OrderUser(e){const r=await wd.Order(e);if(!r)throw new Error(`Order ${e} not found`);const o=await Sf.User(r.UserId);if(!o)throw new Error(`User ${r.UserId} not found in order ${e}`);return o}static async List(){const e=await this.WithTimeCache("","UserGetList",Ct().add(1,"m")),r=[];for(const o of e){const n=await Sf.User(o);if(!n){console.warn(`User ${o} not found`);continue}r.push({Id:o,Name:n.Name,EMail:n.EMail,Admin:n.Admin})}return r}}class tQ extends po{static useAdmin(e){return Ce(async r=>{const o=await this.Invoke("UserPostAdmin",r);return this.EnsureTrue(o),o},e)}}const rQ={Get:eQ,Post:tQ,Delete:JY},oQ={Product:ZY,Order:VY,User:rQ},nQ=Wr({body:Qi}),iQ=new sa("Admin","Product","AddButton");function aQ(){const{Nav:t,Paths:e}=Ds(),r=e.at(0),o=e.at(1),n=nQ(),[i,a]=w.useState(""),{dispatch:s,dispatchToast:c}=Sh(iQ),{run:l}=oQ.Product.Post.useCreate({manual:!0,onError(u,d){s({Message:`Failed Create ${i}`,Request:d,Error:u})},onSuccess(u){c(x.jsxs(Ms,{children:[x.jsx(Os,{children:"New Product Created"}),x.jsxs(Kl,{children:[u," ",i]})]}),{intent:"success"}),t("Admin",u)}});return r==="Admin"&&!o&&x.jsxs(hl,{children:[x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"primary",icon:x.jsx(E3,{}),children:"New Product"})}),x.jsx(By,{children:x.jsxs(Py,{children:[x.jsx(Ny,{className:n.body,children:x.jsx(Xa,{required:!0,size:"large",value:i,maxLength:15,appearance:"underline",onChange:(u,d)=>a(d.value),contentBefore:x.jsx(rq,{children:"Give A Name"})})}),x.jsxs(Ry,{children:[x.jsx(ws,{disableButtonEnhancement:!0,children:x.jsx(No,{appearance:"secondary",children:"Cancel"})}),x.jsx(No,{appearance:"primary",onClick:()=>l(i),children:"Create"})]})]})})]})}function sQ(){const[t,{toggle:e}]=Bi(),[r,{toggle:o}]=Bi(),{instance:n}=Pl(),[i,{set:a}]=Bi(!0);w.useEffect(()=>{Qa.subscribe(c=>a(!c))},[]);const s=n.getActiveAccount();return x.jsxs(x.Fragment,{children:[x.jsxs(w2,{open:t,onOpenChange:e,children:[x.jsx(Iy,{children:x.jsx(KT,{size:36,active:t?"active":"unset"})}),x.jsx(S2,{children:x.jsxs(_2,{children:[x.jsx(Ku,{children:x.jsxs(k2,{children:["Hi ",s?.name||s?.username]})}),x.jsx(pN,{children:x.jsx(Sa,{onClick:()=>n.loginRedirect(),children:"Login"})}),x.jsxs(Ku,{children:[x.jsx(Gn,{appearance:"subtle",href:"/History",children:x.jsx(Sa,{children:"History"})}),x.jsx(Gn,{appearance:"subtle",href:"/Admin",children:x.jsx(Sa,{children:"Admin"})}),x.jsx(Sa,{onClick:o,children:"Setting"}),x.jsx(Sa,{onClick:()=>n.logoutRedirect(),children:"Logout"})]})]})})]}),i&&x.jsx(Ku,{children:x.jsx(YI,{Open:r,Toggle:o})})]})}function BA({Items:t,Columns:e,NoHeader:r}){return x.jsxs(aI,{items:t,columns:e,getRowId:o=>o.Id,children:[!r&&x.jsx(sI,{children:x.jsx(Nm,{children:({renderHeaderCell:o})=>o()})}),x.jsx(iI,{children:({item:o,rowId:n})=>x.jsx(Nm,{children:({renderCell:i})=>i(o)},n)})]})}function cQ({Guid:t,Log:e,...r}){const o=la(()=>e.With("GuidImage")),{data:n,run:i}=Ce(mn.Storage.GetBySlice.bind(mn.Storage),{manual:!0,onError:o.error});return w.useEffect(()=>{t&&i(t,o)},[t]),x.jsx(Cy,{...r,src:n?URL.createObjectURL(new Blob(n)):"https://placehold.co/400?text=Loading..."})}const v_=Wr({unset:{flexBasis:"unset",flexGrow:0},img:{...RX,aspectRatio:"1",marginTop:Me.spacingVerticalXS,marginBottom:Me.spacingVerticalXS}});function lQ(t,e){const r={width:`${t}px`};return ld({columnId:"Cover",renderHeaderCell:()=>{const o=v_();return x.jsx(cI,{className:o.unset,children:x.jsx("div",{style:r})})},renderCell(o){const n=v_();return x.jsx(Pc,{className:n.unset,children:x.jsx(cQ,{className:n.img,style:r,Guid:o.Cover,Log:e})})}})}function uQ(t){const{List:e}=Sl(),{data:r}=Ce(()=>mn.Product.Get.Limit(t)),o=r||3;let n=0;for(const i of e)if(i.ProdId===t&&(n+=i.Quantity),n>=o)return[!0,o];return[!1,o]}const Zp=Wr({prod:{...Qi,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"12%",flexGrow:0},act:{flexBasis:"7%",flexGrow:0}}),dQ=[ld({columnId:"Product",renderCell(t){return x.jsxs(Pc,{className:Zp().prod,children:[x.jsx(Gn,{href:`/Product/${t.ProdId}`,appearance:"subtle",children:x.jsx(Y9,{children:t.Name})}),x.jsx(J9,{children:Object.values(t.Type).reduce((e,r)=>`${e} ${r},`,"")})]})}}),ld({columnId:"Quantity",renderCell(t){const{List:e,Update:r}=Sl(),[o,n]=uQ(t.ProdId);return x.jsx(Pc,{className:Zp().qua,children:x.jsx(T2,{min:1,max:n,value:t.Quantity,onChange:(i,a)=>{o&&a.value>=t.Quantity||(t.Quantity=a.value,r(e))}})})}}),ld({columnId:"Action",renderCell(t){const{List:e,Update:r}=Sl();return x.jsx(Pc,{className:Zp().act,children:x.jsx(No,{appearance:"subtle",icon:x.jsx(O3,{}),onClick:()=>r(e.filter(o=>o.Id!==t.Id))})})}})];function NA(t){return[lQ(44,t),...dQ]}const fQ=Wr({person:pn,inf:{...Qi,flexBasis:"50%",rowGap:Me.spacingVerticalM}});function hQ({Log:t}){const e=fQ(),r=la(()=>t.With("PersonaInfo")),{data:o}=mn.User.Get.useMe(r);return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:e.person,children:[x.jsx("div",{className:e.inf,children:x.jsx(Io,{label:"Name",size:"large",children:x.jsx(Vt,{children:o?.Name})})}),x.jsx("div",{className:e.inf,children:x.jsx(Io,{label:"Phone",size:"large",children:x.jsx(Vt,{children:o?.Phone})})})]}),x.jsx(Io,{label:"E-Mail",size:"large",children:x.jsx(Vt,{children:o?.EMail})}),x.jsx(Io,{label:"Address",size:"large",children:x.jsx(Vt,{children:o?.Address})})]})}const pQ=Wr({body:{...Qi,rowGap:Me.spacingVerticalXL},sub:{width:"fit-content",alignSelf:"flex-end"}}),Jp=new sa("TopNavBar","ShopCart","Confirm");function gQ(){const[t,e]=w.useState(),[r,{toggle:o}]=Bi(),{List:n,Update:i}=Sl(),{Nav:a}=Ds(),s=pQ(),{dispatch:c,dispatchToast:l}=Sh(Jp),{run:u}=mn.Order.Post.useNew({manual:!0,onError(d,f){c({Message:"Failed Create Order",Request:f,Error:d})},onSuccess(d){l(x.jsxs(Ms,{children:[x.jsx(Os,{children:"Order Placed"}),x.jsxs(Kl,{children:["Order Id: ",d]})]}),{intent:"success"}),i([]),o(),a("History",d)}});return x.jsxs(x.Fragment,{children:[x.jsx(No,{appearance:"primary",onClick:o,disabled:!n.length,children:"Checkout"}),x.jsxs(_I,{open:r,onOpenChange:o,position:"end",size:"medium",modalType:"alert",children:[x.jsx(CI,{children:x.jsx(TI,{action:x.jsx(No,{appearance:"subtle",icon:x.jsx(D3,{}),onClick:o}),children:"Confirm Order"})}),x.jsx(SI,{children:x.jsxs("div",{className:s.body,children:[x.jsx(hQ,{Log:Jp}),x.jsx(BA,{Items:n,Columns:la(()=>NA(Jp)),NoHeader:!0}),x.jsx(Io,{label:"Comment",size:"large",children:x.jsx(N2,{value:t,onChange:(d,f)=>e(f.value),maxLength:1e3})}),x.jsx(No,{appearance:"primary",className:s.sub,disabled:!n.length,onClick:()=>u(n,t),children:"Submit"})]})})]})]})}const mQ=Wr({conf:{...pn,width:"100%",alignItems:"center",justifyContent:"space-between",marginTop:Me.spacingVerticalS,columnGap:Me.spacingHorizontalL},tooltip:{backgroundColor:Me.colorBrandBackground,color:Me.colorNeutralForegroundInverted,...ls.borderRadius(Me.borderRadiusCircular)}}),vQ=new sa("TopNavBar","ShopCart");function bQ(){const[t,{toggle:e}]=Bi(),[r,{toggle:o}]=Bi(),n=mQ(),{List:i}=Sl();return ff(()=>{if(t)return;o();const a=setTimeout(o,2e3);return()=>clearTimeout(a)},[i]),x.jsxs(u2,{withArrow:!0,open:t,onOpenChange:e,children:[x.jsx(_y,{disableButtonEnhancement:!0,children:x.jsx(Sy,{visible:r,withArrow:!0,content:{children:"↑",className:n.tooltip},relationship:"inaccessible",children:x.jsx(g2,{icon:x.jsx(R3,{}),appearance:"subtle",size:"large",checked:t})})}),x.jsxs(l2,{children:[x.jsx(BA,{Items:i,Columns:la(()=>NA(vQ)),NoHeader:!0}),x.jsxs("div",{className:n.conf,children:[x.jsxs(V9,{children:[i.map(a=>a.Quantity).reduce((a,s)=>a+s,0)," items in shopping cart"]}),x.jsx(gQ,{})]})]})]})}const yQ=Wr({navBox:{position:"fixed",top:0,width:"100%",height:`${$y}px`,...ls.padding(0,Me.spacingHorizontalXXXL),backgroundColor:"#fff",boxSizing:"border-box",boxShadow:Me.shadow4},navBar:{...pn,maxWidth:Ky,height:"100%",...ls.margin(0,"auto"),alignItems:"center",justifyContent:"space-between"},logoBox:{...pn,columnGap:Me.spacingHorizontalL,alignItems:"center"},logoText:{color:Me.colorBrandForeground2}});function wQ(){const t=yQ();return x.jsx(aa,{children:x.jsx("header",{className:t.navBox,children:x.jsxs("nav",{className:t.navBar,children:[x.jsxs(Gn,{className:t.logoBox,href:"/",appearance:"subtle",children:[x.jsx(Cy,{src:"/Awai.png",height:$y}),x.jsx(fl,{size:600,font:"monospace",className:t.logoText,children:n0.Name})]}),x.jsx($Y,{}),x.jsxs("div",{className:t.logoBox,children:[x.jsx(aQ,{}),x.jsx(HY,{}),x.jsx(bQ,{}),x.jsx(sQ,{})]})]})})})}function kQ(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var zA=w,_Q=kQ(zA);function b_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var CQ=!!(typeof window<"u"&&window.document&&window.document.createElement);function TQ(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(n){return n.displayName||n.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],s;function c(){s=t(a.map(function(u){return u.props})),l.canUseDOM?e(s):r&&(s=r(s))}var l=function(u){SQ(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return s},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var p=s;return s=void 0,a=[],p};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){a.push(this),c()},f.componentDidUpdate=function(){c()},f.componentWillUnmount=function(){var p=a.indexOf(this);a.splice(p,1),c()},f.render=function(){return _Q.createElement(i,this.props)},d}(zA.PureComponent);return b_(l,"displayName","SideEffect("+o(i)+")"),b_(l,"canUseDOM",CQ),l}}var xQ=TQ;const EQ=Oo(xQ);var IQ=typeof Element<"u",AQ=typeof Map=="function",RQ=typeof Set=="function",PQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function kd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!kd(t[o],e[o]))return!1;return!0}var i;if(AQ&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!kd(o.value[1],e.get(o.value[0])))return!1;return!0}if(RQ&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(PQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;if(IQ&&t instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&t.$$typeof)&&!kd(t[n[o]],e[n[o]]))return!1;return!0}return t!==t&&e!==e}var BQ=function(e,r){try{return kd(e,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const NQ=Oo(BQ);/* object-assign (c) Sindre Sorhus @license MIT -*/var y_=Object.getOwnPropertySymbols,NQ=Object.prototype.hasOwnProperty,zQ=Object.prototype.propertyIsEnumerable;function MQ(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function OQ(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var DQ=OQ()?Object.assign:function(t,e){for(var r,o=MQ(t),n,i=1;i=0||Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},KQ=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},gv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},WQ=function(e){var r=ts(e,me.TITLE),o=ts(e,Cl.TITLE_TEMPLATE);if(o&&r)return o.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var n=ts(e,Cl.DEFAULT_TITLE);return r||n||void 0},VQ=function(e){return ts(e,Cl.ON_CHANGE_CLIENT_STATE)||function(){}},tg=function(e,r){return r.filter(function(o){return typeof o[e]<"u"}).map(function(o){return o[e]}).reduce(function(o,n){return sr({},o,n)},{})},GQ=function(e,r){return r.filter(function(o){return typeof o[me.BASE]<"u"}).map(function(o){return o[me.BASE]}).reverse().reduce(function(o,n){if(!o.length)for(var i=Object.keys(n),a=0;a=0;o--){var n=e[o];if(n.hasOwnProperty(r))return n[r]}return null},XQ=function(e){return{baseTag:GQ([$e.HREF,$e.TARGET],e),bodyAttributes:tg(ji.BODY,e),defer:ts(e,Cl.DEFER),encode:ts(e,Cl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:tg(ji.HTML,e),linkTags:ec(me.LINK,[$e.REL,$e.HREF],e),metaTags:ec(me.META,[$e.NAME,$e.CHARSET,$e.HTTPEQUIV,$e.PROPERTY,$e.ITEM_PROP],e),noscriptTags:ec(me.NOSCRIPT,[$e.INNER_HTML],e),onChangeClientState:VQ(e),scriptTags:ec(me.SCRIPT,[$e.SRC,$e.INNER_HTML],e),styleTags:ec(me.STYLE,[$e.CSS_TEXT],e),title:WQ(e),titleAttributes:tg(ji.TITLE,e)}},mv=function(){var t=Date.now();return function(e){var r=Date.now();r-t>16?(t=r,e(r)):setTimeout(function(){mv(e)},0)}}(),k_=function(e){return clearTimeout(e)},YQ=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||mv:global.requestAnimationFrame||mv,QQ=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||k_:global.cancelAnimationFrame||k_,ZQ=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},tc=null,JQ=function(e){tc&&QQ(tc),e.defer?tc=YQ(function(){__(e,function(){tc=null})}):(__(e),tc=null)},__=function(e,r){var o=e.baseTag,n=e.bodyAttributes,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,c=e.noscriptTags,l=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;vv(me.BODY,n),vv(me.HTML,i),eZ(f,h);var p={baseTag:wa(me.BASE,o),linkTags:wa(me.LINK,a),metaTags:wa(me.META,s),noscriptTags:wa(me.NOSCRIPT,c),scriptTags:wa(me.SCRIPT,u),styleTags:wa(me.STYLE,d)},g={},y={};Object.keys(p).forEach(function(v){var m=p[v],b=m.newTags,k=m.oldTags;b.length&&(g[v]=b),k.length&&(y[v]=p[v].oldTags)}),r&&r(),l(e,g,y)},zA=function(e){return Array.isArray(e)?e.join(""):e},eZ=function(e,r){typeof e<"u"&&document.title!==e&&(document.title=zA(e)),vv(me.TITLE,r)},vv=function(e,r){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(no),i=n?n.split(","):[],a=[].concat(i),s=Object.keys(r),c=0;c=0;f--)o.removeAttribute(a[f]);i.length===a.length?o.removeAttribute(no):o.getAttribute(no)!==s.join(",")&&o.setAttribute(no,s.join(","))}},wa=function(e,r){var o=document.head||document.querySelector(me.HEAD),n=o.querySelectorAll(e+"["+no+"]"),i=Array.prototype.slice.call(n),a=[],s=void 0;return r&&r.length&&r.forEach(function(c){var l=document.createElement(e);for(var u in c)if(c.hasOwnProperty(u))if(u===$e.INNER_HTML)l.innerHTML=c.innerHTML;else if(u===$e.CSS_TEXT)l.styleSheet?l.styleSheet.cssText=c.cssText:l.appendChild(document.createTextNode(c.cssText));else{var d=typeof c[u]>"u"?"":c[u];l.setAttribute(u,d)}l.setAttribute(no,"true"),i.some(function(f,h){return s=h,l.isEqualNode(f)})?i.splice(s,1):a.push(l)}),i.forEach(function(c){return c.parentNode.removeChild(c)}),a.forEach(function(c){return o.appendChild(c)}),{oldTags:i,newTags:a}},MA=function(e){return Object.keys(e).reduce(function(r,o){var n=typeof e[o]<"u"?o+'="'+e[o]+'"':""+o;return r?r+" "+n:n},"")},tZ=function(e,r,o,n){var i=MA(o),a=zA(r);return i?"<"+e+" "+no+'="true" '+i+">"+gv(a,n)+"":"<"+e+" "+no+'="true">'+gv(a,n)+""},rZ=function(e,r,o){return r.reduce(function(n,i){var a=Object.keys(i).filter(function(l){return!(l===$e.INNER_HTML||l===$e.CSS_TEXT)}).reduce(function(l,u){var d=typeof i[u]>"u"?u:u+'="'+gv(i[u],o)+'"';return l?l+" "+d:d},""),s=i.innerHTML||i.cssText||"",c=LQ.indexOf(e)===-1;return n+"<"+e+" "+no+'="true" '+a+(c?"/>":">"+s+"")},"")},OA=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[Tf[n]||n]=e[n],o},r)},oZ=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[FQ[n]||n]=e[n],o},r)},nZ=function(e,r,o){var n,i=(n={key:r},n[no]=!0,n),a=OA(o,i);return[Kt.createElement(me.TITLE,a,r)]},iZ=function(e,r){return r.map(function(o,n){var i,a=(i={key:n},i[no]=!0,i);return Object.keys(o).forEach(function(s){var c=Tf[s]||s;if(c===$e.INNER_HTML||c===$e.CSS_TEXT){var l=o.innerHTML||o.cssText;a.dangerouslySetInnerHTML={__html:l}}else a[c]=o[s]}),Kt.createElement(e,a)})},Lo=function(e,r,o){switch(e){case me.TITLE:return{toComponent:function(){return nZ(e,r.title,r.titleAttributes)},toString:function(){return tZ(e,r.title,r.titleAttributes,o)}};case ji.BODY:case ji.HTML:return{toComponent:function(){return OA(r)},toString:function(){return MA(r)}};default:return{toComponent:function(){return iZ(e,r)},toString:function(){return rZ(e,r,o)}}}},DA=function(e){var r=e.baseTag,o=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,c=e.noscriptTags,l=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:Lo(me.BASE,r,n),bodyAttributes:Lo(ji.BODY,o,n),htmlAttributes:Lo(ji.HTML,i,n),link:Lo(me.LINK,a,n),meta:Lo(me.META,s,n),noscript:Lo(me.NOSCRIPT,c,n),script:Lo(me.SCRIPT,l,n),style:Lo(me.STYLE,u,n),title:Lo(me.TITLE,{title:f,titleAttributes:h},n)}},aZ=function(e){var r,o;return o=r=function(n){$Q(i,n);function i(){return HQ(this,i),KQ(this,n.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!BQ(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,c){if(!c)return null;switch(s.type){case me.SCRIPT:case me.NOSCRIPT:return{innerHTML:c};case me.STYLE:return{cssText:c}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var c,l=s.child,u=s.arrayTypeChildren,d=s.newChildProps,f=s.nestedChildren;return sr({},u,(c={},c[l.type]=[].concat(u[l.type]||[],[sr({},d,this.mapNestedChildrenToProps(l,f))]),c))},i.prototype.mapObjectTypeChildren=function(s){var c,l,u=s.child,d=s.newProps,f=s.newChildProps,h=s.nestedChildren;switch(u.type){case me.TITLE:return sr({},d,(c={},c[u.type]=h,c.titleAttributes=sr({},f),c));case me.BODY:return sr({},d,{bodyAttributes:sr({},f)});case me.HTML:return sr({},d,{htmlAttributes:sr({},f)})}return sr({},d,(l={},l[u.type]=sr({},f),l))},i.prototype.mapArrayTypeChildrenToProps=function(s,c){var l=sr({},c);return Object.keys(s).forEach(function(u){var d;l=sr({},l,(d={},d[u]=s[u],d))}),l},i.prototype.warnOnInvalidChildren=function(s,c){return!0},i.prototype.mapChildrenToProps=function(s,c){var l=this,u={};return Kt.Children.forEach(s,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,p=w_(f,["children"]),g=oZ(p);switch(l.warnOnInvalidChildren(d,h),d.type){case me.LINK:case me.META:case me.NOSCRIPT:case me.SCRIPT:case me.STYLE:u=l.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:g,nestedChildren:h});break;default:c=l.mapObjectTypeChildren({child:d,newProps:c,newChildProps:g,nestedChildren:h});break}}}),c=this.mapArrayTypeChildrenToProps(u,c),c},i.prototype.render=function(){var s=this.props,c=s.children,l=w_(s,["children"]),u=sr({},l);return c&&(u=this.mapChildrenToProps(c,u)),Kt.createElement(e,u)},UQ(i,null,[{key:"canUseDOM",set:function(s){e.canUseDOM=s}}]),i}(Kt.Component),r.propTypes={base:Ue.object,bodyAttributes:Ue.object,children:Ue.oneOfType([Ue.arrayOf(Ue.node),Ue.node]),defaultTitle:Ue.string,defer:Ue.bool,encodeSpecialCharacters:Ue.bool,htmlAttributes:Ue.object,link:Ue.arrayOf(Ue.object),meta:Ue.arrayOf(Ue.object),noscript:Ue.arrayOf(Ue.object),onChangeClientState:Ue.func,script:Ue.arrayOf(Ue.object),style:Ue.arrayOf(Ue.object),title:Ue.string,titleAttributes:Ue.object,titleTemplate:Ue.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=e.peek,r.rewind=function(){var n=e.rewind();return n||(n=DA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n},o},sZ=function(){return null},cZ=xQ(XQ,JQ,DA)(sZ),bv=aZ(cZ);bv.renderStatic=bv.rewind;function lZ(){const{Rep:t}=Ds();return setTimeout(()=>t("/"),3e3),x.jsxs(x.Fragment,{children:[x.jsxs(bv,{children:[x.jsxs("title",{children:["Redirect - Not Found - ",n0.Name]}),x.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),x.jsx(Ac,{size:"huge",label:"Redirecting..."})]})}const uZ=Wr({body:{...Qi,minWidth:"1024px",position:"absolute",marginTop:`${$y}px`,width:"100%",minHeight:"-webkit-fill-available",justifyContent:"space-between",backgroundColor:Me.colorNeutralBackground2},content:{...Qi,maxWidth:Ky,width:"-webkit-fill-available",marginLeft:"auto",marginRight:"auto",paddingLeft:Me.spacingHorizontalM,paddingRight:Me.spacingHorizontalM,paddingTop:Me.spacingVerticalXXXL}});function dZ(){const t=uZ(),{Paths:e}=Ds(),r=e.at(0),o=w.useMemo(()=>{switch(r){case"Product":return x.jsx(fZ,{});case"Admin":return x.jsx(hZ,{});case"History":return x.jsx(pZ,{});case"Login":return x.jsx(Ac,{size:"huge",label:"Login Redirecting..."});case"Reload":return x.jsx(Ac,{size:"huge",label:"Reloading..."});case"":case void 0:return x.jsx(gZ,{});default:return x.jsx(lZ,{})}},[r]);return x.jsxs(x.Fragment,{children:[x.jsx(yQ,{}),x.jsxs("div",{className:t.body,children:[x.jsx("main",{className:t.content,children:x.jsx(w.Suspense,{fallback:x.jsx(Ac,{}),children:o})}),x.jsx(LY,{})]}),x.jsx(BX,{})]})}const fZ=w.lazy(()=>Ts(()=>import("./index-mgGYDFjk.js"),__vite__mapDeps([0,1,2]))),hZ=w.lazy(()=>Ts(()=>import("./index-FHlRPSTq.js"),__vite__mapDeps([3,4,5]))),pZ=w.lazy(()=>Ts(()=>import("./index-preb04bd.js"),__vite__mapDeps([6,4]))),gZ=w.lazy(()=>Ts(()=>import("./Gallery-EwpTpjjx.js"),__vite__mapDeps([7,1,5])));jm.createRoot(document.getElementById(n0.Name)).render(x.jsx(DT,{theme:zO,children:x.jsx(GV,{children:x.jsx(fN,{instance:an,children:x.jsxs(jY,{children:[x.jsx(hI,{pauseOnHover:!0}),x.jsx(dZ,{})]})})})}));export{Ab as $,Yf as A,No as B,AX as C,yn as D,Ai as E,pn as F,HT as G,mn as H,qT as I,YO as J,LT as K,sa as L,ra as M,mr as N,bt as O,QO as P,ee as Q,ke as R,C2 as S,p2 as T,ve as U,mZ as V,H3 as W,Ee as X,Kz as Y,th as Z,H as _,ae as a,uz as a0,kb as a1,Qf as a2,Kl as a3,Is as a4,vZ as a5,aa as a6,Ch as a7,rQ as a8,Ms as a9,tq as aA,Cy as aB,cQ as aC,I3 as aD,E3 as aE,l2 as aF,_y as aG,c2 as aH,Wl as aI,Ry as aJ,X9 as aK,iI as aL,aI as aM,zm as aN,nI as aO,Em as aP,la as aQ,W9 as aR,Gn as aS,Z9 as aT,bn as aU,jl as aV,Wf as aW,sQ as aX,je as aY,Os as aa,Io as ab,B2 as ac,PA as ad,ud as ae,sI as af,Pc as ag,Bi as ah,Xa as ai,wZ as aj,bZ as ak,yZ as al,kI as am,SI as an,CI as ao,O3 as ap,_I as aq,Vt as ar,M3 as as,hl as at,ws as au,By as av,Py as aw,H2 as ax,Ny as ay,x3 as az,ge as b,vh as c,x as d,Sl as e,lQ as f,we as g,rc as h,Wr as i,q as j,Ce as k,Qi as l,j as m,Ds as n,SZ as o,Cq as p,EX as q,w as r,ls as s,Me as t,gr as u,As as v,wb as w,Rs as x,Mn as y,_b as z}; +*/var y_=Object.getOwnPropertySymbols,zQ=Object.prototype.hasOwnProperty,MQ=Object.prototype.propertyIsEnumerable;function OQ(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function DQ(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var jQ=DQ()?Object.assign:function(t,e){for(var r,o=OQ(t),n,i=1;i=0||Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},WQ=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},pv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},VQ=function(e){var r=ts(e,me.TITLE),o=ts(e,Cl.TITLE_TEMPLATE);if(o&&r)return o.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var n=ts(e,Cl.DEFAULT_TITLE);return r||n||void 0},GQ=function(e){return ts(e,Cl.ON_CHANGE_CLIENT_STATE)||function(){}},eg=function(e,r){return r.filter(function(o){return typeof o[e]<"u"}).map(function(o){return o[e]}).reduce(function(o,n){return sr({},o,n)},{})},XQ=function(e,r){return r.filter(function(o){return typeof o[me.BASE]<"u"}).map(function(o){return o[me.BASE]}).reverse().reduce(function(o,n){if(!o.length)for(var i=Object.keys(n),a=0;a=0;o--){var n=e[o];if(n.hasOwnProperty(r))return n[r]}return null},YQ=function(e){return{baseTag:XQ([$e.HREF,$e.TARGET],e),bodyAttributes:eg(ji.BODY,e),defer:ts(e,Cl.DEFER),encode:ts(e,Cl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:eg(ji.HTML,e),linkTags:ec(me.LINK,[$e.REL,$e.HREF],e),metaTags:ec(me.META,[$e.NAME,$e.CHARSET,$e.HTTPEQUIV,$e.PROPERTY,$e.ITEM_PROP],e),noscriptTags:ec(me.NOSCRIPT,[$e.INNER_HTML],e),onChangeClientState:GQ(e),scriptTags:ec(me.SCRIPT,[$e.SRC,$e.INNER_HTML],e),styleTags:ec(me.STYLE,[$e.CSS_TEXT],e),title:VQ(e),titleAttributes:eg(ji.TITLE,e)}},gv=function(){var t=Date.now();return function(e){var r=Date.now();r-t>16?(t=r,e(r)):setTimeout(function(){gv(e)},0)}}(),k_=function(e){return clearTimeout(e)},QQ=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||gv:global.requestAnimationFrame||gv,ZQ=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||k_:global.cancelAnimationFrame||k_,JQ=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},tc=null,eZ=function(e){tc&&ZQ(tc),e.defer?tc=QQ(function(){__(e,function(){tc=null})}):(__(e),tc=null)},__=function(e,r){var o=e.baseTag,n=e.bodyAttributes,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,c=e.noscriptTags,l=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;mv(me.BODY,n),mv(me.HTML,i),tZ(f,h);var p={baseTag:wa(me.BASE,o),linkTags:wa(me.LINK,a),metaTags:wa(me.META,s),noscriptTags:wa(me.NOSCRIPT,c),scriptTags:wa(me.SCRIPT,u),styleTags:wa(me.STYLE,d)},g={},y={};Object.keys(p).forEach(function(v){var m=p[v],b=m.newTags,k=m.oldTags;b.length&&(g[v]=b),k.length&&(y[v]=p[v].oldTags)}),r&&r(),l(e,g,y)},MA=function(e){return Array.isArray(e)?e.join(""):e},tZ=function(e,r){typeof e<"u"&&document.title!==e&&(document.title=MA(e)),mv(me.TITLE,r)},mv=function(e,r){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(no),i=n?n.split(","):[],a=[].concat(i),s=Object.keys(r),c=0;c=0;f--)o.removeAttribute(a[f]);i.length===a.length?o.removeAttribute(no):o.getAttribute(no)!==s.join(",")&&o.setAttribute(no,s.join(","))}},wa=function(e,r){var o=document.head||document.querySelector(me.HEAD),n=o.querySelectorAll(e+"["+no+"]"),i=Array.prototype.slice.call(n),a=[],s=void 0;return r&&r.length&&r.forEach(function(c){var l=document.createElement(e);for(var u in c)if(c.hasOwnProperty(u))if(u===$e.INNER_HTML)l.innerHTML=c.innerHTML;else if(u===$e.CSS_TEXT)l.styleSheet?l.styleSheet.cssText=c.cssText:l.appendChild(document.createTextNode(c.cssText));else{var d=typeof c[u]>"u"?"":c[u];l.setAttribute(u,d)}l.setAttribute(no,"true"),i.some(function(f,h){return s=h,l.isEqualNode(f)})?i.splice(s,1):a.push(l)}),i.forEach(function(c){return c.parentNode.removeChild(c)}),a.forEach(function(c){return o.appendChild(c)}),{oldTags:i,newTags:a}},OA=function(e){return Object.keys(e).reduce(function(r,o){var n=typeof e[o]<"u"?o+'="'+e[o]+'"':""+o;return r?r+" "+n:n},"")},rZ=function(e,r,o,n){var i=OA(o),a=MA(r);return i?"<"+e+" "+no+'="true" '+i+">"+pv(a,n)+"":"<"+e+" "+no+'="true">'+pv(a,n)+""},oZ=function(e,r,o){return r.reduce(function(n,i){var a=Object.keys(i).filter(function(l){return!(l===$e.INNER_HTML||l===$e.CSS_TEXT)}).reduce(function(l,u){var d=typeof i[u]>"u"?u:u+'="'+pv(i[u],o)+'"';return l?l+" "+d:d},""),s=i.innerHTML||i.cssText||"",c=qQ.indexOf(e)===-1;return n+"<"+e+" "+no+'="true" '+a+(c?"/>":">"+s+"")},"")},DA=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[Cf[n]||n]=e[n],o},r)},nZ=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[LQ[n]||n]=e[n],o},r)},iZ=function(e,r,o){var n,i=(n={key:r},n[no]=!0,n),a=DA(o,i);return[Kt.createElement(me.TITLE,a,r)]},aZ=function(e,r){return r.map(function(o,n){var i,a=(i={key:n},i[no]=!0,i);return Object.keys(o).forEach(function(s){var c=Cf[s]||s;if(c===$e.INNER_HTML||c===$e.CSS_TEXT){var l=o.innerHTML||o.cssText;a.dangerouslySetInnerHTML={__html:l}}else a[c]=o[s]}),Kt.createElement(e,a)})},Lo=function(e,r,o){switch(e){case me.TITLE:return{toComponent:function(){return iZ(e,r.title,r.titleAttributes)},toString:function(){return rZ(e,r.title,r.titleAttributes,o)}};case ji.BODY:case ji.HTML:return{toComponent:function(){return DA(r)},toString:function(){return OA(r)}};default:return{toComponent:function(){return aZ(e,r)},toString:function(){return oZ(e,r,o)}}}},jA=function(e){var r=e.baseTag,o=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,c=e.noscriptTags,l=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:Lo(me.BASE,r,n),bodyAttributes:Lo(ji.BODY,o,n),htmlAttributes:Lo(ji.HTML,i,n),link:Lo(me.LINK,a,n),meta:Lo(me.META,s,n),noscript:Lo(me.NOSCRIPT,c,n),script:Lo(me.SCRIPT,l,n),style:Lo(me.STYLE,u,n),title:Lo(me.TITLE,{title:f,titleAttributes:h},n)}},sZ=function(e){var r,o;return o=r=function(n){KQ(i,n);function i(){return UQ(this,i),WQ(this,n.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!NQ(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,c){if(!c)return null;switch(s.type){case me.SCRIPT:case me.NOSCRIPT:return{innerHTML:c};case me.STYLE:return{cssText:c}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var c,l=s.child,u=s.arrayTypeChildren,d=s.newChildProps,f=s.nestedChildren;return sr({},u,(c={},c[l.type]=[].concat(u[l.type]||[],[sr({},d,this.mapNestedChildrenToProps(l,f))]),c))},i.prototype.mapObjectTypeChildren=function(s){var c,l,u=s.child,d=s.newProps,f=s.newChildProps,h=s.nestedChildren;switch(u.type){case me.TITLE:return sr({},d,(c={},c[u.type]=h,c.titleAttributes=sr({},f),c));case me.BODY:return sr({},d,{bodyAttributes:sr({},f)});case me.HTML:return sr({},d,{htmlAttributes:sr({},f)})}return sr({},d,(l={},l[u.type]=sr({},f),l))},i.prototype.mapArrayTypeChildrenToProps=function(s,c){var l=sr({},c);return Object.keys(s).forEach(function(u){var d;l=sr({},l,(d={},d[u]=s[u],d))}),l},i.prototype.warnOnInvalidChildren=function(s,c){return!0},i.prototype.mapChildrenToProps=function(s,c){var l=this,u={};return Kt.Children.forEach(s,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,p=w_(f,["children"]),g=nZ(p);switch(l.warnOnInvalidChildren(d,h),d.type){case me.LINK:case me.META:case me.NOSCRIPT:case me.SCRIPT:case me.STYLE:u=l.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:g,nestedChildren:h});break;default:c=l.mapObjectTypeChildren({child:d,newProps:c,newChildProps:g,nestedChildren:h});break}}}),c=this.mapArrayTypeChildrenToProps(u,c),c},i.prototype.render=function(){var s=this.props,c=s.children,l=w_(s,["children"]),u=sr({},l);return c&&(u=this.mapChildrenToProps(c,u)),Kt.createElement(e,u)},$Q(i,null,[{key:"canUseDOM",set:function(s){e.canUseDOM=s}}]),i}(Kt.Component),r.propTypes={base:Ue.object,bodyAttributes:Ue.object,children:Ue.oneOfType([Ue.arrayOf(Ue.node),Ue.node]),defaultTitle:Ue.string,defer:Ue.bool,encodeSpecialCharacters:Ue.bool,htmlAttributes:Ue.object,link:Ue.arrayOf(Ue.object),meta:Ue.arrayOf(Ue.object),noscript:Ue.arrayOf(Ue.object),onChangeClientState:Ue.func,script:Ue.arrayOf(Ue.object),style:Ue.arrayOf(Ue.object),title:Ue.string,titleAttributes:Ue.object,titleTemplate:Ue.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=e.peek,r.rewind=function(){var n=e.rewind();return n||(n=jA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n},o},cZ=function(){return null},lZ=EQ(YQ,eZ,jA)(cZ),vv=sZ(lZ);vv.renderStatic=vv.rewind;function uZ(){const{Rep:t}=Ds();return setTimeout(()=>t("/"),3e3),x.jsxs(x.Fragment,{children:[x.jsxs(vv,{children:[x.jsxs("title",{children:["Redirect - Not Found - ",n0.Name]}),x.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),x.jsx(Ac,{size:"huge",label:"Redirecting..."})]})}const dZ=Wr({body:{...Qi,minWidth:"1024px",position:"absolute",marginTop:`${$y}px`,width:"100%",minHeight:"-webkit-fill-available",justifyContent:"space-between",backgroundColor:Me.colorNeutralBackground2},content:{...Qi,maxWidth:Ky,width:"-webkit-fill-available",marginLeft:"auto",marginRight:"auto",paddingLeft:Me.spacingHorizontalM,paddingRight:Me.spacingHorizontalM,paddingTop:Me.spacingVerticalXXXL}});function fZ(){const t=dZ(),{Paths:e}=Ds(),r=e.at(0),o=w.useMemo(()=>{switch(r){case"Product":return x.jsx(hZ,{});case"Admin":return x.jsx(pZ,{});case"History":return x.jsx(gZ,{});case"Login":return x.jsx(Ac,{size:"huge",label:"Login Redirecting..."});case"Reload":return x.jsx(Ac,{size:"huge",label:"Reloading..."});case"":case void 0:return x.jsx(mZ,{});default:return x.jsx(uZ,{})}},[r]);return x.jsxs(x.Fragment,{children:[x.jsx(wQ,{}),x.jsxs("div",{className:t.body,children:[x.jsx("main",{className:t.content,children:x.jsx(w.Suspense,{fallback:x.jsx(Ac,{}),children:o})}),x.jsx(qY,{})]}),x.jsx(NX,{})]})}const hZ=w.lazy(()=>Ts(()=>import("./index-B8Uj5x3C.js"),__vite__mapDeps([0,1,2]))),pZ=w.lazy(()=>Ts(()=>import("./index-70LJK8k2.js"),__vite__mapDeps([3,4,5]))),gZ=w.lazy(()=>Ts(()=>import("./index-RTZb5SHW.js"),__vite__mapDeps([6,4]))),mZ=w.lazy(()=>Ts(()=>import("./index-SzMF7gre.js"),__vite__mapDeps([7,5,1])));Dm.createRoot(document.getElementById(n0.Name)).render(x.jsx(jT,{theme:MO,children:x.jsx(XV,{children:x.jsx(hN,{instance:an,children:x.jsxs(FY,{children:[x.jsx(pI,{pauseOnHover:!0}),x.jsx(fZ,{})]})})})}));export{Ab as $,Xf as A,No as B,RX as C,yn as D,Ai as E,pn as F,UT as G,mn as H,HT as I,QO as J,qT as K,sa as L,ra as M,mr as N,bt as O,ZO as P,ee as Q,ke as R,T2 as S,g2 as T,ve as U,vZ as V,U3 as W,Ee as X,Wz as Y,eh as Z,H as _,ae as a,dz as a0,kb as a1,Yf as a2,$l as a3,Is as a4,bZ as a5,aa as a6,Sh as a7,oQ as a8,Ms as a9,rq as aA,Cy as aB,lQ as aC,A3 as aD,I3 as aE,u2 as aF,_y as aG,l2 as aH,Kl as aI,Ry as aJ,Y9 as aK,aI as aL,sI as aM,Nm as aN,iI as aO,xm as aP,la as aQ,V9 as aR,Gn as aS,J9 as aT,bn as aU,Dl as aV,Kf as aW,cQ as aX,je as aY,Os as aa,Io as ab,N2 as ac,BA as ad,ld as ae,cI as af,Pc as ag,Bi as ah,Xa as ai,kZ as aj,yZ as ak,wZ as al,_I as am,CI as an,TI as ao,D3 as ap,SI as aq,Vt as ar,O3 as as,hl as at,ws as au,By as av,Py as aw,U2 as ax,Ny as ay,E3 as az,ge as b,mh as c,x as d,Sl as e,uQ as f,we as g,rc as h,Wr as i,q as j,Ce as k,Qi as l,j as m,Ds as n,CZ as o,Tq as p,IX as q,w as r,ls as s,Me as t,gr as u,As as v,wb as w,Rs as x,Mn as y,_b as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-mgGYDFjk.js","assets/Title3-J-L77yUX.js","assets/index-scunr7sf.css","assets/index-FHlRPSTq.js","assets/Columns-1o5Vx9nI.js","assets/toFinite-ZQ51RADL.js","assets/index-preb04bd.js","assets/Gallery-EwpTpjjx.js"] + __vite__mapDeps.viteFileDeps = ["assets/index-B8Uj5x3C.js","assets/Title3-K9gl0VnY.js","assets/index-scunr7sf.css","assets/index-70LJK8k2.js","assets/Columns-OZmivVgq.js","assets/toFinite-ZQ51RADL.js","assets/index-RTZb5SHW.js","assets/index-SzMF7gre.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } \ No newline at end of file diff --git a/assets/index-FHlRPSTq.js b/assets/index-70LJK8k2.js similarity index 99% rename from assets/index-FHlRPSTq.js rename to assets/index-70LJK8k2.js index cfa3f58a..5111a2d8 100644 --- a/assets/index-FHlRPSTq.js +++ b/assets/index-70LJK8k2.js @@ -1 +1 @@ -import{v as cr,w as lr,x as _,y as he,A as Qe,z as Ie,E as Ye,D as Or,G as qr,I as Dr,P as Ir,J as Pr,K as Ar,r as x,M as Tr,N as Re,a as ve,g as dr,O as ae,Q as ie,R as G,j as W,m as te,_ as ce,b as Ge,u as Ue,U as Le,V as Er,W as Rr,X as ur,Y as Hr,Z as Fr,$ as Mr,a0 as Vr,a1 as _r,a2 as $r,a3 as Gr,a4 as Ur,a5 as Lr,a6 as Xr,c as Kr,i as R,L as D,l as oe,a7 as E,a8 as y,d as e,a9 as A,aa as T,ab as ne,B as g,F as Y,ac as Wr,ad as J,ae as w,af as B,ag as S,ah as X,ai as le,aj as je,ak as Z,t as U,n as fe,k as $,al as fr,am as pr,an as hr,ao as mr,ap as de,aq as xr,H as Xe,ar as Ke,as as ke,at as ye,au as Q,av as we,aw as Ce,ax as ze,ay as Be,S as br,az as Se,aA as gr,C as Jr,aB as Qr,aC as vr,aD as Yr,aE as Zr,aF as jr,aG as kr,aH as yr,aI as et,aJ as rt,aK as Ze,aL as tt,aM as ot,aN as er,aO as nt,aP as st}from"./index-uoLhYpcj.js";import{O as at,a as it,H as ct}from"./Columns-1o5Vx9nI.js";import{t as lt}from"./toFinite-ZQ51RADL.js";const L=cr({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});L.Provider;const K=cr({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});K.Provider;function dt(r){const{activeOption:n,appearance:o,focusVisible:t,open:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u,setOpen:d,size:l}=r;return{combobox:{activeOption:n,appearance:o,focusVisible:t,open:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u,setOpen:d,size:l}}}function ut(r){const n=lr(L),{activeOption:o,focusVisible:t,multiselect:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u}=r,d=_(L,f=>f.registerOption);return{listbox:{activeOption:o,focusVisible:t,multiselect:s,registerOption:n?d:c,selectedOptions:a,selectOption:i,setActiveOption:u}}}function be(r,n={}){const{open:o=!0,multiselect:t=!1}=n,s=r.key,{altKey:c,ctrlKey:a,key:i,metaKey:u}=r;return i.length===1&&s!==he&&!c&&!a&&!u?"Type":o?s===Ie&&c||s===Ye||!t&&s===he?"CloseSelect":t&&s===he?"Select":s===Or?"Close":s===Qe?"Next":s===Ie?"Previous":s===qr?"First":s===Dr?"Last":s===Ir?"PageUp":s===Pr?"PageDown":s===Ar?"Tab":"None":s===Qe||s===Ie||s===Ye||s===he?"Open":"None"}function wr(r,n,o){switch(r){case"Next":return Math.min(o,n+1);case"Previous":return Math.max(0,n-1);case"First":return 0;case"Last":return o;case"PageDown":return Math.min(o,n+10);case"PageUp":return Math.max(0,n-10);default:return n}}const Cr=()=>{const r=x.useRef([]),n=x.useMemo(()=>({getCount:()=>r.current.length,getOptionAtIndex:d=>{var l;return(l=r.current[d])===null||l===void 0?void 0:l.option},getIndexOfId:d=>r.current.findIndex(l=>l.option.id===d),getOptionById:d=>{const l=r.current.find(p=>p.option.id===d);return l?.option},getOptionsMatchingText:d=>r.current.filter(l=>d(l.option.text)).map(l=>l.option),getOptionsMatchingValue:d=>r.current.filter(l=>d(l.option.value)).map(l=>l.option)}),[]),o=x.useCallback((t,s)=>{var c;const a=r.current.findIndex(i=>!i.element||!s?!1:i.option.id===t.id?!0:i.element.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING);if(((c=r.current[a])===null||c===void 0?void 0:c.option.id)!==t.id){const i={element:s,option:t};a===-1?r.current=[...r.current,i]:r.current.splice(a,0,i)}return()=>{r.current=r.current.filter(i=>i.option.id!==t.id)}},[]);return{...n,options:r.current.map(t=>t.option),registerOption:o}};function ft(r){const{activeOption:n}=r,o=x.useRef(null);return x.useEffect(()=>{if(o.current&&n&&Tr()){const t=o.current.querySelector(`#${n.id}`);if(!t)return;const{offsetHeight:s,offsetTop:c}=t,{offsetHeight:a,scrollTop:i}=o.current,u=ci+a,l=2;u?o.current.scrollTo(0,c-l):d&&o.current.scrollTo(0,c-a+s+l)}},[n]),o}const zr=r=>{const{defaultSelectedOptions:n,multiselect:o,onOptionSelect:t}=r,[s,c]=Re({state:r.selectedOptions,defaultState:n,initialState:[]}),a=x.useCallback((u,d)=>{if(d.disabled)return;let l=[d.value];if(o){const p=s.findIndex(f=>f===d.value);p>-1?l=[...s.slice(0,p),...s.slice(p+1)]:l=[...s,d.value]}c(l),t?.(u,{optionValue:d.value,optionText:d.text,selectedOptions:l})},[t,o,s,c]);return{clearSelection:u=>{c([]),t?.(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:a,selectedOptions:s}},pt=(r,n)=>{const{multiselect:o}=r,t=Cr(),{getCount:s,getOptionAtIndex:c,getIndexOfId:a}=t,{clearSelection:i,selectedOptions:u,selectOption:d}=zr(r),[l,p]=x.useState(),[f,m]=x.useState(!1),z=O=>{const F=be(O,{open:!0}),j=s()-1,C=l?a(l.id):-1;let P=C;switch(F){case"Select":case"CloseSelect":l&&d(O,l);break;default:P=wr(F,C,j)}P!==C&&(O.preventDefault(),p(c(P)),m(!0))},v=O=>{m(!1)},b=lr(L),N=_(L,O=>O.activeOption),k=_(L,O=>O.focusVisible),H=_(L,O=>O.selectedOptions),V=_(L,O=>O.selectOption),I=_(L,O=>O.setActiveOption),h=b?{activeOption:N,focusVisible:k,selectedOptions:H,selectOption:V,setActiveOption:I}:{activeOption:l,focusVisible:f,selectedOptions:u,selectOption:d,setActiveOption:p},q={components:{root:"div"},root:ve(dr("div",{ref:n,role:o?"menu":"listbox","aria-activedescendant":b?void 0:l?.id,"aria-multiselectable":o,tabIndex:0,...r}),{elementType:"div"}),multiselect:o,clearSelection:i,...t,...h},M=ft(q);return q.root.ref=ae(q.root.ref,M),q.root.onKeyDown=ie(G(q.root.onKeyDown,z)),q.root.onMouseOver=ie(G(q.root.onMouseOver,v)),q},ht=(r,n)=>W(K.Provider,{value:n.listbox,children:W(r.root,{})}),mt={root:"fui-Listbox"},xt=ce({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),bt=r=>{const n=xt();return r.root.className=te(mt.root,n.root,r.root.className),r},We=x.forwardRef((r,n)=>{const o=pt(r,n),t=ut(o);return bt(o),Ge("useListboxStyles_unstable")(o),ht(o,t)});We.displayName="Listbox";function gt(r,n){if(r!==void 0)return r;let o="",t=!1;return x.Children.forEach(n,s=>{typeof s=="string"?o+=s:t=!0}),t&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),o}const vt=(r,n)=>{const{children:o,disabled:t,text:s,value:c}=r,a=x.useRef(null),i=gt(s,o),u=c??i,d=Ue("fluent-option",r.id),l=x.useMemo(()=>({id:d,disabled:t,text:i,value:u}),[d,t,i,u]),p=_(K,h=>h.focusVisible),f=_(K,h=>h.multiselect),m=_(K,h=>h.registerOption),z=_(K,h=>{const q=h.selectedOptions;return!!u&&!!q.find(M=>M===u)}),v=_(K,h=>h.selectOption),b=_(K,h=>h.setActiveOption),N=_(L,h=>h.setOpen),k=_(K,h=>{var q,M;return((q=h.activeOption)===null||q===void 0?void 0:q.id)!==void 0&&((M=h.activeOption)===null||M===void 0?void 0:M.id)===d});let H=x.createElement(Er,null);f&&(H=z?x.createElement(Rr,null):"");const V=h=>{var q;if(t){h.preventDefault();return}b(l),f||N?.(h,!1),v(h,l),(q=r.onClick)===null||q===void 0||q.call(r,h)};x.useEffect(()=>{if(d&&a.current)return m(l,a.current)},[d,l,m]);const I=f?{role:"menuitemcheckbox","aria-checked":z}:{role:"option","aria-selected":z};return{components:{root:"div",checkIcon:"span"},root:ve(dr("div",{ref:ae(n,a),"aria-disabled":t?"true":void 0,id:d,...I,...r,onClick:V}),{elementType:"div"}),checkIcon:Le(r.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:H},elementType:"span"}),active:k,disabled:t,focusVisible:p,multiselect:f,selected:z}},jt=r=>ur(r.root,{children:[r.checkIcon&&W(r.checkIcon,{}),r.root.children]}),rr={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},kt=ce({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),yt=r=>{const{active:n,disabled:o,focusVisible:t,multiselect:s,selected:c}=r,a=kt();return r.root.className=te(rr.root,a.root,n&&t&&a.active,o&&a.disabled,c&&a.selected,r.root.className),r.checkIcon&&(r.checkIcon.className=te(rr.checkIcon,a.checkIcon,s&&a.multiselectCheck,c&&a.selectedCheck,c&&s&&a.selectedMultiselectCheck,o&&a.checkDisabled,o&&s&&a.multiselectCheckDisabled,r.checkIcon.className)),r},ue=x.forwardRef((r,n)=>{const o=vt(r,n);return yt(o),Ge("useOptionStyles_unstable")(o),jt(o)});ue.displayName="Option";const wt=r=>{const{appearance:n="outline",children:o,editable:t=!1,inlinePopup:s=!1,mountNode:c=void 0,multiselect:a,onOpenChange:i,size:u="medium"}=r,d=Cr(),{getOptionAtIndex:l,getOptionsMatchingValue:p}=d,[f,m]=x.useState(),[z,v]=x.useState(!1),[b,N]=x.useState(!1),k=x.useRef(!1),H=zr(r),{selectedOptions:V}=H,I=Hr(),[h,q]=Re({state:r.value,initialState:void 0}),M=x.useMemo(()=>{if(h!==void 0)return h;if(I&&r.defaultValue!==void 0)return r.defaultValue;const C=p(P=>V.includes(P)).map(P=>P.text);return a?t?"":C.join(", "):C[0]},[h,t,p,a,r.defaultValue,V]),[O,F]=Re({state:r.open,defaultState:r.defaultOpen,initialState:!1}),j=x.useCallback((C,P)=>{i?.(C,{open:P}),F(P)},[i,F]);return x.useEffect(()=>{if(O&&!f)if(!a&&V.length>0){const C=p(P=>P===V[0]).pop();C&&m(C)}else m(l(0));else O||m(void 0)},[O,o]),{...d,...H,activeOption:f,appearance:n,focusVisible:z,hasFocus:b,ignoreNextBlur:k,inlinePopup:s,mountNode:c,open:O,setActiveOption:m,setFocusVisible:v,setHasFocus:N,setOpen:j,setValue:q,size:u,value:M,multiselect:a}};function Ct(r){const{positioning:n}=r,t={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...Fr(n)},{targetRef:s,containerRef:c}=Mr(t);return[c,s]}function zt(r,n,o){const{state:{multiselect:t},triggerRef:s,defaultProps:c}=o,a=Ue("fluent-listbox",Vr(r)?r.id:void 0),i=Le(r,{renderByDefault:!0,elementType:We,defaultProps:{id:a,multiselect:t,tabIndex:void 0,...c}}),u=ie(G(p=>{p.preventDefault()},i?.onMouseDown)),d=ie(G(p=>{var f;p.preventDefault(),(f=s.current)===null||f===void 0||f.focus()},i?.onClick)),l=ae(i?.ref,n);return i&&(i.ref=l,i.onMouseDown=u,i.onClick=d),i}function Bt(r,n,o){const{state:{activeOption:t,getCount:s,getIndexOfId:c,getOptionAtIndex:a,open:i,selectOption:u,setActiveOption:d,setFocusVisible:l,setOpen:p,multiselect:f,setHasFocus:m},defaultProps:z,elementType:v}=o,b=ve(r,{defaultProps:{type:"text","aria-expanded":i,"aria-activedescendant":i?t?.id:void 0,role:"combobox",...typeof z=="object"&&z},elementType:v}),N=x.useRef(null);return b.ref=ae(N,b.ref,n),b.onBlur=G(k=>{p(k,!1),m(!1)},b.onBlur),b.onFocus=G(k=>{k.target===k.currentTarget&&m(!0)},b.onFocus),b.onClick=G(k=>{p(k,!i)},b.onClick),b.onKeyDown=G(k=>{const H=be(k,{open:i,multiselect:f}),V=s()-1,I=t?c(t.id):-1;let h=I;switch(H){case"Open":k.preventDefault(),l(!0),p(k,!0);break;case"Close":k.stopPropagation(),k.preventDefault(),p(k,!1);break;case"CloseSelect":!f&&!t?.disabled&&p(k,!1);case"Select":t&&u(k,t),k.preventDefault();break;case"Tab":!f&&t&&u(k,t);break;default:h=wr(H,I,V)}h!==I&&(k.preventDefault(),d(a(h)),l(!0))},b.onKeyDown),b.onMouseOver=G(k=>{l(!1)},b.onMouseOver),b}function St(r,n,o){const{state:{open:t,value:s,activeOption:c,selectOption:a,setValue:i,setActiveOption:u,setFocusVisible:d,multiselect:l,selectedOptions:p,clearSelection:f,getOptionsMatchingText:m,getIndexOfId:z,setOpen:v},freeform:b,defaultProps:N}=o,k=j=>{!t&&!b&&(s&&c&&s.trim().toLowerCase()===c?.text.toLowerCase()&&a(j,c),i(void 0))},H=j=>{const C=j?.trim().toLowerCase();if(!C||C.length===0)return;const pe=m(qe=>qe.toLowerCase().indexOf(C)===0);if(pe.length>1&&c){const qe=z(c.id),De=pe.find(Nr=>z(Nr.id)>=qe);return De??pe[0]}var Oe;return(Oe=pe[0])!==null&&Oe!==void 0?Oe:void 0},V=j=>{const C=j.target.value;i(C);const P=H(C);u(P),d(!0),!l&&p.length===1&&(C.length<1||!P)&&f(j)},I=Bt(r,n,{state:o.state,defaultProps:N,elementType:"input"});I.onChange=G(I.onChange,V),I.onBlur=G(I.onBlur,k);const[h,q]=x.useState(!1),M=x.useRef(!1),O=I.onKeyDown,F=ie(j=>{!t&&be(j)==="Type"&&v(j,!0),j.key===_r||j.key===$r?q(!0):q(!1);const C=be(j,{open:t,multiselect:l});if(C==="Type"?M.current=!0:(C==="Open"&&j.key!==" "||C==="Next"||C==="Previous"||C==="First"||C==="Last"||C==="PageUp"||C==="PageDown")&&(M.current=!1),b&&(M.current||!t)&&j.key===" "){var P;r==null||(P=r.onKeyDown)===null||P===void 0||P.call(r,j);return}O?.(j)});return I.onKeyDown=F,h&&(I["aria-activedescendant"]=void 0),I}const Nt=(r,n)=>{r=Gr(r,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=wt({...r,editable:!0}),{open:t,selectOption:s,setOpen:c,setValue:a,value:i,hasFocus:u}=o,[d,l]=Ct(r),{disabled:p,freeform:f,inlinePopup:m}=r,z=Ue("combobox-"),{primary:v,root:b}=Ur({props:r,primarySlotTagName:"input",excludedPropNames:["children","size"]});o.selectOption=(F,j)=>{a(void 0),s(F,j)},o.setOpen=(F,j)=>{p||(!j&&!f&&a(void 0),c(F,j))};const N=x.useRef(null),k=zt(r.listbox,d,{state:o,triggerRef:N,defaultProps:{children:r.children}});var H;const V=St((H=r.input)!==null&&H!==void 0?H:{},ae(N,n),{state:o,freeform:f,defaultProps:{type:"text",value:i??"",...v}}),I=ve(r.root,{defaultProps:{"aria-owns":!m&&t?k?.id:void 0,...b},elementType:"div"});I.ref=ae(I.ref,l);const h={components:{root:"div",input:"input",expandIcon:"span",listbox:We},root:I,input:V,listbox:t||u?k:void 0,expandIcon:Le(r.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":t,children:x.createElement(Lr,null),role:"button"},elementType:"span"}),...o},{onMouseDown:q}=h.expandIcon||{},M=ie(G(q,F=>{var j;F.preventDefault(),h.setOpen(F,!h.open),(j=N.current)===null||j===void 0||j.focus()}));if(h.expandIcon){h.expandIcon.onMouseDown=M;const F=h.expandIcon["aria-label"]||h.expandIcon["aria-labelledby"],j="Open";if(!F)if(r["aria-labelledby"]){var O;const C=(O=h.expandIcon.id)!==null&&O!==void 0?O:`${z}-chevron`,P=`${C} ${h.input["aria-labelledby"]}`;h.expandIcon["aria-label"]=j,h.expandIcon.id=C,h.expandIcon["aria-labelledby"]=P}else r["aria-label"]?h.expandIcon["aria-label"]=`${j} ${r["aria-label"]}`:h.expandIcon["aria-label"]=j}return h},Ot=(r,n)=>W(r.root,{children:ur(L.Provider,{value:n.combobox,children:[W(r.input,{}),r.expandIcon&&W(r.expandIcon,{}),r.listbox&&(r.inlinePopup?W(r.listbox,{}):W(Xr,{mountNode:r.mountNode,children:W(r.listbox,{})}))]})}),me={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},qt=ce({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),Dt=ce({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),It=ce({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Pt=r=>{const{appearance:n,open:o,size:t}=r,s=`${r.input["aria-invalid"]}`=="true",c=r.input.disabled,a=qt(),i=It(),u=Dt();return r.root.className=te(me.root,a.root,a[n],a[t],!c&&n==="outline"&&a.outlineInteractive,s&&n!=="underline"&&a.invalid,s&&n==="underline"&&a.invalidUnderline,c&&a.disabled,r.root.className),r.input.className=te(me.input,u.input,u[t],c&&u.disabled,r.input.className),r.listbox&&(r.listbox.className=te(me.listbox,a.listbox,!o&&a.listboxCollapsed,r.listbox.className)),r.expandIcon&&(r.expandIcon.className=te(me.expandIcon,i.icon,i[t],c&&i.disabled,r.expandIcon.className)),r},Ne=x.forwardRef((r,n)=>{const o=Nt(r,n),t=dt(o);return Pt(o),Ge("useComboboxStyles_unstable")(o),Ot(o,t)});Ne.displayName="Combobox";const At={root:"fui-Subtitle1"},Tt=ce({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),Je=Kr({useStyles:Tt,className:At.root,displayName:"Subtitle1"}),Et=R({body:{...oe,alignItems:"flex-start"}}),Rt=new D("Admin","Order","Detail","Action");function Ht({OrderId:r,Status:n,Refresh:o}){const t=Et(),{dispatch:s,dispatchToast:c}=E(Rt),{run:a}=y.Order.Post.useAccept({manual:!0,onError(i,u){s({Message:"Failed Accept Order",Request:u,Error:i})},onSuccess(){c(e.jsx(A,{children:e.jsx(T,{children:"Order Accepted"})}),{intent:"success"}),o()}});switch(n){case"Processing":case"Shipping":case"Finished":case"Cancelled":case"Returning":return null}return e.jsx(ne,{label:"Action",size:"large",children:e.jsx("div",{className:t.body,children:n==="Pending"&&e.jsx(g,{appearance:"subtle",onClick:()=>a(r),children:"Accept Order"})})})}const Ft=R({body:{...Y,justifyContent:"space-between"}}),Mt=new D("Admin","Order","Detail","Append");function Vt({OrderId:r,Refresh:n}){const o=Ft(),[t,s]=x.useState(),{dispatch:c,dispatchToast:a}=E(Mt),{run:i}=y.Order.Post.useAppend({manual:!0,onError(d,l){c({Message:"Failed Append Comment",Request:l,Error:d})},onSuccess(){a(e.jsx(A,{children:e.jsx(T,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:u}=y.Order.Post.useClose({manual:!0,onError(d,l){c({Message:"Failed Close Order",Request:l,Error:d})},onSuccess(){a(e.jsx(A,{children:e.jsx(T,{children:"Order Closed"})}),{intent:"success"}),n()}});return e.jsxs(e.Fragment,{children:[e.jsx(ne,{label:"Append",size:"large",children:e.jsx(Wr,{value:t,onChange:(d,l)=>s(l.value),maxLength:1e3})}),e.jsxs("div",{className:o.body,children:[e.jsx(g,{onClick:()=>u(r,t),children:"Force Close with Reason"}),e.jsx(g,{appearance:"primary",onClick:()=>i(r,t),children:"Add Comment"})]})]})}const tr=R({ten:{flexBasis:"10%",flexGrow:0}}),_t=[w({columnId:"Product",renderHeaderCell(){return e.jsx(B,{children:"Name"})},renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell(){return e.jsx(B,{children:"Type"})},renderCell(r){return e.jsx(S,{children:Object.entries(r.Type).reduce((n,o)=>`${n} ${o[0]} : ${o[1]} ;`,"")})}}),w({columnId:"Quantity",renderHeaderCell(){return e.jsx(B,{className:tr().ten,children:"Quantity"})},renderCell(r){return e.jsx(S,{className:tr().ten,children:r.Quantity})}})];function $t({Items:r}){return e.jsx(J,{Items:r||[],Columns:_t})}const Gt=new D("Admin","Order","Detail","Shipment");function Ut({OrderId:r,TrackingNumber:n,Refresh:o}){const[t,{setTrue:s,setFalse:c}]=X(),[a,i]=x.useState(n),{dispatch:u,dispatchToast:d}=E(Gt),{run:l}=y.Order.Post.useShip({manual:!0,onError(p,f){u({Message:"Failed Update Tracking Number",Request:f,Error:p})},onSuccess(){d(e.jsx(A,{children:e.jsx(T,{children:"Tracking Number Updated"})}),{intent:"success"}),c(),o()}});return e.jsx(ne,{label:"Shipment",size:"large",children:e.jsx(le,{value:a,disabled:!t,appearance:"underline",onChange:(p,f)=>i(f.value),placeholder:"Fill in this field to ship the order.",contentAfter:t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>l(r,a)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})})})}const Lt=R({body:{...oe,rowGap:U.spacingVerticalXL}}),Pe=new D("Admin","Order","Detail");function Xt({OrderId:r}){const n=Lt(),[o,{setTrue:t,setFalse:s}]=X(),{Nav:c,Paths:a}=fe(),i=parseInt(a.at(2)),{data:u,run:d}=$(()=>y.Order.Get.Detail(r,Pe),{manual:!0,onError:Pe.error}),{data:l,run:p}=$(()=>y.Order.Get.Order(r),{onError(m){c("Admin","Order"),Pe.error(m)},manual:!0});function f(){p(),d()}return x.useEffect(()=>{i===r?(f(),t()):s()},[i]),e.jsxs(e.Fragment,{children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(fr,{}),onClick:()=>c("Admin","Order",r)}),e.jsxs(pr,{open:o,position:"end",size:"medium",modalType:"alert",children:[e.jsx(hr,{children:e.jsx(mr,{action:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{}),onClick:()=>c("Admin","Order")}),children:"Order Detail"})}),e.jsxs(xr,{className:n.body,children:[e.jsx(at,{OrderId:r,Order:l,Admin:!0}),e.jsx(ne,{label:"Required Products",size:"large",children:e.jsx($t,{Items:u?.ShopCart})}),e.jsx(Ut,{OrderId:r,TrackingNumber:l?.TrackingNumber,Refresh:f}),e.jsx(it,{Comments:u?.Comments}),e.jsx(Vt,{OrderId:r,Refresh:f}),e.jsx(Ht,{OrderId:r,Status:l?.Status,Refresh:f})]})]})]})}const xe=R({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"},ten:{flexBasis:"10%",flexGrow:0}}),He=new D("Admin","Order"),Kt=[...ct(He).slice(0,-1),w({columnId:"User",renderHeaderCell:()=>e.jsx(B,{className:xe().ten,children:"User"}),renderCell(r){return e.jsx(S,{className:xe().ten,children:r.User})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:xe().two,children:"Action"}),renderCell(r){return e.jsx(S,{className:xe().twoc,children:e.jsx(Xt,{OrderId:r.Id})})}})];function Wt(){const{data:r}=$(()=>y.Order.Get.List(He),{onError:He.error});return e.jsx(J,{Items:r||[],Columns:Kt})}const Jt=R({body:{...Y,alignItems:"center"},input:{flexGrow:1}}),Ae=new D("Admin","Product","Detail","Category");function Qt({ProdId:r}){const[n,o]=x.useState(""),[t,{setTrue:s,setFalse:c}]=X();$(()=>y.Product.Get.Category(r),{onSuccess(v){v&&o(v)},onError:Ae.error});const{dispatch:a,dispatchToast:i}=E(Ae),{run:u}=y.Product.Patch.useCategory({manual:!0,onError(v,b){a({Message:"Failed Update Category",Request:b,Error:v})},onSuccess(){i(e.jsx(A,{children:e.jsx(T,{children:"Category Updated"})}),{intent:"success"}),c()}}),{data:d}=$(()=>Xe.Gallery.Get.Categories(),{onSuccess(v){p(v)},onError:Ae.error}),[l,p]=x.useState(d),[f,m]=x.useState(""),z=Jt();return e.jsxs("div",{className:z.body,children:[e.jsx(Ke,{size:"large",disabled:!t,children:"Category"}),e.jsxs(Ne,{className:z.input,size:"large",disabled:!t,freeform:!0,placeholder:n||"Pending",appearance:"underline",onChange:v=>{const b=v.target.value.trim(),N=d?.filter(k=>k.toLowerCase().indexOf(b.toLowerCase())===0);p(N),b&&N&&N.length<1?m(b):m("")},onOptionSelect:(v,b)=>{const N=b.optionText;o(N),N&&d?.includes(N)?m(""):m(N)},children:[f&&e.jsxs(ue,{text:f,children:['Create New "',f,'"']},f),l?.map(v=>e.jsx(ue,{children:v},v))]}),t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>n&&u(r,n)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})]})}const Yt=new D("Admin","Product","Detail","Combo","Delete");function Zt({ComboId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(Yt),{run:s}=y.Product.Delete.useCombo({manual:!0,onError(c,a){o({Message:"Failed Delete Combo",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Combo Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}function eo(r){var n=lt(r),o=n%1;return n===n?o?n-o:n:0}function Br(r){return typeof r=="number"&&r==eo(r)}const ro=[w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ne,{defaultValue:r.Current,defaultSelectedOptions:[r.Current],onOptionSelect:(n,o)=>r.Update(o.optionValue),children:r.Types.map((n,o)=>e.jsx(ue,{children:n},o))})})}})],to=R({body:{...Y,justifyContent:"flex-end",alignItems:"center",columnGap:U.spacingVerticalM,marginTop:U.spacingHorizontalM}}),Te=new D("Admin","Product","Detail","Combo","Detail");function oo({Id:r,ProdId:n,Combo:o,Stock:t,Refresh:s}){const[c,{toggle:a}]=X(),[i,u]=x.useState(o),[d,l]=x.useState(t),{data:p}=$(()=>y.Product.Get.Variants(n,Te),{onError:Te.error}),{dispatch:f,dispatchToast:m}=E(Te),{run:z}=y.Product.Patch.useCombo({manual:!0,onError(v,b){f({Message:"Failed Update Combo",Request:b,Error:v})},onSuccess(){m(e.jsx(A,{children:e.jsx(T,{children:"Combo Updated"})}),{intent:"success"}),s(),a()}});return e.jsxs(ye,{open:c,onOpenChange:a,children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Combo Detail"}),e.jsxs(Be,{children:[e.jsx(J,{Items:p?.map(v=>({Current:i[v.Name],Update(b){i[v.Name]=b,u({...i})},...v}))||[],Columns:ro}),e.jsxs("div",{className:to().body,children:[e.jsx(Ke,{children:"Stock"}),e.jsx(br,{value:d,min:0,onChange:(v,b)=>{if(b.value)l(b.value);else if(b.displayValue){const N=parseInt(b.displayValue);Br(N)&&l(N)}}}),e.jsx(g,{appearance:"primary",onClick:()=>z(r,i,d),children:"Submit"})]})]})]})})]})}const no=[w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ne,{onOptionSelect:(n,o)=>r.Update(o.optionValue),children:r.Types.map((n,o)=>e.jsx(ue,{children:n},o))})})}})],so=R({body:{...Y,justifyContent:"flex-end",alignItems:"center",columnGap:U.spacingVerticalM,marginTop:U.spacingHorizontalM}}),Ee=new D("Admin","Product","Detail","Combo","NewCombo");function ao({ProdId:r,Refresh:n}){const[o,{toggle:t}]=X(),[s,c]=x.useState({}),[a,i]=x.useState(1),{data:u}=$(()=>y.Product.Get.Variants(r,Ee),{onSuccess(f){for(const m of f)s[m.Name]="";c({...s})},onError:Ee.error}),{dispatch:d,dispatchToast:l}=E(Ee),{run:p}=y.Product.Post.useCombo({manual:!0,onError(f,m){d({Message:"Failed Create Combo",Request:m,Error:f})},onSuccess(){l(e.jsx(A,{children:e.jsx(T,{children:"Combo Created"})}),{intent:"success"}),n(),t()}});return e.jsxs(ye,{open:o,onOpenChange:t,children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),children:"New Combo"})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"New Combo"}),e.jsxs(Be,{children:[e.jsx(J,{Items:u?.map(f=>({Update(m){s[f.Name]=m,c({...s})},...f}))||[],Columns:no}),e.jsxs("div",{className:so().body,children:[e.jsx(Ke,{children:"Stock"}),e.jsx(br,{value:a,min:0,onChange:(f,m)=>{if(m.value)i(m.value);else if(m.displayValue){const z=parseInt(m.displayValue);Br(z)&&i(z)}}}),e.jsx(g,{appearance:"primary",onClick:()=>p(r,s,a),children:"Create"})]})]})]})})]})}const ee=R({body:{...Y,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},five:{flexBasis:"5%",flexGrow:0}}),or=new D("Admin","Product","Detail","Combo"),io=[w({columnId:"Id",renderHeaderCell:()=>e.jsx(B,{className:ee().four,children:"Id"}),renderCell(r){return e.jsx(S,{className:ee().four,children:r.Id})}}),w({columnId:"Combo",renderHeaderCell:()=>e.jsx(B,{children:"Combo"}),renderCell(r){return e.jsx(S,{children:Object.entries(r.Combo).reduce((n,o)=>`${n} ${o[0]} : ${o[1]} ;`,"")})}}),w({columnId:"Stock",renderHeaderCell:()=>e.jsx(B,{className:ee().five,children:"Stock"}),renderCell(r){return e.jsx(S,{className:ee().five,children:r.Stock})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:ee().seven,children:"Action"}),renderCell(r){return e.jsxs(S,{className:ee().seven,children:[e.jsx(oo,{...r}),e.jsx(Zt,{ComboId:r.Id,Refresh:r.Refresh})]})}})];function co({ProdId:r}){const{data:n,run:o}=$(()=>Xe.Product.Get.Combo(r,or),{onError:or.error});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:ee().body,children:[e.jsx(Je,{children:"Combo"}),e.jsx(ao,{ProdId:r,Refresh:o})]}),e.jsx(J,{Items:n?.map(t=>({ProdId:r,Refresh:o,...t}))||[],Columns:io})]})}const lo=new D("Admin","Product","Detail","Delete");function uo({ProdId:r}){const{Nav:n}=fe(),{dispatch:o,dispatchToast:t}=E(lo),{run:s}=y.Product.Delete.useProduct({manual:!0,onError(c,a){o({Message:"Failed Delete Product",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Product Deleted"})}),{intent:"success"}),n("/Admin"),location.reload()}});return e.jsx("div",{children:e.jsx(g,{onClick:()=>s(r),children:"Delete Product"})})}const nr=new D("Admin","Product","Detail","Name");function fo({ProdId:r}){const[n,o]=x.useState(""),[t,{setTrue:s,setFalse:c}]=X(),{Nav:a}=fe();$(()=>y.Product.Get.Name(r),{onSuccess(l){o(l)},onError(l){a("Admin"),nr.error(l)}});const{dispatch:i,dispatchToast:u}=E(nr),{run:d}=y.Product.Patch.useName({manual:!0,onError(l,p){i({Message:"Failed Update Name",Request:p,Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Name Updated"})}),{intent:"success"}),c()}});return e.jsx(le,{size:"large",value:n,disabled:!t,appearance:"underline",onChange:(l,p)=>o(p.value),contentBefore:e.jsx(gr,{children:"Name"}),contentAfter:t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>d(r,n)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})})}const po=R({box:{...Y,columnGap:U.spacingHorizontalL},img:{...Jr,aspectRatio:"1",width:"50%"},cap:{...oe,flexGrow:1,rowGap:U.spacingVerticalL}}),sr=new D("Admin","Product","Detail","Photo","Edit");function ho({Photo:{Id:r,Cover:n,Caption:o},Refresh:t}){const s=po(),[c,a]=x.useState(o||""),{dispatch:i,dispatchToast:u}=E(sr),{run:d}=y.Product.Patch.useCaption({manual:!0,onError(f,m){i({Message:"Failed Update Caption",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Caption Updated"})}),{intent:"success"}),t()}}),{run:l}=y.Product.Patch.usePhoto(sr,{manual:!0,onError(f,m){i({Message:"Failed Update Photo",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Photo Updated"})}),{intent:"success"}),t()}}),{run:p}=y.Product.Delete.usePhoto({manual:!0,onError(f,m){i({Message:"Failed Delete Photo",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Photo Deleted"})}),{intent:"success"}),t()}});return e.jsxs(ye,{children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Image Detail"}),e.jsxs(Be,{className:s.box,children:[e.jsx(Qr,{shape:"rounded",className:s.img,src:n}),e.jsxs("div",{className:s.cap,children:[e.jsx(ne,{label:"Caption",children:e.jsx(le,{value:c,onChange:(f,m)=>a(m.value)})}),e.jsx(g,{onClick:()=>d(r,c),children:"Save Caption"}),e.jsx(g,{onClick:()=>{const f=document.createElement("input");f.type="file",f.accept="image/*",f.onchange=()=>{f.files&&l(r,f.files[0])},f.click()},children:"Replace"}),e.jsx(g,{appearance:"primary",onClick:()=>p(r),children:"Delete"})]})]})]})})]})}const Fe=R({f11:{flexBasis:"11%",flexGrow:0},box:{...Y,justifyContent:"space-between"}}),se=new D("Admin","Product","Detail","Photo"),mo=[vr(70,se),w({columnId:"Caption",renderHeaderCell:()=>e.jsx(B,{children:"Caption"}),renderCell(r){return e.jsx(S,{children:r.Caption})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:Fe().f11,children:"Action"}),renderCell(r){const{dispatch:n}=E(se),{run:o}=y.Product.Post.useMovePhoto({manual:!0,onError(t,s){n({Message:"Failed Update Order",Request:s,Error:t})},onSuccess:ge});return e.jsxs(S,{className:Fe().f11,children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(Yr,{}),onClick:()=>o(r.Id,!0)}),e.jsx(g,{appearance:"subtle",icon:e.jsx(Zr,{}),onClick:()=>o(r.Id,!1)}),e.jsx(ho,{Photo:r,Refresh:ge})]})}})];let ge;function xo({ProdId:r}){const{data:n,run:o}=$(()=>Xe.Product.Get.Carousel(r,se),{onError:se.error});ge=o;const{dispatch:t,dispatchToast:s}=E(se),{run:c}=y.Product.Post.usePhoto(se,{manual:!0,onError(a,i){t({Message:"Failed Upload Photo",Request:i,Error:a})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Photo Uploaded"})}),{intent:"success"}),ge()}});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:Fe().box,children:[e.jsx(Je,{children:"Photos"}),e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),onClick:()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=()=>{a.files&&c(r,a.files[0])},a.click()},children:"New Image"})]}),e.jsx(J,{Items:n||[],Columns:mo})]})}const bo=new D("Admin","Product","Detail","Variant","Delete");function go({VariantId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(bo),{run:s}=y.Product.Delete.useVariant({manual:!0,onError(c,a){o({Message:"Failed Delete Variant",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Variant Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}const vo=new D("Admin","Product","Detail","Variant","Edit","TypeDelete");function jo({VariantId:r,Type:n,Refresh:o}){const{dispatch:t,dispatchToast:s}=E(vo),{run:c}=y.Product.Delete.useType({manual:!0,onError(a,i){t({Message:"Failed Delete Type",Request:i,Error:a})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Type Deleted"})}),{intent:"success"}),o()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>c(r,n)})}const ko=new D("Admin","Product","Detail","Variant","Edit","Name");function yo({Id:r,Name:n}){const[o,t]=x.useState(n),[s,{setTrue:c,setFalse:a}]=X(),{dispatch:i,dispatchToast:u}=E(ko),{run:d}=y.Product.Patch.useVariantName({manual:!0,onError(l,p){i({Message:"Failed Update Variant Name",Request:p[0],Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Variant Name Updated"})}),{intent:"success"}),a()}});return e.jsx(le,{size:"large",value:o,disabled:!s,appearance:"underline",onChange:(l,p)=>t(p.value),contentBefore:e.jsx(gr,{children:"Name"}),contentAfter:s?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>d(r,o)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:c})})}const wo=R({body:{...oe,rowGap:U.spacingVerticalM}}),Co=new D("Admin","Product","Detail","Variant","Edit","Type");function Sr({VariantId:r,Type:n,Refresh:o,New:t}){const s=wo(),[c,{toggle:a}]=X(),[i,u]=x.useState(n||""),{dispatch:d,dispatchToast:l}=E(Co),p={manual:!0,onError(z,v){d({Message:`Failed ${t?"Create":"Update"} Type ${i}`,Request:v,Error:z})},onSuccess(z){l(e.jsxs(A,{children:[e.jsxs(T,{children:["Type ",t?"Created":"Updated"]}),e.jsxs(et,{children:[z," ",i]})]}),{intent:"success"}),o(),u(""),a()}},{run:f}=y.Product.Post.useType(p),{run:m}=y.Product.Patch.useType(p);return e.jsxs(jr,{withArrow:!0,open:c,onOpenChange:a,children:[e.jsx(kr,{disableButtonEnhancement:!0,children:t?e.jsx(g,{icon:e.jsx(Se,{}),appearance:"primary",children:"New Type"}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsxs(yr,{className:s.body,children:[e.jsx(ne,{label:"Type Name",children:e.jsx(le,{value:i,onChange:(z,v)=>u(v.value)})}),e.jsx(g,{onClick:()=>t?f(r,i):m(r,n,i),children:"Submit"})]})]})}const Me=R({body:{...oe,rowGap:U.spacingVerticalM},twelve:{flexBasis:"12%",flexGrow:0}}),zo=[w({columnId:"Name",renderHeaderCell:()=>e.jsx(B,{children:"Name"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:Me().twelve,children:"Action"}),renderCell(r){return e.jsxs(S,{className:Me().twelve,children:[e.jsx(Sr,{VariantId:r.VariantId,Type:r.Name,Refresh:r.Refresh}),e.jsx(jo,{VariantId:r.VariantId,Type:r.Name,Refresh:r.Refresh})]})}})];function Bo({Variant:r,Refresh:n}){return e.jsxs(ye,{children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Variant Detail"}),e.jsxs(Be,{className:Me().body,children:[e.jsx(yo,{Id:r.Id,Name:r.Name}),e.jsx(J,{Items:r.Types.map((o,t)=>({Id:t,Name:o,VariantId:r.Id,Refresh:n})),Columns:zo})]}),e.jsx(rt,{children:e.jsx(Sr,{VariantId:r.Id,Refresh:n,New:!0})})]})})]})}const So=R({body:{...oe,rowGap:U.spacingVerticalM}}),No=new D("Admin","Product","Detail","Variant","New");function Oo({ProdId:r,Refresh:n}){const o=So(),[t,{toggle:s}]=X(),[c,a]=x.useState(""),{dispatch:i,dispatchToast:u}=E(No),{run:d}=y.Product.Post.useVariant({manual:!0,onError(l,p){i({Message:"Failed Create Variant",Request:p,Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Variant Created"})}),{intent:"success"}),n(),a(""),s()}});return e.jsxs(jr,{withArrow:!0,open:t,onOpenChange:s,children:[e.jsx(kr,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),children:"New Variant"})}),e.jsxs(yr,{className:o.body,children:[e.jsx(ne,{required:!0,label:"Variant Name",children:e.jsx(le,{value:c,onChange:(l,p)=>a(p.value)})}),e.jsx(g,{onClick:()=>d(r,c),children:"Add"})]})]})}const re=R({body:{...Y,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},twelve:{flexBasis:"12%",flexGrow:0}}),ar=new D("Admin","Product","Detail","Variant"),qo=[w({columnId:"Id",renderHeaderCell:()=>e.jsx(B,{className:re().four,children:"Id"}),renderCell(r){return e.jsx(S,{className:re().four,children:r.Id})}}),w({columnId:"Name",renderHeaderCell:()=>e.jsx(B,{className:re().twelve,children:"Name"}),renderCell(r){return e.jsx(S,{className:re().twelve,children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:r.Types.reduce((n,o)=>`${n} ${o} ;`,"")})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:re().seven,children:"Action"}),renderCell(r){return e.jsxs(S,{className:re().seven,children:[e.jsx(Bo,{Variant:r,Refresh:Ve}),e.jsx(go,{VariantId:r.Id,Refresh:Ve})]})}})];let Ve;function Do({ProdId:r}){const n=re(),{data:o,run:t}=$(()=>y.Product.Get.Variants(r,ar),{onError:ar.error});return Ve=t,e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:n.body,children:[e.jsx(Je,{children:"Variant"}),e.jsx(Oo,{ProdId:r,Refresh:t})]}),e.jsx(J,{Items:o||[],Columns:qo})]})}const Io=R({body:{...oe,rowGap:U.spacingVerticalXL,paddingBottom:U.spacingVerticalXXXL}});function Po({ProdId:r}){const n=Io(),[o,{toggle:t,setTrue:s}]=X(),{Nav:c,Paths:a}=fe();return x.useEffect(()=>{parseInt(a.at(1))===r&&s()},[a]),e.jsxs(e.Fragment,{children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(fr,{}),onClick:()=>{c("Admin",r),s()}}),e.jsxs(pr,{open:o,onOpenChange:t,position:"end",size:"large",modalType:"alert",children:[e.jsx(hr,{children:e.jsx(mr,{action:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{}),onClick:()=>{c("Admin"),t()}}),children:"Product Detail"})}),e.jsxs(xr,{className:n.body,children:[e.jsx(fo,{ProdId:r}),e.jsx(Qt,{ProdId:r}),e.jsx(xo,{ProdId:r}),e.jsx(Do,{ProdId:r}),e.jsx(co,{ProdId:r}),"Rich Text Editor is temporarily unavailable.",e.jsx(uo,{ProdId:r})]})]})]})}const ir=R({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"}}),_e=new D("Admin","Product"),Ao=[vr(50,_e),w({columnId:"Product",renderHeaderCell:()=>e.jsx(B,{children:"Product"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ze,{children:r.Name})})}}),w({columnId:"Category",renderHeaderCell:()=>e.jsx(B,{children:"Category"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ze,{children:r.Category})})}}),w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Variant})}}),w({columnId:"Combo",renderHeaderCell:()=>e.jsx(B,{children:"Combo"}),renderCell(r){return e.jsx(S,{children:r.Combo})}}),w({columnId:"Stock",renderHeaderCell:()=>e.jsx(B,{children:"Stock"}),renderCell(r){return e.jsx(S,{children:r.Stock})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:ir().two,children:"Detail"}),renderCell(r){return e.jsx(S,{className:ir().twoc,children:e.jsx(Po,{ProdId:r.Id})})}})];function To(){const{data:r}=$(()=>y.Product.Get.List(_e),{onError:_e.error});return e.jsx(J,{Items:r||[],Columns:Ao})}function Eo({Items:r,Columns:n,NoHeader:o}){return e.jsxs(tt,{items:r,columns:n,getRowId:t=>t.Id,children:[!o&&e.jsx(ot,{children:e.jsx(er,{children:({renderHeaderCell:t})=>e.jsx(B,{children:t()})})}),e.jsx(nt,{children:({item:t,rowId:s})=>e.jsx(er,{children:({renderCell:c})=>e.jsx(S,{children:c(t)})},s)})]})}const Ro=new D("Admin","User","Delete");function Ho({UserId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(Ro),{run:s}=y.User.Delete.useUser({manual:!0,onError(c,a){o({Message:"Failed Delete User",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"User Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}const Fo=new D("Admin","User","Grant");function Mo({UserId:r,Admin:n,Refresh:o}){const{dispatch:t,dispatchToast:s}=E(Fo),{run:c}=y.User.Post.useAdmin({manual:!0,onError(i,u){t({Message:"Failed Grant Admin",Request:u,Error:i})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Admin Granted"})}),{intent:"success"}),o()}}),{run:a}=y.User.Delete.useAdmin({manual:!0,onError(i,u){t({Message:"Failed Revoke Admin",Request:u,Error:i})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Admin Revoked"})}),{intent:"success"}),o()}});return e.jsx(st,{checked:n,onChange:(i,u)=>{u.checked?c(r):a(r)}})}const Vo=new D("Admin","User"),_o=[w({columnId:"Id",renderHeaderCell:()=>"Id",renderCell(r){return r.Id}}),w({columnId:"Name",renderHeaderCell:()=>"Real Name",renderCell(r){return r.Name}}),w({columnId:"Email",renderHeaderCell:()=>"E-Mail",renderCell(r){return r.EMail}}),w({columnId:"Admin",renderHeaderCell:()=>"Admin",renderCell(r){return e.jsx(Mo,{UserId:r.Id,Admin:r.Admin,Refresh:$e})}}),w({columnId:"Delete",renderHeaderCell:()=>"Delete",renderCell(r){return e.jsx(Ho,{UserId:r.Id,Refresh:$e})}})];let $e;function $o(){const{data:r,run:n}=$(()=>y.User.Get.List(),{onError:Vo.error});return $e=n,e.jsx(Eo,{Items:r||[],Columns:_o})}function Xo(){const{Paths:r}=fe(),n=r.at(1);return x.useMemo(()=>{switch(n){case"Order":return e.jsx(Wt,{});case"User":return e.jsx($o,{});default:return e.jsx(To,{})}},[n])}export{Xo as default}; +import{v as cr,w as lr,x as _,y as he,A as Qe,z as Ie,E as Ye,D as Or,G as qr,I as Dr,P as Ir,J as Pr,K as Ar,r as x,M as Tr,N as Re,a as ve,g as dr,O as ae,Q as ie,R as G,j as W,m as te,_ as ce,b as Ge,u as Ue,U as Le,V as Er,W as Rr,X as ur,Y as Hr,Z as Fr,$ as Mr,a0 as Vr,a1 as _r,a2 as $r,a3 as Gr,a4 as Ur,a5 as Lr,a6 as Xr,c as Kr,i as R,L as D,l as oe,a7 as E,a8 as y,d as e,a9 as A,aa as T,ab as ne,B as g,F as Y,ac as Wr,ad as J,ae as w,af as B,ag as S,ah as X,ai as le,aj as je,ak as Z,t as U,n as fe,k as $,al as fr,am as pr,an as hr,ao as mr,ap as de,aq as xr,H as Xe,ar as Ke,as as ke,at as ye,au as Q,av as we,aw as Ce,ax as ze,ay as Be,S as br,az as Se,aA as gr,C as Jr,aB as Qr,aC as vr,aD as Yr,aE as Zr,aF as jr,aG as kr,aH as yr,aI as et,aJ as rt,aK as Ze,aL as tt,aM as ot,aN as er,aO as nt,aP as st}from"./index-5gW6pgm0.js";import{O as at,a as it,H as ct}from"./Columns-OZmivVgq.js";import{t as lt}from"./toFinite-ZQ51RADL.js";const L=cr({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});L.Provider;const K=cr({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});K.Provider;function dt(r){const{activeOption:n,appearance:o,focusVisible:t,open:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u,setOpen:d,size:l}=r;return{combobox:{activeOption:n,appearance:o,focusVisible:t,open:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u,setOpen:d,size:l}}}function ut(r){const n=lr(L),{activeOption:o,focusVisible:t,multiselect:s,registerOption:c,selectedOptions:a,selectOption:i,setActiveOption:u}=r,d=_(L,f=>f.registerOption);return{listbox:{activeOption:o,focusVisible:t,multiselect:s,registerOption:n?d:c,selectedOptions:a,selectOption:i,setActiveOption:u}}}function be(r,n={}){const{open:o=!0,multiselect:t=!1}=n,s=r.key,{altKey:c,ctrlKey:a,key:i,metaKey:u}=r;return i.length===1&&s!==he&&!c&&!a&&!u?"Type":o?s===Ie&&c||s===Ye||!t&&s===he?"CloseSelect":t&&s===he?"Select":s===Or?"Close":s===Qe?"Next":s===Ie?"Previous":s===qr?"First":s===Dr?"Last":s===Ir?"PageUp":s===Pr?"PageDown":s===Ar?"Tab":"None":s===Qe||s===Ie||s===Ye||s===he?"Open":"None"}function wr(r,n,o){switch(r){case"Next":return Math.min(o,n+1);case"Previous":return Math.max(0,n-1);case"First":return 0;case"Last":return o;case"PageDown":return Math.min(o,n+10);case"PageUp":return Math.max(0,n-10);default:return n}}const Cr=()=>{const r=x.useRef([]),n=x.useMemo(()=>({getCount:()=>r.current.length,getOptionAtIndex:d=>{var l;return(l=r.current[d])===null||l===void 0?void 0:l.option},getIndexOfId:d=>r.current.findIndex(l=>l.option.id===d),getOptionById:d=>{const l=r.current.find(p=>p.option.id===d);return l?.option},getOptionsMatchingText:d=>r.current.filter(l=>d(l.option.text)).map(l=>l.option),getOptionsMatchingValue:d=>r.current.filter(l=>d(l.option.value)).map(l=>l.option)}),[]),o=x.useCallback((t,s)=>{var c;const a=r.current.findIndex(i=>!i.element||!s?!1:i.option.id===t.id?!0:i.element.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING);if(((c=r.current[a])===null||c===void 0?void 0:c.option.id)!==t.id){const i={element:s,option:t};a===-1?r.current=[...r.current,i]:r.current.splice(a,0,i)}return()=>{r.current=r.current.filter(i=>i.option.id!==t.id)}},[]);return{...n,options:r.current.map(t=>t.option),registerOption:o}};function ft(r){const{activeOption:n}=r,o=x.useRef(null);return x.useEffect(()=>{if(o.current&&n&&Tr()){const t=o.current.querySelector(`#${n.id}`);if(!t)return;const{offsetHeight:s,offsetTop:c}=t,{offsetHeight:a,scrollTop:i}=o.current,u=ci+a,l=2;u?o.current.scrollTo(0,c-l):d&&o.current.scrollTo(0,c-a+s+l)}},[n]),o}const zr=r=>{const{defaultSelectedOptions:n,multiselect:o,onOptionSelect:t}=r,[s,c]=Re({state:r.selectedOptions,defaultState:n,initialState:[]}),a=x.useCallback((u,d)=>{if(d.disabled)return;let l=[d.value];if(o){const p=s.findIndex(f=>f===d.value);p>-1?l=[...s.slice(0,p),...s.slice(p+1)]:l=[...s,d.value]}c(l),t?.(u,{optionValue:d.value,optionText:d.text,selectedOptions:l})},[t,o,s,c]);return{clearSelection:u=>{c([]),t?.(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:a,selectedOptions:s}},pt=(r,n)=>{const{multiselect:o}=r,t=Cr(),{getCount:s,getOptionAtIndex:c,getIndexOfId:a}=t,{clearSelection:i,selectedOptions:u,selectOption:d}=zr(r),[l,p]=x.useState(),[f,m]=x.useState(!1),z=O=>{const F=be(O,{open:!0}),j=s()-1,C=l?a(l.id):-1;let P=C;switch(F){case"Select":case"CloseSelect":l&&d(O,l);break;default:P=wr(F,C,j)}P!==C&&(O.preventDefault(),p(c(P)),m(!0))},v=O=>{m(!1)},b=lr(L),N=_(L,O=>O.activeOption),k=_(L,O=>O.focusVisible),H=_(L,O=>O.selectedOptions),V=_(L,O=>O.selectOption),I=_(L,O=>O.setActiveOption),h=b?{activeOption:N,focusVisible:k,selectedOptions:H,selectOption:V,setActiveOption:I}:{activeOption:l,focusVisible:f,selectedOptions:u,selectOption:d,setActiveOption:p},q={components:{root:"div"},root:ve(dr("div",{ref:n,role:o?"menu":"listbox","aria-activedescendant":b?void 0:l?.id,"aria-multiselectable":o,tabIndex:0,...r}),{elementType:"div"}),multiselect:o,clearSelection:i,...t,...h},M=ft(q);return q.root.ref=ae(q.root.ref,M),q.root.onKeyDown=ie(G(q.root.onKeyDown,z)),q.root.onMouseOver=ie(G(q.root.onMouseOver,v)),q},ht=(r,n)=>W(K.Provider,{value:n.listbox,children:W(r.root,{})}),mt={root:"fui-Listbox"},xt=ce({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),bt=r=>{const n=xt();return r.root.className=te(mt.root,n.root,r.root.className),r},We=x.forwardRef((r,n)=>{const o=pt(r,n),t=ut(o);return bt(o),Ge("useListboxStyles_unstable")(o),ht(o,t)});We.displayName="Listbox";function gt(r,n){if(r!==void 0)return r;let o="",t=!1;return x.Children.forEach(n,s=>{typeof s=="string"?o+=s:t=!0}),t&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),o}const vt=(r,n)=>{const{children:o,disabled:t,text:s,value:c}=r,a=x.useRef(null),i=gt(s,o),u=c??i,d=Ue("fluent-option",r.id),l=x.useMemo(()=>({id:d,disabled:t,text:i,value:u}),[d,t,i,u]),p=_(K,h=>h.focusVisible),f=_(K,h=>h.multiselect),m=_(K,h=>h.registerOption),z=_(K,h=>{const q=h.selectedOptions;return!!u&&!!q.find(M=>M===u)}),v=_(K,h=>h.selectOption),b=_(K,h=>h.setActiveOption),N=_(L,h=>h.setOpen),k=_(K,h=>{var q,M;return((q=h.activeOption)===null||q===void 0?void 0:q.id)!==void 0&&((M=h.activeOption)===null||M===void 0?void 0:M.id)===d});let H=x.createElement(Er,null);f&&(H=z?x.createElement(Rr,null):"");const V=h=>{var q;if(t){h.preventDefault();return}b(l),f||N?.(h,!1),v(h,l),(q=r.onClick)===null||q===void 0||q.call(r,h)};x.useEffect(()=>{if(d&&a.current)return m(l,a.current)},[d,l,m]);const I=f?{role:"menuitemcheckbox","aria-checked":z}:{role:"option","aria-selected":z};return{components:{root:"div",checkIcon:"span"},root:ve(dr("div",{ref:ae(n,a),"aria-disabled":t?"true":void 0,id:d,...I,...r,onClick:V}),{elementType:"div"}),checkIcon:Le(r.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:H},elementType:"span"}),active:k,disabled:t,focusVisible:p,multiselect:f,selected:z}},jt=r=>ur(r.root,{children:[r.checkIcon&&W(r.checkIcon,{}),r.root.children]}),rr={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},kt=ce({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),yt=r=>{const{active:n,disabled:o,focusVisible:t,multiselect:s,selected:c}=r,a=kt();return r.root.className=te(rr.root,a.root,n&&t&&a.active,o&&a.disabled,c&&a.selected,r.root.className),r.checkIcon&&(r.checkIcon.className=te(rr.checkIcon,a.checkIcon,s&&a.multiselectCheck,c&&a.selectedCheck,c&&s&&a.selectedMultiselectCheck,o&&a.checkDisabled,o&&s&&a.multiselectCheckDisabled,r.checkIcon.className)),r},ue=x.forwardRef((r,n)=>{const o=vt(r,n);return yt(o),Ge("useOptionStyles_unstable")(o),jt(o)});ue.displayName="Option";const wt=r=>{const{appearance:n="outline",children:o,editable:t=!1,inlinePopup:s=!1,mountNode:c=void 0,multiselect:a,onOpenChange:i,size:u="medium"}=r,d=Cr(),{getOptionAtIndex:l,getOptionsMatchingValue:p}=d,[f,m]=x.useState(),[z,v]=x.useState(!1),[b,N]=x.useState(!1),k=x.useRef(!1),H=zr(r),{selectedOptions:V}=H,I=Hr(),[h,q]=Re({state:r.value,initialState:void 0}),M=x.useMemo(()=>{if(h!==void 0)return h;if(I&&r.defaultValue!==void 0)return r.defaultValue;const C=p(P=>V.includes(P)).map(P=>P.text);return a?t?"":C.join(", "):C[0]},[h,t,p,a,r.defaultValue,V]),[O,F]=Re({state:r.open,defaultState:r.defaultOpen,initialState:!1}),j=x.useCallback((C,P)=>{i?.(C,{open:P}),F(P)},[i,F]);return x.useEffect(()=>{if(O&&!f)if(!a&&V.length>0){const C=p(P=>P===V[0]).pop();C&&m(C)}else m(l(0));else O||m(void 0)},[O,o]),{...d,...H,activeOption:f,appearance:n,focusVisible:z,hasFocus:b,ignoreNextBlur:k,inlinePopup:s,mountNode:c,open:O,setActiveOption:m,setFocusVisible:v,setHasFocus:N,setOpen:j,setValue:q,size:u,value:M,multiselect:a}};function Ct(r){const{positioning:n}=r,t={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...Fr(n)},{targetRef:s,containerRef:c}=Mr(t);return[c,s]}function zt(r,n,o){const{state:{multiselect:t},triggerRef:s,defaultProps:c}=o,a=Ue("fluent-listbox",Vr(r)?r.id:void 0),i=Le(r,{renderByDefault:!0,elementType:We,defaultProps:{id:a,multiselect:t,tabIndex:void 0,...c}}),u=ie(G(p=>{p.preventDefault()},i?.onMouseDown)),d=ie(G(p=>{var f;p.preventDefault(),(f=s.current)===null||f===void 0||f.focus()},i?.onClick)),l=ae(i?.ref,n);return i&&(i.ref=l,i.onMouseDown=u,i.onClick=d),i}function Bt(r,n,o){const{state:{activeOption:t,getCount:s,getIndexOfId:c,getOptionAtIndex:a,open:i,selectOption:u,setActiveOption:d,setFocusVisible:l,setOpen:p,multiselect:f,setHasFocus:m},defaultProps:z,elementType:v}=o,b=ve(r,{defaultProps:{type:"text","aria-expanded":i,"aria-activedescendant":i?t?.id:void 0,role:"combobox",...typeof z=="object"&&z},elementType:v}),N=x.useRef(null);return b.ref=ae(N,b.ref,n),b.onBlur=G(k=>{p(k,!1),m(!1)},b.onBlur),b.onFocus=G(k=>{k.target===k.currentTarget&&m(!0)},b.onFocus),b.onClick=G(k=>{p(k,!i)},b.onClick),b.onKeyDown=G(k=>{const H=be(k,{open:i,multiselect:f}),V=s()-1,I=t?c(t.id):-1;let h=I;switch(H){case"Open":k.preventDefault(),l(!0),p(k,!0);break;case"Close":k.stopPropagation(),k.preventDefault(),p(k,!1);break;case"CloseSelect":!f&&!t?.disabled&&p(k,!1);case"Select":t&&u(k,t),k.preventDefault();break;case"Tab":!f&&t&&u(k,t);break;default:h=wr(H,I,V)}h!==I&&(k.preventDefault(),d(a(h)),l(!0))},b.onKeyDown),b.onMouseOver=G(k=>{l(!1)},b.onMouseOver),b}function St(r,n,o){const{state:{open:t,value:s,activeOption:c,selectOption:a,setValue:i,setActiveOption:u,setFocusVisible:d,multiselect:l,selectedOptions:p,clearSelection:f,getOptionsMatchingText:m,getIndexOfId:z,setOpen:v},freeform:b,defaultProps:N}=o,k=j=>{!t&&!b&&(s&&c&&s.trim().toLowerCase()===c?.text.toLowerCase()&&a(j,c),i(void 0))},H=j=>{const C=j?.trim().toLowerCase();if(!C||C.length===0)return;const pe=m(qe=>qe.toLowerCase().indexOf(C)===0);if(pe.length>1&&c){const qe=z(c.id),De=pe.find(Nr=>z(Nr.id)>=qe);return De??pe[0]}var Oe;return(Oe=pe[0])!==null&&Oe!==void 0?Oe:void 0},V=j=>{const C=j.target.value;i(C);const P=H(C);u(P),d(!0),!l&&p.length===1&&(C.length<1||!P)&&f(j)},I=Bt(r,n,{state:o.state,defaultProps:N,elementType:"input"});I.onChange=G(I.onChange,V),I.onBlur=G(I.onBlur,k);const[h,q]=x.useState(!1),M=x.useRef(!1),O=I.onKeyDown,F=ie(j=>{!t&&be(j)==="Type"&&v(j,!0),j.key===_r||j.key===$r?q(!0):q(!1);const C=be(j,{open:t,multiselect:l});if(C==="Type"?M.current=!0:(C==="Open"&&j.key!==" "||C==="Next"||C==="Previous"||C==="First"||C==="Last"||C==="PageUp"||C==="PageDown")&&(M.current=!1),b&&(M.current||!t)&&j.key===" "){var P;r==null||(P=r.onKeyDown)===null||P===void 0||P.call(r,j);return}O?.(j)});return I.onKeyDown=F,h&&(I["aria-activedescendant"]=void 0),I}const Nt=(r,n)=>{r=Gr(r,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=wt({...r,editable:!0}),{open:t,selectOption:s,setOpen:c,setValue:a,value:i,hasFocus:u}=o,[d,l]=Ct(r),{disabled:p,freeform:f,inlinePopup:m}=r,z=Ue("combobox-"),{primary:v,root:b}=Ur({props:r,primarySlotTagName:"input",excludedPropNames:["children","size"]});o.selectOption=(F,j)=>{a(void 0),s(F,j)},o.setOpen=(F,j)=>{p||(!j&&!f&&a(void 0),c(F,j))};const N=x.useRef(null),k=zt(r.listbox,d,{state:o,triggerRef:N,defaultProps:{children:r.children}});var H;const V=St((H=r.input)!==null&&H!==void 0?H:{},ae(N,n),{state:o,freeform:f,defaultProps:{type:"text",value:i??"",...v}}),I=ve(r.root,{defaultProps:{"aria-owns":!m&&t?k?.id:void 0,...b},elementType:"div"});I.ref=ae(I.ref,l);const h={components:{root:"div",input:"input",expandIcon:"span",listbox:We},root:I,input:V,listbox:t||u?k:void 0,expandIcon:Le(r.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":t,children:x.createElement(Lr,null),role:"button"},elementType:"span"}),...o},{onMouseDown:q}=h.expandIcon||{},M=ie(G(q,F=>{var j;F.preventDefault(),h.setOpen(F,!h.open),(j=N.current)===null||j===void 0||j.focus()}));if(h.expandIcon){h.expandIcon.onMouseDown=M;const F=h.expandIcon["aria-label"]||h.expandIcon["aria-labelledby"],j="Open";if(!F)if(r["aria-labelledby"]){var O;const C=(O=h.expandIcon.id)!==null&&O!==void 0?O:`${z}-chevron`,P=`${C} ${h.input["aria-labelledby"]}`;h.expandIcon["aria-label"]=j,h.expandIcon.id=C,h.expandIcon["aria-labelledby"]=P}else r["aria-label"]?h.expandIcon["aria-label"]=`${j} ${r["aria-label"]}`:h.expandIcon["aria-label"]=j}return h},Ot=(r,n)=>W(r.root,{children:ur(L.Provider,{value:n.combobox,children:[W(r.input,{}),r.expandIcon&&W(r.expandIcon,{}),r.listbox&&(r.inlinePopup?W(r.listbox,{}):W(Xr,{mountNode:r.mountNode,children:W(r.listbox,{})}))]})}),me={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},qt=ce({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),Dt=ce({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),It=ce({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Pt=r=>{const{appearance:n,open:o,size:t}=r,s=`${r.input["aria-invalid"]}`=="true",c=r.input.disabled,a=qt(),i=It(),u=Dt();return r.root.className=te(me.root,a.root,a[n],a[t],!c&&n==="outline"&&a.outlineInteractive,s&&n!=="underline"&&a.invalid,s&&n==="underline"&&a.invalidUnderline,c&&a.disabled,r.root.className),r.input.className=te(me.input,u.input,u[t],c&&u.disabled,r.input.className),r.listbox&&(r.listbox.className=te(me.listbox,a.listbox,!o&&a.listboxCollapsed,r.listbox.className)),r.expandIcon&&(r.expandIcon.className=te(me.expandIcon,i.icon,i[t],c&&i.disabled,r.expandIcon.className)),r},Ne=x.forwardRef((r,n)=>{const o=Nt(r,n),t=dt(o);return Pt(o),Ge("useComboboxStyles_unstable")(o),Ot(o,t)});Ne.displayName="Combobox";const At={root:"fui-Subtitle1"},Tt=ce({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),Je=Kr({useStyles:Tt,className:At.root,displayName:"Subtitle1"}),Et=R({body:{...oe,alignItems:"flex-start"}}),Rt=new D("Admin","Order","Detail","Action");function Ht({OrderId:r,Status:n,Refresh:o}){const t=Et(),{dispatch:s,dispatchToast:c}=E(Rt),{run:a}=y.Order.Post.useAccept({manual:!0,onError(i,u){s({Message:"Failed Accept Order",Request:u,Error:i})},onSuccess(){c(e.jsx(A,{children:e.jsx(T,{children:"Order Accepted"})}),{intent:"success"}),o()}});switch(n){case"Processing":case"Shipping":case"Finished":case"Cancelled":case"Returning":return null}return e.jsx(ne,{label:"Action",size:"large",children:e.jsx("div",{className:t.body,children:n==="Pending"&&e.jsx(g,{appearance:"subtle",onClick:()=>a(r),children:"Accept Order"})})})}const Ft=R({body:{...Y,justifyContent:"space-between"}}),Mt=new D("Admin","Order","Detail","Append");function Vt({OrderId:r,Refresh:n}){const o=Ft(),[t,s]=x.useState(),{dispatch:c,dispatchToast:a}=E(Mt),{run:i}=y.Order.Post.useAppend({manual:!0,onError(d,l){c({Message:"Failed Append Comment",Request:l,Error:d})},onSuccess(){a(e.jsx(A,{children:e.jsx(T,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:u}=y.Order.Post.useClose({manual:!0,onError(d,l){c({Message:"Failed Close Order",Request:l,Error:d})},onSuccess(){a(e.jsx(A,{children:e.jsx(T,{children:"Order Closed"})}),{intent:"success"}),n()}});return e.jsxs(e.Fragment,{children:[e.jsx(ne,{label:"Append",size:"large",children:e.jsx(Wr,{value:t,onChange:(d,l)=>s(l.value),maxLength:1e3})}),e.jsxs("div",{className:o.body,children:[e.jsx(g,{onClick:()=>u(r,t),children:"Force Close with Reason"}),e.jsx(g,{appearance:"primary",onClick:()=>i(r,t),children:"Add Comment"})]})]})}const tr=R({ten:{flexBasis:"10%",flexGrow:0}}),_t=[w({columnId:"Product",renderHeaderCell(){return e.jsx(B,{children:"Name"})},renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell(){return e.jsx(B,{children:"Type"})},renderCell(r){return e.jsx(S,{children:Object.entries(r.Type).reduce((n,o)=>`${n} ${o[0]} : ${o[1]} ;`,"")})}}),w({columnId:"Quantity",renderHeaderCell(){return e.jsx(B,{className:tr().ten,children:"Quantity"})},renderCell(r){return e.jsx(S,{className:tr().ten,children:r.Quantity})}})];function $t({Items:r}){return e.jsx(J,{Items:r||[],Columns:_t})}const Gt=new D("Admin","Order","Detail","Shipment");function Ut({OrderId:r,TrackingNumber:n,Refresh:o}){const[t,{setTrue:s,setFalse:c}]=X(),[a,i]=x.useState(n),{dispatch:u,dispatchToast:d}=E(Gt),{run:l}=y.Order.Post.useShip({manual:!0,onError(p,f){u({Message:"Failed Update Tracking Number",Request:f,Error:p})},onSuccess(){d(e.jsx(A,{children:e.jsx(T,{children:"Tracking Number Updated"})}),{intent:"success"}),c(),o()}});return e.jsx(ne,{label:"Shipment",size:"large",children:e.jsx(le,{value:a,disabled:!t,appearance:"underline",onChange:(p,f)=>i(f.value),placeholder:"Fill in this field to ship the order.",contentAfter:t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>l(r,a)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})})})}const Lt=R({body:{...oe,rowGap:U.spacingVerticalXL}}),Pe=new D("Admin","Order","Detail");function Xt({OrderId:r}){const n=Lt(),[o,{setTrue:t,setFalse:s}]=X(),{Nav:c,Paths:a}=fe(),i=parseInt(a.at(2)),{data:u,run:d}=$(()=>y.Order.Get.Detail(r,Pe),{manual:!0,onError:Pe.error}),{data:l,run:p}=$(()=>y.Order.Get.Order(r),{onError(m){c("Admin","Order"),Pe.error(m)},manual:!0});function f(){p(),d()}return x.useEffect(()=>{i===r?(f(),t()):s()},[i]),e.jsxs(e.Fragment,{children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(fr,{}),onClick:()=>c("Admin","Order",r)}),e.jsxs(pr,{open:o,position:"end",size:"medium",modalType:"alert",children:[e.jsx(hr,{children:e.jsx(mr,{action:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{}),onClick:()=>c("Admin","Order")}),children:"Order Detail"})}),e.jsxs(xr,{className:n.body,children:[e.jsx(at,{OrderId:r,Order:l,Admin:!0}),e.jsx(ne,{label:"Required Products",size:"large",children:e.jsx($t,{Items:u?.ShopCart})}),e.jsx(Ut,{OrderId:r,TrackingNumber:l?.TrackingNumber,Refresh:f}),e.jsx(it,{Comments:u?.Comments}),e.jsx(Vt,{OrderId:r,Refresh:f}),e.jsx(Ht,{OrderId:r,Status:l?.Status,Refresh:f})]})]})]})}const xe=R({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"},ten:{flexBasis:"10%",flexGrow:0}}),He=new D("Admin","Order"),Kt=[...ct(He).slice(0,-1),w({columnId:"User",renderHeaderCell:()=>e.jsx(B,{className:xe().ten,children:"User"}),renderCell(r){return e.jsx(S,{className:xe().ten,children:r.User})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:xe().two,children:"Action"}),renderCell(r){return e.jsx(S,{className:xe().twoc,children:e.jsx(Xt,{OrderId:r.Id})})}})];function Wt(){const{data:r}=$(()=>y.Order.Get.List(He),{onError:He.error});return e.jsx(J,{Items:r||[],Columns:Kt})}const Jt=R({body:{...Y,alignItems:"center"},input:{flexGrow:1}}),Ae=new D("Admin","Product","Detail","Category");function Qt({ProdId:r}){const[n,o]=x.useState(""),[t,{setTrue:s,setFalse:c}]=X();$(()=>y.Product.Get.Category(r),{onSuccess(v){v&&o(v)},onError:Ae.error});const{dispatch:a,dispatchToast:i}=E(Ae),{run:u}=y.Product.Patch.useCategory({manual:!0,onError(v,b){a({Message:"Failed Update Category",Request:b,Error:v})},onSuccess(){i(e.jsx(A,{children:e.jsx(T,{children:"Category Updated"})}),{intent:"success"}),c()}}),{data:d}=$(()=>Xe.Gallery.Get.Categories(),{onSuccess(v){p(v)},onError:Ae.error}),[l,p]=x.useState(d),[f,m]=x.useState(""),z=Jt();return e.jsxs("div",{className:z.body,children:[e.jsx(Ke,{size:"large",disabled:!t,children:"Category"}),e.jsxs(Ne,{className:z.input,size:"large",disabled:!t,freeform:!0,placeholder:n||"Pending",appearance:"underline",onChange:v=>{const b=v.target.value.trim(),N=d?.filter(k=>k.toLowerCase().indexOf(b.toLowerCase())===0);p(N),b&&N&&N.length<1?m(b):m("")},onOptionSelect:(v,b)=>{const N=b.optionText;o(N),N&&d?.includes(N)?m(""):m(N)},children:[f&&e.jsxs(ue,{text:f,children:['Create New "',f,'"']},f),l?.map(v=>e.jsx(ue,{children:v},v))]}),t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>n&&u(r,n)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})]})}const Yt=new D("Admin","Product","Detail","Combo","Delete");function Zt({ComboId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(Yt),{run:s}=y.Product.Delete.useCombo({manual:!0,onError(c,a){o({Message:"Failed Delete Combo",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Combo Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}function eo(r){var n=lt(r),o=n%1;return n===n?o?n-o:n:0}function Br(r){return typeof r=="number"&&r==eo(r)}const ro=[w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ne,{defaultValue:r.Current,defaultSelectedOptions:[r.Current],onOptionSelect:(n,o)=>r.Update(o.optionValue),children:r.Types.map((n,o)=>e.jsx(ue,{children:n},o))})})}})],to=R({body:{...Y,justifyContent:"flex-end",alignItems:"center",columnGap:U.spacingVerticalM,marginTop:U.spacingHorizontalM}}),Te=new D("Admin","Product","Detail","Combo","Detail");function oo({Id:r,ProdId:n,Combo:o,Stock:t,Refresh:s}){const[c,{toggle:a}]=X(),[i,u]=x.useState(o),[d,l]=x.useState(t),{data:p}=$(()=>y.Product.Get.Variants(n,Te),{onError:Te.error}),{dispatch:f,dispatchToast:m}=E(Te),{run:z}=y.Product.Patch.useCombo({manual:!0,onError(v,b){f({Message:"Failed Update Combo",Request:b,Error:v})},onSuccess(){m(e.jsx(A,{children:e.jsx(T,{children:"Combo Updated"})}),{intent:"success"}),s(),a()}});return e.jsxs(ye,{open:c,onOpenChange:a,children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Combo Detail"}),e.jsxs(Be,{children:[e.jsx(J,{Items:p?.map(v=>({Current:i[v.Name],Update(b){i[v.Name]=b,u({...i})},...v}))||[],Columns:ro}),e.jsxs("div",{className:to().body,children:[e.jsx(Ke,{children:"Stock"}),e.jsx(br,{value:d,min:0,onChange:(v,b)=>{if(b.value)l(b.value);else if(b.displayValue){const N=parseInt(b.displayValue);Br(N)&&l(N)}}}),e.jsx(g,{appearance:"primary",onClick:()=>z(r,i,d),children:"Submit"})]})]})]})})]})}const no=[w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ne,{onOptionSelect:(n,o)=>r.Update(o.optionValue),children:r.Types.map((n,o)=>e.jsx(ue,{children:n},o))})})}})],so=R({body:{...Y,justifyContent:"flex-end",alignItems:"center",columnGap:U.spacingVerticalM,marginTop:U.spacingHorizontalM}}),Ee=new D("Admin","Product","Detail","Combo","NewCombo");function ao({ProdId:r,Refresh:n}){const[o,{toggle:t}]=X(),[s,c]=x.useState({}),[a,i]=x.useState(1),{data:u}=$(()=>y.Product.Get.Variants(r,Ee),{onSuccess(f){for(const m of f)s[m.Name]="";c({...s})},onError:Ee.error}),{dispatch:d,dispatchToast:l}=E(Ee),{run:p}=y.Product.Post.useCombo({manual:!0,onError(f,m){d({Message:"Failed Create Combo",Request:m,Error:f})},onSuccess(){l(e.jsx(A,{children:e.jsx(T,{children:"Combo Created"})}),{intent:"success"}),n(),t()}});return e.jsxs(ye,{open:o,onOpenChange:t,children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),children:"New Combo"})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"New Combo"}),e.jsxs(Be,{children:[e.jsx(J,{Items:u?.map(f=>({Update(m){s[f.Name]=m,c({...s})},...f}))||[],Columns:no}),e.jsxs("div",{className:so().body,children:[e.jsx(Ke,{children:"Stock"}),e.jsx(br,{value:a,min:0,onChange:(f,m)=>{if(m.value)i(m.value);else if(m.displayValue){const z=parseInt(m.displayValue);Br(z)&&i(z)}}}),e.jsx(g,{appearance:"primary",onClick:()=>p(r,s,a),children:"Create"})]})]})]})})]})}const ee=R({body:{...Y,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},five:{flexBasis:"5%",flexGrow:0}}),or=new D("Admin","Product","Detail","Combo"),io=[w({columnId:"Id",renderHeaderCell:()=>e.jsx(B,{className:ee().four,children:"Id"}),renderCell(r){return e.jsx(S,{className:ee().four,children:r.Id})}}),w({columnId:"Combo",renderHeaderCell:()=>e.jsx(B,{children:"Combo"}),renderCell(r){return e.jsx(S,{children:Object.entries(r.Combo).reduce((n,o)=>`${n} ${o[0]} : ${o[1]} ;`,"")})}}),w({columnId:"Stock",renderHeaderCell:()=>e.jsx(B,{className:ee().five,children:"Stock"}),renderCell(r){return e.jsx(S,{className:ee().five,children:r.Stock})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:ee().seven,children:"Action"}),renderCell(r){return e.jsxs(S,{className:ee().seven,children:[e.jsx(oo,{...r}),e.jsx(Zt,{ComboId:r.Id,Refresh:r.Refresh})]})}})];function co({ProdId:r}){const{data:n,run:o}=$(()=>Xe.Product.Get.Combo(r,or),{onError:or.error});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:ee().body,children:[e.jsx(Je,{children:"Combo"}),e.jsx(ao,{ProdId:r,Refresh:o})]}),e.jsx(J,{Items:n?.map(t=>({ProdId:r,Refresh:o,...t}))||[],Columns:io})]})}const lo=new D("Admin","Product","Detail","Delete");function uo({ProdId:r}){const{Nav:n}=fe(),{dispatch:o,dispatchToast:t}=E(lo),{run:s}=y.Product.Delete.useProduct({manual:!0,onError(c,a){o({Message:"Failed Delete Product",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Product Deleted"})}),{intent:"success"}),n("/Admin"),location.reload()}});return e.jsx("div",{children:e.jsx(g,{onClick:()=>s(r),children:"Delete Product"})})}const nr=new D("Admin","Product","Detail","Name");function fo({ProdId:r}){const[n,o]=x.useState(""),[t,{setTrue:s,setFalse:c}]=X(),{Nav:a}=fe();$(()=>y.Product.Get.Name(r),{onSuccess(l){o(l)},onError(l){a("Admin"),nr.error(l)}});const{dispatch:i,dispatchToast:u}=E(nr),{run:d}=y.Product.Patch.useName({manual:!0,onError(l,p){i({Message:"Failed Update Name",Request:p,Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Name Updated"})}),{intent:"success"}),c()}});return e.jsx(le,{size:"large",value:n,disabled:!t,appearance:"underline",onChange:(l,p)=>o(p.value),contentBefore:e.jsx(gr,{children:"Name"}),contentAfter:t?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>d(r,n)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:s})})}const po=R({box:{...Y,columnGap:U.spacingHorizontalL},img:{...Jr,aspectRatio:"1",width:"50%"},cap:{...oe,flexGrow:1,rowGap:U.spacingVerticalL}}),sr=new D("Admin","Product","Detail","Photo","Edit");function ho({Photo:{Id:r,Cover:n,Caption:o},Refresh:t}){const s=po(),[c,a]=x.useState(o||""),{dispatch:i,dispatchToast:u}=E(sr),{run:d}=y.Product.Patch.useCaption({manual:!0,onError(f,m){i({Message:"Failed Update Caption",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Caption Updated"})}),{intent:"success"}),t()}}),{run:l}=y.Product.Patch.usePhoto(sr,{manual:!0,onError(f,m){i({Message:"Failed Update Photo",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Photo Updated"})}),{intent:"success"}),t()}}),{run:p}=y.Product.Delete.usePhoto({manual:!0,onError(f,m){i({Message:"Failed Delete Photo",Request:m,Error:f})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Photo Deleted"})}),{intent:"success"}),t()}});return e.jsxs(ye,{children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Image Detail"}),e.jsxs(Be,{className:s.box,children:[e.jsx(Qr,{shape:"rounded",className:s.img,src:n}),e.jsxs("div",{className:s.cap,children:[e.jsx(ne,{label:"Caption",children:e.jsx(le,{value:c,onChange:(f,m)=>a(m.value)})}),e.jsx(g,{onClick:()=>d(r,c),children:"Save Caption"}),e.jsx(g,{onClick:()=>{const f=document.createElement("input");f.type="file",f.accept="image/*",f.onchange=()=>{f.files&&l(r,f.files[0])},f.click()},children:"Replace"}),e.jsx(g,{appearance:"primary",onClick:()=>p(r),children:"Delete"})]})]})]})})]})}const Fe=R({f11:{flexBasis:"11%",flexGrow:0},box:{...Y,justifyContent:"space-between"}}),se=new D("Admin","Product","Detail","Photo"),mo=[vr(70,se),w({columnId:"Caption",renderHeaderCell:()=>e.jsx(B,{children:"Caption"}),renderCell(r){return e.jsx(S,{children:r.Caption})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:Fe().f11,children:"Action"}),renderCell(r){const{dispatch:n}=E(se),{run:o}=y.Product.Post.useMovePhoto({manual:!0,onError(t,s){n({Message:"Failed Update Order",Request:s,Error:t})},onSuccess:ge});return e.jsxs(S,{className:Fe().f11,children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(Yr,{}),onClick:()=>o(r.Id,!0)}),e.jsx(g,{appearance:"subtle",icon:e.jsx(Zr,{}),onClick:()=>o(r.Id,!1)}),e.jsx(ho,{Photo:r,Refresh:ge})]})}})];let ge;function xo({ProdId:r}){const{data:n,run:o}=$(()=>Xe.Product.Get.Carousel(r,se),{onError:se.error});ge=o;const{dispatch:t,dispatchToast:s}=E(se),{run:c}=y.Product.Post.usePhoto(se,{manual:!0,onError(a,i){t({Message:"Failed Upload Photo",Request:i,Error:a})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Photo Uploaded"})}),{intent:"success"}),ge()}});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:Fe().box,children:[e.jsx(Je,{children:"Photos"}),e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),onClick:()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=()=>{a.files&&c(r,a.files[0])},a.click()},children:"New Image"})]}),e.jsx(J,{Items:n||[],Columns:mo})]})}const bo=new D("Admin","Product","Detail","Variant","Delete");function go({VariantId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(bo),{run:s}=y.Product.Delete.useVariant({manual:!0,onError(c,a){o({Message:"Failed Delete Variant",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"Variant Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}const vo=new D("Admin","Product","Detail","Variant","Edit","TypeDelete");function jo({VariantId:r,Type:n,Refresh:o}){const{dispatch:t,dispatchToast:s}=E(vo),{run:c}=y.Product.Delete.useType({manual:!0,onError(a,i){t({Message:"Failed Delete Type",Request:i,Error:a})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Type Deleted"})}),{intent:"success"}),o()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>c(r,n)})}const ko=new D("Admin","Product","Detail","Variant","Edit","Name");function yo({Id:r,Name:n}){const[o,t]=x.useState(n),[s,{setTrue:c,setFalse:a}]=X(),{dispatch:i,dispatchToast:u}=E(ko),{run:d}=y.Product.Patch.useVariantName({manual:!0,onError(l,p){i({Message:"Failed Update Variant Name",Request:p[0],Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Variant Name Updated"})}),{intent:"success"}),a()}});return e.jsx(le,{size:"large",value:o,disabled:!s,appearance:"underline",onChange:(l,p)=>t(p.value),contentBefore:e.jsx(gr,{children:"Name"}),contentAfter:s?e.jsx(g,{appearance:"subtle",icon:e.jsx(je,{}),onClick:()=>d(r,o)}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{}),onClick:c})})}const wo=R({body:{...oe,rowGap:U.spacingVerticalM}}),Co=new D("Admin","Product","Detail","Variant","Edit","Type");function Sr({VariantId:r,Type:n,Refresh:o,New:t}){const s=wo(),[c,{toggle:a}]=X(),[i,u]=x.useState(n||""),{dispatch:d,dispatchToast:l}=E(Co),p={manual:!0,onError(z,v){d({Message:`Failed ${t?"Create":"Update"} Type ${i}`,Request:v,Error:z})},onSuccess(z){l(e.jsxs(A,{children:[e.jsxs(T,{children:["Type ",t?"Created":"Updated"]}),e.jsxs(et,{children:[z," ",i]})]}),{intent:"success"}),o(),u(""),a()}},{run:f}=y.Product.Post.useType(p),{run:m}=y.Product.Patch.useType(p);return e.jsxs(jr,{withArrow:!0,open:c,onOpenChange:a,children:[e.jsx(kr,{disableButtonEnhancement:!0,children:t?e.jsx(g,{icon:e.jsx(Se,{}),appearance:"primary",children:"New Type"}):e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsxs(yr,{className:s.body,children:[e.jsx(ne,{label:"Type Name",children:e.jsx(le,{value:i,onChange:(z,v)=>u(v.value)})}),e.jsx(g,{onClick:()=>t?f(r,i):m(r,n,i),children:"Submit"})]})]})}const Me=R({body:{...oe,rowGap:U.spacingVerticalM},twelve:{flexBasis:"12%",flexGrow:0}}),zo=[w({columnId:"Name",renderHeaderCell:()=>e.jsx(B,{children:"Name"}),renderCell(r){return e.jsx(S,{children:r.Name})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:Me().twelve,children:"Action"}),renderCell(r){return e.jsxs(S,{className:Me().twelve,children:[e.jsx(Sr,{VariantId:r.VariantId,Type:r.Name,Refresh:r.Refresh}),e.jsx(jo,{VariantId:r.VariantId,Type:r.Name,Refresh:r.Refresh})]})}})];function Bo({Variant:r,Refresh:n}){return e.jsxs(ye,{children:[e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(Z,{})})}),e.jsx(we,{children:e.jsxs(Ce,{children:[e.jsx(ze,{action:e.jsx(Q,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{})})}),children:"Variant Detail"}),e.jsxs(Be,{className:Me().body,children:[e.jsx(yo,{Id:r.Id,Name:r.Name}),e.jsx(J,{Items:r.Types.map((o,t)=>({Id:t,Name:o,VariantId:r.Id,Refresh:n})),Columns:zo})]}),e.jsx(rt,{children:e.jsx(Sr,{VariantId:r.Id,Refresh:n,New:!0})})]})})]})}const So=R({body:{...oe,rowGap:U.spacingVerticalM}}),No=new D("Admin","Product","Detail","Variant","New");function Oo({ProdId:r,Refresh:n}){const o=So(),[t,{toggle:s}]=X(),[c,a]=x.useState(""),{dispatch:i,dispatchToast:u}=E(No),{run:d}=y.Product.Post.useVariant({manual:!0,onError(l,p){i({Message:"Failed Create Variant",Request:p,Error:l})},onSuccess(){u(e.jsx(A,{children:e.jsx(T,{children:"Variant Created"})}),{intent:"success"}),n(),a(""),s()}});return e.jsxs(jr,{withArrow:!0,open:t,onOpenChange:s,children:[e.jsx(kr,{disableButtonEnhancement:!0,children:e.jsx(g,{appearance:"primary",icon:e.jsx(Se,{}),children:"New Variant"})}),e.jsxs(yr,{className:o.body,children:[e.jsx(ne,{required:!0,label:"Variant Name",children:e.jsx(le,{value:c,onChange:(l,p)=>a(p.value)})}),e.jsx(g,{onClick:()=>d(r,c),children:"Add"})]})]})}const re=R({body:{...Y,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},twelve:{flexBasis:"12%",flexGrow:0}}),ar=new D("Admin","Product","Detail","Variant"),qo=[w({columnId:"Id",renderHeaderCell:()=>e.jsx(B,{className:re().four,children:"Id"}),renderCell(r){return e.jsx(S,{className:re().four,children:r.Id})}}),w({columnId:"Name",renderHeaderCell:()=>e.jsx(B,{className:re().twelve,children:"Name"}),renderCell(r){return e.jsx(S,{className:re().twelve,children:r.Name})}}),w({columnId:"Type",renderHeaderCell:()=>e.jsx(B,{children:"Type"}),renderCell(r){return e.jsx(S,{children:r.Types.reduce((n,o)=>`${n} ${o} ;`,"")})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:re().seven,children:"Action"}),renderCell(r){return e.jsxs(S,{className:re().seven,children:[e.jsx(Bo,{Variant:r,Refresh:Ve}),e.jsx(go,{VariantId:r.Id,Refresh:Ve})]})}})];let Ve;function Do({ProdId:r}){const n=re(),{data:o,run:t}=$(()=>y.Product.Get.Variants(r,ar),{onError:ar.error});return Ve=t,e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:n.body,children:[e.jsx(Je,{children:"Variant"}),e.jsx(Oo,{ProdId:r,Refresh:t})]}),e.jsx(J,{Items:o||[],Columns:qo})]})}const Io=R({body:{...oe,rowGap:U.spacingVerticalXL,paddingBottom:U.spacingVerticalXXXL}});function Po({ProdId:r}){const n=Io(),[o,{toggle:t,setTrue:s}]=X(),{Nav:c,Paths:a}=fe();return x.useEffect(()=>{parseInt(a.at(1))===r&&s()},[a]),e.jsxs(e.Fragment,{children:[e.jsx(g,{appearance:"subtle",icon:e.jsx(fr,{}),onClick:()=>{c("Admin",r),s()}}),e.jsxs(pr,{open:o,onOpenChange:t,position:"end",size:"large",modalType:"alert",children:[e.jsx(hr,{children:e.jsx(mr,{action:e.jsx(g,{appearance:"subtle",icon:e.jsx(de,{}),onClick:()=>{c("Admin"),t()}}),children:"Product Detail"})}),e.jsxs(xr,{className:n.body,children:[e.jsx(fo,{ProdId:r}),e.jsx(Qt,{ProdId:r}),e.jsx(xo,{ProdId:r}),e.jsx(Do,{ProdId:r}),e.jsx(co,{ProdId:r}),"Rich Text Editor is temporarily unavailable.",e.jsx(uo,{ProdId:r})]})]})]})}const ir=R({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"}}),_e=new D("Admin","Product"),Ao=[vr(50,_e),w({columnId:"Product",renderHeaderCell:()=>e.jsx(B,{children:"Product"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ze,{children:r.Name})})}}),w({columnId:"Category",renderHeaderCell:()=>e.jsx(B,{children:"Category"}),renderCell(r){return e.jsx(S,{children:e.jsx(Ze,{children:r.Category})})}}),w({columnId:"Variant",renderHeaderCell:()=>e.jsx(B,{children:"Variant"}),renderCell(r){return e.jsx(S,{children:r.Variant})}}),w({columnId:"Combo",renderHeaderCell:()=>e.jsx(B,{children:"Combo"}),renderCell(r){return e.jsx(S,{children:r.Combo})}}),w({columnId:"Stock",renderHeaderCell:()=>e.jsx(B,{children:"Stock"}),renderCell(r){return e.jsx(S,{children:r.Stock})}}),w({columnId:"Action",renderHeaderCell:()=>e.jsx(B,{className:ir().two,children:"Detail"}),renderCell(r){return e.jsx(S,{className:ir().twoc,children:e.jsx(Po,{ProdId:r.Id})})}})];function To(){const{data:r}=$(()=>y.Product.Get.List(_e),{onError:_e.error});return e.jsx(J,{Items:r||[],Columns:Ao})}function Eo({Items:r,Columns:n,NoHeader:o}){return e.jsxs(tt,{items:r,columns:n,getRowId:t=>t.Id,children:[!o&&e.jsx(ot,{children:e.jsx(er,{children:({renderHeaderCell:t})=>e.jsx(B,{children:t()})})}),e.jsx(nt,{children:({item:t,rowId:s})=>e.jsx(er,{children:({renderCell:c})=>e.jsx(S,{children:c(t)})},s)})]})}const Ro=new D("Admin","User","Delete");function Ho({UserId:r,Refresh:n}){const{dispatch:o,dispatchToast:t}=E(Ro),{run:s}=y.User.Delete.useUser({manual:!0,onError(c,a){o({Message:"Failed Delete User",Request:a,Error:c})},onSuccess(){t(e.jsx(A,{children:e.jsx(T,{children:"User Deleted"})}),{intent:"success"}),n()}});return e.jsx(g,{appearance:"subtle",icon:e.jsx(ke,{}),onClick:()=>s(r)})}const Fo=new D("Admin","User","Grant");function Mo({UserId:r,Admin:n,Refresh:o}){const{dispatch:t,dispatchToast:s}=E(Fo),{run:c}=y.User.Post.useAdmin({manual:!0,onError(i,u){t({Message:"Failed Grant Admin",Request:u,Error:i})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Admin Granted"})}),{intent:"success"}),o()}}),{run:a}=y.User.Delete.useAdmin({manual:!0,onError(i,u){t({Message:"Failed Revoke Admin",Request:u,Error:i})},onSuccess(){s(e.jsx(A,{children:e.jsx(T,{children:"Admin Revoked"})}),{intent:"success"}),o()}});return e.jsx(st,{checked:n,onChange:(i,u)=>{u.checked?c(r):a(r)}})}const Vo=new D("Admin","User"),_o=[w({columnId:"Id",renderHeaderCell:()=>"Id",renderCell(r){return r.Id}}),w({columnId:"Name",renderHeaderCell:()=>"Real Name",renderCell(r){return r.Name}}),w({columnId:"Email",renderHeaderCell:()=>"E-Mail",renderCell(r){return r.EMail}}),w({columnId:"Admin",renderHeaderCell:()=>"Admin",renderCell(r){return e.jsx(Mo,{UserId:r.Id,Admin:r.Admin,Refresh:$e})}}),w({columnId:"Delete",renderHeaderCell:()=>"Delete",renderCell(r){return e.jsx(Ho,{UserId:r.Id,Refresh:$e})}})];let $e;function $o(){const{data:r,run:n}=$(()=>y.User.Get.List(),{onError:Vo.error});return $e=n,e.jsx(Eo,{Items:r||[],Columns:_o})}function Xo(){const{Paths:r}=fe(),n=r.at(1);return x.useMemo(()=>{switch(n){case"Order":return e.jsx(Wt,{});case"User":return e.jsx($o,{});default:return e.jsx(To,{})}},[n])}export{Xo as default}; diff --git a/assets/index-mgGYDFjk.js b/assets/index-B8Uj5x3C.js similarity index 99% rename from assets/index-mgGYDFjk.js rename to assets/index-B8Uj5x3C.js index 0eed1f25..b99ea232 100644 --- a/assets/index-mgGYDFjk.js +++ b/assets/index-B8Uj5x3C.js @@ -1,4 +1,4 @@ -import{j as Oe,u as Ye,a as Te,g as Qe,m as xe,_ as ne,r as E,b as Je,c as Ze,d as _,e as et,f as Ae,B as tt,p as rt,h as qe,i as ye,L as be,k as ge,H as Z,C as nt,s as We,t as O,l as ce,F as de,T as it,n as ot,S as at,o as st,q as lt}from"./index-uoLhYpcj.js";import{S as ft,T as He}from"./Title3-J-L77yUX.js";const ut=t=>Oe(t.root,{children:t.root.children!==void 0&&Oe(t.wrapper,{children:t.root.children})}),ct=(t,r)=>{const{alignContent:n="center",appearance:o="default",inset:e=!1,vertical:i=!1,wrapper:a}=t,s=Ye("divider-");return{alignContent:n,appearance:o,inset:e,vertical:i,components:{root:"div",wrapper:"div"},root:Te(Qe("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":t.children?s:void 0,...t,ref:r}),{elementType:"div"}),wrapper:Te(a,{defaultProps:{id:s,children:t.children},elementType:"div"})}},Ie={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},dt=ne({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),pt=ne({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),ht=ne({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),mt=t=>{const r=dt(),n=pt(),o=ht(),{alignContent:e,appearance:i,inset:a,vertical:s}=t;return t.root.className=xe(Ie.root,r.base,r[e],i&&r[i],!s&&n.base,!s&&a&&n.inset,!s&&n[e],s&&o.base,s&&a&&o.inset,s&&o[e],s&&t.root.children!==void 0&&o.withChildren,t.root.children===void 0&&r.childless,t.root.className),t.wrapper&&(t.wrapper.className=xe(Ie.wrapper,t.wrapper.className)),t},pe=E.forwardRef((t,r)=>{const n=ct(t,r);return mt(n),Je("useDividerStyles_unstable")(n),ut(n)});pe.displayName="Divider";const vt={root:"fui-LargeTitle"},wt=ne({root:{Bahqtrf:"fk6fouc",Be2twd7:"f15afnhw",Bhrd7zp:"fl43uef",Bg96gwp:"fr3w3wp"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fr3w3wp{line-height:var(--lineHeightHero900);}"]}),yt=Ze({useStyles:wt,className:vt.root,displayName:"LargeTitle"}),Fe=E.createContext({});function Se(){return E.useContext(Fe)}function bt({children:t}){const[r,n]=E.useState({});return _.jsx(Fe.Provider,{value:{Current:r,Update:n},children:t})}function gt({ProdId:t,Quantity:r}){const{List:n,Add:o,Update:e}=et(),{Current:i}=Se(),[a]=Ae(t);return _.jsx(tt,{appearance:"primary",disabled:a,onClick:()=>{const s=n.find(f=>{if(f.ProdId===t){const u=Object.keys(i).sort(),d=Object.keys(f.Type).sort();for(let v=0;v=0||Object.prototype.hasOwnProperty.call(c,l)&&(b[l]=c[l]);return b}function u(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(m,b){for(var l=0;l0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?c:c.capture}function le(c){if("touches"in c){var m=c.touches[0],b=m.pageX,l=m.pageY;return{x:b,y:l}}var S=c.screenX,I=c.screenY;return{x:S,y:I}}var A=function(c){k(m,c);function m(){var b;u(this,m);for(var l=arguments.length,S=Array(l),I=0;IS&&this.props.onSwipeRight(1,l),this.movePosition.deltaY<-S?this.props.onSwipeUp(1,l):this.movePosition.deltaY>S&&this.props.onSwipeDown(1,l)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(l){this.swiper=l,this.props.innerRef(l)}},{key:"render",value:function(){var l=this.props;l.tagName;var S=l.className,I=l.style,y=l.children;l.allowMouseEvents,l.onSwipeUp,l.onSwipeDown,l.onSwipeLeft,l.onSwipeRight,l.onSwipeStart,l.onSwipeMove,l.onSwipeEnd,l.innerRef,l.tolerance;var V=f(l,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return e.default.createElement(this.props.tagName,s({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:S,style:I},V),y)}}]),m}(n.Component);A.displayName="ReactSwipe",A.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},A.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=A})}(fe)),fe}(function(t){(function(r,n){n(t,St())})(qe,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=e(n);function e(i){return i&&i.__esModule?i:{default:i}}r.default=o.default})})(_e);var $={},Ue={exports:{}};/*! +import{j as Oe,u as Ye,a as Te,g as Qe,m as xe,_ as ne,r as E,b as Je,c as Ze,d as _,e as et,f as Ae,B as tt,p as rt,h as qe,i as ye,L as be,k as ge,H as Z,C as nt,s as We,t as O,l as ce,F as de,T as it,n as ot,S as at,o as st,q as lt}from"./index-5gW6pgm0.js";import{S as ft,T as He}from"./Title3-K9gl0VnY.js";const ut=t=>Oe(t.root,{children:t.root.children!==void 0&&Oe(t.wrapper,{children:t.root.children})}),ct=(t,r)=>{const{alignContent:n="center",appearance:o="default",inset:e=!1,vertical:i=!1,wrapper:a}=t,s=Ye("divider-");return{alignContent:n,appearance:o,inset:e,vertical:i,components:{root:"div",wrapper:"div"},root:Te(Qe("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":t.children?s:void 0,...t,ref:r}),{elementType:"div"}),wrapper:Te(a,{defaultProps:{id:s,children:t.children},elementType:"div"})}},Ie={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},dt=ne({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),pt=ne({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),ht=ne({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),mt=t=>{const r=dt(),n=pt(),o=ht(),{alignContent:e,appearance:i,inset:a,vertical:s}=t;return t.root.className=xe(Ie.root,r.base,r[e],i&&r[i],!s&&n.base,!s&&a&&n.inset,!s&&n[e],s&&o.base,s&&a&&o.inset,s&&o[e],s&&t.root.children!==void 0&&o.withChildren,t.root.children===void 0&&r.childless,t.root.className),t.wrapper&&(t.wrapper.className=xe(Ie.wrapper,t.wrapper.className)),t},pe=E.forwardRef((t,r)=>{const n=ct(t,r);return mt(n),Je("useDividerStyles_unstable")(n),ut(n)});pe.displayName="Divider";const vt={root:"fui-LargeTitle"},wt=ne({root:{Bahqtrf:"fk6fouc",Be2twd7:"f15afnhw",Bhrd7zp:"fl43uef",Bg96gwp:"fr3w3wp"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fr3w3wp{line-height:var(--lineHeightHero900);}"]}),yt=Ze({useStyles:wt,className:vt.root,displayName:"LargeTitle"}),Fe=E.createContext({});function Se(){return E.useContext(Fe)}function bt({children:t}){const[r,n]=E.useState({});return _.jsx(Fe.Provider,{value:{Current:r,Update:n},children:t})}function gt({ProdId:t,Quantity:r}){const{List:n,Add:o,Update:e}=et(),{Current:i}=Se(),[a]=Ae(t);return _.jsx(tt,{appearance:"primary",disabled:a,onClick:()=>{const s=n.find(f=>{if(f.ProdId===t){const u=Object.keys(i).sort(),d=Object.keys(f.Type).sort();for(let v=0;v=0||Object.prototype.hasOwnProperty.call(c,l)&&(b[l]=c[l]);return b}function u(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var d=function(){function c(m,b){for(var l=0;l0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?c:c.capture}function le(c){if("touches"in c){var m=c.touches[0],b=m.pageX,l=m.pageY;return{x:b,y:l}}var S=c.screenX,I=c.screenY;return{x:S,y:I}}var A=function(c){k(m,c);function m(){var b;u(this,m);for(var l=arguments.length,S=Array(l),I=0;IS&&this.props.onSwipeRight(1,l),this.movePosition.deltaY<-S?this.props.onSwipeUp(1,l):this.movePosition.deltaY>S&&this.props.onSwipeDown(1,l)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(l){this.swiper=l,this.props.innerRef(l)}},{key:"render",value:function(){var l=this.props;l.tagName;var S=l.className,I=l.style,y=l.children;l.allowMouseEvents,l.onSwipeUp,l.onSwipeDown,l.onSwipeLeft,l.onSwipeRight,l.onSwipeStart,l.onSwipeMove,l.onSwipeEnd,l.innerRef,l.tolerance;var V=f(l,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return e.default.createElement(this.props.tagName,s({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:S,style:I},V),y)}}]),m}(n.Component);A.displayName="ReactSwipe",A.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},A.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=A})}(fe)),fe}(function(t){(function(r,n){n(t,St())})(qe,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=e(n);function e(i){return i&&i.__esModule?i:{default:i}}r.default=o.default})})(_e);var $={},Ue={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames diff --git a/assets/index-preb04bd.js b/assets/index-RTZb5SHW.js similarity index 77% rename from assets/index-preb04bd.js rename to assets/index-RTZb5SHW.js index bcdddf4f..8fc11400 100644 --- a/assets/index-preb04bd.js +++ b/assets/index-RTZb5SHW.js @@ -1 +1 @@ -import{L as t,k as o,H as e,d as a,ad as n,aQ as u}from"./index-uoLhYpcj.js";import{H as i}from"./Columns-1o5Vx9nI.js";const s=new t("History");function H(){const{data:r}=o(()=>e.Order.Get.List(s),{onError:s.error});return a.jsx(n,{Items:r||[],Columns:u(()=>i(s))})}export{H as default}; +import{L as t,k as o,H as e,d as a,ad as n,aQ as u}from"./index-5gW6pgm0.js";import{H as i}from"./Columns-OZmivVgq.js";const s=new t("History");function H(){const{data:r}=o(()=>e.Order.Get.List(s),{onError:s.error});return a.jsx(n,{Items:r||[],Columns:u(()=>i(s))})}export{H as default}; diff --git a/assets/index-SzMF7gre.js b/assets/index-SzMF7gre.js new file mode 100644 index 00000000..2a6788a9 --- /dev/null +++ b/assets/index-SzMF7gre.js @@ -0,0 +1 @@ +import{a as C,g as j,j as m,m as v,r as i,aU as te,N as ae,E as fe,U as q,R as M,aV as ie,O as V,aW as ce,X as G,_,i as I,L as H,C as ne,t as w,k as R,H as E,d as c,aX as se,aS as le,F as de,l as ue}from"./index-5gW6pgm0.js";import{i as $,b as be,t as W}from"./toFinite-ZQ51RADL.js";import{u as he,a as ve,T as ge,S as F}from"./Title3-K9gl0VnY.js";const ke=(e,r)=>{const{animation:o,appearance:t}=he(),{animation:a=o??"wave",appearance:f=t??"opaque"}=e,n=C(j("div",{ref:r,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...e}),{elementType:"div"});return{animation:a,appearance:f,components:{root:"div"},root:n}},me=(e,r)=>m(ve,{value:r.skeletonGroup,children:m(e.root,{})}),pe={root:"fui-Skeleton"},we=e=>(e.root.className=v(pe.root,e.root.className),e),xe=e=>{const{animation:r,appearance:o}=e;return{skeletonGroup:i.useMemo(()=>({animation:r,appearance:o}),[r,o])}},J=i.forwardRef((e,r)=>{const o=ke(e,r),t=xe(o);return we(o),me(o,t)});J.displayName="Skeleton";const ye=(e,{referenceLabel:r,referenceId:o},t)=>{const{checkbox:a={},onSelectionChange:f,floatingAction:n,onClick:s,onKeyDown:d}=e,{findAllFocusable:b}=te(),u=i.useRef(null),[g,x]=ae({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),k=[e.selected,e.defaultSelected,f].some(l=>typeof l<"u"),[S,y]=i.useState(!1),z=i.useCallback(l=>{if(!t.current)return!1;const p=b(t.current),D=l.target,ee=p.some(oe=>oe.contains(D)),re=u?.current===D;return ee&&!re},[t,b]),h=i.useCallback(l=>{if(z(l))return;const p=!g;x(p),f&&f(l,{selected:p})},[f,g,x,z]),B=i.useCallback(l=>{[fe].includes(l.key)&&(l.preventDefault(),h(l))},[h]),Q=i.useMemo(()=>{if(!k||n)return;const l={};return o?l["aria-labelledby"]=o:r&&(l["aria-label"]=r),q(a,{defaultProps:{ref:u,type:"checkbox",checked:g,onChange:p=>h(p),onFocus:()=>y(!0),onBlur:()=>y(!1),...l},elementType:"input"})},[a,n,g,k,h,o,r]),Y=i.useMemo(()=>{if(n)return q(n,{defaultProps:{ref:u},elementType:"div"})},[n]),Z=i.useMemo(()=>k?{onClick:M(s,h),onKeyDown:M(d,B)}:null,[k,h,s,d,B]);return{selected:g,selectable:k,selectFocused:S,selectableCardProps:Z,checkboxSlot:Q,floatingActionSlot:Y}},X=i.createContext(void 0),T={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},ze=X.Provider,Be=()=>{var e;return(e=i.useContext(X))!==null&&e!==void 0?e:T},qe={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},Ce=({focusMode:e="off",...r})=>{const o=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(f=>r[f]),a={...ce({tabBehavior:qe[o?"no-tab":e]}),tabIndex:0};return{interactive:o,focusAttributes:!o&&e==="off"?null:a}},je=(e,r)=>{const{appearance:o="filled",orientation:t="vertical",size:a="medium"}=e,[f,n]=i.useState(T.selectableA11yProps.referenceId),[s,d]=i.useState(T.selectableA11yProps.referenceId),b=ie(),{selectable:u,selected:g,selectableCardProps:x,selectFocused:k,checkboxSlot:S,floatingActionSlot:y}=ye(e,{referenceId:f,referenceLabel:s},b),z=V(b,r),{interactive:h,focusAttributes:B}=Ce(e);return{appearance:o,orientation:t,size:a,interactive:h,selectable:u,selectFocused:k,selected:g,selectableA11yProps:{setReferenceId:n,referenceId:f,referenceLabel:s,setReferenceLabel:d},components:{root:"div",floatingAction:"div",checkbox:"input"},root:C(j("div",{ref:z,role:"group",...B,...e,...x}),{elementType:"div"}),floatingAction:y,checkbox:S}},Se=(e,r)=>m(e.root,{children:G(ze,{value:r,children:[e.checkbox?m(e.checkbox,{}):null,e.floatingAction?m(e.floatingAction,{}):null,e.root.children]})}),A={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},Ne=_({root:{qhf8xq:"f10pi13n",pnb5jt:"f1rzl30s",Elg2ur:"f1chxnfo",B184ckt:"f17xb19f"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".f1rzl30s>:not(.fui-CardPreview__logo){display:block;}",".f1chxnfo>:not(.fui-CardPreview__logo){height:100%;}",".f17xb19f>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),Pe=e=>{const r=Ne();return e.root.className=v(A.root,r.root,e.root.className),e.logo&&(e.logo.className=v(A.logo,r.logo,e.logo.className)),e},L={root:"fui-CardFooter",action:"fui-CardFooter__action"},Fe=_({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:"f4akndk",Belr9w4:"fe5j3v"},action:{Frg6f3:["fcgxt0o","f1ujusj6"]}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f4akndk{column-gap:12px;}",".fe5j3v{row-gap:12px;}",".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"]}),Te=e=>{const r=Fe();return e.root.className=v(L.root,r.root,e.root.className),e.action&&(e.action.className=v(L.action,r.action,e.action.className)),e},N={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},Ae=_({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),Ge=e=>{const r=Ae(),o={horizontal:r.orientationHorizontal,vertical:r.orientationVertical},t={small:r.sizeSmall,medium:r.sizeMedium,large:r.sizeLarge},a={filled:r.filled,"filled-alternative":r.filledAlternative,outline:r.outline,subtle:r.subtle},f={filled:r.filledInteractiveSelected,"filled-alternative":r.filledAlternativeInteractiveSelected,outline:r.outlineInteractiveSelected,subtle:r.subtleInteractiveSelected},n={filled:r.filledInteractive,"filled-alternative":r.filledAlternativeInteractive,outline:r.outlineInteractive,subtle:r.subtleInteractive},s=e.interactive||e.selectable,d=i.useMemo(()=>e.selectable?e.selectFocused?r.selectableFocused:"":r.focused,[e.selectFocused,e.selectable,r.focused,r.selectableFocused]);return e.root.className=v(N.root,r.root,o[e.orientation],t[e.size],a[e.appearance],s&&n[e.appearance],e.selected&&f[e.appearance],d,s&&r.highContrastInteractive,e.selected&&r.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=v(N.floatingAction,r.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=v(N.checkbox,r.hiddenCheckbox,e.checkbox.className)),e};function _e({selectableA11yProps:e}){return{selectableA11yProps:e}}const U=i.forwardRef((e,r)=>{const o=je(e,r),t=_e(o);return Ge(o),Se(o,t)});U.displayName="Card";const Ie=(e,r)=>{const{action:o}=e;return{components:{root:"div",action:"div"},root:C(j("div",{ref:r,...e}),{elementType:"div"}),action:q(o,{elementType:"div"})}},He=e=>G(e.root,{children:[e.root.children,e.action&&m(e.action,{})]}),K=i.forwardRef((e,r)=>{const o=Ie(e,r);return Te(o),He(o)});K.displayName="CardFooter";const Re=(e,r)=>{const{logo:o}=e,{selectableA11yProps:{referenceLabel:t,referenceId:a,setReferenceLabel:f,setReferenceId:n}}=Be(),s=V(r,i.useRef(null));return i.useEffect(()=>{if(!(t&&a)&&s.current&&s.current.parentNode){const d=s.current.parentNode.querySelector(`.${A.root} > img`);if(d){const b=d.getAttribute("aria-label"),u=d.getAttribute("aria-describedby");u?n(u):d.alt?f(d.alt):b&&f(b)}}},[f,t,s,a,n]),{components:{root:"div",logo:"div"},root:C(j("div",{ref:s,...e}),{elementType:"div"}),logo:q(o,{elementType:"div"})}},Ee=e=>G(e.root,{children:[e.root.children,e.logo&&m(e.logo,{})]}),O=i.forwardRef((e,r)=>{const o=Re(e,r);return Pe(o),Ee(o)});O.displayName="CardPreview";var De="[object AsyncFunction]",Me="[object Function]",We="[object GeneratorFunction]",Le="[object Proxy]";function Ve(e){if(!$(e))return!1;var r=be(e);return r==Me||r==We||r==De||r==Le}var $e=9007199254740991,Je=/^(?:0|[1-9]\d*)$/;function Xe(e,r){var o=typeof e;return r=r??$e,!!r&&(o=="number"||o!="symbol"&&Je.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Ke}function Qe(e){return e!=null&&Oe(e.length)&&!Ve(e)}function Ye(e,r,o){if(!$(o))return!1;var t=typeof r;return(t=="number"?Qe(o)&&Xe(r,o.length):t=="string"&&r in o)?Ue(o[r],e):!1}var Ze=Math.floor,er=Math.random;function rr(e,r){return e+Ze(er()*(r-e+1))}var or=parseFloat,tr=Math.min,ar=Math.random;function fr(e,r,o){if(o&&typeof o!="boolean"&&Ye(e,r,o)&&(r=o=void 0),o===void 0&&(typeof r=="boolean"?(o=r,r=void 0):typeof e=="boolean"&&(o=e,e=void 0)),e===void 0&&r===void 0?(e=0,r=1):(e=W(e),r===void 0?(r=e,e=0):r=W(r)),e>r){var t=e;e=r,r=t}if(o||e%1||r%1){var a=ar();return tr(e+a*(r-e+or("1e-"+((a+"").length-1))),r)}return rr(e,r)}const ir=I({card:{flexBasis:"23%",flexGrow:0},img:{aspectRatio:"1",...ne,borderTopLeftRadius:w.borderRadiusMedium,borderTopRightRadius:w.borderRadiusMedium}}),P=new H("Gallery","Category","Card");function cr({Id:e}){const r=ir(),{data:o}=R(()=>E.Product.Get.Basic(e,P),{onError:P.error});return c.jsxs(U,{className:r.card,children:[c.jsx(O,{children:c.jsx(se,{className:r.img,Guid:o?.Cover,Log:P})}),c.jsx(K,{children:c.jsx(le,{href:`/Product/${e}`,children:o?.Name||"Loading..."})})]})}const nr=I({card:{flexBasis:"23%",flexGrow:0},cate:{...de,flexWrap:"wrap",justifyContent:"space-evenly",columnGap:w.spacingVerticalL,rowGap:w.spacingVerticalXL}}),sr=new H("Gallery","Category");function lr({Category:e}){const r=nr(),{data:o,loading:t}=R(()=>E.Gallery.Get.Products(e),{onError:sr.error});return c.jsxs(c.Fragment,{children:[c.jsx(ge,{children:e}),c.jsx("div",{className:r.cate,children:t?c.jsx(F,{size:128}):o[0].map((a,f)=>c.jsx(cr,{Id:a},f)).concat(Array(o[1]).fill(null).map((a,f)=>c.jsx("div",{className:r.card},f+fr(10,100))))})]})}const dr=I({main:{...ue,rowGap:w.spacingVerticalXL}}),ur=new H("Gallery");function gr(){const e=dr(),{data:r,loading:o}=R(()=>E.Gallery.Get.Categories(),{onError:ur.error});return o?c.jsxs(J,{className:e.main,children:[c.jsx(F,{appearance:"translucent",size:32}),c.jsx(F,{size:128})]}):c.jsx("div",{className:e.main,children:r?.map((t,a)=>c.jsx(lr,{Category:t},a))})}export{gr as default}; diff --git a/index.html b/index.html index 3b094a1a..58cd2aee 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ AwaiShop - +