1/*! For license information please see 5725.d0e50384.js.LICENSE.txt */ 2"use strict";(self.webpackChunkvirtual_guide=self.webpackChunkvirtual_guide||[]).push([[5725],{35725:(e,t,n)=>{var r;n.d(t,{ABN:()=>Zt,AI$:()=>ua,AWB:()=>Dc,Abl:()=>Zs,CHz:()=>Fs,DNH:()=>xc,F6c:()=>Ac,Fjh:()=>rc,GIu:()=>Wt,GYC:()=>ic,IBV:()=>ya,KPF:()=>zs,KXz:()=>Pc,O54:()=>gc,Pdl:()=>Cc,TDp:()=>Ts,VjK:()=>Nc,X2v:()=>ha,Y$K:()=>_c,_2U:()=>is,_kl:()=>cl,a2e:()=>Hc,a5x:()=>Ol,abu:()=>Sc,b7G:()=>Bc,bcf:()=>$t,dqp:()=>wa,e0s:()=>ws,eDo:()=>qs,fIy:()=>Ec,glU:()=>Mc,i7d:()=>Tt,ikd:()=>Fc,mg3:()=>Ut,oCg:()=>Ks,phq:()=>ba,ryu:()=>Pt,tmR:()=>Xt});var i=n(17544),o=n(14792),a=n(89510),s=n(7737),c=n(96081),l=n(31274),d=n(19023),f=n(15669),u=n(9076),h=n(91953),m=n(60399);const g=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],p=["mainAxis","crossAxis","limiter"];var v,b,y,w,x,A,S,k,C,O,j,E,D,I,T,z,R,L,M,_,V,P,F,B,N,H,U,W,q,G,Y,K,X,$,Q,J,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,de,fe,ue,he,me,ge,pe,ve,be,ye,we,xe,Ae,Se,ke,Ce,Oe,je,Ee,De,Ie,Te,ze,Re,Le,Me,_e,Ve,Pe,Fe,Be,Ne,He,Ue,We,qe,Ge,Ye,Ke,Xe,$e,Qe,Je,Ze,et,tt,nt,rt,it,ot,at,st;function ct(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function lt(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function dt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"===typeof SuppressedError&&SuppressedError;var ft=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ut=dt(function(e){return ft.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});const ht=(0,l.AH)(v||(v=(0,s.A)(["\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n overflow: hidden;\n position: absolute !important;\n"]))),mt=(0,l.AH)(b||(b=(0,s.A)(["\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"]))),gt=(0,l.AH)(y||(y=(0,s.A)(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"]))),pt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;var n;if(!(e=>/^#[0-9A-F]{6}$/i.test(e))(e))return"";const[r,i,o]=null===(n=e.match(/\w\w/g))||void 0===n?void 0:n.map(e=>parseInt(e,16));return"rgba(".concat(r,", ").concat(i,", ").concat(o,", ").concat(t||1,")")},vt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{shouldForwardProp:t=>!!e.includes(t)||ut(t)}}
2(),bt=e=>{let{css:t}=e;return t?"@media { ".concat(t," };"):""},yt=e=>(0,d.xe)(e),wt=(l.Ay.span.withConfig(vt)(w||(w=(0,s.A)(["\n ","\n display: inline-block;\n padding: ",";\n border-radius: 0.5rem;\n line-height: ",";\n color: ",";\n font-size: 0.65rem;\n background-color: ",";\n\n ",";\n ","\n"])),e=>{if("object"===typeof e.value){const t=e.value,n=t.props&&t.props.width||"1rem";return"width: ".concat(n,";")}return null},e=>"object"===typeof e.value?"0":"0.1rem 0.4rem 0.125rem",e=>"object"===typeof e.value?"1":"1.43",e=>e.theme.colors.greys.white,e=>"alert"===e.status?e.theme.colors.error.primary:e.theme.colors.greys.grey60,yt,bt),l.Ay.button.withConfig(vt)(x||(x=(0,s.A)(["\n border-radius: ",";\n font-size: ",";\n padding: 0.5rem 1rem;\n border-color: transparent;\n transition: background-color 0.1s ease;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n cursor: pointer;\n }\n\n &:focus {\n outline: none;\n }\n\n .ch-icon {\n width: ",";\n height: ",";\n margin-right: 0.25rem;\n }\n\n /* variant styles */\n ","\n ","\n ","\n\n ","\n ","\n"])),e=>e.theme.radii.default,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.iconButtonSizes[e.iconSize||"sm"],e=>e.theme.iconButtonSizes[e.iconSize||"sm"],e=>"primary"===e.variant&&xt,e=>"secondary"===e.variant&&At,e=>"icon"===e.variant&&kt,yt,bt)),xt=(0,l.AH)(A||(A=(0,s.A)(["\n background-color: ",";\n color: ",";\n border: ",";\n box-shadow: ",";\n\n &:focus {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:hover {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:focus:hover {\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:disabled {\n background-color: ",";\n border: ",";\n color: ",";\n cursor: not-allowed;\n }\n"])),e=>e.selected?e.theme.buttons.primary.selected.bgd:e.theme.buttons.primary.static.bgd,e=>e.selected?e.theme.buttons.primary.selected.text:e.theme.buttons.primary.static.text,e=>e.selected?e.theme.buttons.primary.selected.border:e.theme.buttons.primary.static.border,e=>e.theme.buttons.primary.static.shadow,e=>e.theme.buttons.primary.focus.bgd,e=>e.theme.buttons.primary.focus.border,e=>e.theme.buttons.primary.focus.text,e=>e.theme.buttons.primary.focus.shadow,e=>e.theme.buttons.primary.hover.bgd,e=>e.theme.buttons.primary.hover.border,e=>e.theme.buttons.primary.hover.text,e=>e.theme.buttons.primary.hover.shadow,e=>e.theme.buttons.primary.focus.shadow,e=>e.theme.buttons.primary.active.bgd,e=>e.theme.buttons.primary.active.border,e=>e.theme.buttons.primary.active.text,e=>e.theme.buttons.primary.active.shadow,e=>e.theme.buttons.primary.disabled.bgd,e=>e.theme.buttons.primary.disabled.border,e=>e.theme.buttons.primary.disabled.text),At=(0,l.AH)(S||(S=(0,s.A)(["\n background-color: ",";\n color: ",";\n border: ",";\n box-shadow: ",";\n\n &:focus {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:hover {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:focus:hover {\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n border: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:disabled {\n background-color: ",";\n border: ",";\n color: ",";\n cursor: not-allowed;\n }\n"])),e=>e.selected?e.theme.buttons.secondary.selected.bgd:e.theme.buttons.secondary.static.bgd,e=>e.selected?e.theme.buttons.secondary.selected.text:e.theme.buttons.secondary.static.text,e=>e.selected?e.theme.buttons.secondary.selected.border:e.theme.buttons.secondary.static.border,e=>e.theme.buttons.secondary.shadow,e=>e.theme.buttons.secondary.focus.bgd,e=>e.theme.buttons.secondary.focus.border,e=>e.theme.buttons.secondary.focus.text,e=>e.theme.buttons.secondary.focus.shadow,e=>e.theme.buttons.secondary.hover.bgd,e=>e.theme.buttons.secondary.hover.border,e=>e.theme.buttons.secondary.hover.text,e=>e.theme.buttons.secondary.hover.shadow,e=>e.theme.buttons.secondary.focus.shadow,e=>e.theme.buttons.secondary.active.bgd,e=>e.theme.buttons.secondary.active.border,e=>e.theme.buttons.secondary.active.text,e=>e.theme.buttons.secondary.focus.shadow,e=>e.theme.buttons.secondary.disabled.bgd,e=>e.theme.buttons.secondary.disabled.border,e=>e.theme.buttons.secondary.disabled.text),St={sm:(0,l.AH)(k||(k=(0,s.A)(["\n top: -15%;\n left: 76%;\n "]))),md:(0,l.AH)(C||(C=(0,s.A)(["\n top: 4%;\n left: 76%;\n "]))),lg:(0,l.AH)(O||(O=(0,s.A)(["\n top: 10%;\n left: 76%;\n "])))},kt=(0,l.AH)(j||(j=(0,s.A)(["\n background-color: ",";\n color: ",";\n border: ",";\n border-radius: ",";\n padding: 0.1875rem;\n position: relative;\n\n > .ch-label {\n ",";\n }\n\n > .ch-icon {\n width: ",";\n height: ",";\n margin: 0;\n }\n\n &:focus {\n background-color: ",";\n border: ",";\n color: ",";\n color: ",";\n box-shadow: ",";\n }\n\n &:hover {\n background-color: ",";\n border: ",";\n color: ",";\n }\n\n &:active {\n background-color: ",";\n border: ",";\n color: ",";\n }\n\n &:disabled {\n background-color: ",";\n border: ",";\n color: ",";
2\n cursor: not-allowed;\n }\n\n + * {\n position: absolute;\n font-size: 0.55rem;\n z-index: 1;\n ","\n }\n"])),e=>e.selected?e.theme.buttons.icon.selected.bgd:e.theme.buttons.icon.static.bgd,e=>e.selected?e.theme.buttons.icon.selected.text:e.theme.buttons.icon.static.text,e=>e.selected?e.theme.buttons.icon.selected.border:e.theme.buttons.icon.static.border,e=>e.theme.radii.circle,ht,e=>e.theme.iconButtonSizes[e.iconSize||"sm"],e=>e.theme.iconButtonSizes[e.iconSize||"sm"],e=>{let{theme:t,selected:n}=e;return n?t.buttons.icon.selected.bgd:t.buttons.icon.static.bgd},e=>e.theme.buttons.icon.focus.border,e=>e.theme.buttons.icon.focus.text,e=>{let{theme:t,selected:n}=e;return n?t.buttons.icon.selected.text:t.buttons.icon.static.text},e=>e.theme.buttons.icon.focus.shadow,e=>e.theme.buttons.icon.hover.bgd,e=>e.theme.buttons.icon.hover.border,e=>e.theme.buttons.icon.hover.text,e=>e.theme.buttons.icon.active.bgd,e=>e.theme.buttons.icon.active.border,e=>e.theme.buttons.icon.active.text,e=>e.theme.buttons.icon.disabled.bgd,e=>e.theme.buttons.icon.disabled.border,e=>e.theme.buttons.icon.disabled.text,e=>{let{iconSize:t}=e;return t?St[t]:St.sm}),Ct=l.Ay.span.withConfig(vt)(E||(E=(0,s.A)(["\n display: inline-block;\n position: relative;\n"]))),Ot=(0,f.forwardRef)((e,t)=>(0,c.jsxs)(wt,Object.assign({},e,{className:e.className||"",as:e.tag,ref:t,"aria-label":e.label,"data-testid":"button",disabled:e.disabled},{children:[e.icon&&(0,c.jsx)("span",Object.assign({className:"ch-icon","data-testid":"button-icon"},{children:e.icon})),(0,c.jsx)("span",Object.assign({className:"ch-label","data-testid":"button-label"},{children:e.label}))]}))),jt=((0,f.forwardRef)((e,t)=>(0,c.jsx)(Ot,Object.assign({variant:"primary"},e))),(0,f.forwardRef)((e,t)=>(0,c.jsx)(Ot,Object.assign({variant:"secondary"},e)))),Et=(0,f.forwardRef)((e,t)=>(0,c.jsxs)(Ct,{children:[(0,c.jsx)(Ot,Object.assign({ref:t,variant:"icon"},e)),e.badge]})),Dt=e=>{var{className:t,children:n,viewBox:r="0 0 24 24",xmlns:i="http://www.w3.org/2000/svg",width:o,height:a,title:s}=e,l=ct(e,["className","children","viewBox","xmlns","width","height","title"]);const d={width:o,height:a};return(0,c.jsxs)("svg",Object.assign({xmlns:i,className:"Svg ".concat(t||""),height:a,style:d,viewBox:r,width:o},l,{children:[s&&(0,c.jsx)("title",{children:s}),(0,c.jsx)("g",Object.assign({fillRule:"evenodd",fill:"currentColor"},{children:n}))]}))},It={up:"0",right:"90",down:"180",left:"270"},Tt=((0,l.Ay)(Dt).withConfig(vt)(D||(D=(0,s.A)(["\n transform: ",";\n"])),e=>{let{direction:t}=e;return"rotate(".concat(It[t||"up"],"deg)")}),e=>{var{disabled:t=!1}=e,n=ct(e,["disabled"]);return(0,c.jsx)(Dt,Object.assign({},n,{children:t?(0,c.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M4.146 4.146c.196-.195.512-.195.708 0L7.707 7h.007l1 1h-.007L15 14.293v-.007l.894.894-.001.006 3.961 3.96c.195.196.195.512 0 .708-.098.097-.226.146-.354.146-.128 0-.256-.049-.354-.146l-3.747-3.748c-.459.542-1.134.894-1.899.894h-7C5.121 17 4 15.879 4 14.5v-5c0-1.314 1.022-2.383 2.312-2.481L4.146 4.854c-.195-.196-.195-.512 0-.708zM7.293 8H6.5C5.673 8 5 8.673 5 9.5v5c0 .827.673 1.5 1.5 1.5h7c.488 0 .919-.238 1.192-.601L7.293 8zM13.5 7C14.879 7 16 8.121 16 9.5v.566l1.813-1.303c.426-.306.983-.349 1.456-.107.451.231.731.684.731 1.181v4.326c0 .497-.28.95-.731 1.181-.205.104-.424.156-.642.156-.287 0-.571-.089-.814-.263l-1.592-1.144L15 12.873V9.5c0-.827-.673-1.5-1.5-1.5h-3.372l-1-1zm5.313 2.546c-.051-.026-.233-.1-.416.03l-2.256 1.621c-.089.064-.141.16-.141.262v1.082c0 .102.051.197.141.262l2.256 1.622c.182.131.365.054.416.03.055-.029.187-.116.187-.292V9.837c0-.176-.132-.263-.187-.29z"}):(0,c.jsx)("path",{d:"M19 14.164c0 .176-.131.262-.187.29-.052.027-.234.1-.416-.028l-2.256-1.622v-.001c-.09-.064-.141-.16-.141-.262v-1.082c0-.102.051-.197.141-.262l2.255-1.622c.081-.057.159-.075.227-.075.09 0 .16.03.19.046.056.029.187.115.187.29v4.328zm-4 .336c0 .828-.673 1.5-1.5 1.5h-7c-.827 0-1.5-.672-1.5-1.5v-5C5 8.673 5.673 8 6.5 8h7c.827 0 1.5.673 1.5 1.5v5zm4.27-5.843c-.471-.242-1.
2028-.202-1.457.106L16 10.066V9.5C16 8.122 14.879 7 13.5 7h-7C5.121 7 4 8.122 4 9.5v5C4 15.879 5.121 17 6.5 17h7c1.379 0 2.5-1.121 2.5-2.5v-.566l1.814 1.304c.243.174.527.262.813.262.219 0 .438-.051.643-.156.45-.231.73-.683.73-1.18V9.837c0-.497-.28-.95-.73-1.18z"})}))});Tt.displayName="Camera";const zt={up:"0",right:"90",down:"180",left:"270"},Rt=(0,l.Ay)(Dt).withConfig(vt)(I||(I=(0,s.A)(["\n transform: ",";\n"])),e=>{let{direction:t}=e;return"rotate(".concat(zt[t||"up"],"deg)")}),Lt=e=>{var{direction:t="up"}=e,n=ct(e,["direction"]);return(0,c.jsx)(Rt,Object.assign({direction:t},n,{children:(0,c.jsx)("path",{"transform-origin":"center",d:"M8.824 13.88c-.21.18-.526.154-.705-.056-.159-.187-.156-.457-.006-.64l.063-.065 3.523-3c.165-.14.397-.156.577-.05l.074.052 3.477 3c.209.18.232.497.052.706-.16.185-.428.224-.632.104l-.074-.052-3.151-2.72-3.198 2.722z"})}))};Lt.displayName="Caret";const Mt={default:(0,l.AH)(T||(T=(0,s.A)(["\n .ch-caution-background {\n fill: transparent;\n }\n"]))),"fill-warning":(0,l.AH)(z||(z=(0,s.A)(["\n .ch-caution-background {\n fill: ",";\n }\n\n .ch-caution-exclamation {\n fill: ",";\n }\n\n .ch-caution-border {\n fill: ",";\n }\n"])),e=>e.theme.colors.warning.primary,e=>e.theme.colors.greys.white,e=>e.theme.colors.warning.primary),"fill-error":(0,l.AH)(R||(R=(0,s.A)(["\n .ch-caution-background {\n fill: ",";\n }\n\n .ch-caution-exclamation {\n fill: ",";\n }\n\n .ch-caution-border {\n fill: ",";\n }\n"])),e=>e.theme.colors.error.primary,e=>e.theme.colors.greys.white,e=>e.theme.colors.error.primary)},_t=l.Ay.g.withConfig(vt)(L||(L=(0,s.A)(["\n ",";\n"])),e=>Mt[e.variant||"default"]),Vt=e=>(0,c.jsx)(Dt,Object.assign({}
2,e,{children:(0,c.jsxs)(_t,Object.assign({fill:"currentColor",variant:e.variant},{children:[(0,c.jsx)("path",{className:"ch-caution-background",d:"M18.728 15.186l-5.085-8.281C13.293 6.338 12.68 6 12 6c-.68 0-1.294.338-1.642.905l-5.085 8.281c-.351.571-.365 1.258-.04 1.841.336.6.98.972 1.68.972h10.17c.704 0 1.348-.372 1.683-.972.326-.583.312-1.27-.04-1.841"}),(0,c.jsx)("path",{className:"ch-caution-exclamation",d:"M12.572 14.609v1.219h-1.166v-1.219h1.166zm.023-5.388v1.83l-.288 2.727h-.597l-.305-2.727V9.22h1.19z"}),(0,c.jsx)("path",{className:"ch-caution-border",d:"M17.894 16.539c-.161.288-.463.46-.81.46H6.915c-.343 0-.645-.172-.806-.46-.15-.266-.143-.568.017-.829l5.085-8.281c.33-.536 1.25-.538 1.58 0l5.086 8.281c.16.261.167.563.018.829m.834-1.353l-5.085-8.281C13.293 6.338 12.68 6 12 6c-.68 0-1.294.338-1.642.905l-5.085 8.281c-.351.571-.365 1.258-.04 1.841.336.6.98.972 1.68.972h10.17c.704 0 1.348-.372 1.683-.972.326-.583.312-1.27-.04-1.841"})]}))}));Vt.displayName="Caution";const Pt=e=>(0,c.jsx)(Dt,Object.assign({},e,{title:"Chat"},{children:(0,c.jsx)("path",{d:"M8.497 6C7.12 6 6 7.12 6 8.497v9.413l1.022-.727c1.483-1.054 4.17-1.911 5.99-1.911h2.48c1.376 0 2.496-1.121 2.496-2.498V8.497C17.988 7.12 16.868 6 15.491 6H8.497zM5.905 19c-.14 0-.284-.034-.416-.102-.302-.156-.489-.464-.489-.804V8.497C5 6.569 6.568 5 8.497 5h6.994c1.93 0 3.497 1.569 3.497 3.497v4.277c0 1.929-1.568 3.498-3.497 3.498h-2.48c-1.616 0-4.093.791-5.409 1.727l-1.172.833c-.158.111-.34.168-.525.168z"})}));Pt.displayName="Chat";const Ft=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M16.834 9.178c-.18-.21-.494-.238-.705-.061l-5.912 4.975-2.33-2.846c-.175-.214-.491-.245-.703-.07-.214.175-.246.49-.071.703l2.652 3.238.004.006c.037.044.085.073.132.1.015.01.026.025.04.032.068.03.138.046.21.046.056 0 .113-.01.166-.028.038-.013.07-.037.106-.06.015-.01.03-.014.045-.025v-.001l.006-.003 6.299-5.301c.21-.178.239-.493.06-.705"})}));Ft.displayName="Check";const Bt=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8zm0 1c-3.86 0-7 3.141-7 7s3.14 7 7 7 7-3.141 7-7-3.14-7-7-7zm3.493 4.873c.211-.179.526-.15.705.061.177.211.15.527-.061.705l-4.476 3.764-.003.002v.001c-.029.024-.061.035-.091.051-.02.011-.039.027-.061.035-.054.019-.11.028-.166.028-.072 0-.143-.015-.209-.045-.016-.007-.027-.023-.042-.032-.047-.028-.095-.056-.132-.1l-.001-.002-.003-.004-1.84-2.246c-.175-.213-.143-.529.07-.703.213-.177.529-.145.704.07l1.518 1.853z"})}));Bt.displayName="CheckRound";const Nt=e=>(0,c.jsx)(Dt,Object.assign({},e,{title:"Clear"},{children:(0,c.jsx)("path",{d:"M12 5c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7 3.134-7 7-7zM9.172 9.17c-.196.196-.196.513 0 .708L11.293 12l-2.12 2.12c-.197.197-.197.513 0 .708.096.098.224.147.352.147.128 0 .256-.05.354-.147L12 12.707l2.121 2.12c.098.099.226.148.353.148.128 0 .256-.05.354-.147.195-.195.195-.511 0-.707L12.708 12l2.12-2.122c.195-.195.195-.512 0-.707-.195-.195-.512-.195-.707 0l-2.12 2.12-2.122-2.12c-.196-.195-.512-.195-.707 0z"})}));Nt.displayName="Clear";const Ht=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8zm0 1c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 2.559c.276 0 .5.223.5.5V11.5h3c.276 0 .5.224.5.5s-.224.5-.5.5H12c-.276 0-.5-.224-.5-.5V8.059c0-.277.224-.5.5-.5z"})}));Ht.displayName="Clock";const Ut=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M12.616 4C13.379 4 14 4.62 14 5.384c0 .31.171.566.457.684.286.118.588.059.808-.16.539-.54 1.415-.54 1.956-.001l.872.873c.539.539.539 1.417 0 1.956-.22.219-.28.52-.161.807.118.286.374.457.684.457.763 0 1.384.62 1.384 1.384v1.233C20 13.38 19.379 14 18.616 14c-.309 0-.565.17-.684.458-.119.286-.059.588.161.807.539.54.539 1.417 0 1.956l-.872.873c-.541.539-1.417.539-1.956 0-.22-.22-.522-.28-.808-.161-.286.119-.457.374-.457.684C14 19.38 13.379 20 12.616 20h-1.233C10.62 20 10 19.38 10 18.617c0-.31-.171-.565-.457-.684-.292-.12-.589-.06-.808.16-.539.539-1.417.54-1.956 0l-.872-.872c-.261-.261-.405-.608-.406-.978 0-.37.145-.717.406-.98.219-.217.28-.52.16-.805-.119-.287-.375-.458-.684-.458C4.62 14 4 13.38 4 12.617v-1.233C4 10.62 4.62 10 5.383 10c.309 0 .566-.171.684-.457.119-.286.059-.588-.16-.807-.261-.261-.406-.61-.406-.978 0-.37.145-.717.406-.98l.872-.87c.537-.54 1.415-.541 1.956 0 .219.219.523.28.807.16.287-.118.458-.374.458-.684C10 4.62 10.62 4 11.383 4zm0 1h-1.233c-.211 0-.383.172-.383.384 0 .717-.412 1.334-1.075 1.608-.662.274-1.39.13-1.897-.377-.15-.15-.391-.15-.542 0l-.872.872c-.073.072-.113.169-.113.27 0 .103.04.199.113.272.507.507.652 1.234.377 1.897-.274.663-.89 1.074-1.608 1.074-.211 0-.383.172-.383.384v1.233c0 .21.172.383.383.383.718 0 1.334.412 1.608 1.075.275.663.13 1.39-.377 1.897-.073.073-.113.169-.113.27.001.104.04.199.113.27l.872.875c.152.15.393.149.542 0 .337-.338.772-.515 1.22-.515.226 0 .455.045.677.137.663.275 1.075.89 1.075 1.608 0 .21.172.383.383.383h1.233c.212 0 .384-.172.384-.383 0-.717.411-1.333 1.074-1.608.659-.272 1.389-.13 1.898.378.149.149.394.149.542-.001l.872-.872c.149-.15.149-.393 0-.542-.508-.507-.653-1.234-.378-1.897.274-.663.89-1.075 1.608-1.075.212 0 .384-.172.384-.383v-1.233c0-.212-.172-.384-.384-.384-.718 0-1.334-.412-1.608-1.075-.275-.662-.13-1.39.378-1.896.149-.15.149-.393 0-.542l-.872-.872c-.15-.15-.393-.15-.542 0-.509.508-1.239.65-1.898.377C13.412 6.717 13 6.1 13 5.384c0-.212-.172-.384-.384-.384zM12 8c2.206 0 4 1.794 4 4s-1.794 4-4 4-4-1.794-4-4 1.794-4 4-4zm0 1c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3-1.346-3-3-3z"})}));Ut.displayName="Cog";const Wt=e=>{var{title:t="Screen share"}=e,n=ct(e,["title"]);return(0,c.jsx)(Dt,Object.assign({},n,{title:t},{children:(0,c.jsx)("path",{d:"M15.5 17c.276 0 .5.224.5.5s-.224.5-.5.5h-7c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zM18 6c1.103 0 2 .897 2 2v6c0 1.103-.897 2-2 2H6c-1.103 0-2-.897-2-2V8c0-1.103.897-2 2-2zm0 1H6c-.552 0-1 .449-1 1v6c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V8c0-.551-.448-1-1-1z"})}))};Wt.displayName="ScreenShare";const qt=e=>
2(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M12 4c4.418 0 8 3.582 8 8s-3.582 8-8 8-8-3.582-8-8 3.582-8 8-8zm0 1c-3.86 0-7 3.14-7 7 0 3.859 3.14 7 7 7 3.859 0 7-3.141 7-7 0-3.86-3.141-7-7-7zm-3 6c.552 0 1 .448 1 1s-.448 1-1 1-1-.448-1-1 .448-1 1-1zm6 0c.553 0 1 .448 1 1s-.447 1-1 1c-.553 0-1-.448-1-1s.447-1 1-1zm-3 0c.552 0 1 .448 1 1s-.448 1-1 1-1-.448-1-1 .448-1 1-1z"})}));qt.displayName="Dots";const Gt=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M16.042 18H7.959C7.43 18 7 17.57 7 17.042V6.959C7 6.431 7.43 6 7.959 6h5.461v2.131c0 .899.732 1.632 1.632 1.632H17v7.279c0 .528-.43.958-.958.958zm.63-9.293c.014.017.019.038.033.056h-1.653c-.348 0-.632-.284-.632-.632V6.2c.125.074.243.163.34.277l1.912 2.23zm.759-.65L15.52 5.826C15.069 5.301 14.416 5 13.725 5H7.959C6.878 5 6 5.879 6 6.959v10.083C6 18.122 6.878 19 7.959 19h8.083c1.08 0 1.958-.878 1.958-1.958V9.595c0-.564-.202-1.11-.569-1.538z"})}));Gt.displayName="Document";l.Ay.circle.withConfig(vt)(M||(M=(0,s.A)(["\n fill: ",";\n"])),e=>e.theme.colors.primary.main);const Yt=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8zm0 1c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm.016 6.476c.276 0 .5.224.5.5v2.498c0 .276-.224.5-.5.5s-.5-.224-.5-.5v-2.498c0-.276.224-.5.5-.5zM12 8.709c.414 0 .75.335.75.75 0 .414-.336.75-.75.75s-.75-.336-.75-.75c0-.415.336-.75.75-.75z"})}));Yt.displayName="Information";const Kt=(0,l.Ay)(e=>{var t=ct(e,["poorConnection","muted"]);return(0,c.jsx)(Dt,Object.assign({},t))}).withConfig(vt)(_||(_=(0,s.A)(["\n ","\n"])),e=>e.poorConnection?"color: ".concat(e.theme.colors.error.light):"");const Xt=e=>{var{muted:t=!1,poorConnection:n=!1,mutedTitle:r="Muted microphone",unmutedTitle:i="Microphone"}=e,o=ct(e,["muted","poorConnection","mutedTitle","unmutedTitle"]);const a=function(e,t){return e?t?"M4.146 4.146c.196-.195.513-.195.708 0L9.168 8.46h.018l.813.815v.018l5.854 5.854c.002-.005.005-.008.008-.01l.724.724-.008.01 3.276 3.275c.195.195.195.512 0 .707-.098.098-.226.147-.354.147-.127 0-.255-.049-.352-.146l-3.281-3.281C14.82 17.459 13.475 18 11.998 18c-3.308 0-6-2.691-6-6 0-.277.224-.5.5-.5.278 0 .5.223.5.5 0 2.757 2.244 5 5 5 1.2 0 2.29-.436 3.147-1.146l-1.439-1.438c-.14.105-.287.207-.445.285l-.447-.895c.062-.03.116-.073.174-.11l-2.99-2.989v.941H9v-1.063h.88L4.147 4.853c-.196-.194-.196-.511 0-.707zM14.5 19c.276 0 .5.224.5.5s-.224.5-.5.5h-5c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm3-7.5c.276 0 .5.224.5.5 0 1.106-.307 2.14-.83 3.031l-.748-.748c.357-.687.578-1.456.578-2.283 0-.276.224-.5.5-.5zm-6.293 2.317c.25.121.517.183.793.183l.016 1.001-.098-.008c-.359-.012-.76-.089-1.147-.275zm-1.085-1.278c.093.282.234.536.42.757l-.766.644c-.267-.319-.47-.685-.603-1.
2089zM15 11.618v.155c0 .325-.051.643-.139.95l-.867-.868c.001-.027.006-.055.006-.082v-.155h1zm0-2.126v1.062h-1V9.492h1zm0-2.125v1.062h-1V7.367h1zM9.155 6.201l.955.297c-.073.235-.11.48-.11.73v.17h-.463l-.512-.512c.024-.232.061-.463.13-.685zm5.079-1.128c.268.321.469.689.599 1.093l-.951.307c-.091-.283-.231-.537-.415-.759zm-3.514-.765l.453.891c-.246.126-.474.312-.656.535l-.776-.63c.274-.338.603-.604.979-.796zM12 4c.434 0 .853.098 1.245.29l-.44.897C12.553 5.064 12.282 5 12 5l-.031-1z":"M14.5 19c.276 0 .5.224.5.5s-.224.5-.5.5h-5c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zM4.146 4.146c.196-.195.512-.195.708 0l15 15c.195.196.195.512 0 .708-.098.097-.226.146-.354.146-.128 0-.256-.049-.354-.146l-3.282-3.283C14.819 17.458 13.475 18 12 18c-3.309 0-6-2.691-6-6 0-.276.224-.5.5-.5s.5.224.5.5c0 2.757 2.243 5 5 5 1.199 0 2.288-.437 3.146-1.146l-1.452-1.453c-.483.366-1.058.599-1.694.599-1.654 0-3-1.448-3-3.228V9.707L4.146 4.854c-.195-.196-.195-.512 0-.708zM17.5 11.5c.276 0 .5.224.5.5 0 1.112-.31 2.152-.84 3.046l-.747-.746c.362-.693.587-1.467.587-2.3 0-.276.224-.5.5-.5zm-7.5-.793v1.065c0 1.229.897 2.228 2 2.228.362 0 .7-.111.992-.301L10 10.707zm2-6.708c1.654 0 3 1.45 3 3.228v4.546c0 .337-.062.655-.151.962l-.859-.858.01-.104V7.228C14 5.998 13.103 5 12 5s-2 .998-2 2.228v.658l-.971-.97C9.178 5.284 10.445 3.998 12 3.998z":t?"M14.5 19c.276 0 .5.224.5.5s-.224.5-.5.5h-5c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h5zm3-7.5c.276 0 .5.224.5.5 0 3.309-2.691 6-6 6s-6-2.691-6-6c0-.276.224-.5.5-.5s.5.224.5.5c0 2.757 2.243 5 5 5s5-2.243 5-5c0-.276.224-.5.5-.5zm-6.293 2.318c.25.12.517.183.793.183l.013.958v-.46l.085.492H12.014c-.486-.002-.876-.096-1.242-.274l.435-.9zm2.268-.543l.77.637c-.275.335-.606.6-.983.79l-.447-.896c.25-.125.473-.303.66-.53zm-3.353-.736c.093.283.235.537.42.757l-.765.645c-.268-.32-.472-.687-.604-1.09l.949-.312zM15 11.619v.155c0 .359-.053.71-.16 1.043l-.953-.305c.075-.233.113-.482.113-.738v-.155h1zm-5-1.033v1.063H9v-1.063h1zm5-1.093v1.063h-1V9.492h1zm-5-1.03v1.062H9V8.46h1zm5-1.095V8.43h-1V7.367h1zM9.156 6.2l.955.3c-.074.232-.111.478-.111.728v.17H9v-.17c0-.351.053-.696.156-1.027zm5.08-1.127c.267.32.468.688.598 1.093l-.951.306c-.091-.282-.23-.537-.415-.759l.768-.64zm-3.516-.766l.453.891c-.246.126-.473.311-.656.535l-.775-.63c.273-.337.602-.603.978-.795zM12 4c.433 0 .852.098 1.245.29l-.44.899C12.55 5.064 12.28 5 12 5l-.031-1h.03z":"M14.5 19c.276 0 .5.224.5.5s-.224.5-.5.5h-5c-.276 0-.5-.224-.5-.5s.224-.5.5-.5zm3-7.5c.276 0 .5.224.5.5 0 3.309-2.691 6-6 6s-6-2.691-6-6c0-.276.224-.5.5-.5s.5.224.5.5c0 2.757 2.243 5 5 5s5-2.243 5-5c0-.276.224-.5.5-.5zM12 4c1.654 0 3 1.448 3 3.227v4.546C15 13.552 13.654 15 12 15s-3-1.448-3-3.227V7.227C9 5.447 10.346 4 12 4zm0 1c-1.103 0-2 .999-2 2.227v4.546C10 13 10.897 14 12 14s2-1 2-2.227V7.227C14 5.999 13.103 5 12 5z"}(t,n);return(0,c.jsx)(Kt,Object.assign({},o,{muted:t,poorConnection:n,title:t?r:i,"data-testid":n?"poor-connection-mic":"good-connection-mic"},{children:(0,c.jsx)("path",{d:a})}))};Xt.displayName="Microphone";const $t=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M11.999 10.19c.738 0 3.194.089 3.792 1.241.08.158.117.315.138.418l.228 1.112c.033.167.116.318.239.438l.423.414c.349.341.919.343 1.27 0l.649-.635c.308-.3.347-.777.09-1.107-.776-1.005-2.696-2.698-6.83-2.771-4.132.073-6.052 1.766-6.828 2.77-.257.331-.218.808.09 1.108l.649.635c.349.341.919.343 1.27 0L7.6 13.4c.124-.121.207-.272.24-.438l.228-1.116c.02-.1.058-.257.137-.412.599-1.155 3.055-1.244 3.793-1.244m5.455 4.877c-.483 0-.966-.18-1.334-.539l-.422-.413c-.266-.26-.447-.59-.521-.953l-.23-1.115c-.008-.047-.022-.113-.046-.158-.145-.28-1.17-.699-2.902-.699-1.732 0-2.757.419-2.903.702-.023.042-.037.108-.046.152l-.23 1.119c-.073.362-.254.692-.521.953l-.421.412c-.736.719-1.932.719-2.668 0l-.65-.635c-.67-.656-.75-1.703-.181-2.435.887-1.146 3.056-3.08 7.61-3.158h.019c4.555.078 6.724 2.012 7.61 3.159.569.731.49 1.778-.181 2.434l-.65.635c-.367.359-.85.539-1.333.539"})}));$t.displayName="Phone";const Qt=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M14.5 5C16.981 5 19 7.019 19 9.5v5c0 2.481-2.019 4.5-4.5 4.5h-5C7.019 19 5 16.981 5 14.5v-5C5 7.019 7.019 5 9.5 5zm0 1h-5C7.57 6 6 7.57 6 9.5v5C6 16.43 7.57 18 9.5 18h5c1.93 0 3.5-1.57 3.5-3.5v-5C18 7.57 16.43 6 14.5 6zM9.172 9.17c.195-.194.511-.194.707 0L12 11.293l2.121-2.121c.195-.195.512-.195.707 0 .195.195.195.512 0 .707L12.708 12l2.12 2.12c.195.197.195.513 0 .708-.098.098-.226.147-.354.147-.127 0-.255-.05-.353-.147l-2.12-2.121-2.122 2.12c-.098.099-.226.148-.354.148-.128 0-.256-.05-.353-.147-.196-.195-.196-.511 0-.707L11.293 12l-2.12-2.122c-.197-.195-.197-.512 0-.707z"})}));Qt.displayName="Remove";const Jt=e=>
2(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M11 16c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5m7.852 2.145l-3.294-3.253C16.455 13.843 17 12.485 17 11c0-3.309-2.691-6-6-6s-6 2.691-6 6 2.691 6 6 6c1.464 0 2.807-.528 3.849-1.403l3.299 3.258c.098.097.225.145.352.145.129 0 .258-.05.355-.148.195-.197.193-.514-.003-.707"})}));Jt.displayName="Search";const Zt=e=>{var{disabled:t}=e,n=ct(e,["disabled"]);return(0,c.jsx)(Dt,Object.assign({},n,{children:t?(0,c.jsx)("path",{d:"M10.939 7.261c.393-.297.914-.344 1.361-.124.431.213.7.638.7 1.11v7.506c0 .472-.269.897-.7 1.11-.187.092-.385.137-.582.137-.28 0-.557-.09-.788-.268l-2.486-1.728c-.087-.06-.193-.093-.302-.093H6.256C5.563 14.911 5 14.36 5 13.682v-3.358c0-.68.566-1.235 1.263-1.235h1.88c.108 0 .213-.032.298-.092zm.918.772c-.042-.019-.182-.077-.32.03l-.018.012-2.505 1.741c-.253.178-.555.273-.871.273h-1.88c-.145 0-.263.105-.263.235v3.358c0 .127.115.23.256.23h1.886c.316 0 .618.093.874.272l2.503 1.741c.159.12.297.062.338.042.053-.027.143-.089.143-.214V8.247c0-.125-.09-.187-.143-.214zM14.9 10.13c.195-.195.512-.195.707 0l1.163 1.163 1.163-1.163c.195-.195.512-.195.707 0 .195.195.195.512 0 .707L17.477 12l1.163 1.163c.195.195.195.512 0 .707-.098.098-.226.147-.352.147-.128 0-.256-.049-.355-.147l-1.163-1.163-1.162 1.163c-.099.098-.226.147-.354.147-.128 0-.255-.049-.354-.147-.194-.195-.194-.512 0-.707L16.064 12 14.9 10.837c-.194-.195-.194-.512 0-.707z"}):(0,c.jsx)("path",{d:"M10.939 7.26c.397-.295.914-.343 1.361-.123.431.213.7.638.7 1.11v7.506c0 .473-.269.898-.7 1.111-.187.092-.386.137-.582.137-.28 0-.557-.091-.788-.269l-2.486-1.727c-.088-.061-.194-.094-.302-.094H6.256c-.693 0-1.256-.552-1.256-1.229v-3.357c0-.681.566-1.236 1.263-1.236h1.88c.108 0 .214-.033.3-.092zm5.148.054c.176-.211.49-.241.704-.065 1.406 1.164 2.213 2.896 2.213 4.751 0 1.855-.807 3.588-2.213 4.752-.094.077-.207.115-.319.115-.144 0-.286-.061-.385-.18-.177-.213-.147-.529.065-.705 1.177-.974 1.852-2.425 1.852-3.982 0-1.556-.675-3.007-1.852-3.981-.212-.176-.242-.492-.065-.705zm-4.23.719c-.041-.02-.183-.077-.32.029l-.018.013-2.505 1.742c-.255.178-.556.272-.871.272h-1.88c-.145 0-.263.106-.263.236v3.357c0 .127.115.229.256.229h1.886c.315 0 .617.095.874.274l2.503 1.741c.157.117.298.062.337.042.054-.027.144-.09.144-.215V8.247c0-.125-.09-.187-.143-.214zm2.841 1.62c.181-.21.496-.232.705-.053.707.608 1.112 1.483 1.112 2.4 0 .917-.405 1.793-1.112 2.402-.095.08-.21.12-.326.12-.14 0-.28-.058-.379-.173-.18-.21-.156-.524.053-.705.486-.42.764-1.018.764-1.644 0-.625-.278-1.223-.764-1.642-.209-.181-.233-.496-.053-.705z"})}))};Zt.displayName="Sound";const en=e=>(0,c.jsx)(Dt,Object.assign({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},{children:(0,c.jsxs)("g",Object.assign({fill:"none",fillRule:"evenodd"},{children:[(0,c.jsx)("path",{d:"M0 0H24V24H0z"}
2),(0,c.jsxs)("g",Object.assign({fill:"currentColor"},{children:[(0,c.jsx)("path",{d:"M8 0c.316 0 .571.256.571.571V4c0 .316-.255.571-.571.571-.316 0-.571-.255-.571-.571V.571C7.429.256 7.684 0 8 0z",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M14.928 4c.158.273.064.623-.209.78l-2.97 1.715c-.272.158-.622.064-.78-.21-.158-.273-.064-.622.21-.78l2.969-1.714c.273-.158.622-.064.78.209z",opacity:".2",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M12 1.072c.273.158.367.507.21.78l-1.715 2.97c-.158.273-.507.367-.78.209-.274-.158-.368-.508-.21-.78l1.714-2.97c.158-.273.508-.367.781-.21z",opacity:".12",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M16 8c0 .316-.256.571-.571.571H12c-.316 0-.571-.255-.571-.571 0-.316.255-.571.571-.571h3.429c.315 0 .571.255.571.571z",opacity:".28",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M12 14.928c-.273.158-.623.064-.78-.209l-1.715-2.97c-.158-.272-.064-.622.21-.78.273-.158.622-.064.78.21l1.714 2.969c.158.273.064.622-.209.78z",opacity:".44",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M14.928 12c-.158.273-.507.367-.78.21l-2.97-1.715c-.273-.158-.367-.507-.209-.78.158-.274.508-.368.78-.21l2.97 1.714c.273.158.367.508.21.781z",opacity:".36",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M8 16c-.316 0-.571-.256-.571-.571V12c0-.316.255-.571.571-.571.316 0 .571.255.571.571v3.429c0 .315-.255.571-.571.571z",opacity:".52",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M1.072 12c-.158-.273-.064-.623.209-.78l2.97-1.715c.272-.158.622-.064.78.21.158.273.064.622-.21.78l-2.969 1.714c-.273.158-.622.064-.78-.209z",opacity:".68",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M4 14.928c-.273-.158-.367-.507-.21-.78l1.715-2.97c.158-.273.507-.367.78-.209.274.158.368.508.21.78L4.78 14.72c-.158.273-.508.367-.781.21z",opacity:".6",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M0 8c0-.316.256-.571.571-.571H4c.316 0 .571.255.571.571 0 .316-.255.571-.571.571H.571C.256 8.571 0 8.316 0 8z",opacity:".76",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M4 1.072c.273-.158.623-.064.78.209l1.715 2.97c.158.272.064.622-.21.78-.273.158-.622.064-.78-.21L3.791 1.853c-.158-.273-.064-.622.209-.78z",opacity:".92",transform:"translate(4 4)"}),(0,c.jsx)("path",{d:"M1.072 4c.158-.273.507-.367.78-.21l2.97 1.715c.273.158.367.507.209.78-.158.274-.508.368-.78.21L1.28 4.78c-.273-.158-.367-.508-.21-.781z",opacity:".84",transform:"translate(4 4)"})]}))]}))}));en.displayName="Spinner";const tn=e=>(0,c.jsx)(Dt,Object.assign({},e,{children:(0,c.jsx)("path",{d:"M8.824 9.88c-.21.18-.526.154-.705-.056-.159-.187-.156-.457-.006-.64l.063-.065 3.523-3c.165-.14.397-.156.577-.05l.074.052 3.477 3c.209.18.232.497.052.706-.16.185-.428.224-.632.104l-.074-.052-3.151-2.72-3.198 2.722zM15.176 14.12c.21-.18.526-.154.705.056.159.187.157.457.006.64l-.063.065-3.523 3c-.165.14-.397.156-.577.05l-.074-.052-3.477-3c-.209-.18-.232-.497-.052-.706.16-.185.428-.224.632-.104l.074.052 3.151 2.72 3.198-2.722z"})}));
2tn.displayName="UpAndDownCaret";const nn=l.Ay.input.withConfig(vt)(V||(V=(0,s.A)(["\n ",";\n\n &[aria-invalid='true'] + .ch-checkbox {\n border: ",";\n box-shadow: ",";\n }\n"])),ht,e=>e.theme.inputs.error.border,e=>e.theme.inputs.error.shadow),rn=l.Ay.div.withConfig(vt)(P||(P=(0,s.A)(["\n background-color: ",";\n border: ",";\n border-radius: ",";\n box-shadow: ",";\n color: ",";\n display: inline-block;\n height: 1rem;\n position: relative;\n width: 1rem;\n transition: box-shadow 0.05s ease-in;\n\n > svg {\n left: -0.03125rem;\n position: absolute;\n transform: scale(1.5);\n }\n\n ",":checked ~ & {\n background-color: ",";\n border: ",";\n box-shadow: ",";\n color: ",";\n }\n\n ",":focus ~ & {\n border: ",";\n box-shadow: ",";\n }\n"])),e=>e.theme.inputs.bgd,e=>e.theme.inputs.border,e=>e.theme.radii.default,e=>e.theme.inputs.shadow,e=>e.theme.inputs.fontColor,nn,e=>e.theme.inputs.checked.bgd,e=>e.theme.inputs.checked.border,e=>e.theme.inputs.checked.shadow,e=>e.theme.inputs.checked.fontColor,nn,e=>e.theme.inputs.focus.border,e=>e.theme.inputs.focus.shadow),on=e=>{const{checked:t,onChange:n,value:r}=e,i=(0,f.useRef)(null);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(nn,Object.assign({},e,{"data-testid":"hidden-checkbox",ref:i,type:"checkbox",value:r,onChange:n})),(0,c.jsx)(rn,Object.assign({"data-testid":"styled-checkbox",checked:t,className:"ch-checkbox",onClick:()=>{var e,t;null===(e=i.current)||void 0===e||e.click(),null===(t=i.current)||void 0===t||t.focus()}},{children:t&&(0,c.jsx)(Ft,{"data-testid":"check"})}))]})};on.displayName="Checkbox";(0,f.createContext)({showLabels:!1,layout:"top"});const an={"undocked-vertical":"flex-direction: column;","undocked-horizontal":"flex-direction: row;",top:"flex-direction: row; width: 100%; top: 0; position: fixed;",bottom:"flex-direction: row; width: 100%; bottom: 0; position: fixed;",right:"flex-direction: column; height: 100%; right: 0; position: fixed;",left:"flex-direction: column; height: 100%; left: 0; position: fixed;"},sn="grid-template-columns: 2.5rem minmax(0.5rem, auto);",cn="grid-template-columns: 1.5rem 1.5rem 1.5rem",ln=e=>"right"===e||"left"===e||"undocked-vertical"===e,dn=e=>"undocked-vertical"===e||"undocked-horizontal"===e,fn={top:"unset;",bottom:"unset;",right:"unset;",left:"unset;"};l.Ay.div.withConfig(vt)(B||(B=(0,s.A)(["\n display: inline-flex;\n justify-content: center;\n align-items: center;\n border-radius: ",";\n background-color: ",";\n opacity: ",";\n border: ",";\n box-shadow: ",";\n ",";\n\n ","\n\n width: ",";\n height: ",";\n\n ","\n ","\n"])),e=>{let{theme:t,layout:n}=e;return dn(n)?t.radii.default:"0"},e=>e.theme.controlBar.bgd,e=>e.theme.controlBar.opacity,e=>{let{theme:t,layout:n}=e;return dn(n)?"none":t.controlBar.border},e=>{let{theme:t,layout:n}=e;return dn(n)?t.controlBar.shadow:"none"},e=>{let{layout:t}=e;return an["".concat(t)]},e=>e.responsive&&(e=>(0,l.AH)(F||(F=(0,s.A)(["\n "," {\n ","\n ",";\n box-shadow: ",";\n border: none;\n height: ",";\n width: ",";\n }\n\n "," {\n justify-content: ",";\n ","\n ",";\n box-shadow: ",";\n border: none;\n }\n "])),e=>{let{theme:t}=e;return t.mediaQueries.max.sm},fn,ln(e.layout)?an.left:an.bottom,e.theme.controlBar.shadow,ln(e.layout)&&"100%",!ln(e.layout)&&"100%",e=>{let{theme:t}=e;return t.mediaQueries.max.xs},ln(e.layout)?"center":"space-around",fn,ln(e.layout)?an.left:an.bottom,e=>{let{theme:t}=e;return t.controlBar.shadow}))(e),e=>{let{layout:t}=e;return ln(t)&&"5rem"},e=>{let{layout:t}=e;return!ln(t)&&"5rem"},yt,bt),l.Ay.div.withConfig(vt)(N||(N=(0,s.A)(["\n margin: ",";\n display: grid;\n grid-template-rows: ",";\n justify-items: center;\n align-items: center;\n ",";\n\n > :first-child {\n grid-column-start: ",";\n }\n\n .ch-control-bar-item-iconButton {\n .ch-icon {\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 100%;\n }\n }\n\n .ch-control-bar-item-caret {\n width: 1.25rem;\n height: 1.25rem;\n padding: 0;\n\n .ch-icon {\n width: 100%;\n height: 100%;\n }\n\n // setting this transform on the shape so we\n // don't overwrite the rotate transform on the Caret\n .Svg g {\n transform: scale(1.333);\n transform-origin: 50% 50%;\n }\n }\n\n .ch-control-bar-popover {\n background-color: inherit;\n grid-column-start: ",";\n color: ",";\n\n .isOpen.ch-control-bar-item-caret {\n color: ",";\n }\n }\n\n .ch-control-bar-item-label {\n color: ",";\n grid-row-start: 2;\n font-size: ","; /* TODO: get updated font size from design */\n padding-top: 0.25rem;\n justify-self: center;\n grid-column: ",";\n }\n\n "," {\n justify-content: space-around;\n button ~ span {\n display: none;\n }\n }\n\n "," {\n margin: ",";\n button ~ span {\n display: none;\n }\n }\n"])),e=>{let{layout:t}=e;return ln(t)?"0.625rem 0":"0 0.625rem"},e=>{let{showLabels:t}=e;return t?"1.5rem 1rem":"1.5rem"},e=>{let{popOver:t,layout:n,children:r}=e;return"\n ".concat(!ln(n)&&(t||r)&&sn||"","\n ").concat(ln(n)&&(t||r)&&cn||"","\n ")},e=>{let{layout:t,popOver:n,children:r}=e;return ln(t)&&(n||r)?"2":"1"},e=>{let{layout:t,popOver:n,children:r}=e;return ln(t)&&(n||r)?"2":"1"},e=>{let{theme:t}=e;return t.controlBar.text},e=>e.theme.colors.primary.main,e=>{let{theme:t}=e;return t.controlBar.text},e=>e.theme.fontSizes.footnote.fontSize,e=>{let{layout:t,popOver:n,children:r}=e;return ln(t)&&(n||r)?"2":"1"},e=>{let{theme:t}=e;return t.mediaQueries.max.sm},e=>{let{theme:t}=e;return t.mediaQueries.max.xs},e=>{let{layout:t}=e;return ln(t)?"0.75rem 0":"0"});var un="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function hn(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}}
2,n.exports),n.exports}var mn=hn(function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=i(r,o));return r}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()});function gn(){return"undefined"!==typeof window}function pn(e){return yn(e)?(e.nodeName||"").toLowerCase():"#document"}function vn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bn(e){var t;return null==(t=(yn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yn(e){return!!gn()&&(e instanceof Node||e instanceof vn(e).Node)}function wn(e){return!!gn()&&(e instanceof Element||e instanceof vn(e).Element)}function xn(e){return!!gn()&&(e instanceof HTMLElement||e instanceof vn(e).HTMLElement)}function An(e){return!(!gn()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vn(e).ShadowRoot)}const Sn=new Set(["inline","contents"]);function kn(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=_n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sn.has(i)}const Cn=new Set(["table","td","th"]);function On(e){return Cn.has(pn(e))}const jn=[":popover-open",":modal"];function En(e){return jn.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Dn=["transform","translate","scale","rotate","perspective"],In=["transform","translate","scale","rotate","perspective","filter"],Tn=["paint","layout","strict","content"];function zn(e){const t=Rn(),n=wn(e)?_n(e):e;return Dn.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||In.some(e=>(n.willChange||"").includes(e))||Tn.some(e=>(n.contain||"").includes(e))}function Rn(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ln=new Set(["html","body","#document"]);function Mn(e){return Ln.has(pn(e))}function _n(e){return vn(e).getComputedStyle(e)}function Vn(e){return wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pn(e){if("html"===pn(e))return e;const t=e.assignedSlot||e.parentNode||An(e)&&e.host||bn(e);return An(t)?t.host:t}function Fn(e){const t=Pn(e);return Mn(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&kn(t)?t:Fn(t)}function Bn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Fn(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=vn(i);if(o){const e=Nn(a);return t.concat(a,a.visualViewport||[],kn(i)?i:[],e&&n?Bn(e):[])}return t.concat(i,Bn(i,[],n))}function Nn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hn(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Un(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&An(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Wn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function qn(e){return!Wn().includes("jsdom/")&&(!Gn()&&0===e.width&&0===e.height||Gn()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Gn(){const e=/android/i;return e.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||e.test(Wn())}function Yn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Kn(e){return(null==e?void 0:e.ownerDocument)||document}function Xn(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function $n(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Qn(e){return xn(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Jn(e){e.preventDefault(),e.stopPropagation()}const Zn=Math.min,er=Math.max,tr=Math.round,nr=Math.floor,rr=e=>({x:e,y:e}
2),ir={left:"right",right:"left",bottom:"top",top:"bottom"},or={start:"end",end:"start"};function ar(e,t,n){return er(e,Zn(t,n))}function sr(e,t){return"function"===typeof e?e(t):e}function cr(e){return e.split("-")[0]}function lr(e){return e.split("-")[1]}function dr(e){return"x"===e?"y":"x"}function fr(e){return"y"===e?"height":"width"}const ur=new Set(["top","bottom"]);function hr(e){return ur.has(cr(e))?"y":"x"}function mr(e){return dr(hr(e))}function gr(e,t,n){void 0===n&&(n=!1);const r=lr(e),i=mr(e),o=fr(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ar(a)),[a,Ar(a)]}function pr(e){return e.replace(/start|end/g,e=>or[e])}const vr=["left","right"],br=["right","left"],yr=["top","bottom"],wr=["bottom","top"];function xr(e,t,n,r){const i=lr(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?br:vr:t?vr:br;case"left":case"right":return t?yr:wr;default:return[]}}(cr(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(pr)))),o}function Ar(e){return e.replace(/left|right|bottom|top/g,e=>ir[e])}function Sr(e){return"number"!==typeof e?function(e){return(0,a.A)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function kr(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}var Cr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Or="undefined"===typeof Element,jr=Or?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Er=!Or&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},Dr=function(e,t){var n;void 0===t&&(t=!0);var r=null===e||void 0===e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&Dr(e.parentNode)},Ir=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var o=i.shift();if(!Dr(o,!1))if("SLOT"===o.tagName){var a=o.assignedElements(),s=a.length?a:o.children,c=Ir(s,!0,n);
vendor: 5,083 bytes, line 2
2n.flatten?r.push.apply(r,c):r.push({scopeParent:o,candidates:c})}else{jr.call(o,Cr)&&n.filter(o)&&(t||!e.includes(o))&&r.push(o);var l=o.shadowRoot||"function"===typeof n.getShadowRoot&&n.getShadowRoot(o),d=!Dr(l,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(l&&d){var f=Ir(!0===l?o.children:l.children,!0,n);n.flatten?r.push.apply(r,f):r.push({scopeParent:o,candidates:f})}else i.unshift.apply(i,o.children)}}return r},Tr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Tr(e)?0:e.tabIndex},Rr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Lr=function(e){return"INPUT"===e.tagName},Mr=function(e){return function(e){return Lr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Er(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},_r=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Vr=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=jr.call(e,"details>summary:first-of-type")?e.parentElement:e;if(jr.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return _r(e)}else{if("function"===typeof r){for(var o=e;e;){var a=e.parentElement,s=Er(e);if(a&&!a.shadowRoot&&!0===r(a))return _r(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,r,i,o=e&&Er(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var c,l,d;s=!(null===(l=a=null===(c=o=Er(a))||void 0===c?void 0:c.host)||void 0===l||null===(d=l.ownerDocument)||void 0===d||!d.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Pr=function(e,t){return!(t.disabled||Dr(t)||function(e){return Lr(e)&&"hidden"===e.type}(t)||Vr(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!jr.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Fr=function(e,t){return!(Mr(t)||zr(t)<0||!Pr(e,t))},Br=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Nr=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,o=i?e.scopeParent:e,a=function(e,t){var n=zr(e);return n<0&&t&&!Tr(e)?0:n}(o,i),s=i?Nr(e.candidates):o;0===a?i?t.push.apply(t,s):t.push(o):n.push({documentOrder:r,tabIndex:a,item:e,isScope:i,content:s})}),n.sort(Rr).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Hr=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Ir([e],t.includeContainer,{filter:Fr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Br}):function(e,t,n){if(Dr(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Cr));return t&&jr.call(e,Cr)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Fr.bind(null,t)),Nr(n)};function Ur(e,t,n){let{reference:r,floating:i}=e;const o=hr(t),a=mr(t),s=fr(a),c=cr(t),l="y"===o,d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let h;switch(c){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(lr(t)){case"start":h[a]-=u*(n&&l?-1:1);break;case"end":h[a]+=u*(n&&l?-1:1)}return h}async function Wr(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=sr(t,e),m=Sr(h),g=s[u?"floating"===f?"reference":"floating":f],p=kr(await o.getClippingRect
vendor: 6,628 bytes, line 2
2({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),v="floating"===f?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=kr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(p.top-w.top+m.top)/y.y,bottom:(w.bottom-p.bottom+m.bottom)/y.y,left:(p.left-w.left+m.left)/y.x,right:(w.right-p.right+m.right)/y.x}}const qr=new Set(["left","top"]);function Gr(e){const t=_n(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=tr(n)!==o||tr(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Yr(e){return wn(e)?e:e.contextElement}function Kr(e){const t=Yr(e);if(!xn(t))return rr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Gr(t);let a=(o?tr(n.width):n.width)/r,s=(o?tr(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Xr=rr(0);function $r(e){const t=vn(e);return Rn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xr}function Qr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Yr(e);let a=rr(1);t&&(r?wn(r)&&(a=Kr(r)):a=Kr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vn(e))&&t}(o,n,r)?$r(o):rr(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const e=vn(o),t=r&&wn(r)?vn(r):r;let n=e,i=Nn(n);for(;i&&r&&t!==n;){const e=Kr(i),t=i.getBoundingClientRect(),r=_n(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,d*=e.x,f*=e.y,c+=o,l+=a,n=vn(i),i=Nn(n)}}return kr({width:d,height:f,x:c,y:l})}function Jr(e,t){const n=Vn(e).scrollLeft;return t?t.left+n:Qr(bn(e)).left+n}function Zr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jr(e,n),y:n.top+t.scrollTop}}const ei=new Set(["absolute","fixed"]);function ti(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=vn(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;const e=Rn();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}const l=Jr(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else l<=25&&(o+=l);return{width:o,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=bn(e),n=Vn(e),r=e.ownerDocument.body,i=er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jr(e);const s=-n.scrollTop;return"rtl"===_n(r).direction&&(a+=er(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(bn(e));else if(wn(t))r=function(e,t){const n=Qr(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=xn(e)?Kr(e):rr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=$r(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return kr(r)}function ni(e,t){const n=Pn(e);return!(n===t||!wn(n)||Mn(n))&&("fixed"===_n(n).position||ni(n,t))}function ri(e,t,n){const r=xn(t),i=bn(t),o="fixed"===n,a=Qr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const c=rr(0);function l(){c.x=Jr(i)}if(r||!r&&!o)if(("body"!==pn(t)||kn(i))&&(s=Vn(t)),r){const e=Qr(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();o&&!r&&i&&l();const d=!i||r||o?rr(0):Zr(i,s);return{x:a.left+s.scrollLeft-c.x-d.x,y:a.top+s.scrollTop-c.y-d.y,width:a.width,height:a.height}}function ii(e){return"static"===_n(e).position}function oi(e,t){if(!xn(e)||"fixed"===_n(e).position)return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function ai(e,t){const n=vn(e);if(En(e))return n;if(!xn(e)){let t=Pn(e);for(;t&&!Mn(t);){if(wn(t)&&!ii(t))return t;t=Pn(t)}return n}let r=oi(e,t);for(;r&&On(r)&&ii(r);)r=oi(r,t);return r&&Mn(r)&&ii(r)&&!zn(r)?n:r||function(e){let t=Pn(e);for(;xn(t)&&!Mn(t);){if(zn(t))return t;if(En(t))return null;t=Pn(t)}return null}(e)||n}const si={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=bn(r),s=!!t&&En(t.floating);if(r===a||s&&o)return n;let c={scrollLeft:0,scrollTop:0},l=rr(1);const d=rr(0),f=xn(r);if((f||!f&&!o)&&(("body"!==pn(r)||kn(a))&&(c=Vn(r)),xn(r))){const e=Qr(r);l=Kr(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const u=!a||f||o?rr(0):Zr(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+u.x,y:n.y*l.y-c.scrollTop*l.y+d.y+u.y}},getDocumentElement:bn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?En(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Bn(e,[],!1).filter(e=>wn(e)&&"body"!==pn(e)),i=null;const o="fixed"===_n(e).position;let a=o?Pn(e):e;for(;wn(a)&&!Mn(a);){const t=_n(a),n=zn(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&ei.has(i.position)||kn(a)&&!n&&ni(e,a))?r=r.filter(e=>e!==a):i=t,a=Pn(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{const r=ti(t,n,i);return e.top=er(r.top,e.top),e.right=Zn(r.right,e.right),e.bottom=Zn(r.bottom,e.bottom),e.left=er(r.left,e.left),e},ti(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ai,getElementRects:async function(e){const t=this.getOffsetParent||ai,n=this.getDimensions,r=await n(e.floating);return{reference:ri(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Gr(e);return{width:t,height:n}},getScale:Kr,isElement:wn,isRTL:function(e){return"rtl"===_n(e).direction}};function ci(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function li(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:c="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,d=Yr(e),f=i||o?[...d?Bn(d):[],...Bn(t)]:[];
2f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const u=d&&c?function(e,t){let n,r=null;const i=bn(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(c,l){void 0===c&&(c=!1),void 0===l&&(l=1),o();const d=e.getBoundingClientRect(),{left:f,top:u,width:h,height:m}=d;if(c||t(),!h||!m)return;const g={rootMargin:-nr(u)+"px "+-nr(i.clientWidth-(f+h))+"px "+-nr(i.clientHeight-(u+m))+"px "+-nr(f)+"px",threshold:er(0,Zn(1,l))||1};let p=!0;function v(t){const r=t[0].intersectionRatio;if(r!==l){if(!p)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ci(d,e.getBoundingClientRect())||s(),p=!1}try{r=new IntersectionObserver(v,(0,a.A)((0,a.A)({},g),{},{root:i.ownerDocument}))}catch(b){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),o}(d,n):null;let h,m=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let p=l?Qr(e):null;return l&&function t(){const r=Qr(e);p&&!ci(p,r)&&n();p=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(h)}}const di=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:c}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=cr(n),s=lr(n),c="y"===hr(n),l=qr.has(a)?-1:1,d=o&&c?-1:1,f=sr(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:m}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"===typeof m&&(h="end"===s?-1*m:m),c?{x:h*d,y:u*l}:{x:u*l,y:h*d}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:(0,a.A)((0,a.A)({},l),{},{placement:s})}}}},fi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,s=sr(e,t),{mainAxis:c=!0,crossAxis:l=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=s,f=(0,o.A)(s,p),u={x:n,y:r},h=await Wr(t,f),m=hr(cr(i)),g=dr(m);let v=u[g],b=u[m];if(c){const e="y"===g?"bottom":"right";v=ar(v+h["y"===g?"top":"left"],v,v-h[e])}if(l){const e="y"===m?"bottom":"right";b=ar(b+h["y"===m?"top":"left"],b,b-h[e])}const y=d.fn((0,a.A)((0,a.A)({},t),{},{[g]:v,[m]:b}));return(0,a.A)((0,a.A)({},y),{},{data:{x:y.x-n,y:y.y-r,enabled:{[g]:c,[m]:l}}})}}},ui=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,f=sr(e,t),{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0}=f,y=(0,o.A)(f,g);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const w=cr(i),x=hr(c),A=cr(c)===c,S=await(null==l.isRTL?void 0:l.isRTL(d.floating)),k=m||(A||!b?[Ar(c)]:function(e){const t=Ar(e);return[pr(e),t,pr(t)]}(c)),C="none"!==v;!m&&C&&k.push(...xr(c,b,v,S));const O=[c,...k],j=await Wr(t,y),E=[];let D=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&E.push(j[w]),h){const e=gr(i,s,S);E.push(j[e[0]],j[e[1]])}if(D=[...D,{placement:i,overflows:E}],!E.every(e=>e<=0)){var I,T;const e=((null==(I=a.flip)?void 0:I.index)||0)+1,t=O[e];if(t){if(!("alignment"===h&&x!==hr(t))||D.every(e=>hr(e.placement)!==x||e.overflows[0]>0))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(T=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var z;const e=null==(z=D.filter(e=>{if(C){const t=hr(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},hi=(e,t,n)=>{const r=new Map,i=(0,a.A)({platform:si},n),o=(0,a.A)((0,a.A)({},i.platform),{},{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}
2=n,c=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:u}=Ur(d,r,l),h=r,m={},g=0;for(let p=0;p<c.length;p++){const{name:n,fn:o}=c[p],{x:v,y:b,data:y,reset:w}=await o({x:f,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:d,platform:s,elements:{reference:e,floating:t}});f=null!=v?v:f,u=null!=b?b:u,m=(0,a.A)((0,a.A)({},m),{},{[n]:(0,a.A)((0,a.A)({},m[n]),y)}),w&&g<=50&&(g++,"object"===typeof w&&(w.placement&&(h=w.placement),w.rects&&(d=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:f,y:u}=Ur(d,h,l))),p=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:m}})(e,t,(0,a.A)((0,a.A)({},i),{},{platform:o}))};var mi="undefined"!==typeof document?f.useLayoutEffect:function(){};function gi(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!gi(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!gi(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pi(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vi(e,t){const n=pi(e);return Math.round(t*n)/n}function bi(e){const t=f.useRef(e);return mi(()=>{t.current=e}),t}const yi=(e,t)=>(0,a.A)((0,a.A)({},fi(e)),{},{options:[e,t]}),wi=(e,t)=>(0,a.A)((0,a.A)({},ui(e)),{},{options:[e,t]}),xi=(0,a.A)({},r||(r=n.t(f,2))),Ai=xi.useInsertionEffect||(e=>e());function Si(e){const t=f.useRef(()=>{0});return Ai(()=>{t.current=e}),f.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var ki="undefined"!==typeof document?f.useLayoutEffect:f.useEffect;function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ci.apply(this,arguments)}let Oi=!1,ji=0;const Ei=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ji++;const Di=xi.useId||function(){const[e,t]=f.useState(()=>Oi?Ei():void 0);return ki(()=>{null==e&&t(Ei())},[]),f.useEffect(()=>{Oi=!0},[]),e};const Ii=f.createContext(null),Ti=f.createContext(null),zi=()=>{var e;return(null==(e=f.useContext(Ii))?void 0:e.id)||null},Ri=()=>f.useContext(Ti);function Li(e){return"data-floating-ui-"+e}function Mi(e){const t=(0,f.useRef)(e);return ki(()=>{t.current=e}),t}let _i=0;function Vi(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(_i);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():_i=requestAnimationFrame(o)}function Pi(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let Fi=new WeakMap,Bi=new WeakSet,Ni={},Hi=0;const Ui=e=>e&&(e.host||Ui(e.parentNode));function Wi(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,a=(s=t,e.map(e=>{if(s.contains(e))return e;const t=Ui(e);return s.contains(t)?t:null}).filter(e=>null!=e));var s;const c=new Set,l=new Set(a),d=[];Ni[i]||(Ni[i]=new WeakMap);const f=Ni[i];return a.forEach(function e(t){if(!t||c.has(t))return;c.add(t),t.parentNode&&e(t.parentNode)}),function e(t){if(!t||l.has(t))return;[].forEach.call(t.children,t=>{if("script"!==pn(t))if(c.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=(Fi.get(t)||0)+1,a=(f.get(t)||0)+1;Fi.set(t,r),f.set(t,a),d.push(t),1===r&&n&&Bi.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}})}
vendor: 9,838 bytes, line 2
2(t),c.clear(),Hi++,()=>{d.forEach(e=>{const t=(Fi.get(e)||0)-1,n=(f.get(e)||0)-1;Fi.set(e,t),f.set(e,n),t||(!Bi.has(e)&&o&&e.removeAttribute(o),Bi.delete(e)),n||e.removeAttribute(i)}),Hi--,Hi||(Fi=new WeakMap,Fi=new WeakMap,Bi=new WeakSet,Ni={})}}function qi(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Kn(e[0]).body;return Wi(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Gi=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yi(e,t){const n=Hr(e,Gi());"prev"===t&&n.reverse();const r=n.indexOf(Hn(Kn(e)));return n.slice(r+1)[0]}function Ki(){return Yi(document.body,"next")}function Xi(){return Yi(document.body,"prev")}function $i(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Un(n,r)}function Qi(e){Hr(e,Gi()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Ji(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const Zi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function eo(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const to=f.forwardRef(function(e,t){const[n,r]=f.useState();ki(()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",eo),()=>{document.removeEventListener("keydown",eo)}),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Li("focus-guard")]:"",style:Zi};return f.createElement("span",Ci({},e,i))}),no=f.createContext(null),ro=Li("portal");function io(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Di(),i=oo(),[o,a]=f.useState(null),s=f.useRef(null);return ki(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),ki(()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(ro,""),e.appendChild(n),s.current=n,a(n)},[t,r]),ki(()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!wn(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const c=document.createElement("div");c.id=r,c.setAttribute(ro,""),e=o||e,e.appendChild(c),s.current=c,a(c)},[t,n,r,i]),o}({id:n,root:r}),[a,s]=f.useState(null),c=f.useRef(null),l=f.useRef(null),d=f.useRef(null),h=f.useRef(null),m=null==a?void 0:a.modal,g=null==a?void 0:a.open,p=!!a&&!a.modal&&a.open&&i&&!(!r&&!o);return f.useEffect(()=>{if(o&&i&&!m)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){if(o&&$i(e)){("focusin"===e.type?Ji:Qi)(o)}}},[o,i,m]),f.useEffect(()=>{o&&(g||Ji(o))},[g,o]),f.createElement(no.Provider,{value:f.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:l,beforeInsideRef:d,afterInsideRef:h,portalNode:o,setFocusManagerState:s}),[i,o])},p&&o&&f.createElement(to,{"data-type":"outside",ref:c,onFocus:e=>{if($i(e,o)){var t;null==(t=d.current)||t.focus()}else{const e=Xi()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),p&&o&&f.createElement("span",{"aria-owns":o.id,style:Zi}),o&&u.createPortal(t,o),p&&o&&f.createElement(to,{"data-type":"outside",ref:l,onFocus:e=>{if($i(e,o)){var t;null==(t=h.current)||t.focus()}else{const t=Ki()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const oo=()=>f.useContext(no),ao="data-floating-ui-focusable";let so=[];function co(e){so=so.filter(e=>e.isConnected);let t=e;if(t&&"body"!==pn(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==jr.call(e,Cr)&&Fr(t,e)}(t,Gi())){const e=Hr(t,Gi())[0];e&&(t=e)}so.push(t),so.length>20&&(so=so.slice(-20))}}function lo(){return so.slice().reverse().find(e=>e.isConnected)}const fo=f.forwardRef(function(e,t){return f.createElement("button",Ci({},e,{type:"button",ref:t,tabIndex:-1,style:Zi}))});function uo(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:o=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:c=!1,modal:l=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:u=!0}=e,{open:h,refs:m,nodeId:g,onOpenChange:p,events:v,dataRef:b,floatingId:y,elements:{domReference:w,floating:x}}=t,A="number"===typeof a&&a<0,S=!!(k=w)&&"combobox"===k.getAttribute("role")&&Qn(k)&&A;var k;const C="undefined"===typeof HTMLElement||!("inert"in HTMLElement.prototype)||o,O=Mi(i),j=Mi(a),E=Mi(s),D=Ri(),I=oo(),T=f.useRef(null),z=f.useRef(null),R=f.useRef(!1),L=f.useRef(!1),M=f.useRef(-1),_=null!=I,V=(P=x)?P.hasAttribute(ao)?P:P.querySelector("["+ao+"]")||P:null;var P;const F=Si(function(e){return void 0===e&&(e=V),e?Hr(e,Gi()):[]}),B=Si(e=>{const t=F(e);return O.current.map(e=>w&&"reference"===e?w:V&&"floating"===e?V:t).filter(Boolean).flat()});function N(e){return!r&&d&&l?f.createElement(fo,{ref:"start"===e?T:z,onClick:e=>p(!1,e.nativeEvent)},"string"===typeof d?d:"Dismiss"):null}f.useEffect(()=>{if(r)return;if(!l)return;function e(e){if("Tab"===e.key){Un(V,Hn(Kn(V)))&&0===F().length&&!S&&Jn(e);const t=B(),n=$n(e);"reference"===O.current[0]&&n===w&&(Jn(e),e.shiftKey?Vi(t[t.length-1]):Vi(t[1])),"floating"===O.current[1]&&n===V&&e.shiftKey&&(Jn(e),Vi(t[0]))}}const t=Kn(V);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,w,V,l,O,S,F,B]),f.useEffect(()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=$n(e),n=F().indexOf(t);-1!==n&&(M.current=n)}},[r,x,F]),f.useEffect(()=>{if(!r&&u)return x&&xn(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){L.current=!0,setTimeout(()=>{L.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(Un(w,t)||Un(x,t)||Un(t,x)||Un(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(Li("focus-guard"))||D&&(Pi(D.nodesRef.current,g).find(e=>{var n,r;return Un(null==(n=e.context)?void 0:n.elements.floating,t)||Un(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],i=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;i;){const t=e.find(e=>e.id===i);i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(D.nodesRef.current,g).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(c&&n&&Hn(Kn(V))===Kn(V).body){xn(V)&&V.focus();const e=M.current,t=F(),n=t[e]||t[t.length-1]||V;xn(n)&&n.focus()}!S&&l||!t||!n||L.current||t===lo()||(R.current=!0,p(!1,e,"focus-out"))})}},[r,w,x,V,l,g,D,I,p,u,c,F,S]),f.useEffect(()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+Li("portal")+"]"))||[]);if(x){const e=[x,...t,T.current,z.current,O.current.includes("reference")||S?w:null].filter(e=>null!=e),n=l||S?qi(e,C,!C):qi(e);return()=>{n()}}},[r,w,x,l,O,I,S,C]),ki(()=>{if(r||!xn(V))return;const e=Hn(Kn(V));queueMicrotask(()=>{const t=B(V),n=j.current,r=("number"===typeof n?t[n]:n.current)||V,i=Un(V,e);A||i||!h||Vi(r,{preventScroll:r===V})})},[r,h,V,A,B,j]),ki(()=>{if(r||!V)return;let e=!1;const t=Kn(V),n=Hn(t);let i=b.current.openEvent;function o(t){let{open:n,reason:r,event:o,nested:a}=t;n&&(i=o),"escape-key"===r&&m.domReference.current&&co(m.domReference.current),"hover"===r&&"mouseleave"===o.type&&(R.current=!0),"outside-press"===r&&(a?(R.current=!1,e=!0):R.current=!(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Gn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(o)||qn(o)))}co(n),v.on("openchange",o);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Zi),_&&w&&w.insertAdjacentElement("afterend",a),()=>{v.off("openchange",o);const n=Hn(t),r=Un(x,n)||D&&Pi(D.nodesRef.current,g).some(e=>{var t;return Un(null==(t=e.context)?void 0:t.elements.floating,n)});(r||i&&["click","mousedown"].includes(i.type))&&m.domReference.current&&co(m.domReference.current);const s="boolean"===typeof E.current?lo()||a:E.current.current||a;queueMicrotask(()=>{E.current&&!R.current&&xn(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),a.remove()})}},[r,x,V,E,b,m,v,D,g,_,w]),f.useEffect(()=>{queueMicrotask(()=>{R.current=!1})},[r]),ki(()=>{if(!r&&I)return I.setFocusManagerState({modal:l,closeOnFocusOut:u,open:h,onOpenChange:p,refs:m}),()=>{I.setFocusManagerState(null)}},[r,I,l,h,p,m,u]),ki(()=>{if(r)return;if(!V)return;if("function"!==typeof MutationObserver)return;if(A)return;const e=()=>{const e=V.getAttribute("tabindex"),t=F(),n=Hn(Kn(x)),r=t.indexOf(n);-1!==r&&(M.current=r),O.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&V.setAttribute("tabindex","0"):"-1"!==e&&V.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(V,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,x,V,m,O,F,A]);const H=!r&&C&&(!l||!S)&&(_||l);return f.createElement(f.Fragment,null,H&&f.createElement(to,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(l){const e=B();Vi("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(R.current=!1,$i(e,I.portalNode)){const e=Ki()||w;null==e||e.focus()}else{var t;
2null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!S&&N("start"),n,N("end"),H&&f.createElement(to,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(l)Vi(B()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(u&&(R.current=!0),$i(e,I.portalNode)){const e=Xi()||w;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}function ho(e){return xn(e.target)&&"BUTTON"===e.target.tagName}function mo(e){return Qn(e)}const go={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},po={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},vo=e=>{var t,n;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function bo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Di(),o=f.useRef({}),[a]=f.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),s=null!=zi();const[c,l]=f.useState(r.reference),d=Si((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),u=f.useMemo(()=>({setPositionReference:l}),[]),h=f.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return f.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:u}),[t,d,h,a,i,u])}function yo(e){void 0===e&&(e={});const{nodeId:t}=e,n=bo((0,a.A)((0,a.A)({},e),{},{elements:(0,a.A)({reference:null,floating:null},e.elements)})),r=e.rootContext||n,i=r.elements,[o,s]=f.useState(null),[c,l]=f.useState(null),d=(null==i?void 0:i.domReference)||o,h=f.useRef(null),m=Ri();ki(()=>{d&&(h.current=d)},[d]);const g=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[h,m]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=f.useState(r);gi(g,r)||p(r);const[v,b]=f.useState(null),[y,w]=f.useState(null),x=f.useCallback(e=>{e!==C.current&&(C.current=e,b(e))},[]),A=f.useCallback(e=>{e!==O.current&&(O.current=e,w(e))},[]),S=o||v,k=s||y,C=f.useRef(null),O=f.useRef(null),j=f.useRef(h),E=null!=l,D=bi(l),I=bi(i),T=bi(d),z=f.useCallback(()=>{if(!C.current||!O.current)return;const e={placement:t,strategy:n,middleware:g};I.current&&(e.platform=I.current),hi(C.current,O.current,e).then(e=>{const t=(0,a.A)((0,a.A)({},e),{},{isPositioned:!1!==T.current});R.current&&!gi(j.current,t)&&(j.current=t,u.flushSync(()=>{m(t)}))})},[g,t,n,I,T]);mi(()=>{!1===d&&j.current.isPositioned&&(j.current.isPositioned=!1,m(e=>(0,a.A)((0,a.A)({},e),{},{isPositioned:!1})))},[d]);const R=f.useRef(!1);mi(()=>(R.current=!0,()=>{R.current=!1}),[]),mi(()=>{if(S&&(C.current=S),k&&(O.current=k),S&&k){if(D.current)return D.current(S,k,z);z()}},[S,k,z,D,E]);const L=f.useMemo(()=>({reference:C,floating:O,setReference:x,setFloating:A}),[x,A]),M=f.useMemo(()=>({reference:S,floating:k}),[S,k]),_=f.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=vi(M.floating,h.x),r=vi(M.floating,h.y);return c?(0,a.A)((0,a.A)({},e),{},{transform:"translate("+t+"px, "+r+"px)"},pi(M.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:r}},[n,c,M.floating,h.x,h.y]);return f.useMemo(()=>(0,a.A)((0,a.A)({},h),{},{update:z,refs:L,elements:M,floatingStyles:_}),[h,z,L,M,_])}((0,a.A)((0,a.A)({},e),{},{elements:(0,a.A)((0,a.A)({},i),c&&{reference:c})})),p=f.useCallback(e=>{const t=wn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),g.refs.setReference(t)},[g.refs]),v=f.useCallback(e=>{(wn(e)||null===e)&&(h.current=e,s(e)),(wn(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!wn(e))&&g.refs.setReference(e)},[g.refs]),b=f.useMemo(()=>(0,a.A)((0,a.A)({},g.refs),{},{setReference:v,setPositionReference:p,domReference:h}),[g.refs,v,p]),y=f.useMemo(()=>(0,a.A)((0,a.A)({},g.elements),{},{domReference:d}),[g.elements,d]),w=f.useMemo(()=>(0,a.A)((0,a.A)((0,a.A)({},g),r),{},{refs:b,elements:y,nodeId:t}),[g,b,y,t,r]);return ki(()=>{r.dataRef.current.floatingContext=w;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),f.useMemo(()=>(0,a.A)((0,a.A)({},g),{},{context:w,refs:b,elements:y}),[g,b,y,w])}const wo="active",xo="selected";function Ao(e,t,n){const r=new Map,s="item"===n;let c=e;if(s&&e){const{[wo]:t,[xo]:n}=e;c=(0,o.A)(e,[wo,xo].map(i.A))}return(0,a.A)((0,a.A)((0,a.A)({},"floating"===n&&{tabIndex:-1,[ao]:""}),c),t.map(t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
2t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;s&&[wo,xo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof i&&(null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{}))}const So=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);const ko=27,Co=38,Oo=40,jo=l.Ay.ul.withConfig(vt)(H||(H=(0,s.A)(["\n width: fit-content;\n max-width: 22rem;\n background-color: ",";\n border: ",";\n margin: 0;\n border-radius: 0.25rem;\n backdrop-filter: blur(1rem);\n list-style: none;\n padding: 0.5rem 0;\n box-shadow: ",";\n z-index: ",";\n display: table;\n overflow: inherit;\n"])),e=>e.theme.popOver.menuBgd,e=>e.theme.popOver.menuBorder,e=>e.theme.popOver.shadow,e=>e.theme.zIndex.popOver),Eo=l.Ay.button.withConfig(vt)(U||(U=(0,s.A)(["\n background-color: transparent;\n padding: 0;\n border: none;\n cursor: pointer;\n &:focus {\n outline: 0;\n }\n"]))),Do=l.Ay.li.withConfig(vt)(W||(W=(0,s.A)(["\n height: 2rem;\n position: relative;\n\n button,\n a {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n border: none;\n cursor: pointer;\n background-color: ",";\n color: ",";\n line-height: ",";\n font-size: ",";\n padding: 0 2.5rem;\n text-decoration: none;\n outline: 0;\n\n &:hover,\n &:focus {\n background-color: ",";\n color: ",";\n outline: 0;\n }\n\n &:disabled {\n color: ",";\n }\n }\n\n a {\n width: unset;\n }\n\n .ch-content > * {\n ",";\n }\n\n .ch-check {\n position: absolute;\n left: 0.5rem;\n width: 1.5rem;\n height: 1.5rem;\n top: 0.33rem;\n }\n\n &:hover .ch-check g,\n &:focus .ch-check g {\n fill: ",";\n }\n"])),e=>e.theme.popOver.itemBgd,e=>e.theme.popOver.itemText,e=>e.theme.fontSizes.text.lineHeight,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.popOver.active.itemBgd,e=>e.theme.popOver.active.itemText,e=>e.theme.popOver.disabled,mt,e=>e.theme.popOver.active.itemText),Io=((0,l.Ay)(Do)(q||(q=(0,s.A)(["\n > span {\n width: 100%;\n height: 100%;\n display: block;\n height: 2rem;\n }\n\n > button {\n position: relative;\n }\n\n .ch-caret {\n position: absolute;\n width: 1.5rem;\n height: 1.5rem;\n right: 0;\n color: inherit;\n fill: inherit;\n }\n"]))),l.Ay.header.withConfig(vt)(G||(G=(0,s.A)(["\n border-bottom: 0.0625rem solid ",";\n margin-bottom: 0.75rem;\n max-width: 22rem;\n\n img {\n width: 100%;\n display: inline-block;\n margin-top: -0.5rem;\n border-radius: 0.25rem 0.25rem 0 0;\n }\n\n img + .ch-title {\n margin-top: 0.75rem;\n }\n\n .ch-title {\n ",";\n padding: 0 2.5rem;\n margin-top: 0.5rem;\n margin-bottom: 0;\n color: ",";\n font-size: 1.18125rem;\n line-height: ",";\n }\n\n .ch-subtitle {\n ",";\n padding: 0 2.5rem;\n color: #616672;\n font-size: ",";\n line-height: ",";\n line-height: 1.43;\n margin: 0 0 1rem;\n }\n"])),e=>e.theme.popOver.separator,mt,e=>e.theme.popOver.titleText,e=>e.theme.fontSizes.text.lineHeight,mt,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight),l.Ay.li.withConfig(vt)(Y||(Y=(0,s.A)(["\n margin: 0;\n border-width: 0.0625rem 0 0 0;\n border-style: solid;\n border-color: ",";\n margin-bottom: 0.75rem;\n opacity: 0.8;\n"])),e=>e.theme.popOver.separator),e=>{var{renderButton:t,renderButtonWrapper:n,onPopOverClick:r,children:i,isSubMenu:o=!1,placement:s="bottom-start",a11yLabel:l,className:d,closeOnClick:u=!0}=e;ct(e,["renderButton","renderButtonWrapper","onPopOverClick","children","isSubMenu","placement","a11yLabel","className","closeOnClick"]);const[h,m]=(0,f.useState)(!1),{refs:g,floatingStyles:p,context:v}=yo({open:h,onOpenChange:m,placement:s,whileElementsMounted:li,middleware:[(b={mainAxis:0,crossAxis:-8},(0,a.A)((0,a.A)({},di(b)),{},{options:[b,y]})),wi(),yi()]});var b,y;const w=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:s="click",toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0,stickIfOpen:u=!0}=t,h=f.useRef(),m=f.useRef(!1),g=f.useMemo(()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==s&&(Yn(t,!0)&&l||(!n||!c||i.current.openEvent&&u&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===s&&h.current?h.current=void 0:Yn(t,!0)&&l||(!n||!c||i.current.openEvent&&u&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!d||ho(e)||(" "!==e.key||mo(o)||
2(e.preventDefault(),m.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||ho(e)||mo(o)||" "===e.key&&m.current&&(m.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[i,o,s,l,d,r,n,u,c]);return f.useMemo(()=>a?{reference:g}:{},[a,g])}(v),x=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:h=!1,bubbles:m,capture:g}=t,p=Ri(),v=Si("function"===typeof c?c:()=>!1),b="function"===typeof c?v:c,y=f.useRef(!1),w=f.useRef(!1),{escapeKey:x,outsidePress:A}=vo(m),{escapeKey:S,outsidePress:k}=vo(g),C=f.useRef(!1),O=Si(e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(C.current)return;const i=null==(t=o.current.floatingContext)?void 0:t.nodeId,c=p?Pi(p.nodesRef.current,i):[];if(!x&&(e.stopPropagation(),c.length>0)){let e=!0;if(c.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),j=Si(e=>{var t;const n=()=>{var t;O(e),null==(t=$n(e))||t.removeEventListener("keydown",n)};null==(t=$n(e))||t.addEventListener("keydown",n)}),E=Si(e=>{var t;const n=y.current;y.current=!1;const a=w.current;if(w.current=!1,"click"===l&&a)return;if(n)return;if("function"===typeof b&&!b(e))return;const s=$n(e),c="["+Li("inert")+"]",d=Kn(i.floating).querySelectorAll(c);let f=wn(s)?s:null;for(;f&&!Mn(f);){const e=Pn(f);if(Mn(e)||!wn(e))break;f=e}if(d.length&&wn(s)&&!s.matches("html,body")&&!Un(s,i.floating)&&Array.from(d).every(e=>!Un(f,e)))return;if(xn(s)&&T){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===_n(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const u=null==(t=o.current.floatingContext)?void 0:t.nodeId,h=p&&Pi(p.nodesRef.current,u).some(t=>{var n;return Xn(e,null==(n=t.context)?void 0:n.elements.floating)});if(Xn(e,i.floating)||Xn(e,i.domReference)||h)return;const m=p?Pi(p.nodesRef.current,u):[];if(m.length>0){let e=!0;if(m.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),D=Si(e=>{var t;const n=()=>{var t;E(e),null==(t=$n(e))||t.removeEventListener(l,n)};null==(t=$n(e))||t.addEventListener(l,n)});f.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=x,o.current.__outsidePressBubbles=A;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function c(){window.clearTimeout(e),C.current=!0}function d(){e=window.setTimeout(()=>{C.current=!1},Rn()?5:0)}const f=Kn(i.floating);s&&(f.addEventListener("keydown",S?j:O,S),f.addEventListener("compositionstart",c),f.addEventListener("compositionend",d)),b&&f.addEventListener(l,k?D:E,k);let u=[];return h&&(wn(i.domReference)&&(u=Bn(i.domReference)),wn(i.floating)&&(u=u.concat(Bn(i.floating))),!wn(i.reference)&&i.reference&&i.reference.contextElement&&(u=u.concat(Bn(i.reference.contextElement)))),u=u.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)}),u.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",S?j:O,S),f.removeEventListener("compositionstart",c),f.removeEventListener("compositionend",d)),b&&f.removeEventListener(l,k?D:E,k),u.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[o,i,s,b,l,n,r,h,a,x,A,O,S,j,E,k,D]),f.useEffect(()=>{y.current=!1},[b,l]);const I=f.useMemo(()=>({onKeyDown:O,[go[u]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}}),[O,r,d,u]),T=f.useMemo(()=>({onKeyDown:O,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[po[l]]:()=>{y.current=!0}}),[O,l]);return f.useMemo(()=>a?{reference:I,floating:T}:{},[a,I,T])}(v),A=function(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,c=null!=(n=So.get(s))?n:s,l=Di(),d=null!=zi(),u=f.useMemo(()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:r?i:void 0}:(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":r?i:void 0},"listbox"===c&&{role:"combobox"}),"menu"===c&&{id:l}),"menu"===c&&d&&{role:"menuitem"}),"select"===s&&{"aria-autocomplete":"none"}),"combobox"===s&&{"aria-autocomplete":"list"}),[c,i,d,r,l,s]),h=f.useMemo(()=>{const e=(0,a.A)({id:i},c&&{role:c});return"tooltip"===c||"label"===s?e:(0,a.A)((0,a.A)({},e),"menu"===c&&{"aria-labelledby":l})},[c,i,l,s]),m=f.useCallback(e=>{let{active:t,selected:n}=e;const r=(0,a.A)({role:"option"},t&&{id:i+"-option"});switch(s){case"select":return(0,a.A)((0,a.A)({},r),{},{"aria-selected":t&&n});case"combobox":return(0,a.A)((0,a.A)({},r),t&&{"aria-selected":!0})}return{}},[i,s]);return f.useMemo(()=>o?{reference:u,floating:h,item:m}:{},[o,u,h,m])}(v),{getReferenceProps:S,getFloatingProps:k}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=f.useCallback(t=>Ao(t,e,"reference"),t),o=f.useCallback(t=>Ao(t,e,"floating"),n),a=f.useCallback(t=>Ao(t,e,"item"),r);return f.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}([w,x,A]),C=e=>{const t=g.floating.current;if(!o&&t){const n=(e=>e.querySelectorAll("button, [href]"))(t),r=document.activeElement;for(let t=0;t<n.length;t++)if(n[t]===r){if("down"===e){if(t===n.length-1)return;return void n[t+1].focus()}if("up"===e){if(0===t)return;return void n[t-1].focus()}return}n.length>0&&n[0].focus()}},O=Object.assign(Object.assign({ref:g.setReference,className:mn(d,"ch-popover-toggle"),"data-menu":o?"submenu":null,"aria-label":l,"aria-haspopup":!0,"aria-expanded":h,"data-testid":"popover-toggle"},S()),{onClick:()=>{m(!h),r&&r(h)}});return(0,c.jsxs)("span",Object.assign({"data-testid":"popover"}
2,{children:[t?(0,c.jsx)(Eo,Object.assign({},O,{children:t(h)})):n?(0,c.jsx)("span",Object.assign({ref:g.setReference},{children:n(h,Object.assign(Object.assign({},O),{ref:void 0}))})):null,h&&(0,c.jsx)(io,{children:(0,c.jsx)(uo,Object.assign({context:v,modal:!1},{children:(0,c.jsx)(jo,Object.assign({ref:g.setFloating,style:p},k(),{onKeyDown:e=>{switch(e.keyCode){case ko:return m(!1);case Co:return C("up");case Oo:return C("down")}},"data-placement":s,onClick:e=>(e=>{if(!u)return;return!e.target.closest("[data-menu='submenu']")&&m(!1)})(e),"data-testid":"menu",className:"ch-popover-menu"},{children:i}))}))})]}))}),To=new h.ConsoleLogger("ChimeSDKReactComponent",h.LogLevel.INFO),zo=f.createContext(To),Ro=()=>(0,f.useContext)(zo),Lo=.25,Mo=.5,_o=(0,l.AH)(K||(K=(0,s.A)(["\n top: calc(\n ","px -\n ","rem\n );\n left: ","px;\n transform: translateX(-50%) translateY(-50%);\n\n &::before {\n transform: rotateZ(180deg);\n top: 100%;\n left: calc(50% - ","rem);\n }\n"])),e=>{var t,n;return null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.top)&&void 0!==n?n:0},1.75,e=>{var t,n,r,i;return((null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.left)&&void 0!==n?n:0)+(null!==(i=null===(r=e.bounds)||void 0===r?void 0:r.right)&&void 0!==i?i:0))/2},Mo),Vo=(0,l.AH)(X||(X=(0,s.A)(["\n top: calc(\n ","px +\n ","rem\n );\n left: ","px;\n transform: translateX(-50%) translateY(-50%);\n\n &::before {\n transform: rotateZ(0deg);\n top: -","rem;\n left: calc(50% - ","rem);\n }\n"])),e=>{var t,n;return null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.bottom)&&void 0!==n?n:0},1.75,e=>{var t,n,r,i;return((null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.left)&&void 0!==n?n:0)+(null!==(i=null===(r=e.bounds)||void 0===r?void 0:r.right)&&void 0!==i?i:0))/2},Mo,Mo),Po=(0,l.AH)($||($=(0,s.A)(["\n top: ","px;\n left: calc(\n ","px - ","rem\n );\n transform: translateY(-50%) translateX(-100%);\n\n &::before {\n transform: rotateZ(90deg);\n top: calc(50% - ","rem);\n left: calc(100% - ","rem);\n }\n"])),e=>{var t,n,r,i;return((null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.top)&&void 0!==n?n:0)+(null!==(i=null===(r=e.bounds)||void 0===r?void 0:r.bottom)&&void 0!==i?i:0))/2},e=>{var t,n;return null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.left)&&void 0!==n?n:0},.75,.25,Lo),Fo=(0,l.AH)(Q||(Q=(0,s.A)(["\n top: ","px;\n left: calc(\n ","px + ","rem\n );\n transform: translateY(-50%);\n\n &::before {\n transform: rotateZ(270deg);\n top: calc(50% - ","rem);\n left: -","rem;\n }\n"])),e=>{var t,n,r,i;return((null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.top)&&void 0!==n?n:0)+(null!==(i=null===(r=e.bounds)||void 0===r?void 0:r.bottom)&&void 0!==i?i:0))/2},e=>{var t,n;return null!==(n=null===(t=e.bounds)||void 0===t?void 0:t.right)&&void 0!==n?n:0},.75,.25,.75),Bo=l.Ay.span.withConfig(vt)(J||(J=(0,s.A)(["\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n position: fixed;\n z-index: 9999;\n color: white;\n white-space: nowrap;\n pointer-events: none;\n line-height: normal;\n background-color: rgba(0, 0, 0, 0.8);\n border-radius: ","rem;\n font-size: ","rem;\n font-weight: 300;\n padding: ","rem ","rem;\n white-space: nowrap;\n animation: fadeIn 0.3s;\n\n &::before {\n border-bottom: ","rem solid rgba(0, 0, 0, 0.8);\n border-left: ","rem solid transparent;\n border-right: ","rem solid transparent;\n content: '';\n height: 0;\n transform: translateX(-100%) translateY(-50%);\n width: 0;\n z-index: 1;\n position: absolute;\n }\n\n ","\n ","\n ","\n ","\n"])),.5,1,.5,.75,Mo,Mo,Mo,e=>"top"===e.position&&_o,e=>"bottom"===e.position&&Vo,e=>"left"===e.position&&Po,e=>"right"===e.position&&Fo),No={show:!1,bounds:null},Ho=(e,t)=>n=>{var r;const i=Ro(),[{show:o,bounds:a},s]=(0,f.useState)(No),[l,d]=(0,f.useState)(null),h=null!==(r=n.tooltipPosition)&&void 0!==r?r:"top",m=(0,f.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=e.target;for(;!t.getAttribute("data-tooltip");)t=t.parentElement;const n=t.getBoundingClientRect();s({show:!0,bounds:n})},[]),g=(0,f.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),s(No)},[]);return(0,f.useEffect)(()=>(document.addEventListener("scroll",g,!0),()=>document.removeEventListener("scroll",g,!0)),[]),(0,f.useEffect)(()=>{const e=document.getElementById(t||"Tooltip__container");e?d(e):i.warn("Attempted to use 'WithTooltip' but could not find container element.Pass a valid element ID or add 'Tooltip__container' ID to existing element")},[t]),(0,c.jsxs)(c.Fragment,{children:[o&&a&&l&&u.createPortal((0,c.jsx)(Bo,Object.assign({position:h,bounds:a},{children:n.tooltipContent||n.label})),l),(0,c.jsx)(e,Object.assign({},n,{"data-tooltip":!0,"data-tooltip-position":h,onClick:e=>{var t;o&&g(e),null===(t=null===n||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e)},onFocus:e=>{var t;o||m(e),null===(t=null===n||void 0===n?void 0:n.onFocus)||void 0===t||t.call(n,e)},onBlur:e=>{var t;o&&g(e),null===(t=null===n||void 0===n?void 0:n.onBlur)||void 0===t||t.call(n,e)},onMouseEnter:e=>{var t;o||m(e),null===(t=null===n||void 0===n?void 0:n.onMouseEnter)||void 0===t||t.call(n,e)},onMouseLeave:e=>{var t;o&&g(e),null===(t=null===n||void 0===n?void 0:n.onMouseLeave)||void 0===t||t.call(n,e)}}))]})},Uo=(0,l.AH)(Z||(Z=(0,s.A)(["\n display: flex;\n width: 100%;\n height: 100%;\n"]))),Wo={"fill-space":Uo,"fill-space-centered":(0,l.AH)(ee||(ee=(0,s.A)(["\n ",";\n align-items: center;\n justify-content: center;\n"])),Uo),"equal-columns":(0,l.AH)(te||(te=(0,s.A)(["\n display: flex;\n flex-direction: row;\n height: 100%;\n align-items: stretch;\n\n > * {\n flex-grow: 1;\n flex-basis: 50%;\n }\n"]))),stack:(0,l.AH)(ne||(ne=(0,s.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n\n > * {\n width: 100%;\n }\n"])))},qo=l.Ay.div.withConfig(vt)(re||(re=(0,s.A)(["\n align-items: ",";\n display: ",";\n flex: ",";\n flex-basis: ",";\n flex-direction: ",";\n flex-grow: ",";\n flex-shrink: ",";\n flex-wrap: ",";\n justify-content: ",";\n\n // layout variants\n ","\n\n ","\n ","\n"])),e=>e.alignItems,e=>e.container?"flex":"block",e=>e.flex||"",e=>e.flexBasis,e=>e.flexDirection,e=>e.flexGrow||"",e=>e.flexShrink,e=>e.flexWrap,e=>e.justifyContent,e=>!!e.layout&&Wo[e.layout],yt,bt),Go=e=>{var{children:t,className:n,tag:r,alignItems:i="stretch",container:o=!1,flexBasis:a="auto",flexDirection:s="row",flexShrink:l=1,flexWrap:d="nowrap",justifyContent:f="flex-start"}=e,u=ct(e,["children","className","tag","alignItems","container","flexBasis","flexDirection","flexShrink","flexWrap","justifyContent"]);return(0,c.jsx)(qo,Object.assign({alignItems:i,container:o,flexBasis:a,flexDirection:s,flexShrink:l,flexWrap:d,justifyContent:f,as:r,"data-testid":"flex",className:n||""},u,{children:t}))};function Yo(){const[e]=(0,f.useState)(()=>(0,m.A)());return e}const Ko=l.Ay.label.withConfig(vt)(ie||(ie=(0,s.A)(["\n color: ",";\n font-size: ",";\n line-height: ",";\n\n ","\n ","\n"])),e=>e.theme.inputs.fontColor,e=>e.theme.fontSizes.label.fontSize,e=>e.theme.fontSizes.label.lineHeight,yt,bt),Xo=(0,f.forwardRef)((e,t)=>{const{className:n,tag:r}=e,i=ct(e,["className","tag"]);return(0,c.jsx)(Ko,Object.assign({as:r,"data-testid":"label",className:n||""},i,{children:e.children}))}),$o=(0,l.AH)(oe||(oe=(0,s.A)(["\n &.ch-form-field-input,\n &.ch-form-field-select,\n &.ch-form-field-textarea {\n display: flex;\n flex-direction: column;\n\n label {\n display: block;\n margin-bottom: 0.5rem;\n }\n\n input,\n select {\n width: 100%;\n }\n }\n\n &.ch-form-field-checkbox {\n display: grid;\n grid-template-columns: 1.5rem 1fr;\n grid-template-rows: auto;\n gap: 0px 0.5rem;\n\n .ch-checkbox {\n grid-column: 1;\n grid-row: 1;\n }\n\n .ch-checkbox-label {\n line-height: 1.3;\n grid-column: 2;\n }\n\n .ch-help-text {\n grid-row: 2;\n grid-column: 1/3;\n }\n }\n\n &.ch-form-field-radiogroup {\n flex-direction: column;\n\n .ch-radio-wrapper {\n display: block;\n margin-bottom: 0.5rem;\n padding-left: 0.125rem;\n display: grid;\n grid-template-columns: 1.5rem 1fr;\n grid-template-rows: auto;\n\n align-items: center;\n }\n\n .ch-radio-label {\n margin-left: 1rem;\n position: relative;\n bottom: -0.5px;\n }\n }\n"]))),Qo={stack:$o,horizontal:(0,l.AH)(ae||(ae=(0,s.A)(["\n @media (max-width: 599px) {\n ",";\n }\n\n @media (min-width: 600px) {\n &.ch-form-field-input,\n &.ch-form-field-select,\n &.ch-form-field-textarea,\n &.ch-form-field-checkbox {\n display: grid;\n grid-template-columns: 30% 1fr;\n grid-template-rows: auto;\n gap: 0px 0.5rem;\n align-items: center;\n\n input {\n width: 100%;\n }\n\n .ch-help-text {\n grid-column: 2;\n }\n }\n\n &.ch-form-field-radiogroup {\n flex-wrap: wrap;\n\n fieldset {\n width: 100%;\n }\n\n .ch-radio-wrapper {\n display: grid;\n grid-template-columns: 30% 1fr;\n grid-template-rows: auto;\n gap: 0px 0.5rem;\n align-items: center;\n margin-bottom: 0.5rem;\n }\n\n .ch-radio {\n grid-column: 2;\n grid-row: 1;\n margin-top: -4px;\n }\n\n .ch-radio-label {\n grid-column: 1;\n padding-right: 1rem;\n margin-left: 0;\n }\n\n .ch-help-text {\n width: 100%;\n }\n }\n }\n"])),$o),"input-only":(0,l.AH)(se||(se=(0,s.A)(["\n &.ch-form-field-input,\n &.ch-form-field-select,\n &.ch-form-field-textarea {\n display: flex;\n flex-direction: column;\n\n input {\n width: 100%;\n }\n }\n\n &.ch-form-field-checkbox {\n display: flex;\n flex-wrap: wrap;
2\n align-items: center;\n\n .ch-checkbox {\n order: 1;\n }\n\n .ch-checkbox-label {\n order: 2;\n padding-left: 1rem;\n }\n\n .ch-help-text {\n width: 100%;\n order: 3;\n }\n }\n\n &.ch-form-field-radiogroup {\n flex-direction: column;\n\n .ch-radio-wrapper {\n display: block;\n margin-bottom: 0.5rem;\n }\n\n .ch-radio-label {\n margin-left: 1rem;\n }\n }\n"])))},Jo=l.Ay.div.withConfig(vt)(ce||(ce=(0,s.A)(["\n display: flex;\n margin-bottom: 1rem;\n position: relative;\n\n fieldset {\n margin: 0;\n border: none;\n padding: 0;\n }\n\n .ch-help-text {\n font-size: ",";\n margin-top: 0.5rem;\n color: ",";\n }\n\n legend {\n font-size: ",";\n color: ",";\n margin-bottom: 0.5rem;\n }\n\n ","\n\n ","\n ","\n"])),e=>e.theme.fontSizes.small.fontSize,e=>e.error?e.theme.inputs.error.fontColor:e.theme.inputs.fontColor,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.inputs.fontColor,e=>!!e.layout&&Qo[e.layout],yt,bt),Zo=((0,f.forwardRef)((e,t)=>{var n;const{field:r,label:i,layout:o="stack",errorText:a,fieldProps:s,infoText:l,error:d,onChange:f,value:u,checked:h,options:m,className:g}=e,p=ct(e,["field","label","layout","errorText","fieldProps","infoText","error","onChange","value","checked","options","className"]),v=(null===(n=r.displayName)||void 0===n?void 0:n.toLowerCase())||"",b=Yo(),y=Yo(),w=d&&a||l;return(0,c.jsxs)(Jo,Object.assign({layout:o,error:d,className:"ch-form-field-".concat(v," ").concat(g||""),"data-testid":"form-field"},p,{children:["input-only"===o&&"checkbox"!==v?null:"radiogroup"!==v&&(0,c.jsx)(Xo,Object.assign({htmlFor:b,className:"ch-".concat(v,"-label")},{children:i})),"radiogroup"===v?(0,c.jsxs)("fieldset",Object.assign({"aria-describedby":w&&y,"aria-invalid":d},{children:[i&&(0,c.jsx)("legend",{children:i}),(0,c.jsx)(r,Object.assign({options:m,ref:t,id:b,onChange:f,value:u},s))]})):(0,c.jsx)(r,Object.assign({options:m,"aria-label":"input-only"===o&&i||null,"aria-describedby":w&&y,"aria-invalid":d,ref:t,id:b,onChange:f,value:u,checked:h},s)),w&&(0,c.jsx)("span",Object.assign({className:"ch-help-text",id:y},{children:w}))]}))}),l.Ay.h1.withConfig(vt)(le||(le=(0,s.A)(["\n display: block;\n margin: 0;\n\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n\n "," {\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n }\n\n ","\n ","\n"])),e=>e.theme.fontSizes["h".concat(e.level)].mobile.fontSize,e=>e.theme.fontSizes["h".concat(e.level)].mobile.fontWeight,e=>e.theme.fontSizes["h".concat(e.level)].mobile.lineHeight,e=>{let{theme:t}=e;return t.mediaQueries.min.md},e=>e.theme.fontSizes["h".concat(e.level)].fontSize,e=>e.theme.fontSizes["h".concat(e.level)].fontWeight,e=>e.theme.fontSizes["h".concat(e.level)].lineHeight,yt,bt)),ea=((0,f.forwardRef)((e,t)=>{const{tag:n,children:r,className:i,level:o}=e,a=ct(e,["tag","children","className","level"]);return(0,c.jsx)(Zo,Object.assign({as:n||"h".concat(o),className:i||"",level:o,ref:t,"data-testid":"heading"},a,{children:r}))}),l.Ay.span.withConfig(vt)(de||(de=(0,s.A)(["\n position: relative;\n\n > .ch-icon {\n position: absolute;\n width: 1rem;\n left: 0.1875rem;\n position: absolute;\n top: 54%;\n transform: translateY(-50%);\n }\n\n > input {\n padding: ",";\n }\n"])),e=>(e=>{const{sizing:t,leadingIcon:n}=e;return"sm"===t?"0.125rem 1.75rem 0.125rem ".concat(n?"1.3125rem":"0.5rem"):"0.34375rem 1.75rem 0.34375rem ".concat(n?"1.3125rem":"0.5rem")})(e))),ta=l.Ay.input.withConfig(vt)(fe||(fe=(0,s.A)(["\n align-items: center;\n display: flex;\n letter-spacing: -0.005625rem;\n transition: box-shadow 0.05s ease-in;\n background-color: ",";\n border: ",";\n border-radius: ",";\n box-shadow: ",";\n color: ",";\n font-size: ",";\n line-height: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &:focus,\n &[aria-invalid='true']:focus {\n border: ",";\n box-shadow: ",";\n outline: none;\n }\n\n &[aria-invalid='true'] {\n border: ",";\n box-shadow: ",";\n }\n\n // Hides native clear button\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n display: none;\n }\n\n &::-ms-clear,\n &::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n }\n\n ","\n ","\n"])),e=>e.theme.inputs.bgd,e=>e.theme.inputs.border,e=>e.theme.inputs.borderRadius,e=>e.theme.inputs.shadow,e=>e.theme.inputs.fontColor,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight,e=>e.theme.inputs.placeholder,e=>e.theme.inputs.focus.border,e=>e.theme.inputs.focus.shadow,e=>e.theme.inputs.error.border,e=>e.theme.inputs.error.shadow,yt,bt),na=l.Ay.button.withConfig(vt)(ue||(ue=(0,s.A)(["\n position: absolute;\n top: 50%;\n right: 0.125rem;\n transform: translateY(-44%);\n border: none;\n background: none;\n cursor: pointer;\n display: ",";\n\n path {\n fill: ",";\n }\n\n &:active,\n &:focus {\n outline: none;\n }\n"])),e=>e.active?"block":"none",e=>e.theme.inputs.clearBg),ra=(0,f.forwardRef)((e,t)=>{const{leadingIcon:n,children:r,sizing:i}=e,o=ct(e,["leadingIcon","children","sizing"]);return(0,c.jsxs)(ea,Object.assign({ref:t,sizing:i,leadingIcon:n},o,{"data-testid":"input-wrapper"},{children:[n&&(0,c.jsx)("span",Object.assign({className:"ch-icon"},{children:n})),r]}))}),ia=(0,f.forwardRef)((e,t)=>{const{type:n,value:r,sizing:i,onClear:o,onChange:a,className:s,leadingIcon:l,showClear:d=!0}=e,u=ct(e,["type","value","sizing","onClear","onChange","className","leadingIcon","showClear"]),[h,m]=(0,f.useState)(!1),g=(0,f.useRef)(!1),p=(0,f.useRef)(null),v=t||p,b=(0,f.useRef)(null),y=e["aria-label"]?"clear ".concat(e["aria-label"]):"clear";return(0,f.useEffect)(()=>{let e=!1;const t=t=>
2{if(g.current)return t.target!==b.current&&t.target!==v.current?(g.current=!1,void m(!1)):void(e&&(e=!1))},n=()=>{g.current&&(e=!0,setTimeout(()=>{e&&(g.current=!1,m(!1)),e=!1},10))};return document.addEventListener("focusin",t),document.addEventListener("focusout",n),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",n)}},[]),(0,c.jsxs)(ra,Object.assign({leadingIcon:l,sizing:i,className:"ch-input-wrapper ".concat(s||"")},{children:[(0,c.jsx)(ta,Object.assign({},u,{value:r,type:n||"text",ref:v,className:"ch-input",onChange:a,"data-testid":"input",onFocus:()=>{g.current=!0,m(!0)}})),d&&(0,c.jsx)(na,Object.assign({type:"button",active:!!(o||h&&r.length),tabIndex:-1,"aria-label":y,onClick:()=>{var e;if(o)return void o();const t=v.current,n=null===(e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))||void 0===e?void 0:e.set;n&&t&&(n.call(t,""),t.dispatchEvent(new Event("input",{bubbles:!0}))),t.focus()},ref:b},{children:(0,c.jsx)(Nt,{width:"1.25rem"})}))]}))});ia.displayName="Input";(0,f.forwardRef)((e,t)=>{const n=Object.assign(Object.assign({},e),{sizing:"sm",type:"search",leadingIcon:(0,c.jsx)(Jt,{"data-testid":"search-icon"})});return(0,c.jsx)(ia,Object.assign({},n,{ref:t}))});(0,f.createContext)({onClose(){},labelID:"",dismissible:!0});const oa=(0,l.i7)(he||(he=(0,s.A)(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"]))),aa=(0,l.i7)(me||(me=(0,s.A)(["\n 0% {\n opacity: 0;\n transform: translateY(4rem) scale(0.4);\n }\n 100% {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n"]))),sa=(l.Ay.div.withConfig(vt)(ge||(ge=(0,s.A)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: ",";\n overflow-x: hidden;\n animation: "," 0.25s ease 0s forwards;\n will-change: opacity;\n\n > section {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n border-radius: ",";\n color: ",";\n background-color: ",";\n width: ",";\n box-shadow: ",";\n max-width: ",";\n height: ",";\n max-height: ",";\n will-change: transform, opacity;\n animation: "," 0.15s ease 0s forwards;\n\n @media only screen and (max-height: 25rem) {\n position: absolute;\n top: 2rem;\n height: auto;\n max-height: none;\n }\n }\n\n ","\n ","\n"])),e=>e.theme.modal.wrapperBgd,e=>e.theme.zIndex.modal,oa,e=>e.theme.radii.default,e=>e.theme.modal.text,e=>e.theme.modal.bgd,e=>e.theme.modalSizes[e.size||"md"].width,e=>e.theme.modal.shadow,e=>"fullscreen"===e.size?e.theme.modalSizes[e.size].width:"90vw",e=>"fullscreen"===e.size?e.theme.modalSizes[e.size].height:"auto",e=>e.theme.modalSizes[e.size||"md"].height,aa,yt,bt),l.Ay.header.withConfig(vt)(pe||(pe=(0,s.A)(["\n padding: 1rem 1.5rem;\n\n .ch-close-button {\n position: absolute;\n right: 1.55rem;\n top: 1rem;\n }\n\n .ch-title {\n padding-right: 2rem;\n margin: 0;\n font-size: ",";\n font-weight: ",";\n }\n\n ","\n ","\n"])),e=>e.theme.modal.titleSize,e=>e.theme.modal.titleWeight,yt,bt),l.Ay.div.withConfig(vt)(ve||(ve=(0,s.A)(["\n font-size: ",";\n line-height: ",";\n padding: 0 1.5rem;\n flex-grow: 1;\n overflow-y: auto;\n\n ","\n ","\n"])),e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight,yt,bt),l.Ay.footer.withConfig(vt)(be||(be=(0,s.A)(["\n padding: 1.5rem;\n border-top: 1px solid ",";\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n\n div:first-child {\n display: flex;\n flex-direction: row-reverse;\n }\n\n button + button {\n margin: 0 0.5rem 0 0.5rem;\n }\n\n @media (max-width: 35rem) {\n flex-direction: column;\n\n button {\n width: 100%;\n }\n\n div:first-child {\n display: flex;\n flex-direction: column;\n }\n\n button + button,\n div + div {\n margin: 0.5rem 0 0;\n }\n }\n\n ","\n ","\n"])),e=>e.theme.modal.border,yt,bt),l.Ay.div.withConfig(vt)(ye||(ye=(0,s.A)(["\n display: flex;\n height: 3rem;\n align-items: center;\n border-bottom: ",";\n padding: 1rem;\n\n .ch-title {\n flex: 1;\n }\n\n .ch-btn-close {\n margin-left: auto;\n margin-right: 1rem;\n }\n\n "," {\n display: none;\n }\n"])),e=>{let{theme:t}=e;return"0.03125rem solid ".concat(t.navbar.headerBorder)},e=>{let{theme:t}=e;return t.mediaQueries.min.md})),ca=l.Ay.div.withConfig(vt)(we||(we=(0,s.A)(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 4.25rem;\n min-height: 3rem;\n flex-direction: column;\n padding: 0 0.25rem;\n\n .ch-navigation-bar-item-label {\n text-align: center;\n display: ",";\n font-size: ",";\n width: 100%;\n padding: 0 0.25rem;\n margin-bottom: 1.5rem;\n }\n"])),e=>{let{showLabel:t}=e;return t?"block":"none"},e=>{let{theme:t}=e;return t.fontSizes.footnote.fontSize}),la=((0,l.Ay)(Go)(xe||(xe=(0,s.A)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n max-width: 100%;\n color: ",";\n background-color: ",";\n width: 4.25rem;\n padding-top: 1rem;\n\n "," {\n width: ",";\n padding-top: ",";\n\n "," {\n display: ",";\n }\n\n "," {\n ",";\n }\n }\n\n ","\n ","\n"])),e=>e.theme.navbar.text,e=>{let{theme:t}=e;return t.navbar.bgd},e=>{let{theme:t,responsive:n}=e;return t.mediaQueries.max.md},e=>e.responsive?"20rem":"4.25rem;",e=>e.responsive?"0":"1rem",sa,e=>e.responsive?"flex":"none",ca,e=>e.responsive&&" \n width: auto;\n flex-direction: row;\n\n .ch-navigation-bar-item-label {\n font-size: 1rem;\n text-align: left;\n margin-left: 1.5rem;\n margin-bottom: 0;\n display: block;\n }",bt,yt),(0,l.Ay)(Et)(Ae||(Ae=(0,s.A)([""])))),da=(0,l.Ay)(jt)(Se||(Se=(0,s.A)([""])));l.Ay.div.withConfig(vt)(ke||(ke=(0,s.A)(["\n align-items: center;\n position: relative;\n display: inline-flex;\n align-items: center;
2\n color: ",";\n background-color: ",";\n padding: 0.75rem;\n box-shadow: ",";\n border-radius: 0.25rem;\n margin: 0.75rem;\n max-width: 45rem;\n pointer-events: auto;\n\n .ch-severity-icon {\n width: 1.5rem;\n flex-shrink: 0;\n }\n\n .ch-message {\n display: flex;\n flex-flow: column wrap;\n font-size: ",";\n line-height: ",";\n letter-spacing: -0.005625rem;\n margin: 0.5rem 0.75rem;\n\n &:empty {\n margin: 0;\n }\n }\n\n "," {\n margin-right: 1.6rem;\n border-color: ",";\n }\n\n ",",\n "," {\n background-color: ",";\n color: ",";\n }\n\n ",":hover, ",":focus, ",":hover, ",":focus {\n background-color: ",";\n color: ",";\n }\n\n ",":active, ",":active {\n background-color: ",";\n color: ",";\n }\n\n ","\n ","\n"])),e=>{let{theme:t,severity:n}=e;return t.notification[n].text},e=>{let{theme:t,severity:n}=e;return t.colors[n].primary},e=>{let{theme:t}=e;return t.notification.shadow},e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight,da,e=>{let{theme:t,severity:n}=e;return t.notification[n].text},la,da,e=>{let{theme:t,severity:n}=e;return t.colors[n].primary},e=>{let{theme:t,severity:n}=e;return t.notification[n].closeButton.text},la,la,da,da,e=>{let{theme:t,severity:n}=e;return t.notification[n].closeButton.hover.bgd},e=>{let{theme:t,severity:n}=e;return t.notification[n].closeButton.hover.text},la,da,e=>{let{theme:t,severity:n}=e;return t.notification[n].closeButton.active.bgd},e=>{let{theme:t,severity:n}=e;return t.notification[n].closeButton.active.text},yt,bt);var fa;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info",e.WARNING="warning"}(fa||(fa={}));(0,c.jsx)(Bt,{}),(0,c.jsx)(Ht,{}),(0,c.jsx)(Vt,{}),(0,c.jsx)(Yt,{});var ua,ha;!function(e){e.ERROR="error",e.SUCCESS="success",e.INFO="info",e.WARNING="warning"}(ua||(ua={})),function(e){e[e.ADD=0]="ADD",e[e.REMOVE=1]="REMOVE",e[e.REMOVE_ALL=2]="REMOVE_ALL"}(ha||(ha={}));const ma={notifications:[]},ga=(e,t)=>{const{type:n,payload:r}=t;switch(n){case ha.ADD:{const t=Object.assign({id:(0,m.A)()},r),n=(null===t||void 0===t?void 0:t.replaceAll)?[t]:[...e.notifications,t];return Object.assign(Object.assign({},e),{notifications:n})}case ha.REMOVE:{const t=e.notifications.filter(e=>(null===e||void 0===e?void 0:e.id)!==r);return Object.assign(Object.assign({},e),{notifications:t})}case ha.REMOVE_ALL:return Object.assign(Object.assign({},e),{notifications:[]});default:throw new Error("Incorrect type in NotificationProvider")}},pa=f.createContext(ma),va=f.createContext(()=>{}),ba=e=>{let{children:t}=e;const[n,r]=(0,f.useReducer)(ga,ma);return(0,c.jsx)(pa.Provider,Object.assign({value:n},{children:(0,c.jsx)(va.Provider,Object.assign({value:r},{children:t}))}))},ya=()=>(0,f.useContext)(pa),wa=()=>(0,f.useContext)(va),xa=(l.Ay.div.withConfig(vt)(Ce||(Ce=(0,s.A)(["\n position: fixed;\n top: 2rem;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index: ",";\n pointer-events: none;\n"])),e=>e.theme.zIndex.notificationGroup),l.Ay.input.withConfig(vt)(Oe||(Oe=(0,s.A)(["\n ",";\n\n &[aria-invalid='true'] + .ch-radio {\n border: ",";\n box-shadow: ",";\n }\n"])),ht,e=>e.theme.inputs.error.border,e=>e.theme.inputs.error.shadow)),Aa=l.Ay.span.withConfig(vt)(je||(je=(0,s.A)(["\n > label {\n margin-left: 0.5rem;\n }\n"]))),Sa=l.Ay.div.withConfig(vt)(Ee||(Ee=(0,s.A)(["\n background-color: ",";\n border: ",";\n border-radius: ",";\n box-shadow: ",";\n margin-bottom: -0.1875rem;\n transition: box-shadow 0.05s ease-in;\n\n ",":checked ~ & {\n background-color: ",";\n border: ",";\n box-shadow: ",";\n }\n\n ",":focus ~ & {\n border: ",";\n box-shadow: ",";\n }\n"])),e=>e.theme.inputs.bgd,e=>e.theme.inputs.border,e=>e.theme.radii.circle,e=>e.theme.inputs.shadow,xa,e=>e.theme.inputs.checked.bgd,e=>e.theme.inputs.checked.border,e=>e.theme.inputs.checked.shadow,xa,e=>e.theme.inputs.focus.border,e=>e.theme.inputs.focus.shadow),ka=(0,l.Ay)(Sa)(De||(De=(0,s.A)(["\n display: inline-block;\n height: 1rem;\n position: relative;\n width: 1rem;\n\n &:after {\n background-color: ",";\n border-radius: ",";\n content: '';\n display: block;\n height: 0.375rem;\n padding: 0.03125rem;\n width: 0.375rem;\n ",";\n }\n"])),e=>e.checked?e.theme.inputs.checked.fontColor:e.theme.inputs.bgd,e=>e.theme.radii.circle,gt),Ca=(0,l.Ay)(Sa)(Ie||(Ie=(0,s.A)(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0.5rem;\n border-color: ",";\n box-shadow: none;\n margin: 0.1rem;\n\n ",":checked ~ & {\n svg {\n stroke: ",";\n }\n }\n"])),e=>e.theme.colors.greys.white,xa,e=>e.theme.colors.greys.white),Oa=e=>{const{value:t,checked:n,label:r,icon:i,onChange:o,testId:a}=e,s=ct(e,["value","checked","label","icon","onChange","testId"]),l=(0,f.useRef)(null),d=Yo(),u=()=>{var e,t;null===(e=l.current)||void 0===e||e.click(),null===(t=l.current)||void 0===t||t.focus()};return(0,c.jsxs)(Aa,Object.assign({className:"ch-radio-wrapper","data-testid":a},{children:[(0,c.jsx)(xa,Object.assign({checked:n,id:d,onChange:o,type:"radio",value:t,ref:l,"data-testid":"hidden-radio","aria-label":r},s)),i?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Ca,Object.assign({checked:n,className:"ch-radio",onClick:u,"data-testid":"styled-radio-icon"},{children:(0,c.jsx)("span",Object.assign({className:"ch-icon"},{children:i}))}))}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ka,{checked:n,className:"ch-radio",onClick:u,"data-testid":"styled-radio"}),(0,c.jsx)(Xo,Object.assign({htmlFor:d,className:"ch-radio-label"},{children:r}))]})]}))};Oa.displayName="Radio";const ja=l.Ay.div.withConfig(vt)(Te||(Te=(0,s.A)(["\n position: relative;\n\n .ch-select-icon {\n pointer-events: none;\n }\n\n ","\n ","\n"])),yt,bt),Ea=l.Ay.select.withConfig(vt)(ze||(ze=(0,s.A)(["\n background-color: ",";\n border: ",";\n border-radius: ",";\n box-shadow: ",";\n color: ",";\n font-size: ",";\n line-height: ",";\n height: 2rem;\n letter-spacing: -0.005625rem;\n width: 100%;\n padding: 0.375rem 1.5rem 0.375rem 0.5rem;\n transition: box-shadow 0.05s ease-in;\n display: inline-block;\n appearance: none;\n\n &:focus,\n &[aria-invalid='true']:focus {\n border: ",";\n box-shadow: ",";\n outline: none;\n }\n\n &[aria-invalid='true'] {\n border: ",";\n box-shadow: ",";\n }\n\n ","\n ","\n"])),e=>e.theme.inputs.bgd,e=>e.theme.inputs.border,e=>e.theme.inputs.borderRadius,e=>e.theme.inputs.shadow,e=>e.theme.inputs.fontColor,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight,e=>e.theme.inputs.focus.border,e=>e.theme.inputs.focus.shadow,e=>e.theme.inputs.error.border,e=>e.theme.inputs.error.shadow,yt,bt),Da={position:"absolute",top:"50%",transform:"translateY(-50%)",right:"0.2rem",width:"1.5rem",height:"1.5rem"},Ia=(0,f.forwardRef)((e,t)=>{return(0,c.jsxs)(ja,{children:[(0,c.jsx)(Ea,Object.assign({className:"ch-select","data-testid":"select",ref:t},e,{children:(n=e.options,n.map(e=>{let{value:t,label:n}=e;return(0,c.jsx)("option",Object.assign({value:t},{children:n}),t)}))})),(0,c.jsx)(tn,{style:Da,className:"ch-select-icon","data-testid":"select-icon"})]});var n});Ia.displayName="Select";const Ta=l.Ay.textarea.withConfig(vt)(Re||(Re=(0,s.A)(["\n background-color: ",";\n border: ",";\n border-radius: ",";\n box-shadow: ",";\n color: ",";\n font-size: ",";\n padding: 0.5rem;\n position: relative;\n min-height: 4rem;\n transition: box-shadow 0.05s ease-in;\n width: 100%;\n\n &:focus,\n &[aria-invalid='true']:focus {\n border: ",";\n box-shadow: ",";\n outline: none;\n }\n\n &[aria-invalid='true'] {\n border: ",";\n box-shadow: ",";\n }\n"])),e=>e.theme.inputs.bgd,e=>e.theme.inputs.border,e=>e.theme.inputs.borderRadius,e=>e.theme.inputs.shadow,e=>e.theme.inputs.fontColor,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.inputs.focus.border,e=>e.theme.inputs.focus.shadow,e=>e.theme.inputs.error.border,e=>e.theme.inputs.error.shadow);f.forwardRef((e,t)=>
vendor: 5,482 bytes, line 2
2{var{label:n}=e,r=ct(e,["label"]);return(0,c.jsx)(Ta,Object.assign({"aria-label":n,className:"ch-textarea","data-testid":"textarea",ref:t},r))}).displayName="Textarea";var za=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),Ra="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,La="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),Ma="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(La):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var _a=["top","right","bottom","left","width","height","size","weight"],Va="undefined"!==typeof MutationObserver,Pa=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){Ma(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Ra&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Va?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ra&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;_a.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fa=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Ba=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||La},Na=Ya(0,0,0,0);function Ha(e){return parseFloat(e)||0}function Ua(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+Ha(e["border-"+n+"-width"])},0)}function Wa(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Na;var r=Ba(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Ha(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=Ha(r.width),c=Ha(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=Ua(r,"left","right")+o),Math.round(c+a)!==n&&(c-=Ua(r,"top","bottom")+a)),!function(e){return e===Ba(e).document.documentElement}(e)){var l=Math.round(s+o)-t,d=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(d)&&(c-=d)}return Ya(i.left,i.top,s,c)}var qa="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Ba(e).SVGGraphicsElement}:function(e){return e instanceof Ba(e).SVGElement&&"function"===typeof e.getBBox};function Ga(e){return Ra?qa(e)?function(e){var t=e.getBBox();return Ya(0,0,t.width,t.height)}(e):Wa(e):Na}function Ya(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Ka=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ya(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ga(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xa=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.he
2ight,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Fa(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);Fa(this,{target:e,contentRect:n})},$a=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new za,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Ba(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Ka(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Ba(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Xa(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Qa="undefined"!==typeof WeakMap?new WeakMap:new za,Ja=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Pa.getInstance(),r=new $a(t,n,this);Qa.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Ja.prototype[e]=function(){var t;return(t=Qa.get(this))[e].apply(t,arguments)}});"undefined"!==typeof La.ResizeObserver&&La.ResizeObserver,hn(function(e,t){!function(e){function t(e,t,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function c(){s(),o=!0}function l(){for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var f=this,u=Date.now()-a;function h(){a=Date.now(),n.apply(f,l)}function m(){i=void 0}o||(r&&!i&&h(),s(),void 0===r&&u>e?h():!0!==t&&(i=setTimeout(r?m:h,void 0===r?e-u:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),l.cancel=c,l}function n(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)}e.debounce=n,e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)});const Za=["slim","r1by2","r2by3","r1by1","r4by3","r3by2","r16by9"],es={1:"grid-template: 1fr / 1fr;","1.slim":"grid-template: repeat(2, 1fr) / 1fr;","1.r2by3":"grid-template: 1fr / 1fr;","1.featured":'grid-template: "ft" 1fr / 1fr;',2:"grid-template: 1fr / repeat(2,1fr);","2.slim":"grid-template: repeat(3,1fr) / 1fr;","2.r1by2":"grid-template: repeat(2,1fr) / 1fr;","2.r2by3":"grid-template: repeat(2,1fr) / 1fr;","2.r4by3":"grid-template: repeat(2,1fr) / repeat(2,1fr);","2.r16by9":"grid-template: 1fr / repeat(2,1fr);","2.featured":"grid-template: repeat(3,1fr) / repeat(2,1fr);\n grid-template-areas: 'ft ft' 'ft ft';","2.r16by9.featured":"grid-template: repeat(2,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft v' 'ft ft v' 'ft ft v';",3:"grid-template: repeat(3,1fr) / 1fr;","3.r2by3":"grid-template: repeat(3,1fr) / repeat(1,1fr);","3.r1by1":"grid-template: repeat(2,1fr) / repeat(2,1fr);","3.featured":"grid-template: repeat(3,1fr) / repeat(2,1fr);\n grid-template-areas: 'ft ft' 'ft ft';\n ","3.r16by9.featured":"grid-template: repeat(2,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft v' 'ft ft v';",4:"grid-template: repeat(2,1fr) / repeat(2,1fr);","4.slim":"grid-template: repeat(4,1fr) / 1fr;","4.r2by3":"grid-template: repeat(2,1fr) / repeat(2,1fr);","4.featured":"grid-template: repeat(3,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft ft' 'ft ft ft';","4.r16by9.featured":"grid-template-areas: 'ft ft v' 'ft ft v' 'ft ft v';",5:"grid-template: repeat(2,1fr) / repeat(3,1fr);","5.slim":"grid-template: repeat(5,1fr) / 1fr;","5.r1by2":"grid-template: repeat(3,1fr) / repeat(2,1fr);","5.r2by3":"grid-template: repeat(3,1fr) / repeat(2,1fr);","5.r3by2":"grid-template: repeat(2,1fr) / repeat(3,1fr);","5.r16by9":"grid-template: repeat(2,1fr) / repeat(3,1fr);","5.featured":"grid-template: repeat(4,1fr) / repeat(2,1fr);\n grid-template-areas: 'ft ft' 'ft ft';","5.r1by1.featured":"grid-template: repeat(3,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft v' 'ft ft v';",6:"grid-template: repeat(3,1fr) / repeat(3,1fr);","6.slim":"grid-template: repeat(4,1fr) / repeat(2,1fr);","6.r1by2":"grid-template: repeat(3,1fr) / repeat(2,1fr);","6.r1by1":"grid-template: repeat(3,1fr) / repeat(2,1fr);","6.r2by3":"grid-template: repeat(3,1fr) / repeat(2,1fr);","6.r3by2":"grid-template: repeat(2,1fr) / repeat(3,1fr);","6.r16by9":"grid-template: repeat(2,1fr) / repeat(3,1fr);","6.featured":"grid-template: repeat(4,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft ft' 'ft ft ft';","6.r1by1.featured":"grid-template: repeat(3,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft v' 'ft ft v';",7:"grid-template: repeat(3,1fr) / repeat(3,1fr);","7.slim":"grid-template: repeat(4,1fr) / repeat(2,1fr);","7.r4by3":"grid-template: repeat(3,1fr) / repeat(3,1fr);","7.r16by9":"grid-template: repeat(2,1fr) / repeat(4,1fr);","7.featured":"grid-template: repeat(4,1fr) / repeat(3,1fr);\n grid-template-areas: 'ft ft ft' 'ft ft ft';","7.r1by1.featured":"grid-template: repeat(4,1fr) / repeat(4,1fr);\n grid-template-areas: 'ft ft ft v' 'ft ft ft v' 'ft ft ft v';",8:"grid-template: repeat(3,1fr) / repeat(3,1fr);","8.slim":"grid-template: repeat(4,1fr) / repeat(2,1fr);","8.r4by3":"grid-template: repeat(3,1fr) / repeat(3,1fr);","8.r16by9":"grid-template: repeat(2,1fr) / repeat(4,1fr);","8.featured":"grid-template: repeat(5,1fr) / repeat(4,1fr);\n grid-template-areas: 'ft ft ft ft ft' 'ft ft ft ft ft' 'ft ft ft ft ft';","8.r1by1.featured":"grid-template: repeat(4,1fr) / repeat(4,1fr);\n grid-template-areas: 'ft ft ft v' 'ft ft ft v' 'ft ft ft x';","8.r16by9.featured":"grid-template-areas: 'ft ft ft v' 'ft ft ft v' 'ft ft ft x';",9:"grid-template: repeat(3,1fr) / repeat(3,1fr);","9.slim":"grid-template: repeat(5,1fr) / repeat(2,1fr);","9.r1by1":"grid-template: repeat(3,1fr) / repeat(3,1fr);","9.r16by9":"grid-template: repeat(3,1fr) / repeat(4,1fr);","9.featured":"grid-template: repeat(5,1fr) / repeat(4,1fr);\n grid-template-areas: 'ft ft ft ft ft' 'ft ft ft ft ft' 'ft ft ft ft ft';","9.r1by1.featured":"grid-template: repeat(5,1fr) / repeat(5,1fr);\n grid-template-areas: 'ft ft ft ft v' 'ft ft ft ft v' 'ft ft ft ft v' 'ft ft ft ft v';",10:"grid-template: repeat(4,1fr) / repeat(3,1fr);","10.slim":"grid-template: repeat(5,1fr) / repeat(2,1fr);","10.r1by1":"grid-template: repeat(4,1fr) / repeat(3,1fr);","10.r3by2":"grid-template: repeat(3,1fr) / repeat(4,1fr);","10.featured":"grid-template: repeat(5,1fr) / repeat(4,1fr);\n grid-template-areas: 'ft ft ft ft ft' 'ft ft ft ft ft' 'ft ft ft ft ft';","10.r1by1.featured":"grid-template: repeat(5,1fr) / repeat(5,1fr);\n grid-template-areas: 'ft ft ft ft v' 'ft ft ft ft v' 'ft ft ft ft v' 'ft ft ft ft v';",11:"grid-template: repeat(4,1fr) / repeat(3,1fr);","11.slim":"grid-template: repeat(6,1fr) / repeat(2,1fr);","11.r1by1":"grid-template: repeat(4,1fr) / repeat(3,1fr);","11.r3by2":"grid-template: repeat(3,1fr) / repeat(4,1fr);","11.r16by9":"grid-template: repeat(3,1fr) / repeat(4,1fr);","11.featured":"grid-template: repeat(6,1fr) / repeat(6,1fr);\n grid-template-areas: 'ft ft ft ft ft ft' 'ft ft ft ft ft ft' 'ft ft ft ft ft ft' 'ft ft ft ft ft ft';","11.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft v' 'ft ft ft ft ft v' 'ft ft ft ft ft v'\n 'ft ft ft ft ft v' 'ft ft ft ft ft x';",12:"grid-template: repeat(4,1fr) / repeat(3,1fr);","12.slim":"grid-template: repeat(6,1fr) / repeat(2,1fr);","12.r2by3":"grid-template: repeat(4,1fr) / repeat(3,1fr);","12.r3by2":"grid-template: repeat(3,1fr) / repeat(4,1fr);","12.featured":"grid-template: repeat(6,1fr) / repeat(6,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft' 'ft ft ft ft ft ft' 'ft ft ft ft ft ft'\n 'ft ft ft ft ft ft';","12.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft v' 'ft ft ft ft ft v' 'ft ft ft ft ft v'\n 'ft ft ft ft ft v' 'ft ft ft ft ft x';",13:"grid-template: repeat(4,1fr) / repeat(4,1fr);","13.slim":"grid-template: repeat(7,1fr) / repeat(2,1fr);","13.r2by3":"grid-template: repeat(5,1fr) / repeat(3,1fr);","13.r1by1":"grid-template: repeat(4,1fr) / repeat(4,1fr);","13.r3by2":"grid-template: repeat(4,1fr) / repeat(4,1fr);","13.r16by9":"grid-template: repeat(3,1fr) / repeat(5,1fr);","13.featured":"grid-template: repeat(7,1fr) / repeat(6,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft' 'ft ft ft ft ft ft' 'ft ft ft ft ft ft' 'ft ft ft ft ft ft'\n 'ft ft ft ft ft ft';","13.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft v' 'ft ft ft ft ft v' 'ft ft ft ft ft v' 'ft ft ft ft ft v'\n 'ft ft ft ft ft v' 'ft ft ft ft ft x';",14:"grid-template: repeat(4,1fr) / repeat(4,1fr);","14.slim":"grid-template: repeat(7,1fr) / repeat(2,1fr);","14.r2by3":"grid-template: repeat(5,1fr) / repeat(3,1fr);","14.r3by2":"grid-template: repeat(4,1fr) / repeat(4,1fr);","14.r16by9":"grid-template: repeat(3,1fr) / repeat(5,1fr);","14.featured":"grid-template: repeat(7,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft';","14.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v'\n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft x';",15:"grid-template: repeat(5,1fr) / repeat(3,1fr);","15.slim":"grid-template: repeat(8,1fr) / repeat(2,1fr);","15.r1by2":"grid-template: repeat(5,1fr) / repeat(3,1fr);","15.r3by2":"grid-template: repeat(4,1fr) / repeat(4,1fr);","15.r16by9":"grid-template: repeat(3,1fr) / repeat(5,1fr);","15.featured":"grid-template: repeat(8,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft';","15.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v'\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft x';",16:"grid-template: repeat(4,1fr) / repeat(4,1fr);","16.slim":"grid-template: repeat(8,1fr) / repeat(2,1fr);","16.r1by2":"grid-template: repeat(6,1fr) / repeat(3,1fr);","16.r1by1":"grid-template: repeat(4,1fr) / repeat(4,1fr);","16.featured":"grid-template: repeat(8,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft';","16.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v'\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft x';",17:"grid-template: repeat(5,1fr) / repeat(4,1fr);","17.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","17.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","17.r1by1":"grid-template: repeat(4,1fr) / repeat(5,1fr);","17.featured":"grid-template: repeat(8,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft';","17.r1by1.featured":"grid-template-areas:\n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v'\n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft x';",18:"grid-template: repeat(5,1fr) / repeat(4,1fr);","18.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","18.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","18.r1by1":"grid-template: repeat(4,1fr) / repeat(5,1fr);","18.featured":"grid-template: repeat(8,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft';","18.r1by1.featured":"grid-template: repeat(9,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v'\n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft x';",19:"grid-template: repeat(5,1fr) / repeat(4,1fr);","19.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","19.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","19.r1by1":"grid-template: repeat(4,1fr) / repeat(5,1fr);","19.featured":"grid-template: repeat(8,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft';","19.r1by1.featured":"grid-template: repeat(9,1fr) / repeat(10,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft x';",20:"grid-template: repeat(5,1fr) / repeat(4,1fr);","20.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","20.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","20.r1by1":"grid-template: repeat(4,1fr) / repeat(5,1fr);","20.featured":"grid-template: repeat(11,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft';","20.r1by1.featured":"grid-template: repeat(10,1fr) / repeat(10,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft ft x';",21:"grid-template: repeat(5,1fr) / repeat(5,1fr);","21.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","21.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","21.r1by1":"grid-template: repeat(5,1fr) / repeat(5,1fr);","21.featured":"grid-template: repeat(11,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft';","21.r1by1.featured":"grid-template: repeat(8,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' \
2n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft x';",22:"grid-template: repeat(5,1fr) / repeat(5,1fr);","22.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","22.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","22.r1by1":"grid-template: repeat(5,1fr) / repeat(5,1fr);","22.featured":"grid-template: repeat(11,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft';","22.r1by1.featured":"grid-template: repeat(9,1fr) / repeat(7,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft v' 'ft ft ft ft ft ft x';",23:"grid-template: repeat(5,1fr) / repeat(5,1fr);","23.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","23.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","23.r1by1":"grid-template: repeat(5,1fr) / repeat(5,1fr);","23.featured":"grid-template: repeat(11,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft';","23.r1by1.featured":"grid-template: repeat(8,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft x';",24:"grid-template: repeat(5,1fr) / repeat(5,1fr);","24.slim":"grid-template: repeat(8,1fr) / repeat(3,1fr);","24.r1by2":"grid-template: repeat(6,1fr) / repeat(4,1fr);","24.r1by1":"grid-template: repeat(5,1fr) / repeat(5,1fr);","24.featured":"grid-template: repeat(11,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft';","24.r1by1.featured":"grid-template: repeat(9,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft x';",25:"grid-template: repeat(5,1fr) / repeat(5,1fr);","25.slim":"grid-template: repeat(9,1fr) / repeat(3,1fr);","25.r1by2":"grid-template: repeat(7,1fr) / repeat(4,1fr);","25.r1by1":"grid-template: repeat(5,1fr) / repeat(5,1fr);","25.featured":"grid-template: repeat(11,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' \n 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft';","25.r1by1.featured":"grid-template: repeat(10,1fr) / repeat(8,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft x';",26:"grid-template: repeat(6,1fr) / repeat(5,1fr);","26.slim":"grid-template: repeat(9,1fr) / repeat(3,1fr);","26.r1by2":"grid-template: repeat(7,1fr) / repeat(4,1fr);","26.r1by1":"grid-template: repeat(6,1fr) / repeat(5,1fr);","26.featured":"grid-template: repeat(11,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft'\n 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft' 'ft ft ft ft ft ft ft ft ft';","26.r1by1.featured":"grid-template: repeat(9,1fr) / repeat(9,1fr);\n grid-template-areas:\n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' \n 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft v' 'ft ft ft ft ft ft ft ft x';"},ts={"2.featured":"\n @media (max-width: 600px) {\n grid-template-columns: 1fr;\n grid-template-rows: calc(100% / 3);\n grid-auto-rows: calc(100% / 3);\n }\n ","3.r16by9":"\n @media (max-height: 600px) {\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: 50%;\n grid-auto-columns: 50%;\n grid-auto-flow: column;\n }\n ","3.featured":"\n @media (max-width: 600px) {\n grid-template-areas: 'ft' 'ft';\n grid-template-columns: 1fr;\n grid-template-rows: 25%;\n grid-auto-rows: 25%;\n }\n ","4.r16by9":"\n @media (max-height: 600px) {\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: 50%;\n grid-auto-columns: 50%;\n grid-auto-flow: column;\n }\n ","5.r16by9":"grid-template: repeat(2,1fr) / repeat(3,1fr);\n @media (max-height: 600px) {\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: calc(100% / 3);\n grid-auto-columns: calc(100% / 3);\n grid-auto-flow: column;\n }\n ","6.r16by9":"grid-template: repeat(2,1fr) / repeat(3,1fr);\n @media (max-height: 600px) {\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: calc(100% / 3);\n grid-auto-columns: calc(100% / 3);\n grid-auto-flow: column;\n }\n ","7.r16by9":"\n @media (max-height: 600px) {\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: 25%;\n grid-auto-columns: 25%;\n grid-auto-flow: column;\n }\n "},ns=(l.Ay.div.withConfig(vt)(Le||(Le=(0,s.A)(["\n position: relative;\n display: grid;\n height: 100%;\n width: 100%;\n overflow: auto;\n background-color: ",";\n\n ","\n ",";\n"])),e=>e.theme.videoGrid.bgd,e=>{let{size:t,featured:n}=e;return es["".concat(t).concat(n?".featured":"")]||""},e=>{let{size:t,featured:n,ratio:r}=e;if(!r)return;let i="";const o=Za.indexOf(r);for(let s=0;s<=o;s++){const e=Za[s];i+=es["".concat(t,".").concat(e).concat(n?".featured":"")]||""}const a=ts["".concat(t,".").concat(r).concat(n?".featured":"")]||ts["".concat(t).concat(n?".featured":"")];return a?i+=a:"r16by9"===r&&(t>7||n)?i+="\n @media (max-height: 600px) {\n grid-template-areas: 'ft ft' 'ft ft';\n grid-template-rows: repeat(2,1fr);\n grid-template-columns: 25%;\n grid-auto-columns: 25%;\n grid-auto-flow: column;\n }\n":(t>7||n)&&(i+="\n @media (max-width: 600px) {\n grid-template-areas: 'ft ft' 'ft ft';\n grid-template-columns: repeat(2,1fr);\n grid-template-rows: 25%;\n grid-auto-rows: 25%;\n }\n"),i}),(0,f.createContext)(null)),rs=l.Ay.div.withConfig(vt)(Me||(Me=(0,s.A)(["\n height: 100%;\n width: 100%;\n position: relative;\n background: ",";\n\n video {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n object-fit: ",";\n }\n\n .ch-icon {\n width: 1.5rem;\n height: 1.5rem;\n display: inline-block;\n background-color: papayawhip;
2 /* TODO: figure out what this is supposed to be */\n margin-right: 0.5rem;\n flex: 0 0 1.5rem;\n }\n\n .ch-nameplate {\n backdrop-filter: blur(20px);\n background-color: rgba(46, 47, 52, 0.85);\n border-radius: 0.25rem;\n bottom: 0.5rem;\n color: ",";\n left: 0.5rem;\n max-width: calc(100% - 2rem);\n padding: 0.5rem;\n position: absolute;\n\n div {\n ",";\n display: flex;\n align-items: center;\n }\n\n .ch-text {\n font-size: ",";\n ",";\n margin: 0;\n }\n }\n\n ","\n ","\n"])),e=>e.theme.colors.greys.grey100,e=>e.objectFit||"cover",e=>e.theme.colors.greys.white,mt,e=>e.theme.fontSizes.text.fontSize,mt,yt,bt),is=(0,f.forwardRef)((e,t)=>{const{tag:n,className:r,nameplate:i}=e,o=ct(e,["tag","className","nameplate"]);return(0,c.jsxs)(rs,Object.assign({as:n,className:r||"","data-testid":"video-tile"},o,{children:[(0,c.jsx)("video",{ref:t,className:"ch-video"}),i&&(0,c.jsx)("header",Object.assign({className:"ch-nameplate"},{children:(0,c.jsx)("p",Object.assign({className:"ch-text"},{children:i}))}))]}))});l.Ay.div.withConfig(vt)(_e||(_e=(0,s.A)(["\n display: grid;\n width: 100%;\n height: 100%;\n\n ","\n ","\n ","\n\n ","\n\n ","\n"])),d.Vg,yt,bt,e=>{let{responsive:t,theme:n}=e;return t?"\n ".concat(n.mediaQueries.max.md," {\n grid-template-columns: 1fr 1fr;\n }\n\n ").concat(n.mediaQueries.max.sm," {\n grid-template-columns: 1fr;\n }\n "):""},e=>e.css||""),l.Ay.div.withConfig(vt)(Ve||(Ve=(0,s.A)(["\n ","\n ","\n\n ","\n"])),yt,d.Vg,e=>e.css||""),l.Ay.aside.withConfig(vt)(Pe||(Pe=(0,s.A)(["\n width: 100%;\n height: 100%;\n padding-bottom: 1rem;\n overflow-y: auto;\n background-color: ",";\n box-shadow: 1rem 1rem 3.75rem 0 rgba(0, 0, 0, 0.1);\n border-left: 0.0625rem solid ",";\n border-right: 0.0625rem solid ",";\n\n "," {\n width: ",";\n }\n\n ","\n ","\n"])),e=>e.theme.roster.bgd,e=>e.theme.roster.containerBorder,e=>e.theme.roster.containerBorder,e=>{let{theme:t}=e;return t.mediaQueries.min.md},e=>e.theme.roster.maxWidth,yt,bt),l.Ay.span.withConfig(vt)(Fe||(Fe=(0,s.A)(["\n display: inline-block;\n margin: 0 0.625rem 0 0;\n font-weight: 600;\n font-size: 0.675rem;\n color: ",";\n"])),e=>e.theme.roster.secondaryText),l.Ay.div.withConfig(vt)(Be||(Be=(0,s.A)(["\n margin: 0 0.5rem;\n\n & + & {\n margin-top: 1rem;\n }\n\n ","\n ","\n"])),yt,bt),l.Ay.div.withConfig(vt)(Ne||(Ne=(0,s.A)(["\n background-color: ",";\n border-radius: ",";\n\n ","\n ","\n"])),e=>e.theme.roster.fgd,e=>e.theme.radii.default,yt,bt),l.Ay.div.withConfig(vt)(He||(He=(0,s.A)(["\n position: relative;\n display: flex;\n align-items: center;\n padding: 0.75rem 1rem;\n margin-bottom: 0.5rem;\n border-bottom: 0.0625rem solid ",";\n\n .ch-title {\n font-size: 0.875rem;\n color: ",";\n ","\n ",";\n }\n\n .ch-badge {\n margin-left: 0.5rem;\n ","\n }\n\n .ch-buttons {\n margin-left: auto;\n display: flex;\n\n > * {\n margin-left: 0.5rem;\n }\n\n ","\n }\n\n .ch-search-wrapper {\n position: absolute !important;\n bottom: 0.75rem;\n left: 0.5rem;\n right: 0.5rem;\n\n .ch-search-input {\n flex: 1;\n\n input {\n width: 100%;\n }\n }\n\n .ch-search-close {\n margin-left: 0.5rem;\n }\n }\n\n .ch-navigation-icon {\n margin-right: 0.5rem;\n margin-left: -0.5rem;\n\n "," {\n display: none;\n }\n }\n\n ","\n ","\n"])),e=>e.theme.roster.headerBorder,e=>e.theme.roster.primaryText,e=>e.isSearching?"opacity: 0;":"",mt,e=>e.isSearching?"opacity: 0;":"",e=>e.isSearching?"opacity: 0;":"",e=>{let{theme:t}=e;return t.mediaQueries.min.md},yt,bt),l.Ay.div.withConfig(vt)(Ue||(Ue=(0,s.A)(["\n flex-grow: 1;\n min-width: 0;\n line-height: 1.5;\n\n .ch-name {\n ",";\n font-size: 0.875rem;\n color: ",";\n }\n\n .ch-subtitle {\n ",";\n font-size: 0.65rem;\n color: ",";\n }\n"])),mt,e=>e.theme.roster.primaryText,mt,e=>e.theme.roster.secondaryText),l.Ay.div.withConfig(vt)(We||(We=(0,s.A)(["\n display: flex;\n align-items: center;\n padding: 0.625rem 1rem;\n\n .ch-mic {\n flex-shrink: 0;\n width: 1.5rem;\n line-height: 0;\n\n ","\n }\n\n .ch-menu {\n color: ",";\n\n &:hover,\n &:focus {\n color: ",";\n }\n }\n\n svg {\n width: 1.5rem;\n flex-shrink: 0;\n }\n\n > * {\n margin-right: 0.5rem;\n }\n\n > :last-child {\n margin-right: 0;\n }\n\n ","\n ","\n"])),e=>{let{micPosition:t}=e;return"leading"===t?"\n order: -1;\n margin-right: .75rem;\n ":""},e=>e.theme.buttons.icon.hover.bgd,e=>e.theme.buttons.icon.hover.text,yt,bt),l.Ay.div.withConfig(vt)(qe||(qe=(0,s.A)(["\n display: flex;\n align-items: center;\n white-space: nowrap;\n font-size: 0.65rem;\n color: ",";\n\n > svg {\n margin-right: 0.25rem;\n color: ",";\n }\n"])),e=>{let{theme:t}=e;return t.roster.secondaryText},e=>{let{theme:t}=e;return t.roster.secondaryText});const os=(0,f.createContext)(null);const as=l.Ay.div.withConfig(vt)(Ge||(Ge=(0,s.A)(["\n z-index: ",";\n visibility: ",";\n\n &.ch-active {\n animation: "," 0.25s ease 0s forwards;\n }\n"])),e=>e.isActive?e.theme.zIndex.controlBar:"-10",e=>e.isActive?"visible":"hidden",oa);(e=>{let{children:t}=e;const{isUserActive:n}=function(){const e=(0,f.useContext)(os);if(!e)throw new Error("useUserActivityState must be used within an UserActivityContextProvider");return e}();return(0,c.jsx)(as,Object.assign({isActive:n,className:"".concat(n?"ch-active":"")},{children:t}))}).displayName="UserActivityManager";l.Ay.ul.withConfig(vt)(Ye||(Ye=(0,s.A)(["\n display: flex;\n flex-direction: column;\n width: 20rem;\n\n ","\n ","\n"])),bt,yt),l.Ay.li.withConfig(vt)(Ke||(Ke=(0,s.A)(["\n position: relative;\n\n ",";\n ",";\n\n & .ch-channel-button {\n width: 100%;\n height: 100%;\n padding: 11px 0;\n background-color: ",";\n border: none;\n border-radius: unset;\n justify-content: left;\n padding-left: 1rem;\n color: ",";\n border: ",";\n font-family: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n\n &:focus {\n border: ",";\n }\n }\n\n & .ch-label {\n padding-left: 1.5rem;\n }\n\n & .ch-unread-badge {\n display: ",";\n position: absolute;\n z-index: 2;\n top: 12px;\n left: 5px;\n background-color: ",";\n }\n\n &.ch-unread .ch-channel-button {\n font-weight: bold;\n }\n\n &.ch-selected .ch-channel-button {\n background-color: ",";\n color: ",";\n\n &:focus {\n border: ",";\n }\n }\n\n & .ch-popover-toggle {\n position: absolute;\n right: 1rem;\n margin: 0.5rem 0;\n height: 1.5rem;\n border-radius: 50%;\n\n .ch-channel-actions {\n border: 1px solid transparent;\n }\n\n & g {\n fill: ",";\n }\n\n & button:focus .ch-channel-actions {\n border: ",";\n border-radius: 50%;\n }\n\n &:hover,\n &:active {\n background-color: ",";\n\n & g {\n fill: ",";\n }\n }\n }\n\n & .ch-detailed-channel {\n display: grid;\n grid-template-rows: 17px 1fr max-content;\n grid-gap: 16px;\n padding: 10px 20px;\n background-color: ",";\n color: ",";\n border-bottom: 0.5px solid #d3d3d3;\n font-family: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n\n &:focus {\n border: ",";\n }\n }\n\n & .ch-detailed-channel-name {\n font-weight: bold;\n padding-left: 25px;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n max-width: 85%;\n }
2\n\n & .ch-detailed-channel-message {\n grid-row: span 2;\n padding-left: 25px;\n white-space: nowrap;\n overflow-x: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n max-width: 90%;\n }\n\n & .ch-detailed-channel-message-time {\n position: absolute;\n top: 0.8rem;\n right: 0.5rem;\n font-size: 8px;\n max-width: 15%;\n text-align: right;\n }\n\n & .ch-unread-badge-detailed {\n display: ",";\n position: absolute;\n z-index: 2;\n top: 10px;\n left: 5px;\n background-color: ",";\n }\n\n &.ch-selected .ch-detailed-channel {\n background-color: ",";\n color: ",";\n\n &:focus {\n border: ",";\n }\n }\n\n & .ch-popover-toggle-detailed {\n position: absolute;\n top: 1.75rem;\n right: 1rem;\n margin: 0.5rem 0;\n height: 1.5rem;\n border-radius: 50%;\n\n .ch-channel-actions {\n border: 1px solid transparent;\n }\n\n & g {\n fill: ",";\n }\n\n & button:focus .ch-channel-actions {\n border: ",";\n border-radius: 50%;\n }\n\n &:hover,\n &:active {\n background-color: ",";\n\n & g {\n fill: ",";\n }\n }\n }\n"])),bt,yt,e=>e.theme.channelList.bgd,e=>e.theme.channelList.fontColor,e=>e.theme.channelList.border,e=>e.theme.fonts.body,e=>e.theme.channelList.hover.bgd,e=>e.theme.channelList.active.bgd,e=>e.theme.channelList.active.fontColor,e=>e.theme.channelList.focus.border,e=>e.unread?"inline":"none",e=>e.theme.colors.primary.light,e=>e.theme.colors.primary.light,e=>e.theme.channelList.selected.fontColor,e=>e.theme.channelList.focus.selectedBorder,e=>e.theme.channelList.active.fontColor,e=>e.theme.channelList.focus.selectedBorder,e=>e.theme.channelList.iconButton.activeBgd,e=>e.theme.colors.primary.light,e=>e.theme.channelList.bgd,e=>e.theme.channelList.fontColor,e=>e.theme.fonts.body,e=>e.theme.channelList.hover.bgd,e=>e.theme.channelList.active.bgd,e=>e.theme.channelList.active.fontColor,e=>e.theme.channelList.focus.border,e=>e.unread?"inline":"none",e=>e.theme.colors.primary.light,e=>e.theme.colors.primary.light,e=>e.theme.channelList.selected.fontColor,e=>e.theme.channelList.focus.selectedBorder,e=>e.theme.channelList.active.fontColor,e=>e.theme.channelList.focus.selectedBorder,e=>e.theme.channelList.iconButton.activeBgd,e=>e.theme.colors.primary.light);const ss=l.Ay.div.withConfig(vt)(Xe||(Xe=(0,s.A)(["\n display: flex;\n flex-direction: row;\n font-size: 0.65rem;\n margin-left: 1rem;\n align-items: center;\n background-color: ",";\n width: 100%;\n\n .ch-timestamp {\n padding-right: ",";\n }\n\n ","\n ","\n"])),e=>e.theme.chatBubble.container.bgd,e=>e.actions?"1rem":"2.5rem",yt,bt),cs=(l.Ay.div.withConfig(vt)($e||($e=(0,s.A)(["\n background-color: ",";\n padding: 0.625rem 1rem;\n border-radius: 4px;\n width: fit-content;\n color: ",";\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n line-height: 20px;\n width: ",";\n max-width: 70.6%;\n font-size: 0.875rem;\n position: relative;\n margin-bottom: ",";\n overflow-wrap: break-word;\n word-break: break-word;\n hyphens: auto;\n\n & .ch-header {\n display: flex;\n flex-direction: row;\n margin-bottom: 0.5rem;\n align-items: baseline;\n }\n\n & .ch-sender-name {\n font-weight: bold;\n padding-right: 0.5rem;\n }\n\n & .ch-header-timestamp {\n font-size: 0.65rem;\n }\n\n & svg {\n position: absolute;\n height: 19px;\n width: 11px;\n margin-top: -14px;\n margin-left: -25px;\n\n & .ch-chat-bubble-tail {\n fill: ",";\n }\n }\n\n .ch-input {\n width: 100%;\n }\n\n .ch-edit-buttons {\n position: absolute;\n margin-top: 1rem;\n display: flex;\n flex-direction: row-reverse;\n width: 10rem;\n justify-content: space-between;\n }\n\n ",";\n ",";\n"])),e=>e.theme.chatBubble[e.variant].bgd,e=>e.theme.chatBubble[e.variant].fontColor,e=>e.editable?"100%":"fit-content",e=>e.editable?"4rem":"unset",e=>e.theme.chatBubble[e.variant].bgd,yt,bt),l.Ay.div.withConfig(vt)(Qe||(Qe=(0,s.A)(["\n display: flex;\n margin-right: 0.5rem;\n margin-left: auto;\n color: ",";\n align-items: center;\n\n & .ch-message-actions {\n border: 1px solid transparent;\n border-radius: 50%;\n }\n\n & button:hover .ch-message-actions {\n background-color: ",";\n\n & g {\n fill: ",";\n }\n }\n\n & button:focus .ch-message-actions {\n border: 1px solid ",";\n border-radius: 50%;\n }\n\n & .ch-message-actions g {\n fill: ",";\n }\n\n & .ch-message-actions.isOpen {\n background-color: ",";\n border-radius: 50%;\n\n & g {\n fill: ",";\n }\n }\n"])),e=>e.theme.chatBubble.container.fontColor,e=>e.theme.buttons.icon.hover.bgd,e=>e.theme.buttons.icon.hover.text,e=>e.theme.colors.primary.dark,e=>e.theme.chatBubble.container.fontColor,e=>e.theme.buttons.icon.active.bgd,e=>e.theme.buttons.icon.active.text)),ls=(f.forwardRef((e,t)=>
2{const{timestamp:n,actions:r,tooltipContainerId:i,a11yLabel:o="Open channel options"}=e,a=ct(e,["timestamp","actions","tooltipContainerId","a11yLabel"]),s=(0,f.useMemo)(()=>Ho(Et,i),[i]),l=a["data-tooltip"]?s:Et,d=a["data-tooltip-position"]?{tooltipPosition:a["data-tooltip-position"]}:{};return(0,c.jsxs)(ss,Object.assign({"data-testid":"chat-bubble-container",ref:t,actions:r},a,{children:[e.children,(0,c.jsxs)(cs,{children:[n&&(0,c.jsx)("span",Object.assign({className:"ch-timestamp","data-testid":"message-time"},{children:n})),r&&(0,c.jsx)(Io,{a11yLabel:o,placement:"bottom-end",renderButtonWrapper:(e,t)=>(0,c.jsx)(l,Object.assign({},d,{icon:(0,c.jsx)(qt,{width:"1.5rem",height:"1.5rem"}),selected:e},t,{label:o})),children:r})]})]}))}),(0,l.i7)(Je||(Je=(0,s.A)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))));l.Ay.ul.withConfig(vt)(Ze||(Ze=(0,s.A)(["\n background-color: ",";\n overflow-y: scroll;\n display: flex;\n flex-direction: column;\n list-style: none;\n padding: 0;\n\n /* disable scrolling while fetching */\n &.ch-not-scrollable {\n overflow-y: hidden;\n }\n\n ","\n ","\n\n .ch-spinner {\n margin: 0 auto;\n }\n\n .ch-spinner svg {\n width: 2rem;\n height: 2rem;\n animation: "," 2s linear infinite;\n display: block;\n }\n"])),e=>e.theme.chatBubble.container.bgd,yt,bt,ls),l.Ay.div.withConfig(vt)(et||(et=(0,s.A)(["\n display: flex;\n flex-direction: row;\n padding: 10px;\n\n & .ch-attachment-icon {\n height: 2rem;\n width: 2rem;\n margin: auto;\n background-color: ",";\n border-radius: 25px;\n\n & .ch-document-icon {\n margin: auto 0;\n color: ",";\n }\n }\n & .ch-attachment-name {\n margin-left: 1rem;\n\n & a:link,\n & a:visited,\n & a:hover,\n & a:active {\n color: ",";\n text-decoration: none;\n }\n }\n & .ch-attachment-size {\n font-size: ",";\n color: ",";\n display: block;\n padding-top: 3px;\n }\n"])),e=>e.theme.messageAttachment.icon.bgd,e=>e.theme.messageAttachment.icon.color,e=>e.theme.messageAttachment.name.fontColor,e=>e.theme.messageAttachment.size.fontSize,e=>e.theme.messageAttachment.size.fontColor),l.Ay.div.withConfig(vt)(tt||(tt=(0,s.A)(["\n color: ",";\n display: flex;\n flex-direction: column;\n width: fit-content;\n border-radius: 4px;\n overflow: hidden;\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n background-color: ",";\n letter-spacing: ",";\n font-size: ",";\n line-height: ",";\n\n & img {\n ",";\n }\n\n ","\n ","\n"])),e=>e.theme.messageAttachment.content.fontColor,e=>e.theme.messageAttachment.content.bgd,e=>e.theme.messageAttachment.content.letterSpacing,e=>e.theme.fontSizes.text.fontSize,e=>e.theme.fontSizes.text.lineHeight,e=>e.imgStyles,yt,bt);function ds(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function fs(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function us(e,t,n,r,i){return n.bind(t,e,r,i)}function hs(e,t){return us(e,this,1===e.length?ds:fs,t.cache.create(),t.serializer)}function ms(){return JSON.stringify(arguments)}function gs(){this.cache=Object.create(null)}gs.prototype.has=function(e){return e in this.cache},gs.prototype.get=function(e){return this.cache[e]},gs.prototype.set=function(e,t){this.cache[e]=t};var ps={create:function(){return new gs}},vs=function(e,t){var n=t&&t.cache?t.cache:ps,r=t&&t.serializer?t.serializer:ms;return(t&&t.strategy?t.strategy:hs)(e,{cache:n,serializer:r})},bs={variadic:function(e,t){return us(e,this,fs,t.cache.create(),t.serializer)},monadic:function(e,t){return us(e,this,ds,t.cache.create(),t.serializer)}};vs.strategies=bs;const ys={weekday:"long",year:"numeric",month:"long",day:"numeric"};vs((e,t,n,r,i)=>{const o=n||ys,a=new Date(e).toLocaleDateString(t,o),s=new Date;s.setDate(s.getDate()-1);return a===s.toLocaleDateString(t,o)?i||"Yesterday":a===(new Date).toLocaleDateString(t,o)?r||"Today":a});var ws,xs,As,Ss;!function(e){e[e.Loading=0]="Loading",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Ended=3]="Ended",e[e.JoinedFromAnotherDevice=4]="JoinedFromAnotherDevice",e[e.Left=5]="Left",e[e.TerminalFailure=6]="TerminalFailure",e[e.Reconnecting=7]="Reconnecting"}(ws||(ws={})),function(e){e.UNTRIGGERED="UNTRIGGERED",e.IN_PROGRESS="IN_PROGRESS",e.GRANTED="GRANTED",e.DENIED="DENIED"}(xs||(xs={})),function(e){e[e.None=1]="None",e[e.Audio=2]="Audio",e[e.Video=3]="Video",e[e.AudioAndVideo=4]="AudioAndVideo"}(As||(As={})),function(e){e[e.STARTING=0]="STARTING",e[e.DID_STOP=1]="DID_STOP",e[e.UPDATE=2]="UPDATE",e[e.TOGGLE_PAUSE=3]="TOGGLE_PAUSE",e[e.REMOVE=4]="REMOVE",e[e.DENIED=5]="DENIED",e[e.RESET=6]="RESET",e[e.UPDATE_CAN_START=7]="UPDATE_CAN_START"}(Ss||(Ss={}));const ks={paused:!1,isLocalUserSharing:!1,isLocalShareLoading:!1,canStartContentShare:!0,tileId:null,sharingAttendeeId:null,tiles:[],tileIdToAttendeeId:{},attendeeIdToTileId:{}},Cs=(e,t)=>{const n=e.tileIdToAttendeeId[t.toString()];if(!n)return{tiles:e.tiles,tileIdToAttendeeId:e.tileIdToAttendeeId,attendeeIdToTileId:e.attendeeIdToTileId,removedAttendeeId:void 0};const r=e.tiles.filter(e=>e!==t),i=Object.assign({},e.tileIdToAttendeeId);delete i[t.toString()];const o=Object.assign({},e.attendeeIdToTileId);return delete o[n],{tiles:r,tileIdToAttendeeId:i,attendeeIdToTileId:o,removedAttendeeId:n}},Os=(e,t,n,r)=>{if(r&&r!==e.sharingAttendeeId)return{tileId:e.tileId,sharingAttendeeId:e.sharingAttendeeId};if(0===t.length)return{tileId:null,sharingAttendeeId:null};const i=Math.max(...t);return{tileId:i,sharingAttendeeId:n[i.toString()]}};function js(e,t){let{type:n,payload:r}=t;switch(n){case Ss.STARTING:return Object.assign(Object.assign({},e),{isLocalShareLoading:!0});case Ss.UPDATE:{const{isLocalUser:t,tileState:n}=r,i=n.tileId,o=n.boundAttendeeId;if(e.tileIdToAttendeeId[i.toString()])return e;const a=((e,t,n)=>({tiles:[...e.tiles,t],tileIdToAttendeeId:Object.assign(Object.assign({},e.tileIdToAttendeeId),{[t.toString()]:n}
2),attendeeIdToTileId:Object.assign(Object.assign({},e.attendeeIdToTileId),{[n]:t})}))(e,i,o),s=Os(e,a.tiles,a.tileIdToAttendeeId);return Object.assign(Object.assign(Object.assign(Object.assign({},e),a),s),{isLocalShareLoading:!t&&e.isLocalShareLoading,isLocalUserSharing:!!t||e.isLocalUserSharing})}case Ss.REMOVE:{const{tileId:t,isLocalUser:n}=r,{tiles:i,tileIdToAttendeeId:o,attendeeIdToTileId:a,removedAttendeeId:s}=Cs(e,t);if(!s)return e;const c=Os(e,i,o,s);return Object.assign(Object.assign(Object.assign(Object.assign({},e),{tiles:i,tileIdToAttendeeId:o,attendeeIdToTileId:a}),c),{isLocalUserSharing:!n&&e.isLocalUserSharing,paused:!n&&e.paused})}case Ss.DID_STOP:{const{isLocalUserSharing:t}=e,{localAttendeeId:n}=r;if(t){const t=e.attendeeIdToTileId[n];if(t){const{tiles:n,tileIdToAttendeeId:r,attendeeIdToTileId:i,removedAttendeeId:o}=Cs(e,t),a=Os(e,n,r,o);return Object.assign(Object.assign(Object.assign(Object.assign({},e),{tiles:n,tileIdToAttendeeId:r,attendeeIdToTileId:i}),a),{isLocalUserSharing:!1,paused:!1,isLocalShareLoading:!1})}}return Object.assign(Object.assign({},e),{isLocalShareLoading:!1,isLocalUserSharing:!1,paused:!1})}case Ss.TOGGLE_PAUSE:return e.isLocalUserSharing?Object.assign(Object.assign({},e),{paused:!e.paused}):e;case Ss.DENIED:return e.isLocalShareLoading?Object.assign(Object.assign({},e),{isLocalShareLoading:!1}):e;case Ss.RESET:return ks;case Ss.UPDATE_CAN_START:{const{maxContentShares:t}=r;return Object.assign(Object.assign({},e),{canStartContentShare:!e.isLocalUserSharing&&e.tiles.length<t})}default:throw new Error("Incorrect type in ContentShareProvider")}}const Es=(0,f.createContext)(null),Ds=(0,f.createContext)(null),Is=e=>{let{children:t,maxContentShares:n=1}=e;var r,i,o;const a=sc(),s=Ro(),[l,d]=(0,f.useReducer)(js,ks),{paused:u,isLocalUserSharing:m,isLocalShareLoading:g,canStartContentShare:p}=l,v=(0,f.useRef)(null),b=null===(o=null===(i=null===(r=null===a||void 0===a?void 0:a.audioVideoController)||void 0===r?void 0:r.realtimeController)||void 0===i?void 0:i.state)||void 0===o?void 0:o.localAttendeeId,y=(0,f.useMemo)(()=>Math.max(1,Math.min(n,2)),[n]);(0,f.useEffect)(()=>{n>2?s.warn("ContentShareProvider: maxContentShares value ".concat(n," exceeds the currently")+" supported maximum of ".concat(2,".")+"The value has been set to ".concat(y," instead.")):n<1&&s.warn("ContentShareProvider: maxContentShares value ".concat(n," is below the minimum")+" of ".concat(1,". The value has been set to ").concat(y," instead."))},[n,y]),(0,f.useEffect)(()=>{if(!a)return;const e={videoTileDidUpdate:e=>{if(!e.boundAttendeeId||!e.isContent||!e.tileId)return;const{boundAttendeeId:t}=e,n=new h.DefaultModality(t).base()===b;1===y&&!n&&v.current&&v.current<e.tileId&&(a.stopContentShare(),v.current=null),n&&(v.current=e.tileId),d({type:Ss.UPDATE,payload:{tileState:e,isLocalUser:n}})},videoTileWasRemoved:e=>{const t=e===v.current;t&&(v.current=null),d({type:Ss.REMOVE,payload:{isLocalUser:t,tileId:e}})}},t={contentShareDidStop:()=>{var e,t,n;d({type:Ss.DID_STOP,payload:{localAttendeeId:null===(n=null===(t=null===(e=null===a||void 0===a?void 0:a.audioVideoController)||void 0===e?void 0:e.realtimeController)||void 0===t?void 0:t.state)||void 0===n?void 0:n.localAttendeeId}})}};return a.addObserver(e),a.addContentShareObserver(t),()=>{a.removeObserver(e),a.removeContentShareObserver(t),d({type:Ss.RESET})}},[a,b,y]),(0,f.useEffect)(()=>{if(!a)return;const e=e=>{"NotAllowedError"===e.reason.name&&d({type:Ss.DENIED})};return window.addEventListener("unhandledrejection",e),()=>window.removeEventListener("unhandledrejection",e)},[a,g]);const w=(0,f.useCallback)(e=>lt(void 0,void 0,void 0,function*(){a&&(m||g?a.stopContentShare():(e&&"string"===typeof e?yield a.startContentShareFromScreenCapture(e):e&&e instanceof MediaStream?yield a.startContentShare(e):yield a.startContentShareFromScreenCapture(),d({type:Ss.STARTING})))}),[a,m,g]),x=(0,f.useCallback)(()=>{a&&m&&(u?a.unpauseContentShare():a.pauseContentShare(),d({type:Ss.TOGGLE_PAUSE}))},[a,u,m]);(0,f.useEffect)(()=>{d({type:Ss.UPDATE_CAN_START,payload:{maxContentShares:y}})},[m,l.tiles.length,y]);const A=(0,f.useMemo)(()=>({paused:u,isLocalUserSharing:m,isLocalShareLoading:g,toggleContentShare:w,togglePauseContentShare:x,canStartContentShare:p}),[u,m,g,w,x,p]);return(0,c.jsx)(Es.Provider,Object.assign({value:l},{children:(0,c.jsx)(Ds.Provider,Object.assign({value:A},{children:t}))}))},Ts=()=>{const e=(0,f.useContext)(Es);if(!e)throw new Error("useContentShareState must be used within a ContentShareProvider");return e},zs=()=>{const e=(0,f.useContext)(Ds);if(!e)throw new Error("useContentShareControlContext must be used within ContentShareControlProvider");return e};var Rs;!function(e){e[e.UPDATE=0]="UPDATE",e[e.REMOVE=1]="REMOVE",e[e.RESET=2]="RESET"}(Rs||(Rs={}));const Ls={tiles:[],tileIdToAttendeeId:{},attendeeIdToTileId:{},size:0},Ms=(e,t)=>{const n=Object.assign({},e);return delete n[t],n};function _s(e,t){let{type:n,payload:r}=t;const{tiles:i,tileIdToAttendeeId:o,attendeeIdToTileId:a,size:s}=e;switch(n){case Rs.UPDATE:{const{tileId:t,attendeeId:n=""}=r,c=t.toString();if(o[c])return e;return{tiles:[...i,t],tileIdToAttendeeId:Object.assign(Object.assign({},o),{[c]:n}),attendeeIdToTileId:Object.assign(Object.assign({},a),{[n]:t}),size:s+1}}case Rs.REMOVE:{const{tileId:t}=r,n=o[t],c=t.toString();if(!n)return e;return{tiles:i.filter(e=>t!==e),tileIdToAttendeeId:Ms(o,c),attendeeIdToTileId:Ms(a,n),size:s-1}}case Rs.RESET:return Ls;default:throw new Error("Incorrect type in VideoProvider")}}const Vs=(0,f.createContext)(null),Ps=e=>{let{children:t}=e;const n=sc(),[r,i]=(0,f.useReducer)(_s,Ls);return(0,f.useEffect)(()=>
2{if(!n)return;const e={videoTileDidUpdate:e=>{if((null===e||void 0===e?void 0:e.boundAttendeeId)&&(null===e||void 0===e?void 0:e.tileId)&&!e.isContent&&!e.localTile){const{tileId:t,boundAttendeeId:n}=e;i({type:Rs.UPDATE,payload:{tileId:t,attendeeId:n}})}},videoTileWasRemoved:e=>{i({type:Rs.REMOVE,payload:{tileId:e}})}};return n.addObserver(e),()=>n.removeObserver(e)},[n]),(0,f.useEffect)(()=>{if(n)return()=>i({type:Rs.RESET})},[n]),(0,c.jsx)(Vs.Provider,Object.assign({value:r},{children:t}))},Fs=()=>{const e=(0,f.useContext)(Vs);if(!e)throw new Error("useRemoteVideoTileState must be used within a RemoteVideoTileProvider");return e},Bs=(0,f.createContext)(null),Ns=e=>{let{children:t}=e;const n=ic(),{attendeeIdToTileId:r}=Fs(),i=(0,f.useRef)(null),[o,a]=(0,f.useState)(null),s=(0,f.useRef)(null),l=(0,f.useRef)(null);(0,f.useEffect)(()=>{const e=e=>{const t=e[0];if(t===l.current)return;if(l.current=t,s.current&&clearTimeout(s.current),!t)return i.current=null,void a(null);const n=r[t];n?n!==i.current&&(i.current?s.current=window.setTimeout(()=>{i.current=n,a(n)},1500):(i.current=n,a(n))):i.current&&(s.current=window.setTimeout(()=>{i.current=null,a(null)},1500))};return n.subscribeToActiveSpeaker(e),()=>n.unsubscribeFromActiveSpeaker(e)},[r]);const d=(0,f.useMemo)(()=>({tileId:o}),[o]);return(0,c.jsx)(Bs.Provider,Object.assign({value:d},{children:t}))};function Hs(){const e=(0,f.useContext)(Bs);if(!e)throw new Error("useFeaturedTileState must be used within an FeaturedVideoTileProvider");return e}const Us=(0,f.createContext)(null),Ws=e=>{let{children:t}=e;const n=Ro(),r=sc(),[i,o]=(0,f.useState)(!0),a=(0,f.useRef)(null);(0,f.useEffect)(()=>{var e;if(r)return a.current&&(e=a.current,lt(void 0,void 0,void 0,function*(){try{yield r.bindAudioElement(e)}catch(t){n.error("Failed to bind audio element. ".concat(t))}})),()=>{r.unbindAudioElement(),o(!0)}},[r]);const s=(0,f.useCallback)(()=>{var e;a.current&&(o(!i),i?null===r||void 0===r||r.unbindAudioElement():(e=a.current,lt(void 0,void 0,void 0,function*(){try{yield null===r||void 0===r?void 0:r.bindAudioElement(e)}catch(t){n.error("Failed to bind audio element. ".concat(t))}})))},[a,r,i]),l=(0,f.useMemo)(()=>({isAudioOn:i,toggleAudio:s}),[i,s]);return(0,c.jsxs)(Us.Provider,Object.assign({value:l},{children:[t,(0,c.jsx)("audio",{ref:a,style:{display:"none"}})]}))},qs=()=>{const e=(0,f.useContext)(Us);if(!e)throw new Error("useLocalAudioOutput must be used within LocalAudioOutputProvider");return e},Gs=(0,f.createContext)(null),Ys=e=>{let{children:t}=e;const n=Ro(),r=ic(),i=sc(),{devices:o,selectedDevice:a}=gc(),[s,l]=(0,f.useState)(!1),[d,u]=(0,f.useState)(!1),[h,m]=(0,f.useState)(null);(0,f.useEffect)(()=>{if(!i)return;i.hasStartedLocalVideoTile()&&l(!0);const e={videoAvailabilityDidChange:e=>{e.canStartLocalVideo?u(!1):u(!0),n.info("video availability changed: canStartLocalVideo ".concat(e.canStartLocalVideo))}};return i.addObserver(e),()=>{l(!1),i.removeObserver(e)}},[i]),(0,f.useEffect)(()=>{d&&n.warn("Reach the number of maximum active videos")},[d]),(0,f.useEffect)(()=>{(null===i||void 0===i?void 0:i.hasStartedLocalVideoTile())||l(!1)},[o]);const g=(0,f.useCallback)(()=>lt(void 0,void 0,void 0,function*(){try{s||!a?(a||n.warn("There is no input video device chosen!"),yield null===i||void 0===i?void 0:i.stopVideoInput(),l(!1)):d?n.error("Video limit is reached and can not turn on more videos!"):(yield r.startVideoInputDevice(a),null===i||void 0===i||i.startLocalVideoTile(),l(!0))}catch(e){n.error("Failed to toggle video")}}),[i,s,d,a]);(0,f.useEffect)(()=>{if(!i)return;const e={videoTileDidUpdate:e=>{e.localTile&&e.tileId&&h!==e.tileId&&m(e.tileId)}};return i.addObserver(e),()=>i.removeObserver(e)},[i,h]);const p=(0,f.useMemo)(()=>({tileId:h,isVideoEnabled:s,setIsVideoEnabled:l,hasReachedVideoLimit:d,setHasReachedVideoLimit:u,toggleVideo:g}),[h,s,l,d,u,g]);return(0,c.jsx)(Gs.Provider,Object.assign({value:p},{children:t}))},Ks=()=>{const e=(0,f.useContext)(Gs);if(!e)throw new Error("useLocalVideo must be used within LocalVideoProvider");return e},Xs=(0,f.createContext)(void 0),$s=e=>{let{children:t}=e;const[n,r]=(0,f.useState)(),i=ic();return(0,f.useEffect)(()=>{function e(e,t){r({name:e,attributes:t})}return i.subscribeToEventDidReceive(e),()=>{i.unsubscribeFromEventDidReceive(e)}},[]),(0,c.jsx)(Xs.Provider,Object.assign({value:n},{children:t}))},Qs=f.createContext(null),Js=e=>{let{children:t}=e;const n=ic(),r=sc(),i=(0,f.useRef)({}),[o,a]=(0,f.useState)({});(0,f.useEffect)(()=>
2{if(!r)return;const e=(e,t,r)=>lt(void 0,void 0,void 0,function*(){if(!t)return delete i.current[e],void a(t=>{const n=t,r=e;n[r];const i=ct(n,["symbol"===typeof r?r:r+""]);return Object.assign({},i)});const o=new h.DefaultModality(e).base();if(o!==e)return;if(i.current[e])return;let s={chimeAttendeeId:e};if(r&&(s.externalUserId=r),i.current[o]=s,a(e=>Object.assign(Object.assign({},e),{[o]:s})),n.getAttendee){const e=yield n.getAttendee(o,r);if(!i.current[o])return;s=Object.assign(Object.assign({},s),e),a(e=>Object.assign(Object.assign({},e),{[o]:s}))}});return r.realtimeSubscribeToAttendeeIdPresence(e),()=>{a({}),i.current={},r.realtimeUnsubscribeToAttendeeIdPresence(e)}},[r]);const s=(0,f.useMemo)(()=>({roster:o}),[o]);return(0,c.jsx)(Qs.Provider,Object.assign({value:s},{children:t}))};function Zs(){const e=(0,f.useContext)(Qs);if(!e)throw new Error("userRosterState must be used within RosterProvider");return e}function ec(){return Promise.resolve(new MediaStream)}class tc{getDeviceLabels(){return this.deviceLabels}constructor(e){this.meetingSession=null,this.meetingStatus=ws.Loading,this.meetingStatusObservers=[],this.audioVideo=null,this.audioVideoObservers={},this.meetingId=null,this.selectedAudioOutputDeviceObservers=[],this.selectedAudioInputDeviceObservers=[],this.selectedVideoInputDeviceObservers=[],this.audioInputDevices=null,this.audioOutputDevices=null,this.videoInputDevices=null,this.deviceLabelTriggerStatus=xs.UNTRIGGERED,this.deviceLabelTriggerStatusObservers=[],this.deviceLabelTriggerObservers=[],this.activeSpeakerListener=null,this.activeSpeakerCallbacks=[],this.activeSpeakers=[],this.audioVideoCallbacks=[],this.devicesUpdatedCallbacks=[],this.meetingEventObserverSet=new Set,this.audioVideoDidStart=()=>{this.logger.info("[MeetingManager audioVideoDidStart] Meeting started successfully"),this.meetingStatus=ws.Succeeded,this.publishMeetingStatus()},this.audioVideoDidStartConnecting=e=>{this.meetingStatus!==ws.Reconnecting&&e&&(this.meetingStatus=ws.Reconnecting,this.publishMeetingStatus())},this.audioVideoDidStop=e=>{var t;const n=e.statusCode();switch(n){case h.MeetingSessionStatusCode.MeetingEnded:this.logger.info("[MeetingManager audioVideoDidStop] Meeting ended for all: ".concat(n)),this.meetingStatus=ws.Ended;break;case h.MeetingSessionStatusCode.Left:this.logger.info("[MeetingManager audioVideoDidStop] Left the meeting: ".concat(n)),this.meetingStatus=ws.Left;break;case h.MeetingSessionStatusCode.AudioJoinedFromAnotherDevice:this.logger.info("[MeetingManager audioVideoDidStop] Meeting joined from another device: ".concat(n)),this.meetingStatus=ws.JoinedFromAnotherDevice;break;default:e.isFailure()&&!e.isTerminal()?(this.logger.info("[MeetingManager audioVideoDidStop] Non-Terminal failure occurred: ".concat(n)),this.meetingStatus=ws.Failed):e.isTerminal()?(this.logger.info("[MeetingManager audioVideoDidStop] Terminal failure occurred: ".concat(n)),this.meetingStatus=ws.TerminalFailure):this.logger.info("[MeetingManager audioVideoDidStop] session stopped with code ".concat(n))}this.publishMeetingStatus(),null===(t=this.audioVideo)||void 0===t||t.removeObserver(this.audioVideoObservers),this.leave()},this.startAudioInputDevice=e=>lt(this,void 0,void 0,function*(){var t;try{yield null===(t=this.audioVideo)||void 0===t?void 0:t.startAudioInput(e),this.selectedAudioInputDevice=e,this.publishSelectedAudioInputDevice()}catch(n){const e=new Error("MeetingManager failed to select audio input device.");throw n instanceof Error&&(e.name=n.name,e.message+=" "+n.message),this.logger.error(e.toString()),e}}),this.startAudioOutputDevice=e=>lt(this,void 0,void 0,function*(){var t;try{yield null===(t=this.audioVideo)||void 0===t?void 0:t.chooseAudioOutput(e),this.selectedAudioOutputDevice=e,this.publishSelectedAudioOutputDevice()}catch(n){throw this.logger.error("MeetingManager failed to select audio output device: ".concat(n)),new Error("MeetingManager failed to select audio output device")}}),this.startVideoInputDevice=e=>lt(this,void 0,void 0,function*(){var t;try{yield null===(t=this.audioVideo)||void 0===t?void 0:t.startVideoInput(e),this.selectedVideoInputDevice=e,this.publishSelectedVideoInputDevice()}catch(n){const e=new Error("MeetingManager failed to select video input device.");throw n instanceof Error&&(e.name=n.name,e.message+=" "+n.message),this.logger.error(e.toString()),e}}),this.stopVideoInputDevice=()=>lt(this,void 0,void 0,function*(){var e;try{yield null===(e=this.audioVideo)||void 0===e?void 0:e.stopVideoInput(),this.selectedVideoInputDevice=void 0,this.publishSelectedVideoInputDevice()}catch(t){throw this.logger.error("MeetingManager failed to unselect video input device: ".concat(t)),new Error("MeetingManager failed to unselect video input device")}}),this.selectVideoInputDevice=e=>{this.selectedVideoInputDevice=e,this.publishSelectedVideoInputDevice()},this.invokeDeviceProvider=e=>{this.setupDeviceLabelTrigger(e),this.publishDeviceLabelTrigger()},this.subscribeToAudioVideo=e=>{this.audioVideoCallbacks.push(e)},this.unsubscribeFromAudioVideo=e=>{this.audioVideoCallbacks=this.audioVideoCallbacks.filter(t=>t!==e)},this.publishAudioVideo=()=>
2{this.audioVideoCallbacks.forEach(e=>{e(this.audioVideo)})},this.subscribeToActiveSpeaker=e=>{this.activeSpeakerCallbacks.push(e),e(this.activeSpeakers)},this.unsubscribeFromActiveSpeaker=e=>{this.activeSpeakerCallbacks=this.activeSpeakerCallbacks.filter(t=>t!==e)},this.publishActiveSpeaker=()=>{this.activeSpeakerCallbacks.forEach(e=>{e(this.activeSpeakers)})},this.subscribeToSelectedVideoInputDevice=e=>{this.selectedVideoInputDeviceObservers.push(e)},this.unsubscribeFromSelectedVideoInputDevice=e=>{this.selectedVideoInputDeviceObservers=this.selectedVideoInputDeviceObservers.filter(t=>t!==e)},this.publishSelectedVideoInputDevice=()=>{for(const e of this.selectedVideoInputDeviceObservers)e(this.selectedVideoInputDevice)},this.subscribeToSelectedAudioInputDevice=e=>{this.selectedAudioInputDeviceObservers.push(e)},this.unsubscribeFromSelectedAudioInputDevice=e=>{this.selectedAudioInputDeviceObservers=this.selectedAudioInputDeviceObservers.filter(t=>t!==e)},this.publishSelectedAudioInputDevice=()=>{for(const e of this.selectedAudioInputDeviceObservers)e(this.selectedAudioInputDevice)},this.subscribeToSelectedAudioOutputDevice=e=>{this.selectedAudioOutputDeviceObservers.push(e)},this.unsubscribeFromSelectedAudioOutputDevice=e=>{this.selectedAudioOutputDeviceObservers=this.selectedAudioOutputDeviceObservers.filter(t=>t!==e)},this.publishSelectedAudioOutputDevice=()=>{for(const e of this.selectedAudioOutputDeviceObservers)e(this.selectedAudioOutputDevice)},this.subscribeToMeetingStatus=e=>{this.meetingStatusObservers.push(e),e(this.meetingStatus)},this.unsubscribeFromMeetingStatus=e=>{this.meetingStatusObservers=this.meetingStatusObservers.filter(t=>t!==e)},this.publishMeetingStatus=()=>{this.meetingStatusObservers.forEach(e=>{e(this.meetingStatus)})},this.subscribeToDeviceLabelTrigger=e=>{this.deviceLabelTriggerObservers.push(e)},this.unsubscribeFromDeviceLabelTrigger=e=>{this.deviceLabelTriggerObservers=this.deviceLabelTriggerObservers.filter(t=>t!==e)},this.publishDeviceLabelTrigger=()=>{for(const e of this.deviceLabelTriggerObservers)e()},this.subscribeToDeviceLabelTriggerStatus=e=>{this.deviceLabelTriggerStatusObservers.push(e)},this.unsubscribeFromDeviceLabelTriggerStatus=e=>{this.deviceLabelTriggerStatusObservers=this.deviceLabelTriggerStatusObservers.filter(t=>t!==e)},this.publishDeviceLabelTriggerStatus=()=>{for(const e of this.deviceLabelTriggerStatusObservers)e(this.deviceLabelTriggerStatus)},this.subscribeToEventDidReceive=e=>{this.meetingEventObserverSet.add(e)},this.unsubscribeFromEventDidReceive=e=>{this.meetingEventObserverSet.delete(e)},this.publishEventDidReceiveUpdate=(e,t)=>{this.meetingEventObserverSet.forEach(n=>n(e,t))},this.logger=e,this.eventDidReceiveRef={eventDidReceive:(e,t)=>{this.publishEventDidReceiveUpdate(e,t)}}}initializeMeetingManager(){this.meetingSession=null,this.audioVideo=null,this.meetingSessionConfiguration=void 0,this.meetingId=null,this.selectedAudioOutputDevice=null,this.selectedAudioInputDevice=void 0,this.selectedVideoInputDevice=void 0,this.audioInputDevices=[],this.audioOutputDevices=[],this.videoInputDevices=[],this.activeSpeakers=[],this.activeSpeakerListener=null,this.audioVideoObservers={}}join(e,t){return lt(this,void 0,void 0,function*(){const{deviceLabels:n,eventController:r,enableWebAudio:i,activeSpeakerPolicy:o,skipDeviceSelection:a}=this.parseJoinParams(t);this.meetingSessionConfiguration=e,this.meetingId=this.meetingSessionConfiguration.meetingId;const s=new h.DefaultDeviceController(this.logger,{enableWebAudio:i});this.meetingSession=new h.DefaultMeetingSession(e,this.logger,s,r),this.audioVideo=this.meetingSession.audioVideo,r?r.addObserver(this.eventDidReceiveRef):this.meetingSession.eventController.addObserver(this.eventDidReceiveRef),this.setupAudioVideoObservers(),this.setupDeviceLabelTrigger(n),a||(this.logger.info("[MeetingManager.join] listing and selecting devices"),yield this.listAndSelectDevices(n)),this.publishAudioVideo(),this.setupActiveSpeakerDetection(o),this.meetingStatus=ws.Loading,this.publishMeetingStatus()})}parseJoinParams(e){return{deviceLabels:(null===e||void 0===e?void 0:e.deviceLabels)||As.AudioAndVideo,eventController:null===e||void 0===e?void 0:e.eventController,enableWebAudio:(null===e||void 0===e?void 0:e.enableWebAudio)||!1,activeSpeakerPolicy:(null===e||void 0===e?void 0:e.activeSpeakerPolicy)||new h.DefaultActiveSpeakerPolicy,skipDeviceSelection:(null===e||void 0===e?void 0:e.skipDeviceSelection)||!1}}start(){var e;return lt(this,void 0,void 0,function*(){null===(e=this.audioVideo)||void 0===e||e.start()})}leave(){var e,t;return lt(this,void 0,void 0,function*(){if(this.audioVideo){this.audioVideo.stopContentShare(),this.audioVideo.stopLocalVideoTile(),this.audioVideo.unbindAudioElement();try{yield null===(e=this.meetingSession)||void 0===e?void 0:e.deviceController.chooseAudioOutput(null),yield null===(t=this.meetingSession)||void 0===t?void 0:t.deviceController.destroy()}catch(n){this.logger.info("MeetingManager failed to clean up media resources on leave")}this.activeSpeakerListener&&this.audioVideo.unsubscribeFromActiveSpeakerDetector(this.activeSpeakerListener),this.audioVideo.stop()}this.initializeMeetingManager(),this.publishAudioVideo(),this.publishActiveSpeaker()})}setupAudioVideoObservers(){this.audioVideo&&(this.audioVideoObservers={audioVideoDidStart:this.audioVideoDidStart,audioVideoDidStartConnecting:this.audioVideoDidStartConnecting,audioVideoDidStop:this.audioVideoDidStop},this.audioVideo.addObserver(this.audioVideoObservers))}updateDeviceLists(){var e,t,n;return lt(this,void 0,void 0,function*(){this.audioInputDevices=(yield null===(e=this.audioVideo)||void 0===e?void 0:e.listAudioInputDevices())||[],this.videoInputDevices=(yield null===(t=this.audioVideo)||void 0===t?void 0:t.listVideoInputDevices())||[],this.audioOutputDevices=(yield null===(n=this.audioVideo)||void 0===n?void 0:n.listAudioOutputDevices())||[]})}setupDeviceLabelTrigger(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:As.AudioAndVideo;var t;let n;if(this.deviceLabels=e,"function"===typeof e)n=e;else if(e===As.None)n=ec;else{const t={};switch(e){case As.Audio:t.audio=!0;break;case As.Video:t.video=!0;break;case As.AudioAndVideo:t.audio=!0,t.video=!0}n=()=>lt(this,void 0,void 0,function*(){this.deviceLabelTriggerStatus=xs.IN_PROGRESS,this.publishDeviceLabelTriggerStatus();try{const e=(yield navigator.mediaDevices.enumerateDevices()).some(e=>"videoinput"===e.kind),n=yield navigator.mediaDevices.getUserMedia({audio:t.audio,video:t.video&&e});return this.deviceLabelTriggerStatus=xs.GRANTED,this.publishDeviceLabelTriggerStatus(),n}catch(e){throw this.logger.error("MeetingManager failed to get device permissions"),this.deviceLabelTriggerStatus=xs.DENIED,this.publishDeviceLabelTriggerStatus(),e}})}null===(t=this.audioVideo)||void 0===t||t.setDeviceLabelTrigger(n)}setupActiveSpeakerDetection(e){var t;this.publishActiveSpeaker(),this.activeSpeakerListener=e=>{this.activeSpeakers=e,this.activeSpeakerCallbacks.forEach(t=>t(e))},null===(t=this.audioVideo)||void 0===t||t.subscribeToActiveSpeakerDetector(e||new h.DefaultActiveSpeakerPolicy,this.activeSpeakerListener)}listAndSelectDevices(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:As.AudioAndVideo;var t,n;return lt(this,void 0,void 0,function*(){if(yield this.updateDeviceLists(),"function"===typeof e)return;let r=!1,i=!1;switch(e){case As.None:break;case As.Audio:r=!0;break;case As.Video:i=!0;break;case As.AudioAndVideo:r=!0,i=!0}if(r&&!this.selectedAudioInputDevice&&this.audioInputDevices&&this.audioInputDevices.length){this.selectedAudioInputDevice=this.audioInputDevices[0].deviceId;try{yield null===(t=this.audioVideo)||void 0===t?void 0:t.startAudioInput(this.audioInputDevices[0].deviceId)}catch(o){this.logger.error("MeetingManager failed to select audio input device on join: ".concat(o))}this.publishSelectedAudioInputDevice()}if(r&&!this.selectedAudioOutputDevice&&this.audioOutputDevices&&this.audioOutputDevices.length){if(this.selectedAudioOutputDevice=this.audioOutputDevices[0].deviceId,(new h.DefaultBrowserBehavior).supportsSetSinkId())try{yield null===(n=this.audioVideo)||void 0===n?void 0:n.chooseAudioOutput(this.audioOutputDevices[0].deviceId)}catch(o){this.logger.error("MeetingManager failed to select audio output device on join: ".concat(o))}this.publishSelectedAudioOutputDevice()}i&&!this.selectedVideoInputDevice&&this.videoInputDevices&&this.videoInputDevices.length&&(this.selectedVideoInputDevice=this.videoInputDevices[0].deviceId,this.publishSelectedVideoInputDevice()
2)})}}const nc=(0,f.createContext)(null),rc=e=>{let{onDeviceReplacement:t,meetingManager:n,maxContentShares:r,children:i}=e;const o=Ro(),[a]=(0,f.useState)(()=>n||new tc(o));return(0,c.jsx)(nc.Provider,Object.assign({value:a},{children:(0,c.jsx)($s,{children:(0,c.jsx)(ac,{children:(0,c.jsx)(pc,Object.assign({onDeviceReplacement:t},{children:(0,c.jsx)(Js,{children:(0,c.jsx)(Ps,{children:(0,c.jsx)(Ys,{children:(0,c.jsx)(Ws,{children:(0,c.jsx)(Is,Object.assign({maxContentShares:r},{children:(0,c.jsx)(Ns,{children:i})}))})})})})}))})})}))},ic=()=>{const e=(0,f.useContext)(nc);if(!e)throw new Error("useMeetingManager must be used within MeetingProvider");return e},oc=(0,f.createContext)(null),ac=e=>{let{children:t}=e;const n=ic(),[r,i]=(0,f.useState)(null);return(0,f.useEffect)(()=>{function e(e){i(e)}return n.subscribeToAudioVideo(e),()=>n.unsubscribeFromAudioVideo(e)},[]),(0,c.jsx)(oc.Provider,Object.assign({value:r},{children:t}))},sc=()=>(0,f.useContext)(oc),cc=(0,f.createContext)(null),lc=e=>{let{children:t,onDeviceReplacement:n}=e;const r=Ro(),i=ic(),o=sc(),[a,s]=(0,f.useState)([]),[l,d]=(0,f.useState)(i.selectedAudioInputDevice),u=(0,f.useRef)(l);u.current=l;(0,f.useEffect)(()=>(i.subscribeToSelectedAudioInputDevice(d),()=>{i.unsubscribeFromSelectedAudioInputDevice(d)}),[]),(0,f.useEffect)(()=>{let e=!0;const t={audioInputsChanged:e=>lt(void 0,void 0,void 0,function*(){if(r.info("AudioInputProvider - audio inputs updated"),i.getDeviceLabels()!==As.Audio&&i.getDeviceLabels()!==As.AudioAndVideo)return void r.info("Device labels do not allow audio, skipping audio input selection on audioInputsChanged");const t=e.some(e=>e.deviceId===u.current);let o="default";u.current&&!t&&e.length?(r.info("Previously selected audio input lost. Selecting a default device."),o=e[0].deviceId):"default"===u.current&&r.info('Audio devices updated and "default" device is selected. Reselecting input.');const a=yield(c=o,lt(void 0,void 0,void 0,function*(){return n?n(c,i.selectedAudioInputDevice):c}));var c;try{yield i.startAudioInputDevice(a)}catch(l){r.error("Failed to select audio input device on audioInputsChanged: ".concat(l))}s(e)})};function a(){return lt(this,void 0,void 0,function*(){if(!o)return;const n=yield o.listAudioInputDevices();e&&(s(n),o.addDeviceChangeObserver(t))})}const c=()=>{a()};return i.subscribeToDeviceLabelTrigger(c),a(),()=>{e=!1,null===o||void 0===o||o.removeDeviceChangeObserver(t),i.unsubscribeFromDeviceLabelTrigger(c)}},[o,n]);const h=(0,f.useMemo)(()=>({devices:a,selectedDevice:l}),[a,l]);return(0,c.jsx)(cc.Provider,Object.assign({value:h},{children:t}))},dc=()=>{const e=(0,f.useContext)(cc);if(!e)throw new Error("useAudioInputs must be used within AudioInputProvider");return e},fc=(0,f.createContext)(null),uc=e=>{let{children:t}=e;const n=Ro(),r=sc(),[i,o]=(0,f.useState)([]),a=ic(),[s,l]=(0,f.useState)(a.selectedAudioOutputDevice);(0,f.useEffect)(()=>(a.subscribeToSelectedAudioOutputDevice(l),()=>{a.unsubscribeFromSelectedAudioOutputDevice(l)}),[]),(0,f.useEffect)(()=>{let e=!0;const t={audioOutputsChanged:e=>{n.info("AudioOutputProvider - audio outputs updated"),o(e)}};function i(){return lt(this,void 0,void 0,function*(){if(!r)return;const n=yield r.listAudioOutputDevices();e&&(o(n),r.addDeviceChangeObserver(t))})}const s=()=>{i()};return a.subscribeToDeviceLabelTrigger(s),i(),()=>{e=!1,null===r||void 0===r||r.removeDeviceChangeObserver(t),a.unsubscribeFromDeviceLabelTrigger(s)}},[r]);const d=(0,f.useMemo)(()=>({devices:i,selectedDevice:s}),[i,s]);return(0,c.jsx)(fc.Provider,Object.assign({value:d},{children:t}))},hc=(0,f.createContext)(null),mc=e=>{let{children:t}=e;const n=Ro(),r=sc(),[i,o]=(0,f.useState)([]),a=ic(),[s,l]=(0,f.useState)(a.selectedVideoInputDevice);(0,f.useEffect)(()=>(a.subscribeToSelectedVideoInputDevice(l),()=>{a.unsubscribeFromSelectedVideoInputDevice(l)}),[]),(0,f.useEffect)(()=>{let e=!0;const t={videoInputsChanged:e=>{n.info("VideoInputProvider - video inputs updated"),o(e)}};function i(){return lt(this,void 0,void 0,function*(){if(!r)return;const n=yield r.listVideoInputDevices();e&&(o(n),r.addDeviceChangeObserver(t))})}const s=()=>{i()};return a.subscribeToDeviceLabelTrigger(s),i(),()=>{e=!1,null===r||void 0===r||r.removeDeviceChangeObserver(t),a.unsubscribeFromDeviceLabelTrigger(s)}},[r]);const d=(0,f.useMemo)(()=>({devices:i,selectedDevice:s}),[i,s]);return(0,c.jsx)(hc.Provider,Object.assign({value:d},{children:t}))},gc=()=>{const e=(0,f.useContext)(hc);if(!e)throw new Error("useVideoInputs must be used within VideoInputProvider");return e},pc=e=>{let{children:t,onDeviceReplacement:n}=e;
2return(0,c.jsx)(lc,Object.assign({onDeviceReplacement:n},{children:(0,c.jsx)(uc,{children:(0,c.jsx)(mc,{children:t})})}))};function vc(e,t){return void 0===e&&void 0===t}function bc(e,t){const n=e&&0===Object.keys(e).length,r=t&&0===Object.keys(t).length;return n&&r}function yc(e,t){const n=(0,f.useRef)(void 0),r=n.current,i=t(r,e);return(0,f.useEffect)(()=>{i||(n.current=e)}),i?r:e}const wc=(0,f.createContext)(void 0),xc=e=>{let{spec:t,options:n,children:r}=e,i=Ro();i=(null===n||void 0===n?void 0:n.logger)||i;const[o,a]=(0,f.useState)(void 0),[s,l]=(0,f.useState)(),d=yc(t,(e,t)=>!!Object.is(e,t)),u=yc(n,(e,t)=>!(!vc(e,t)&&!bc(e,t))||(null===e||void 0===e?void 0:e.filterCPUUtilization)===(null===t||void 0===t?void 0:t.filterCPUUtilization)&&(null===e||void 0===e?void 0:e.blurStrength)===(null===t||void 0===t?void 0:t.blurStrength)&&(null===e||void 0===e?void 0:e.logger)===(null===t||void 0===t?void 0:t.logger)&&(null===e||void 0===e?void 0:e.reportingPeriodMillis)===(null===t||void 0===t?void 0:t.reportingPeriodMillis));function m(){return lt(this,void 0,void 0,function*(){i.info("Initializing background blur processor with, spec: ".concat(JSON.stringify(t),", options: { blurStrength: ").concat(null===n||void 0===n?void 0:n.blurStrength,", filterCPUUtilization: ").concat(null===n||void 0===n?void 0:n.filterCPUUtilization,", reportingPeriodMillis: ").concat(null===n||void 0===n?void 0:n.reportingPeriodMillis," }"));try{const e=yield h.BackgroundBlurVideoFrameProcessor.create(Object.assign({},t),Object.assign({},n));return e instanceof h.NoOpVideoFrameProcessor?(i.warn("Initialized NoOpVideoFrameProcessor"),l(void 0),void a(!1)):(i.info("Initialized background blur processor"),l(e),a(!0),e)}catch(e){return i.error("Error creating a background blur video frame processor device ".concat(e)),l(void 0),void a(!1)}})}(0,f.useEffect)(()=>(m(),()=>{i.info("Specs or options were changed. Destroying and re-initializing background blur processor."),null===s||void 0===s||s.destroy()}),[u,d]);const g={createBackgroundBlurDevice:e=>lt(void 0,void 0,void 0,function*(){i.info("Calling createBackgroundBlurDevice with device: ".concat(JSON.stringify(e)));const t=yield m();try{if(t){return new h.DefaultVideoTransformDevice(i,e,[t])}
2throw new Error("Processor has not been created. Background Blur is not supported.")}catch(n){throw new Error("Failed to create a DefaultVideoTransformDevice: ".concat(n))}}),isBackgroundBlurSupported:o,backgroundBlurProcessor:s};return(0,c.jsx)(wc.Provider,Object.assign({value:g},{children:r}))},Ac=()=>{const e=(0,f.useContext)(wc);if(!e)throw new Error("useBackgroundBlur must be used within BackgroundBlurProvider");return e};function Sc(){const e=sc(),[t,n]=(0,f.useState)(()=>(null===e||void 0===e?void 0:e.realtimeIsLocalAudioMuted())||!1);(0,f.useEffect)(()=>{const t=e=>{n(e)};return null===e||void 0===e||e.realtimeSubscribeToMuteAndUnmuteLocalAudio(t),n((null===e||void 0===e?void 0:e.realtimeIsLocalAudioMuted())||!1),()=>{null===e||void 0===e||e.realtimeUnsubscribeToMuteAndUnmuteLocalAudio(t)}},[e]);const r=(0,f.useCallback)(()=>{t?null===e||void 0===e||e.realtimeUnmuteLocalAudio():null===e||void 0===e||e.realtimeMuteLocalAudio()},[t,e]);return{muted:t,toggleMute:r}}hn(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",u="[object Object]",h="[object Promise]",m="[object RegExp]",g="[object Set]",p="[object String]",v="[object Symbol]",b="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[o]=S[y]=S[a]=S[w]=S[s]=S[c]=S[l]=S[d]=S[f]=S[u]=S[m]=S[g]=S[p]=S[b]=!1;var k="object"==typeof un&&un&&un.Object===Object&&un,C="object"==typeof self&&self&&self.Object===Object&&self,O=k||C||Function("return this")(),j=t&&!t.nodeType&&t,E=j&&e&&!e.nodeType&&e,D=E&&E.exports===j,I=D&&k.process,T=function(){try{return I&&I.binding&&I.binding("util")}catch(e){}}(),z=T&&T.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var _,V,P=Array.prototype,F=Function.prototype,B=Object.prototype,N=O["__core-js_shared__"],H=F.toString,U=B.hasOwnProperty,W=function(){var e=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),q=B.toString,G=RegExp("^"+H.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=D?O.Buffer:void 0,K=O.Symbol,X=O.Uint8Array,$=B.propertyIsEnumerable,Q=P.splice,J=K?K.toStringTag:void 0,Z=Object.getOwnPropertySymbols,ee=Y?Y.isBuffer:void 0,te=(_=Object.keys,V=Object,function(e){return _(V(e))}),ne=Ie(O,"DataView"),re=Ie(O,"Map"),ie=Ie(O,"Promise"),oe=Ie(O,"Set"),ae=Ie(O,"WeakMap"),se=Ie(Object,"create"),ce=Le(ne),le=Le(re),de=Le(ie),fe=Le(oe),ue=Le(ae),he=K?K.prototype:void 0,me=he?he.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new pe(e);this.size=t.size}function we(e,t){var n=Ve(e),r=!n&&_e(e),i=!n&&!r&&Pe(e),o=!n&&!r&&!i&&Ue(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!U.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Re(l,c))||s.push(l);return s}function xe(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n;return-1}function Ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=U.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(o){}var i=q.call(e);r&&(t?e[J]=n:delete e[J]);return i}(e):function(e){return q.call(e)}(e)}function Se(e){return He(e)&&Ae(e)==i}function ke(e,t,n,r,l){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!==e&&t!==t:function(e,t,n,r,l,h){var b=Ve(e),x=Ve(t),A=b?o:ze(e),S=x?o:ze(t),k=(A=A==i?u:A)==u,C=(S=S==i?u:S)==u,O=A==S;if(O&&Pe(e)){if(!Pe(t))return!1;b=!0,k=!1}if(O&&!k)return h||(h=new ye),b||Ue(e)?je(e,t,n,r,l,h):function(e,t,n,r,i,o,l){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!o(new X(e),new X(t)));case a:case s:case f:return Me(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case p:return e==t+"";case d:var u=L;case g:var h=1&r;if(u||(u=M),e.size!=t.size&&!h)return!1;var b=l.get(e);if(b)return b==t;r|=2,l.set(e,t);var x=je(u(e),u(t),r,i,o,l);return l.delete(e),x;case v:if(me)return me.call(e)==me.call(t)}return!1}(e,t,A,n,r,l,h);if(!(1&n)){var j=k&&U.call(e,"__wrapped__"),E=C&&U.call(t,"__wrapped__");
2if(j||E){var D=j?e.value():e,I=E?t.value():t;return h||(h=new ye),l(D,I,n,r,h)}}if(!O)return!1;return h||(h=new ye),function(e,t,n,r,i,o){var a=1&n,s=Ee(e),c=s.length,l=Ee(t),d=l.length;if(c!=d&&!a)return!1;var f=c;for(;f--;){var u=s[f];if(!(a?u in t:U.call(t,u)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var m=!0;o.set(e,t),o.set(t,e);var g=a;for(;++f<c;){var p=e[u=s[f]],v=t[u];if(r)var b=a?r(v,p,u,t,e,o):r(p,v,u,e,t,o);if(!(void 0===b?p===v||i(p,v,n,r,o):b)){m=!1;break}g||(g="constructor"==u)}if(m&&!g){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,r,l,h)}(e,t,n,r,ke,l))}function Ce(e){return!(!Ne(e)||function(e){return!!W&&W in e}(e))&&(Fe(e)?G:x).test(Le(e))}function Oe(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||B;return e===n}(e))return te(e);var t=[];for(var n in Object(e))U.call(e,n)&&"constructor"!=n&&t.push(n);return t}function je(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var d=-1,f=!0,u=2&n?new be:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],m=t[d];if(r)var g=a?r(m,h,d,t,e,o):r(h,m,d,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(u){if(!R(t,function(e,t){if(a=t,!u.has(a)&&(h===e||i(h,e,n,r,o)))return u.push(t);var a})){f=!1;break}}else if(h!==m&&!i(h,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ee(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,We,Te)}function De(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}ge.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(se){var r=t[e];return r===n?void 0:r}return U.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:U.call(t,e)},ge.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0)&&(n==t.length-1?t.pop():Q.call(t,n,1),--this.size,!0)},pe.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return xe(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=xe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(re||pe),string:new ge}},ve.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return De(this,e).get(e)},ve.prototype.has=function(e){return De(this,e).has(e)},ve.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,n),this},be.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new pe,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!re||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Te=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Z(e),function(t){return $.call(e,t)}))}:function(){return[]},ze=Ae;function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return H.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Me(e,t){return e===t||e!==e&&t!==t}(ne&&ze(new ne(new ArrayBuffer(1)))!=w||re&&ze(new re)!=d||ie&&ze(ie.resolve())!=h||oe&&ze(new oe)!=g||ae&&ze(new ae)!=b)&&(ze=function(e){var t=Ae(e),n=t==u?e.constructor:void 0,r=n?Le(n):"";if(r)switch(r){case ce:return w;case le:return d;case de:return h;case fe:return g;case ue:return b}return t});var _e=Se(function(){return arguments}())?Se:function(e){return He(e)&&U.call(e,"callee")&&!$.call(e,"callee")},Ve=Array.isArray;var Pe=ee||function(){return!1};function Fe(e){if(!Ne(e))return!1;var t=Ae(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var Ue=z?function(e){return function(t){return e(t)}}(z):function(e){return He(e)&&Be(e.length)&&!!S[Ae(e)]};function We(e){return null!=(t=e)&&Be(t.length)&&!Fe(t)?we(e):Oe(e);var t}e.exports=function(e,t){return ke(e,t)}});(0,f.createContext)(null);const kc=(0,l.Ay)(is)(nt||(nt=(0,s.A)(["\n background-color: ",";\n"])),e=>{let{theme:t}=e;return t.colors.greys.grey80}),Cc=e=>
2{var{className:t,tileId:n}=e,r=ct(e,["className","tileId"]);const i=sc(),o=Ts(),a=void 0!==n?n:o.tileId,s=a?o.tileIdToAttendeeId[a.toString()]:null,l=(0,f.useRef)(null);return(0,f.useEffect)(()=>{if(i&&l.current&&a)return i.bindVideoElement(a,l.current),()=>{i.getVideoTile(a)&&i.unbindVideoElement(a)}},[i,a]),a?(0,c.jsx)(kc,Object.assign({objectFit:"contain",className:"ch-content-share--".concat(a," ").concat(t||"")},r,{ref:l,"data-content-share-attendee":s})):null};function Oc(e){(0,f.useEffect)(()=>{var t;function n(){if(!e.current)return;const t=e.current.videoHeight,n=e.current.videoWidth;e.current.style.objectFit=t>n?"contain":"cover"}return null===(t=e.current)||void 0===t||t.addEventListener("loadedmetadata",n),()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.removeEventListener("loadedmetadata",n)}},[e])}const jc=(0,l.Ay)(is)(rt||(rt=(0,s.A)(["\n ",";\n"])),e=>e.active?"":"display: none"),Ec=e=>{var{nameplate:t}=e,n=ct(e,["nameplate"]);const{tileId:r,isVideoEnabled:i}=Ks(),o=sc(),a=(0,f.useRef)(null);return Oc(a),(0,f.useEffect)(()=>{if(o&&r&&a.current&&i)return o.bindVideoElement(r,a.current),()=>{o.getVideoTile(r)&&o.unbindVideoElement(r)}},[o,r,i]),(0,c.jsx)(jc,Object.assign({active:i,nameplate:t,ref:a},n))},Dc=((0,l.Ay)(is)(it||(it=(0,s.A)(["\n height: auto;\n background: unset;\n\n video {\n position: static;\n }\n"]))),e=>{var{name:t,className:n,tileId:r}=e,i=ct(e,["name","className","tileId"]);const o=sc(),a=(0,f.useRef)(null);return Oc(a),(0,f.useEffect)(()=>{if(o&&a.current)return o.bindVideoElement(r,a.current),()=>{o.getVideoTile(r)&&o.unbindVideoElement(r)}},[o,r]),(0,c.jsx)(is,Object.assign({},i,{ref:a,nameplate:t,className:"ch-remote-video--".concat(r," ").concat(n||"")}))}),Ic=e=>{const{roster:t}=Zs(),{tiles:n,tileIdToAttendeeId:r}=Fs();return(0,c.jsx)(c.Fragment,{children:n.map(n=>{const i=t[r[n]]||{},{name:o}=i;return(0,f.createElement)(Dc,Object.assign({},e,{key:n,tileId:n,name:o}))})})};(0,f.memo)(Ic);const Tc=e=>{const t=(0,f.useContext)(ns),{roster:n}=Zs(),{tileId:r}=Hs(),{tiles:i}=Ts(),{tiles:o,tileIdToAttendeeId:a}=Fs();return(0,c.jsx)(c.Fragment,{children:o.map(o=>{const s=!(i.length>0)&&r===o,c=t&&s?"grid-area: ft;":"",l="".concat(s?"ch-featured-tile":""," ").concat(e.className||""),d=n[a[o]]||{},{name:u}=d;return(0,f.createElement)(Dc,Object.assign({tileId:o,name:u},e,{className:l,key:o,css:c}))})})};(0,f.memo)(Tc);function zc(e){const t=sc(),[n,r]=(0,f.useState)(!1),[i,o]=(0,f.useState)(1);return(0,f.useEffect)(()=>{if(!t)return;const n=(e,t,n,i)=>{null!==n&&r(n),null!==i&&o(i)};return t.realtimeSubscribeToVolumeIndicator(e,n),()=>t.realtimeUnsubscribeFromVolumeIndicator(e,n)},[t,e]),{muted:n,signalStrength:i}}const Rc=l.Ay.div.withConfig(vt)(ot||(ot=(0,s.A)(["\n position: relative;\n height: inherit;\n line-height: 0;\n\n .ch-mic-icon {\n position: relative;\n z-index: 2;\n width: 100%;\n }\n\n .ch-bg-volume-wrapper {\n position: absolute;\n bottom: 41%;\n left: 40%;\n height: 38%;\n width: 21%;\n border-radius: 20%;\n overflow: hidden;\n }\n\n .ch-bg-volume-fill {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transform-origin: bottom;\n will-change: transform;\n background-color: ",";\n }\n\n ","\n ","\n"])),e=>e.signalStrength&&e.signalStrength<=.5?e.theme.colors.error.light:e.theme.colors.primary.light,yt,bt),Lc=(0,f.forwardRef)((e,t)=>{var{muted:n=!1,signalStrength:r,className:i}=e,o=ct(e,["muted","signalStrength","className"]);const a=void 0!==r&&r<=.5,s=i?"".concat(i," ch-mic-volume-indicator"):"ch-mic-volume-indicator";return(0,c.jsxs)(Rc,Object.assign({className:s,signalStrength:r,muted:n},o,{children:[(0,c.jsx)(Xt,{muted:n,className:"ch-mic-icon",poorConnection:a}),(0,c.jsx)("div",Object.assign({className:"ch-bg-volume-wrapper"},{children:(0,c.jsx)("div",{ref:t,className:"ch-bg-volume-fill","data-testid":"volume-fill"})}))]}))}),Mc=e=>{var{attendeeId:t}=e,n=ct(e,["attendeeId"]);const r=sc(),i=(0,f.useRef)(null),{signalStrength:o,muted:a}=zc(t);return(0,f.useEffect)(()=>
2{if(!r||!t||!i.current)return;const e=(e,t,n,r)=>{i.current&&(i.current.style.transform="scaleY(".concat(t,")"))};return r.realtimeSubscribeToVolumeIndicator(t,e),()=>r.realtimeUnsubscribeFromVolumeIndicator(t,e)},[t]),(0,c.jsx)(Lc,Object.assign({},n,{ref:i,muted:a,signalStrength:o}))};function _c(e){const t=sc(),n=zc(e),[r,i]=(0,f.useState)(()=>{var n,r,i;if(!t)return null;const o=null===(i=null===(r=null===(n=t.audioVideoController)||void 0===n?void 0:n.realtimeController)||void 0===r?void 0:r.state)||void 0===i?void 0:i.localAttendeeId,a=e===o,s=t.getAllVideoTiles().find(t=>{const n=t.state();return!(n.isContent||a&&!n.active)&&n.boundAttendeeId===e});return s?s.state().tileId:null}),[o,a]=(0,f.useState)(()=>{if(!t)return null;const n=t.getAllVideoTiles().find(t=>{const n=t.state();if(!n.boundAttendeeId||!n.isContent)return!1;return new h.DefaultModality(n.boundAttendeeId).base()===e});return n?n.state().tileId:null});(0,f.useEffect)(()=>{if(!t)return;const n={videoTileDidUpdate:t=>{t.boundAttendeeId===e&&(t.localTile&&r&&!t.boundVideoStream?i(null):r||!t.tileId||t.isContent||i(t.tileId))},videoTileWasRemoved:e=>{e===r&&i(null)}};return t.addObserver(n),()=>t.removeObserver(n)},[t,r,e]),(0,f.useEffect)(()=>{if(!t)return;const n={videoTileDidUpdate:t=>{if(!t.isContent||!t.boundAttendeeId||o)return;new h.DefaultModality(t.boundAttendeeId).base()===e&&a(t.tileId)},videoTileWasRemoved:e=>{e===o&&a(null)}};return t.addObserver(n),()=>t.removeObserver(n)},[t,o,e]);const s="number"===typeof r&&r>-1,c="number"===typeof o&&o>-1;return Object.assign(Object.assign({},n),{videoEnabled:s,sharingContent:c})}const Vc=(0,f.createContext)(void 0),Pc=e=>{let{spec:t,options:n,children:r}=e,i=Ro();i=(null===n||void 0===n?void 0:n.logger)||i;const[o,a]=(0,f.useState)(void 0),[s,l]=(0,f.useState)(void 0),d=yc(t,(e,t)=>!!Object.is(e,t)),u=yc(n,(e,t)=>!(!bc(e,t)&&!vc(e,t))||(null===e||void 0===e?void 0:e.filterCPUUtilization)===(null===t||void 0===t?void 0:t.filterCPUUtilization)&&(null===e||void 0===e?void 0:e.logger)===(null===t||void 0===t?void 0:t.logger)&&(null===e||void 0===e?void 0:e.reportingPeriodMillis)===(null===t||void 0===t?void 0:t.reportingPeriodMillis));function m(){return lt(this,void 0,void 0,function*(){i.info("Initializing background replacement processor with, ".concat(JSON.stringify(t),", options: { filterCPUUtilization: ").concat(null===n||void 0===n?void 0:n.filterCPUUtilization,", reportingPeriodMillis: ").concat(null===n||void 0===n?void 0:n.reportingPeriodMillis,"}"));try{const e=yield h.BackgroundReplacementVideoFrameProcessor.create(Object.assign({},t),Object.assign({},n));return e instanceof h.NoOpVideoFrameProcessor?(i.warn("Initialized NoOpVideoFrameProcessor"),l(void 0),void a(!1)):(i.info("Initialized background replacement processor"),l(e),a(!0),e)}catch(e){return i.error("Error creating a background replacement video frame processor device. ".concat(e)),l(void 0),void a(!1)}})}(0,f.useEffect)(()=>(m(),()=>{i.info("Specs or options were changed. Destroying and re-initializing background replacement processor."),null===s||void 0===s||s.destroy()}),[d,u]);const g={createBackgroundReplacementDevice:e=>lt(void 0,void 0,void 0,function*(){i.info("Calling createBackgroundReplacementDevice with device: ".concat(JSON.stringify(e)));const t=yield m();try{if(t){return new h.DefaultVideoTransformDevice(i,e,[t])}
2throw new Error("Processor has not been created. Background Replacement is not supported.")}catch(n){throw new Error("Failed to create a DefaultVideoTransformDevice: ".concat(n))}}),isBackgroundReplacementSupported:o,backgroundReplacementProcessor:s,changeBackgroundReplacementImage:e=>lt(void 0,void 0,void 0,function*(){if(s)try{yield s.setImageBlob(e),i.info("Background replacement image changed to new imageBlob: ".concat(e))}catch(t){throw i.error("Failed to change the background replacement image: ".concat(t)),new Error("Failed to change the background replacement image: ".concat(t))}else i.warn("BackgroundReplacementProcessor has not been initialized yet.")})};return(0,c.jsx)(Vc.Provider,Object.assign({value:g},{children:r}))},Fc=()=>{const e=(0,f.useContext)(Vc);if(!e)throw new Error("useBackgroundReplacement must be used within BackgroundReplacementProvider");return e};function Bc(){const e=ic(),[t,n]=(0,f.useState)([]);return(0,f.useEffect)(()=>{const t=e=>n(e);return e.subscribeToActiveSpeaker(t),()=>e.unsubscribeFromActiveSpeaker(t)},[]),t}const Nc=()=>{const e=ic(),[t,n]=(0,f.useState)(()=>e.meetingStatus);return(0,f.useEffect)(()=>{const t=e=>{n(e)};return e.subscribeToMeetingStatus(t),()=>{e.unsubscribeFromMeetingStatus(t)}},[]),t},Hc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal";(e=>{const t=sc(),{selectedDevice:n}=dc();(0,f.useEffect)(()=>{if(!t)return;let n,r,i,o,a=!1,s=!0;function c(){t&&s&&(n=t.createAnalyserNodeForAudioInput(),(null===n||void 0===n?void 0:n.getByteTimeDomainData)&&(r=new Uint8Array(n.fftSize),i=0,a=!1,requestAnimationFrame(l)))}function l(){if(n){if(0===i){n.getByteTimeDomainData(r);const t=.01;let i=t;for(const e of r)i=Math.max(i,(e-128)/128);const a=(Math.log(t)-Math.log(i))/Math.log(t);o!==a&&(o=a,e&&e(a))}i=(i+1)%2,a?setTimeout(c,500):s&&requestAnimationFrame(l)}}return t.addDeviceChangeObserver({audioInputsChanged:()=>{a=!0}}),c(),()=>{s=!1}},[t,n,e])})((0,f.useCallback)(n=>{e.current&&(e.current.style.transform="horizontal"===t?"scaleX(".concat(n,")"):"scaleY(".concat(n,")"))},[t]))};const Uc=["20rem","35.5rem","48rem","64rem","90rem"];Uc.xs=Uc[0],Uc.sm=Uc[1],Uc.md=Uc[2],Uc.lg=Uc[3],Uc.xl=Uc[4];const Wc={breakpoints:Uc,mediaQueries:{min:{xs:"@media screen and (min-width: ".concat(Uc.xs,")"),sm:"@media screen and (min-width: ".concat(Uc.sm,")"),md:"@media screen and (min-width: ".concat(Uc.md,")"),lg:"@media screen and (min-width: ".concat(Uc.lg,")"),xl:"@media screen and (min-width: ".concat(Uc.xl,")")},max:{xs:"@media screen and (max-width: ".concat(Uc.xs,")"),sm:"@media screen and (max-width: ".concat(Uc.sm,")"),md:"@media screen and (max-width: ".concat(Uc.md,")"),lg:"@media screen and (max-width: ".concat(Uc.lg,")"),xl:"@media screen and (max-width: ".concat(Uc.xl,")")}},fonts:{body:"'Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;",monospace:"Menlo, monospace"},fontSizes:{baseFontSize:"16px",fontWeight:"normal",h1:{fontSize:"5.3rem",fontWeight:"normal",lineHeight:"5.625rem",mobile:{fontSize:"3.8125rem",fontWeight:"normal",lineHeight:"5.625rem"}},h2:{fontSize:"3.925rem",fontWeight:"normal",lineHeight:"3.75rem",mobile:{fontSize:"3.05rem",fontWeight:"normal",lineHeight:"4.5rem"}},h3:{fontSize:"2.44125rem",fontWeight:"normal",lineHeight:"3.75rem",mobile:{fontSize:"2.90625rem",fontWeight:"normal",lineHeight:"3rem"}},h4:{fontSize:"1.953125rem",fontWeight:"normal",lineHeight:"3.75rem",mobile:{fontSize:"2.15rem",fontWeight:"normal",lineHeight:"3rem"}},h5:{fontSize:"1.5625rem",fontWeight:"normal",lineHeight:"3rem",mobile:{fontSize:"1.59375rem",fontWeight:"normal",lineHeight:"1.875rem"}},h6:{fontSize:"1.25rem",fontWeight:"normal",lineHeight:"1.875rem",mobile:{fontSize:"1.18125rem",fontWeight:"normal",lineHeight:"1.5rem"}},text:{fontSize:"0.875rem",lineHeight:"1.43"},label:{fontSize:"0.875rem",lineHeight:"1.43"},small:{fontSize:"0.75rem",lineHeight:"1.43"},footnote:{fontSize:"0.65rem",lineHeight:"1rem"}},radii:{default:"0.25rem",circle:"50%"},zIndex:{navigation:10,controlBar:15,modal:20,popOver:30,notificationGroup:40},modalSizes:{md:{width:"35rem",height:"94vh"},lg:{width:"50rem",height:"94vh"},fullscreen:{width:"98vw",height:"96vh"}},iconButtonSizes:{sm:"1.5rem",md:"2.5rem",lg:"4rem"}},qc={primary:{lightest:"#88b2ff",lighter:"#5d96ff",light:"#327aff",main:"#075fff",dark:"#004ddb",darker:"#0042bb",darkest:"#002f85"},secondary:{light:"#ff8e74",main:"#ff7654",dark:"#e86c4d"},error:{lightest:"#FCF7F6",lighter:"#F5DDD5",light:"#FF927C",primary:"#C52000",dark:"#9E3319",darker:"#89301A",darkest:"#791800"},success:{lightest:"#EBF1EA",lighter:"#CEE0C8",light:"#50CD49",primary:"#067000",dark:"#305D1D",darker:"#2C511D",dar
2kest:"#184206"},info:{lightest:"#DADFE7",lighter:"#C4CCD9",light:"#418AFD",primary:"#2555A0",dark:"#264A82",darker:"#243F6B",darkest:"#123366"},warning:{lightest:"#FAF8EA",lighter:"#F7E79E",light:"#F9DC60",primary:"#F9CC09",dark:"#665A2A",darker:"#584E26",darkest:"#534201"},greys:{black:"#000000",grey100:"#1b1c20",grey90:"#2e2f34",grey80:"#3f4149",grey70:"#50545e",grey60:"#616672",grey50:"#7d818b",grey40:"#989da5",grey30:"#d4d5d8",grey20:"#e4e9f2",grey10:"#f0f1f2",white:"#ffffff"}},Gc={bgd:qc.greys.white,text:qc.greys.grey80,fontSize:Wc.fontSizes.baseFontSize},Yc={none:"none",small:"0 0.09375rem 0.0625rem 0 ".concat(pt(qc.greys.grey100,.15)),medium:"0 0.5rem 0.85rem 0 ".concat(pt(qc.greys.black,.15)),large:"0 0.75rem 1.875rem 0 ".concat(pt(qc.greys.black,.15))},Kc={primary:{shadow:Yc.none,static:{bgd:qc.primary.light,border:"0.03125rem solid ".concat(qc.primary.darker),text:qc.greys.white,shadow:"none"},hover:{bgd:qc.primary.dark,border:"0.03125rem solid ".concat(qc.primary.darkest),text:qc.greys.white,shadow:"none"},focus:{bgd:qc.primary.dark,border:"0.03125rem solid ".concat(qc.primary.darker),text:qc.greys.white,shadow:"0 0 0 0.25rem ".concat(qc.primary.lightest)},active:{bgd:qc.primary.darker,border:"0.03125rem solid ".concat(qc.greys.black),text:qc.greys.white,shadow:"0 0 0 0.25rem ".concat(qc.primary.lightest)},selected:{bgd:qc.primary.light,border:"0.03125rem solid ".concat(qc.primary.dark),text:qc.greys.white,shadow:"none"},disabled:{bgd:qc.greys.white,border:"0.03125rem solid ".concat(qc.greys.grey10),text:qc.greys.grey40,shadow:"none"}},secondary:{shadow:Yc.none,static:{bgd:qc.greys.white,border:"0.03125rem solid ".concat(qc.greys.grey30),text:qc.greys.grey80,shadow:"none"},hover:{bgd:qc.greys.grey10,border:"0.03125rem solid ".concat(qc.greys.grey30),text:qc.greys.grey80,shadow:"none"},focus:{bgd:qc.greys.grey10,border:"0.03125rem solid ".concat(qc.primary.dark),text:qc.greys.grey80,shadow:"0 0 0 0.25rem ".concat(qc.primary.light)},active:{bgd:qc.greys.grey20,border:"0.03125rem solid ".concat(qc.greys.grey40),text:qc.greys.grey80,shadow:"0 0 0 0.25rem ".concat(qc.primary.dark)},selected:{bgd:qc.greys.grey10,border:"0.03125rem solid ".concat(qc.greys.grey30),text:qc.greys.grey80,shadow:"0 0 0 0.25rem ".concat(qc.primary.dark)},disabled:{bgd:qc.greys.white,border:"0.03125rem solid ".concat(qc.greys.grey10),text:qc.greys.grey40,shadow:"none"}},icon:{shadow:Yc.none,static:{bgd:"transparent",border:"0.03125rem solid transparent",text:qc.greys.grey80,shadow:"none"},hover:{bgd:qc.primary.dark,border:"0.03125rem solid transparent",text:qc.greys.white,shadow:"none"},focus:{bgd:"transparent",border:"0.03125rem solid ".concat(qc.primary.darker),text:qc.greys.grey80,shadow:"0 0 0 0.25rem ".concat(qc.primary.lightest)},active:{bgd:qc.primary.darker,border:"0.03125rem solid ".concat(qc.primary.darker),text:qc.greys.white,shadow:"0 0 0 0.25rem ".concat(qc.primary.lightest)},selected:{bgd:qc.primary.light,border:"0.03125rem solid ".concat(qc.primary.darker),text:qc.greys.white,shadow:"none"},disabled:{bgd:"transparent",border:"none",text:qc.greys.grey40,shadow:"none"}}},Xc={bgd:qc.greys.white,border:"0.03125rem solid ".concat(qc.greys.grey30),borderRadius:Wc.radii.default,fontColor:qc.greys.grey80,placeholder:qc.greys.grey40,shadow:"0 0.0625rem 0.0625rem 0 ".concat(pt(qc.greys.black,.1)),clearBg:qc.greys.grey50,focus:{bgd:qc.greys.white,border:"solid 0.03125rem ".concat(qc.primary.lighter),shadow:"0 0 0 0.125rem ".concat(qc.primary.lightest)},error:{border:"0.03125rem solid ".concat(qc.error.dark),fontColor:qc.error.primary,shadow:"0 0 0 0.125rem ".concat(qc.error.light)},checked:{bgd:qc.primary.main,border:"solid 0.03125rem ".concat(qc.primary.main),fontColor:qc.greys.white,shadow:"0 0.03125rem 0.03125rem 0 ".concat(pt(qc.primary.dark,.7))}},$c={bgd:qc.greys.white,text:qc.greys.grey80,wrapperBgd:pt(qc.greys.grey50,.9),titleSize:Wc.fontSizes.h5.fontSize,titleWeight:"normal",shadow:Yc.large,border:qc.greys.grey30},Qc={menuBgd:"".concat(pt(qc.greys.grey10,.85)),menuBorder:"0.5px solid ".concat(qc.greys.grey20),shadow:Yc.large,itemBgd:"transparent",itemText:qc.greys.grey70,titleText:qc.greys.grey60,active:{itemBgd:qc.primary.dark,itemText:qc.greys.white},disabled:qc.greys.grey40,separator:"".concat(pt(qc.greys.grey40,.3))},Jc={shadow:Yc.large,error:{text:qc.error.lightest,closeButton:{text:qc.error.lighter,hover:{bgd:qc.error.lighter,text:qc.error.dark},active:{bgd:qc.error.lightest,text:qc.error.darker}}},success:{text:qc.success.lightest,closeButton:{text:qc.success.lighter,hover:{bgd:qc.success.lighter,text:qc.success.dark},active:{bgd:qc.success.lightest,text:qc.success.darker}}},info:{text:qc.info.lightest,closeButton:{text:qc.info.lighter,hover:{bgd:qc.info.lighter,text:qc.info.dark},active:{bgd:qc.info.lightest,text:qc.info.darker}}},warning:{text:qc.warning.darker,closeButton:{text:qc.warning.dark,hover:{bgd:qc.warning.dark,text:qc.greys.white},active:{bgd:qc.warning.darker,text:qc.greys.white}}}},Zc={fontColor:qc.primary.main,fontColorHover:qc.primary.dark,fontColorActive:qc.primary.darker,fontColorVisited:qc.primary.darkest},el={text:qc.greys.grey70,shadow:Yc.large,bgd:qc.greys.white,border:"0.03125rem solid ".concat(qc.greys.grey20),opacity:1,selected:{text:Kc.primary.selected.text,bgd:Kc.primary.selected.bgd}},tl={title:qc.greys.grey100,primaryText:qc.greys.grey80,secondaryText:qc.greys.grey50,headerBorder:qc.greys.grey40,containerBorder:qc.greys.grey30,bgd:qc.greys.grey10,fgd:qc.greys.white,shadow:Yc.large,maxWidth:"18.5rem"},nl={text:qc.greys.grey80,bgd:qc.greys.grey10,headerBorder:qc.greys.grey40,wrapperBgd:pt(qc.greys.grey50,.9)},rl={bgd:qc.greys.white},il={incoming:{bgd:qc.greys.white,fontColor:qc.greys.grey60,linkColor:qc.primary.main,linkColorHover:qc.primary.dark,linkColorActive:qc.primary.darker,linkColorVisited:qc.primary.darkest},outgoing:{bgd:qc.primary.main,fontColor:qc.greys.grey10,linkColor:qc.greys.white,linkColorHover:qc.greys.grey10,linkColorActive:qc.greys.grey20,linkColorVisited:qc.greys.grey30},container:{fontColor:qc.greys.grey70,bgd:qc.greys.grey10}},ol={size:{fontColor:qc.greys.grey40,bgd:qc.greys.white,letterSpacing:"-0.07px",lineHight:"16px",fontSize:"10.4px"},icon:{bgd:qc.greys.grey10,color:qc.greys.grey80},name:{fontColor:qc.greys.grey80},content:{letterSpacing:"-0.09px",bgd:qc.greys.white,fontColor:qc.greys.grey80}},al={bgd:qc.greys.white,fontColor:qc.greys.grey70,border:"1px solid transparent",active:{bgd:qc.primary.dark,fontColor:qc.greys.white},hover:{bgd:qc.greys.grey10},focus:{border:"1px solid ".concat(qc.primary.dark),selectedBorder:"1px solid ".concat(qc.greys.grey10)},selected:{bgd:qc.primary.light,fontColor:qc.greys.white},iconButton:{activeBgd:qc.greys.white}},sl={bgd:qc.greys.grey60,fontColor:qc.greys.white},cl=Object.assign({name:"Light Theme",buttons:Kc,colors:qc,globalStyle:Gc,links:Zc,shadows:Yc,inputs:Xc,modal:$c,popOver:Qc,notification:Jc,controlBar:el,roster:tl,
2navbar:nl,videoGrid:rl,chatBubble:il,channelList:al,chatDateHeader:sl,messageAttachment:ol},Wc),ll={primary:{lightest:"#9DEFFB",lighter:"#8AEBFA",light:"#62E5F9",main:"#4FE2F8",dark:"#29DCF8",darker:"#22B6CB",darkest:"#1FA1B5"},secondary:{light:"#FF8B70",main:"#FF9B83",dark:"#FFB4A1"},error:{lightest:"#FBC1C0",lighter:"#FDA8A6",light:"#FD9B99",primary:"#FF8B8A",dark:"#583A39",darker:"#452F2E",darkest:"#302020"},success:{lightest:"#F4FBF1",lighter:"#D2F1C5",light:"#BAF39E",primary:"#A3E881",dark:"#4F6444",darker:"#46573D",darkest:"#324129"},info:{lightest:"#F0F5FD",lighter:"#D8E6FB",light:"#C4DBFF",primary:"#BAD4FF",dark:"#555B69",darker:"#494F59",darkest:"#343C48"},warning:{lightest:"#FDFDF7",lighter:"#3F4149",light:"#FFEB96",primary:"#FBDF64",dark:"#6D653C",darker:"#5E5736",darkest:"#47422D"},greys:{black:"#000000",grey100:"#1b1c20",grey90:"#2e2f34",grey80:"#3f4149",grey70:"#50545e",grey60:"#616672",grey50:"#7d818b",grey40:"#989da5",grey30:"#d4d5d8",grey20:"#e4e9f2",grey10:"#f0f1f2",white:"#ffffff"}},dl={bgd:ll.greys.grey80,text:ll.greys.white,fontSize:Wc.fontSizes.baseFontSize},fl={none:"none",small:"",medium:"",large:"0 0.75rem 1.875rem 0 ".concat(pt(ll.greys.black,.15))},ul={primary:{shadow:fl.none,static:{bgd:ll.primary.main,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},hover:{bgd:ll.primary.dark,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},focus:{bgd:ll.primary.dark,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"0 0 0 0.25rem ".concat(ll.primary.darkest)},active:{bgd:ll.primary.darker,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},selected:{bgd:ll.primary.light,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},disabled:{bgd:ll.greys.grey80,border:"0.03125rem solid ".concat(pt(ll.greys.black,.4)),text:ll.greys.grey40,shadow:"none"}},secondary:{shadow:fl.none,static:{bgd:ll.greys.grey50,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.white,shadow:"none"},hover:{bgd:ll.greys.grey60,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.white,shadow:"none"},focus:{bgd:ll.greys.grey60,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.white,shadow:"0 0 0 0.25rem ".concat(ll.primary.lighter)},active:{bgd:ll.greys.grey70,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.white,shadow:"none"},selected:{bgd:ll.greys.grey60,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.white,shadow:"none"},disabled:{bgd:ll.greys.grey80,border:"0.03125rem solid ".concat(pt(ll.greys.black,.6)),text:ll.greys.grey40,shadow:"none"}},icon:{shadow:fl.none,static:{bgd:"transparent",border:"0.03125rem solid transparent",text:ll.greys.grey20,shadow:"none"},hover:{bgd:ll.primary.dark,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},focus:{bgd:"transparent",border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"0 0 0 0.25rem ".concat(ll.primary.darker)},active:{bgd:ll.primary.darker,border:"0.03125rem solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},selected:{bgd:ll.primary.light,border:"0 solid ".concat(ll.greys.black),text:ll.greys.grey80,shadow:"none"},disabled:{bgd:"transparent",border:"none",text:ll.greys.grey40,shadow:"none"}}},hl={bgd:ll.greys.grey80,border:"0.03125rem solid ".concat(ll.greys.black),borderRadius:Wc.radii.default,fontColor:ll.greys.white,placeholder:ll.greys.grey50,shadow:"0 0.0625rem 0.0625rem 0 ".concat(pt(ll.greys.black,.1)),clearBg:ll.greys.white,focus:{bgd:ll.greys.white,border:"solid 0.03125rem ".concat(ll.primary.main),shadow:"0 0 0 0.125rem ".concat(ll.primary.lighter)},error:{border:"0.03125rem solid ".concat(ll.error.primary),fontColor:ll.error.primary,shadow:"0 0 0 0.125rem ".concat(ll.error.light)},checked:{bgd:ll.primary.main,border:"solid 0.03125rem ".concat(ll.primary.dark),fontColor:ll.greys.grey80,shadow:"inset 0 0.03125rem 0 0 ".concat(pt(ll.greys.white,.1))}},ml={bgd:ll.greys.grey80,text:ll.greys.white,wrapperBgd:pt(ll.greys.grey60,.9),titleSize:Wc.fontSizes.h5.fontSize,titleWeight:"normal",shadow:"0 1rem 2rem 0 rgba(0, 0, 0, ".concat(pt(ll.greys.black,.15),")"),border:ll.greys.black},gl={menuBgd:"".concat(pt(ll.greys.grey90,.85)),menuBorder:ll.greys.grey100,shadow:fl.large,itemBgd:"transparent",itemText:ll.greys.white,titleText:ll.greys.white,active:{itemBgd:ll.primary.dark,itemText:ll.greys.grey80},disabled:ll.greys.grey40,separator:ll.greys.grey100}
2,pl={shadow:fl.large,error:{text:ll.error.darker,closeButton:{text:ll.error.dark,hover:{bgd:ll.error.dark,text:ll.greys.white},active:{bgd:ll.error.darker,text:ll.greys.white}}},success:{text:ll.success.darker,closeButton:{text:ll.success.dark,hover:{bgd:ll.success.dark,text:ll.greys.white},active:{bgd:ll.success.darker,text:ll.greys.white}}},info:{text:ll.info.darker,closeButton:{text:ll.info.dark,hover:{bgd:ll.info.dark,text:ll.greys.white},active:{bgd:ll.info.darker,text:ll.greys.white}}},warning:{text:ll.warning.darker,closeButton:{text:ll.warning.dark,hover:{bgd:ll.warning.dark,text:ll.greys.white},active:{bgd:ll.warning.darker,text:ll.greys.white}}}},vl={fontColor:ll.primary.main,fontColorHover:ll.primary.dark,fontColorActive:ll.primary.darker,fontColorVisited:ll.primary.darkest},bl={text:ll.greys.grey20,shadow:fl.large,bgd:ll.greys.grey100,border:"none",opacity:1,selected:{text:ul.primary.selected.text,bgd:ul.primary.selected.bgd}},yl={title:ll.greys.white,primaryText:ll.greys.white,secondaryText:ll.greys.grey20,headerBorder:ll.greys.black,containerBorder:ll.greys.black,bgd:ll.greys.grey100,fgd:ll.greys.grey60,shadow:fl.large,maxWidth:"18.5rem"},wl={text:ll.greys.white,bgd:ll.greys.grey100,headerBorder:ll.greys.black,wrapperBgd:pt(ll.greys.grey60,.9)},xl={bgd:ll.greys.grey90},Al={incoming:{bgd:ll.greys.grey80,fontColor:ll.greys.grey30,linkColor:ll.primary.main,linkColorHover:ll.primary.dark,linkColorActive:ll.primary.darker,linkColorVisited:ll.primary.darkest},outgoing:{bgd:ll.primary.dark,fontColor:ll.greys.grey70,linkColor:ll.greys.grey80,linkColorHover:ll.greys.grey70,linkColorActive:ll.greys.grey60,linkColorVisited:ll.greys.grey50},container:{fontColor:ll.greys.grey30,bgd:ll.greys.black}},Sl={size:{fontColor:ll.greys.grey30,bgd:ll.greys.grey10,letterSpacing:"-0.07px",lineHight:"16px",fontSize:"10.4px"},icon:{bgd:ll.greys.grey40,color:ll.greys.grey10},name:{fontColor:ll.greys.white},content:{letterSpacing:"-0.09px",bgd:ll.greys.grey60,fontColor:ll.greys.white}},kl={bgd:ll.greys.grey80,fontColor:ll.greys.grey10,border:"1px solid transparent",active:{bgd:ll.primary.dark,fontColor:ll.greys.grey70},hover:{bgd:ll.greys.grey70},focus:{border:"1px solid ".concat(ll.primary.dark),selectedBorder:"1px solid ".concat(ll.greys.grey70)},selected:{bgd:ll.primary.light,fontColor:ll.greys.grey70},iconButton:{activeBgd:ll.greys.grey80}},Cl={bgd:ll.greys.grey10,fontColor:ll.greys.grey80},Ol=Object.assign({name:"Dark Theme",buttons:ul,colors:ll,globalStyle:dl,links:vl,shadows:fl,inputs:hl,modal:ml,popOver:gl,notification:pl,controlBar:bl,roster:yl,navbar:wl,videoGrid:xl,chatBubble:Al,channelList:kl,chatDateHeader:Cl,messageAttachment:Sl},Wc),jl=(0,l.AH)(at||(at=(0,s.A)(["\n /* http://meyerweb.com/eric/tools/css/reset/\n v2.0 | 20110126\n License: none (public domain)\n */\n\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol,\n ul {\n list-style: none;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n"])));(0,l.DU)(st||(st=(0,s.A)(["\n ",";\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html {\n font-size: ",";\n font-family: ",";;\n background-color: ",";\n color: ",";\n min-height: 100%;\n }\n"])),jl,e=>e.theme.fontSizes.baseFontSize,e=>e.theme.fonts.body,e=>e.theme.globalStyle.bgd,e=>e.theme.globalStyle.text)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.