PageSourceSearch

https://www.anione.me/_next/static/chunks/7794.40f264cf394a05a2.js

js anione.me collected 2026-10-06 12:33:34 UTC 48,695 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7794],{32660:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},60730:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])},48662:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]])},87133:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("PhoneOff",[["path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91",key:"z86iuo"}],["line",{x1:"22",x2:"2",y1:"2",y2:"22",key:"11kh81"}]])},13041:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},99397:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},81706:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]])},88623:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]])},33145:function(e,t,r){r.d(t,{default:function(){return o.a}});var n=r(48461),o=r.n(n)},48461:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},getImageProps:function(){return c}});let n=r(47043),o=r(55346),i=r(65878),u=n._(r(21702));function c(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:u.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let a=i.Image},17208:function(e,t,r){r.d(t,{R:function(){return l}});var n,o=r(2265),i=r(84441),u=r(26495),c=r(53819),a=r(9865);!function(){if(!n){n=1;var e=NaN,t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof a.ah&&a.ah&&a.ah.Object===Object&&a.ah,s="object"==typeof self&&self&&self.Object===Object&&self,l=c||s||Function("return this")(),f=Object.prototype.toString}function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}}();let s=o.forwardRef(function({trackRef:e,onSubscriptionStatusChanged:t,volume:r,...n},i){let s=(0,a.i)(e),l=o.useRef(null);o.useImperativeHandle(i,()=>l.current);let{elementProps:f,isSubscribed:d,track:p,publication:h}=function(e,t={}){let[r,n]=o.useState((0,a.X)(e)),[i,c]=o.useState(null==r?void 0:r.isMuted),[s,l]=o.useState(null==r?void 0:r.isSubscribed),[f,d]=o.use
1State(null==r?void 0:r.track),[p,h]=o.useState("landscape"),v=o.useRef(),{className:y,trackObserver:b}=o.useMemo(()=>(0,a.Y)(e),[e.participant.sid??e.participant.identity,e.source,(0,a.a1)(e)&&e.publication.trackSid]);return o.useEffect(()=>{let e=b.subscribe(e=>{a.l.debug("update track",e),n(e),c(null==e?void 0:e.isMuted),l(null==e?void 0:e.isSubscribed),d(null==e?void 0:e.track)});return()=>null==e?void 0:e.unsubscribe()},[b]),o.useEffect(()=>{var r,n;return f&&(v.current&&f.detach(v.current),null!=(r=t.element)&&r.current&&!(e.participant.isLocal&&(null==f?void 0:f.kind)==="audio")&&f.attach(t.element.current)),v.current=null==(n=t.element)?void 0:n.current,()=>{v.current&&(null==f||f.detach(v.current))}},[f,t.element]),o.useEffect(()=>{var e,t;"number"==typeof(null==(e=null==r?void 0:r.dimensions)?void 0:e.width)&&"number"==typeof(null==(t=null==r?void 0:r.dimensions)?void 0:t.height)&&h(r.dimensions.width>r.dimensions.height?"landscape":"portrait")},[r]),{publication:r,isMuted:i,isSubscribed:s,track:f,elementProps:(0,u.a)(t.props,{className:y,"data-lk-local-participant":e.participant.isLocal,"data-lk-source":null==r?void 0:r.source,...(null==r?void 0:r.kind)==="video"&&{"data-lk-orientation":p}})}}(s,{element:l,props:n});return o.useEffect(()=>{null==t||t(!!d)},[d,t]),o.useEffect(()=>{void 0===p||void 0===r||(p instanceof c.rl?p.setVolume(r):a.l.warn("Volume can only be set on remote audio tracks."))},[r,p]),o.useEffect(()=>{void 0===h||void 0===n.muted||(h instanceof c.E8?h.setEnabled(!n.muted):a.l.warn("Can only call setEnabled on remote track publications."))},[n.muted,h,p]),o.createElement("audio",{ref:l,...f})});function l({room:e,volume:t,muted:r}){let n=(0,i.t)([c.fQ.Source.Microphone,c.fQ.Source.ScreenShareAudio,c.fQ.Source.Unknown],{updateOnlyOn:[],onlySubscribed:!0,room:e}).filter(e=>!e.participant.isLocal&&e.publication.kind===c.fQ.Kind.Audio);return o.createElement("div",{style:{display:"none"}},n.map(e=>o.createElement(s,{key:(0,a.p)(e),trackRef:e,volume:t,muted:r})))}},9865:function(e,t,r){let n;r.d(t,{L:function(){return eN},R:function(){return ej},U:function(){return eS},V:function(){return eO},W:function(){return ek},X:function(){return eT},Y:function(){return eE},a1:function(){return ey},a8:function(){return ew},ah:function(){return l},e:function(){return e_},f:function(){return eQ},i:function(){return eI},l:function(){return eg},p:function(){return eb},s:function(){return eC},t:function(){return ex},u:function(){return eR}});var o,i,u,c,a=r(53819),s=r(2265),l="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},f={exports:{}},d=f.exports;let p=(c||(c=1,o=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function u(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch{return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(){for(var r=this.getLevel(),o=0;o<n.length;o++){var i=n[o];this[i]=o<r?e:this.methodFactory(i,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function s(e){return function(){typeof console!==t&&(a.call(this),this[e].apply(this,arguments))}}function l(n,o,i){var a;return"debug"===(a=n)&&(a="log"),typeof console!==t&&("trace"===a&&r?c:void 0!==console[a]?u(console,a):void 0!==console.log?u(console,"log"):e)||s.apply(this,arguments)}function f(e,r){var u,c,s,f=this,d="loglevel";function p(){var e;if(!(typeof window===t||!d)){try{e=window.localStorage[d]}catch{}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(d),o=r.indexOf(n+"=");-1!==o&&(e=/^([^;]+)/.exec(r.slice(o+n.length+1))[1])}catch{}return void 0===f.levels[e]&&(e=void 0),e}}function h(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;
1throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return s??c??u},f.setLevel=function(e,r){return s=h(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(!(typeof window===t||!d)){try{window.localStorage[d]=r;return}catch{}try{window.document.cookie=encodeURIComponent(d)+"="+r+";"}catch{}}}(s),a.call(f)},f.setDefaultLevel=function(e){c=h(e),p()||f.setLevel(e,!1)},f.resetLevel=function(){s=null,function(){if(!(typeof window===t||!d)){try{window.localStorage.removeItem(d)}catch{}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}(),a.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(u=h(i.getLevel())),a.call(f),i===f)for(var e in o)o[e].rebuild()},u=h(i?i.getLevel():"WARN");var v=p();null!=v&&(s=h(v)),a.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=d),i},i.getLoggers=function(){return o},i.default=i,i},f.exports?f.exports=o():d.log=o()),(i=f.exports)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default"))?i.default:i;var h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function v(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function y(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(r)throw TypeError("Generator is already executing.");for(;
1u&&(u=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function g(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function S(e){return"function"==typeof e}function k(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var E=k(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
2`+t.map(function(e,t){return t+1+") "+e.toString()}).join(`
3  `):"",this.name="UnsubscriptionError",this.errors=t}});function T(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var _=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i){if(this._parentage=null,Array.isArray(i))try{for(var u=b(i),c=u.next();!c.done;c=u.next())c.value.remove(this)}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else i.remove(this)}var a=this.initialTeardown;if(S(a))try{a()}catch(e){o=e instanceof E?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=b(s),f=l.next();!f.done;f=l.next()){var d=f.value;try{P(d)}catch(e){o=o??[],e instanceof E?o=g(g([],m(o)),m(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new E(o)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)P(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&T(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&T(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),x=_.EMPTY;function C(e){return e instanceof _||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function P(e){S(e)?e():e.unsubscribe()}var O={Promise:void 0},L=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,g([e,t],m(r)))};function A(e){L(function(){throw e})}function M(){}var I=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,C(t)&&t.add(r)):r.destination=R,r}return v(t,e),t.create=function(e,t,r){return new Q(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_),j=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){A(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){A(e)}else A(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){A(e)}},e}(),Q=function(e){function t(t,r,n){var o,i=e.call(this)||this;return o=S(t)||!t?{next:t??void 0,error:r??void 0,complete:n??void 0}:t,i.destination=new j(o),i}return v(t,e),t}(I),R={closed:!0,next:M,error:function(e){throw e},complete:M},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function U(e){return e}var F=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o,i,u=(n=e)&&n instanceof I||n&&S(n.next)&&S(n.error)&&S(n.complete)&&C(n)?e:new Q(e,t,r);return o=this.operator,i=this.source,u.add(o?o.call(u,i):i?this._subscribe(u):this._trySubscribe(u)),u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=z(t))(function(t,n){var o=new Q({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?U:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=z(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function z(e){var t;return null!==(t=e??O.Promise)&&void 0!==t?t:Promise}function $(e){return function(t){if(S(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function Z(e,t,r,n,o){return new D(e,t,r,n,o)}var D=function(e){function t(t,r,n,o,i,u){var c=e.call(this,t)||this;return c.onFinalize=i,c.shouldUnsubscribe=u,c._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,c._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,c}return v(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(I),V=k(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return v(t,e),t.prototype.lift=function(e){var t=new W(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new V},t.prototype.next=function(e){var t=this;(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=b(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})()},t.prototype.error=function(e){var t=this;(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})()},t.prototype.complete=function(){var e=this;(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})()},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
3,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?x:(this.currentObservers=null,o.push(e),new _(function(){t.currentObservers=null,T(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new W(e,t)},t}(F),W=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return v(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:x},t}(J),Y=(function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}v(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)}}(J),function(){return Date.now()}),q=function(e){function t(t,r){return e.call(this)||this}return v(t,e),t.prototype.schedule=function(e,t){return this},t}(_),B={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,g([e,t],m(r)))},clearInterval:function(e){return clearInterval(e)}},H=function(e){function t(t,r){var n=e.call(this,t,r)||this;
3return n.scheduler=t,n.work=r,n.pending=!1,n}return v(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,o=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(o,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),B.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&B.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,T(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(q),G=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=Y,e}();function K(e){var t;return(t=e[e.length-1])&&S(t.schedule)?e.pop():void 0}new(function(e){function t(t,r){void 0===r&&(r=G.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return v(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active){r.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(G))(H);var X=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ee(e){return S(null==e?void 0:e.then)}function et(e){return Symbol.asyncIterator&&S(null==e?void 0:e[Symbol.asyncIterator])}function er(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var en="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function eo(e){return S(null==e?void 0:e[en])}function ei(e){return function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",function(e){return function(t){return Promise.resolve(t).then(e,s)}}),n[Symbol.asyncIterator]=function(){return this},n;function u(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{var r;(r=o[e](t)).value instanceof w?Promise.resolve(r.value.v).then(a,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}}function a(e){c("next",e)}function s(e){c("throw",e)}function l(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return y(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,w(t.read())];case 3:return n=(r=o.sent()).value,r.done?[4,w(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,w(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function eu(e){return S(null==e?void 0:e.getReader)}function ec(e){if(e instanceof F)return e;if(null!=e){if(S(e[N]))return new F(function(t){var r=e[N]();if(S(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(X(e))return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if(ee(e))return new F(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,A)});if(et(e))return ea(e);if(eo(e))return new F(function(t){var r,n;try{for(var o=b(e),i=o.next();!i.done;i=o.next()){var u=i.value;if(t.next(u),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()});if(eu(e))return ea(ei(e))}throw er(e)}function ea(e){return new F(function(t){(function(e,t){var r,n,o,i,u,c,a,s;return u=this,c=void 0,a=void 0,s=function(){var u;return y(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(t=e[r](t)).done,t.value)})}}}(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(u=n.value,t.next(u),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:c.sent()},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];
3case 10:return[7];case 11:return t.complete(),[2]}})},new(a||(a=Promise))(function(e,t){function r(e){try{o(s.next(e))}catch(e){t(e)}}function n(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):((o=t.value)instanceof a?o:new a(function(e){e(o)})).then(r,n)}o((s=s.apply(u,c||[])).next())})})(e,t).catch(function(e){return t.error(e)})})}function es(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function el(e,t){return void 0===t&&(t=0),$(function(r,n){r.subscribe(Z(n,function(r){return es(n,e,function(){return n.next(r)},t)},function(){return es(n,e,function(){return n.complete()},t)},function(r){return es(n,e,function(){return n.error(r)},t)}))})}function ef(e,t){return void 0===t&&(t=0),$(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function ed(e,t){if(!e)throw Error("Iterable cannot be null");return new F(function(r){es(r,t,function(){var n=e[Symbol.asyncIterator]();es(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function ep(e,t){return $(function(r,n){var o=0;r.subscribe(Z(n,function(r){n.next(e.call(t,r,o++))}))})}function eh(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(function e(t,r,n){return void 0===n&&(n=1/0),S(r)?e(function(e,n){return ep(function(t,o){return r(e,t,n,o)})(ec(t(e,n)))},n):("number"==typeof r&&(n=r),$(function(e,r){var o,i,u,c,a,s,l;return o=n,i=[],u=0,c=0,a=!1,s=function(){!a||i.length||u||r.complete()},l=function(e){u++;var n=!1;ec(t(e,c++)).subscribe(Z(r,function(e){r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(u--;i.length&&u<o;)!function(){var e=i.shift();l(e)}();s()}catch(e){r.error(e)}}))},e.subscribe(Z(r,function(e){return u<o?l(e):i.push(e)},function(){a=!0,s()})),function(){}}))})(U,1)((e=K(t))?function(e,t){if(null!=e){if(S(e[N]))return ec(e).pipe(ef(t),el(t));if(X(e))return new F(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(ee(e))return ec(e).pipe(ef(t),el(t));if(et(e))return ed(e,t);if(eo(e))return new F(function(r){var n;return es(r,t,function(){n=e[en](),es(r,t,function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){r.error(e);return}o?r.complete():r.next(t)},0,!0)}),function(){return S(null==n?void 0:n.return)&&n.return()}});if(eu(e))return ed(ei(e),t)}throw er(e)}(t,e):ec(t))}function ev(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=K(e);return $(function(t,n){(r?eh(e,t,r):eh(e,t)).subscribe(n)})}function ey(e){var t;return!(typeof e>"u")&&(!!e&&e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("track")&&"u">typeof(null==(t=e.publication)?void 0:t.track)||!!e&&e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("publication")&&"u">typeof e.publication)}function eb(e){if("string"==typeof e||"number"==typeof e)return`${e}`;if(e&&e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&typeof e.publication>"u")return`${e.participant.identity}_${e.source}_placeholder`;if(ey(e))return`${e.participant.identity}_${e.publication.source}_${e.publication.trackSid}`;throw Error(`Can't generate a id for the given track reference: ${e}`)}k(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var em=[a.TQ.ConnectionStateChanged,a.TQ.RoomMetadataChanged,a.TQ.ActiveSpeakersChanged,a.TQ.ConnectionQualityChanged,a.TQ.ParticipantConnected,a.TQ.ParticipantDisconnected,a.TQ.ParticipantPermissionsChanged,a.TQ.ParticipantMetadataChanged,a.TQ.ParticipantNameChanged,a.TQ.ParticipantAttributesChanged,a.TQ.TrackMuted,a.TQ.TrackUnmuted,a.TQ.TrackPublished,a.TQ.TrackUnpublished,a.TQ.TrackStreamStateChanged,a.TQ.TrackSubscriptionFailed,a.TQ.TrackSubscriptionPermissionChanged,a.TQ.TrackSubscriptionStatusChanged,a.TQ.LocalTrackPublished,a.TQ.LocalTrackUnpublished],eg=([...(a.dd.TrackPublished,a.dd.TrackUnpublished,a.dd.TrackMuted,a.dd.TrackUnmuted,a.dd.TrackStreamStateChanged,a.dd.TrackSubscribed,a.dd.TrackUnsubscribed,a.dd.TrackSubscriptionPermissionChanged,a.dd.TrackSubscriptionFailed,a.dd.LocalTrackPublished,a.dd.LocalTrackUnpublished,[a.dd.ConnectionQualityChanged,a.dd.IsSpeakingChanged,a.dd.ParticipantMetadataChanged,a.dd.ParticipantPermissionsChanged,a.dd.TrackMuted,a.dd.TrackUnmuted,a.dd.TrackPublished,a.dd.TrackUnpublished,a.dd.TrackStreamStateChanged,a.dd.TrackSubscriptionFailed,a.dd.TrackSubscriptionPermissionChanged,a.dd.TrackSubscriptionStatusChanged]),a.dd.LocalTrackPublished,a.dd.LocalTrackUnpublished],p.getLogger("lk-components-js"));eg.setDefaultLevel("WARN");var ew=((n=ew||{}).AgentState="lk.agent.state",n.PublishOnBehalf="lk.publish_on_behalf",n.TranscriptionFinal="lk.transcription_final",n.TranscriptionSegmentId="lk.segment_id",n.TranscribedTrackId="lk.transcribed_track_id",n);function eS(e){return"object"==typeof e}
3function ek(e){return Array.isArray(e)&&e.filter(eS).length>0}function eE(e){var t;let r=eT(e),n=ex(e.participant).pipe(ep(()=>eT(e)),ev(r));return{className:(t=e.source===a.fQ.Source.Camera||e.source===a.fQ.Source.ScreenShare?"participant-media-video":"participant-media-audio",`lk-${t}`),trackObserver:n}}function eT(e){if(ey(e))return e.publication;{let{source:t,name:r,participant:n}=e;if(t&&r)return n.getTrackPublications().find(e=>e.source===t&&e.trackName===r);if(r)return n.getTrackPublicationByName(r);if(t)return n.getTrackPublication(t);throw Error("At least one of source and name needs to be defined")}}function e_(e){var t;return(t=a.TQ.ConnectionStateChanged,new F(r=>{let n=(...e)=>{r.next(e)};return e.on(t,n),()=>{e.off(t,n)}})).pipe(ep(([e])=>e),ev(e.state))}function ex(e){return(function(e,...t){return new F(r=>{let n=()=>{r.next(e)};return t.forEach(t=>{e.on(t,n)}),()=>{t.forEach(t=>{e.off(t,n)})}}).pipe(ev(e))})(e,a.dd.TrackMuted,a.dd.TrackUnmuted,a.dd.ParticipantPermissionsChanged,a.dd.TrackPublished,a.dd.TrackUnpublished,a.dd.LocalTrackPublished,a.dd.LocalTrackUnpublished,a.dd.MediaDevicesError,a.dd.TrackSubscriptionStatusChanged).pipe(ep(e=>{let{isMicrophoneEnabled:t,isCameraEnabled:r,isScreenShareEnabled:n}=e,o=e.getTrackPublication(a.fQ.Source.Microphone);return{isCameraEnabled:r,isMicrophoneEnabled:t,isScreenShareEnabled:n,cameraTrack:e.getTrackPublication(a.fQ.Source.Camera),microphoneTrack:o,participant:e}}))}function eC(){return{className:"lk-room-container"}}function eP(e,t,r=!0){let n=[e.localParticipant,...Array.from(e.remoteParticipants.values())],o=[];return n.forEach(e=>{t.forEach(t=>{let n=Array.from(e.trackPublications.values()).filter(e=>e.source===t&&(!r||e.track)).map(t=>({participant:e,publication:t,source:t.source}));o.push(...n)})}),{trackReferences:o,participants:n}}function eO(e,t,r){var n,o;let i=null!=(n=r.additionalRoomEvents)?n:em,u=null==(o=r.onlySubscribed)||o;return(function(e,...t){return new F(r=>{let n=()=>{r.next(e)};return t.forEach(t=>{e.on(t,n)}),()=>{t.forEach(t=>{e.off(t,n)})}}).pipe(ev(e))})(e,...Array.from(new Set([a.TQ.ParticipantConnected,a.TQ.ParticipantDisconnected,a.TQ.ConnectionStateChanged,a.TQ.LocalTrackPublished,a.TQ.LocalTrackUnpublished,a.TQ.TrackPublished,a.TQ.TrackUnpublished,a.TQ.TrackSubscriptionStatusChanged,...i]).values())).pipe(ep(e=>{let r=eP(e,t,u);return eg.debug(`TrackReference[] was updated. (length ${r.trackReferences.length})`,r),r}),ev(eP(e,t,u)))}var{load:eL,save:eA}=(u="lk-user-choices",{load:()=>(function(e){if(typeof localStorage>"u"){eg.error("Local storage is not available.");return}try{let t=localStorage.getItem(e);if(!t){eg.warn(`Item with key ${e} does not exist in local storage.`);return}return JSON.parse(t)}catch(e){eg.error(`Error getting item from local storage: ${e}`);return}})(u),save:e=>(function(e,t){if(typeof localStorage>"u"){eg.error("Local storage is not available.");return}try{if(t){let r=Object.fromEntries(Object.entries(t).filter(([,e])=>""!==e));localStorage.setItem(e,JSON.stringify(r))}}catch(e){eg.error(`Error setting item to local storage: ${e}`)}})(u,e)});s.createContext(void 0);let eM=s.createContext(void 0);function eI(e){let t=s.useContext(eM),r=e??t;if(!r)throw Error("No TrackRef, make sure you are inside a TrackRefContext or pass the TrackRef explicitly");return r}s.createContext(void 0);let ej=s.createContext(void 0);function eQ(){let e=s.useContext(ej);if(!e)throw Error("tried to access room context outside of livekit room component");return e}function eR(e){let t=s.useContext(ej),r=e??t;if(!r)throw Error("No room provided, make sure you are inside a Room context or pass the room explicitly");return r}s.createContext(void 0);let eN=s.createContext(void 0)},84441:function(e,t,r){let n,o,i;r.d(t,{C:function(){return l},a:function(){return s},t:function(){return f}});var u=r(2265),c=r(9865),a=r(53819);function s(e){let t=(0,c.u)(e);return function(e,t,r=!0){let[n,o]=u.useState(t);return u.useEffect(()=>{if(r&&o(t),typeof window>"u"||!e)return;let n=e.subscribe(o);return()=>n.unsubscribe()},[e,r]),n}(u.useMemo(()=>(0,c.e)(t),[t]),t.state)}function l(e={}){let t=(0,c.u)(e.room),[r,n]=u.useState(t.localParticipant),[o,i]=u.useState(r.isMicrophoneEnabled),[a,s]=u.useState(r.isCameraEnabled),[l,f]=u.useState(r.isScreenShareEnabled),[d,p]=u.useState(r.lastMicrophoneError),[h,v]=u.useState(r.lastCameraError),[y,b]=u.useState(void 0),[m,g]=u.useState(void 0),w=e=>{s(e.isCameraEnabled),i(e.isMicrophoneEnabled),f(e.isScreenShareEnabled),g(e.cameraTrack),b(e.microphoneTrack),p(e.participant.lastMicrophoneError),v(e.participant.lastCameraError),n(e.participant)};return u.useEffect(()=>{let e=(0,c.t)(t.localParticipant).subscribe(w);return()=>e.unsubscribe()},[t]),{isMicrophoneEnabled:o,isScreenShareEnabled:l,isCameraEnabled:a,microphoneTrack:y,cameraTrack:m,lastMicrophoneError:d,lastCameraError:h,localParticipant:r}}function f(e=[a.fQ.Source.Camera,a.fQ.Source.Microphone,a.fQ.Source.ScreenShare,a.fQ.Source.ScreenShareAudio,a.fQ.Source.Unknown],t={}){let r=(0,c.u)(t.room),[n,o]=u.useState([]),[i,s]=u.useState([]),l=u.useMemo(()=>e.map(e=>(0,c.U)(e)?e.source:e),[JSON.stringify(e)]);return u.useEffect(()=>{let e=(0,c.V)(r,l,{additionalRoomEvents:t.updateOnlyOn,onlySubscribed:t.onlySubscribed}).subscribe(({trackReferences:e,participants:t})=>{c.l.debug("setting track bundles",e,t),o(e),s(t)});return()=>e.unsubscribe()},[r,JSON.stringify(t.onlySubscribed),JSON.stringify(t.updateOnlyOn),JSON.stringify(e)]),u.useMemo(()=>
3{if(!(0,c.W)(e))return n;{let t=function(e,t){let r=new Map;if((0,c.W)(e)){let n=e.filter(e=>e.withPlaceholder).map(e=>e.source);t.forEach(e=>{let t=e.getTrackPublications().map(e=>{var t;return null==(t=e.track)?void 0:t.source}).filter(e=>void 0!==e),o=Array.from(function(e,t){let r=new Set(e);for(let e of t)r.delete(e);return r}(new Set(n),new Set(t)));o.length>0&&r.set(e.identity,o)})}return r}(e,i),r=Array.from(n);return i.forEach(e=>{t.has(e.identity)&&(t.get(e.identity)??[]).forEach(t=>{n.find(({participant:r,publication:n})=>e.identity===r.identity&&n.source===t)||(c.l.debug(`Add ${t} placeholder for participant ${e.identity}.`),r.push({participant:e,source:t}))})}),r}},[n,i,e])}c.a8.AgentState;var d,p={exports:{}};!function(){if(d)return p.exports;d=1;var e,t="object"==typeof Reflect?Reflect:null,r=t&&"function"==typeof t.apply?t.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}p.exports=o,p.exports.once=function(e,t){return new Promise(function(r,n){var o;function i(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,u,{once:!0}),"error"!==t&&(o={once:!0},"function"==typeof e.on&&y(e,"error",i,o))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,r,n){var o,i,a;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn&&console.warn(s)}return e}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=s.bind(n);return o.listener=r,n.wrapFn=o,o}function f(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):v(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||n(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){if(t.length>0&&(u=t[0]),u instanceof Error)throw u;var u,c=Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else for(var s=a.length,l=v(a,s),n=0;n<s;++n)r(l[n],this,t);return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,o,i,c;if(u(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
3("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){c=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,c||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},p.exports}();var h=((n=h||{}).CameraChanged="cameraChanged",n.MicrophoneChanged="microphoneChanged",n.StateChanged="stateChanged",n),v=((o=v||{}).ConnectionStateChanged="connectionStateChanged",o.MediaDevicesError="mediaDevicesError",o.EncryptionError="encryptionError",o),y=((i=y||{}).MessageReceived="messageReceived",i)},26495:function(e,t,r){r.d(t,{L:function(){return f},a:function(){return a}});var n=r(2265),o=r(9865),i=r(53819);function u(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],o=n[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let r of e)if("function"==typeof r)try{r(...t)}catch(e){console.error(e)}}}(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(n&&(n+=" "),n+=t);return n}(r,o):t[e]=void 0!==o?o:r}}return t}function c(e){return void 0!==e}function a(...e){return u(...e.filter(c))}function s(e,t){return"processor"===e&&t&&"object"==typeof t&&"name"in t?t.name:"e2ee"===e&&t?"e2ee-enabled":t}r(25566);let l={connect:!0,audio:!1,video:!1},f=n.forwardRef(function(e,t){let{room:r,htmlProps:c}=function(e){let{token:t,serverUrl:r,options:c,room:a,connectOptions:f,connect:d,audio:p,video:h,screen:v,onConnected:y,onDisconnected:b,onError:m,onMediaDeviceFailure:g,onEncryptionError:w,simulateParticipants:S,...k}={...l,...e};c&&a&&o.l.warn("when using a manually created room, the options object will be ignored. set the desired options directly when creating the room instead.");let[E,T]=n.useState(),_=n.useRef(d);n.useEffect(()=>{T(a??new i.du(c))},[a,JSON.stringify(c,s)]);let x=n.useMemo(()=>{let{className:e}=(0,o.s)();return u(k,{className:e})},[k]);return n.useEffect(()=>{if(!E)return;let e=()=>{let e=E.localParticipant;o.l.debug("trying to publish local tracks"),Promise.all([e.setMicrophoneEnabled(!!p,"boolean"!=typeof p?p:void 0),e.setCameraEnabled(!!h,"boolean"!=typeof h?h:void 0),e.setScreenShareEnabled(!!v,"boolean"!=typeof v?v:void 0)]).catch(e=>{o.l.warn(e),null==m||m(e)})},t=(e,t)=>{let r=i.CB.getFailure(e);null==g||g(r,t)},r=e=>{null==w||w(e)},n=e=>{null==b||b(e)},u=()=>{null==y||y()};return E.on(i.TQ.SignalConnected,e).on(i.TQ.MediaDevicesError,t).on(i.TQ.EncryptionError,r).on(i.TQ.Disconnected,n).on(i.TQ.Connected,u),()=>{E.off(i.TQ.SignalConnected,e).off(i.TQ.MediaDevicesError,t).off(i.TQ.EncryptionError,r).off(i.TQ.Disconnected,n).off(i.TQ.Connected,u)}},[E,p,h,v,m,w,g,y,b]),n.useEffect(()=>{if(E){if(S){E.simulateParticipants({participants:{count:S},publish:{audio:!0,useRealTracks:!0}});return}if(d){if(_.current=!0,o.l.debug("connecting"),!t){o.l.debug("no token yet");return}if(!r){o.l.warn("no livekit url provided"),null==m||m(Error("no livekit url provided"));return}E.connect(r,t,f).catch(e=>{o.l.warn(e),!0===_.current&&(null==m||m(e))})}else o.l.debug("disconnecting because connect is false"),_.current=!1,E.disconnect()}},[d,t,JSON.stringify(f),E,m,r,S]),n.useEffect(()=>{if(E)return()=>{o.l.info("disconnecting on onmount"),E.disconnect()}},[E]),{room:E,htmlProps:x}}(e);return n.createElement("div",{ref:t,...c},r&&n.createElement(o.R.Provider,{value:r},n.createElement(o.L.Provider,{value:e.featureFlags},e.children)))})}}]);

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.