PageSourceSearch

https://www.100ms.live/docs/_next/static/chunks/1161-7d95b0a58e980f80.js

js 100ms.live collected 2026-09-24 17:09:33 UTC 44,478 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1161],{7894:function(e,t,r){r.d(t,{v:function(){return n}});var n={Web:"/api-reference/javascript/v2/home/content",Android:"/api-reference/android/v2/index.html","React Native":"/api-reference/react-native/v2/modules.html",Flutter:"https://pub.dev/documentation/hmssdk_flutter/latest/hmssdk_flutter/hmssdk_flutter-library.html",iOS:[{name:"HMSSDK",link:"/api-reference/ios/v2/documentation/hmssdk"},{name:"HMSRoomModels SDK",link:"/api-reference/ios/HMSRoomModelsSDK/documentation/hmsroommodels/hmsroommodel"}]}},1161:function(e,t,r){r.d(t,{Z:function(){return de}});var n=r(6042),i=r(9396),o=r(9534),s=r(5893),c=r(7294),a=r(1163),l=r(3611),d=r(2574),u=r(8821),f=r(4237),p=r(2693),h=r(5431),x=r(5879),m=r(6083),v=r(4601),g=r(7894),j="Flutter",y="iOS",k="Android",w="Web",b="React Native",$=r(828),_=r(5675),R=r.n(_),S=r(9095),C=r(6063),E=r(4171),L=r(290),Z=r.n(L),F=r(4575),M=r(8810),H=r(4793),N=r(4859),I=function(e){var t=e.text,r=e.css,i=void 0===r?{}:r;return t?(0,s.jsx)(m.x,{variant:"xs",css:(0,n.Z)({backgroundColor:"$surfaceLighter",borderRadius:"$0",whiteSpace:"nowrap",color:"$textPrimary",fontWeight:"$semiBold",px:"$xs",py:"$2"},i),children:t}):null},O=r(1689),D=function(e){var t=e.onClick,r=e.innerContent,n=e.isActive;return(0,s.jsx)(x.k,{align:"center",justify:"center",onClick:t,css:{cursor:"pointer"},children:"string"===typeof r?(0,s.jsx)(m.x,{variant:"sm",css:{padding:"$2 $6",color:"$textHighEmp",border:n?"1px solid $borderAccent":"1px solid $borderLighter",backgroundColor:n?"$primaryDark":"$surfaceDefault",borderRadius:"$0",fontWeight:"$semiBold","&:hover":{backgroundColor:n?"$primaryDefault":"$surfaceLight"}},children:r}):r})},P=r(9815),W=r(9405),z=r(5220),T=r(9468),A=r(1448),B=r(2891),G=function(e){var t=e.openFilter,r=e.setOpenFilter,n=e.platformFilter,i=e.setPlatformFilter,o=e.ALL_PLATFORMS,a=[{name:o,key:"all-platforms",icon:(0,s.jsx)(W.default,{})}].concat((0,P.Z)(A.D)),l=(0,c.useRef)(null),d=(0,c.useRef)(null);return(0,E.Z)(l,(function(){r(!1),null===d||void 0===d||d.current.blur()})),(0,s.jsx)(C.x,{ref:l,children:(0,s.jsxs)(T.R,{value:n,onChange:function(e){B.G.track("platform.changed",{title:document.title,referrer:document.referrer,path:window.location.hostname,pathname:window.location.pathname,href:window.location.href,platformSelected:e.name}),i(e.name),r(!1),null===d||void 0===d||d.current.blur()},children:[(0,s.jsx)(T.R.Button,{onFocusCapture:function(){return null===d||void 0===d?void 0:d.current.blur()},ref:d,className:"filter-dropdown",children:(0,s.jsx)(D,{innerContent:(0,s.jsxs)(m.x,{variant:"sm",css:{padding:"$2 $6",color:"$textHighEmp",whiteSpace:"nowrap",border:"1px solid $primaryDefault",backgroundColor:t?"$primaryDisabled":"$primaryDark",borderRadius:"$0",display:"flex",fontWeight:"$semiBold",alignItems:"center","&:hover":{backgroundColor:t?"$primaryDisabled":"$primaryDefault"}},children:[(0,v.YY)(n||o),(0,s.jsx)(z.default,{height:16,width:16,style:{marginLeft:"4px",transform:t?"rotate(180deg)":"none"}})]}),isActive:t,onClick:function(){r((function(e){return!e}))}})}),(0,s.jsx)(T.R.Options,{className:"dropdown-options filter-options",children:a.map((function(e){return(0,s.jsxs)(T.R.Option,{value:e,className:function(e){var t=e.active;return"".concat(t?"dropdown-option dropdown-option-active":"dropdown-option")},children:[null===e||void 0===e?void 0:e.icon,(0,s.jsx)(m.x,{variant:"sm",css:{marginLeft:"$md",color:"$textHighEmp"},children:(0,v.YY)(null===e||void 0===e?void 0:e.name)})]},null===e||void 0===e?void 0:e.name)}))})]})})},U=Z()("5UAX3T19GE","90f21d17f2383ec35e4ada7779792adf"),Y="All Platforms",q="All Types",Q=["All Types","Guide","Get started","FAQ","API Reference"],K=[{title:"to navigate",content:[(0,s.jsx)(S.default,{height:16,width:16,style:{transform:"rotate(-90deg)"}},"arrowUpSearchIcon"),(0,s.jsx)(S.default,{height:16,width:16,style:{transform:"rotate(90deg)"}},"arrowDownSearchIcon")]},{title:"to select",content:[(0,s.jsx)("span",{style:{fontSize:"14px",height:"16px",padding:"2px",paddingTop:"1px"},children:"\u23ce"},"select")]},{title:"to close",content:["esc"]}],J=function(e){var t,r,n=e.searchResult,i=n.link.replace(/-/g," ").split("/").slice(3);return(0,s.jsxs)(C.x,{css:{maxWidth:"100%",pl:"$lg",pr:"$xs"},children:[(0,s.jsxs)(x.k,{align:"start",css:{flexDirection:"row",justifyContent:"space-between","@md":{flexDirection:"column-reverse",justifyContent:"flex-start"}},children:[(0,s.jsx)(m.x,{css:{color:"$textHighEmp",fontWeight:"$semiBold"},children:n.title}),(0,s.jsxs)(x.k,{align:"center",gap:"2",children:[(0,s.jsx)(I,{text:n.platformName}),(0,s.jsx)(I,{text:n.type})]})]}),(0,s.jsx)(m.x,{variant:"xs",css:{color:"var(--docs_search_result_breadcrumb)",display:"flex",flexWrap:"wrap",alignItems:"center",mt:"$1",mb:"$xs"},children:i.map((function(e,t){return(0,s.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[0===t?"":"\xa0",t===i.length-1?(0,v.QF)(e.split("#")[0]):"".concat((0,v.QF)(e)," >")]},e)}))}),(0,s.jsx)(m.x,{variant:"sm",css:{fontSize:"13px",color:"$textMedEmp"},dangerouslySetInnerHTML:{__html:"".concat(null===(t=n._snippetResult)||void 0===t||null===(r=t.content)||void 0===r?void 0:r.value)}})]})},V=(0,F.Z)((function(e){var t=e.refine,r=e.setSearchTerm,n=e.searchTerm,i=(0,c.useRef)(null);return(0,c.useEffect)((function(){setTimeout((function(){return(null===i||void 0===i?void 0:i.current)&&i.current.focus()}),0)}),[]),(0,c.useEffect)((function(){var e=setTimeout((function(){return t(n)}),400);return function(){return clearTimeout(e)}}),[n]),(0,s.jsxs)(x.k,{align:"center",css:{color:"$textHighEmp",bg:"$surfaceDefault",padding:"12px 16px",border:"2.5px solid $primaryDefault",borderRadius:"0.5rem",margin:"0 auto",height:"20px"},onClick:function(e){return e.stopPropagation()},children:[(0,s.jsx)(l.default,{style:{color:"inherit",height:"30px",width:"30px"}}),(0,s.jsx)("input",{placeholder:"Search 100ms documentation",value:n,onChange:function(e){r(e.target.value)},ref:i,type:"text",style:{marginLeft:"13px",backgroundColor:"inherit",outline:"none",border:"none",height:"24px",width:"100%",fontWeight:"500",fontSize:"15px"}})]})})),X=(0,M.Z)((function(e){var t=e.hits,r=e.setModal,n=e.searchTerm,i=e.setHitsCount,o=e.activeResult,a=e.openFilter,l=e.setOpenFilter,d=e.platformFilter,u=e.setPlatformFilter,f=e.typeFilter,p=e.setTypeFilter;return i((null===t||void 0===t?void 0:t.length)||0),o.current=-1,(0,c.useEffect)((function(){0===t.length&&B.G.track("no.results",{title:document.title,referrer:document.referrer,path:window.location.hostname,pathname:window.location.pathname,href:window.location.href,platformSelected:d,typeSelected:f,searchTerm:n||""})}),[t]),(0,s.jsxs)(C.x,{children:[(null===t||void 0===t?void 0:t.length)&&n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(re,{typeFilter:f,setTypeFilter:p,openFilter:a,setOpenFilter:l,setPlatformFilter:u,platformFilter:d}),(0,s.jsxs)(C.x,{css:{position:"relative",top:"$6",backgroundColor:"$surfaceDefault",border:"1px solid",borderColor:"$borderDefault",borderRadius:"$1",pt:"$2",pr:"$2"},children:[(0,s.jsx)(x.k,{gap:"4",justify:"between",css:{py:"$3",px:"$md",borderBottom:"1px solid $surfaceLight","@md":{display:"none"}},children:(0,s.jsxs)(m.x,{variant:"xs",css:{color:"$textMedEmp"},children:["Showing results for\xa0",d!==Y?d:"all platforms",f!==q?' under "'.concat(f,'s"'):""]})}),(0,s.jsx)(C.x,{css:{maxHeight:"60vh",overflow:"auto",maxWidth:"100%"},children:t.map((function(e,i){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.x,{id:"res-box-".concat(i),css:{"&:hover":{backgroundColor:"$surfaceLight !important"},maxWidth:"100%",py:"$8",borderRadius:"$0"},onClick:function(){B.G.track("docs.search.result.clicked",{totalNumberOfResults:null===t||void 0===t?void 0:t.length,textInSearch:n||"",rankOfSearchResult:i+1,locationOfSearchResult:e.link,referrer:document.referrer,path:window.location.hostname,pathname:window.location.pathname}),r(!1)},children:(0,s.jsx)(O.Z,{href:e.link,passHref:!0,children:(0,s.jsx)("a",{style:{color:"inherit",textDecoration:"none"},children:(0,s.jsx)(J,{searchResult:e})})})},e.link),(0,s.jsx)(C.x,{css:{backgroundColor:"$surfaceLight",w:"100%",h:"1px"}})]})}))}),(0,s.jsx)(x.k,{gap:"4",css:{py:"$4",px:"$md",boxShadow:"0 -32px 32px -8px var(--docs_search_result_shadow)",borderTop:"1px solid $surfaceLight","@md":{display:"none"}},children:K.map((function(e){return(0,s.jsx)(te,{title:e.title,content:e.content},e.title)}))})]})]}):null,0===(null===t||void 0===t?void 0:t.length)&&n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(re,{typeFilter:f,setTypeFilter:p,openFilter:a,setOpenFilter:l,setPlatformFilter:u,platformFilter:d}),(0,s.jsxs)(x.k,{justify:"center",align:"center",direction:"column",css:{position:"relative",top:"$6",py:"$12",backgroundColor:"$surfaceDefault",border:"1px solid",borderColor:"$borderDefault",borderRadius:"$1",px:"$4"},children:[(0,s.jsx)(R(),{alt:"No results",src:"/docs/frown.svg",height:48,width:48}),(0,s.jsxs)(m.x,{css:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:"$textDisabled",fontWeight:"$medium",mt:"$8"},children:[(0,s.jsx)("span",{children:"Couldn't find anything for"}),(0,s.jsxs)(m.x,{css:{fontWeight:"bold",color:"$textHighEmp",wordWrap:"break-word"},children:['\xa0"',n.slice(0,25),n.length>25?"...":"",'"']})]})]})]}):null]})})),ee=function(e){var t=e.setModal,r=c.useRef(null),n=(0,$.Z)(c.useState(""),2),i=n[0],o=n[1],a=(0,c.useRef)(-1),l=(0,c.useState)(0),d=l[0],u=l[1],f=(0,c.useState)(q),p=f[0],h=f[1],x=(0,c.useState)(Y),m=x[0],v=x[1],g=(0,c.useState)(!1),j=g[0],y=g[1];return(0,c.useEffect)((function(){var e=function(e){if("Enter"===e.code&&-1!==a.current){var t,r=null===(t=document.getElementById("res-box-".concat(a.current)))||void 0===t?void 0:t.children[0];r&&r.click()}if("ArrowUp"===e.code){if(e.preventDefault(),0===a.current){var n=document.getElementById("res-box-0");n&&(n.style.backgroundColor="var(--surface_default)")}else a.current-=1;var i=document.getElementById("res-box-".concat(a.current));null===i||void 0===i||i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),i&&(i.style.backgroundColor="var(--surface_light)",i.focus());var o=document.getElementById("res-box-".concat(a.current+1));o&&(o.style.backgroundColor="var(--surface_default)")}else if("ArrowDown"===e.code){if(e.preventDefault(),a.current>=d-1){var s=document.getElementById("res-box-".concat(d-1));s&&(s.style.backgroundColor="var(--surface_default)")}else a.current+=1;var c=document.getElementById("res-box-".concat(a.current));null===c||void 0===c||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),c&&(c.style.backgroundColor="var(--surface_light)",c.focus());var l=document.getElementById("res-box-".concat(a.current-1));l&&(l.style.backgroundColor="var(--surface_default)")}};return window&&window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[d,i]),(0,E.Z)(r,(function(){B.G.track("docs.search.dismissed",{textInSearch:i||"",totalNumberOfResults:d,referrer:document.referrer,path:window.location.hostname,pathname:window.location.pathname,href:window.location.href}),t(!1)})),(0,s.jsx)(C.x,{css:{boxSizing:"content-box",position:"fixed",left:"0",top:"0",height:"100vh",width:"100vw",bg:"rgba(0, 0, 0, 0.8)"},children:(0,s.jsx)("div",{className:"search-modal",style:{maxWidth:"600px",width:"80%",position:"absolute",top:"112px",left:"50%",height:"3rem",borderRadius:"0.5rem",transform:"translateX(-50%)",backgroundColor:"var(--gray1)"},ref:r,children:(0,s.jsxs)(H.Z,{searchClient:U,indexName:"main",children:[(0,s.jsx)(N.Z,{filters:ne(m,p)}),(0,s.jsx)(V,{setSearchTerm:o,searchTerm:i}),(0,s.jsx)(X,{openFilter:j,setOpenFilter:y,platformFilter:m,setPlatformFilter:v,typeFilter:p,setTypeFilter:h,setModal:t,searchTerm:i,setHitsCount:u,activeResult:a})]})})})},te=function(e){var t=e.title,r=e.content;return(0,s.jsxs)(x.k,{gap:"2",align:"center",children:[r.map((function(e){return(0,s.jsx)(x.k,{gap:"1",align:"center",justify:"center",css:{backgroundColor:"$surfaceLight",borderRadius:"$1",p:"$2",fontWeight:"$semiBold",color:"$textHighEmp",fontSize:"$xs"},children:e},e)})),(0,s.jsx)(m.x,{variant:"xs",css:{color:"$textMedEmp"},children:t})]})},re=function(e){var t=e.setTypeFilter,r=e.typeFilter,n=e.openFilter,i=e.setOpenFilter,o=e.setPlatformFilter,c=e.platformFilter;return(0,s.jsxs)(x.k,{justify:"between",gap:"2",css:{mt:"$6","@md":{justifyContent:"flex-end"}},children:[(0,s.jsx)(x.k,{css:{flexWrap:"wrap",gap:"$4","@md":{display:"none"}},children:Q.map((function(e){return(0,s.jsx)(D,{innerContent:e,onClick:function(){r===e?t(q):(B.G.track("type.changed",{title:document.title,referrer:document.referrer,path:window.location.hostname,pathname:window.location.pathname,href:window.location.href,typeSelected:e}),t(e))},isActive:r===e},e)}))}),(0,s.jsx)(G,{openFilter:n,setOpenFilter:i,setPlatformFilter:o,platformFilter:c,ALL_PLATFORMS:Y})]})},ne=function(e,t){return"".concat(e===Y?"NOT ":"",'platformName:"').concat(e,'" AND ').concat(t===q?"NOT ":"",'type:"').concat(t,'"')},ie=function(e){var t=e.children,r=e.activeClassName,l=e.className,d=void 0===l?"":l,u=(e.noHighlight,e.URLincludes),f=void 0===u?[]:u,p=e.URLexcludes,h=void 0===p?[]:p,x=e.onClick,m=void 0===x?function(){}:x,v=(0,o.Z)(e,["children","activeClassName","className","noHighlight","URLincludes","URLexcludes","onClick"]),g=(0,a.useRouter)(),j=g.asPath,y=g.isReady,k=(0,c.useState)(d),w=k[0],b=k[1];return(0,c.useEffect)((function(){if(y){var e,t=!1,n=window.location.href.split("?")[0].split("#")[0];f.length&&h.length?(e="",h.forEach((function(r){!1===t&&n.includes(r)&&(e=d,t=!0)})),!1===t&&(f.forEach((function(r){!1!==t||n.includes(r)||(t=!0,e=d)})),!1===t&&(e="".concat(d," ").concat(r).trim()))):e=n.includes(f[0])?"".concat(d," ").concat(r).trim():d,e!==w&&b(e)}}),[j,y,v.as,v.href,r,d,w]),(0,s.jsx)(O.Z,(0,i.Z)((0,n.Z)({},v),{children:(0,s.jsx)("a",{rel:"noreferrer",target:(null===v||void 0===v?void 0:v.target)||"_self",onClick:m,children:t(null!==w&&void 0!==w?w:"")})}))},oe=r(3993),se=function(e){var t=e.reference,r="string"===typeof t,n="API Reference",i=(0,c.useState)(!1),o=i[0],a=i[1];return r?(0,s.jsx)(oe.n,{text:n,reference:t,css:{p:"0",m:"0"}}):(0,s.jsxs)(C.x,{css:{position:"relative"},children:[(0,s.jsxs)(x.k,{onClick:function(){return a(!0)},justify:"between",align:"center",css:{w:"100%",cursor:"pointer",gap:"$3","&:hover":{opacity:"0.8"}},children:[(0,s.jsx)(m.x,{variant:"sm",children:n}),(0,s.jsx)(z.default,{height:16,width:16,style:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"}})]}),(0,s.jsx)(C.x,{onMouseLeave:function(){return a(!1)},css:{position:"absolute",maxHeight:o?"100vh":"0",overflow:"hidden",transition:"max-height 0.3s ease",bg:"$surfaceDefault",top:"$14",w:"$48",px:"$4",borderRadius:"$1"},children:t.map((function(e){return(0,s.jsx)(oe.n,{text:e.name,reference:e.link,css:{p:"$2"}},e.name)}))})]})},ce={height:"24px",width:"24px",color:"inherit"},ae={color:"$textMedEmp",display:"flex",alignItems:"center","&:hover":{color:"$primaryLight"}},le=function(e){var t=e.menuState,r=e.setModal,n=e.modal,i=e.showReference,o=void 0===i||i,$=e.showMobileMenu,_=void 0===$||$,R=(0,c.useState)(!1),S=R[0],C=R[1],E=(0,a.useRouter)(),L=t.menu,Z=t.setMenu,F=(0,h.Fg)(),M=F.toggleTheme,H=F.themeType;(0,c.useEffect)((function(){C(!0);var e="dark";document.documentElement.dataset.theme=e,H!==e&&M()}),[]);var N={"react-native":b,flutter:j,android:k,javascript:w,ios:y},I=g.v[null===N||void 0===N?void 0:N[function(){var e,t,r=["android","flutter","ios","javascript","react-native","server-side"],n="api-reference"===(null===(e=E.query.slug)||void 0===e?void 0:e[0])?E.query.slug[1]:null===(t=E.query.slug)||void 0===t?void 0:t[0];return r.includes(n||"")||(n=r.find((function(e){return E.asPath.toLowerCase().replace("-"," ").includes(e.toLowerCase().replace("_"," "))}))),n||"javascript"}()]],D=!I;return S?(0,s.jsxs)(x.k,{align:"center",justify:"between",css:{zIndex:200,position:"sticky",top:0,padding:"15px 40px",backgroundColor:"var(--docs_bg_header)",borderBottom:"1px solid var(--docs_border_default)",boxSizing:"border-box",gap:"40px","@md":{padding:"16px 24px"}},children:[(0,s.jsxs)(x.k,{align:"center",children:[(0,s.jsx)("a",{target:"_blank",rel:"noreferrer",onClick:function(){return B.G.track("link.clicked",{btnId:"logo.c
1licked",currentPage:window.location.href})},href:v.li,style:{marginRight:"32px",position:"relative",top:"4px"},children:(0,s.jsx)("img",{src:"/docs/logo-full.svg",height:24,alt:"100ms Logo"})}),(0,s.jsxs)(x.k,{css:{gap:"$12","@md":{display:"none"}},children:[(0,s.jsx)(ue,{onClick:function(){return B.G.track("link.clicked",{btnId:"docs.clicked",currentPage:window.location.href})},URLexcludes:["api-reference","/docs/examples"],URLincludes:["/docs"],href:"/",children:"Docs"}),(0,s.jsx)(ue,{onClick:function(){return B.G.track("link.clicked",{btnId:"examples.clicked",currentPage:window.location.href})},URLincludes:["/docs/examples"],href:"/examples",children:"Examples"}),!D&&o?(0,s.jsx)(se,{reference:I}):null]})]}),(0,s.jsxs)(x.k,{align:"center",css:{color:"$textMedEmp",gap:"$12","@lg":{gap:"20px"},"@md":{gap:"20px"}},children:[(0,s.jsx)(x.k,{onClick:function(){return r(!0)},css:{color:"$textHighEmp",display:"none","@md":{display:"flex"}},children:(0,s.jsx)(l.default,{style:ce})}),(0,s.jsxs)(x.k,{align:"center",className:"hide-before-768",css:{gap:"$12"},children:[(0,s.jsxs)(ue,{noHighlight:!0,target:"_blank",onClick:function(){return B.G.track("link.clicked",{btnId:"100ms.live.clicked",currentPage:window.location.href})},href:v.li,children:["100ms.live",(0,s.jsx)(d.default,{height:12,width:12,style:{marginLeft:"4px"}})]}),(0,s.jsx)(ue,{noHighlight:!0,target:"_blank",onClick:function(){return B.G.track("link.clicked",{btnId:"sales.clicked",currentPage:window.location.href})},href:v.vg,children:"Talk to Sales"}),(0,s.jsx)(ue,{noHighlight:!0,target:"_blank",onClick:function(){return B.G.track("link.clicked",{btnId:"dashboard.clicked",currentPage:window.location.href})},href:v.Kr,children:"Dashboard"}),(0,s.jsx)(O.Z,{href:v.XQ,children:(0,s.jsx)("a",{target:"_blank",rel:"noreferrer",onClick:function(){return B.G.track("link.clicked",{btnId:"github.clicked",currentPage:window.location.href})},children:(0,s.jsx)(m.x,{css:ae,children:(0,s.jsx)(u.default,{style:ce})})})})]}),(0,s.jsx)(x.k,{align:"center",css:{display:"none","@md":{display:"flex"}},children:_&&(0,s.jsx)(x.k,{css:{color:"$textHighEmp"},onClick:function(){return Z((function(e){return!e}))},children:L?(0,s.jsx)(f.default,{style:ce}):(0,s.jsx)(p.default,{style:ce})})})]}),n?(0,s.jsx)(ee,{setModal:r}):null]}):null};le.defaultProps={showMobileMenu:!0,showReference:!0};var de=le,ue=function(e){var t=e.children,r=e.noHighlight,c=(0,o.Z)(e,["children","noHighlight"]);return(0,s.jsx)(ie,(0,i.Z)((0,n.Z)({activeClassName:r?"":"docs-link-active",passHref:!0},c),{children:function(e){return(0,s.jsx)(m.x,{as:"a",variant:"sm",className:e,css:{boxSizing:"border-box",fontWeight:400,display:"flex",alignItems:"center",gap:"$2",color:"$textMedEmp","&:hover":{opacity:"initial"},"&:not(.docs-link-active):hover":{color:"$textHighEmp",backgroundColor:"$surfaceLight",padding:"$2 $4",margin:"-$2 -$4",borderRadius:"$0"},"&.docs-link-active":{color:"$textHighEmp",fontWeight:"600",textDecoration:"underline",textUnderlineOffset:"6px",textDecorationThickness:"2px",textDecorationColor:"$primaryLight"}},children:t})}}))}},3993:function(e,t,r){r.d(t,{n:function(){return c}});var n=r(6042),i=r(5893),o=r(1689),s=r(6083),c=function(e){var t=e.reference,r=e.text,c=e.css,a=void 0===c?{}:c;return(0,i.jsx)(o.Z,{passHref:!0,href:t,children:(0,i.jsx)(s.x,{as:"a",variant:"sm",css:(0,n.Z)({pl:"$12",my:"$8",color:"var(--docs_text_primary)",display:"block"},a),children:r})})}},1448:function(e,t,r){r.d(t,{Z:function(){return K},D:function(){return X}});var n=r(6042),i=r(9396),o=r(9534),s=r(828),c=r(5893),a=r(7294),l=r(1163);var d=function(e){return(0,c.jsxs)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128"},e),{children:[(0,c.jsx)("g",{fill:"var(--docs_text_primary)",children:(0,c.jsx)("path",{d:"M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"})}),(0,c.jsx)("path",{fill:"var(--docs_text_primary)",d:"M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"}),(0,c.jsx)("path",{fill:"var(--docs_text_primary)",d:"M115.7 128L81.6 93.9l-20 19.2L76.3 128z"}),(0,c.jsxs)("linearGradient",{id:"prefix__a",gradientUnits:"userSpaceOnUse",x1:59.365,y1:116.36,x2:86.825,y2:99.399,children:[(0,c.jsx)("stop",{offset:0,stopColor:"var(--docs_text_primary)"}),(0,c.jsx)("stop",{offset:.63,stopColor:"var(--docs_text_primary)"}),(0,c.jsx)("stop",{offset:1,stopColor:"var(--docs_text_primary)"})]}),(0,c.jsx)("path",{fill:"url(#prefix__a)",d:"M61.6 113.1l30.8-8.4-10.8-10.8z"})]}))};var u=function(e){return(0,c.jsx)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",viewBox:"0 0 412 412",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,style:{fill:"var(--docs_text_primary)"}},e),{children:(0,c.jsx)("path",{d:"M67.595 138.372c-13.043-.007-23.613 10.59-23.617 23.622l.016 98.906c.004 13.078 10.58 23.632 23.626 23.629 13.052 0 23.626-10.555 23.613-23.626v-98.922c-.006-13.029-10.59-23.616-23.638-23.61m190.475-88.82l16.485-30.104
1c.878-1.573.302-3.575-1.29-4.466-1.61-.853-3.595-.274-4.448 1.31l-16.652 30.418c-14.011-6.236-29.692-9.73-46.284-9.714-16.546-.017-32.22 3.468-46.174 9.67l-16.672-30.342a3.253 3.253 0 00-4.434-1.307c-1.602.866-2.191 2.87-1.3 4.44l16.492 30.085c-32.404 16.71-54.3 48.536-54.28 85.075l212.762-.025c.01-36.527-21.846-68.288-54.205-85.04M157.49 96.072c-4.894-.01-8.89-3.993-8.89-8.917 0-4.9 3.983-8.93 8.9-8.926 4.933-.003 8.923 4.025 8.93 8.926.003 4.917-3.997 8.914-8.94 8.917m96.882-.02c-4.917.007-8.92-3.98-8.92-8.916.02-4.891 3.997-8.92 8.923-8.94 4.895.017 8.908 4.049 8.904 8.943.007 4.927-3.993 8.917-8.907 8.914m-153.99 46.782l.035 153.285c-.01 13.943 11.27 25.2 25.203 25.2l17.161.006.02 52.336c-.004 13.032 10.59 23.626 23.603 23.626 13.052 0 23.626-10.603 23.63-23.642l-.014-52.323 31.887-.01.013 52.333c0 13.023 10.596 23.639 23.613 23.613 13.051.01 23.632-10.594 23.629-23.632l-.016-52.32 17.222-.013c13.901.006 25.21-11.263 25.216-25.21l-.03-153.285-211.172.036zM367.9 161.959c-.003-13.049-10.574-23.623-23.622-23.616-13.043-.013-23.61 10.577-23.61 23.625l.02 98.913c-.004 13.058 10.563 23.613 23.615 23.616 13.046-.003 23.61-10.558 23.613-23.63l-.016-98.908z",fillRule:"nonzero"})}))};var f=function(e){return(0,c.jsx)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",viewBox:"0 0 374 374",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2},e),{children:(0,c.jsx)("path",{d:"M285.771 198.131c.508 54.874 48.143 73.137 48.669 73.37-.403 1.285-7.61 26.025-25.093 51.573-15.114 22.09-30.803 44.098-55.511 44.56-24.279.443-32.087-14.402-59.848-14.402-27.752 0-36.424 13.94-59.41 14.845-23.853.905-42.017-23.89-57.256-45.896-31.138-45.02-54.936-127.217-22.983-182.7 15.873-27.554 44.244-45 75.035-45.45 23.42-.446 45.528 15.756 59.845 15.756 14.308 0 41.173-19.486 69.416-16.626 11.824.494 45.011 4.776 66.321 35.972-1.713 1.065-39.597 23.12-39.185 68.998m-45.63-134.75c12.662-15.327 21.185-36.67 18.861-57.898-18.254.732-40.326 12.163-53.417 27.484-11.734 13.563-22.008 35.28-19.238 56.088 20.347 1.576 41.129-10.339 53.794-25.674",style:{fill:"var(--docs_text_primary)"},fillRule:"nonzero"})}))};var p=function(e){return(0,c.jsxs)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",style:{fill:"var(--docs_text_primary)"}},e),{children:[(0,c.jsx)("path",{fill:"",d:"M1.408 1.408h125.184v125.185H1.408z"}),(0,c.jsx)("path",{style:{fill:"var(--gray1)"},d:"M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"})]}))};var h=function(e){return(0,c.jsx)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",viewBox:"0 0 353 353",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,style:{fill:"var(--docs_text_primary)"}},e),{children:(0,c.jsxs)("g",{transform:"translate(.002 -.002) scale(2.75453)",children:[(0,c.jsx)("circle",{cx:64,cy:64,r:11.4}),(0,c.jsx)("path",{d:"M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3C8.2 50 1.4 56.6 1.4 64s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8zM92.5 14.7c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9zM81.3 74c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4-2.2-3.2-4.2-6.4-6-9.6-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4 2.2 3.2 4.2 6.4 6 9.6 1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10zm8.3-3.3
1c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2zM64 97.8c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2 2.3 0 4.6-.1 6.9-.2-2.2 2.9-4.5 5.7-6.9 8.3zm-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1zm-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2zM64 30.2c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2-2.3 0-4.6.1-6.9.2 2.2-2.9 4.5-5.7 6.9-8.3zm22.2 21l-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2zM31.7 35c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6zM7 64c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5C15.3 75.6 7 69.6 7 64zm28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9zM96.3 93c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6zm9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4z",fillRule:"nonzero"})]})}))};var x=function(e){return(0,c.jsxs)("svg",(0,i.Z)((0,n.Z)({className:"svg-icon",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",style:{stroke:"var(--docs_text_primary)"}},e),{children:[(0,c.jsx)("rect",{x:2,y:2,width:20,height:8,rx:2,ry:2}),(0,c.jsx)("rect",{x:2,y:14,width:20,height:8,rx:2,ry:2}),(0,c.jsx)("path",{d:"M6 6h.01M6 18h.01"})]}))};function m(e){var t=function(t){t.key===e&&i(!0)},r=(0,a.useState)(!1),n=r[0],i=r[1],o=function(t){t.key===e&&i(!1)};return(0,a.useEffect)((function(){return window.addEventListener("keydown",t),window.addEventListener("keyup",o),function(){window.removeEventListener("keydown",t),window.removeEventListener("keyup",o)}}),[]),n}var v=r(1962),g=r(7881),j=r(2632),y=r(6996),k=r(6486),w=r(3174),b=r(4777),$=r(7977),_=r(1082),R=r(5392),S=r(5220),C=r(3611),E=r(9468),L=r(6063),Z=r(5879),F=r(6083),M=r(4601),H=r(2891),N=r(9815),I=r(1689),O=r(1616),D=function(e){var t=e.route,r=e.index,n=e.asPath,i=e.activeItem,o=n.split("#")[0]===t.url;return(0,c.jsx)(I.Z,{prefetch:!1,href:t.url||"",children:(0,c.jsxs)("a",{className:"opaque-link",ref:o?i:null,
1style:{cursor:"pointer",padding:"0.25rem 0",color:o?"var(--docs_text_primary)":"var(--docs_text_secondary)",fontWeight:o?"500":"400",fontSize:"14px",borderLeft:o?"2px solid var(--primary_light)":"2px solid var(--docs_border_strong)",display:"flex",alignItems:"flex-start",paddingLeft:"1rem",marginLeft:"-1px"},children:[(0,c.jsx)(O.default,{style:{width:"12px",height:"12px",marginTop:".25rem",minWidth:"12px",marginRight:"0.625rem"}}),t.title]})},"".concat(t.url,"-").concat(r))},P=function(e){var t=e.value,r=e.index,n=e.children,i=e.nested,o=void 0!==i&&i,d=(0,l.useRouter)(),u=d.asPath,f=d.query.slug,p=(0,a.useRef)(null),h=(0,a.useState)(!1),x=h[0],m=h[1],v=(0,a.useState)(!1),g=v[0],j=v[1];return(0,a.useEffect)((function(){if(window){var e=(0,M.cH)();x&&(e.push(t),(0,M.ZF)(e))}}),[x,t,f]),(0,a.useEffect)((function(){(0,M.cH)().includes(t)&&m(!0)}),[t]),(0,a.useEffect)((function(){var e=(null===f||void 0===f?void 0:f.includes(t))||!1;j(e),m(e)}),[f]),(0,a.useEffect)((function(){setTimeout((function(){(null===p||void 0===p?void 0:p.current)&&p.current.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}),0)}),[p]),(0,c.jsxs)("section",{className:"sidebar-section",style:{margin:o?"0 0 0 0.95rem":"0px 0px 8px 0px",borderLeft:o?"2px solid var(--docs_border_strong":"none"},children:[(0,c.jsxs)(Z.k,{onClick:function(){m((function(e){var r=(0,M.cH)(),n=(0,N.Z)(new Set(!1===e||g?(0,N.Z)(r).concat([t]):r.filter((function(e){return e!==t}))));return(0,M.ZF)(n),!e}))},css:{padding:"0 0 0.25rem 1rem",paddingLeft:o?"16px":"0px",paddingTop:o?"4px":"8px",margin:"0",cursor:"pointer",borderRadius:"$0",color:g?"var(--docs_text_primary)":"var(--docs_text_secondary)","&:hover":{color:"$textHighEmp"}},children:[(0,c.jsx)(w.default,{style:{height:"16px",width:"14px",minWidth:"14px",marginRight:"0.5rem",marginTop:"0.25rem",transition:"all 0.2s ease",transform:x?"rotateZ(90deg)":""}}),(0,c.jsx)(F.x,{css:{color:"inherit",fontWeight:x?"600":"400",fontSize:o?"14px":"15px"},children:(0,M.QF)(t)})]}),(0,c.jsx)("div",{className:"accordion-content ".concat(x?"active-acc":""),children:Object.entries(n).map((function(e,t){var n=(0,s.Z)(e,2),i=n[0],o=n[1];return Object.prototype.hasOwnProperty.call(o,"title")?(0,c.jsx)(D,{asPath:u,route:o,activeItem:p,index:r},"".concat(o.title,"-").concat(t,"-item")):(0,c.jsx)(P,{index:r,value:i,nested:!0,children:o},"".concat(o.title,"-").concat(t,"-title"))}))})]},"".concat(t,"-").concat(r))},W=P,z=function(e){var t=e.dataObj,r=window&&window.location.href.includes(t.url);return(0,c.jsx)(I.Z,{prefetch:!1,href:t.url||"",children:(0,c.jsxs)("a",{className:"opaque-link",style:{cursor:"pointer",padding:"0.25rem 0",color:r?"var(--docs_text_primary)":"var(--docs_text_secondary)",fontWeight:r?"500":"400",fontSize:"15px",display:"flex",alignItems:"flex-start"},children:[(0,c.jsx)(O.default,{style:{width:"12px",height:"12px",marginTop:".25rem",minWidth:"12px",marginRight:"0.625rem"}}),t.title]})},"".concat(t.url,"-rel-notes"))},T=r(3993),A=function(e){var t=e.reference,r="string"===typeof t,n="API Reference",i=(0,a.useState)(!1),o=i[0],s=i[1];return r?(0,c.jsx)(T.n,{reference:t,text:n}):(0,c.jsxs)(L.x,{children:[(0,c.jsxs)(Z.k,{justify:"between",align:"center",css:{w:"100%",pl:"$12",cursor:"pointer","&:hover":{opacity:"0.8"}},onClick:function(){return s((function(e){return!e}))},children:[(0,c.jsx)(F.x,{variant:"sm",children:n}),(0,c.jsx)(S.default,{style:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"}})]}),(0,c.jsx)(L.x,{css:{maxHeight:o?"100vh":"0",overflow:"hidden",transition:"max-height 0.4s ease",pl:"$4"},children:t.map((function(e){return(0,c.jsx)(T.n,{reference:e.link,text:e.name},e.link)}))})]})},B=r(7894),G=function(e){var t=null===e||void 0===e?void 0:e[Object.keys(e)[0]];return(null===t||void 0===t?void 0:t.url)?t.url:"object"===typeof t?G(t):void 0},U=function(e){var t=e.title,r=e.icon,n=e.data,i=e.openPlatformAccordion,o=e.setOpenPlatformAccordion,s=e.id,l=(0,a.useState)(!1),d=l[0],u=l[1];return(0,a.useEffect)((function(){i!==s&&u(!1)})),(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{onClick:function(){u((function(e){return!e})),o(s)},className:"plat-accordion",style:{minWidth:"240px",width:"100%"},children:[(0,c.jsxs)(Z.k,{gap:"2",children:[(0,c.jsx)(Z.k,{css:{color:"$primaryLight"},children:r}),(0,c.jsx)(F.x,{css:{color:"$textHighEmp",fontWeight:"$semiBold"},children:t})]}),(0,c.jsx)(Z.k,{css:{color:d?"$textMedEmp":"$textHighEmp"},children:(0,c.jsx)(S.default,{style:{color:"inherit",transition:"all 0.3s ease",transform:d?"rotateZ(-180deg)":""}}
1)})]}),(0,c.jsxs)("div",{className:"plat-accordion-content ".concat(d?"active-plat-accordion":""),children:[Object.keys(n.v2).map((function(e){return(0,c.jsx)(I.Z,{passHref:!0,href:"".concat(G(n.v2[e])),children:(0,c.jsx)(F.x,{as:"a",variant:"sm",css:{pl:"$12",my:"$8",color:"var(--docs_text_primary)",display:"block"},children:(0,M.QF)(e)})},"".concat(t,"-").concat(e))})),"Server side"!==t?(0,c.jsx)(A,{reference:B.v[t]}):null]})]})},Y={height:"24px",width:"24px",color:"inherit"},q=[{text:"Web",icon:(0,c.jsx)(v.default,{style:Y}),key:"javascript"},{text:"Android",icon:(0,c.jsx)(g.default,{style:Y}),key:"android"},{text:"iOS",icon:(0,c.jsx)(j.default,{style:Y}),key:"ios"},{text:"Flutter",icon:(0,c.jsx)(y.default,{style:Y}),key:"flutter"},{text:"React Native",icon:(0,c.jsx)(k.default,{style:Y}),key:"react-native"}],Q=["javascript","android","ios","flutter","react-native","server-side"],K=function(e){var t=e.menuState,r=e.nav,i=e.allNav,d=e.css,u=void 0===d?{}:d,f=e.setModal,p=e.hideOnDesktop,h=void 0!==p&&p,v=e.hideBorder,g=void 0===v||v,j=e.baseViewOnly,y=void 0===j||j,k=(0,l.useRouter)(),C=k.query.slug,N=t.menu,O=t.setMenu,D=m("Escape"),P=m("/"),T=(0,a.useState)(!1),A=T[0],B=T[1],G=(0,a.useState)(Q[0]),K=G[0],V=G[1],ee=(0,a.useState)(0),te=ee[0],re=ee[1];(0,a.useEffect)((function(){D&&f(!1)}),[D]),(0,a.useEffect)((function(){P&&f(!0)}),[P]),(0,a.useEffect)((function(){te&&f((function(e){return!e}))}),[te]),(0,a.useEffect)((function(){O(!1)}),[k]);var ne=(0,a.useState)(y),ie=ne[0],oe=ne[1];(0,a.useEffect)((function(){B(!0)}),[]),(0,a.useEffect)((function(){window&&"/docs"!==window.location.pathname&&oe(!1)}),[C]);var se=!1;if(!y&&C){var ce=(0,s.Z)(C,1)[0];if(Object.keys(r).length){var ae=r[ce];"v1"!==C[0]&&"v2"!==C[0]?(null===C||void 0===C?void 0:C.length)>3&&(se=ae[C[1]],"api-reference"===C[0]&&(se=ae[C[1]][C[2]])):se=ae}}else se=!1;var le=!["get-started","prebuilt"].includes(null===C||void 0===C?void 0:C[0]),de=X.findIndex((function(e){return e.key===(null===C||void 0===C?void 0:C[0])}));"api-reference"===(null===C||void 0===C?void 0:C[0])&&(de=X.findIndex((function(e){return e.key===(null===C||void 0===C?void 0:C[1])}))),de=-1===de?0:de;var ue=(0,a.useState)(X[de]),fe=ue[0],pe=ue[1];(0,a.useEffect)((function(){return pe(X[de])}),[de]);var he=(0,a.useRef)(null),xe=u["@md"],me=(0,o.Z)(u,["@md"]);return(0,c.jsxs)(L.x,{ref:he,className:"hide-scrollbar",css:(0,n.Z)({minWidth:"310px",display:h&&!N?"none":"flex",flexDirection:"column",alignItems:"stretch",height:"calc(100vh - 64px)",overflowY:"auto",borderRight:g?"none":"1px solid",borderColor:g?"none":"$borderDefault",overscrollBehavior:"none","@md":(0,n.Z)({position:"absolute",top:"0",display:N?"flex":"none",height:"100vh",width:"100%"},null!==xe&&void 0!==xe?xe:{}),"@sm":{w:"100%"}},me),children:[(0,c.jsxs)("div",{className:"page ".concat(ie?"active-page":""),style:{position:N?"initial":"sticky",top:"16px"},children:[y?(0,c.jsx)("div",{children:(0,c.jsx)(L.x,{css:{pt:"32px"}})}):(0,c.jsxs)(Z.k,{align:"center",gap:"1",css:{color:"$primaryLight",mt:"$8",pt:"0",mb:"$8",cursor:"pointer","@md":{pt:"65px"}},onClick:function(){return oe(!1)},children:[(0,c.jsx)(F.x,{variant:"sm",css:{color:"$primaryLight"},children:le?"Explore ".concat((0,M.YY)(fe.name)):"Getting started"}),(0,c.jsx)(w.default,{height:"16px",width:"16px"})]}),(0,c.jsx)(L.x,{css:{display:"block",margin:"0",marginBottom:"$12","@md":{display:"none"}},children:(0,c.jsx)(J,{setHelperState:re})}),(0,c.jsx)(I.Z,{passHref:!0,href:"/get-started/v2/get-started/overview",children:(0,c.jsxs)(Z.k,{as:"a",gap:"2",align:"center",css:{color:"$primaryLight"},children:[(0,c.jsx)(b.default,{style:{color:"inherit"}}),(0,c.jsx)(F.x,{as:"span",css:{fontWeight:"$semiBold",color:"$textHighEmp"},children:"Get started"})]})}),(0,c.jsx)(I.Z,{passHref:!0,href:"/prebuilt/v2/prebuilt/overview",children:(0,c.jsxs)(Z.k,{as:"a",gap:"2",align:"center",css:{color:"$primaryLight",mt:"$10"},children:[(0,c.jsx)($.default,{style:{color:"inherit"}}),(0,c.jsx)(F.x,{as:"span",css:{fontWeight:"$semiBold",color:"$textHighEmp"},children:"Prebuilt"})]})}),(0,c.jsx)(I.Z,{passHref:!0,href:"/examples",children:(0,c.jsxs)(Z.k,{as:"a",gap:"2",align:"center",css:{color:"$primaryLight",mt:"$10",display:"none","@md":{display:"flex"}},children:[(0,c.jsx)(_.default,{style:{color:"inherit"}}),(0,c.jsx)(F.x,{as:"span",css:{fontWeight:"$semiBold",color:"$textHighEmp"},children:"Examples"})]})}),(0,c.jsx)("hr",{style:{margin:"24px 0"}}),q.map((function(e){return(0,c.jsx)(U,{id:e.key,title:e.text,icon:e.icon,data:i[e.key],openPlatformAccordion:K,setOpenPlatformAccordion:V},e.text)})),(0,c.jsx)("hr",{style:{margin:"24px 0"}}),(0,c.jsx)(U,{id:"server-side",title:"Server side",icon:(0,c.jsx)(x,{style:Y}),data:i["server-side"],openPlatformAccordion:K,setOpenPlatformAccordion:V})]}),(0,c.jsx)("div",{className:"page ".concat(ie?"":"active-page"),children:A?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(L.x,{css:{position:"sticky",top:"0",pt:"32px",zIndex:"100",backgroundColor:"var(--docs_bg_content)","@md":{pt:"$18",top:"$12",backgroundColor:"var(--docs_bg_content)"}},children:[(0,c.jsxs)(Z.k,{align:"center",gap:"1",css:{color:"$primaryLight",mb:"$8",curs
1or:"pointer"},onClick:function(){oe(!0),H.G.track("btn.clicked",{btnId:"content.overview.clicked",currentPage:window.location.href}),he.current&&(null===he||void 0===he||he.current.scrollTo(0,0))},children:[(0,c.jsx)(R.default,{height:"16px",width:"16px"}),(0,c.jsx)(F.x,{variant:"sm",css:{color:"$primaryLight"},children:"Go back up"})]}),(0,c.jsx)(L.x,{css:{display:"block",margin:"0",marginBottom:"$md","@md":{display:"none"}},children:(0,c.jsx)(J,{setHelperState:re})}),le?(0,c.jsxs)("section",{style:{margin:"0px 0px 8px 0px",background:"var(--docs_bg_content)"},children:[(0,c.jsxs)(E.R,{value:fe,onChange:function(e){pe((function(t){return H.G.track("link.clicked",{btnId:"platform.switched",switchedTo:e.name,switchedFrom:t.name,currentPage:window.location.href}),e})),"api-reference"===C[0]?k.push(e.apiRef,void 0,{shallow:!1}):k.push(e.link,void 0,{shallow:!1})},children:[(0,c.jsxs)(E.R.Button,{className:"dropdown",style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"16px"},children:[(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"center"},children:[(0,c.jsx)(F.x,{variant:"xs",style:{color:"var(--docs_text_secondary)"},children:"Platform Selected"}),(0,c.jsx)(F.x,{variant:"lg",style:{fontWeight:"bold"},children:(0,M.YY)(fe.name)})]}),(0,c.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,c.jsx)("div",{className:"dropdown-chevron-container",children:(0,c.jsx)(S.default,{className:"dropdown-chevron"})})})]}),(0,c.jsx)(E.R.Options,{className:"dropdown-options",children:X.map((function(e){return(0,c.jsxs)(E.R.Option,{value:e,className:function(e){var t=e.active;return"".concat(t?"dropdown-option dropdown-option-active":"dropdown-option")},children:[e.icon,(0,c.jsx)("span",{children:(0,M.YY)(e.name)})]},e.link)}))})]}),(0,c.jsx)("hr",{style:{width:"100%",margin:"16px 0px"}}),(0,c.jsx)(L.x,{css:{position:"absolute",top:"185px",width:"100%",height:"16px",boxShadow:"0 8px 8px 0.25rem rgba(8, 9, 12, 0.8)","@md":{display:"none"}}})]}):null]}),se?Object.entries(se).map((function(e,t){var r=(0,s.Z)(e,2),n=r[0],i=r[1];return(null===i||void 0===i?void 0:i["release-notes"])?(0,c.jsx)(z,{dataObj:i["release-notes"]},n):(0,c.jsx)(W,{value:n,index:t,nested:!1,children:i},"".concat(n,"-").concat(t,"-section"))})):null]}):null})]})},J=function(e){var t=e.setHelperState;return(0,c.jsxs)(Z.k,{align:"center",className:"docs-search-bar",onClick:function(){return t((function(e){return e+1}))},children:[(0,c.jsx)(C.default,{style:{width:"24px"}}),(0,c.jsx)(F.x,{as:"span",variant:"body2",css:{fontWeight:"$regular",flexGrow:"1"},children:"Search docs\u2026"}),(0,c.jsx)("span",{className:"hot-key",children:"/"})]})},V={height:"20px",width:"20px",fill:"var(--docs_text_primary)"},X=[{link:"/android/v2/get-started/quickstart",name:"Android",key:"android",icon:(0,c.jsx)(u,{style:V}),apiRef:"/api-reference/android/v2/index.html"},{link:"/ios/v2/guides/quickstart",name:"iOS",key:"ios",icon:(0,c.jsx)(f,{style:V}),apiRef:"/api-reference/ios/v2/documentation/hmssdk"},{link:"/javascript/v2/get-started/javascript-quickstart",name:"JavaScript",key:"javascript",icon:(0,c.jsx)(p,{style:V}),apiRef:"/api-reference/javascript/v2/home/content"},{link:"/react-native/v2/guides/quickstart",name:"React Native",key:"react-native",icon:(0,c.jsx)(h,{style:V}),apiRef:"/api-reference/react-native/v2/modules.html"},{link:"/flutter/v2/guides/quickstart",name:"Flutter",key:"flutter",icon:(0,c.jsx)(d,{style:V}),apiRef:"https://pub.dev/documentation/hmssdk_flutter/latest/hmssdk_flutter/hmssdk_flutter-library.html"},{link:"/server-side/v2/how--to-guides/make-api-calls",name:"Server-side",key:"server-side",icon:(0,c.jsx)(x,{style:(0,i.Z)((0,n.Z)({},V),{fill:"transparent"})}),apiRef:"/server-side/v2/api-reference/Rooms/overview"}]},1689:function(e,t,r){var n=r(6042),i=r(9396),o=r(9534),s=r(828),c=r(5893),a=r(8532),l=r(1664),d=r.n(l);r(7294);t.Z=function(e){var t=e.children,r=(0,o.Z)(e,["children"]),l=r.href||r.to,u=function(e){var t=e.indexOf("#"),r=-1!==t?e.slice(t):"";e=-1!==t?e.slice(0,t):e;var n=(0,a.W)(),i=Object.entries(n).filter((function(e){return(0,s.Z)(e,1)[0].startsWith("utm")})).map((function(e){var t=(0,s.Z)(e,2),r=t[0],n=t[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&"),o=e.includes("?")?"&":"?",c=i?"".concat(o).concat(i):"";return"".concat(e).concat(c).concat(r)}(l);return function(e){try{return new URL(e),!1}catch(t){return!0}}(l)?(0,c.jsx)(d(),(0,i.Z)((0,n.Z)({},r),{href:u,children:t})):(0,c.jsx)("a",(0,i.Z)((0,n.Z)({},r),{href:l,children:t}))}},4171:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(7294);function i(e,t){var r=(0,n.useRef)(t);(0,n.useEffect)((function(){var t=function(t){e&&e.current&&!e.current.contains(t.target)&&r.current()};return document.addEventListener("click",t,!0),function(){document.removeEventListener("click",t,!0)}}),[e,t])}},4601:function(e,t,r){r.d(t,{Kr:function(){return c},QF:function(){return n},R:function(){return u},XQ:function(){return a},YY:function(){return i},ZF:function(){return o},cH:function(){return s},li:function(){return l},vg:function(){return d}});var n=function(e){var t=e.replace(/-/g," ").split(" "),r={};["JSON","UUID","WebSocket","JWT","APIs","SDK","HMS","RTMP","HLS","UI","API","WebSockets"].forEach((function(e){return r[e.toLowerCase()]=e})),t.forEach((function(e,n){t[n]=r[e]||t[n]}));var n=t.join(" ");return n[0].toUpperCase()+n.slice(1)},i=function(e){return"JavaScript"===e?"Web":e.replace("-"," ")},o=function(e){return localStorage.setItem("openedAccordions",JSON.stringify(e))},s=function(){return JSON.parse(localStorage.getItem("openedAccordions")||"[]")},c="https://dashboard.100ms.live",a="https://github.com/100mslive",l="https://www.100ms.live",d="".concat(l,"/contact"),u="Quick to integrate native iOS, Android & Web SDKs to add live video & audio conferencing to your applications."}}]);

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.