PageSourceSearch

https://cabinet.reporting.academy/student/assets/daily-esm-upxScbH0.js

js reporting.academy collected 2026-10-05 09:39:06 UTC 245,153 bytes, 38 lines download raw bytes

1function wr(t,e){if(t==null)return{};var n,r,a=(function(o,l){if(o==null)return{};var d={};for(var f in o)if({}.hasOwnProperty.call(o,f)){if(l.indexOf(f)!==-1)continue;d[f]=o[f]}return d})(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function ie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t){return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(t)}function ga(t){var e=(function(n,r){if(U(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var s=a.call(n,r);if(U(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(t,"string");return U(e)=="symbol"?e:e+""}function Sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ga(r.key),r)}}function ae(t,e,n){return e&&Sr(t.prototype,e),n&&Sr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qt(t,e){if(e&&(U(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n})(t)}function pe(t){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(t)}function mt(t,e){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mt(t,e)}function Kt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mt(t,e)}function ye(t,e,n){return(e=ga(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kr(t,e,n,r,a,s,o){try{var l=t[s](o),d=l.value}catch(f){return void n(f)}l.done?e(d):Promise.resolve(d).then(r,a)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var s=t.apply(e,n);function o(d){kr(s,r,a,o,l,"next",d)}function l(d){kr(s,r,a,o,l,"throw",d)}o(void 0)}))}}function Er(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function K(t,e){return(function(n){if(Array.isArray(n))return n})(t)||(function(n,r){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var s,o,l,d,f=[],g=!0,v=!1;try{if(l=(a=a.call(n)).next,r===0){if(Object(a)!==a)return;g=!1}else for(;!(g=(s=l.call(a)).done)&&(f.push(s.value),f.length!==r);g=!0);}catch(M){v=!0,o=M}finally{try{if(!g&&a.return!=null&&(d=a.return(),Object(d)!==d))return}finally{if(v)throw o}}return f}})(t,e)||(function(n,r){if(n){if(typeof n=="string")return Er(n,r);var a={}.toString.call(n).slice(8,-1);return a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Er(n,r):void 0}})(t,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ss(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Tr,St={exports:{}},Tn=(function(){if(Tr)return St.exports;Tr=1;var t,e=typeof Reflect=="object"?Reflect:null,n=e&&typeof e.apply=="function"?e.apply:function(m,_,w){return Function.prototype.apply.call(m,_,w)};t=e&&typeof e.ownKeys=="function"?e.ownKeys:Object.getOwnPropertySymbols?function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:function(m){return Object.getOwnPropertyNames(m)};var r=Number.isNaN||function(m){return m!=m};function a(){a.init.call(this)}St.exports=a,St.exports.once=function(m,_){return new Promise((function(w,C){function A(L){m.removeListener(_,I),C(L)}function I(){typeof m.removeListener=="function"&&m.removeListener("error",A),w([].slice.call(arguments))}b(m,_,I,{once:!0}),_!=="error"&&(function(L,x,Y){typeof L.on=="function"&&b(L,"error",x,Y)})(m,A,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function o(m){if(typeof m!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof m)}function l(m){return m._maxListeners===void 0?a.defaultMaxListeners:m._maxListeners}function d(m,_,w,C){var A,I,L,x;if(o(w),(I=m._events)===void 0?(I=m._events=Object.create(null),m._eventsCount=0):(I.newListener!==void 0&&(m.emit("newListener",_,w.listener?w.listener:w),I=m._events),L=I[_]),L===void 0)L=I[_]=w,++m._eventsCount;else if(typeof L=="function"?L=I[_]=C?[w,L]:[L,w]:C?L.unshift(w):L.push(w),(A=l(m))>0&&L.length>A&&!L.warned){L.warned=!0;var Y=new Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");Y.name="MaxListenersExceededWarning",Y.emitter=m,Y.type=_,Y.count=L.length,x=Y,console&&console.warn&&console.warn(x)}return m}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(m,_,w){var C={fired:!1,wrapFn:void 0,target:m,type:_,listener:w},A=f.bind(C);return A.listener=w,C.wrapFn=A,A}function v(m,_,w){var C=m._events;if(C===void 0)return[];var A=C[_];return A===void 0?[]:typeof A=="function"?w?[A.listener||A]:[A]:w?(function(I){for(var L=new Array(I.length),x=0;x<L.length;++x)L[x]=I[x].listener||I[x];return L})(A):T(A,A.length)}function M(m){var _=this._events;if(_!==void 0){var w=_[m];if(typeof w=="function")return 1;if(w!==void 0)return w.length}return 0}function T(m,_){for(var w=new Array(_),C=0;C<_;++C)w[C]=m[C];return w}function b(m,_,w,C){if(typeof m.on=="function")C.once?m.once(_,w):m.on(_,w);else{if(typeof m.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof m);m.addEventListener(_,(function A(I){C.once&&m.removeEventListener(_,A),w(I)}))}}return Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(m){if(typeof m!="number"||m<0||r(m))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+m+".");s=m}}),a.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||r(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(m){for(var _=[],w=1;w<arguments.length;w++)_.push(arguments[w]);var C=m==="error",A=this._events;if(A!==void 0)C=C&&A.error===void 0;else if(!C)return!1;if(C){var I;if(_.length>0&&(I=_[0]),I instanceof Error)throw I;var L=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw L.context=I,L}var x=A[m];if(x===void 0)return!1;if(typeof x=="function")n(x,this,_);else{var Y=x.length,te=T(x,Y);for(w=0;w<Y;++w)n(te[w],this,_)}return!0},a.prototype.addListener=function(m,_){return d(this,m,_,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(m,_){return d(this,m,_,!0)},a.prototype.once=function(m,_){return o(_),this.on(m,g(this,m,_)),this},a.prototype.prependOnceListener=function(m,_){return o(_),this.prependListener(m,g(this,m,_)),this},a.prototype.removeListener=function(m,_){var w,C,A,I,L;if(o(_),(C=this._events)===void 0)return this;if((w=C[m])===void 0)return this;if(w===_||w.listener===_)--this._eventsCount==0?this._events=Object.create(null):(delete C[m],C.removeListener&&this.emit
2("removeListener",m,w.listener||_));else if(typeof w!="function"){for(A=-1,I=w.length-1;I>=0;I--)if(w[I]===_||w[I].listener===_){L=w[I].listener,A=I;break}if(A<0)return this;A===0?w.shift():(function(x,Y){for(;Y+1<x.length;Y++)x[Y]=x[Y+1];x.pop()})(w,A),w.length===1&&(C[m]=w[0]),C.removeListener!==void 0&&this.emit("removeListener",m,L||_)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(m){var _,w,C;if((w=this._events)===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[m]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete w[m]),this;if(arguments.length===0){var A,I=Object.keys(w);for(C=0;C<I.length;++C)(A=I[C])!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(_=w[m])=="function")this.removeListener(m,_);else if(_!==void 0)for(C=_.length-1;C>=0;C--)this.removeListener(m,_[C]);return this},a.prototype.listeners=function(m){return v(this,m,!0)},a.prototype.rawListeners=function(m){return v(this,m,!1)},a.listenerCount=function(m,_){return typeof m.listenerCount=="function"?m.listenerCount(_):M.call(m,_)},a.prototype.listenerCount=M,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]},St.exports})(),kt=ss(Tn),Mr=Object.prototype.hasOwnProperty;function Cr(t,e,n){for(n of t.keys())if(Z(n,e))return n}function Z(t,e){var n,r,a;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&Z(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(r of t)if((a=r)&&typeof a=="object"&&!(a=Cr(e,a))||!e.has(a))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(r of t)if((a=r[0])&&typeof a=="object"&&!(a=Cr(e,a))||!Z(r[1],e.get(a)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return r===-1}if(!n||typeof t=="object"){for(n in r=0,t)if(Mr.call(t,n)&&++r&&!Mr.call(e,n)||!(n in e)||!Z(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!=t&&e!=e}const os={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ma={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},W={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},X={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Me={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class S{static getFirstMatch(e,n){const r=n.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,n){const r=n.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,n,r){if(e.test(n))return r}
2static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const n=e.split(".").splice(0,2).map((r=>parseInt(r,10)||0));if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const n=e.split(".").splice(0,2).map((r=>parseInt(r,10)||0));if(n.push(0),!(n[0]===1&&n[1]<5))return n[0]===1&&n[1]<6?"Cupcake":n[0]===1&&n[1]>=6?"Donut":n[0]===2&&n[1]<2?"Eclair":n[0]===2&&n[1]===2?"Froyo":n[0]===2&&n[1]>2?"Gingerbread":n[0]===3?"Honeycomb":n[0]===4&&n[1]<1?"Ice Cream Sandwich":n[0]===4&&n[1]<4?"Jelly Bean":n[0]===4&&n[1]>=4?"KitKat":n[0]===5?"Lollipop":n[0]===6?"Marshmallow":n[0]===7?"Nougat":n[0]===8?"Oreo":n[0]===9?"Pie":void 0}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,n,r=!1){const a=S.getVersionPrecision(e),s=S.getVersionPrecision(n);let o=Math.max(a,s),l=0;const d=S.map([e,n],(f=>{const g=o-S.getVersionPrecision(f),v=f+new Array(g+1).join(".0");return S.map(v.split("."),(M=>new Array(20-M.length).join("0")+M)).reverse()}));for(r&&(l=o-Math.min(a,s)),o-=1;o>=l;){if(d[0][o]>d[1][o])return 1;if(d[0][o]===d[1][o]){if(o===l)return 0;o-=1}else if(d[0][o]<d[1][o])return-1}}static map(e,n){const r=[];let a;if(Array.prototype.map)return Array.prototype.map.call(e,n);for(a=0;a<e.length;a+=1)r.push(n(e[a]));return r}static find(e,n){let r,a;if(Array.prototype.find)return Array.prototype.find.call(e,n);for(r=0,a=e.length;r<a;r+=1){const s=e[r];if(n(s,r))return s}}static assign(e,...n){const r=e;let a,s;if(Object.assign)return Object.assign(e,...n);for(a=0,s=n.length;a<s;a+=1){const o=n[a];typeof o=="object"&&o!==null&&Object.keys(o).forEach((l=>{r[l]=o[l]}))}return e}static getBrowserAlias(e){return os[e]}static getBrowserTypeByAlias(e){return ma[e]||""}}const J=/version\/(\d+(\.?_?\d+)+)/i,cs=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},n=S.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},n=S.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},n=S.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},n=S.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},n=S.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},n=S.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},n=S.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"}
vendor: 6,760 bytes, line 2
2,n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},n=S.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=S.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},n=S.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},n=S.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},n=S.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},n=S.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},n=S.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},n=S.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},n=S.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},n=S.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},n=S.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},n=S.getFirstMatch(J,t)||S.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},n=S.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},n=S.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},n=S.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},n=S.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},n=S.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},n=S.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},n=S.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},n=S.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},n=S.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e={name:"Android Browser"},n=S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},n=S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},n=S.getFirstMatch(J,t);return n&&(e.version=n),e}},{test:[/.*/i],describe(t){const e=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:S.getFirstMatch(e,t),version:S.getSecondMatch(e,t)}}}];var us=[{test:[/Roku\/DVP/],describe(t){const e=S.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:X.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=S.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:X.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=S.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=S.getWindowsVersionName(e);return{name:X.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:X.iOS},n=S.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe(t){const e=S.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=S.getMacOSVersionName(e),r={name:X.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=S.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:X.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e=S.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=S.getAndroidVersionName(e),r={name:X.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=S.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:X.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=S.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||S.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||S.getFirstMatch(/\bbb(\d+)/i,t);return{name:X.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=S.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:X.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=S.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:X.Tizen,version:e}}},{test:[/linux/i],describe:()=>({name:X.Linux})},{test:[/CrOS/],describe:()=>({name:X.ChromeOS})},{test:[/PlayStation 4/],describe(t){const e=S.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);
2return{name:X.PlayStation4,version:e}}}],ls=[{test:[/googlebot/i],describe:()=>({type:"bot",vendor:"Google"})},{test:[/huawei/i],describe(t){const e=S.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:W.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:()=>({type:W.tablet,vendor:"Nexus"})},{test:[/ipad/i],describe:()=>({type:W.tablet,vendor:"Apple",model:"iPad"})},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:()=>({type:W.tablet,vendor:"Apple",model:"iPad"})},{test:[/kftt build/i],describe:()=>({type:W.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"})},{test:[/silk/i],describe:()=>({type:W.tablet,vendor:"Amazon"})},{test:[/tablet(?! pc)/i],describe:()=>({type:W.tablet})},{test(t){const e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe(t){const e=S.getFirstMatch(/(ipod|iphone)/i,t);return{type:W.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:()=>({type:W.mobile,vendor:"Nexus"})},{test:[/[^-]mobi/i],describe:()=>({type:W.mobile})},{test:t=>t.getBrowserName(!0)==="blackberry",describe:()=>({type:W.mobile,vendor:"BlackBerry"})},{test:t=>t.getBrowserName(!0)==="bada",describe:()=>({type:W.mobile})},{test:t=>t.getBrowserName()==="windows phone",describe:()=>({type:W.mobile,vendor:"Microsoft"})}
2,{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe:()=>({type:W.tablet})},{test:t=>t.getOSName(!0)==="android",describe:()=>({type:W.mobile})},{test:t=>t.getOSName(!0)==="macos",describe:()=>({type:W.desktop,vendor:"Apple"})},{test:t=>t.getOSName(!0)==="windows",describe:()=>({type:W.desktop})},{test:t=>t.getOSName(!0)==="linux",describe:()=>({type:W.desktop})},{test:t=>t.getOSName(!0)==="playstation 4",describe:()=>({type:W.tv})},{test:t=>t.getOSName(!0)==="roku",describe:()=>({type:W.tv})}],ds=[{test:t=>t.getBrowserName(!0)==="microsoft edge",describe(t){if(/\sedg\//i.test(t))return{name:Me.Blink};const e=S.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Me.EdgeHTML,version:e}}},{test:[/trident/i],describe(t){const e={name:Me.Trident},n=S.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:t=>t.test(/presto/i),describe(t){const e={name:Me.Presto},n=S.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe(t){const e={name:Me.Gecko},n=S.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:()=>({name:Me.Blink})},{test:[/(apple)?webkit/i],describe(t){const e={name:Me.WebKit},n=S.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];class Ar{constructor(e,n=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=S.find(cs,(n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some((r=>this.test(r)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=S.find(us,(n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some((r=>this.test(r)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:n}=this.getOS();return e?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:n}=this.getPlatform();return e?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const e=S.find(ls,(n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some((r=>this.test(r)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=S.find(ds,(n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some((r=>this.test(r)));throw new Error("Browser's test function is not valid")}));return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return S.assign({},this.parsedResult)}satisfies(e){const n={};let r=0;const a={};let s=0;if(Object.keys(e).forEach((o=>{const l=e[o];typeof l=="string"?(a[o]=l,s+=1):typeof l=="object"&&(n[o]=l,r+=1)})),r>0){const o=Object.keys(n),l=S.find(o,(f=>this.isOS(f)));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const d=S.find(o,(f=>this.isPlatform(f)));if(d){const f=this.satisfies(n[d]);if(f!==void 0)return f}}if(s>0){const o=Object.keys(a),l=S.find(o,(d=>this.isBrowser(d,!0)));if(l!==void 0)return this.compareVersion(a[l])}}isBrowser(e,n=!1){const r=this.getBrowserName().toLowerCase();let a=e.toLowerCase();const s=S.getBrowserTypeByAlias(a);return n&&s&&(a=s.toLowerCase()),a===r}compareVersion(e){let n=[0],r=e,a=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(a=!0,r=e.substr(2)):n=[],e[0]===">"?n.push(1):n.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(a=!0,r=e.substr(1)),n.indexOf(S.compareVersions(s,r,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,n=!1){return this.isBrowser(e,n)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some((n=>this.is(n)))}}/*!
3 * Bowser - a browser detector
4 * https://github.com/lancedikson/bowser
5 * MIT License | (c) Dustin Diaz 2012-2015
6 * MIT License | (c) Denis Demchenko 2015-2019
7 */class fs{static getParser(e,n=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new Ar(e,n)}static parse(e){return new Ar(e).getResult()}static get BROWSER_MAP(){return ma}static get ENGINE_MAP(){return Me}static get OS_MAP(){return X}static get PLATFORMS_MAP(){return W}}function Xt(){return Date.now()+Math.random().toString()}function lt(){throw new Error("Method must be implemented in subclass")}function va(t,e){return e!=null&&e.proxyUrl?e.proxyUrl+(e.proxyUrl.slice(-1)==="/"?"":"/")+t.substring(8):t}function Bt(t){return t!=null&&t.callObjectBundleUrlOverride?t.callObjectBundleUrlOverride:va("https://c.daily.co/call-machine/versioned/".concat("0.84.0","/static/call-machine-object-bundle.js"),t)}function Jt(t){try{new URL(t)}catch{return!1}return!0}const q=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Fe="8.55.0",B=globalThis;function $t(t,e,n){const r=B,a=r.__SENTRY__=r.__SENTRY__||{},s=a[Fe]=a[Fe]||{};return s[t]||(s[t]=e())}const Ye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Mn=["debug","info","warn","error","log","assert","trace"],qt={};function yt(t){if(!("console"in B))return t();const e=B.console,n={},r=Object.keys(qt);r.forEach((a=>{const s=qt[a];n[a]=e[a],e[a]=s}));try{return t()}finally{r.forEach((a=>{e[a]=n[a]}))}}const j=$t("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Ye?Mn.forEach((n=>{e[n]=(...r)=>{t&&yt((()=>{B.console[n](`Sentry Logger [${n}]:`,...r)}))}})):Mn.forEach((n=>{e[n]=()=>{}})),e})),Re="?",Or=/\(error: (.*)\)/,Pr=/captureMessage|captureException/;function Et(t){return t[t.length-1]||{}}const Ir="<anonymous>";function Ae(t){try{return t&&typeof t=="function"&&t.name||Ir}catch{return Ir}}function Lr(t){const e=t.exception;if(e){const n=[];
7try{return e.values.forEach((r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)})),n}catch{return}}}const Rt={},Dr={};function Ve(t,e){Rt[t]=Rt[t]||[],Rt[t].push(e)}function Ue(t,e){if(!Dr[t]){Dr[t]=!0;try{e()}catch(n){Ye&&j.error(`Error while instrumenting ${t}`,n)}}}function he(t,e){const n=t&&Rt[t];if(n)for(const r of n)try{r(e)}catch(a){Ye&&j.error(`Error while triggering instrumentation handler.
8Type: ${t}
9Name: ${Ae(r)}
10Error:`,a)}}let an=null;function hs(){an=B.onerror,B.onerror=function(t,e,n,r,a){return he("error",{column:r,error:a,line:n,msg:t,url:e}),!!an&&an.apply(this,arguments)},B.onerror.__SENTRY_INSTRUMENTED__=!0}let sn=null;function ps(){sn=B.onunhandledrejection,B.onunhandledrejection=function(t){return he("unhandledrejection",t),!sn||sn.apply(this,arguments)},B.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Zt(){return Hn(B),B}function Hn(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Fe,e[Fe]=e[Fe]||{}}const ya=Object.prototype.toString;function Qn(t){switch(ya.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Be(t,Error)}}function at(t,e){return ya.call(t)===`[object ${e}]`}function _a(t){return at(t,"ErrorEvent")}function jr(t){return at(t,"DOMError")}function we(t){return at(t,"String")}function Kn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Cn(t){return t===null||Kn(t)||typeof t!="object"&&typeof t!="function"}function et(t){return at(t,"Object")}function en(t){return typeof Event<"u"&&Be(t,Event)}function tn(t){return!!(t&&t.then&&typeof t.then=="function")}function Be(t,e){try{return t instanceof e}catch{return!1}}function ba(t){return!(typeof t!="object"||t===null||!t.__isVue&&!t._isVue)}const Xn=B;function wa(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,a=[];let s=0,o=0;const l=" > ",d=l.length;let f;const g=Array.isArray(e)?e:e.keyAttrs,v=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++<r&&(f=gs(n,g),!(f==="html"||s>1&&o+a.length*d+f.length>=v));)a.push(f),o+=f.length,n=n.parentNode;return a.reverse().join(l)}catch{return"<unknown>"}}function gs(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(Xn.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=e&&e.length?e.filter((o=>n.getAttribute(o))).map((o=>[o,n.getAttribute(o)])):null;if(a&&a.length)a.forEach((o=>{r.push(`[${o[0]}="${o[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&we(o)){const l=o.split(/\s+/);for(const d of l)r.push(`.${d}`)}}const s=["aria-label","type","name","title","alt"];for(const o of s){const l=n.getAttribute(o);l&&r.push(`[${o}="${l}"]`)}return r.join("")}function Xe(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Nr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const a=t[r];try{ba(a)?n.push("[VueViewModel]"):n.push(String(a))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function ms(t,e,n=!1){return!!we(t)&&(at(e,"RegExp")?e.test(t):!!we(e)&&(n?t===e:t.includes(e)))}function Tt(t,e=[],n=!1){return e.some((r=>ms(t,r,n)))}function re(t,e,n){if(!(e in t))return;const r=t[e],a=n(r);typeof a=="function"&&Sa(a,r);try{t[e]=a}catch{Ye&&j.log(`Failed to replace method "${e}" in object`,t)}}function Je(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Ye&&j.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Sa(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Je(t,"__sentry_original__",e)}catch{}}function Zn(t){return t.__sentry_original__}function ka(t){if(Qn(t))return{message:t.message,name:t.name,stack:t.stack,...Rr(t)};if(en(t)){const e={type:t.type,target:xr(t.target),currentTarget:xr(t.currentTarget),...Rr(t)};return typeof CustomEvent<"u"&&Be(t,CustomEvent)&&(e.detail=t.detail),e}return t}function xr(t){try{return e=t,typeof Element<"u"&&Be(e,Element)?wa(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}var e}function Rr(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function ce(t){return An(t,new Map)}function An(t,e){if((function(n){if(!et(n))return!1;try{const r=Object.getPrototypeOf(n).constructor.name;return!r||r==="Object"}catch{return!0}})(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const a of Object.getOwnPropertyNames(t))t[a]!==void 0&&(r[a]=An(t[a],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach((a=>{r.push(An(a,e))})),r}return t}function _t(){return Date.now()/1e3}const ke=(function(){const{performance:t}=B;if(!t||!t.now)return _t;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/1e3})();function ue(){const t=B,e=t.crypto||t.msCrypto;let n=()=>
1016*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,(r=>(r^(15&n())>>r/4).toString(16)))}function Ea(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ce(t){const{message:e,event_id:n}=t;if(e)return e;const r=Ea(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function On(t,e,n){const r=t.exception=t.exception||{},a=r.values=r.values||[],s=a[0]=a[0]||{};s.value||(s.value=e||""),s.type||(s.type="Error")}function tt(t,e){const n=Ea(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const a={...r&&r.data,...e.data};n.mechanism.data=a}}function Fr(t){if((function(e){try{return e.__sentry_captured__}catch{}})(t))return!0;try{Je(t,"__sentry_captured__",!0)}catch{}return!1}var _e;function $e(t){return new oe((e=>{e(t)}))}function Yt(t){return new oe(((e,n)=>{n(t)}))}(()=>{const{performance:t}=B;!t||!t.now||(t.now(),t.timing&&t.timing.navigationStart)})(),(function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"})(_e||(_e={}));class oe{constructor(e){oe.prototype.__init.call(this),oe.prototype.__init2.call(this),oe.prototype.__init3.call(this),oe.prototype.__init4.call(this),this._state=_e.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new oe(((r,a)=>{this._handlers.push([!1,s=>{if(e)try{r(e(s))}catch(o){a(o)}else r(s)},s=>{if(n)try{r(n(s))}catch(o){a(o)}else a(s)}]),this._executeHandlers()}))}catch(e){return this.then((n=>n),e)}finally(e){return new oe(((n,r)=>{let a,s;return this.then((o=>{s=!1,a=o,e&&e()}),(o=>{s=!0,a=o,e&&e()})).then((()=>{s?r(a):n(a)}))}))}__init(){this._resolve=e=>{this._setResult(_e.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(_e.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{this._state===_e.PENDING&&(tn(n)?n.then(this._resolve,this._reject):(this._state=e,this._value=n,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===_e.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((n=>{n[0]||(this._state===_e.RESOLVED&&n[1](this._value),this._state===_e.REJECTED&&n[2](this._value),n[0]=!0)}))}}}function vs(t){const e=ke(),n={sid:ue(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function(r){return ce({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:typeof r.did=="number"||typeof r.did=="string"?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})})(n)};return t&&nt(n,t),n}function nt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ke(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ue()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Vr(){return ue()}function Pn(){return ue().substring(16)}function nn(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const r={...t};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=nn(r[a],e[a],n-1));return r}const In="_sentrySpan";function Ur(t,e){e?Je(t,In,e):delete t[In]}function Br(t){return t[In]}class er{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Vr(),spanId:Pn()}}clone(){const e=new er;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Ur(e,Br(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&nt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,[r,a]=n instanceof Oe?[n.getScopeData(),n.getRequestSession()]:et(n)?[e,e.requestSession]:[],{tags:s,extra:o,user:l,contexts:d,level:f,fingerprint:g=[],propagationContext:v}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...d},l&&Object.keys(l).length&&(this._user=l),f&&(this._level=f),g.length&&(this._fingerprint=g),v&&(this._propagationContext=v),a&&(this._requestSession=a),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Ur(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Vr()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:100;if(r<=0)return this;const a={timestamp:_t(),...e};return this._breadcrumbs.push(a),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
10cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Br(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=nn(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Pn(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:ue();if(!this._client)return j.warn("No client configured on scope - will not capture exception!"),r;const a=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureMessage(e,n,r){const a=r&&r.event_id?r.event_id:ue();if(!this._client)return j.warn("No client configured on scope - will not capture message!"),a;const s=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:a},this),a}captureEvent(e,n){const r=n&&n.event_id?n.event_id:ue();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(j.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Oe=er;class ys{constructor(e,n){let r,a;r=e||new Oe,a=n||new Oe,this._stack=[{scope:r}],this._isolationScope=a}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(a){throw this._popScope(),a}return tn(r)?r.then((a=>(this._popScope(),a)),(a=>{throw this._popScope(),a})):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function rt(){const t=Hn(Zt());return t.stack=t.stack||new ys($t("defaultCurrentScope",(()=>new Oe)),$t("defaultIsolationScope",(()=>new Oe)))}function _s(t){return rt().withScope(t)}function bs(t,e){const n=rt();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Jr(t){return rt().withScope((()=>t(rt().getIsolationScope())))}function tr(t){const e=Hn(t);return e.acs?e.acs:{withIsolationScope:Jr,withScope:_s,withSetScope:bs,withSetIsolationScope:(n,r)=>Jr(r),getCurrentScope:()=>rt().getScope(),getIsolationScope:()=>rt().getIsolationScope()}}function We(){return tr(Zt()).getCurrentScope()}function bt(){return tr(Zt()).getIsolationScope()}function Q(){return We().getClient()}function ws(t){const e=t.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:a}=e;return ce({trace_id:n,span_id:r,parent_span_id:a})}function Ss(t){const e=t._sentryMetrics;if(!e)return;const n={};for(const[,[r,a]]of e)(n[r]||(n[r]=[])).push(ce(a));return n}const ks=/^sentry-/;function Es(t){const e=(function(r){if(!(!r||!we(r)&&!Array.isArray(r)))return Array.isArray(r)?r.reduce(((a,s)=>{const o=$r(s);return Object.entries(o).forEach((([l,d])=>{a[l]=d})),a}),{}):$r(r)})(t);if(!e)return;const n=Object.entries(e).reduce(((r,[a,s])=>(a.match(ks)&&(r[a.slice(7)]=s),r)),{});return Object.keys(n).length>0?n:void 0}function $r(t){return t.split(",").map((e=>e.split("=").map((n=>decodeURIComponent(n.trim()))))).reduce(((e,[n,r])=>(n&&r&&(e[n]=r),e)),{})}let qr=!1;function Ts(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext();return ce({parent_span_id:r?e:nr(t).parent_span_id,span_id:r?Pn():e,trace_id:n})}function Yr(t){return typeof t=="number"?Wr(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Wr(t.getTime()):ke()}function Wr(t){return t>9999999999?t/1e3:t}function nr(t){if((function(e){return typeof e.getSpanJSON=="function"})(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if((function(r){const a=r;return!!(a.attributes&&a.startTime&&a.name&&a.endTime&&a.status)})(t)){const{attributes:r,startTime:a,name:s,endTime:o,parentSpanId:l,status:d}=t;return ce({span_id:e,trace_id:n,data:r,description:s,parent_span_id:l,start_timestamp:Yr(a),timestamp:Yr(o)||void 0,status:Ms(d),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:Ss(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function Ms(t){if(t&&t.code!==0)return t.code===1?"ok":t.message||"unknown_error"}function Ta(t){return t._sentryRootSpan||t}function Cs(){qr||(yt((()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
10sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),qr=!0)}const rr="production";function Ma(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},a=ce({environment:n.environment||rr,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",a),a}function As(t){const e=Q();if(!e)return{};const n=Ta(t),r=n._frozenDsc;if(r)return r;const a=n.spanContext().traceState,s=a&&a.get("sentry.dsc"),o=s&&Es(s);if(o)return o;const l=Ma(t.spanContext().traceId,e),d=nr(n),f=d.data||{},g=f["sentry.sample_rate"];g!=null&&(l.sample_rate=`${g}`);const v=f["sentry.source"],M=d.description;return v!=="url"&&M&&(l.transaction=M),(function(T){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const b=Q(),m=b&&b.getOptions();return!!m&&(m.enableTracing||"tracesSampleRate"in m||"tracesSampler"in m)})()&&(l.sampled=String((function(T){const{traceFlags:b}=T.spanContext();return b===1})(n))),e.emit("createDsc",l,n),l}const Os=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Wt(t,e=!1){const{host:n,path:r,pass:a,port:s,projectId:o,protocol:l,publicKey:d}=t;return`${l}://${d}${e&&a?`:${a}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function zr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Ps(t){const e=typeof t=="string"?(function(n){const r=Os.exec(n);if(!r)return void yt((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));const[a,s,o="",l="",d="",f=""]=r.slice(1);let g="",v=f;const M=v.split("/");if(M.length>1&&(g=M.slice(0,-1).join("/"),v=M.pop()),v){const T=v.match(/^\d+/);T&&(v=T[0])}return zr({host:l,pass:o,path:g,projectId:v,port:d,protocol:a,publicKey:s})})(t):zr(t);if(e&&(function(n){if(!Ye)return!0;const{port:r,projectId:a,protocol:s}=n;return!(["protocol","publicKey","host","projectId"].find((o=>!n[o]&&(j.error(`Invalid Sentry Dsn: ${o} missing`),!0)))||(a.match(/^\d+$/)?(function(o){return o==="http"||o==="https"})(s)?r&&isNaN(parseInt(r,10))&&(j.error(`Invalid Sentry Dsn: Invalid port ${r}`),1):(j.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),1):(j.error(`Invalid Sentry Dsn: Invalid projectId ${a}`),1)))})(e))return e}function be(t,e=100,n=1/0){try{return Ln("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ca(t,e=3,n=102400){const r=be(t,e);return a=r,(function(s){return~-encodeURI(s).split(/%..|./).length})(JSON.stringify(a))>n?Ca(t,e-1,n):r;var a}function Ln(t,e,n=1/0,r=1/0,a=(function(){const s=typeof WeakSet=="function",o=s?new WeakSet:[];return[function(l){if(s)return!!o.has(l)||(o.add(l),!1);for(let d=0;d<o.length;d++)if(o[d]===l)return!0;return o.push(l),!1},function(l){if(s)o.delete(l);else for(let d=0;d<o.length;d++)if(o[d]===l){o.splice(d,1);break}}]})()){const[s,o]=a;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const l=(function(T,b){try{if(T==="domain"&&b&&typeof b=="object"&&b._events)return"[Domain]";if(T==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&b===global)return"[Global]";if(typeof window<"u"&&b===window)return"[Window]";if(typeof document<"u"&&b===document)return"[Document]";if(ba(b))return"[VueViewModel]";if(et(m=b)&&"nativeEvent"in m&&"preventDefault"in m&&"stopPropagation"in m)return"[SyntheticEvent]";if(typeof b=="number"&&!Number.isFinite(b))return`[${b}]`;if(typeof b=="function")return`[Function: ${Ae(b)}]`;if(typeof b=="symbol")return`[${String(b)}]`;if(typeof b=="bigint")return`[BigInt: ${String(b)}]`;const _=(function(w){const C=Object.getPrototypeOf(w);return C?C.constructor.name:"null prototype"})(b);return/^HTML(\w*)Element$/.test(_)?`[HTMLElement: ${_}]`:`[object ${_}]`}catch(_){return`**non-serializable** (${_})`}var m})(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const d=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(d===0)return l.replace("object ","");if(s(e))return"[Circular ~]";const f=e;if(f&&typeof f.toJSON=="function")try{return Ln("",f.toJSON(),d-1,r,a)}catch{}const g=Array.isArray(e)?[]:{};let v=0;const M=ka(e);for(const T in M){if(!Object.prototype.hasOwnProperty.call(M,T))continue;if(v>=r){g[T]="[MaxProperties ~]";break}const b=M[T];g[T]=Ln(T,b,d-1,r,a),v++}return o(e),g}function vt(t,e=[]){return[t,e]}function Is(t,e){const[n,r]=t;return[n,[...r,e]]}function Gr(t,e){const n=t[1];for(const r of n)if(e(r,r[0].type))return!0;return!1}function Dn(t){return B.__SENTRY__&&B.__SENTRY__.encodePolyfill?B.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function Ls(t){const[e,n]=t;let r=JSON.stringify(e);function a(s){typeof r=="string"?r=typeof s=="string"?r+s:[Dn(r),s]:r.push(typeof s=="string"?Dn(s):s)}for(const s of n){const[o,l]=s;if(a(`
11${JSON.stringify(o)}
12`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let d;try{d=JSON.stringify(l)}catch{d=JSON.stringify(be(l))}a(d)}}return typeof r=="string"?r:(function(s){const o=s.reduce(((f,g)=>f+g.length),0),l=new Uint8Array(o);let d=0;for(const f of s)l.set(f,d),d+=f.length;return l})(r)}
12function Ds(t){const e=typeof t.data=="string"?Dn(t.data):t.data;return[ce({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const js={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function Hr(t){return js[t]}function Aa(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ns(t,e,n,r){const a=Aa(n),s=t.type&&t.type!=="replay_event"?t.type:"event";(function(l,d){d&&(l.sdk=l.sdk||{},l.sdk.name=l.sdk.name||d.name,l.sdk.version=l.sdk.version||d.version,l.sdk.integrations=[...l.sdk.integrations||[],...d.integrations||[]],l.sdk.packages=[...l.sdk.packages||[],...d.packages||[]])})(t,n&&n.sdk);const o=(function(l,d,f,g){const v=l.sdkProcessingMetadata&&l.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:l.event_id,sent_at:new Date().toISOString(),...d&&{sdk:d},...!!f&&g&&{dsn:Wt(g)},...v&&{trace:ce({...v})}}})(t,a,r,e);return delete t.sdkProcessingMetadata,vt(o,[[{type:s},t]])}function jn(t,e,n,r=0){return new oe(((a,s)=>{const o=t[r];if(e===null||typeof o!="function")a(e);else{const l=o({...e},n);q&&o.id&&l===null&&j.log(`Event processor "${o.id}" dropped event`),tn(l)?l.then((d=>jn(t,d,n,r+1).then(a))).then(null,s):jn(t,l,n,r+1).then(a).then(null,s)}}))}let Mt,Qr,on;function xs(t,e){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:s}=e;(function(o,l){const{extra:d,tags:f,user:g,contexts:v,level:M,transactionName:T}=l,b=ce(d);b&&Object.keys(b).length&&(o.extra={...b,...o.extra});const m=ce(f);m&&Object.keys(m).length&&(o.tags={...m,...o.tags});const _=ce(g);_&&Object.keys(_).length&&(o.user={..._,...o.user});const w=ce(v);w&&Object.keys(w).length&&(o.contexts={...w,...o.contexts}),M&&(o.level=M),T&&o.type!=="transaction"&&(o.transaction=T)})(t,e),r&&(function(o,l){o.contexts={trace:Ts(l),...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:As(l),...o.sdkProcessingMetadata};const d=Ta(l),f=nr(d).description;f&&!o.transaction&&o.type==="transaction"&&(o.transaction=f)})(t,r),(function(o,l){o.fingerprint=o.fingerprint?Array.isArray(o.fingerprint)?o.fingerprint:[o.fingerprint]:[],l&&(o.fingerprint=o.fingerprint.concat(l)),o.fingerprint&&!o.fingerprint.length&&delete o.fingerprint})(t,n),(function(o,l){const d=[...o.breadcrumbs||[],...l];o.breadcrumbs=d.length?d:void 0})(t,a),(function(o,l){o.sdkProcessingMetadata={...o.sdkProcessingMetadata,...l}})(t,s)}function Kr(t,e){const{extra:n,tags:r,user:a,contexts:s,level:o,sdkProcessingMetadata:l,breadcrumbs:d,fingerprint:f,eventProcessors:g,attachments:v,propagationContext:M,transactionName:T,span:b}=e;Ct(t,"extra",n),Ct(t,"tags",r),Ct(t,"user",a),Ct(t,"contexts",s),t.sdkProcessingMetadata=nn(t.sdkProcessingMetadata,l,2),o&&(t.level=o),T&&(t.transactionName=T),b&&(t.span=b),d.length&&(t.breadcrumbs=[...t.breadcrumbs,...d]),f.length&&(t.fingerprint=[...t.fingerprint,...f]),g.length&&(t.eventProcessors=[...t.eventProcessors,...g]),v.length&&(t.attachments=[...t.attachments,...v]),t.propagationContext={...t.propagationContext,...M}}function Ct(t,e,n){t[e]=nn(t[e],n,1)}function Rs(t,e,n,r,a,s){const{normalizeDepth:o=3,normalizeMaxBreadth:l=1e3}=t,d={...e,event_id:e.event_id||n.event_id||ue(),timestamp:e.timestamp||_t()},f=n.integrations||t.integrations.map((b=>b.name));(function(b,m){const{environment:_,release:w,dist:C,maxValueLength:A=250}=m;b.environment=b.environment||_||rr,!b.release&&w&&(b.release=w),!b.dist&&C&&(b.dist=C),b.message&&(b.message=Xe(b.message,A));const I=b.exception&&b.exception.values&&b.exception.values[0];I&&I.value&&(I.value=Xe(I.value,A));const L=b.request;L&&L.url&&(L.url=Xe(L.url,A))})(d,t),(function(b,m){m.length>0&&(b.sdk=b.sdk||{},b.sdk.integrations=[...b.sdk.integrations||[],...m])})(d,f),a&&a.emit("applyFrameMetadata",e),e.type===void 0&&(function(b,m){const _=(function(w){const C=B._sentryDebugIds;if(!C)return{};const A=Object.keys(C);return on&&A.length===Qr||(Qr=A.length,on=A.reduce(((I,L)=>{Mt||(Mt={});const x=Mt[L];if(x)I[x[0]]=x[1];else{const Y=w(L);for(let te=Y.length-1;te>=0;te--){const ze=Y[te],Ge=ze&&ze.filename,He=C[L];if(Ge&&He){I[Ge]=He,Mt[L]=[Ge,He];break}}}return I}),{})),on})(m);
12try{b.exception.values.forEach((w=>{w.stacktrace.frames.forEach((C=>{_&&C.filename&&(C.debug_id=_[C.filename])}))}))}catch{}})(d,t.stackParser);const g=(function(b,m){if(!m)return b;const _=b?b.clone():new Oe;return _.update(m),_})(r,n.captureContext);n.mechanism&&tt(d,n.mechanism);const v=a?a.getEventProcessors():[],M=$t("globalScope",(()=>new Oe)).getScopeData();s&&Kr(M,s.getScopeData()),g&&Kr(M,g.getScopeData());const T=[...n.attachments||[],...M.attachments];return T.length&&(n.attachments=T),xs(d,M),jn([...v,...M.eventProcessors],d,n).then((b=>(b&&(function(m){const _={};try{m.exception.values.forEach((C=>{C.stacktrace.frames.forEach((A=>{A.debug_id&&(A.abs_path?_[A.abs_path]=A.debug_id:A.filename&&(_[A.filename]=A.debug_id),delete A.debug_id)}))}))}catch{}if(Object.keys(_).length===0)return;m.debug_meta=m.debug_meta||{},m.debug_meta.images=m.debug_meta.images||[];const w=m.debug_meta.images;Object.entries(_).forEach((([C,A])=>{w.push({type:"sourcemap",code_file:C,debug_id:A})}))})(b),typeof o=="number"&&o>0?(function(m,_,w){if(!m)return null;const C={...m,...m.breadcrumbs&&{breadcrumbs:m.breadcrumbs.map((A=>({...A,...A.data&&{data:be(A.data,_,w)}})))},...m.user&&{user:be(m.user,_,w)},...m.contexts&&{contexts:be(m.contexts,_,w)},...m.extra&&{extra:be(m.extra,_,w)}};return m.contexts&&m.contexts.trace&&C.contexts&&(C.contexts.trace=m.contexts.trace,m.contexts.trace.data&&(C.contexts.trace.data=be(m.contexts.trace.data,_,w))),m.spans&&(C.spans=m.spans.map((A=>({...A,...A.data&&{data:be(A.data,_,w)}})))),m.contexts&&m.contexts.flags&&C.contexts&&(C.contexts.flags=be(m.contexts.flags,3,w)),C})(b,o,l):b)))}function Xr(t,e){return We().captureEvent(t,e)}function Zr(t){const e=Q(),n=bt(),r=We(),{release:a,environment:s=rr}=e&&e.getOptions()||{},{userAgent:o}=B.navigator||{},l=vs({release:a,environment:s,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...t}),d=n.getSession();return d&&d.status==="ok"&&nt(d,{status:"exited"}),Oa(),n.setSession(l),r.setSession(l),l}function Oa(){const t=bt(),e=We(),n=e.getSession()||t.getSession();n&&(function(r,a){let s={};r.status==="ok"&&(s={status:"exited"}),nt(r,s)})(n),Pa(),t.setSession(),e.setSession()}function Pa(){const t=bt(),e=We(),n=Q(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function ei(t=!1){t?Oa():Pa()}function Fs(t,e,n){return e||`${(function(r){return`${(function(a){const s=a.protocol?`${a.protocol}:`:"",o=a.port?`:${a.port}`:"";return`${s}//${a.host}${o}${a.path?`/${a.path}`:""}/api/`})(r)}${r.projectId}/envelope/`})(t)}?${(function(r,a){const s={sentry_version:"7"};return r.publicKey&&(s.sentry_key=r.publicKey),a&&(s.sentry_client=`${a.name}/${a.version}`),new URLSearchParams(s).toString()})(t,n)}`}const ti=[];function ni(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function ri(t,e,n){if(n[e.name])q&&j.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,ti.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),ti.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",((a,s)=>r(a,s,t)))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),a=Object.assign(((s,o)=>r(s,o,t)),{id:e.name});t.addEventProcessor(a)}q&&j.log(`Integration installed: ${e.name}`)}}class fe extends Error{constructor(e,n="warn"){super(e),this.message=e,this.logLevel=n}}const ii="Not capturing exception because it's already been captured.";class Vs{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Ps(e.dsn):q&&j.warn("No DSN provided, client will not send events."),this._dsn){const r=Fs(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}const n=["enableTracing","tracesSampleRate","tracesSampler"].find((r=>r in e&&e[r]==null));n&&yt((()=>{console.warn(`[Sentry] Deprecation warning: \`${n}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)}))}captureException(e,n,r){const a=ue();if(Fr(e))return q&&j.log(ii),a;const s={event_id:a,...n};return this._process(this.eventFromException(e,s).then((o=>this._captureEvent(o,s,r)))),s.event_id}captureMessage(e,n,r,a){const s={event_id:ue(),...r},o=Kn(e)?e:String(e),l=Cn(e)?this.eventFromMessage(o,n,s):this.eventFromException(e,s);return this._process(l.then((d=>this._captureEvent(d,s,a)))),s.event_id}captureEvent(e,n,r){const a=ue();if(n&&n.originalException&&Fr(n.originalException))return q&&j.log(ii),a;const s={event_id:a,...n},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,s,o||r)),s.event_id}captureSession(e){typeof e.release!="string"?q&&j.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),nt(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;
12return n?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>n.flush(e).then((a=>r&&a))))):$e(!0)}close(e){return this.flush(e).then((n=>(this.getOptions().enabled=!1,this.emit("close"),n)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];ri(this,e,this._integrations),n||ni(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Ns(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Is(r,Ds(s));const a=this.sendEnvelope(r);a&&a.then((s=>this.emit("afterSendEvent",e,s)),null)}sendSession(e){const n=(function(r,a,s,o){const l=Aa(s);return vt({sent_at:new Date().toISOString(),...l&&{sdk:l},...!!o&&a&&{dsn:Wt(a)}},["aggregates"in r?[{type:"sessions"},r]:[{type:"session"},r.toJSON()]])})(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const a=typeof r=="number"?r:1,s=`${e}:${n}`;q&&j.log(`Recording outcome: "${s}"${a>1?` (${a} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+a}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const a=r.indexOf(n);a>-1&&r.splice(a,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach((a=>a(...n)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(n=>(q&&j.error("Error while sending envelope:",n),n))):(q&&j.error("Transport disabled"),$e({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(function(n,r){const a={};return r.forEach((s=>{s&&ri(n,s,a)})),a})(this,e),ni(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",a=!1;const s=n.exception&&n.exception.values;if(s){a=!0;for(const l of s){const d=l.mechanism;if(d&&d.handled===!1){r=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&(nt(e,{...r&&{status:"crashed"},errors:e.errors||Number(a||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new oe((n=>{let r=0;const a=setInterval((()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=1,e&&r>=e&&(clearInterval(a),n(!1)))}),1)}))}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r=We(),a=bt()){const s=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",e,n),e.type||a.setLastEventId(e.event_id||n.event_id),Rs(s,e,n,r,this,a).then((l=>{if(l===null)return l;l.contexts={trace:ws(r),...l.contexts};const d=(function(f,g){const v=g.getPropagationContext();return v.dsc||Ma(v.traceId,f)})(this,r);return l.sdkProcessingMetadata={dynamicSamplingContext:d,...l.sdkProcessingMetadata},l}))}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then((a=>a.event_id),(a=>{q&&(a instanceof fe&&a.logLevel==="log"?j.log(a.message):j.warn(a))}))}_processEvent(e,n,r){const a=this.getOptions(),{sampleRate:s}=a,o=si(e),l=ai(e),d=e.type||"error",f=`before send for type \`${d}\``,g=s===void 0?void 0:(function(T){if(typeof T=="boolean")return Number(T);const b=typeof T=="string"?parseFloat(T):T;if(!(typeof b!="number"||isNaN(b)||b<0||b>1))return b;q&&j.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(T)} of type ${JSON.stringify(typeof T)}.`)})(s);if(l&&typeof g=="number"&&Math.random()>g)return this.recordDroppedEvent("sample_rate","error",e),Yt(new fe(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const v=d==="replay_event"?"replay":d,M=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,M).then((T=>{if(T===null)throw this.recordDroppedEvent("event_processor",v,e),new fe("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return T;const b=(function(m,_,w,C){const{beforeSend:A,beforeSendTransaction:I,beforeSendSpan:L}=_;if(ai(w)&&A)return A(w,C);if(si(w)){if(w.spans&&L){const x=[];for(const Y of w.spans){const te=L(Y);te?x.push(te):(Cs(),m.recordDroppedEvent("before_send","span"))}w.spans=x}if(I){if(w.spans){const x=w.spans.length;w.sdkProcessingMetadata={...w.sdkProcessingMetadata,spanCountBeforeProcessing:x}}return I(w,C)}}return w})(this,a,T,n);return(function(m,_){const w=`${_} must return \`null\` or a valid event.`;if(tn(m))return m.then((C=>{if(!et(C)&&C!==null)throw new fe(w);return C}),(C=>{throw new fe(`${_} rejected with ${C}`)}));if(!et(m)&&m!==null)throw new fe(w);return m})(b,f)})).then((T=>{if(T===null){if(this.recordDroppedEvent("before_send",v,e),o){const _=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw new fe(`${f} returned \`null\`, will not send event.`,"log")}const b=r&&r.getSession();if(!o&&b&&this._updateSessionFromEvent(b,T),o){const _=(T.sdkProcessingMetadata&&T.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(T.spans?T.spans.length:0);_>0&&this.recordDroppedEvent("before_send","span",_)}const m=T.transaction_info;if(o&&m&&T.transaction!==e.transaction){const _="custom";T.transaction_info={...m,source:_}}
12return this.sendEvent(T,n),T})).then(null,(T=>{throw T instanceof fe?T:(this.captureException(T,{data:{__sentry__:!0},originalException:T}),new fe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13Reason: ${T}`))}))}_process(e){this._numProcessing++,e.then((n=>(this._numProcessing--,n)),(n=>(this._numProcessing--,n)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([n,r])=>{const[a,s]=n.split(":");return{reason:a,category:s,quantity:r}}))}_flushOutcomes(){q&&j.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0)return void(q&&j.log("No outcomes to send"));if(!this._dsn)return void(q&&j.log("No dsn provided, will not send outcomes"));q&&j.log("Sending outcomes:",e);const n=(r=e,vt((a=this._options.tunnel&&Wt(this._dsn))?{dsn:a}:{},[[{type:"client_report"},{timestamp:s||_t(),discarded_events:r}]]));var r,a,s;this.sendEnvelope(n)}}function ai(t){return t.type===void 0}function si(t){return t.type==="transaction"}function Us(t){const e=[];function n(r){return e.splice(e.indexOf(r),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(t===void 0||e.length<t))return Yt(new fe("Not adding Promise because buffer limit was reached."));const a=r();return e.indexOf(a)===-1&&e.push(a),a.then((()=>n(a))).then(null,(()=>n(a).then(null,(()=>{})))),a},drain:function(r){return new oe(((a,s)=>{let o=e.length;if(!o)return a(!0);const l=setTimeout((()=>{r&&r>0&&a(!1)}),r);e.forEach((d=>{$e(d).then((()=>{--o||(clearTimeout(l),a(!0))}),s)}))}))}}}function Bs(t,{statusCode:e,headers:n},r=Date.now()){const a={...t},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const l of s.trim().split(",")){const[d,f,,,g]=l.split(":",5),v=parseInt(d,10),M=1e3*(isNaN(v)?60:v);if(f)for(const T of f.split(";"))T==="metric_bucket"&&g&&!g.split(";").includes("custom")||(a[T]=r+M);else a.all=r+M}else o?a.all=r+(function(l,d=Date.now()){const f=parseInt(`${l}`,10);if(!isNaN(f))return 1e3*f;const g=Date.parse(`${l}`);return isNaN(g)?6e4:g-d})(o,r):e===429&&(a.all=r+6e4);return a}function Js(t,e,n=Us(t.bufferSize||64)){let r={};return{send:function(a){const s=[];if(Gr(a,((d,f)=>{const g=Hr(f);if((function(v,M,T=Date.now()){return(function(b,m){return b[m]||b.all||0})(v,M)>T})(r,g)){const v=oi(d,f);t.recordDroppedEvent("ratelimit_backoff",g,v)}else s.push(d)})),s.length===0)return $e({});const o=vt(a[0],s),l=d=>{Gr(o,((f,g)=>{const v=oi(f,g);t.recordDroppedEvent(d,Hr(g),v)}))};return n.add((()=>e({body:Ls(o)}).then((d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&q&&j.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Bs(r,d),d)),(d=>{throw l("network_error"),d})))).then((d=>d),(d=>{if(d instanceof fe)return q&&j.error("Skipped sending event because buffer is full."),l("queue_overflow"),$e({});throw d}))},flush:a=>n.drain(a)}}function oi(t,e){if(e==="event"||e==="transaction")return Array.isArray(t)?t[1]:void 0}const $s=100;function Le(t,e){const n=Q(),r=bt();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=$s}=n.getOptions();if(s<=0)return;const o={timestamp:_t(),...t},l=a?yt((()=>a(o,e))):o;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,s))}let ci;const ui=new WeakMap,qs=()=>({name:"FunctionToString",setupOnce(){ci=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Zn(this),n=ui.has(Q())&&e!==void 0?e:this;return ci.apply(n,t)}}catch{}},setup(t){ui.set(t,!0)}}),Ys=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Ws=(t={})=>({name:"InboundFilters",processEvent(e,n,r){const a=r.getOptions(),s=(function(o={},l={}){return{allowUrls:[...o.allowUrls||[],...l.allowUrls||[]],denyUrls:[...o.denyUrls||[],...l.denyUrls||[]],ignoreErrors:[...o.ignoreErrors||[],...l.ignoreErrors||[],...o.disableErrorDefaults?[]:Ys],ignoreTransactions:[...o.ignoreTransactions||[],...l.ignoreTransactions||[]],ignoreInternal:o.ignoreInternal===void 0||o.ignoreInternal}})(t,a);return(function(o,l){return l.ignoreInternal&&(function(d){try{return d.exception.values[0].type==="SentryError"}catch{}return!1})(o)?(q&&j.warn(`Event dropped due to being internal Sentry Error.
14Event: ${Ce(o)}`),!0):(function(d,f){return d.type||!f||!f.length?!1:(function(g){const v=[];g.message&&v.push(g.message);let M;try{M=g.exception.values[g.exception.values.length-1]}catch{}return M&&M.value&&(v.push(M.value),M.type&&v.push(`${M.type}: ${M.value}`)),v})(d).some((g=>Tt(g,f)))})(o,l.ignoreErrors)?(q&&j.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15Event: ${Ce(o)}`),!0):(function(d){return d.type||!d.exception||!d.exception.values||d.exception.values.length===0?!1:!d.message&&!d.exception.values.some((f=>f.stacktrace||f.type&&f.type!=="Error"||f.value))})(o)?(q&&j.warn(`Event dropped due to not having an error message, error type or stacktrace.
16Event: ${Ce(o)}`),!0):(function(d,f){if(d.type!=="transaction"||!f||!f.length)return!1;const g=d.transaction;return!!g&&Tt(g,f)})(o,l.ignoreTransactions)?(q&&j.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
17Event: ${Ce(o)}`),!0):(function(d,f){if(!f||!f.length)return!1;const g=At(d);return!!g&&Tt(g,f)})(o,l.denyUrls)?(q&&j.warn(`Event dropped due to being matched by \`denyUrls\` option.
18Event: ${Ce(o)}.
19Url: ${At(o)}`),!0):(function(d,f){if(!f||!f.length)return!0;const g=At(d);return!g||Tt(g,f)})(o,l.allowUrls)?!1:(q&&j.warn(`Event dropped due to not being matched by \`allowUrls\` option.
20Event: ${Ce(o)}.
21Url: ${At(o)}`),!0)})(e,s)?null:e}});function At(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?(function(n=[]){for(let r=n.length-1;r>=0;r--){const a=n[r];if(a&&a.filename!=="<anonymous>"&&a.filename!=="[native code]")return a.filename||null}return null})(e):null}catch{return q&&j.error(`Cannot extract url for event ${Ce(t)}`),null}}function zs(t,e,n=250,r,a,s,o){if(!(s.exception&&s.exception.values&&o&&Be(o.originalException,Error)))return;const l=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var d,f;l&&(s.exception.values=(d=Nn(t,e,a,o.originalException,r,s.exception.values,l,0),f=n,d.map((g=>(g.value&&(g.value=Xe(g.value,f)),g)))))}function Nn(t,e,n,r,a,s,o,l){if(s.length>=n+1)return s;let d=[...s];if(Be(r[a],Error)){li(o,l);const f=t(e,r[a]),g=d.length;di(f,a,g,l),d=Nn(t,e,n,r[a],a,[f,...d],f,g)}
21return Array.isArray(r.errors)&&r.errors.forEach(((f,g)=>{if(Be(f,Error)){li(o,l);const v=t(e,f),M=d.length;di(v,`errors[${g}]`,M,l),d=Nn(t,e,n,f,a,[v,...d],v,M)}})),d}function li(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function di(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function cn(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Gs(){"console"in B&&Mn.forEach((function(t){t in B.console&&re(B.console,t,(function(e){return qt[t]=e,function(...n){he("console",{args:n,level:t});const r=qt[t];r&&r.apply(B.console,n)}}))}))}function Hs(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Qs=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if((function(n,r){return r?!!((function(a,s){const o=a.message,l=s.message;return!(!o&&!l||o&&!l||!o&&l||o!==l||!hi(a,s)||!fi(a,s))})(n,r)||(function(a,s){const o=pi(s),l=pi(a);return!(!o||!l||o.type!==l.type||o.value!==l.value||!hi(a,s)||!fi(a,s))})(n,r)):!1})(e,t))return q&&j.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}};function fi(t,e){let n=Lr(t),r=Lr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let a=0;a<r.length;a++){const s=r[a],o=n[a];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function hi(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function pi(t){return t.exception&&t.exception.values&&t.exception.values[0]}function gi(t){return t===void 0?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}const un=B;function xn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ks(){if(typeof EdgeRuntime=="string")return!0;if(!(function(){if(!("fetch"in un))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}})())return!1;if(xn(un.fetch))return!0;let t=!1;const e=un.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");
21n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=xn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Ye&&j.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Xs(t,e){const n="fetch";Ve(n,t),Ue(n,(()=>(function(r,a=!1){a&&!Ks()||re(B,"fetch",(function(s){return function(...o){const l=new Error,{method:d,url:f}=(function(v){if(v.length===0)return{method:"GET",url:""};if(v.length===2){const[T,b]=v;return{url:mi(T),method:Rn(b,"method")?String(b.method).toUpperCase():"GET"}}const M=v[0];return{url:mi(M),method:Rn(M,"method")?String(M.method).toUpperCase():"GET"}})(o),g={args:o,fetchData:{method:d,url:f},startTimestamp:1e3*ke(),virtualError:l};return r||he("fetch",{...g}),s.apply(B,o).then((async v=>(r?r(v):he("fetch",{...g,endTimestamp:1e3*ke(),response:v}),v)),(v=>{throw he("fetch",{...g,endTimestamp:1e3*ke(),error:v}),Qn(v)&&v.stack===void 0&&(v.stack=l.stack,Je(v,"framesToPop",1)),v}))}}))})(void 0,e)))}function Rn(t,e){return!!t&&typeof t=="object"&&!!t[e]}function mi(t){return typeof t=="string"?t:t?Rn(t,"url")?t.url:t.toString?t.toString():"":""}const Ot=B,G=B;let Fn=0;function vi(){return Fn>0}function it(t,e={}){if(!(function(r){return typeof r=="function"})(t))return t;try{const r=t.__sentry_wrapped__;if(r)return typeof r=="function"?r:t;if(Zn(t))return t}catch{return t}const n=function(...r){try{const a=r.map((s=>it(s,e)));return t.apply(this,a)}catch(a){throw Fn++,setTimeout((()=>{Fn--})),(function(...s){const o=tr(Zt());if(s.length===2){const[l,d]=s;return l?o.withSetScope(l,d):o.withScope(d)}o.withScope(s[0])})((s=>{var o;s.addEventProcessor((l=>(e.mechanism&&(On(l,void 0),tt(l,e.mechanism)),l.extra={...l.extra,arguments:r},l))),o=a,We().captureException(o,void 0)})),a}};try{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}catch{}Sa(n,t),Je(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}const rn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ir(t,e){const n=ar(t,e),r={type:to(e),value:no(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Zs(t,e,n,r){const a=Q(),s=a&&a.getOptions().normalizeDepth,o=(function(f){for(const g in f)if(Object.prototype.hasOwnProperty.call(f,g)){const v=f[g];if(v instanceof Error)return v}})(e),l={__serialized__:Ca(e,s)};if(o)return{exception:{values:[ir(t,o)]},extra:l};const d={exception:{values:[{type:en(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:ro(e,{isUnhandledRejection:r})}]},extra:l};if(n){const f=ar(t,n);f.length&&(d.exception.values[0].stacktrace={frames:f})}return d}function ln(t,e){return{exception:{values:[ir(t,e)]}}}function ar(t,e){const n=e.stacktrace||e.stack||"",r=(function(s){return s&&eo.test(s.message)?1:0})(e),a=(function(s){return typeof s.framesToPop=="number"?s.framesToPop:0})(e);try{return t(n,r,a)}catch{}return[]}const eo=/Minified React error #\d+;/i;function Ia(t){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&t instanceof WebAssembly.Exception}function to(t){const e=t&&t.name;return!e&&Ia(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function no(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:Ia(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function Vn(t,e,n,r,a){let s;if(_a(e)&&e.error)return ln(t,e.error);if(jr(e)||at(e,"DOMException")){const o=e;if("stack"in e)s=ln(t,e);else{const l=o.name||(jr(o)?"DOMError":"DOMException"),d=o.message?`${l}: ${o.message}`:l;s=Un(t,d,n,r),On(s,d)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return Qn(e)?ln(t,e):et(e)||en(e)?(s=Zs(t,e,n,a),tt(s,{synthetic:!0}),s):(s=Un(t,e,n,r),On(s,`${e}`),tt(s,{synthetic:!0}),s)}function Un(t,e,n,r){const a={};if(r&&n){const s=ar(t,n);s.length&&(a.exception={values:[{value:e,stacktrace:{frames:s}}]}),tt(a,{synthetic:!0})}
21if(Kn(e)){const{__sentry_template_string__:s,__sentry_template_values__:o}=e;return a.logentry={message:s,params:o},a}return a.message=e,a}function ro(t,{isUnhandledRejection:e}){const n=(function(a,s=40){const o=Object.keys(ka(a));o.sort();const l=o[0];if(!l)return"[object has no keys]";if(l.length>=s)return Xe(l,s);for(let d=o.length;d>0;d--){const f=o.slice(0,d).join(", ");if(!(f.length>s))return d===o.length?f:Xe(f,s)}return""})(t),r=e?"promise rejection":"exception";return _a(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:en(t)?`Event \`${(function(a){try{const s=Object.getPrototypeOf(a);return s?s.constructor.name:void 0}catch{}})(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}class io extends Vs{constructor(e){const n={parentSpanIsAlwaysRootSpan:!0,...e};(function(r,a,s=[a],o="npm"){const l=r._metadata||{};l.sdk||(l.sdk={name:`sentry.javascript.${a}`,packages:s.map((d=>({name:`${o}:@sentry/${d}`,version:Fe}))),version:Fe}),r._metadata=l})(n,"browser",["browser"],G.SENTRY_SDK_SOURCE||"npm"),super(n),n.sendClientReports&&G.document&&G.document.addEventListener("visibilitychange",(()=>{G.document.visibilityState==="hidden"&&this._flushOutcomes()}))}eventFromException(e,n){return(function(r,a,s,o){const l=Vn(r,a,s&&s.syntheticException||void 0,o);return tt(l),l.level="error",s&&s.event_id&&(l.event_id=s.event_id),$e(l)})(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return(function(a,s,o="info",l,d){const f=Un(a,s,l&&l.syntheticException||void 0,d);return f.level=o,l&&l.event_id&&(f.event_id=l.event_id),$e(f)})(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(rn&&j.warn("SDK not enabled, will not capture user feedback."));const n=(function(r,{metadata:a,tunnel:s,dsn:o}){const l={event_id:r.event_id,sent_at:new Date().toISOString(),...a&&a.sdk&&{sdk:{name:a.sdk.name,version:a.sdk.version}},...!!s&&!!o&&{dsn:Wt(o)}};return vt(l,[(function(f){return[{type:"user_report"},f]})(r)])})(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}}const ao=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ee=B;let yi,dn,fn,Pt;function so(){if(!ee.document)return;const t=he.bind(null,"dom"),e=_i(t,!0);ee.document.addEventListener("click",e,!1),ee.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((n=>{const r=ee[n],a=r&&r.prototype;a&&a.hasOwnProperty&&a.hasOwnProperty("addEventListener")&&(re(a,"addEventListener",(function(s){return function(o,l,d){if(o==="click"||o=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=f[o]=f[o]||{refCount:0};if(!g.handler){const v=_i(t);g.handler=v,s.call(this,o,v,d)}g.refCount++}catch{}return s.call(this,o,l,d)}})),re(a,"removeEventListener",(function(s){return function(o,l,d){if(o==="click"||o=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},g=f[o];g&&(g.refCount--,g.refCount<=0&&(s.call(this,o,g.handler,d),g.handler=void 0,delete f[o]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,l,d)}})))}))}function _i(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=(function(s){try{return s.target}catch{return null}})(n);if((function(s,o){return s==="keypress"&&(!o||!o.tagName||o.tagName!=="INPUT"&&o.tagName!=="TEXTAREA"&&!o.isContentEditable)})(n.type,r))return;Je(n,"_sentryCaptured",!0),r&&!r._sentryId&&Je(r,"_sentryId",ue());const a=n.type==="keypress"?"input":n.type;(function(s){if(s.type!==dn)return!1;try{if(!s.target||s.target._sentryId!==fn)return!1}catch{}return!0})(n)||(t({event:n,name:a,global:e}),dn=n.type,fn=r?r._sentryId:void 0),clearTimeout(yi),yi=ee.setTimeout((()=>{fn=void 0,dn=void 0}),1e3)}}function La(t){const e="history";Ve(e,t),Ue(e,oo)}function oo(){if(!(function(){const n=Ot.chrome,r=n&&n.app&&n.app.runtime,a="history"in Ot&&!!Ot.history.pushState&&!!Ot.history.replaceState;return!r&&a})())return;const t=ee.onpopstate;function e(n){return function(...r){const a=r.length>2?r[2]:void 0;if(a){const s=Pt,o=String(a);Pt=o,he("history",{from:s,to:o})}return n.apply(this,r)}}ee.onpopstate=function(...n){const r=ee.location.href,a=Pt;if(Pt=r,he("history",{from:a,to:r}),t)try{return t.apply(this,n)}catch{}},re(ee.history,"pushState",e),re(ee.history,"replaceState",e)}const Ft={};function bi(t){Ft[t]=void 0}const ft="__sentry_xhr_v3__";function co(){if(!ee.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const a=new Error,s=1e3*ke(),o=we(r[0])?r[0].toUpperCase():void 0,l=(function(f){if(we(f))return f;try{return f.toString()}catch{}})(r[1]);if(!o||!l)return e.apply(n,r);
21n[ft]={method:o,url:l,request_headers:{}},o==="POST"&&l.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const d=()=>{const f=n[ft];if(f&&n.readyState===4){try{f.status_code=n.status}catch{}he("xhr",{endTimestamp:1e3*ke(),startTimestamp:s,xhr:n,virtualError:a})}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(f,g,v)=>(d(),f.apply(g,v))}):n.addEventListener("readystatechange",d),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(f,g,v){const[M,T]=v,b=g[ft];return b&&we(M)&&we(T)&&(b.request_headers[M.toLowerCase()]=T),f.apply(g,v)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const a=n[ft];return a?(r[0]!==void 0&&(a.body=r[0]),he("xhr",{startTimestamp:1e3*ke(),xhr:n}),e.apply(n,r)):e.apply(n,r)}})}function uo(t,e=(function(n){const r=Ft[n];if(r)return r;let a=ee[n];if(xn(a))return Ft[n]=a.bind(ee);const s=ee.document;if(s&&typeof s.createElement=="function")try{const o=s.createElement("iframe");o.hidden=!0,s.head.appendChild(o);const l=o.contentWindow;l&&l[n]&&(a=l[n]),s.head.removeChild(o)}catch(o){ao&&j.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,o)}return a&&(Ft[n]=a.bind(ee))})("fetch")){let n=0,r=0;return Js(t,(function(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return bi("fetch"),Yt("No fetch implementation available");try{return e(t.url,o).then((l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}})))}catch(l){return bi("fetch"),n-=s,r--,Yt(l)}}))}function hn(t,e,n,r){const a={filename:t,function:e==="<anonymous>"?Re:e,in_app:!0};return n!==void 0&&(a.lineno=n),r!==void 0&&(a.colno=r),a}const lo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ho=/\((\S*)(?::(\d+))(?::(\d+))\)/,po=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,go=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mo=(function(...t){const e=t.sort(((n,r)=>n[0]-r[0])).map((n=>n[1]));return(n,r=0,a=0)=>{const s=[],o=n.split(`
22`);for(let l=r;l<o.length;l++){const d=o[l];if(d.length>1024)continue;const f=Or.test(d)?d.replace(Or,"$1"):d;if(!f.match(/\S*Error: /)){for(const g of e){const v=g(f);if(v){s.push(v);break}}if(s.length>=50+a)break}}return(function(l){if(!l.length)return[];const d=Array.from(l);return/sentryWrapped/.test(Et(d).function||"")&&d.pop(),d.reverse(),Pr.test(Et(d).function||"")&&(d.pop(),Pr.test(Et(d).function||"")&&d.pop()),d.slice(0,50).map((f=>({...f,filename:f.filename||Et(d).filename,function:f.function||Re})))})(s.slice(a))}})([30,t=>{const e=lo.exec(t);if(e){const[,r,a,s]=e;return hn(r,Re,+a,+s)}const n=fo.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const s=ho.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}const[r,a]=wi(n[1]||Re,n[2]);return hn(a,r,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,t=>{const e=po.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=go.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],r=e[1]||Re;return[r,n]=wi(r,n),hn(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),wi=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Re,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Si=1024,vo=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(n){var r;e.console&&(function(a){const s="console";Ve(s,a),Ue(s,Gs)})((function(a){return function(s){if(Q()!==a)return;const o={category:"console",data:{arguments:s.args,logger:"console"},level:Hs(s.level),message:Nr(s.args," ")};if(s.level==="assert"){if(s.args[0]!==!1)return;o.message=`Assertion failed: ${Nr(s.args.slice(1)," ")||"console.assert"}`,o.data.arguments=s.args.slice(1)}Le(o,{input:s.args,level:s.level})}}
22)(n)),e.dom&&(r=(function(a,s){return function(o){if(Q()!==a)return;let l,d,f=typeof s=="object"?s.serializeAttribute:void 0,g=typeof s=="object"&&typeof s.maxStringLength=="number"?s.maxStringLength:void 0;g&&g>Si&&(rn&&j.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${g} was configured. Sentry will use 1024 instead.`),g=Si),typeof f=="string"&&(f=[f]);try{const M=o.event,T=(function(b){return!!b&&!!b.target})(M)?M.target:M;l=wa(T,{keyAttrs:f,maxStringLength:g}),d=(function(b){if(!Xn.HTMLElement)return null;let m=b;for(let _=0;_<5;_++){if(!m)return null;if(m instanceof HTMLElement){if(m.dataset.sentryComponent)return m.dataset.sentryComponent;if(m.dataset.sentryElement)return m.dataset.sentryElement}m=m.parentNode}return null})(T)}catch{l="<unknown>"}if(l.length===0)return;const v={category:`ui.${o.name}`,message:l};d&&(v.data={"ui.component_name":d}),Le(v,{event:o.event,name:o.name,global:o.global})}})(n,e.dom),Ve("dom",r),Ue("dom",so)),e.xhr&&(function(a){Ve("xhr",a),Ue("xhr",co)})((function(a){return function(s){if(Q()!==a)return;const{startTimestamp:o,endTimestamp:l}=s,d=s.xhr[ft];if(!o||!l||!d)return;const{method:f,url:g,status_code:v,body:M}=d,T={method:f,url:g,status_code:v},b={xhr:s.xhr,input:M,startTimestamp:o,endTimestamp:l};Le({category:"xhr",data:T,type:"http",level:gi(v)},b)}})(n)),e.fetch&&Xs((function(a){return function(s){if(Q()!==a)return;const{startTimestamp:o,endTimestamp:l}=s;if(l&&(!s.fetchData.url.match(/sentry_key/)||s.fetchData.method!=="POST"))if(s.error)Le({category:"fetch",data:s.fetchData,level:"error",type:"http"},{data:s.error,input:s.args,startTimestamp:o,endTimestamp:l});else{const d=s.response,f={...s.fetchData,status_code:d&&d.status},g={input:s.args,response:d,startTimestamp:o,endTimestamp:l};Le({category:"fetch",data:f,type:"http",level:gi(f.status_code)},g)}}})(n)),e.history&&La((function(a){return function(s){if(Q()!==a)return;let o=s.from,l=s.to;const d=cn(G.location.href);let f=o?cn(o):void 0;const g=cn(l);f&&f.path||(f=d),d.protocol===g.protocol&&d.host===g.host&&(l=g.relative),d.protocol===f.protocol&&d.host===f.host&&(o=f.relative),Le({category:"navigation",data:{from:o,to:l}})}})(n)),e.sentry&&n.on("beforeSendEvent",(function(a){return function(s){Q()===a&&Le({category:"sentry."+(s.type==="transaction"?"transaction":"event"),event_id:s.event_id,level:s.level,message:Ce(s)},{event:s})}})(n))}}},yo=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],_o=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&re(G,"setTimeout",ki),e.setInterval&&re(G,"setInterval",ki),e.requestAnimationFrame&&re(G,"requestAnimationFrame",bo),e.XMLHttpRequest&&"XMLHttpRequest"in G&&re(XMLHttpRequest.prototype,"send",wo);const n=e.eventTarget;n&&(Array.isArray(n)?n:yo).forEach(So)}}};function ki(t){return function(...e){const n=e[0];return e[0]=it(n,{mechanism:{data:{function:Ae(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function bo(t){return function(e){return t.apply(this,[it(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ae(t)},handled:!1,type:"instrument"}})])}}function wo(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((r=>{r in n&&typeof n[r]=="function"&&re(n,r,(function(a){const s={mechanism:{data:{function:r,handler:Ae(a)},handled:!1,type:"instrument"}},o=Zn(a);return o&&(s.mechanism.data.handler=Ae(o)),it(a,s)}))})),t.apply(this,e)}}function So(t){const e=G[t],n=e&&e.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(re(n,"addEventListener",(function(r){return function(a,s,o){try{typeof s.handleEvent=="function"&&(s.handleEvent=it(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ae(s),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[a,it(s,{mechanism:{data:{function:"addEventListener",handler:Ae(s),target:t},handled:!1,type:"instrument"}}),o])}})),re(n,"removeEventListener",(function(r){return function(a,s,o){try{const l=s.__sentry_wrapped__;l&&r.call(this,a,l,o)}catch{}return r.call(this,a,s,o)}})))}const ko=()=>({name:"BrowserSession",setupOnce(){G.document!==void 0?(Zr({ignoreDuration:!0}),ei(),La((({from:t,to:e})=>{t!==void 0&&t!==e&&(Zr({ignoreDuration:!0}),ei())}))):rn&&j.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),Eo=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&((function(r){(function(a){const s="error";Ve(s,a),Ue(s,hs)})((a=>{const{stackParser:s,attachStacktrace:o}=Ti();if(Q()!==r||vi())return;const{msg:l,url:d,line:f,column:g,error:v}=a,M=(function(T,b,m,_){const w=T.exception=T.exception||{},C=w.values=w.values||[],A=C[0]=C[0]||{},I=A.stacktrace=A.stacktrace||{},L=I.frames=I.frames||[],x=_,Y=m,te=we(b)&&b.length>0?b:(function(){try{return Xn.document.location.href}catch{return""}})();return L.length===0&&L.push({colno:x,filename:te,function:Re,in_app:!0,lineno:Y}),T})(Vn(s,v||l,void 0,o,!1),d,f,g);M.level="error",Xr(M,{originalException:v,mechanism:{handled:!1,type:"onerror"}})}))})(n),Ei("onerror")),e.onunhandledrejection&&((function(r){(function(a){const s="unhandledrejection";Ve(s,a),Ue(s,ps)})((a=>{const{stackParser:s,attachStacktrace:o}=Ti();if(Q()!==r||vi())return;const l=(function(f){if(Cn(f))return f;try{if("reason"in f)return f.reason;if("detail"in f&&"reason"in f.detail)return f.detail.reason}catch{}return f})(a),d=Cn(l)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(l)}`}]}}:Vn(s,l,void 0,o,!0);d.level="error",Xr(d,{originalException:l,mechanism:{handled:!1,type:"onunhandledrejection"}})}))})(n),Ei("onunhandledrejection"))}}};function Ei(t){rn&&j.log(`Global Handler attached: ${t}`)}function Ti(){const t=Q();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const To=()=>({name:"HttpContext",preprocessEvent(t){if(!G.navigator&&!G.location&&!G.document)return;const e=t.request&&t.request.url||G.location&&G.location.href,{referrer:n}=G.document||{},{userAgent:r}=G.navigator||{},a={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:a};t.request=s}}),Mo=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(r,a,s){const o=s.getOptions();zs(ir,o.stackParser,o.maxValueLength,n,e,r,a)}}};var Mi="new",Ci="loading",Ai="loaded",Bn="joining-meeting",xe="joined-meeting",De="left-meeting",Ee="error",Co="playable",pn="unknown",Ao="full",Oo="base",Oi="no-room",Po="end-of-life",Io="connection-error",Lo="iframe-ready-for-launch-config",Do="iframe-launch-config",jo="theme-updated",No="loading",xo="load-attempt-failed",Pi="loaded",Ro="started-camera",Fo="camera-error",Vo="joining-meeting",Uo="joined-meeting",Bo="left-meeting",Jo="participant-joined",$o="participant-updated",qo="participant-left",Yo="participant-counts-updated",Wo="access-state-updated",zo="meeting-session-summary-updated",Go="meeting-session-state-updated",Ho="waiting-participant-added",Qo="waiting-participant-updated",Ko="waiting-participant-removed",Xo="track-started",Zo="track-stopped",ec="transcription-started",tc="transcription-stopped",nc="transcription-error",Ii="recording-started",Li="recording-stopped",rc="recording-stats",ic="recording-error",ac="recording-upload-completed",sc="recording-data",oc="app-message",cc="transcription-message",uc="remote-media-player-started",lc="remote-media-player-updated",dc="remote-media-player-stopped",fc="local-screen-share-started",hc="local-screen-share-stopped",pc="local-screen-share-canceled",gc="active-speaker-change",mc="active-speaker-mode-change",vc="network-quality-change",yc="network-connection",_c="cpu
22-load-change",bc="face-counts-updated",It="fullscreen",Lt="exited-fullscreen",wc="live-streaming-started",Sc="live-streaming-updated",kc="live-streaming-stopped",Ec="live-streaming-error",Tc="lang-updated",Mc="receive-settings-updated",Di="input-settings-updated",ji="nonfatal-error",Ni="error",gn=4096,xi=102400,mn="iframe-call-message",Ri="local-screen-start",Fi="daily-method-update-live-streaming-endpoints",Dt="transmit-log",Se="daily-custom-track",Vt={NONE:"none",BGBLUR:"background-blur",BGIMAGE:"background-image",FACE_DETECTION:"face-detection"},Da={NONE:"none",NOISE_CANCELLATION:"noise-cancellation"},Jn={PLAY:"play",PAUSE:"pause"},vn=["jpg","png","jpeg"],Cc="add-endpoints",Ac="remove-endpoints",Vi="sip-call-transfer";function le(){return!F()&&typeof window<"u"&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""}function F(){return typeof navigator<"u"&&navigator.product&&navigator.product==="ReactNative"}function ja(){return navigator&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia}function Oc(){return!!(navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)&&((function(t,e){if(!t||!e)return!0;switch(t){case"Chrome":return e.major>=75;case"Safari":return RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection")&&!(e.major===13&&e.minor===0&&e.point===0);case"Firefox":return e.major>=67}return!0})(qe(),zt())||F())}function Ui(){if(F()||!document)return!1;var t=document.createElement("iframe");return!!t.requestFullscreen||!!t.webkitRequestFullscreen}var $n="none",Pc="software",Ic="hardware",Lc=(function(){try{var t,e=document.createElement("canvas"),n=!1;(t=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0}))||(n=!0,t=e.getContext("webgl2"));var r=t!=null;return e.remove(),r?n?Pc:Ic:$n}catch{return $n}})();function Na(){var t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return!F()&&Lc!==$n&&(t?(function(){return Bi()?!1:["Chrome","Firefox"].includes(qe())})():(function(){if(Bi())return!1;var e=qe();if(e==="Safari"){var n=or();if(n.major<15||n.major===15&&n.minor<4)return!1}return e==="Chrome"?sr().major>=77:e==="Firefox"?cr().major>=97:["Chrome","Firefox","Safari"].includes(e)})())}function xa(){if(F()||Ra()||typeof AudioWorkletNode>"u")return!1;switch(qe()){case"Chrome":case"Firefox":return!0;case"Safari":var t=zt();return t.major>17||t.major===17&&t.minor>=4}return!1}function yn(){return ja()&&typeof MediaStreamTrack<"u"&&!(function(){var t,e=qe();if(!le())return!0;switch(e){case"Chrome":return(t=sr()).major&&t.major>0&&t.major<75;case"Firefox":return(t=cr()).major<91;case"Safari":return(t=or()).major<13||t.major===13&&t.minor<1;default:return!0}})()}function Ra(){return le().match(/Linux; Android/)}function Bi(){var t,e=le(),n=e.match(/Mac/)&&(!F()&&typeof window<"u"&&(t=window)!==null&&t!==void 0&&(t=t.navigator)!==null&&t!==void 0&&t.maxTouchPoints?window.navigator.maxTouchPoints:0)>=5;return!!(e.match(/Mobi/)||e.match(/Android/)||n)||!!le().match(/DailyAnd\//)||void 0}function qe(){if(typeof window<"u"){var t=le();return Fa()?"Safari":t.indexOf("Edge")>-1?"Edge":t.match(/Chrome\//)?"Chrome":t.indexOf("Safari")>-1||Va()?"Safari":t.indexOf("Firefox")>-1?"Firefox":t.indexOf("MSIE")>-1||t.indexOf(".NET")>-1?"IE":"Unknown Browser"}}function zt(){switch(qe()){case"Chrome":return sr();case"Safari":return or();case"Firefox":return cr();case"Edge":return(function(){var t=0,e=0;if(typeof window<"u"){var n=le().match(/Edge\/(\d+).(\d+)/);if(n)try{t=parseInt(n[1]),e=parseInt(n[2])}catch{}}return{major:t,minor:e}})()}}function sr(){var t=0,e=0,n=0,r=0,a=!1;if(typeof window<"u"){var s=le(),o=s.match(/Chrome\/(\d+).(\d+).(\d+).(\d+)/);if(o)try{t=parseInt(o[1]),e=parseInt(o[2]),n=parseInt(o[3]),r=parseInt(o[4]),a=s.indexOf("OPR/")>-1}catch{}}return{major:t,minor:e,build:n,patch:r,opera:a}}function Fa(){return!!le().match(/iPad|iPhone|iPod/i)&&ja()}function Va(){return le().indexOf("AppleWebKit/605.1.15")>-1}function or(){var t=0,e=0,n=0;if(typeof window<"u"){var r=le().match(/Version\/(\d+).(\d+)(.(\d+))?/);if(r)try{t=parseInt(r[1]),e=parseInt(r[2]),n=parseInt(r[4])}catch{}else(Fa()||Va())&&(t=14,e=0,n=3)}return{major:t,minor:e,point:n}}function cr(){var t=0,e=0;if(typeof window<"u"){var n=le().match(/Firefox\/(\d+).(\d+)/);if(n)try{t=parseInt(n[1]),e=parseInt(n[2])}catch{}}return{major:t,minor:e}}var Ua=(function(){return ae((function t(){ie(this,t)}),[{key:"addListenerForMessagesFromCallMachine",value:function(t,e,n){lt()}},{key:"addListenerForMessagesFromDailyJs",value:function(t,e,n){lt()}},{key:"sendMessageToCallMachine",value:function(t,e,n,r){lt()}},{key:"sendMessageToDailyJs",value:function(t,e){lt()}},{key:"removeListener",value:function(t){lt()}}])})();function Ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,r)}return n}function _n(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
22e%2?Ji(Object(n),!0).forEach((function(r){ye(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function Ba(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Ba=function(){return!!t})()}var Dc=(function(){function t(){var e,n,r,a;return ie(this,t),n=this,r=pe(r=t),(e=Qt(n,Ba()?Reflect.construct(r,[],pe(n).constructor):r.apply(n,a)))._wrappedListeners={},e._messageCallbacks={},e}return Kt(t,Ua),ae(t,[{key:"addListenerForMessagesFromCallMachine",value:function(e,n,r){var a=this,s=function(o){if(o.data&&o.data.what==="iframe-call-message"&&(!o.data.callClientId||o.data.callClientId===n)&&(!o.data.from||o.data.from!=="module")){var l=_n({},o.data);if(delete l.from,l.callbackStamp&&a._messageCallbacks[l.callbackStamp]){var d=l.callbackStamp;a._messageCallbacks[d].call(r,l),delete a._messageCallbacks[d]}delete l.what,delete l.callbackStamp,e.call(r,l)}};this._wrappedListeners[e]=s,window.addEventListener("message",s)}},{key:"addListenerForMessagesFromDailyJs",value:function(e,n,r){var a=function(s){var o;if(!(!s.data||s.data.what!==mn||!s.data.action||s.data.from&&s.data.from!=="module"||s.data.callClientId&&n&&s.data.callClientId!==n||s!=null&&(o=s.data)!==null&&o!==void 0&&o.callFrameId)){var l=s.data;e.call(r,l)}};this._wrappedListeners[e]=a,window.addEventListener("message",a)}},{key:"sendMessageToCallMachine",value:function(e,n,r,a){if(!r)throw new Error("undefined callClientId. Are you trying to use a DailyCall instance previously destroyed?");var s=_n({},e);if(s.what=mn,s.from="module",s.callClientId=r,n){var o=Xt();this._messageCallbacks[o]=n,s.callbackStamp=o}var l=a?a.contentWindow:window,d=this._callMachineTargetOrigin(a);d&&l.postMessage(s,d)}},{key:"sendMessageToDailyJs",value:function(e,n){e.what=mn,e.callClientId=n,e.from="embedded",window.postMessage(e,this._targetOriginFromWindowLocation())}},{key:"removeListener",value:function(e){var n=this._wrappedListeners[e];n&&(window.removeEventListener("message",n),delete this._wrappedListeners[e])}},{key:"forwardPackagedMessageToCallMachine",value:function(e,n,r){var a=_n({},e);a.callClientId=r;var s=n?n.contentWindow:window,o=this._callMachineTargetOrigin(n);o&&s.postMessage(a,o)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(e,n){var r=function(a){if(a.data&&a.data.what==="iframe-call-message"&&(!a.data.callClientId||a.data.callClientId===n)&&(!a.data.from||a.data.from!=="module")){var s=a.data;e(s)}};return this._wrappedListeners[e]=r,window.addEventListener("message",r),e}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(e){var n=this._wrappedListeners[e];n&&(window.removeEventListener("message",n),delete this._wrappedListeners[e])}},{key:"_callMachineTargetOrigin",value:function(e){return e?e.src?new URL(e.src).origin:void 0:this._targetOriginFromWindowLocation()}},{key:"_targetOriginFromWindowLocation",value:function(){return window.location.protocol==="file:"?"*":window.location.origin}}])})();function $i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,r)}return n}function Ja(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Ja=function(){return!!t})()}var jc=(function(){function t(){var e,n,r,a;return ie(this,t),n=this,r=pe(r=t),e=Qt(n,Ja()?Reflect.construct(r,[],pe(n).constructor):r.apply(n,a)),global.callMachineToDailyJsEmitter=global.callMachineToDailyJsEmitter||new Tn.EventEmitter,global.dailyJsToCallMachineEmitter=global.dailyJsToCallMachineEmitter||new Tn.EventEmitter,e._wrappedListeners={},e._messageCallbacks={},e}return Kt(t,Ua),ae(t,[{key:"addListenerForMessagesFromCallMachine",value:function(e,n,r){this._addListener(e,global.callMachineToDailyJsEmitter,n,r,"received call machine message")}},{key:"addListenerForMessagesFromDailyJs",value:function(e,n,r){this._addListener(e,global.dailyJsToCallMachineEmitter,n,r,"received daily-js message")}},{key:"sendMessageToCallMachine",value:function(e,n,r){this._sendMessage(e,global.dailyJsToCallMachineEmitter,r,n,"sending message to call machine")}},{key:"sendMessageToDailyJs",value:function(e,n){this._sendMessage(e,global.callMachineToDailyJsEmitter,n,null,"sending message to daily-js")}},{key:"removeListener",value:function(e){var n=this._wrappedListeners[e];n&&(global.callMachineToDailyJsEmitter.removeListener("message",n),global.dailyJsToCallMachineEmitter.removeListener("message",n),delete this._wrappedListeners[e])}},{key:"_addListener",value:function(e,n,r,a,s){var o=this,l=function(d){if(d.callClientId===r){if(d.callbackStamp&&o._messageCallbacks[d.callbackStamp]){var f=d.c
22allbackStamp;o._messageCallbacks[f].call(a,d),delete o._messageCallbacks[f]}e.call(a,d)}};this._wrappedListeners[e]=l,n.addListener("message",l)}},{key:"_sendMessage",value:function(e,n,r,a,s){var o=(function(d){for(var f=1;f<arguments.length;f++){var g=arguments[f]!=null?arguments[f]:{};f%2?$i(Object(g),!0).forEach((function(v){ye(d,v,g[v])})):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(g)):$i(Object(g)).forEach((function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(g,v))}))}return d})({},e);if(o.callClientId=r,a){var l=Xt();this._messageCallbacks[l]=a,o.callbackStamp=l}n.emit("message",o)}}])})(),qn="replace",Yn="shallow-merge",qi=[qn,Yn],Nc=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.data,r=e.mergeStrategy,a=r===void 0?qn:r;ie(this,t),t._validateMergeStrategy(a),t._validateData(n,a),this.mergeStrategy=a,this.data=n}return ae(t,[{key:"isNoOp",value:function(){return t.isNoOpUpdate(this.data,this.mergeStrategy)}}],[{key:"isNoOpUpdate",value:function(e,n){return Object.keys(e).length===0&&n===Yn}},{key:"_validateMergeStrategy",value:function(e){if(!qi.includes(e))throw Error("Unrecognized mergeStrategy provided. Options are: [".concat(qi,"]"))}},{key:"_validateData",value:function(e,n){if(!(function(l){if(l==null||U(l)!=="object")return!1;var d=Object.getPrototypeOf(l);return d==null||d===Object.prototype})(e))throw Error("Meeting session data must be a plain (map-like) object");var r;try{if(r=JSON.stringify(e),n===qn){var a=JSON.parse(r);Z(a,e)||console.warn("The meeting session data provided will be modified when serialized.",a,e)}else if(n===Yn){for(var s in e)if(Object.hasOwnProperty.call(e,s)&&e[s]!==void 0){var o=JSON.parse(JSON.stringify(e[s]));Z(e[s],o)||console.warn("At least one key in the meeting session data provided will be modified when serialized.",o,e[s])}}}catch(l){throw Error("Meeting session data must be serializable to JSON: ".concat(l))}if(r.length>xi)throw Error("Meeting session data is too large (".concat(r.length," characters). Maximum size suppported is ").concat(xi,"."))}}])})();function $a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return($a=function(){return!!t})()}function Wn(t){var e=typeof Map=="function"?new Map:void 0;return Wn=function(n){if(n===null||!(function(a){try{return Function.toString.call(a).indexOf("[native code]")!==-1}catch{return typeof a=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return(function(a,s,o){if($a())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,s);var d=new(a.bind.apply(a,l));return o&&mt(d,o.prototype),d})(n,arguments,pe(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mt(r,n)},Wn(t)}function qa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(qa=function(){return!!t})()}function Yi(t){var e,n=(e=window._daily)===null||e===void 0?void 0:e.pendings;if(n){var r=n.indexOf(t);r!==-1&&n.splice(r,1)}}var xc=(function(){return ae((function t(e){ie(this,t),this._currentLoad=null,this._callClientId=e}),[{key:"load",value:function(){var t,e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;if(this.loaded)return window._daily.instances[this._callClientId].callMachine.reset(),void r(!0);t=this._callClientId,window._daily.pendings.push(t),this._currentLoad&&this._currentLoad.cancel(),this._currentLoad=new Rc(n,(function(){r(!1)}),(function(s,o){o||Yi(e._callClientId),a(s,o)})),this._currentLoad.start()}},{key:"cancel",value:function(){this._currentLoad&&this._currentLoad.cancel(),Yi(this._callClientId)}},{key:"loaded",get:function(){return this._currentLoad&&this._currentLoad.succeeded}}])})(),Rc=(function(){return ae((function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;ie(this,t),this._attemptsRemaining=3,this._currentAttempt=null,this._dailyConfig=e,this._successCallback=n,this._failureCallback=r}),[{key:"start",value:function(){var t=this;if(!this._currentAttempt){var e=function(n){t._currentAttempt.cancelled||(t._attemptsRemaining--,t._failureCallback(n,t._attemptsRemaining>0),t._attemptsRemaining<=0||setTimeout((function(){t._currentAttempt.cancelled||(t._currentAttempt=new Wi(t._dailyConfig,t._successCallback,e),t._currentAttempt.start())}),3e3))};this._currentAttempt=new Wi(this._dailyConfig,this._successCallback,e),this._currentAttempt.start()}}},{key:"cancel",value:function(){this._currentAttempt&&this._currentAttempt.cancel()}},{key:"cancelled",get:function(){return this._currentAttempt&&this._currentAttempt.cancelled}},{key:"succeeded",get:function(){return this._currentAttempt&&this._currentAttempt.succeeded}}])})(),bn=(function(){function t(){return ie(this,t),e=this,r=arguments,n=pe(n=t),Qt(e,qa()?Reflect.construct(n,r||[],pe(e).constructor):n.apply(e,r));var e,n,r}return Kt(t,Wn(Error)),ae(t)})(),Gt=2e4,Wi=(function(){return ae((function e(n,r,a){ie(this,e),this._loadAttemptImpl=F()||!n.avoidEval?new Fc(n,r,a):new Vc(n,r,a)}),[{key:"start",value:(t=D((function*(){return this._loadAttemptImpl.start()})),function(){return t.apply(this,arguments)})},{key:"cancel",value:function(){this._loadAttemptImpl.cancel()}},{key:"cancelled",get:function(){return this._loadAttemptImpl.cancelled}},{key:"succeeded",get:function(){return this._loadAttemptImpl.succeeded}}]);var t})(),Fc=(function(){return ae((function a(s,o,l){ie(this,a),this.cancelled=!1,this.succeeded=!1,this._networkTimedOut=!1,this._networkTimeout=null,this._iosCache=typeof iOSCallObjectBundleCache<"u"&&iOSCallObjectBundleCache,this._refetchHeaders=null,this._dailyConfig=s,this._successCallback=o,this._failureCallback=l}),[{key:"start",value:(r=D((function*(){var a=Bt(this._dailyConfig);!(yield this._tryLoadFromIOSCache(a))&&this._loadFromNetwork(a)})),function(){return r.apply(this,arguments)})},{key:"cancel",value:function(){clearTimeout(this._networkTimeout),this.cancelled=!0}},{key:"_tryLoadFromIOSCache",value:(n=D((function*(a){if(!this._iosCache)return!1;try{var s=yield this._iosCache.get(a);return!!this.cancelled||!!s&&(s.code?(Function('"use strict";'+s.code)(),this.succeeded=!0,this._successCallback(),!0):(this._refetchHeaders=s.refetchHeaders,!1))}catch{return!1}}
22)),function(a){return n.apply(this,arguments)})},{key:"_loadFromNetwork",value:(e=D((function*(a){var s=this;this._networkTimeout=setTimeout((function(){s._networkTimedOut=!0,s._failureCallback({msg:"Timed out (>".concat(Gt," ms) when loading call object bundle ").concat(a),type:"timeout"})}),Gt);try{var o=this._refetchHeaders?{headers:this._refetchHeaders}:{},l=yield fetch(a,o);if(clearTimeout(this._networkTimeout),this.cancelled||this._networkTimedOut)throw new bn;var d=yield this._getBundleCodeFromResponse(a,l);if(this.cancelled)throw new bn;Function('"use strict";'+d)(),this._iosCache&&this._iosCache.set(a,d,l.headers),this.succeeded=!0,this._successCallback()}catch(f){if(clearTimeout(this._networkTimeout),f instanceof bn||this.cancelled||this._networkTimedOut)return;this._failureCallback({msg:"Failed to load call object bundle ".concat(a,": ").concat(f),type:f.message})}})),function(a){return e.apply(this,arguments)})},{key:"_getBundleCodeFromResponse",value:(t=D((function*(a,s){if(s.ok)return yield s.text();if(this._iosCache&&s.status===304)return(yield this._iosCache.renew(a,s.headers)).code;throw new Error("Received ".concat(s.status," response"))})),function(a,s){return t.apply(this,arguments)})}]);var t,e,n,r})(),Vc=(function(){return ae((function t(e,n,r){ie(this,t),this.cancelled=!1,this.succeeded=!1,this._dailyConfig=e,this._successCallback=n,this._failureCallback=r,this._attemptId=Xt(),this._networkTimeout=null,this._scriptElement=null}),[{key:"start",value:function(){window._dailyCallMachineLoadWaitlist||(window._dailyCallMachineLoadWaitlist=new Set);var t=Bt(this._dailyConfig);(typeof document>"u"?"undefined":U(document))==="object"?this._startLoading(t):this._failureCallback({msg:"Call object bundle must be loaded in a DOM/web context",type:"missing context"})}},{key:"cancel",value:function(){this._stopLoading(),this.cancelled=!0}},{key:"_startLoading",value:function(t){var e=this;this._signUpForCallMachineLoadWaitlist(),this._networkTimeout=setTimeout((function(){e._stopLoading(),e._failureCallback({msg:"Timed out (>".concat(Gt," ms) when loading call object bundle ").concat(t),type:"timeout"})}),Gt);var n=document.getElementsByTagName("head")[0],r=document.createElement("script");this._scriptElement=r,r.onload=function(){e._stopLoading(),e.succeeded=!0,e._successCallback()},r.onerror=function(a){e._stopLoading(),e._failureCallback({msg:"Failed to load call object bundle ".concat(a.target.src),type:a.message})},r.src=t,n.appendChild(r)}},{key:"_stopLoading",value:function(){this._withdrawFromCallMachineLoadWaitlist(),clearTimeout(this._networkTimeout),this._scriptElement&&(this._scriptElement.onload=null,this._scriptElement.onerror=null)}},{key:"_signUpForCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.add(this._attemptId)}},{key:"_withdrawFromCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.delete(this._attemptId)}}])})(),jt=function(t,e,n){return Bc(t.local,e,n)===!0},Uc=function(t,e,n){return t.local.streams&&t.local.streams[e]&&t.local.streams[e].stream&&t.local.streams[e].stream["get".concat(n==="video"?"Video":"Audio","Tracks")]()[0]},Ke=function(t,e,n,r){var a=Jc(t,e,n,r);return a&&a.pendingTrack},Bc=function(t,e,n){if(!t)return!1;var r=function(s){switch(s){case"avatar":return!0;case"staged":return s;default:return!!s}},a=t.public.subscribedTracks;return a&&a[e]?["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo"].indexOf(n)===-1&&a[e].custom?[!0,"staged"].includes(a[e].custom)?r(a[e].custom):r(a[e].custom[n]):r(a[e][n]):!a||r(a.ALL)},Jc=function(t,e,n,r){var a=Object.values(t.streams||{}).filter((function(s){return s.participantId===e&&s.type===n&&s.pendingTrack&&s.pendingTrack.kind===r})).sort((function(s,o){return new Date(o.starttime)-new Date(s.starttime)}));return a&&a[0]},$c=function(t,e){var n=t.local.public.customTracks;if(n&&n[e])return n[e].track};function zi(t,e){for(var n=e.getState(),r=0,a=["cam","screen"];r<a.length;r++)for(var s=a[r],o=0,l=["video","audio"];o<l.length;o++){var d=l[o],f=s==="cam"?d:"screen".concat(d.charAt(0).toUpperCase()+d.slice(1)),g=t.tracks[f];if(g){var v=t.local?Uc(n,s,d):Ke(n,t.session_id,s,d);g.state==="playable"&&(g.track=v),g.persistentTrack=v}}}function Gi(t,e){try{var n=e.getState();for(var r in t.tracks)if(!qc(r)){var a=t.tracks[r].kind;if(a){var s=t.tracks[r];if(s){var o=t.local?$c(n,r):Ke(n,t.session_id,r,a);s.state==="playable"&&(t.tracks[r].track=o),s.persistentTrack=o}}else console.error("unknown type for custom track")}}catch(l){console.error(l)}}function qc(t){return["video","audio","screenVideo","screenAudio"].includes(t)}function Hi(t,e,n){var r=n.getState();if(t.local){if(t.audio)try{t.audioTrack=r.local.streams.cam.stream.getAudioTracks()[0],t.audioTrack||(t.audio=!1)}catch{}if(t.video)try{t.videoTrack=r.local.streams.cam.stream.getVideoTracks()[0],t.videoTrack||(t.video=!1)}catch{}if(t.screen)try{t.screenVideoTrack=r.local.streams.screen.stream.getVideoTracks()[0],t.screenAudioTrack=r.local.streams.screen.stream.getAudioTracks()[0],t.screenVideoTrack||t.screenAudioTrack||(t.screen=!1)}catch{}}else{var a=!0;try{var s=r.participants[t.session_id];s&&s.public&&s.public.rtcType&&s.public.rtcType.impl==="peer-to-peer"&&s.private&&!["connected","completed"].includes(s.private.peeringState)&&(a=!1)}catch(g){console.error(g)}if(!a)return t.audio=!1,t.audioTrack=!1,t.video=!1,t.videoTrack=!1,t.screen=!1,void(t.screenTrack=!1);try{if(r.streams,t.audio&&jt(r,t.session_id,"cam-audio")){var o=Ke(r,t.session_id,"cam","audio");o&&(e&&e.audioTrack&&e.audioTrack.id===o.id?t.audioTrack=o:o.muted||(t.audioTrack=o)),t.audioTrack||(t.audio=!1)}if(t.video&&jt(r,t.session_id,"cam-video")){var l=Ke(r,t.session_id,"cam","video");l&&(e&&e.videoTrack&&e.videoTrack.id===l.id?t.videoTrack=l:l.muted||(t.videoTrack=l)),t.videoTrack||(t.video=!1)}if(t.screen&&jt(r,t.session_id,"screen-audio")){var d=Ke(r,t.session_id,"screen","audio");d&&(e&&e.screenAudioTrack&&e.screenAudioTrack.id===d.id?t.screenAudioTrack=d:d.muted||(t.screenAudioTrack=d))}if(t.screen&&jt(r,t.session_id,"screen-video")){var f=Ke(r,t.session_id,"screen","video");f&&(e&&e.screenVideoTrack&&e.screenVideoTrack.id===f.id?t.screenVideoTrack=f:f.muted||(t.screenVideoTrack=f))}t.screenVideoTrack||t.screenAudioTrack||(t.screen=!1)}catch(g){console.error("unexpected error matching up tracks",g)}}}function Yc(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];
22if(!n){if(Array.isArray(t)||(n=(function(d,f){if(d){if(typeof d=="string")return Qi(d,f);var g={}.toString.call(d).slice(8,-1);return g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set"?Array.from(d):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?Qi(d,f):void 0}})(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return o=d.done,d},e:function(d){l=!0,s=d},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw s}}}}function Qi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var me=new Map,Ze=null;function Wc(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(function(d,f){if(d){if(typeof d=="string")return Ki(d,f);var g={}.toString.call(d).slice(8,-1);return g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set"?Array.from(d):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?Ki(d,f):void 0}})(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return o=d.done,d},e:function(d){l=!0,s=d},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw s}}}}function Ki(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var ve=new Map,pt=null;function zc(t){Ya()?(function(e){me.has(e)||(me.set(e,{}),navigator.mediaDevices.enumerateDevices().then((function(n){me.has(e)&&(me.get(e).lastDevicesString=JSON.stringify(n),Ze||(Ze=(function(){var r=D((function*(){var a,s=yield navigator.mediaDevices.enumerateDevices(),o=Yc(me.keys());try{for(o.s();!(a=o.n()).done;){var l=a.value,d=JSON.stringify(s);d!==me.get(l).lastDevicesString&&(me.get(l).lastDevicesString=d,l(s))}}catch(f){o.e(f)}finally{o.f()}}));return function(){return r.apply(this,arguments)}})(),navigator.mediaDevices.addEventListener("devicechange",Ze)))})).catch((function(){})))})(t):(function(e){ve.has(e)||(ve.set(e,{}),navigator.mediaDevices.enumerateDevices().then((function(n){ve.has(e)&&(ve.get(e).lastDevicesString=JSON.stringify(n),pt||(pt=setInterval(D((function*(){var r,a=yield navigator.mediaDevices.enumerateDevices(),s=Wc(ve.keys());try{for(s.s();!(r=s.n()).done;){var o=r.value,l=JSON.stringify(a);l!==ve.get(o).lastDevicesString&&(ve.get(o).lastDevicesString=l,o(a))}}catch(d){s.e(d)}finally{s.f()}})),3e3)))})))})(t)}function Gc(t){Ya()?(function(e){me.has(e)&&(me.delete(e),me.size===0&&Ze&&(navigator.mediaDevices.removeEventListener("devicechange",Ze),Ze=null))})(t):(function(e){ve.has(e)&&(ve.delete(e),ve.size===0&&pt&&(clearInterval(pt),pt=null))})(t)}function Ya(){var t;return F()||((t=navigator.mediaDevices)===null||t===void 0?void 0:t.ondevicechange)!==void 0}var Hc=new Set;function Qc(t,e){return t&&t.readyState==="live"&&!(function(n,r){return n.muted&&!Hc.has(n.id)})(t)}function Xi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,r)}return n}function Te(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xi(Object(n),!0).forEach((function(r){ye(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}var ht=Object.freeze({VIDEO:"video",AUDIO:"audio",SCREEN_VIDEO:"screenVideo",SCREEN_AUDIO:"screenAudio",CUSTOM_VIDEO:"customVideo",CUSTOM_AUDIO:"customAudio"}),Kc=Object.freeze({PARTICIPANTS:"participants",STREAMING:"streaming",TRANSCRIPTION:"transcription"}),gt=Object.values(ht),Zi=["v","a","sv","sa","cv","ca"];Object.freeze(gt.reduce((function(t,e,n){return t[e]=Zi[n],t}),{})),Object.freeze(Zi.reduce((function(t,e,n){return t[e]=gt[n],t}),{}));var Xc=[ht.VIDEO,ht.AUDIO,ht.SCREEN_VIDEO,ht.SCREEN_AUDIO],ea=Object.values(Kc),ta=["p","s","t"];Object.freeze(ea.reduce((function(t,e,n){return t[e]=ta[n],t}),{})),Object.freeze(ta.reduce((function(t,e,n){return t[e]=ea[n],t}),{}));var Wa=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.base,r=e.byUserId,a=e.byParticipantId;ie(this,t),this.base=n,this.byUserId=r,this.byParticipantId=a}return ae(t,[{key:"clone",value:function(){var e=new t;if(this.base instanceof H?e.base=this.base.clone():e.base=this.base,this.byUserId!==void 0)for(var n in e.byUserId={},this.byUserId){var r=this.byUserId[n];e.byUserId[n]=r instanceof H?r.clone():r}if(this.byParticipantId!==void 0)for(var a in e.byParticipantId={},this.byParticipantId){var s=this.byParticipantId[a];e.byParticipantId[a]=s instanceof H?s.clone():s}return e}},{key:"toJSONObject",value:function(){var e={};if(typeof this.base=="boolean"?e.base=this.base:this.base instanceof H&&(e.base=this.base.toJSONObject()),this.byUserId!==void 0)for(var n in e.byUserId={},this.byUserId){var r=this.byUserId[n];e.byUserId[n]=r instanceof H?r.toJSONObject():r}if(this.byParticipantId!==void 0)for(var a in e.byParticipantId={},this.byParticipantId){var s=this.byParticipantId[a];e.byParticipantId[a]=s instanceof H?s.toJSONObject():s}return e}},{key:"toMinifiedJSONObject",value:function(){var e={};if(this.base!==void 0&&(typeof this.base=="boolean"?e.b=this.base:e.b=this.base.toMinifiedJSONObject()),this.byUserId!==void 0)for(var n in e.u={},this.byUserId){var r=this.byUserId[n];e.u[n]=typeof r=="boolean"?r:r.toMinifiedJSONObject()}if(this.byParticipantId!==void 0)for(var a in e.p={},this.byParticipantId){var s=this.byParticipantId[a];e.p[a]=typeof s=="boolean"?s:s.toMinifiedJSONObject()}return e}},{key:"normalize",value:function(){return this.base instanceof H&&(this.base=this.base.normalize()),this.byUserId&&(this.byUserId=Object.fromEntries(Object.entries(this.byUserId).map((function(e){var n=K(e,2),r=n[0],a=n[1];return[r,a instanceof H?a.normalize():a]})))),this.byParticipantId&&(this.byParticipantId=Object.fromEntries(Object.entries(this.byParticipantId).map((function(e){var n=K(e,2),r=n[0],a=n[1];return[r,a instanceof H?a.normalize():a]})))),this}}],[{key:"fromJSONObject",value:function(e){var n,r,a;if(e.base!==void 0&&(n=typeof e.base=="boolean"?e.base:H.fromJSONObject(e.base)),e.byUserId!==void 0)for(var s in r={},e.byUserId){var o=e.byUserId[s];r[s]=typeof o=="boolean"?o:H.fromJSONObject(o)}if(e.byParticipantId!==void 0)for(var l in a={},e.byParticipantId){var d=e.byParticipantId[l];a[l]=typeof d=="boolean"?d:H.fromJSONObject(d)}return new t({base:n,byUserId:r,byParticipantId:a})}},{key:"fromMinifiedJSONObject",value:function(e){var n,r,a;if(e.b!==void 0&&(n=typeof e.b=="boolean"?e.b:H.fromMinifiedJSONObject(e.b)),e.u!==void 0)for(var s in r={},e.u){var o=e.u[s];r[s]=typeof o=="boolean"?o:H.fromMinifiedJSONObject(o)}if(e.p!==void 0)for(var l in a={},e.p){var d=e.p[l];a[l]=typeof d=="boolean"?d:H.fromMinifiedJSONObject(d)}return new t({base:n,byUserId:r,byParticipantId:a})}},{key:"validateJSONObject",value:function(e){if(U(e)!=="object")return[!1,"canReceive must be an object"];for(var n=["base","byUserId","byParticipantId"],r=0,a=Object.keys(e);r<a.length;r++){var s=a[r];if(!n.includes(s))return[!1,"canReceive can only contain keys (".concat(n.join(", "),")")];if(s==="base"){var o=K(H.validateJSONObject(e.base,!0),2),l=o[0],d=o[1];if(!l)return[!1,d]}else{if(U(e[s])!=="object")return[!1,"invalid (non-object) value for field '".concat(s,"' in canReceive")];for(var f=0,g=Object.values(e[s]);f<g.length;f++){var v=g[f],M=K(H.validateJSONObject(v),2),T=M[0],b=M[1];if(!T)return[!1,b]}}}return[!0]}}])})(),H=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.video,r=e.audio,a=e.screenVideo,s=e.screenAudio,o=e.customVideo,l=e.customAudio;ie(this,t),this.video=n,this.audio=r,this.screenVideo=a,this.screenAudio=s,this.customVideo=o,this.customAudio=l}return ae(t,[{key:"clone",value:function(){var e=new t;return this.video!==void 0&&(e.video=this.video),this.audio!==void 0&&(e.audio=this.audio),this.screenVideo!==void 0&&(e.screenVideo=this.screenVideo),this.screenAudio!==void 0&&(e.screenAudio=this.screenAudio),this.customVideo!==void 0&&(e.customVideo=Te({},this.customVideo)),this.customAudio!==void 0&&(e.customAudio=Te({},this.customAudio)),e}},{key:"toJSONObject",value:function(){var e={};return this.video!==void 0&&(e.video=this.video),this.audio!==void 0&&(e.audio=this.audio),this.screenVideo!==void 0&&(e.screenVideo=this.screenVideo),this.screenAudio!==void 0&&(e.screenAudio=this.screenAudio),this.customVideo!==void 0&&(e.customVideo=Te({},this.customVideo)),this.customAudio!==void 0&&(e.customAudio=Te({},this.customAudio)),e}},{key:"toMinifiedJSONObject",value:function(){var e={};return this.video!==void 0&&(e.v=this.video),this.audio!==void 0&&(e.a=this.audio),this.screenVideo!==void 0&&(e.sv=this.screenVideo),this.screenAudio!==void 0&&(e.sa=this.screenAudio),this.customVideo!==void 0&&(e.cv=Te({},this.customVideo)),this.customAudio!==void 0&&(e.ca=Te({},this.customAudio)),e}},{key:"normalize",value:function(){function e(n,r){return n&&Object.keys(n).length===1&&n["*"]===r}return!(this.video!==!0||this.audio!==!0||this.screenVideo!==!0||this.screenAudio!==!0||!e(this.customVideo,!0)||!e(this.customAudio,!0))||(this.video!==!1||this.audio!==!1||this.screenVideo!==!1||this.screenAudio!==!1||!e(this.customVideo,!1)||!e(this.customAudio,!1))&&this}}],[{key:"fromBoolean",value:function(e){return new t({video:e,audio:e,screenVideo:e,screenAudio:e,customVideo:{"*":e},customAudio:{"*":e}})}},{key:"fromJSONObject",value:function(e){return new t({video:e.video,audio:e.audio,screenVideo:e.screenVideo,screenAudio:e.screenAudio,customVideo:e.customVideo!==void 0?Te({},e.customVideo):void 0,customAudio:e.customAudio!==void 0?Te({},e.customAudio):void 0})}},{key:"fromMinifiedJSONObject",value:function(e){return new t({video:e.v,audio:e.a,screenVideo:e.sv,screenAudio:e.sa,customVideo:e.cv,customAudio:e.ca})}},{key:"validateJSONObject",value:function(e,n){if(typeof e=="boolean")return[!0];if(U(e)!=="object")return[!1,"invalid (non-object, non-boolean) value in canReceive"];for(var r=Object.keys(e),a=0,s=r;a<s.length;a++){var o=s[a];if(!gt.includes(o))return[!1,"invalid media type '".concat(o,"' in canReceive")];if(Xc.includes(o)){if(typeof e[o]!="boolean")return[!1,"invalid (non-boolean) value for media type '".concat(o,"' in canReceive")]}else{if(U(e[o])!=="object")return[!1,"invalid (non-object) value for media type '".concat(o,"' in canReceive")];for(var l=0,d=Object.values(e[o]);l<d.length;l++)if(typeof d[l]!="boolean")return[!1,"invalid (non-boolean) value for entry within '".concat(o,"' in canReceive")];if(n&&e[o]["*"]===void 0)return[!1,`canReceive "base" permission must specify "*" as an entry within '`.concat(o,"'")]}}return n&&r.length!==gt.length?[!1,'canReceive "base" permission must specify all media types: '.concat(gt.join(", ")," (or be set to a boolean shorthand)")]:[!0]}}])})(),Zc=["result"],eu=["preserveIframe"];function na(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
24e%2?na(Object(n),!0).forEach((function(r){ye(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function za(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(za=function(){return!!t})()}function ra(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(function(d,f){if(d){if(typeof d=="string")return ia(d,f);var g={}.toString.call(d).slice(8,-1);return g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set"?Array.from(d):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?ia(d,f):void 0}})(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return o=d.done,d},e:function(d){l=!0,s=d},f:function(){try{o||n.return==null||n.return()}finally{if(l)throw s}}}}function ia(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var je={},aa="video",tu="voice",sa=F()?{data:{}}:{data:{},topology:"none"},oa={present:0,hidden:0},Ga={maxBitrate:{min:1e5,max:25e5},maxFramerate:{min:1,max:30},scaleResolutionDownBy:{min:1,max:8}},wn=Object.keys(Ga),ca=["state","volume","simulcastEncodings"],ua={androidInCallNotification:{title:"string",subtitle:"string",iconName:"string",disableForCustomOverride:"boolean"},disableAutoDeviceManagement:{audio:"boolean",video:"boolean"}},Ht={id:{iconPath:"string",iconPathDarkMode:"string",label:"string",tooltip:"string",visualState:"'default' | 'sidebar-open' | 'active'"}},zn={id:{allow:"string",controlledBy:"'*' | 'owners' | string[]",csp:"string",iconURL:"string",label:"string",loading:"'eager' | 'lazy'",location:"'main' | 'sidebar'",name:"string",referrerPolicy:"string",sandbox:"string",src:"string",srcdoc:"string",shared:"string[] | 'owners' | boolean"}},Ne={customIntegrations:{validate:ns,help:es()},customTrayButtons:{validate:ts,help:"customTrayButtons should be a dictionary of the type ".concat(JSON.stringify(Ht))},url:{validate:function(t){return typeof t=="string"},help:"url should be a string"},baseUrl:{validate:function(t){return typeof t=="string"},help:"baseUrl should be a string"},token:{validate:function(t){return typeof t=="string"},help:"token should be a string",queryString:"t"},dailyConfig:{validate:function(t,e){try{return e.validateDailyConfig(t),!0}catch(n){console.error("Failed to validate dailyConfig",n)}return!1},help:"Unsupported dailyConfig. Check error logs for detailed info."},reactNativeConfig:{validate:function(t){return rs(t,ua)},help:"reactNativeConfig should look like ".concat(JSON.stringify(ua),", all fields optional")},lang:{validate:function(t){return["da","de","en-us","en","es","fi","fr","it","jp","ka","nl","no","pl","pt","pt-BR","ru","sv","tr","user"].includes(t)},help:"language not supported. Options are: da, de, en-us, en, es, fi, fr, it, jp, ka, nl, no, pl, pt, pt-BR, ru, sv, tr, user"},userName:!0,userData:{validate:function(t){try{return Ha(t),!0}catch(e){return console.error(e),!1}},help:"invalid userData type provided"},startVideoOff:!0,startAudioOff:!0,allowLocalVideo:!0,allowLocalAudio:!0,activeSpeakerMode:!0,showLeaveButton:!0,showLocalVideo:!0,showParticipantsBar:!0,showFullscreenButton:!0,showUserNameChangeUI:!0,iframeStyle:!0,customLayout:!0,cssFile:!0,cssText:!0,bodyClass:!0,videoSource:{validate:function(t,e){if(typeof t=="boolean")return e._preloadCache.allowLocalVideo=t,!0;var n;if(t instanceof MediaStreamTrack)e._sharedTracks.videoTrack=t,n={customTrack:Se};else{if(delete e._sharedTracks.videoTrack,typeof t!="string")return console.error("videoSource must be a MediaStreamTrack, boolean, or a string"),!1;n={deviceId:t}}return e._updatePreloadCacheInputSettings({video:{settings:n}},!1),!0}},audioSource:{validate:function(t,e){if(typeof t=="boolean")return e._preloadCache.allowLocalAudio=t,!0;var n;if(t instanceof MediaStreamTrack)e._sharedTracks.audioTrack=t,n={customTrack:Se};else{if(delete e._sharedTracks.audioTrack,typeof t!="string")return console.error("audioSource must be a MediaStreamTrack, boolean, or a string"),!1;n={deviceId:t}}return e._updatePreloadCacheInputSettings({audio:{settings:n}},!1),!0}},subscribeToTracksAutomatically:{validate:function(t,e){return e._preloadCache.subscribeToTracksAutomatically=t,!0}},theme:{validate:function(t){var e=["accent","accentText","background","backgroundAccent","baseText","border","mainAreaBg","mainAreaBgAccent","mainAreaText","supportiveText"],n=function(r){for(var a=0,s=Object.keys(r);a<s.length;a++){var o=s[a];if(!e.includes(o))return console.error('unsupported color "'.concat(o,'". Valid colors: ').concat(e.join(", "))),!1;if(!r[o].match(/^#[0-9a-f]{6}|#[0-9a-f]{3}$/i))return console.error("".concat(o,' theme color should be provided in valid hex color format. Received: "').concat(r[o],'"')),!1}return!0};return U(t)==="object"&&("light"in t&&"dark"in t||"colors"in t)?"light"in t&&"dark"in t?"colors"in t.light?"colors"in t.dark?n(t.light.colors)&&n(t.dark.colors):(console.error('Dark theme is missing "colors" property.',t),!1):(console.error('Light theme is missing "colors" property.',t),!1):n(t.colors):(console.error('Theme must contain either both "light" and "dark" properties, or "colors".',t),!1)},help:"unsupported theme configuration. Check error logs for detailed info."},layoutConfig:{validate:function(t){if("grid"in t){var e=t.grid;if("maxTilesPerPage"in e){if(!Number.isInteger(e.maxTilesPerPage))return console.error("grid.maxTilesPerPage should be an integer. You passed ".concat(e.maxTilesPerPage,".")),!1;if(e.maxTilesPerPage>49)return console.error("grid.maxTilesPerPage can't be larger than 49 without sacrificing browser performance. Please contact us at https://www.daily.co/contact to talk about your use case."),!1}if("minTilesPerPage"in e){if(!Number.isInteger(e.minTilesPerPage))return console.error("grid.minTilesPerPage should be an integer. You passed ".concat(e.minTilesPerPage,".")),!1;if(e.minTilesPerPage<1)return console.error("grid.minTilesPerPage can't be lower than 1."),!1;if("maxTilesPerPage"in e&&e.minTilesPerPage>e.maxTilesPerPage)return console.error("grid.minTilesPerPage can't be higher than grid.maxTilesPerPage."),!1}}return!0},help:"unsupported layoutConfig. Check error logs for detailed info."},receiveSettings:{validate:function(t){return Qa(t,{allowAllParticipantsKey:!1})},help:Za({allowAllParticipantsKey:!1})},sendSettings:{validate:function(t,e){return!!(function(n,r){try{return r.validateUpdateSendSettings(n),!0}catch(a){return console.error("Failed to validate send settings",a),!1}})(t,e)&&(e._preloadCache.sendSettings=t,!0)},help:"Invalid sendSettings provided. Check error logs for detailed info."},inputSettings:{validate:function(t,e){var n;return!!Ka(t)&&(e._inputSettings||(e._inputSettings={}),Xa(t,(n=e.properties)===null||n===void 0?void 0:n.dailyConfig,e._sharedTracks),e._updatePreloadCacheInputSettings(t,!0),!0)},help:Gn()},layout:{validate:function(t){return t==="custom-v1"||t==="browser"||t==="none"},help:'layout may only be set to "custom-v1"',queryString:"layout"},emb:{queryString:"emb"},embHref:{queryString:"embHref"},dailyJsVersion:{queryString:"dailyJsVersion"},proxy:{queryString:"proxy"},strictMode:!0,allowMultipleCallInstances:!0},Nt={styles:{validate:function(t){for(var e in t)if(e!=="cam"&&e!=="screen")return!1;if(t.cam){for(var n in t.cam)if(n!=="div"&&n!=="video")return!1}if(t.screen){for(var r in t.screen)if(r!=="div"&&r!=="video")return!1}return!0},help:"styles format should be a subset of: { cam: {div: {}, video: {}}, screen: {div: {}, video: {}} }"},setSubscribedTracks:{validate:function(t,e){if(e._preloadCache.subscribeToTracksAutomatically)return!1;var n=[!0,!1,"staged"];if(n.includes(t)||!F()&&t==="avatar")return!0;var r=["audio","video","screenAudio","screenVideo","rmpAudio","rmpVideo"],a=function(s){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1];for(var l in s)if(l==="custom"){if(!n.includes(s[l])&&!a(s[l],!0))return!1}else{var d=!o&&!r.includes(l),f=!n.includes(s[l]);if(d||f)return!1}return!0};return a(t)},help:"setSubscribedTracks cannot be used when setSubscribeToTracksAutomatically is enabled, and should be of the form: "+"true".concat(F()?"":" | 'avatar'"," | false | 'staged' | { [audio: true|false|'staged'], [video: true|false|'staged'], [screenAudio: true|false|'staged'], [screenVideo: true|false|'staged'] }")},setAudio:!0,setVideo:!0,setScreenShare:{validate:function(t){return t===!1},help:"setScreenShare must be false, as it's only meant for stopping remote participants' screen shares"},eject:!0,updatePermissions:{validate:function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var r=K(n[e],2),a=r[0],s=r[1];switch(a){case"hasPresence":if(typeof s!="boolean")return!1;break;case"canSend":if(s instanceof Set||s instanceof Array||Array.isArray(s)){var o,l=["video","audio","screenVideo","screenAudio","customVideo","customAudio"],d=ra(s);try{for(d.s();!(o=d.n()).done;){var f=o.value;if(!l.includes(f))return!1}}catch(w){d.e(w)}finally{d.f()}}else if(typeof s!="boolean")return!1;(s instanceof Array||Array.isArray(s))&&(t.canSend=new Set(s));break;case"canReceive":var g=K(Wa.validateJSONObject(s),2),v=g[0],M=g[1];
25if(!v)return console.error(M),!1;break;case"canAdmin":if(s instanceof Set||s instanceof Array||Array.isArray(s)){var T,b=["participants","streaming","transcription"],m=ra(s);try{for(m.s();!(T=m.n()).done;){var _=T.value;if(!b.includes(_))return!1}}catch(w){m.e(w)}finally{m.f()}}else if(typeof s!="boolean")return!1;(s instanceof Array||Array.isArray(s))&&(t.canAdmin=new Set(s));break;default:return!1}}return!0},help:"updatePermissions can take hasPresence, canSend, canReceive, and canAdmin permissions. hasPresence must be a boolean. canSend can be a boolean or an Array or Set of media types (video, audio, screenVideo, screenAudio, customVideo, customAudio). canReceive must be an object specifying base, byUserId, and/or byParticipantId fields (see documentation for more details). canAdmin can be a boolean or an Array or Set of admin types (participants, streaming, transcription)."}};Promise.any||(Promise.any=(function(){var t=D((function*(e){return new Promise((function(n,r){var a=[];e.forEach((function(s){return Promise.resolve(s).then((function(o){n(o)})).catch((function(o){a.push(o),a.length===e.length&&r(a)}))}))}))}));return function(e){return t.apply(this,arguments)}})());var iu=(function(){function t(i){var u,c,h,p,y,k,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ie(this,t),h=this,p=pe(p=t),ye(c=Qt(h,za()?Reflect.construct(p,[],pe(h).constructor):p.apply(h,y)),"startListeningForDeviceChanges",(function(){zc(c.handleDeviceChange)})),ye(c,"stopListeningForDeviceChanges",(function(){Gc(c.handleDeviceChange)})),ye(c,"handleDeviceChange",(function(N){N=N.map((function(V){return JSON.parse(JSON.stringify(V))})),c.emitDailyJSEvent({action:"available-devices-updated",availableDevices:N})})),ye(c,"handleNativeAppStateChange",(function(){var N=D((function*(V){if(V==="destroyed")return console.warn("App has been destroyed before leaving the meeting. Cleaning up all the resources!"),void(yield c.destroy());var ge=V==="active";c.disableReactNativeAutoDeviceManagement("video")||(ge?c.camUnmutedBeforeLosingNativeActiveState&&c.setLocalVideo(!0):(c.camUnmutedBeforeLosingNativeActiveState=c.localVideo(),c.camUnmutedBeforeLosingNativeActiveState&&c.setLocalVideo(!1)))}));return function(V){return N.apply(this,arguments)}})()),ye(c,"handleNativeAudioFocusChange",(function(N){c.disableReactNativeAutoDeviceManagement("audio")||(c._hasNativeAudioFocus=N,c.toggleParticipantAudioBasedOnNativeAudioFocus(),c._hasNativeAudioFocus?c.micUnmutedBeforeLosingNativeAudioFocus&&c.setLocalAudio(!0):(c.micUnmutedBeforeLosingNativeAudioFocus=c.localAudio(),c.setLocalAudio(!1)))})),ye(c,"handleNativeSystemScreenCaptureStop",(function(){c.stopScreenShare()})),!yn()&&!F())throw new Error("WebRTC not supported or suppressed");if(c.strictMode=E.strictMode===void 0||E.strictMode,c.allowMultipleCallInstances=(u=E.allowMultipleCallInstances)!==null&&u!==void 0&&u,Object.keys(je).length&&(c._logDuplicateInstanceAttempt(),!c.allowMultipleCallInstances)){if(c.strictMode)throw new Error("Duplicate DailyIframe instances are not allowed");console.warn("Using strictMode: false to allow multiple call instances is now deprecated. Set `allowMultipleCallInstances: true`")}if(window._daily||(window._daily={pendings:[],instances:{}}),c.callClientId=Xt(),je[(k=c).callClientId]=k,window._daily.instances[c.callClientId]={},c._sharedTracks={},window._daily.instances[c.callClientId].tracks=c._sharedTracks,E.dailyJsVersion=t.version(),c._iframe=i,c._callObjectMode=E.layout==="none"&&!c._iframe,c._preloadCache={subscribeToTracksAutomatically:!0,outputDeviceId:null,inputSettings:null,sendSettings:null,videoTrackForNetworkConnectivityTest:null,videoTrackForConnectionQualityTest:null},E.showLocalVideo!==void 0?c._callObjectMode?console.error("showLocalVideo is not available in call object mode"):c._showLocalVideo=!!E.showLocalVideo:c._showLocalVideo=!0,E.showParticipantsBar!==void 0?c._callObjectMode?console.error("showParticipantsBar is not available in call object mode"):c._showParticipantsBar=!!E.showParticipantsBar:c._showParticipantsBar=!0,E.customIntegrations!==void 0?c._callObjectMode?console.error("customIntegrations is not available in call object mode"):c._customIntegrations=E.customIntegrations:c._customIntegrations={},E.customTrayButtons!==void 0?c._callObjectMode?console.error("customTrayButtons is not available in call object mode"):c._customTrayButtons=E.customTrayButtons:c._customTrayButtons={},E.activeSpeakerMode!==void 0?c._callObjectMode?console.error("activeSpeakerMode is not available in call object mode"):c._activeSpeakerMode=!!E.activeSpeakerMode:c._activeSpeakerMode=!1,E.receiveSettings?c._callObjectMode?c._receiveSettings=E.receiveSettings:console.error("receiveSettings is only available in call object mode"):c._receiveSettings={},c.validateProperties(E),c.properties=P({},E),c._inputSettings||(c._inputSettings={}),c._callObjectLoader=c._callObjectMode?new xc(c.callClientId):null,c._callState=Mi,c._isPreparingToJoin=!1,c._accessState={access:pn},c._meetingSessionSummary={},c._finalSummaryOfPrevSession={},c._meetingSessionState=En(sa,c._callObjectMode),c._nativeInCallAudioMode=aa,c._participants={},c._isScreenSharing=!1,c._participantCounts=oa,c._rmpPlayerState={},c._waitingParticipants={},c._network={threshold:"good",quality:100,networkState:"unknown",stats:{}},c._activeSpeaker={}
25,c._localAudioLevel=0,c._isLocalAudioLevelObserverRunning=!1,c._remoteParticipantsAudioLevel={},c._isRemoteParticipantsAudioLevelObserverRunning=!1,c._maxAppMessageSize=gn,c._messageChannel=F()?new jc:new Dc,c._iframe&&(c._iframe.requestFullscreen?c._iframe.addEventListener("fullscreenchange",(function(){document.fullscreenElement===c._iframe?(c.emitDailyJSEvent({action:It}),c.sendMessageToCallMachine({action:It})):(c.emitDailyJSEvent({action:Lt}),c.sendMessageToCallMachine({action:Lt}))})):c._iframe.webkitRequestFullscreen&&c._iframe.addEventListener("webkitfullscreenchange",(function(){document.webkitFullscreenElement===c._iframe?(c.emitDailyJSEvent({action:It}),c.sendMessageToCallMachine({action:It})):(c.emitDailyJSEvent({action:Lt}),c.sendMessageToCallMachine({action:Lt}))}))),F()){var O=c.nativeUtils();O.addAudioFocusChangeListener&&O.removeAudioFocusChangeListener&&O.addAppStateChangeListener&&O.removeAppStateChangeListener&&O.addSystemScreenCaptureStopListener&&O.removeSystemScreenCaptureStopListener||console.warn("expected (add|remove)(AudioFocusChange|AppActiveStateChange|SystemScreenCaptureStop)Listener to be available in React Native"),c._hasNativeAudioFocus=!0,O.addAudioFocusChangeListener(c.handleNativeAudioFocusChange),O.addAppStateChangeListener(c.handleNativeAppStateChange),O.addSystemScreenCaptureStopListener(c.handleNativeSystemScreenCaptureStop)}return c._callObjectMode&&c.startListeningForDeviceChanges(),c._messageChannel.addListenerForMessagesFromCallMachine(c.handleMessageFromCallMachine,c.callClientId,c),c}return Kt(t,kt),ae(t,[{key:"destroy",value:(_r=D((function*(){var i;try{yield this.leave()}catch{}var u=this._iframe;if(u){var c=u.parentElement;c&&c.removeChild(u)}if(this._messageChannel.removeListener(this.handleMessageFromCallMachine),F()){var h=this.nativeUtils();h.removeAudioFocusChangeListener(this.handleNativeAudioFocusChange),h.removeAppStateChangeListener(this.handleNativeAppStateChange),h.removeSystemScreenCaptureStopListener(this.handleNativeSystemScreenCaptureStop)}this._callObjectMode&&this.stopListeningForDeviceChanges(),this.resetMeetingDependentVars(),this._destroyed=!0,this.emitDailyJSEvent({action:"call-instance-destroyed"}),delete je[this.callClientId],!((i=window)===null||i===void 0||(i=i._daily)===null||i===void 0)&&i.instances&&delete window._daily.instances[this.callClientId],this.strictMode&&(this.callClientId=void 0)})),function(){return _r.apply(this,arguments)})},{key:"isDestroyed",value:function(){return!!this._destroyed}},{key:"loadCss",value:function(i){var u=i.bodyClass,c=i.cssFile,h=i.cssText;return R(),this.sendMessageToCallMachine({action:"load-css",cssFile:this.absoluteUrl(c),bodyClass:u,cssText:h}),this}},{key:"iframe",value:function(){return R(),this._iframe}},{key:"meetingState",value:function(){return this._callState}},{key:"accessState",value:function(){return de(this._callObjectMode,"accessState()"),this._accessState}},{key:"participants",value:function(){return this._participants}},{key:"participantCounts",value:function(){return this._participantCounts}},{key:"waitingParticipants",value:function(){return de(this._callObjectMode,"waitingParticipants()"),this._waitingParticipants}},{key:"validateParticipantProperties",value:function(i,u){for(var c in u){if(!Nt[c])throw new Error("unrecognized updateParticipant property ".concat(c));if(Nt[c].validate&&!Nt[c].validate(u[c],this,this._participants[i]))throw new Error(Nt[c].help)}}},{key:"updateParticipant",value:function(i,u){return this._participants.local&&this._participants.local.session_id===i&&(i="local"),i&&u&&(this.validateParticipantProperties(i,u),this.sendMessageToCallMachine({action:"update-participant",id:i,properties:u})),this}},{key:"updateParticipants",value:function(i){var u=this._participants.local&&this._participants.local.session_id;for(var c in i)c===u&&(c="local"),c&&i[c]&&this.validateParticipantProperties(c,i[c]);return this.sendMessageToCallMachine({action:"update-participants",participants:i}),this}},{key:"updateWaitingParticipant",value:(yr=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(de(this._callObjectMode,"updateWaitingParticipant()"),$(this._callState,"updateWaitingParticipant()"),typeof u!="string"||U(c)!=="object")throw new Error("updateWaitingParticipant() must take an id string and a updates object");return new Promise((function(h,p){i.sendMessageToCallMachine({action:"daily-method-update-waiting-participant",id:u,updates:c},(function(y){y.error&&p(y.error),y.id||p(new Error("unknown error in updateWaitingParticipant()")),h({id:y.id})}))}))})),function(){return yr.apply(this,arguments)})},{key:"updateWaitingParticipants",value:(vr=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(de(this._callObjectMode,"updateWaitingParticipants()"),$(this._callState,"updateWaitingParticipants()"),U(u)!=="object")throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");return new Promise((function(c,h){i.sendMessageToCallMachine({action:"daily-method-update-waiting-participants",updates
25ById:u},(function(p){p.error&&h(p.error),p.ids||h(new Error("unknown error in updateWaitingParticipants()")),c({ids:p.ids})}))}))})),function(){return vr.apply(this,arguments)})},{key:"requestAccess",value:(mr=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=u.access,h=c===void 0?{level:Ao}:c,p=u.name,y=p===void 0?"":p;return de(this._callObjectMode,"requestAccess()"),$(this._callState,"requestAccess()"),new Promise((function(k,E){i.sendMessageToCallMachine({action:"daily-method-request-access",access:h,name:y},(function(O){O.error&&E(O.error),O.access||E(new Error("unknown error in requestAccess()")),k({access:O.access,granted:O.granted})}))}))})),function(){return mr.apply(this,arguments)})},{key:"localAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.audio.state):null}},{key:"localVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.video.state):null}},{key:"setLocalAudio",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return"forceDiscardTrack"in u&&(F()?(console.warn("forceDiscardTrack option not supported in React Native; ignoring"),u={}):i&&(console.warn("forceDiscardTrack option only supported when calling setLocalAudio(false); ignoring"),u={})),this.sendMessageToCallMachine({action:"local-audio",state:i,options:u}),this}},{key:"localScreenAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenAudio.state):null}},{key:"localScreenVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenVideo.state):null}},{key:"updateScreenShare",value:function(i){if(this._isScreenSharing)return this.sendMessageToCallMachine({action:"local-screen-update",options:i}),this;console.warn("There is no screen share in progress. Try calling startScreenShare first.")}},{key:"setLocalVideo",value:function(i){return this.sendMessageToCallMachine({action:"local-video",state:i}),this}},{key:"_setAllowLocalAudio",value:function(i){if(this._preloadCache.allowLocalAudio=i,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-audio",state:i}),this}},{key:"_setAllowLocalVideo",value:function(i){if(this._preloadCache.allowLocalVideo=i,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-video",state:i}),this}},{key:"getReceiveSettings",value:(gr=D((function*(i){var u=this,c=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).showInheritedValues,h=c!==void 0&&c;if(de(this._callObjectMode,"getReceiveSettings()"),!this._callMachineInitialized)return this._receiveSettings;switch(U(i)){case"string":return new Promise((function(p){u.sendMessageToCallMachine({action:"get-single-participant-receive-settings",id:i,showInheritedValues:h},(function(y){p(y.receiveSettings)}))}));case"undefined":return this._receiveSettings;default:throw new Error('first argument to getReceiveSettings() must be a participant id (or "base"), or there should be no arguments')}})),function(i){return gr.apply(this,arguments)})},{key:"updateReceiveSettings",value:(pr=D((function*(i){var u=this;if(de(this._callObjectMode,"updateReceiveSettings()"),!Qa(i,{allowAllParticipantsKey:!0}))throw new Error(Za({allowAllParticipantsKey:!0}));return $(this._callState,"updateReceiveSettings()","To specify receive settings earlier, use the receiveSettings config property."),new Promise((function(c){u.sendMessageToCallMachine({action:"update-receive-settings",receiveSettings:i},(function(h){c({receiveSettings:h.receiveSettings})}))}))})),function(i){return pr.apply(this,arguments)})},{key:"_prepInputSettingsForSharing",value:function(i,u){if(i){var c={};if(i.audio){var h,p,y;i.audio.settings&&(!Object.keys(i.audio.settings).length&&u||(c.audio={settings:P({},i.audio.settings)})),u&&(h=c.audio)!==null&&h!==void 0&&(h=h.settings)!==null&&h!==void 0&&h.customTrack&&(c.audio.settings={customTrack:this._sharedTracks.audioTrack});var k=((p=i.audio.processor)===null||p===void 0?void 0:p.type)==="none"&&((y=i.audio.processor)===null||y===void 0?void 0:y._isDefaultWhenNone);if(i.audio.processor&&!k){var E=P({},i.audio.processor);delete E._isDefaultWhenNone,c.audio=P(P({},c.audio),{},{processor:E})}}if(i.video){var O,N,V;i.video.settings&&(!Object.keys(i.video.settings).length&&u||(c.video={settings:P({},i.video.settings)})),u&&(O=c.video)!==null&&O!==void 0&&(O=O.settings)!==null&&O!==void 0&&O.customTrack&&(c.video.settings={customTrack:this._sharedTracks.videoTrack});var ge=((N=i.video.processor)===null||N===void 0?void 0:N.type)==="none"&&((V=i.video.processor)===null||V===void 0?void 0:V._isDefaultWhenNone);if(i.video.processor&&!ge){var Pe=P({},i.video.processor);delete Pe._isDefaultWhenNone,c.video=P(P({},c.video),{},{processor:Pe})}}return c}}},{key:"getInputSettings",value:function(){var i=this;return R(),new Promise((function(u){u(i._getInputSettings())}))}},{key:"_getInputSettings",value:function(){var i,u,c,h,p,y,k={processor:{type:"none",_isDefaultWhenNone:!0}};this._inputSettings?(i=((c=this._inputSettings)===null||c===void 0?void 0:c.video)||k,u=((h=this._inputSettings)===null||h===void 0?void 0:h.audio)||k):(i=((p=this._preloadCache)===null||p===void 0||(p=p.inputSettings)===null||p===void 0?void 0:p.video)||k,u=((y=this._preloadCache)===null||y===void 0||(y=y.inputSettings)===null||y===void 0?void 0:y.audio)||k);var E={audio:u,video:i};return this._prepInputSettingsForSharing(E,!0)}},{key:"_updatePreloadCacheInputSettings",value:function(i,u){var c=this._inputSettings||{},h={};if(i.video){var p,y,k;h.video={},i.video.settings?(h.video.settings={},u||i.video.settings.customTrack||(k=c.video)===null||k===void 0||!k.settings?h.video.settings=i.video.settings:h.video.settings=P(P({},c.video.settings),i.video.settings),Object.keys(h.video.settings).length||delete h.video.settings):(p=c.video)!==null&&p!==void 0&&p.settings&&(h.video.settings=c.video.settings),i.video.processor?h.video.processor=i.video.processor:(y=c.video)!==null&&y!==void 0&&y.processor&&(h.video.processor=c.video.processor)}else c.video&&(h.video=c.video);if(i.audio){var E,O,N;h.audio={},i.audio.settings?(h.audio.settings={},u||i.audio.settings.customTrack||(N=c.audio)===null||N===void 0||!N.settings?h.audio.settings=i.audio.settings:h.audio.settings=P(P({},c.audio.settings),i.audio.settings),Object.keys(h.audio.settings).length||delete h.audio.settings):(E=c.audio)!==null&&E!==void 0&&E.settings&&(h.audio.settings=c.audio.settings),i.audio.processor?h.audio.processor=i.audio.processor:(O=c.audio)!==null&&O!==void 0&&O.processor&&(h.audio.processor=c.audio.processor)}else c.audio&&(h.audio=c.audio);this._maybeUpdateInputSettings(h)}},{key:"_devicesFromInputSettings",value:function(i){var u,c,h=(i==null||(u=i.video)===null||u===void 0||(u=u.settings)===null||u===void 0?void 0:u.deviceId)||null,p=(i==null||(c=i.audio)===null||c===void 0||(c=c.settings)===null||c===void 0?void 0:c.deviceId)||null,y=this._preloadCache.outputDeviceId||null;return{camera:h?{deviceId:h}:{},mic:p?{deviceId:p}:{},speaker:y?{deviceId:y}:{}}}},{key:"updateInputSettings",value:(hr=D((function*(i){var u=this;return R(),Ka(i)?i.video||i.audio?(Xa(i,this.properties.dailyConfig,this._sharedTracks),this._callObjectMode&&!this._callMachineInitialized?(this._updatePreloadCacheInputSettings(i,!0),this._getInputSettings()):new Promise((function(c,h){u.sendMessageToCallMachine({action:"update-input-sett
25ings",inputSettings:i},(function(p){if(p.error)h(p.error);else{if(p.returnPreloadCache)return u._updatePreloadCacheInputSettings(i,!0),void c(u._getInputSettings());u._maybeUpdateInputSettings(p.inputSettings),c(u._prepInputSettingsForSharing(p.inputSettings,!0))}}))}))):this._getInputSettings():(console.error(Gn()),Promise.reject(Gn()))})),function(i){return hr.apply(this,arguments)})},{key:"setBandwidth",value:function(i){var u=i.kbs,c=i.trackConstraints;if(R(),this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-bandwidth",kbs:u,trackConstraints:c}),this}},{key:"getDailyLang",value:function(){var i=this;if(R(),this._callMachineInitialized)return new Promise((function(u){i.sendMessageToCallMachine({action:"get-daily-lang"},(function(c){delete c.action,delete c.callbackStamp,u(c)}))}))}},{key:"setDailyLang",value:function(i){return R(),this.sendMessageToCallMachine({action:"set-daily-lang",lang:i}),this}},{key:"setProxyUrl",value:function(i){return this.sendMessageToCallMachine({action:"set-proxy-url",proxyUrl:i}),this}},{key:"setIceConfig",value:function(i){return this.sendMessageToCallMachine({action:"set-ice-config",iceConfig:i}),this}},{key:"meetingSessionSummary",value:function(){return[De,Ee].includes(this._callState)?this._finalSummaryOfPrevSession:this._meetingSessionSummary}},{key:"getMeetingSession",value:(fr=D((function*(){var i=this;return console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"),$(this._callState,"getMeetingSession()"),new Promise((function(u){i.sendMessageToCallMachine({action:"get-meeting-session"},(function(c){delete c.action,delete c.callbackStamp,u(c)}))}))})),function(){return fr.apply(this,arguments)})},{key:"meetingSessionState",value:function(){return $(this._callState,"meetingSessionState"),this._meetingSessionState}},{key:"setMeetingSessionData",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"replace";de(this._callObjectMode,"setMeetingSessionData()"),$(this._callState,"setMeetingSessionData");try{(function(c,h){new Nc({data:c,mergeStrategy:h})})(i,u)}catch(c){throw console.error(c),c}try{this.sendMessageToCallMachine({action:"set-session-data",data:i,mergeStrategy:u})}catch(c){throw new Error("Error setting meeting session data: ".concat(c))}}},{key:"setUserName",value:function(i,u){var c=this;return this.properties.userName=i,new Promise((function(h){c.sendMessageToCallMachine({action:"set-user-name",name:i??"",thisMeetingOnly:F()||!!u&&!!u.thisMeetingOnly},(function(p){delete p.action,delete p.callbackStamp,h(p)}))}))}},{key:"setUserData",value:(dr=D((function*(i){var u=this;try{Ha(i)}catch(c){throw console.error(c),c}if(this.properties.userData=i,this._callMachineInitialized)return new Promise((function(c){try{u.sendMessageToCallMachine({action:"set-user-data",userData:i},(function(h){delete h.action,delete h.callbackStamp,c(h)}))}catch(h){throw new Error("Error setting user data: ".concat(h))}}))})),function(i){return dr.apply(this,arguments)})},{key:"validateAudioLevelInterval",value:function(i){if(i&&(i<100||typeof i!="number"))throw new Error("The interval must be a number greater than or equal to 100 milliseconds.")}},{key:"startLocalAudioLevelObserver",value:function(i){var u=this;if(typeof AudioWorkletNode>"u"&&!F())throw new Error("startLocalAudioLevelObserver() is not supported on this browser");if(this.validateAudioLevelInterval(i),this._callMachineInitialized)return this._isLocalAudioLevelObserverRunning=!0,new Promise((function(c,h){u.sendMessageToCallMachine({action:"start-local-audio-level-observer",interval:i},(function(p){u._isLocalAudioLevelObserverRunning=!p.error,p.error?h({error:p.error}):c()}))}));this._preloadCache.localAudioLevelObserver={enabled:!0,interval:i}}},{key:"isLocalAudioLevelObserverRunning",value:function(){return this._isLocalAudioLevelObserverRunning}},{key:"stopLocalAudioLevelObserver",value:function(){this._preloadCache.localAudioLevelObserver=null,this._localAudioLevel=0,this._isLocalAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-local-audio-level-observer"})}},{key:"startRemoteParticipantsAudioLevelObserver",value:function(i){var u=this;if(this.validateAudioLevelInterval(i),this._callMachineInitialized)return this._isRemoteParticipantsAudioLevelObserverRunning=!0,new Promise((function(c,h){u.sendMessageToCallMachine({action:"start-remote-participants-audio-level-observer",interval:i},(function(p){u._isRemoteParticipantsAudioLevelObserverRunning=!p.error,p.error?h({error:p.error}):c()}))}));this._preloadCache.remoteParticipantsAudioLevelObserver={enabled:!0,interval:i}}},{key:"isRemoteParticipantsAudioLevelObserverRunning",value:function(){return this._isRemoteParticipantsAudioLevelObserverRunning}},{key:"stopRemoteParticipantsAudioLevelObserver",value:function(){this._preloadCache.remoteParticipantsAudioLevelObserver=null,this._remoteParticipantsAudioLevel={},this._isRemoteParticipantsAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-remote-participants-audio-level-observer"})}},{key:"startCamera",value:(lr=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(de(this._callObjectMode,"startCamera()"),Sn(this._callState,this._isPreparingToJoin,"startCamera()","Did you mean to use setLocalAudio() and/or set
25LocalVideo() instead?"),this.needsLoad())try{yield this.load(u)}catch(c){return Promise.reject(c)}else{if(this._didPreAuth){if(u.url&&u.url!==this.properties.url)return console.error("url in startCamera() is different than the one used in preAuth()"),Promise.reject();if(u.token&&u.token!==this.properties.token)return console.error("token in startCamera() is different than the one used in preAuth()"),Promise.reject()}this.validateProperties(u),this.properties=P(P({},this.properties),u)}return new Promise((function(c){i._preloadCache.inputSettings=i._prepInputSettingsForSharing(i._inputSettings,!1),i.sendMessageToCallMachine({action:"start-camera",properties:Qe(i.properties,i.callClientId),preloadCache:Qe(i._preloadCache,i.callClientId)},(function(h){c({camera:h.camera,mic:h.mic,speaker:h.speaker})}))}))})),function(){return lr.apply(this,arguments)})},{key:"validateCustomTrack",value:function(i,u,c){if(c&&c.length>50)throw new Error("Custom track `trackName` must not be more than 50 characters");if(u&&u!=="music"&&u!=="speech"&&!(u instanceof Object))throw new Error("Custom track `mode` must be either `music` | `speech` | `DailyMicAudioModeSettings` or `undefined`");if(c&&["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo","customVideoDefaults"].includes(c))throw new Error("Custom track `trackName` must not match a track name already used by daily: cam-audio, cam-video, customVideoDefaults, screen-video, screen-audio, rmpAudio, rmpVideo");if(!(i instanceof MediaStreamTrack))throw new Error("Custom tracks provided must be instances of MediaStreamTrack")}},{key:"startCustomTrack",value:function(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{track,mode,trackName,ignoreAudioLevel};return R(),$(this._callState,"startCustomTrack()"),this.validateCustomTrack(u.track,u.mode,u.trackName),new Promise((function(c,h){i._sharedTracks.customTrack=u.track,u.track=Se,i.sendMessageToCallMachine({action:"start-custom-track",properties:u},(function(p){p.error?h({error:p.error}):c(p.mediaTag)}))}))}},{key:"stopCustomTrack",value:function(i){var u=this;return R(),$(this._callState,"stopCustomTrack()"),new Promise((function(c){u.sendMessageToCallMachine({action:"stop-custom-track",mediaTag:i},(function(h){c(h.mediaTag)}))}))}},{key:"setCamera",value:function(i){var u=this;return dt(),xt(this._callMachineInitialized,"setCamera()"),new Promise((function(c){u.sendMessageToCallMachine({action:"set-camera",cameraDeviceId:i},(function(h){c({device:h.device})}))}))}},{key:"setAudioDevice",value:(ur=D((function*(i){return dt(),this.nativeUtils().setAudioDevice(i),{deviceId:yield this.nativeUtils().getAudioDevice()}})),function(i){return ur.apply(this,arguments)})},{key:"cycleCamera",value:function(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Promise((function(c){i.sendMessageToCallMachine({action:"cycle-camera",properties:u},(function(h){c({device:h.device})}))}))}},{key:"cycleMic",value:function(){var i=this;return R(),new Promise((function(u){i.sendMessageToCallMachine({action:"cycle-mic"},(function(c){u({device:c.device})}))}))}},{key:"getCameraFacingMode",value:function(){var i=this;return dt(),new Promise((function(u){i.sendMessageToCallMachine({action:"get-camera-facing-mode"},(function(c){u(c.facingMode)}))}))}},{key:"setInputDevicesAsync",value:(He=D((function*(i){var u=this,c=i.audioDeviceId,h=i.videoDeviceId,p=i.audioSource,y=i.videoSource;if(R(),p!==void 0&&(c=p),y!==void 0&&(h=y),typeof c=="boolean"&&(this._setAllowLocalAudio(c),c=void 0),typeof h=="boolean"&&(this._setAllowLocalVideo(h),h=void 0),!c&&!h)return yield this.getInputDevices();var k={};return c&&(c instanceof MediaStreamTrack?(this._sharedTracks.audioTrack=c,c=Se,k.audio={settings:{customTrack:c}}):(delete this._sharedTracks.audioTrack,k.audio={settings:{deviceId:c}})),h&&(h instanceof MediaStreamTrack?(this._sharedTracks.videoTrack=h,h=Se,k.video={settings:{customTrack:h}}):(delete this._sharedTracks.videoTrack,k.video={settings:{deviceId:h}})),this._callObjectMode&&this.needsLoad()?(this._updatePreloadCacheInputSettings(k,!1),this._devicesFromInputSettings(this._inputSettings)):new Promise((function(E){u.sendMessageToCallMachine({action:"set-input-devices",audioDeviceId:c,videoDeviceId:h},(function(O){if(delete O.action,delete O.callbackStamp,O.returnPreloadCache)return u._updatePreloadCacheInputSettings(k,!1),void E(u._devicesFromInputSettings(u._inputSettings));E(O)}))}
25))})),function(i){return He.apply(this,arguments)})},{key:"setOutputDeviceAsync",value:(Ge=D((function*(i){var u=this,c=i.outputDeviceId;if(R(),!c||typeof c!="string")throw new Error("outputDeviceId must be provided and must be a valid device id");return this._preloadCache.outputDeviceId=c,this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise((function(h,p){u.sendMessageToCallMachine({action:"set-output-device",outputDeviceId:c},(function(y){if(delete y.action,delete y.callbackStamp,y.error){var k=new Error(y.error.message);return k.type=y.error.type,void p(k)}y.returnPreloadCache?h(u._devicesFromInputSettings(u._inputSettings)):h(y)}))}))})),function(i){return Ge.apply(this,arguments)})},{key:"getInputDevices",value:(ze=D((function*(){var i=this;return this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise((function(u){i.sendMessageToCallMachine({action:"get-input-devices"},(function(c){c.returnPreloadCache?u(i._devicesFromInputSettings(i._inputSettings)):u({camera:c.camera,mic:c.mic,speaker:c.speaker})}))}))})),function(){return ze.apply(this,arguments)})},{key:"nativeInCallAudioMode",value:function(){return dt(),this._nativeInCallAudioMode}},{key:"setNativeInCallAudioMode",value:function(i){if(dt(),[aa,tu].includes(i)){if(i!==this._nativeInCallAudioMode)return this._nativeInCallAudioMode=i,!this.disableReactNativeAutoDeviceManagement("audio")&&Ut(this._callState,this._isPreparingToJoin)&&this.nativeUtils().setAudioMode(this._nativeInCallAudioMode),this}else console.error("invalid in-call audio mode specified: ",i)}},{key:"preAuth",value:(te=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(de(this._callObjectMode,"preAuth()"),Sn(this._callState,this._isPreparingToJoin,"preAuth()"),this.needsLoad()&&(yield this.load(u)),!u.url)throw new Error("preAuth() requires at least a url to be provided");return this.validateProperties(u),this.properties=P(P({},this.properties),u),new Promise((function(c,h){i._preloadCache.inputSettings=i._prepInputSettingsForSharing(i._inputSettings,!1),i.sendMessageToCallMachine({action:"daily-method-preauth",properties:Qe(i.properties,i.callClientId),preloadCache:Qe(i._preloadCache,i.callClientId)},(function(p){return p.error?h(p.error):p.access?(i._didPreAuth=!0,void c({access:p.access})):h(new Error("unknown error in preAuth()"))}))}))})),function(){return te.apply(this,arguments)})},{key:"load",value:(Y=D((function*(i){var u=this;if(this.needsLoad()){if(this._destroyed&&(this._logUseAfterDestroy(),this.strictMode))throw new Error("Use after destroy");if(i&&(this.validateProperties(i),this.properties=P(P({},this.properties),i)),!this._callObjectMode&&!this.properties.url)throw new Error("can't load iframe meeting because url property isn't set");return this._updateCallState(Ci),this.emitDailyJSEvent({action:No}),this._callObjectMode?new Promise((function(c,h){u._callObjectLoader.cancel();var p=Date.now();u._callObjectLoader.load(u.properties.dailyConfig,(function(y){u._bundleLoadTime=y?"no-op":Date.now()-p,u._updateCallState(Ai),y&&u.emitDailyJSEvent({action:Pi}),c()}),(function(y,k){if(u.emitDailyJSEvent({action:xo}),!k){u._updateCallState(Ee),u.resetMeetingDependentVars();var E={action:Ni,errorMsg:y.msg,error:{type:"connection-error",msg:"Failed to load call object bundle.",details:{on:"load",sourceError:y,bundleUrl:Bt(u.properties.dailyConfig)}}};u._maybeSendToSentry(E),u.emitDailyJSEvent(E),h(y.msg)}}))})):(this._iframe.src=va(this.assembleMeetingUrl(),this.properties.dailyConfig),new Promise((function(c,h){u._loadedCallback=function(p){u._callState!==Ee?(u._updateCallState(Ai),(u.properties.cssFile||u.properties.cssText)&&u.loadCss(u.properties),c()):h(p)}})))}})),function(i){return Y.apply(this,arguments)})},{key:"join",value:(x=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._testCallInProgress&&this.stopTestCallQuality();var c=!1;if(this.needsLoad()){this.updateIsPreparingToJoin(!0);try{yield this.load(u)}catch(h){return this.updateIsPreparingToJoin(!1),Promise.reject(h)}}else{if(c=!(!this.properties.cssFile&&!this.properties.cssText),this._didPreAuth){if(u.url&&u.url!==this.properties.url)return console.error("url in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject();if(u.token&&u.token!==this.properties.token)return console.error("token in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject()}if(u.url&&!this._callObjectMode&&u.url&&u.url!==this.properties.url)return console.error("url in join() is different than the one used in load() (".concat(this.properties.url," -> ").concat(u.url,")")),this.updateIsPreparingToJoin(!1),Promise.reject();this.validateProperties(u),this.properties=P(P({},this.properties),u)}return u.showLocalVideo!==void 0&&(this._callObjectMode?console.error("showLocalVideo is not available in callObject mode"):this._showLocalVideo=!!u.showLocalVideo),u.showParticipantsBar!==void 0&&(this._callObjectMode?console.error("showParticipantsBar is not available in callObject mode"):this._showParticipantsBar=!!u.showParticipantsBar),this._callState===xe||this._callState===Bn?(console.warn("already joined meeting, call leave() before joining again"),void this.updateIsPreparingToJoin(!1)):(this._updateCallState(Bn,!1),this.emitDailyJSEvent({action:Vo}),this._preloadCache.inputSettings=this._prepInputSettingsForSharing(this._inputSettings||{},!1),this.sendMessageToCallMachine({action:"join-meeting",properties:Qe(this.properties,this.callClientId),preloadCache:Qe(this._preloadCache,this.callClientId)}),new Promise((function(h,p){i._joinedCallback=function(y,k){if(i._callState!==Ee){if(i._updateCallState(xe),y)for(var E in y){if(i._callObjectMode){var O=i._callMachine().store;zi(y[E],O),Gi(y[E],O),Hi(y[E],i._participants[E],O)}i._participants[E]=P({},y[E]),i.toggleParticipantAudioBasedOnNativeAudioFocus()}c&&i.loadCss(i.properties),h(y)}else p(k)}})))})),function(){return x.apply(this,arguments)})},{key:"leave",value:(L=D((function*(){var i=this;return this._testCallInProgress&&this.stopTestCallQuality(),new Promise((function(u){i._callState===De||i._callState===Ee?u():i._callObjectLoader&&!i._callObjectLoader.loaded?(i._callObjectLoader.cancel(),i._updateCallState(De),i.resetMeetingDependentVars(),i.emitDailyJSEvent({action:De}),u()):(i._resolveLeave=u,i.sendMessageToCallMachine({action:"leave-meeting"}))}))})),function(){return L.apply(this,arguments)})},{key:"startScreenShare",value:(I=D((function*(){var i=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xt(this._callMachineInitialized,"startScreenShare()"),u.screenVideoSendSettings&&this._val
25idateVideoSendSettings("screenVideo",u.screenVideoSendSettings),u.mediaStream&&(this._sharedTracks.screenMediaStream=u.mediaStream,u.mediaStream=Se),typeof DailyNativeUtils<"u"&&DailyNativeUtils.isIOS!==void 0&&DailyNativeUtils.isIOS){var c=this.nativeUtils();if(yield c.isScreenBeingCaptured())return void this.emitDailyJSEvent({action:ji,type:"screen-share-error",errorMsg:"Could not start the screen sharing. The screen is already been captured!"});c.setSystemScreenCaptureStartCallback((function(){c.setSystemScreenCaptureStartCallback(null),i.sendMessageToCallMachine({action:Ri,captureOptions:u})})),c.presentSystemScreenCapturePrompt()}else this.sendMessageToCallMachine({action:Ri,captureOptions:u})})),function(){return I.apply(this,arguments)})},{key:"stopScreenShare",value:function(){xt(this._callMachineInitialized,"stopScreenShare()"),this.sendMessageToCallMachine({action:"local-screen-stop"})}},{key:"startRecording",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.type;if(u&&u!=="cloud"&&u!=="raw-tracks"&&u!=="local")throw new Error("invalid type: ".concat(u,", allowed values 'cloud', 'raw-tracks', or 'local'"));this.sendMessageToCallMachine(P({action:"local-recording-start"},i))}},{key:"updateRecording",value:function(i){var u=i.layout,c=u===void 0?{preset:"default"}:u,h=i.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-recording",layout:c,instanceId:h})}},{key:"stopRecording",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.sendMessageToCallMachine(P({action:"local-recording-stop"},i))}},{key:"startLiveStreaming",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.sendMessageToCallMachine(P({action:"daily-method-start-live-streaming"},i))}},{key:"updateLiveStreaming",value:function(i){var u=i.layout,c=u===void 0?{preset:"default"}:u,h=i.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-live-streaming",layout:c,instanceId:h})}},{key:"addLiveStreamingEndpoints",value:function(i){var u=i.endpoints,c=i.instanceId;this.sendMessageToCallMachine({action:Fi,endpointsOp:Cc,endpoints:u,instanceId:c})}},{key:"removeLiveStreamingEndpoints",value:function(i){var u=i.endpoints,c=i.instanceId;this.sendMessageToCallMachine({action:Fi,endpointsOp:Ac,endpoints:u,instanceId:c})}},{key:"stopLiveStreaming",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
25this.sendMessageToCallMachine(P({action:"daily-method-stop-live-streaming"},i))}},{key:"validateDailyConfig",value:function(i){i.camSimulcastEncodings&&(console.warn("camSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide camera simulcast settings."),this.validateSimulcastEncodings(i.camSimulcastEncodings)),i.screenSimulcastEncodings&&console.warn("screenSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide screen simulcast settings."),Ra()&&i.noAutoDefaultDeviceChange&&console.warn("noAutoDefaultDeviceChange is not supported on Android, and will be ignored.")}},{key:"validateSimulcastEncodings",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,c=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i){if(!(i instanceof Array||Array.isArray(i)))throw new Error("encodings must be an Array");if(!pa(i.length,1,3))throw new Error("encodings must be an Array with between 1 to ".concat(3," layers"));for(var h=0;h<i.length;h++){var p=i[h];for(var y in this._validateEncodingLayerHasValidProperties(p),p)if(wn.includes(y)){if(typeof p[y]!="number")throw new Error("".concat(y," must be a number"));if(u){var k=u[y],E=k.min,O=k.max;if(!pa(p[y],E,O))throw new Error("".concat(y," value not in range. valid range: ").concat(E," to ").concat(O))}}else if(!["active","scalabilityMode"].includes(y))throw new Error("Invalid key ".concat(y,", valid keys are:")+Object.values(wn));if(c&&!p.hasOwnProperty("maxBitrate"))throw new Error("maxBitrate is not specified")}}}},{key:"startRemoteMediaPlayer",value:(A=D((function*(i){var u=this,c=i.url,h=i.settings,p=h===void 0?{state:Jn.PLAY}:h;try{(function(y){if(typeof y!="string")throw new Error('url parameter must be "string" type')})(c),ha(p),(function(y){for(var k in y)if(!ca.includes(k))throw new Error("Invalid key ".concat(k,", valid keys are: ").concat(ca));y.simulcastEncodings&&this.validateSimulcastEncodings(y.simulcastEncodings,Ga,!0)})(p)}catch(y){throw console.error("invalid argument Error: ".concat(y)),console.error(`startRemoteMediaPlayer arguments must be of the form:
26  { url: "playback url",
27  settings?:
28  {state: "play"|"pause", simulcastEncodings?: [{}] } }`),y}return new Promise((function(y,k){u.sendMessageToCallMachine({action:"daily-method-start-remote-media-player",url:c,settings:p},(function(E){E.error?k({error:E.error,errorMsg:E.errorMsg}):y({session_id:E.session_id,remoteMediaPlayerState:{state:E.state,settings:E.settings}})}))}))})),function(i){return A.apply(this,arguments)})},{key:"stopRemoteMediaPlayer",value:(C=D((function*(i){var u=this;if(typeof i!="string")throw new Error(" remotePlayerID must be of type string");return new Promise((function(c,h){u.sendMessageToCallMachine({action:"daily-method-stop-remote-media-player",session_id:i},(function(p){p.error?h({error:p.error,errorMsg:p.errorMsg}):c()}))}))})),function(i){return C.apply(this,arguments)})},{key:"updateRemoteMediaPlayer",value:(w=D((function*(i){var u=this,c=i.session_id,h=i.settings;try{ha(h)}catch(p){throw console.error("invalid argument Error: ".concat(p)),console.error(`updateRemoteMediaPlayer arguments must be of the form:
29  session_id: "participant session",
30  { settings?: {state: "play"|"pause"} }`),p}return new Promise((function(p,y){u.sendMessageToCallMachine({action:"daily-method-update-remote-media-player",session_id:c,settings:h},(function(k){k.error?y({error:k.error,errorMsg:k.errorMsg}):p({session_id:k.session_id,remoteMediaPlayerState:{state:k.state,settings:k.settings}})}))}))})),function(i){return w.apply(this,arguments)})},{key:"startTranscription",value:function(i){$(this._callState,"startTranscription()"),this.sendMessageToCallMachine(P({action:"daily-method-start-transcription"},i))}},{key:"updateTranscription",value:function(i){if($(this._callState,"updateTranscription()"),!i)throw new Error("updateTranscription Error: options is mandatory");if(U(i)!=="object")throw new Error("updateTranscription Error: options must be object type");if(i.participants&&!Array.isArray(i.participants))throw new Error("updateTranscription 
30Error: participants must be an array");this.sendMessageToCallMachine(P({action:"daily-method-update-transcription"},i))}},{key:"stopTranscription",value:function(i){if($(this._callState,"stopTranscription()"),i&&U(i)!=="object")throw new Error("stopTranscription Error: options must be object type");if(i&&!i.instanceId)throw new Error('"instanceId" not provided');this.sendMessageToCallMachine(P({action:"daily-method-stop-transcription"},i))}},{key:"startDialOut",value:(_=D((function*(i){var u=this;$(this._callState,"startDialOut()");var c=function(k){if(k){if(!Array.isArray(k))throw new Error("Error starting dial out: audio codec must be an array");if(k.length<=0)throw new Error("Error starting dial out: audio codec array specified but empty");k.forEach((function(E){if(typeof E!="string")throw new Error("Error starting dial out: audio codec must be a string");if(E!=="OPUS"&&E!=="PCMU"&&E!=="PCMA"&&E!=="G722")throw new Error("Error starting dial out: audio codec must be one of OPUS, PCMU, PCMA, G722")}))}};if(!i.sipUri&&!i.phoneNumber)throw new Error("Error starting dial out: either a sip uri or phone number must be provided");if(i.sipUri&&i.phoneNumber)throw new Error("Error starting dial out: only one of sip uri or phone number must be provided");
30if(i.sipUri){if(typeof i.sipUri!="string")throw new Error("Error starting dial out: sipUri must be a string");if(!i.sipUri.startsWith("sip:"))throw new Error("Error starting dial out: Invalid SIP URI, must start with 'sip:'");if(i.video&&typeof i.video!="boolean")throw new Error("Error starting dial out: video must be a boolean value");(function(k){if(k&&(c(k.audio),k.video)){if(!Array.isArray(k.video))throw new Error("Error starting dial out: video codec must be an array");if(k.video.length<=0)throw new Error("Error starting dial out: video codec array specified but empty");k.video.forEach((function(E){if(typeof E!="string")throw new Error("Error starting dial out: video codec must be a string");if(E!=="H264"&&E!=="VP8")throw new Error("Error starting dial out: video codec must be H264 or VP8")}))}})(i.codecs)}if(i.phoneNumber){if(typeof i.phoneNumber!="string")throw new Error("Error starting dial out: phoneNumber must be a string");if(!/^\+\d{1,}$/.test(i.phoneNumber))throw new Error("Error starting dial out: Invalid phone number, must be valid phone number as per E.164");i.codecs&&c(i.codecs.audio)}if(i.callerId){if(typeof i.callerId!="string")throw new Error("Error starting dial out: callerId must be a string");if(i.sipUri)throw new Error("Error starting dial out: callerId not allowed with sipUri")}if(i.displayName){if(typeof i.displayName!="string")throw new Error("Error starting dial out: displayName must be a string");if(i.displayName.length>=200)throw new Error("Error starting dial out: displayName length must be less than 200")}if(i.userId){if(typeof i.userId!="string")throw new Error("Error starting dial out: userId must be a string");if(i.userId.length>36)throw new Error("Error starting dial out: userId length must be less than or equal to 36")}if(la(i),i.permissions&&i.permissions.canReceive){var h=K(Wa.validateJSONObject(i.permissions.canReceive),2),p=h[0],y=h[1];if(!p)throw new Error(y)}return new Promise((function(k,E){u.sendMessageToCallMachine(P({action:"dialout-start"},i),(function(O){O.error?E(O.error):k(O)}))}))})),function(i){return _.apply(this,arguments)})},{key:"stopDialOut",value:function(i){var u=this;return $(this._callState,"stopDialOut()"),new Promise((function(c,h){u.sendMessageToCallMachine(P({action:"dialout-stop"},i),(function(p){p.error?h(p.error):c(p)}))}))}},{key:"sipCallTransfer",value:(m=D((function*(i){var u=this;if($(this._callState,"sipCallTransfer()"),!i)throw new Error("sipCallTransfer() requires a sessionId and toEndPoint");return i.useSipRefer=!1,fa(i,"sipCallTransfer"),la(i),new Promise((function(c,h){u.sendMessageToCallMachine(P({action:Vi},i),(function(p){p.error?h(p.error):c(p)}))}))})),function(i){return m.apply(this,arguments)})},{key:"sipRefer",value:(b=D((function*(i){var u=this;if($(this._callState,"sipRefer()"),!i)throw new Error("sessionId and toEndPoint are mandatory parameter");return i.useSipRefer=!0,fa(i,"sipRefer"),new Promise((function(c,h){u.sendMessageToCallMachine(P({action:Vi},i),(function(p){p.error?h(p.error):c(p)}))}))})),function(i){return b.apply(this,arguments)})},{key:"sendDTMF",value:(T=D((function*(i){var u=this;return $(this._callState,"sendDTMF()"),(function(c){var h=c.sessionId,p=c.tones;if(!h||!p)throw new Error("sessionId and tones are mandatory parameter");if(typeof h!="string"||typeof p!="string")throw new Error("sessionId and tones should be of string type");if(p.length>20)throw new Error("tones string must be upto 20 characters");var y=/[^0-9A-D*#]/g,k=p.match(y);if(k&&k[0])throw new Error("".concat(k[0]," is not valid DTMF tone"))})(i),new Promise((function(c,h){u.sendMessageToCallMachine(P({action:"send-dtmf"},i),(function(p){p.error?h(p.error):c(p)}))}))})),function(i){return T.apply(this,arguments)})},{key:"getNetworkStats",value:function(){var i=this;return this._callState!==xe?Promise.resolve(P({stats:{latest:{}}},this._network)):new Promise((function(u){i.sendMessageToCallMachine({action:"get-calc-stats"},(function(c){u(P(P({},i._network),{},{stats:c.stats}))}))}))}},{key:"testWebsocketConnectivity",value:(M=D((function*(){var i=this;if(kn(this._testCallInProgress,"testWebsocketConnectivity()"),this.needsLoad())try{yield this.load()}catch(u){return Promise.reject(u)}return new Promise((function(u,c){i.sendMessageToCallMachine({action:"test-websocket-connectivity"},(function(h){h.error?c(h.error):u(h.results)}))}))})),function(){return M.apply(this,arguments)})},{key:"abortTestWebsocketConnectivity",value:function(){this.sendMessageToCallMachine({action:"abort-test-websocket-connectivity"})}},{key:"_validateVideoTrackForNetworkTests",value:function(i){return i?i instanceof MediaStreamTrack?!!Qc(i)||(console.error("Video track is not playable. This test needs a live video track."),!1):(console.error("Video track needs to be of type `MediaStreamTrack`."),!1):(console.error("Missing video track. You must provide a video track in order to run this test."),!1)}},{key:"testCallQuality",value:(v=D((function*(){var i=this;R(),de(this._callObjectMode,"testCallQuality()"),xt(this._callMachineInitialized,"testCallQuality()",null,!0),Sn(this._callState,this._isPreparingToJoin,"testCallQuality()");var u=this._testCallAlreadyInProgress,c=function(p){u||(i._testCallInProgress=p)};if(c(!0),this.needsLoad())try{var h=this._callState;yield this.load(),this._callState=h}catch(p){return c(!1),Promise.reject(p)}return new Promise((function(p){i.sendMessageToCallMachine({action:"test-call-quality",dailyJsVersion:i.properties.dailyJsVersion},(function(y){var k=y.results,E=k.result,O=wr(k,Zc);if(E==="failed"){var N,V=P({},O);(N=O.error)!==null&&N!==void 0&&N.details?(O.error.details=JSON.parse(O.error.details),V.error=P(P({},V.error),{},{details:P({},V.error.details)}),V.error.details.duringTest="testCallQuality"):(V.error=V.error?P({},V.error):{},V.error.details={duringTest:"testCallQuality"}),i._maybeSendToSentry(V)}c(!1),p(P({result:E},O))}))}))})),function(){return v.apply(this,arguments)})},{key:"stopTestCallQuality",value:function(){this.sendMessageToCallMachine({action:"stop-test-call-quality"})}},{key:"testConnectionQuality",value:(g=D((function*(i){var u;
30F()?(console.warn("testConnectionQuality() is deprecated: use testPeerToPeerCallQuality() instead"),u=yield this.testPeerToPeerCallQuality(i)):(console.warn("testConnectionQuality() is deprecated: use testCallQuality() instead"),u=yield this.testCallQuality());var c={result:u.result,secondsElapsed:u.secondsElapsed};return u.data&&(c.data={maxRTT:u.data.maxRoundTripTime,packetLoss:u.data.avgRecvPacketLoss}),c})),function(i){return g.apply(this,arguments)})},{key:"testPeerToPeerCallQuality",value:(f=D((function*(i){var u=this;if(kn(this._testCallInProgress,"testPeerToPeerCallQuality()"),this.needsLoad())try{yield this.load()}catch(p){return Promise.reject(p)}var c=i.videoTrack,h=i.duration;if(!this._validateVideoTrackForNetworkTests(c))throw new Error("Video track error");return this._sharedTracks.videoTrackForConnectionQualityTest=c,new Promise((function(p,y){u.sendMessageToCallMachine({action:"test-p2p-call-quality",duration:h},(function(k){k.error?y(k.error):p(k.results)}))}))})),function(i){return f.apply(this,arguments)})},{key:"stopTestConnectionQuality",value:function(){F()?(console.warn("stopTestConnectionQuality() is deprecated: use testPeerToPeerCallQuality() and stopTestPeerToPeerCallQuality() instead"),this.stopTestPeerToPeerCallQuality()):(console.warn("stopTestConnectionQuality() is deprecated: use testCallQuality() and stopTestCallQuality() instead"),this.stopTestCallQuality())}},{key:"stopTestPeerToPeerCallQuality",value:function(){this.sendMessageToCallMachine({action:"stop-test-p2p-call-quality"})}},{key:"testNetworkConnectivity",value:(d=D((function*(i){var u=this;if(kn(this._testCallInProgress,"testNetworkConnectivity()"),this.needsLoad())try{yield this.load()}catch(c){return Promise.reject(c)}if(!this._validateVideoTrackForNetworkTests(i))throw new Error("Video track error");return this._sharedTracks.videoTrackForNetworkConnectivityTest=i,new Promise((function(c,h){u.sendMessageToCallMachine({action:"test-network-connectivity"},(function(p){p.error?h(p.error):c(p.results)}))}))})),function(i){return d.apply(this,arguments)})},{key:"abortTestNetworkConnectivity",value:function(){this.sendMessageToCallMachine({action:"abort-test-network-connectivity"})}},{key:"getCpuLoadStats",value:function(){var i=this;return new Promise((function(u){i._callState===xe?i.sendMessageToCallMachine({action:"get-cpu-load-stats"},(function(c){u(c.cpuStats)})):u({cpuLoadState:void 0,cpuLoadStateReason:void 0,stats:{}})}))}},{key:"_validateEncodingLayerHasValidProperties",value:function(i){var u;if(!(((u=Object.keys(i))===null||u===void 0?void 0:u.length)>0))throw new Error("Empty encoding is not allowed. At least one of these valid keys should be specified:"+Object.values(wn))}},{key:"_validateVideoSendSettings",value:function(i,u){var c=i==="screenVideo"?["default-screen-video","detail-optimized","motion-optimized","motion-and-detail-balanced"]:["default-video","bandwidth-optimized","bandwidth-and-quality-balanced","quality-optimized","adaptive-2-layers","adaptive-3-layers"],h="Video send settings should be either an object or one of the supported presets: ".concat(c.join());if(typeof u=="string"){if(!c.includes(u))throw new Error(h)}else{if(U(u)!=="object")throw new Error(h);if(!u.maxQuality&&!u.encodings&&u.allowAdaptiveLayers===void 0)throw new Error("Video send settings must contain at least maxQuality, allowAdaptiveLayers or encodings attribute");if(u.maxQuality&&["low","medium","high"].indexOf(u.maxQuality)===-1)throw new Error("maxQuality must be either low, medium or high");if(u.encodings){var p=!1;switch(Object.keys(u.encodings).length){case 1:p=!u.encodings.low;break;case 2:p=!u.encodings.low||!u.encodings.medium;break;case 3:p=!u.encodings.low||!u.encodings.medium||!u.encodings.high;break;default:p=!0}if(p)throw new Error("Encodings must be defined as: low, low and medium, or low, medium and high.");u.encodings.low&&this._validateEncodingLayerHasValidProperties(u.encodings.low),u.encodings.medium&&this._validateEncodingLayerHasValidProperties(u.encodings.medium),u.encodings.high&&this._validateEncodingLayerHasValidProperties(u.encodings.high)}}}},{key:"validateUpdateSendSettings",value:function(i){var u=this;if(!i||Object.keys(i).length===0)throw new Error("Send settings must contain at least information for one track!");
30Object.entries(i).forEach((function(c){var h=K(c,2),p=h[0],y=h[1];u._validateVideoSendSettings(p,y)}))}},{key:"updateSendSettings",value:function(i){var u=this;return this.validateUpdateSendSettings(i),this.needsLoad()?(this._preloadCache.sendSettings=i,{sendSettings:this._preloadCache.sendSettings}):new Promise((function(c,h){u.sendMessageToCallMachine({action:"update-send-settings",sendSettings:i},(function(p){p.error?h(p.error):c(p.sendSettings)}))}))}},{key:"getSendSettings",value:function(){return this._sendSettings||this._preloadCache.sendSettings}},{key:"getLocalAudioLevel",value:function(){return this._localAudioLevel}},{key:"getRemoteParticipantsAudioLevel",value:function(){return this._remoteParticipantsAudioLevel}},{key:"getActiveSpeaker",value:function(){return R(),this._activeSpeaker}},{key:"setActiveSpeakerMode",value:function(i){return R(),this.sendMessageToCallMachine({action:"set-active-speaker-mode",enabled:i}),this}},{key:"activeSpeakerMode",value:function(){return R(),this._activeSpeakerMode}},{key:"subscribeToTracksAutomatically",value:function(){return this._preloadCache.subscribeToTracksAutomatically}},{key:"setSubscribeToTracksAutomatically",value:function(i){return $(this._callState,"setSubscribeToTracksAutomatically()","Use the subscribeToTracksAutomatically configuration property."),this._preloadCache.subscribeToTracksAutomatically=i,this.sendMessageToCallMachine({action:"daily-method-subscribe-to-tracks-automatically",enabled:i}),this}},{key:"enumerateDevices",value:(l=D((function*(){var i=this;if(this._callObjectMode){var u=yield navigator.mediaDevices.enumerateDevices();return qe()==="Firefox"&&zt().major>115&&zt().major<123&&(u=u.filter((function(c){return c.kind!=="audiooutput"}))),{devices:u.map((function(c){var h=JSON.parse(JSON.stringify(c));if(!F()&&c.kind==="videoinput"&&c.getCapabilities){var p,y=c.getCapabilities();h.facing=(y==null||(p=y.facingMode)===null||p===void 0?void 0:p.length)>=1?y.facingMode[0]:void 0}return h}))}}return new Promise((function(c){i.sendMessageToCallMachine({action:"enumerate-devices"},(function(h){c({devices:h.devices})}))}))})),function(){return l.apply(this,arguments)})},{key:"sendAppMessage",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"*";if($(this._callState,"sendAppMessage()"),JSON.stringify(i).length>this._maxAppMessageSize)throw new Error("Message data too large. Max size is "+this._maxAppMessageSize);return this.sendMessageToCallMachine({action:"app-msg",data:i,to:u}),this}},{key:"addFakeParticipant",value:function(i){return R(),$(this._callState,"addFakeParticipant()"),this.sendMessageToCallMachine(P({action:"add-fake-participant"},i)),this}},{key:"setShowNamesMode",value:function(i){return ne(this._callObjectMode,"setShowNamesMode()"),R(),i&&i!=="always"&&i!=="never"?(console.error('setShowNamesMode argument should be "always", "never", or false'),this):(this.sendMessageToCallMachine({action:"set-show-names",mode:i}),this)}},{key:"setShowLocalVideo",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return ne(this._callObjectMode,"setShowLocalVideo()"),R(),$(this._callState,"setShowLocalVideo()"),typeof i!="boolean"?(console.error("setShowLocalVideo only accepts a boolean value"),this):(this.sendMessageToCallMachine({action:"set-show-local-video",show:i}),this._showLocalVideo=i,this)}},{key:"showLocalVideo",value:function(){return ne(this._callObjectMode,"showLocalVideo()"),R(),this._showLocalVideo}},{key:"setShowParticipantsBar",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return ne(this._callObjectMode,"setShowParticipantsBar()"),R(),$(this._callState,"setShowParticipantsBar()"),typeof i!="boolean"?(console.error("setShowParticipantsBar only accepts a boolean value"),this):(this.sendMessageToCallMachine({action:"set-show-participants-bar",show:i}),this._showParticipantsBar=i,this)}},{key:"showParticipantsBar",value:function(){return ne(this._callObjectMode,"showParticipantsBar()"),R(),this._showParticipantsBar}},{key:"customIntegrations",value:function(){return R(),ne(this._callObjectMode,"customIntegrations()"),this._customIntegrations}},{key:"setCustomIntegrations",value:function(i){return R(),ne(this._callObjectMode,"setCustomIntegrations()"),$(this._callState,"setCustomIntegrations()"),ns(i)?(this.sendMessageToCallMachine({action:"set-custom-integrations",integrations:i}),this._customIntegrations=i,this):this}},{key:"startCustomIntegrations",value:function(i){var u=this;if(R(),ne(this._callObjectMode,"startCustomIntegrations()"),$(this._callState,"startCustomIntegrations()"),Array.isArray(i)&&i.some((function(p){return typeof p!="string"}
30))||!Array.isArray(i)&&typeof i!="string")return console.error("startCustomIntegrations() only accepts string | string[]"),this;var c=typeof i=="string"?[i]:i,h=c.filter((function(p){return!(p in u._customIntegrations)}));return h.length?(console.error(`Can't find custom integration(s): "`.concat(h.join(", "),'"')),this):(this.sendMessageToCallMachine({action:"start-custom-integrations",ids:c}),this)}},{key:"stopCustomIntegrations",value:function(i){var u=this;if(R(),ne(this._callObjectMode,"stopCustomIntegrations()"),$(this._callState,"stopCustomIntegrations()"),Array.isArray(i)&&i.some((function(p){return typeof p!="string"}))||!Array.isArray(i)&&typeof i!="string")return console.error("stopCustomIntegrations() only accepts string | string[]"),this;var c=typeof i=="string"?[i]:i,h=c.filter((function(p){return!(p in u._customIntegrations)}));return h.length?(console.error(`Can't find custom integration(s): "`.concat(h.join(", "),'"')),this):(this.sendMessageToCallMachine({action:"stop-custom-integrations",ids:c}),this)}},{key:"customTrayButtons",value:function(){return ne(this._callObjectMode,"customTrayButtons()"),R(),this._customTrayButtons}},{key:"updateCustomTrayButtons",value:function(i){return ne(this._callObjectMode,"updateCustomTrayButtons()"),R(),$(this._callState,"updateCustomTrayButtons()"),ts(i)?(this.sendMessageToCallMachine({action:"update-custom-tray-buttons",btns:i}),this._customTrayButtons=i,this):(console.error("updateCustomTrayButtons only accepts a dictionary of the type ".concat(JSON.stringify(Ht))),this)}},{key:"theme",value:function(){return ne(this._callObjectMode,"theme()"),this.properties.theme}},{key:"setTheme",value:function(i){var u=this;return ne(this._callObjectMode,"setTheme()"),new Promise((function(c,h){try{u.validateProperties({theme:i}),u.properties.theme=P({},i),u.sendMessageToCallMachine({action:"set-theme",theme:u.properties.theme});try{u.emitDailyJSEvent({action:jo,theme:u.properties.theme})}catch(p){console.log("could not emit 'theme-updated'",p)}c(u.properties.theme)}catch(p){h(p)}}))}},{key:"requestFullscreen",value:(o=D((function*(){if(R(),this._iframe&&!document.fullscreenElement&&Ui())try{(yield this._iframe.requestFullscreen)?this._iframe.requestFullscreen():this._iframe.webkitRequestFullscreen()}catch(i){console.log("could not make video call fullscreen",i)}})),function(){return o.apply(this,arguments)})},{key:"exitFullscreen",value:function(){R(),document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen()}},{key:"getSidebarView",value:(s=D((function*(){var i=this;return this._callObjectMode?(console.error("getSidebarView is not available in callObject mode"),Promise.resolve(null)):new Promise((function(u){i.sendMessageToCallMachine({action:"get-sidebar-view"},(function(c){u(c.view)}))}))})),function(){return s.apply(this,arguments)})},{key:"setSidebarView",value:function(i){return this._callObjectMode?(console.error("setSidebarView is not available in callObject mode"),this):(this.sendMessageToCallMachine({action:"set-sidebar-view",view:i}),this)}},{key:"room",value:(a=D((function*(){var i=this,u=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).includeRoomConfigDefaults,c=u===void 0||u;return this._accessState.access===pn||this.needsLoad()?this.properties.url?{roomUrlPendingJoin:this.properties.url}:null:new Promise((function(h){i.sendMessageToCallMachine({action:"lib-room-info",includeRoomConfigDefaults:c},(function(p){delete p.action,delete p.callbackStamp,h(p)}))}))})),function(){return a.apply(this,arguments)})},{key:"geo",value:(r=D((function*(){try{var i=yield fetch("https://gs.daily.co/_ks_/x-swsl/:");return{current:(yield i.json()).geo}}catch(u){return console.error("geo lookup failed",u),{current:""}}})),function(){return r.apply(this,arguments)})},{key:"setNetworkTopology",value:(n=D((function*(i){var u=this;return R(),$(this._callState,"setNetworkTopology()"),new Promise((function(c,h){u.sendMessageToCallMachine({action:"set-network-topology",opts:i},(function(p){p.error?h({error:p.error}):c({workerId:p.workerId})}))}))})),function(i){return n.apply(this,arguments)})},{key:"getNetworkTopology",value:(e=D((function*(){var i=this;return new Promise((function(u,c){i.needsLoad()&&u({topology:"none"}),i.sendMessageToCallMachine({action:"get-network-topology"},(function(h){h.error?c({error:h.error}):u({topology:h.topology})}))}))})),function(){return e.apply(this,arguments)})},{key:"setPlayNewParticipantSound",value:function(i){if(R(),typeof i!="number"&&i!==!0&&i!==!1)throw new Error("argument to setShouldPlayNewParticipantSound should be true, false, or a number, but is ".concat(i));this.sendMessageToCallMachine({action:"daily-method-set-play-ding",arg:i}
30)}},{key:"on",value:function(i,u){return kt.prototype.on.call(this,i,u)}},{key:"once",value:function(i,u){return kt.prototype.once.call(this,i,u)}},{key:"off",value:function(i,u){return kt.prototype.off.call(this,i,u)}},{key:"validateProperties",value:function(i){var u,c;if(i!=null&&(u=i.dailyConfig)!==null&&u!==void 0&&u.userMediaAudioConstraints){var h,p;F()||console.warn("userMediaAudioConstraints is deprecated. You can override constraints with inputSettings.audio.settings, found in DailyCallOptions.");var y=i.inputSettings||{};y.audio=((h=i.inputSettings)===null||h===void 0?void 0:h.audio)||{},y.audio.settings=((p=i.inputSettings)===null||p===void 0||(p=p.audio)===null||p===void 0?void 0:p.settings)||{},y.audio.settings=P(P({},y.audio.settings),i.dailyConfig.userMediaAudioConstraints),i.inputSettings=y,delete i.dailyConfig.userMediaAudioConstraints}if(i!=null&&(c=i.dailyConfig)!==null&&c!==void 0&&c.userMediaVideoConstraints){var k,E;F()||console.warn("userMediaVideoConstraints is deprecated. You can overri
30de constraints with inputSettings.video.settings, found in DailyCallOptions.");var O=i.inputSettings||{};O.video=((k=i.inputSettings)===null||k===void 0?void 0:k.video)||{},O.video.settings=((E=i.inputSettings)===null||E===void 0||(E=E.video)===null||E===void 0?void 0:E.settings)||{},O.video.settings=P(P({},O.video.settings),i.dailyConfig.userMediaVideoConstraints),i.inputSettings=O,delete i.dailyConfig.userMediaVideoConstraints}for(var N in i)if(Ne[N]){if(Ne[N].validate&&!Ne[N].validate(i[N],this))throw new Error("property '".concat(N,"': ").concat(Ne[N].help))}else console.warn("Ignoring unrecognized property '".concat(N,"'")),delete i[N]}},{key:"assembleMeetingUrl",value:function(){var i,u,c=P(P({},this.properties),{},{emb:this.callClientId,embHref:encodeURIComponent(window.location.href),proxy:(i=this.properties.dailyConfig)!==null&&i!==void 0&&i.proxyUrl?encodeURIComponent((u=this.properties.dailyConfig)===null||u===void 0?void 0:u.proxyUrl):void 0}),h=c.url.match(/\?/)?"&":"?";return c.url+h+Object.keys(Ne).filter((function(p){return Ne[p].queryString&&c[p]!==void 0})).map((function(p){return"".concat(Ne[p].queryString,"=").concat(c[p])}
30)).join("&")}},{key:"needsLoad",value:function(){return[Mi,Ci,De,Ee].includes(this._callState)}},{key:"sendMessageToCallMachine",value:function(i,u){if(this._destroyed&&(this._logUseAfterDestroy(),this.strictMode))throw new Error("Use after destroy");this._messageChannel.sendMessageToCallMachine(i,u,this.callClientId,this._iframe)}},{key:"forwardPackagedMessageToCallMachine",value:function(i){this._messageChannel.forwardPackagedMessageToCallMachine(i,this._iframe,this.callClientId)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(i){return this._messageChannel.addListenerForPackagedMessagesFromCallMachine(i,this.callClientId)}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(i){this._messageChannel.removeListenerForPackagedMessagesFromCallMachine(i)}},{key:"handleMessageFromCallMachine",value:function(i){switch(i.action){case Lo:this.sendMessageToCallMachine(P({action:Do},this.properties));break;case"call-machine-initialized":this._callMachineInitialized=!0;var u={action:Dt,level:"log",code:1011,stats:{event:"bundle load",time:this._bundleLoadTime==="no-op"?0:this._bundleLoadTime,preLoaded:this._bundleLoadTime==="no-op",url:Bt(this.properties.dailyConfig)}};this.sendMessageToCallMachine(u),this._delayDuplicateInstanceLog&&this._logDuplicateInstanceAttempt();break;case Pi:this._loadedCallback&&(this._loadedCallback(),this._loadedCallback=null),this.emitDailyJSEvent(i);break;case Uo:var c,h=P({},i);delete h.internal,this._maxAppMessageSize=((c=i.internal)===null||c===void 0?void 0:c._maxAppMessageSize)||gn,this._joinedCallback&&(this._joinedCallback(i.participants),this._joinedCallback=null),this.emitDailyJSEvent(h);break;case Jo:case $o:if(this._callState===De)return;if(i.participant&&i.participant.session_id){var p=i.participant.local?"local":i.participant.session_id;if(this._callObjectMode){var y=this._callMachine().store;zi(i.participant,y),Gi(i.participant,y),Hi(i.participant,this._participants[p],y)}try{this.maybeParticipantTracksStopped(this._participants[p],i.participant),this.maybeParticipantTracksStarted(this._participants[p],i.participant),this.maybeEventRecordingStopped(this._participants[p],i.participant),this.maybeEventRecordingStarted(this._participants[p],i.participant)}catch(as){console.error("track events error",as)}this.compareEqualForParticipantUpdateEvent(i.participant,this._participants[p])||(this._participants[p]=P({},i.participant),this.toggleParticipantAudioBasedOnNativeAudioFocus(),this.emitDailyJSEvent(i))}break;case qo:if(i.participant&&i.participant.session_id){var k=this._participants[i.participant.session_id];k&&this.maybeParticipantTracksStopped(k,null),delete this._participants[i.participant.session_id],this.emitDailyJSEvent(i)}break;case Yo:Z(this._participantCounts,i.participantCounts)||(this._participantCounts=i.participantCounts,this.emitDailyJSEvent(i));break;case Wo:var E={access:i.access};i.awaitingAccess&&(E.awaitingAccess=i.awaitingAccess),Z(this._accessState,E)||(this._accessState=E,this.emitDailyJSEvent(i));break;case zo:if(i.meetingSession){this._meetingSessionSummary=i.meetingSession,this.emitDailyJSEvent(i);var O=P(P({},i),{},{action:"meeting-session-updated"});this.emitDailyJSEvent(O)}break;case Ni:var N;this._iframe&&!i.preserveIframe&&(this._iframe.src=""),this._updateCallState(Ee),this.resetMeetingDependentVars(),this._loadedCallback&&(this._loadedCallback(i.errorMsg),this._loadedCallback=null),i.preserveIframe;var V=wr(i,eu);V!=null&&(N=V.error)!==null&&N!==void 0&&N.details&&(V.error.details=JSON.parse(V.error.details)),this._maybeSendToSentry(i),this._joinedCallback&&(this._joinedCallback(null,V),this._joinedCallback=null),this.emitDailyJSEvent(V);break;case Bo:this._callState!==Ee&&this._updateCallState(De),this.resetMeetingDependentVars(),this._resolveLeave&&(this._resolveLeave(),this._resolveLeave=null),this.emitDailyJSEvent(i);break;case"selected-devices-updated":i.devices&&this.emitDailyJSEvent(i);break;case vc:var ge=i.state,Pe=i.threshold,st=i.quality,z=ge.state,se=ge.reasons;z===this._network.networkState&&Z(se,this._network.networkStateReasons)&&Pe===this._network.threshold&&st===this._network.quality||(this._network.networkState=z,this._network.networkStateReasons=se,this._network.quality=st,this._network.threshold=Pe,i.networkState=z,se.length&&(i.networkStateReasons=se),delete i.state,this.emitDailyJSEvent(i));break;case _c:i&&i.cpuLoadState&&this.emitDailyJSEvent(i);break;case bc:i&&i.faceCounts!==void 0&&this.emitDailyJSEvent(i);break;case gc:var Ie=i.activeSpeaker;this._activeSpeaker.peerId!==Ie.peerId&&(this._activeSpeaker.peerId=Ie.peerId,this.emitDailyJSEvent({action:i.action,activeSpeaker:this._activeSpeaker}));break;case"show-local-video-changed":if(this._callObjectMode)return;var ot=i.show;this._showLocalVideo=ot,this.emitDailyJSEvent({action:i.action,show:ot});break;case mc:var wt=i.enabled;this._activeSpeakerMode!==wt&&(this._activeSpeakerMode=wt,this.emitDailyJSEvent({action:i.action,enabled:this._activeSpeakerMode}));break;case Ho:case Qo:case Ko:this._waitingParticipants=i.allWaitingParticipants,this.emitDailyJSEvent({action:i.action,participant:i.participant});break;case Mc:Z(this._receiveSettings,i.receiveSettings)||(this._receiveSettings=i.receiveSettings,this.emitDailyJSEvent({action:i.action,receiveSettings:i.receiveSettings}));break;case Di:this._maybeUpdateInputSettings(i.inputSettings);break;case"send-settings-updated":Z(this._sendSettings,i.sendSettings)||(this._sendSettings=i.sendSettings,this._preloadCache.sendSettings=null,this.emitDailyJSEvent({action:i.action,sendSettings:i.sendSettings}));break;case"local-audio-level":this._localAudioLevel=i.audioLevel,this._preloadCache.localAudioLevelObserver=null,this.emitDailyJSEvent(i);break;case"remote-participants-audio-level":this._remoteParticipantsAudioLevel=i.participantsAudioLevel,this._preloadCache.remoteParticipantsAudioLevelObserver=null,this.emitDailyJSEvent(i);break;case uc:var ct=i.session_id;this._rmpPlayerState[ct]=i.playerState,this.emitDailyJSEvent(i);break;case dc:delete this._rmpPlayerState[i.session_id],this.emitDailyJSEvent(i);break;case lc:var ut=i.session_id,br=this._rmpPlayerState[ut];br&&this.compareEqualForRMPUpdateEvent(br,i.remoteMediaPlayerState)||(this._rmpPlayerState[ut]=i.remoteMediaPlayerState,this.emitDailyJSEvent(i));break;case"custom-button-click":case"sidebar-view-changed":case"pip-started":case"pip-stopped":this.emitDailyJSEvent(i);break;case Go:var is=this._meetingSessionState.topology!==(i.meetingSessionState&&i.meetingSessionState.topology);this._meetingSessionState=En(i.meetingSessionState,this._callObjectMode),(this._callObjectMode||is)&&this.emitDailyJSEvent(i);break;case fc:this._isScreenSharing=!0,this.emitDailyJSEvent(i);break;case hc:case pc:this._isScreenSharing=!1,this.emitDailyJSEvent(i);break;case Ii:case Li:case rc:case ic:case ac:case ec:case tc:case nc:case Ro:case Fo:case oc:case cc:case"test-completed":case yc:case sc:case wc:case Sc:case kc:case Ec:case ji:case Tc:case"dialin-ready":case"dialin-connected":case"dialin-error":case"dialin-stopped":case"dialin-warning":case"dialout-connected":case"dialout-answered":case"dialout-error":case"dialout-stopped":case"dialout-warning":this.emitDailyJSEvent(i);break;case"request-fullscreen":this.requestFullscreen();break;case"request-exit-fullscreen":this.exitFullscreen()}}},{key:"maybeEventRecordingStopped",value:function(i,u){var c="record";i&&(u.local||u[c]!==!1||i[c]===u[c]||this.emitDailyJSEvent({action:Li}))}},{key:"maybeEventRecordingStarted",value:function(i,u){var c="record";i&&(u.local||u[c]!==!0||i[c]===u[c]||this.emitDailyJSEvent({action:Ii}))}},{key:"_trackStatePlayable",value:function(i){return!(!i||i.state!==Co)}},{key:"_trackChanged",value:function(i,u){return(i==null?void 0:i.id)!==(u==null?void 0:u.id)}},{key:"maybeEventTrackStopped",value:function(i,u,c){var h,p,y=(h=u==null?void 0:u.tracks[i])!==null&&h!==void 0?h:null,k=(p=c==null?void 0:c.tracks[i])!==null&&p!==void 0?p:null,E=y==null?void 0:y.track;if(E){var O=this._trackStatePlayable(y),N=this._trackStatePlayable(k),V=this._trackChanged(E,k==null?void 0:k.track);O&&(N&&!V||this.emitDailyJSEvent({action:Zo,track:E,participant:c??u,type:i}))}}},{key:"maybeEventTrackStarted",value:function(i,u,c){var h,p,y=(h=u==null?void 0:u.tracks[i])!==null&&h!==void 0?h:null,k=(p=c==null?void 0:c.tracks[i])!==null&&p!==void 0?p:null,E=k==null?void 0:k.track;if(E){var O=this._trackStatePlayable(y),N=this._trackStatePlayable(k),V=this._trackChanged(y==null?void 0:y.track,E);N&&(O&&!V||this.emitDailyJSEvent({action:Xo,track:E,participant:c,type:i}))}}},{key:"maybeParticipantTracksStopped",value:function(i,u){if(i)for(var c in i.tracks)this.maybeEventTrackStopped(c,i,u)}},{key:"maybeParticipantTracksStarted",value:function(i,u){if(u)for(var c in u.tracks)this.maybeEventTrackStarted(c,i,u)}},{key:"compareEqualForRMPUpdateEvent",value:function(i,u){var c,h;return i.state===u.state&&((c=i.settings)===null||c===void 0?void 0:c.volume)===((h=u.settings)===null||h===void 0?void 0:h.volume)}}
30,{key:"emitDailyJSEvent",value:function(i){try{i.callClientId=this.callClientId,this.emit(i.action,i)}catch(u){console.log("could not emit",i,u)}}},{key:"compareEqualForParticipantUpdateEvent",value:function(i,u){return!!Z(i,u)&&(!i.videoTrack||!u.videoTrack||i.videoTrack.id===u.videoTrack.id&&i.videoTrack.muted===u.videoTrack.muted&&i.videoTrack.enabled===u.videoTrack.enabled)&&(!i.audioTrack||!u.audioTrack||i.audioTrack.id===u.audioTrack.id&&i.audioTrack.muted===u.audioTrack.muted&&i.audioTrack.enabled===u.audioTrack.enabled)}},{key:"nativeUtils",value:function(){return F()?typeof DailyNativeUtils>"u"?(console.warn("in React Native, DailyNativeUtils is expected to be available"),null):DailyNativeUtils:null}},{key:"updateIsPreparingToJoin",value:function(i){this._updateCallState(this._callState,i)}},{key:"_updateCallState",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._isPreparingToJoin;if(i!==this._callState||u!==this._isPreparingToJoin){var c=this._callState,h=this._isPreparingToJoin;this._callState=i,this._isPreparingToJoin=u;var p=this._callState===xe;this.updateShowAndroidOngoingMeetingNotification(p);var y=Ut(c,h),k=Ut(this._callState,this._isPreparingToJoin);y!==k&&(this.updateKeepDeviceAwake(k),this.updateDeviceAudioMode(k),this.updateNoOpRecordingEnsuringBackgroun
vendor: 1,527 bytes, line 30
30dContinuity(k))}}},{key:"resetMeetingDependentVars",value:function(){this._participants={},this._participantCounts=oa,this._waitingParticipants={},this._activeSpeaker={},this._activeSpeakerMode=!1,this._didPreAuth=!1,this._accessState={access:pn},this._finalSummaryOfPrevSession=this._meetingSessionSummary,this._meetingSessionSummary={},this._meetingSessionState=En(sa,this._callObjectMode),this._isScreenSharing=!1,this._receiveSettings={},this._inputSettings=void 0,this._sendSettings={},this._localAudioLevel=0,this._isLocalAudioLevelObserverRunning=!1,this._remoteParticipantsAudioLevel={},this._isRemoteParticipantsAudioLevelObserverRunning=!1,this._maxAppMessageSize=gn,this._callMachineInitialized=!1,this._bundleLoadTime=void 0,this._preloadCache}},{key:"updateKeepDeviceAwake",value:function(i){F()&&this.nativeUtils().setKeepDeviceAwake(i,this.callClientId)}},{key:"updateDeviceAudioMode",value:function(i){if(F()&&!this.disableReactNativeAutoDeviceManagement("audio")){var u=i?this._nativeInCallAudioMode:"idle";this.nativeUtils().setAudioMode(u)}}},{key:"updateShowAndroidOngoingMeetingNotification",value:function(i){if(F()&&this.nativeUtils().setShowOngoingMeetingNotification){var u,c,h,p;if(this.properties.reactNativeConfig&&this.properties.reactNativeConfig.androidInCallNotification){var y=this.properties.reactNativeConfig.androidInCallNotification;u=y.title,c=y.subtitle,h=y.iconName,p=y.disableForCustomOverride}p&&(i=!1),this.nativeUtils().setShowOngoingMeetingNotification(i,u,c,h,this.callClientId)}}}
30,{key:"updateNoOpRecordingEnsuringBackgroundContinuity",value:function(i){F()&&this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity&&this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity(i)}},{key:"toggleParticipantAudioBasedOnNativeAudioFocus",value:function(){var i;if(F()){var u=(i=this._callMachine())===null||i===void 0||(i=i.store)===null||i===void 0?void 0:i.getState();for(var c in u==null?void 0:u.streams){var h=u.streams[c];h&&h.pendingTrack&&h.pendingTrack.kind==="audio"&&(h.pendingTrack.enabled=this._hasNativeAudioFocus)}}}},{key:"disableReactNativeAutoDeviceManagement",value:function(i){return this.properties.reactNativeConfig&&this.properties.reactNativeConfig.disableAutoDeviceManagement&&this.properties.reactNativeConfig.disableAutoDeviceManagement[i]}},{key:"absoluteUrl",value:function(i){if(i!==void 0){var u=document.createElement("a");return u.href=i,u.href}}},{key:"sayHello",value:function(){var i="hello, world.";return console.log(i),i}},{key:"_logUseAfterDestroy",value:function(){var i=Object.values(je)[0];if(this.needsLoad())if(i&&!i.needsLoad()){var u={action:Dt,level:"error",code:this.strictMode?9995:9997};i.sendMessageToCallMachine(u)}else this.strictMode||console.error("You are are attempting to use a call instance that was previously destroyed, which is unsupported. Please remove `strictMode: false` from your constructor properties to enable strict mode to track down and fix this unsupported usage.");else{var c={action:Dt,level:"error",code:this.strictMode?9995:9997};this._messageChannel.sendMessageToCallMachine(c,null,this.callClientId,this._iframe)}}},{key:"_logDuplicateInstanceAttempt",value:function(){for(var i=0,u=Object.values(je);i<u.length;i++){var c=u[i];c._callMachineInitialized?(c.sendMessageToCallMachine({action:Dt,level:"warn",code:this.allowMultipleCallInstances?9993:9992}),c._delayDuplicateInstanceLog=!1):c._delayDuplicateInstanceLog=!0}}},{key:"_maybeSendToSentry",value:function(i){var u,c,h,p;if(!((u=i.error)!==null&&u!==void 0&&u.type&&(![Io,Po,Oi].includes(i.error.type)||i.error.type===Oi&&i.error.msg.includes("deleted")))){var y=(c=this.properties)!==null&&c!==void 0&&c.url?new URL(this.properties.url):void 0,k="production";y&&y.host.includes(".staging.daily")&&(k="staging");var E,O,N,V,ge,Pe=(function(ct){const ut=[Ws(),qs(),_o(),vo(),Eo(),Mo(),Qs(),To()];return ct.autoSessionTracking!==!1&&ut.push(ko()),ut})({}).filter((function(ct){return!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(ct.name)})),st=new io({dsn:"https://[email protected]/168844",transport:uo,stackParser:mo,integrations:Pe,environment:k}),z=new Oe;if(z.setClient(st),st.init(),this.session_id&&z.setExtra("sessionId",this.session_id),this.properties){var se=P({},this.properties);se.userName=se.userName?"[Filtered]":void 0,se.userData=se.userData?"[Filtered]":void 0,se.token=se.token?"[Filtered]":void 0,z.setExtra("properties",se)}if(y){var Ie=y.searchParams.get("domain");if(!Ie){var ot=y.host.match(/(.*?)\./);Ie=ot&&ot[1]||""}Ie&&z.setTag("domain",Ie)}i.error&&(z.setTag("fatalErrorType",i.error.type),z.setExtra("errorDetails",i.error.details),!((E=i.error.details)===null||E===void 0)&&E.uri&&z.setTag("serverAddress",i.error.details.uri),!((O=i.error.details)===null||O===void 0)&&O.workerGroup&&z.setTag("workerGroup",i.error.details.workerGroup),!((N=i.error.details)===null||N===void 0)&&N.geoGroup&&z.setTag("geoGroup",i.error.details.geoGroup),!((V=i.error.details)===null||V===void 0)&&V.on&&z.setTag("connectionAttempt",i.error.details.on),(ge=i.error.details)!==null&&ge!==void 0&&ge.bundleUrl&&(z.setTag("bundleUrl",i.error.details.bundleUrl),z.setTag("bundleError",i.error.details.sourceError.type))),z.setTags({callMode:this._callObjectMode?F()?"reactNative":(h=this.properties)!==null&&h!==void 0&&(h=h.dailyConfig)!==null&&h!==void 0&&(h=h.callMode)!==null&&h!==void 0&&h.includes("prebuilt")?this.properties.dailyConfig.callMode:"custom":"prebuilt-frame",version:t.version()});var wt=((p=i.error)===null||p===void 0?void 0:p.msg)||i.errorMsg;z.captureException(new Error(wt))}}},{key:"_callMachine",value:function(){var i;return(i=window._daily)===null||i===void 0||(i=i.instances)===null||i===void 0||(i=i[this.callClientId])===null||i===void 0?void 0:i.callMachine}},{key:"_maybeUpdateInputSettings",value:function(i){if(!Z(this._inputSettings,i)){var u=this._getInputSettings();this._inputSettings=i;var c=this._getInputSettings();Z(u,c)||this.emitDailyJSEvent({action:Di,inputSettings:c})}}}],[{key:"supportedBrowser",value:function(){if(F())return{supported:!0,mobile:!0,name:"React Native",version:null,supportsScreenShare:!0,supportsSfu:!0,supportsVideoProcessing:!1,supportsAudioProcessing:!1};var i=fs.getParser(le());return{supported:!!yn(),mobile:i.getPlatformType()==="mobile",name:i.getBrowserName(),version:i.getBrowserVersion(),supportsFullscreen:!!Ui(),supportsScreenShare:!!Oc(),supportsSfu:!!yn(),supportsVideoProcessing:Na(),supportsAudioProcessing:xa()}}},{key:"version",value:function(){return"0.84.0"}},{key:"createCallObject",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i.layout="none",new t(null,i)}},{key:"wrap",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(),!i||!i.contentWindow||typeof i.src!="string")throw new Error("DailyIframe::Wrap needs an iframe-like first argument");return u.layout||(u.customLayout?u.layout="custom-v1":u.layout="browser"),new t(i,u)}},{key:"createFrame",value:function(i,u){var c,h;R(),i&&u?(c=i,h=u):i&&i.append?(c=i,h={}):(c=document.body,h=i||{});var p=h.iframeStyle;p||(p=c===document.body?{position:"fixed",border:"1px solid black",backgroundColor:"white",width:"375px",height:"450px",right:"1em",bottom:"1em"}:{border:0,width:"100%",height:"100%"});var y=document.createElement("iframe");window.navigator&&window.navigator.userAgent.match(/Chrome\/61\./)?y.allow="microphone, camera":y.allow="microphone; camera; autoplay; display-capture; screen-wake-lock",y.style.visibility="hidden",c.appendChild(y),y.style.visibility=null,Object.keys(p).forEac
30h((function(k){return y.style[k]=p[k]})),h.layout||(h.customLayout?h.layout="custom-v1":h.layout="browser");try{return new t(y,h)}catch(k){throw c.removeChild(y),k}}},{key:"createTransparentFrame",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};R();var u=document.createElement("iframe");return u.allow="microphone; camera; autoplay",u.style.cssText=`
31      position: fixed;
32      top: 0;
33      left: 0;
34      width: 100%;
35      height: 100%;
36      border: 0;
37      pointer-events: none;
38    `,document.body.appendChild(u),i.layout||(i.layout="custom-v1"),t.wrap(u,i)}},{key:"getCallInstance",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return i?je[i]:Object.values(je)[0]}}]);var e,n,r,a,s,o,l,d,f,g,v,M,T,b,m,_,w,C,A,I,L,x,Y,te,ze,Ge,He,ur,lr,dr,fr,hr,pr,gr,mr,vr,yr,_r})();function la(t){if(t.extension){if(typeof t.extension!="string")throw new Error("Error starting dial out: extension must be a string");if(t.extension.length>20)throw new Error("Error starting dial out: extension length must be less than or equal to 20")}if(t.waitBeforeExtensionDialSec){if(typeof t.waitBeforeExtensionDialSec!="number")throw new Error("Error starting dial out: waitBeforeExtensionDialSec must be a number");if(t.waitBeforeExtensionDialSec>60)throw new Error("Error starting dial out: waitBeforeExtensionDialSec must be less than or equal to 60");if(!t.extension)throw new Error("Error starting dial out: waitBeforeExtensionDialSec requires a phoneNumber and extension")}}function Qe(t,e){var n={};for(var r in t)if(t[r]instanceof MediaStreamTrack)console.warn("MediaStreamTrack found in props or cache.",r),n[r]=Se;else if(r==="dailyConfig"){if(t[r].modifyLocalSdpHook){var a=window._daily.instances[e].customCallbacks||{};a.modifyLocalSdpHook=t[r].modifyLocalSdpHook,window._daily.instances[e].customCallbacks=a,delete t[r].modifyLocalSdpHook}if(t[r].modifyRemoteSdpHook){var s=window._daily.instances[e].customCallbacks||{};s.modifyRemoteSdpHook=t[r].modifyRemoteSdpHook,window._daily.instances[e].customCallbacks=s,delete t[r].modifyRemoteSdpHook}n[r]=t[r]}else n[r]=t[r];return n}function $(t){var e=arguments.length>2?arguments[2]:void 0;if(t!==xe){var n="".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"This daily-js method"," only supported after join.");throw e&&(n+=" ".concat(e)),console.error(n),new Error(n)}}function Ut(t,e){return[Bn,xe].includes(t)||e}function Sn(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"This daily-js method",r=arguments.length>3?arguments[3]:void 0;if(Ut(t,e)){var a="".concat(n," not supported after joining a meeting.");throw r&&(a+=" ".concat(r)),console.error(a),new Error(a)}}function xt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"This daily-js method",n=arguments.length>2?arguments[2]:void 0;if(!t){var r="".concat(e,arguments.length>3&&arguments[3]!==void 0&&arguments[3]?" requires preAuth() or startCamera() to initialize call state.":" requires preAuth(), startCamera(), or join() to initialize call state.");throw n&&(r+=" ".concat(n)),console.error(r),new Error(r)}}function kn(t){if(t){var e="A pre-call quality test is in progress. Please try ".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"This daily-js method"," again once testing has completed. Use stopTestCallQuality() to end it early.");throw console.error(e),new Error(e)}}function de(t){if(!t){var e="".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"This daily-js method"," is only supported on custom callObject instances");throw console.error(e),new Error(e)}}function ne(t){if(t){var e="".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"This daily-js method"," is only supported as part of Daily's Prebuilt");throw console.error(e),new Error(e)}}function R(){if(F())throw new Error("This daily-js method is not currently supported in React Native")}function dt(){if(!F())throw new Error("This daily-js method is only supported in React Native")}function Ha(t){if(t===void 0)return!0;var e;if(typeof t=="string")e=t;else try{e=JSON.stringify(t),Z(JSON.parse(e),t)||console.warn("The userData provided will be modified when serialized.")}catch(n){throw Error("userData must be serializable to JSON: ".concat(n))}if(e.length>4096)throw Error("userData is too large (".concat(e.length," characters). Maximum size suppported is ").concat(4096,"."));return!0}
38function Qa(t,e){for(var n=e.allowAllParticipantsKey,r=function(v){var M=["local"];return n||M.push("*"),v&&!M.includes(v)},a=function(v){return!!(v.layer===void 0||Number.isInteger(v.layer)&&v.layer>=0||v.layer==="inherit")},s=function(v){return!!v&&!(v.video&&!a(v.video))&&!(v.screenVideo&&!a(v.screenVideo))},o=0,l=Object.entries(t);o<l.length;o++){var d=K(l[o],2),f=d[0],g=d[1];if(!r(f)||!s(g))return!1}return!0}function Ka(t){if(U(t)!=="object")return!1;for(var e=0,n=Object.entries(t);e<n.length;e++){var r=K(n[e],2),a=r[0],s=r[1];switch(a){case"video":if(U(s)!=="object")return!1;for(var o=0,l=Object.entries(s);o<l.length;o++){var d=K(l[o],2),f=d[0],g=d[1];switch(f){case"processor":if(!ru(g))return!1;break;case"settings":if(!da(g))return!1;break;default:return!1}}break;case"audio":if(U(s)!=="object")return!1;for(var v=0,M=Object.entries(s);v<M.length;v++){var T=K(M[v],2),b=T[0],m=T[1];switch(b){case"processor":if(!nu(m))return!1;break;case"settings":if(!da(m))return!1;break;default:return!1}}break;default:return!1}}return!0}function Xa(t,e,n){var r,a=[];t.video&&t.video.processor&&(Na((r=e==null?void 0:e.useLegacyVideoProcessor)!==null&&r!==void 0&&r)||(t.video.settings?delete t.video.processor:delete t.video,a.push("video"))),t.audio&&t.audio.processor&&(xa()||(t.audio.settings?delete t.audio.processor:delete t.audio,a.push("audio"))),a.length>0&&console.error("Ignoring settings for browser- or platform-unsupported input processor(s): ".concat(a.join(", "))),t.audio&&t.audio.settings&&(t.audio.settings.customTrack?(n.audioTrack=t.audio.settings.customTrack,t.audio.settings={customTrack:Se}):delete n.audioTrack),t.video&&t.video.settings&&(t.video.settings.customTrack?(n.videoTrack=t.video.settings.customTrack,t.video.settings={customTrack:Se}):delete n.videoTrack)}function nu(t){if(F())return console.warn("Video processing is not yet supported in React Native"),!1;var e=["type"];return!!t&&U(t)==="object"&&(Object.keys(t).filter((function(n){return!e.includes(n)})).forEach((function(n){console.warn("invalid key inputSettings -> audio -> processor : ".concat(n)),delete t[n]})),!!(function(n){return typeof n!="string"?!1:Object.values(Da).includes(n)?!0:(console.error("inputSettings audio processor type invalid"),!1)})(t.type))}function ru(t){if(F())return console.warn("Video processing is not yet supported in React Native"),!1;var e=["type","config"];return!t||U(t)!=="object"||!(function(n){return typeof n!="string"?!1:Object.values(Vt).includes(n)?!0:(console.error("inputSettings video processor type invalid"),!1)})(t.type)||t.config&&(U(t.config)!=="object"||!(function(n,r){var a=Object.keys(r);if(a.length===0)return!0;var s="invalid object in inputSettings -> video -> processor -> config";switch(n){case Vt.BGBLUR:return a.length>1||a[0]!=="strength"?(console.error(s),!1):!(typeof r.strength!="number"||r.strength<=0||r.strength>1||isNaN(r.strength))||(console.error("".concat(s,"; expected: {0 < strength <= 1}, got: ").concat(r.strength)),!1);case Vt.BGIMAGE:return!(r.source!==void 0&&!(function(o){if(o.source==="default")return o.type="default",!0;if(o.source instanceof ArrayBuffer)return!0;if(Jt(o.source))return o.type="url",!!(function(f){var g=new URL(f),v=g.pathname;if(g.protocol==="data:")try{var M=v.substring(v.indexOf(":")+1,v.indexOf(";")).split("/")[1];return vn.includes(M)}catch(b){return console.error("failed to deduce blob content type",b),!1}var T=v.split(".").at(-1).toLowerCase().trim();return vn.includes(T)})(o.source)||(console.error("invalid image type; supported types: [".concat(vn.join(", "),"]")),!1);return l=o.source,d=Number(l),isNaN(d)||!Number.isInteger(d)||d<=0||d>10?(console.error("invalid image selection; must be an int, > 0, <= ".concat(10)),!1):(o.type="daily-preselect",!0);var l,d})(r));default:return!0}})(t.type,t.config))?!1:(Object.keys(t).filter((function(n){return!e.includes(n)})).forEach((function(n){console.warn("invalid key inputSettings -> video -> processor : ".concat(n)),delete t[n]})),!0)}function da(t){return U(t)==="object"&&(!t.customTrack||t.customTrack instanceof MediaStreamTrack)}function Gn(){var t=Object.values(Vt).join(" | "),e=Object.values(Da).join(" | ");return"inputSettings must be of the form: { video?: { processor?: { type: [ ".concat(t," ], config?: {} } }, audio?: { processor: {type: [ ").concat(e," ] } } }")}function Za(t){var e=t.allowAllParticipantsKey;return"receiveSettings must be of the form { [<remote participant id> | ".concat(Oo).concat(e?' | "'.concat("*",'"'):"","]: ")+'{ [video: [{ layer: [<non-negative integer> | "inherit"] } | "inherit"]], [screenVideo: [{ layer: [<non-negative integer> | "inherit"] } | "inherit"]] }}}'}function es(){return"customIntegrations should be an object of type ".concat(JSON.stringify(zn),".")}function ts(t){if(t&&U(t)!=="object"||Array.isArray(t))return console.error("customTrayButtons should be an Object of the type ".concat(JSON.stringify(Ht),".")),!1;if(t)for(var e=0,n=Object.entries(t);e<n.length;e++)for(var r=K(n[e],1)[0],a=0,s=Object.entries(t[r]);a<s.length;a++){var o=K(s[a],2),l=o[0],d=o[1],f=Ht.id[l];if(!f)return console.error("customTrayButton does not support key ".concat(l)),!1;switch(l){case"iconPath":case"iconPathDarkMode":if(!Jt(d))return console.error("customTrayButton ".concat(l," should be a url.")),!1;break;case"visualState":if(!["default","sidebar-open","active"].includes(d))return console.error("customTrayButton ".concat(l," should be ").concat(f,". Got: ").concat(d)),!1;break;default:if(U(d)!==f)return console.error("customTrayButton ".concat(l," should be a ").concat(f,".")),!1}}return!0}function ns(t){if(!t||t&&U(t)!=="object"||Array.isArray(t))return console.error(es()),!1;for(var e=function(v){return"".concat(v," should be ").concat(zn.id[v])},n=function(v,M){return console.error("customIntegration ".concat(v,": ").concat(M))},r=0,a=Object.entries(t);r<a.length;r++){var s=K(a[r],1)[0];if(!("label"in t[s]))return n(s,"label is required"),!1;if(!("location"in t[s]))return n(s,"location is required"),!1;if(!("src"in t[s])&&!("srcdoc"in t[s]))return n(s,"src or srcdoc is required"),!1;for(var o=0,l=Object.entries(t[s]);o<l.length;o++){var d=K(l[o],2),f=d[0],g=d[1];switch(f){case"allow":case"csp":case"name":case"referrerPolicy":case"sandbox":if(typeof g!="string")return n(s,e(f)),!1;break;case"iconURL":if(!Jt(g))return n(s,"".concat(f," should be a url")),!1;break;case"src":if("srcdoc"in t[s])return n(s,"cannot have both src and srcdoc"),!1;if(!Jt(g))return n(s,'src "'.concat(g,'" is not a valid URL')),!1;break;case"srcdoc":if("src"in t[s])return n(s,"cannot have both src and srcdoc"),!1;if(typeof g!="string")return n(s,e(f)),!1;break;case"location":if(!["main","sidebar"].includes(g))return n(s,e(f)),!1;break;case"controlledBy":if(g!=="*"&&g!=="owners"&&(!Array.isArray(g)||g.some((function(v){return typeof v!="string"}))))return n(s,e(f)),!1;break;case"shared":if((!Array.isArray(g)||g.some((function(v){return typeof v!="string"})))&&g!=="owners"&&typeof g!="boolean")return n(s,e(f)),!1;break;default:if(!zn.id[f])return console.error("customIntegration does not support key ".concat(f)),!1}}}return!0}function rs(t,e){if(e===void 0)return!1;switch(U(e)){case"string":return U(t)===e;case"object":if(U(t)!=="object")return!1;for(var n in t)if(!rs(t[n],e[n]))return!1;return!0;default:return!1}}function fa(t,e){var n=t.sessionId,r=t.toEndPoint,a=t.callerId,s=t.useSipRefer;if(!n||!r)throw new Error("".concat(e,"() requires a sessionId and toEndPoint"));
38if(typeof n!="string"||typeof r!="string")throw new Error("Invalid paramater: sessionId and toEndPoint must be of type string");if(s&&!r.startsWith("sip:"))throw new Error('"toEndPoint" must be a "sip" address');if(!r.startsWith("sip:")&&!r.startsWith("+"))throw new Error("toEndPoint: ".concat(r,' must starts with either "sip:" or "+"'));if(a&&typeof a!="string")throw new Error("callerId must be of type string");if(a&&!r.startsWith("+"))throw new Error("callerId is only valid when transferring to a PSTN number")}function ha(t){if(U(t)!=="object")throw new Error('RemoteMediaPlayerSettings: must be "object" type');if(t.state&&!Object.values(Jn).includes(t.state))throw new Error("Invalid value for RemoteMediaPlayerSettings.state, valid values are: "+JSON.stringify(Jn));if(t.volume){if(typeof t.volume!="number")throw new Error('RemoteMediaPlayerSettings.volume: must be "number" type');if(t.volume<0||t.volume>2)throw new Error("RemoteMediaPlayerSettings.volume: must be between 0.0 - 2.0")}}function pa(t,e,n){return!(typeof t!="number"||t<e||t>n)}function En(t,e){return t&&!e&&delete t.data,t}export{Ao as DAILY_ACCESS_LEVEL_FULL,pn as DAILY_ACCESS_UNKNOWN,Wo as DAILY_EVENT_ACCESS_STATE_UPDATED,gc as DAILY_EVENT_ACTIVE_SPEAKER_CHANGE,mc as DAILY_EVENT_ACTIVE_SPEAKER_MODE_CHANGE,oc as DAILY_EVENT_APP_MSG,Fo as DAILY_EVENT_CAMERA_ERROR,_c as DAILY_EVENT_CPU_LOAD_CHANGE,Ni as DAILY_EVENT_ERROR,Lt as DAILY_EVENT_EXIT_FULLSCREEN,bc as DAILY_EVENT_FACE_COUNTS_UPDATED,It as DAILY_EVENT_FULLSCREEN,Do as DAILY_EVENT_IFRAME_LAUNCH_CONFIG,Lo as DAILY_EVENT_IFRAME_READY_FOR_LAUNCH_CONFIG,Di as DAILY_EVENT_INPUT_SETTINGS_UPDATED,Uo as DAILY_EVENT_JOINED_MEETING,Vo as DAILY_EVENT_JOINING_MEETING,Tc as DAILY_EVENT_LANG_UPDATED,Bo as DAILY_EVENT_LEFT_MEETING,Ec as DAILY_EVENT_LIVE_STREAMING_ERROR,wc as DAILY_EVENT_LIVE_STREAMING_STARTED,kc as DAILY_EVENT_LIVE_STREAMING_STOPPED,Sc as DAILY_EVENT_LIVE_STREAMING_UPDATED,Pi as DAILY_EVENT_LOADED,No as DAILY_EVENT_LOADING,xo as DAILY_EVENT_LOAD_ATTEMPT_FAILED,pc as DAILY_EVENT_LOCAL_SCREEN_SHARE_CANCELED,fc as DAILY_EVENT_LOCAL_SCREEN_SHARE_STARTED,hc as DAILY_EVENT_LOCAL_SCREEN_SHARE_STOPPED,Go as DAILY_EVENT_MEETING_SESSION_STATE_UPDATED,zo as DAILY_EVENT_MEETING_SESSION_SUMMARY_UPDATED,yc as DAILY_EVENT_NETWORK_CONNECTION,vc as DAILY_EVENT_NETWORK_QUALITY_CHANGE,ji as DAILY_EVENT_NONFATAL_ERROR,Yo as DAILY_EVENT_PARTICIPANT_COUNTS_UPDATED,Jo as DAILY_EVENT_PARTICIPANT_JOINED,qo as DAILY_EVENT_PARTICIPANT_LEFT,$o as DAILY_EVENT_PARTICIPANT_UPDATED,Mc as DAILY_EVENT_RECEIVE_SETTINGS_UPDATED,sc as DAILY_EVENT_RECORDING_DATA,ic as DAILY_EVENT_RECORDING_ERROR,Ii as DAILY_EVENT_RECORDING_STARTED,rc as DAILY_EVENT_RECORDING_STATS,Li as DAILY_EVENT_RECORDING_STOPPED,ac as DAILY_EVENT_RECORDING_UPLOAD_COMPLETED,uc as DAILY_EVENT_REMOTE_MEDIA_PLAYER_STARTED,dc as DAILY_EVENT_REMOTE_MEDIA_PLAYER_STOPPED,lc as DAILY_EVENT_REMOTE_MEDIA_PLAYER_UPDATED,Ro as DAILY_EVENT_STARTED_CAMERA,jo as DAILY_EVENT_THEME_UPDATED,Xo as DAILY_EVENT_TRACK_STARTED,Zo as DAILY_EVENT_TRACK_STOPPED,nc as DAILY_EVENT_TRANSCRIPTION_ERROR,cc as DAILY_EVENT_TRANSCRIPTION_MSG,ec as DAILY_EVENT_TRANSCRIPTION_STARTED,tc as DAILY_EVENT_TRANSCRIPTION_STOPPED,Ho as DAILY_EVENT_WAITING_PARTICIPANT_ADDED,Ko as DAILY_EVENT_WAITING_PARTICIPANT_REMOVED,Qo as DAILY_EVENT_WAITING_PARTICIPANT_UPDATED,Io as DAILY_FATAL_ERROR_CONNECTION,Po as DAILY_FATAL_ERROR_EOL,Oi as DAILY_FATAL_ERROR_NO_ROOM,Oo as DAILY_RECEIVE_SETTINGS_BASE_KEY,Ee as DAILY_STATE_ERROR,xe as DAILY_STATE_JOINED,Bn as DAILY_STATE_JOINING,De as DAILY_STATE_LEFT,Mi as DAILY_STATE_NEW,Co as DAILY_TRACK_STATE_PLAYABLE,iu as default};

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.