@streamlayer/react 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,4 +209,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
209
209
  `),y=`
210
210
  `+o+(p.length?c("│"):" ")+" ";return o+m.join(y)+`
211
211
  `+p.map(function(T,C){var _=C===p.length-1,N=T.nodes&&T.nodes.length,L=o+(_?" ":c("│"))+" ";return o+c(_?"└":"├")+c("─")+c(N?"┬":"─")+" "+n(T,L,l).slice(o.length+2)}).join("")};const uee=lee,DS=Symbol("avvio.TimeTree.untrackNode"),G5=Symbol("avvio.TimeTree.trackNode"),US=Symbol("avvio.TimeTree.getParent"),FS=Symbol("avvio.TimeTree.getNode"),VS=Symbol("avvio.TimeTree.addNode");let cee=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[G5](n){this.tableId.set(n.id,n),this.tableLabel.has(n.label)?this.tableLabel.get(n.label).push(n):this.tableLabel.set(n.label,[n])}[DS](n){this.tableId.delete(n.id);const r=this.tableLabel.get(n.label);if(r.id){this.tableLabel.delete(n.label);return}r.pop(),r.length===0&&this.tableLabel.delete(n.label)}[US](n){if(n===null)return this.root;const r=this.tableLabel.get(n);return r.id?r:r[r.length-1]}[FS](n){return this.tableId.get(n)}[VS](n,r,o){if(n===null)return this.root={id:"root",label:r,start:o,nodes:[]},this[G5](this.root),this.root.id;const l=this[US](n),c=`${r}-${Math.random()}`,p={id:c,parent:n,start:o,label:r,nodes:[]};return l.nodes.push(p),this[G5](p),c}start(n,r,o=Date.now()){return this[VS](n,r,o)}stop(n,r=Date.now()){const o=this[FS](n);o&&(o.stop=r,o.diff=o.stop-o.start||0,this[DS](o))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const n=o=>(o.label=`${o.label} ${o.diff} ms`,o.nodes.length>0&&(o.nodes=o.nodes.map(l=>n(l))),o),r=n(this.toJSON());return uee(r)}};var dee=cee,ky={exports:{}},O9={exports:{}},W5,jS;function fee(){if(jS)return W5;jS=1;var n=1e3,r=n*60,o=r*60,l=o*24,c=l*7,p=l*365.25;W5=function(_,N){N=N||{};var L=typeof _;if(L==="string"&&_.length>0)return m(_);if(L==="number"&&isFinite(_))return N.long?T(_):y(_);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function m(_){if(_=String(_),!(_.length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(N){var L=parseFloat(N[1]),O=(N[2]||"ms").toLowerCase();switch(O){case"years":case"year":case"yrs":case"yr":case"y":return L*p;case"weeks":case"week":case"w":return L*c;case"days":case"day":case"d":return L*l;case"hours":case"hour":case"hrs":case"hr":case"h":return L*o;case"minutes":case"minute":case"mins":case"min":case"m":return L*r;case"seconds":case"second":case"secs":case"sec":case"s":return L*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return L;default:return}}}}function y(_){var N=Math.abs(_);return N>=l?Math.round(_/l)+"d":N>=o?Math.round(_/o)+"h":N>=r?Math.round(_/r)+"m":N>=n?Math.round(_/n)+"s":_+"ms"}function T(_){var N=Math.abs(_);return N>=l?C(_,N,l,"day"):N>=o?C(_,N,o,"hour"):N>=r?C(_,N,r,"minute"):N>=n?C(_,N,n,"second"):_+" ms"}function C(_,N,L,O){var D=N>=L*1.5;return Math.round(_/L)+" "+O+(D?"s":"")}return W5}function mee(n){o.debug=o,o.default=o,o.coerce=T,o.disable=p,o.enable=c,o.enabled=m,o.humanize=fee(),o.destroy=C,Object.keys(n).forEach(_=>{o[_]=n[_]}),o.names=[],o.skips=[],o.formatters={};function r(_){let N=0;for(let L=0;L<_.length;L++)N=(N<<5)-N+_.charCodeAt(L),N|=0;return o.colors[Math.abs(N)%o.colors.length]}o.selectColor=r;function o(_){let N,L=null,O,D;function F(...B){if(!F.enabled)return;const W=F,G=Number(new Date),te=G-(N||G);W.diff=te,W.prev=N,W.curr=G,N=G,B[0]=o.coerce(B[0]),typeof B[0]!="string"&&B.unshift("%O");let ne=0;B[0]=B[0].replace(/%([a-zA-Z%])/g,(ee,ce)=>{if(ee==="%%")return"%";ne++;const se=o.formatters[ce];if(typeof se=="function"){const Ne=B[ne];ee=se.call(W,Ne),B.splice(ne,1),ne--}return ee}),o.formatArgs.call(W,B),(W.log||o.log).apply(W,B)}return F.namespace=_,F.useColors=o.useColors(),F.color=o.selectColor(_),F.extend=l,F.destroy=o.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>L!==null?L:(O!==o.namespaces&&(O=o.namespaces,D=o.enabled(_)),D),set:B=>{L=B}}),typeof o.init=="function"&&o.init(F),F}function l(_,N){const L=o(this.namespace+(typeof N>"u"?":":N)+_);return L.log=this.log,L}function c(_){o.save(_),o.namespaces=_,o.names=[],o.skips=[];let N;const L=(typeof _=="string"?_:"").split(/[\s,]+/),O=L.length;for(N=0;N<O;N++)L[N]&&(_=L[N].replace(/\*/g,".*?"),_[0]==="-"?o.skips.push(new RegExp("^"+_.slice(1)+"$")):o.names.push(new RegExp("^"+_+"$")))}function p(){const _=[...o.names.map(y),...o.skips.map(y).map(N=>"-"+N)].join(",");return o.enable(""),_}function m(_){if(_[_.length-1]==="*")return!0;let N,L;for(N=0,L=o.skips.length;N<L;N++)if(o.skips[N].test(_))return!1;for(N=0,L=o.names.length;N<L;N++)if(o.names[N].test(_))return!0;return!1}function y(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function T(_){return _ instanceof Error?_.stack||_.message:_}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}var pee=mee;(function(n,r){r.formatArgs=l,r.save=c,r.load=p,r.useColors=o,r.storage=m(),r.destroy=(()=>{let T=!1;return()=>{T||(T=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function l(T){if(T[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+T[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const C="color: "+this.color;T.splice(1,0,C,"color: inherit");let _=0,N=0;T[0].replace(/%[a-zA-Z%]/g,L=>{L!=="%%"&&(_++,L==="%c"&&(N=_))}),T.splice(N,0,C)}r.log=console.debug||console.log||(()=>{});function c(T){try{T?r.storage.setItem("debug",T):r.storage.removeItem("debug")}catch{}}function p(){let T;try{T=r.storage.getItem("debug")}catch{}return!T&&typeof St<"u"&&"env"in St&&(T=St.env.DEBUG),T}function m(){try{return localStorage}catch{}}n.exports=pee(r);const{formatters:y}=n.exports;y.j=function(T){try{return JSON.stringify(T)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}})(O9,O9.exports);var ME=O9.exports;const hee=lE,gee=yE.EventEmitter,yee=R6.inherits,Ma=ME("avvio"),{AVV_ERR_READY_TIMEOUT:vee}=PE,Q5=Symbol.for("plugin-meta");function bee(n,r){return n[Q5]&&n[Q5].name?n[Q5].name:typeof r<"u"&&typeof r!="function"&&r.name?r.name:n.name?n.name:n.toString().split(`
212
- `).slice(0,2).map(o=>o.trim()).join(" -- ")}function Tee(){const n={};return n.promise=new Promise((r,o)=>{n.resolve=r,n.reject=o}),n}function T0(n,r,o,l,c){this.started=!1,this.func=r,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=bee(r,o),this.isAfter=l,this.q=hee(n,kee,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}yee(T0,gee);T0.prototype.exec=function(n,r){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Ma("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(r);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(T){return Ma("override errored",c),r(T)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Ma("exec",c);let p;const m=T=>{if(l){Ma("loading complete",c);return}this._error=T,Ma(T?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),r(T)};this.timeout>0&&(Ma("setting up timeout",c,this.timeout),p=setTimeout(function(){Ma("timed out",c),p=null;const T=new vee(c);T.fn=o,m(T)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,m);y&&typeof y.then=="function"&&(Ma("exec: resolving promise",c),y.then(()=>St.nextTick(m),T=>St.nextTick(m,T)))};T0.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Ma("rejecting promise",this.name,o),this._promise.reject(o)):(Ma("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let r;return this._promise?r=Promise.resolve():(this._promise=Tee(),r=this._promise.promise,this.server?n():this.on("start",n)),r};T0.prototype.enqueue=function(n,r){Ma("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,r)};T0.prototype.finish=function(n,r){Ma("finish",this.name,n);const o=()=>{this.loaded||(Ma("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,r(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Ma("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Ma("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Ma("delayed",this.name),this.q.drain=()=>{Ma("drain",this.name),this.q.drain=See,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function kee(n,r){const o=this;St.nextTick(Sy.bind(o),n,r)}function Sy(n,r){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,Sy.call(this,n,r)},r);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),r(c)})})}function See(){}ky.exports=T0;ky.exports.loadPlugin=Sy;var wee=ky.exports;const BS=lE,Cee=yE.EventEmitter,Eee=R6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Y5,AVV_ERR_CALLBACK_NOT_FN:nm,AVV_ERR_PLUGIN_NOT_VALID:_ee,AVV_ERR_ROOT_PLG_BOOTED:Iee,AVV_ERR_READY_TIMEOUT:Nee}=PE,Ree=dee,x9=wee,p0=ME("avvio"),y6=Symbol("kAvvio"),K5=Symbol("kThenifyDoNotWrap");function Lee(n,r,o){const l=r.expose||{},c=l.use||"use",p=l.after||"after",m=l.ready||"ready",y=l.onClose||"onClose",T=l.close||"close";if(n[c])throw new Y5(c);if(n[p])throw new Y5(p);if(n[m])throw new Y5(m);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:DE.bind(o)}),n[y6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(Z5(C,this)),this)},n[m]=function(C){if(C&&typeof C!="function")throw new nm(m,typeof C);return o.ready(C?Z5(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new nm(y,typeof C);return o.onClose(Mee(C,this)),this},n[T]=function(C){if(C&&typeof C!="function")throw new nm(T,typeof C);return C?(o.close(Z5(C,this)),this):o.close()}}function Ta(n,r,o){if(typeof n=="function"&&arguments.length===1&&(o=n,r={},n=null),typeof r=="function"&&(o=r,r={}),r=r||{},!(this instanceof Ta)){const l=new Ta(n,r,o);return n&&Lee(n,r,l),l}r.autostart!==!1&&(r.autostart=!0),n=n||this,this._timeout=Number(r.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Ree,this._readyQ=BS(this,UE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=$S},this._closeQ=BS(this,Pee,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=$S},this._doStart=null,this._root=new x9(this,Oee.bind(this),r,!1,0),this._root.once("start",(l,c,p)=>{const m=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,T,C)=>{this.pluginTree.stop(m,C)})}),x9.loadPlugin.call(this,this._root,l=>{p0("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function Oee(n,r,o){this._doStart=o,r.autostart&&this.start()}Eee(Ta,Cee);Ta.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};Ta.prototype.override=function(n,r,o){return n};function xee(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new _ee(typeof n);return n}Ta.prototype[y6]=!0;Ta.prototype.use=function(n,r){return this._lastUsed=this._addPlugin(n,r,!1),this};Ta.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(Ta.prototype,"then",{get:DE});Ta.prototype._addPlugin=function(n,r,o){if(n=xee(n),r=r||{},this.booted)throw new Iee;const l=this._current[0],c=new x9(this,n,r,o);if(c.once("start",(p,m,y)=>{const T=this.pluginTree.start(l.name,m,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(T,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};Ta.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(r.bind(this),{},!0);function r(o,l,c){UE.call(this,n,c)}return this};Ta.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,r.bind(this));function r(o){o&&(this._error=o)}return this};Ta.prototype.close=function(n){let r;if(n){if(typeof n!="function")throw new nm("close",typeof n)}else r=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),r};Ta.prototype.ready=function(n){if(n){if(typeof n!="function")throw new nm("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((r,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,m,y){p?o(p):r(l),St.nextTick(y)}})};Ta.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ta.prototype.toJSON=function(){return this.pluginTree.toJSON()};function $S(){}function DE(){if(this.booted){p0("thenify returning null because we are already booted");return}if(this[K5]){this[K5]=!1;return}return p0("thenify"),(n,r)=>this._loadRegistered().then(()=>(this[K5]=!0,n(this._server)),r)}function UE(n,r){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(r),p=>St.nextTick(r,p)):St.nextTick(r);else if(n.length===1)c=n(l),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(r),p=>St.nextTick(r,p)):St.nextTick(r);else if(this._timeout===0){const p=m=>{this._error=m,r(this._error)};n.length===2?n(l,p):n(l,o,p)}else Aee.call(this,n,l,o,r)}function Aee(n,r,o,l){const c=n.name;p0("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{p0("timed out",c),p=null;const y=new Nee(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(r,m.bind(this)):n(r,o,m.bind(this));function m(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Pee(n,r){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(p0("resolving close/onClose promise"),c.then(()=>St.nextTick(r),p=>St.nextTick(r,p))):St.nextTick(r)}else n.length===2?n(l?o:this._error,r):l?n(o,r):n(this._error,o,r)}function Mee(n,r){return o.bind(r);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function Z5(n,r){return o.bind(r);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}cy.exports=Ta;cy.exports.express=function(n){return Ta(n,{expose:{use:"load"}})};var Dee=cy.exports;const Uee=dX(Dee);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const r of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${r}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${r}CancelAnimationFrame`]||window[`${r}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let r=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-r)),m=window.setTimeout(function(){l(c+p)},p);return r=c+p,m},window.cancelAnimationFrame=clearTimeout}})();function Fee(n,r=!0,o=!0,l){const c=r?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=r?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",m=Uee(Object.create({}),{autostart:!1});return m.use(zZ),m.use(FZ,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),m.use($Z,{videoPlayerController:l==null?void 0:l.videoPlayerController}),m.use(sZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),m.use(dZ),m.use(BZ),m.use(nX),m.use(NZ),m.use(cX),m.after((y,T,C)=>{if(y)throw y;T.ready(),C()}),o&&m.after(async(y,T,C)=>{if(y)throw y;await T.sdk.initializeApp(),C()}),m.onClose(()=>{console.log("close")}),m}const Vee=({sdkKey:n,plugins:r,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p})=>{const[m,y]=Q.useState(null);return Q.useEffect(()=>{let T=!1;if(!n)return console.error("streamlayer sdk key should be provided"),y(_=>(_!==null&&typeof _.disableApp=="function"&&_.disableApp(),null)),()=>{T=!0};const C=Fee(n,o,l,{version:"1.1.1",onDeepLinkHandled:c,videoPlayerController:p});if(r)for(const _ of r)C.use(_);return C.ready().then(_=>{T||(y(_.sdk),typeof window<"u")}).catch(_=>console.log(_)),()=>{T=!0,C.close(function(_){if(_)throw _})}},[n,o]),m};var FE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(FE||{});const wy=Q.createContext({status:0,sdk:null}),jee=({sdkKey:n,plugins:r,children:o,production:l=!0,autoEnable:c=!0,onDeepLinkHandled:p,videoPlayerController:m})=>{const y=Vee({sdkKey:n,plugins:r,production:l,autoEnable:c,onDeepLinkHandled:p,videoPlayerController:m}),T=Q.useMemo(()=>y?{sdk:y,status:2}:{status:1,sdk:null},[y]);return Q.useEffect(()=>()=>{p&&(y==null||y.removeDeepLinkHandler(p)),m&&(y==null||y.removeVideoPlayerController(m))},[y]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!p,videoPlayerController:!!m})},[n,p,m]),w.jsx(wy.Provider,{value:T,children:o})},VE=()=>{const{sdk:n}=Q.useContext(wy);return n},Bee=({sdkKey:n,plugins:r,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(jee,{sdkKey:n,plugins:r,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),$ee=({children:n,overlays:r})=>{const{sdk:o,status:l}=Q.useContext(wy);return l===FE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(IC,{style:{height:"100%"},children:w.jsx(xq,{sdk:o,overlays:r,children:n})})}):n({})};class zee extends Q.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,o){console.error(r,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx($ee,{...this.props})}}const Hee=({token:n,schema:r})=>{const o=VE();return Q.useEffect(()=>{n&&r&&o&&o.authorizationBypass(r,n)},[n,r,o]),null},qee=()=>{const n=VE();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(IC,{children:w.jsx($q,{sdk:n})})}):null};exports.C=vC;exports.C$1=YS;exports.C$2=T6;exports.M=ay;exports.MastersStreamLayerProvider=Bee;exports.MastersStreamLayerSDKReact=zee;exports.O=K9;exports.S=SC;exports.StreamLayerLogin=Hee;exports.StreamLayerSDKPoints=qee;exports.T=ny;exports.a=P9;exports.b=yC;exports.k=wC;exports.l=WS;exports.m=X2;exports.m$1=KS;exports.n=cm;exports.p=Hq;exports.p$1=QS;exports.styled_default=P;exports.useStore=Ut;exports.z=L$;
212
+ `).slice(0,2).map(o=>o.trim()).join(" -- ")}function Tee(){const n={};return n.promise=new Promise((r,o)=>{n.resolve=r,n.reject=o}),n}function T0(n,r,o,l,c){this.started=!1,this.func=r,this.opts=o,this.onFinish=null,this.parent=n,this.timeout=c===void 0?n._timeout:c,this.name=bee(r,o),this.isAfter=l,this.q=hee(n,kee,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}yee(T0,gee);T0.prototype.exec=function(n,r){const o=this.func;let l=!1;const c=this.name;if(this.parent._error&&!this.isAfter){Ma("skipping loading of plugin as parent errored and it is not an after",c),St.nextTick(r);return}if(this.isAfter)this.server=n;else try{this.server=this.parent.override(n,o,this.opts)}catch(T){return Ma("override errored",c),r(T)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Ma("exec",c);let p;const m=T=>{if(l){Ma("loading complete",c);return}this._error=T,Ma(T?"exec errored":"exec completed",c),l=!0,p&&clearTimeout(p),r(T)};this.timeout>0&&(Ma("setting up timeout",c,this.timeout),p=setTimeout(function(){Ma("timed out",c),p=null;const T=new vee(c);T.fn=o,m(T)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const y=o(this.server,this.opts,m);y&&typeof y.then=="function"&&(Ma("exec: resolving promise",c),y.then(()=>St.nextTick(m),T=>St.nextTick(m,T)))};T0.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const n=()=>{this.server.after((o,l)=>{this._error=o,this.q.pause(),o?(Ma("rejecting promise",this.name,o),this._promise.reject(o)):(Ma("resolving promise",this.name),this._promise.resolve()),this._promise=null,St.nextTick(l,o)}),this.q.resume()};let r;return this._promise?r=Promise.resolve():(this._promise=Tee(),r=this._promise.promise,this.server?n():this.on("start",n)),r};T0.prototype.enqueue=function(n,r){Ma("enqueue",this.name,n.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(n,r)};T0.prototype.finish=function(n,r){Ma("finish",this.name,n);const o=()=>{this.loaded||(Ma("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,r(n))};if(n){this._promise&&(this._promise.reject(n),this._promise=null),o();return}const l=()=>{if(Ma("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const c=()=>{Ma("wrap"),queueMicrotask(l)};this._promise.resolve(),this._promise.promise.then(c,c),this._promise=null}else o();else Ma("delayed",this.name),this.q.drain=()=>{Ma("drain",this.name),this.q.drain=See,queueMicrotask(l)}};queueMicrotask(l),this.q.resume()};function kee(n,r){const o=this;St.nextTick(Sy.bind(o),n,r)}function Sy(n,r){if(typeof n.func.then=="function"){n.func.then(l=>{typeof l.default=="function"&&(l=l.default),n.func=l,Sy.call(this,n,r)},r);return}const o=this._current[0];this._current.unshift(n),n.exec(o&&o.server||this._server,l=>{n.finish(l,c=>{this._current.shift(),r(c)})})}function See(){}ky.exports=T0;ky.exports.loadPlugin=Sy;var wee=ky.exports;const BS=lE,Cee=yE.EventEmitter,Eee=R6.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Y5,AVV_ERR_CALLBACK_NOT_FN:nm,AVV_ERR_PLUGIN_NOT_VALID:_ee,AVV_ERR_ROOT_PLG_BOOTED:Iee,AVV_ERR_READY_TIMEOUT:Nee}=PE,Ree=dee,x9=wee,p0=ME("avvio"),y6=Symbol("kAvvio"),K5=Symbol("kThenifyDoNotWrap");function Lee(n,r,o){const l=r.expose||{},c=l.use||"use",p=l.after||"after",m=l.ready||"ready",y=l.onClose||"onClose",T=l.close||"close";if(n[c])throw new Y5(c);if(n[p])throw new Y5(p);if(n[m])throw new Y5(m);n[c]=function(C,_){return o.use(C,_),this},Object.defineProperty(n,"then",{get:DE.bind(o)}),n[y6]=!0,n[p]=function(C){return typeof C!="function"?o._loadRegistered():(o.after(Z5(C,this)),this)},n[m]=function(C){if(C&&typeof C!="function")throw new nm(m,typeof C);return o.ready(C?Z5(C,this):void 0)},n[y]=function(C){if(typeof C!="function")throw new nm(y,typeof C);return o.onClose(Mee(C,this)),this},n[T]=function(C){if(C&&typeof C!="function")throw new nm(T,typeof C);return C?(o.close(Z5(C,this)),this):o.close()}}function Ta(n,r,o){if(typeof n=="function"&&arguments.length===1&&(o=n,r={},n=null),typeof r=="function"&&(o=r,r={}),r=r||{},!(this instanceof Ta)){const l=new Ta(n,r,o);return n&&Lee(n,r,l),l}r.autostart!==!1&&(r.autostart=!0),n=n||this,this._timeout=Number(r.timeout)||0,this._server=n,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),o&&this.once("start",o),this.started=!1,this.booted=!1,this.pluginTree=new Ree,this._readyQ=BS(this,UE,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=$S},this._closeQ=BS(this,Pee,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=$S},this._doStart=null,this._root=new x9(this,Oee.bind(this),r,!1,0),this._root.once("start",(l,c,p)=>{const m=this.pluginTree.start(null,c,p);this._root.once("loaded",(y,T,C)=>{this.pluginTree.stop(m,C)})}),x9.loadPlugin.call(this,this._root,l=>{p0("root plugin ready");try{this.emit("preReady"),this._root=null}catch(c){l=l||this._error||c}if(l){if(this._error=l,this._readyQ.length()===0)throw l}else this.booted=!0;this._readyQ.resume()})}function Oee(n,r,o){this._doStart=o,r.autostart&&this.start()}Eee(Ta,Cee);Ta.prototype.start=function(){return this.started=!0,St.nextTick(this._doStart),this};Ta.prototype.override=function(n,r,o){return n};function xee(n){if(n&&typeof n=="object"&&typeof n.default=="function"&&(n=n.default),!(n&&(typeof n=="function"||typeof n.then=="function")))throw new _ee(typeof n);return n}Ta.prototype[y6]=!0;Ta.prototype.use=function(n,r){return this._lastUsed=this._addPlugin(n,r,!1),this};Ta.prototype._loadRegistered=function(){const n=this._current[0];return!this.started&&!this.booted&&St.nextTick(()=>this._root.q.resume()),n?n.loadedSoFar():Promise.resolve()};Object.defineProperty(Ta.prototype,"then",{get:DE});Ta.prototype._addPlugin=function(n,r,o){if(n=xee(n),r=r||{},this.booted)throw new Iee;const l=this._current[0],c=new x9(this,n,r,o);if(c.once("start",(p,m,y)=>{const T=this.pluginTree.start(l.name,m,y);c.once("loaded",(C,_,N)=>{this.pluginTree.stop(T,N)})}),l.loaded)throw new Error(c.name,l.name);return l.enqueue(c,p=>{p&&(this._error=p)}),c};Ta.prototype.after=function(n){if(!n)return this._loadRegistered();this._addPlugin(r.bind(this),{},!0);function r(o,l,c){UE.call(this,n,c)}return this};Ta.prototype.onClose=function(n){if(typeof n!="function")throw new Error("not a function");n[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(n,r.bind(this));function r(o){o&&(this._error=o)}return this};Ta.prototype.close=function(n){let r;if(n){if(typeof n!="function")throw new nm("close",typeof n)}else r=new Promise(function(o,l){n=function(c){if(c)return l(c);o()}});return this.ready(()=>{this._error=null,this._closeQ.push(n),St.nextTick(this._closeQ.resume.bind(this._closeQ))}),r};Ta.prototype.ready=function(n){if(n){if(typeof n!="function")throw new nm("ready",typeof n);this._readyQ.push(n),queueMicrotask(this.start.bind(this));return}return new Promise((r,o)=>{this._readyQ.push(c),this.start();const l=this._current[0].server;function c(p,m,y){p?o(p):r(l),St.nextTick(y)}})};Ta.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Ta.prototype.toJSON=function(){return this.pluginTree.toJSON()};function $S(){}function DE(){if(this.booted){p0("thenify returning null because we are already booted");return}if(this[K5]){this[K5]=!1;return}return p0("thenify"),(n,r)=>this._loadRegistered().then(()=>(this[K5]=!0,n(this._server)),r)}function UE(n,r){const o=this._server,l=this._error;let c;if(this._error=null,n.length===0)this._error=l,c=n(),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(r),p=>St.nextTick(r,p)):St.nextTick(r);else if(n.length===1)c=n(l),c&&!c[y6]&&typeof c.then=="function"?c.then(()=>St.nextTick(r),p=>St.nextTick(r,p)):St.nextTick(r);else if(this._timeout===0){const p=m=>{this._error=m,r(this._error)};n.length===2?n(l,p):n(l,o,p)}else Aee.call(this,n,l,o,r)}function Aee(n,r,o,l){const c=n.name;p0("setting up ready timeout",c,this._timeout);let p=setTimeout(()=>{p0("timed out",c),p=null;const y=new Nee(c);y.fn=n,this._error=y,l(y)},this._timeout);n.length===2?n(r,m.bind(this)):n(r,o,m.bind(this));function m(y){p&&(clearTimeout(p),this._error=y,l(this._error))}}function Pee(n,r){const o=this._server,l=n[this._isOnCloseHandlerKey];if(n.length===0||n.length===1){let c;l?c=n(o):c=n(this._error),c&&typeof c.then=="function"?(p0("resolving close/onClose promise"),c.then(()=>St.nextTick(r),p=>St.nextTick(r,p))):St.nextTick(r)}else n.length===2?n(l?o:this._error,r):l?n(o,r):n(this._error,o,r)}function Mee(n,r){return o.bind(r);function o(l,c){let p;n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===1?(p=n(this),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n(this,c)}}function Z5(n,r){return o.bind(r);function o(l,c){let p;n?n.length===0?(p=n(),p&&p.then?p.then(function(){St.nextTick(c,l)},c):St.nextTick(c,l)):n.length===1?(p=n(l),p&&p.then?p.then(function(){St.nextTick(c)},c):St.nextTick(c)):n.length===2?n(l,c):n(l,this,c):St.nextTick(c)}}cy.exports=Ta;cy.exports.express=function(n){return Ta(n,{expose:{use:"load"}})};var Dee=cy.exports;const Uee=dX(Dee);(function(){if(window.requestAnimationFrame&&window.cancelAnimationFrame)return;const n=["webkit","moz","ms","o"];for(const r of n)window.requestAnimationFrame=window.requestAnimationFrame||window[`${r}RequestAnimationFrame`],window.cancelAnimationFrame=window.cancelAnimationFrame||window[`${r}CancelAnimationFrame`]||window[`${r}CancelRequestAnimationFrame`];if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){let r=0;const o=!!(window.performance&&window.performance.now);window.requestAnimationFrame=function(l){const c=o?window.performance.now():new Date().getTime(),p=Math.max(0,16-(c-r)),m=window.setTimeout(function(){l(c+p)},p);return r=c+p,m},window.cancelAnimationFrame=clearTimeout}})();function Fee(n,r=!0,o=!0,l){const c=r?"https://grpc-sdk.streamlayer.io:443":"https://grpc-sdk.next.streamlayer.io:443",p=r?"https://grpc.streamlayer.io:443":"https://grpc.next.streamlayer.io:443",m=Uee(Object.create({}),{autostart:!1});return m.use(zZ),m.use(FZ,{onDeepLinkHandled:l==null?void 0:l.onDeepLinkHandled}),m.use($Z,{videoPlayerController:l==null?void 0:l.videoPlayerController}),m.use(sZ,{sdkKey:n,host:c,analyticsHost:p,version:l==null?void 0:l.version}),m.use(dZ),m.use(BZ),m.use(nX),m.use(NZ),m.use(cX),m.after((y,T,C)=>{if(y)throw y;T.ready(),C()}),o&&m.after(async(y,T,C)=>{if(y)throw y;await T.sdk.initializeApp(),C()}),m.onClose(()=>{console.log("close")}),m}const Vee=({sdkKey:n,plugins:r,production:o,autoEnable:l,onDeepLinkHandled:c,videoPlayerController:p})=>{const[m,y]=Q.useState(null);return Q.useEffect(()=>{let T=!1;if(!n)return console.error("streamlayer sdk key should be provided"),y(_=>(_!==null&&typeof _.disableApp=="function"&&_.disableApp(),null)),()=>{T=!0};const C=Fee(n,o,l,{version:"1.1.3",onDeepLinkHandled:c,videoPlayerController:p});if(r)for(const _ of r)C.use(_);return C.ready().then(_=>{T||(y(_.sdk),typeof window<"u")}).catch(_=>console.log(_)),()=>{T=!0,C.close(function(_){if(_)throw _})}},[n,o]),m};var FE=(n=>(n[n.UNSET=0]="UNSET",n[n.CONNECTED=1]="CONNECTED",n[n.READY=2]="READY",n))(FE||{});const wy=Q.createContext({status:0,sdk:null}),jee=({sdkKey:n,plugins:r,children:o,production:l=!0,autoEnable:c=!0,onDeepLinkHandled:p,videoPlayerController:m})=>{const y=Vee({sdkKey:n,plugins:r,production:l,autoEnable:c,onDeepLinkHandled:p,videoPlayerController:m}),T=Q.useMemo(()=>y?{sdk:y,status:2}:{status:1,sdk:null},[y]);return Q.useEffect(()=>()=>{p&&(y==null||y.removeDeepLinkHandler(p)),m&&(y==null||y.removeVideoPlayerController(m))},[y]),Q.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!n,onDeepLinkHandled:!!p,videoPlayerController:!!m})},[n,p,m]),w.jsx(wy.Provider,{value:T,children:o})},VE=()=>{const{sdk:n}=Q.useContext(wy);return n},Bee=({sdkKey:n,plugins:r,children:o,onDeepLinkHandled:l,videoPlayerController:c,production:p=!0})=>w.jsx(jee,{sdkKey:n,plugins:r,production:p,autoEnable:!1,onDeepLinkHandled:l,videoPlayerController:c,children:o}),$ee=({children:n,overlays:r})=>{const{sdk:o,status:l}=Q.useContext(wy);return l===FE.UNSET?(console.error("Wrap app in `StreamLayerProvider`"),n({})):o?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(IC,{style:{height:"100%"},children:w.jsx(xq,{sdk:o,overlays:r,children:n})})}):n({})};class zee extends Q.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,o){console.error(r,o.componentStack)}render(){return this.state.hasError?this.props.children({}):w.jsx($ee,{...this.props})}}const Hee=({token:n,schema:r})=>{const o=VE();return Q.useEffect(()=>{n&&r&&o&&o.authorizationBypass(r,n)},[n,r,o]),null},qee=()=>{const n=VE();return n?w.jsx("div",{className:"StreamLayerSDK",children:w.jsx(IC,{children:w.jsx($q,{sdk:n})})}):null};exports.C=vC;exports.C$1=YS;exports.C$2=T6;exports.M=ay;exports.MastersStreamLayerProvider=Bee;exports.MastersStreamLayerSDKReact=zee;exports.O=K9;exports.S=SC;exports.StreamLayerLogin=Hee;exports.StreamLayerSDKPoints=qee;exports.T=ny;exports.a=P9;exports.b=yC;exports.k=wC;exports.l=WS;exports.m=X2;exports.m$1=KS;exports.n=cm;exports.p=Hq;exports.p$1=QS;exports.styled_default=P;exports.useStore=Ut;exports.z=L$;
@@ -41595,7 +41595,7 @@ const ete = ({
41595
41595
  T = !0;
41596
41596
  };
41597
41597
  const w = Jee(n, o, l, {
41598
- version: "1.1.1",
41598
+ version: "1.1.3",
41599
41599
  onDeepLinkHandled: c,
41600
41600
  videoPlayerController: p
41601
41601
  });
@@ -2196,7 +2196,12 @@ declare module "index" {
2196
2196
  export { StreamLayerSDKReact, useStreamLayer } from "app/app";
2197
2197
  }
2198
2198
  declare module "app/advertisement" {
2199
- export const StreamLayerSDKAdvertisement: React.FC;
2199
+ export type StreamLayerSDKAdvertisementProps = {
2200
+ event?: string;
2201
+ sidebar?: 'left' | 'right';
2202
+ banner?: 'top' | 'bottom';
2203
+ };
2204
+ export const StreamLayerSDKAdvertisement: React.FC<StreamLayerSDKAdvertisementProps>;
2200
2205
  }
2201
2206
  declare module "app/points" {
2202
2207
  export const StreamLayerSDKPoints: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,295 @@
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import { useEffect as R, useRef as w, useMemo as D } from "react";
3
+ import { a as U, s, c as q, K as F, u as v, L as K, e as O } from "./index2.js";
4
+ import { F as z, u as H, i as W } from "./app.js";
5
+ import { P as c, a as m, S as J } from "./useStreamLayerApp2.js";
6
+ const Q = /* @__PURE__ */ s("div")({
7
+ name: "Container",
8
+ class: "c5b6wdg",
9
+ propsAsIs: !1
10
+ }), V = "a1rlj479", X = "s35f1di", Y = "sj4471g", Z = "b12050d8", oo = "b1d5ybek", no = (o) => o === "left" || o === "right" ? X : Z, eo = (o) => o === "left" || o === "right" ? Y : oo, so = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", G = ({
11
+ children: o,
12
+ style: a,
13
+ className: i,
14
+ enabled: e = !0,
15
+ hiding: l,
16
+ direction: r = "left",
17
+ onAnimationEnd: t
18
+ }) => /* @__PURE__ */ n(Q, {
19
+ style: a,
20
+ className: U(i, V, so(r), e && !l && no(r), e && l && eo(r)),
21
+ onAnimationEnd: t,
22
+ children: o
23
+ }), lo = /* @__PURE__ */ s("div")({
24
+ name: "BannerContainer",
25
+ class: "bipmch2",
26
+ propsAsIs: !1
27
+ }), ao = /* @__PURE__ */ s("img")({
28
+ name: "BannerImg",
29
+ class: "bpkcihp",
30
+ propsAsIs: !1
31
+ }), io = ({
32
+ promotion: o,
33
+ hiding: a,
34
+ direction: i = "bottom"
35
+ }) => {
36
+ var e;
37
+ return (e = o.additionalBanner) != null && e.imageUrl ? /* @__PURE__ */ n(G, {
38
+ direction: i,
39
+ hiding: a,
40
+ children: /* @__PURE__ */ n(lo, {
41
+ children: /* @__PURE__ */ n(ao, {
42
+ src: o.additionalBanner.imageUrl,
43
+ alt: "promo"
44
+ })
45
+ })
46
+ }) : null;
47
+ }, ro = /* @__PURE__ */ s("div")({
48
+ name: "Header",
49
+ class: "hkzhq2w",
50
+ propsAsIs: !1
51
+ }), to = /* @__PURE__ */ s("div")({
52
+ name: "HeaderContent",
53
+ class: "hmgz5i",
54
+ propsAsIs: !1
55
+ }), j = /* @__PURE__ */ s("img")({
56
+ name: "SponsorLogo",
57
+ class: "syxi3jt",
58
+ propsAsIs: !1
59
+ }), co = /* @__PURE__ */ s("div")({
60
+ name: "SponsorName",
61
+ class: "s149e3gp",
62
+ propsAsIs: !1
63
+ }), po = /* @__PURE__ */ s("div")({
64
+ name: "PromoOverlay",
65
+ class: "p10toh7",
66
+ propsAsIs: !1
67
+ }), mo = /* @__PURE__ */ s("div")({
68
+ name: "Media",
69
+ class: "m1jyea6t",
70
+ propsAsIs: !1
71
+ }), uo = /* @__PURE__ */ s("div")({
72
+ name: "Text",
73
+ class: "tzpfa3h",
74
+ propsAsIs: !1
75
+ }), vo = /* @__PURE__ */ s("div")({
76
+ name: "Description",
77
+ class: "d1crmu01",
78
+ propsAsIs: !1
79
+ }), ho = /* @__PURE__ */ s("div")({
80
+ name: "SponsorText",
81
+ class: "s1l37r8s",
82
+ propsAsIs: !1
83
+ }), go = /* @__PURE__ */ s("div")({
84
+ name: "ADLogo",
85
+ class: "a1nmch9k",
86
+ propsAsIs: !1
87
+ }), bo = /* @__PURE__ */ s("span")({
88
+ name: "SponsoredText",
89
+ class: "s1er0ljd",
90
+ propsAsIs: !1
91
+ }), Ao = /* @__PURE__ */ s("div")({
92
+ name: "CloseIconWrap",
93
+ class: "cydopmr",
94
+ propsAsIs: !1
95
+ }), yo = () => q, Io = /* @__PURE__ */ s(yo())({
96
+ name: "CloseIcon",
97
+ class: "c1w6nt04",
98
+ propsAsIs: !0
99
+ }), fo = /* @__PURE__ */ s("div")({
100
+ name: "Content",
101
+ class: "c1evcmtq",
102
+ propsAsIs: !1
103
+ }), $o = /* @__PURE__ */ s("div")({
104
+ name: "ActionBtnWrap",
105
+ class: "awodx0x",
106
+ propsAsIs: !1
107
+ }), Mo = /* @__PURE__ */ s("a")({
108
+ name: "ActionButton",
109
+ class: "a1q3n6oi",
110
+ propsAsIs: !1
111
+ }), So = /* @__PURE__ */ s("img")({
112
+ name: "PromoImg",
113
+ class: "p8d4xfk",
114
+ propsAsIs: !1
115
+ }), ko = /* @__PURE__ */ s("div")({
116
+ name: "Title",
117
+ class: "tt6oobh",
118
+ propsAsIs: !1
119
+ }), P = ({
120
+ promotion: o,
121
+ onClose: a,
122
+ inSidebar: i
123
+ }) => {
124
+ var e, l, r, t, p, h, g, b, A, y, I, f, $, M, S, k, B, C, E, x, L, N, T, _;
125
+ const u = o.type === c.INGAME_IAB11_LBAR || o.type === c.INGAME_IAB11;
126
+ return /* @__PURE__ */ d(po, { className: "PromoOverlay", style: { ...i ? {} : { backgroundColor: "#1E3344" } }, children: [
127
+ /* @__PURE__ */ d(ro, { children: [
128
+ /* @__PURE__ */ d(to, { children: [
129
+ ((e = o.sponsor) == null ? void 0 : e.logo) && o.logoMode === m.LEFT && /* @__PURE__ */ n(j, { src: (l = o.sponsor) == null ? void 0 : l.logo, alt: "promo" }),
130
+ /* @__PURE__ */ d(
131
+ "div",
132
+ {
133
+ style: {
134
+ paddingLeft: (r = o.sponsor) != null && r.logo && o.logoMode === m.LEFT ? "0px" : "8px"
135
+ },
136
+ children: [
137
+ ((t = o.sponsor) == null ? void 0 : t.logo) && o.logoMode === m.LEFT && /* @__PURE__ */ n(co, { children: (p = o.sponsor) == null ? void 0 : p.name }),
138
+ /* @__PURE__ */ d(ho, { children: [
139
+ /* @__PURE__ */ n(go, { children: "AD" }),
140
+ /* @__PURE__ */ n(bo, { children: "SPONSORED" })
141
+ ] })
142
+ ]
143
+ }
144
+ )
145
+ ] }),
146
+ /* @__PURE__ */ n(Ao, { onClick: a, children: /* @__PURE__ */ n(Io, { name: "icon-cross" }) })
147
+ ] }),
148
+ /* @__PURE__ */ d(mo, { children: [
149
+ ((h = o.sponsor) == null ? void 0 : h.logo) && o.logoMode === m.CENTER && /* @__PURE__ */ n(j, { src: (g = o.sponsor) == null ? void 0 : g.logo, alt: "promo" }),
150
+ /* @__PURE__ */ d(fo, { children: [
151
+ (A = (b = o.banner) == null ? void 0 : b.video) != null && A.url ? /* @__PURE__ */ n(
152
+ F,
153
+ {
154
+ source: (I = (y = o.banner) == null ? void 0 : y.video) == null ? void 0 : I.url,
155
+ poster: ($ = (f = o.banner) == null ? void 0 : f.video) == null ? void 0 : $.thumbnailUrl,
156
+ aspectRatio: u ? "1/1" : "16/9"
157
+ }
158
+ ) : (M = o.banner) != null && M.imageUrl ? /* @__PURE__ */ n(
159
+ So,
160
+ {
161
+ style: u ? { width: "268px", height: "268px" } : {},
162
+ src: (S = o.banner) == null ? void 0 : S.imageUrl,
163
+ alt: "promo"
164
+ }
165
+ ) : null,
166
+ !u && /* @__PURE__ */ d(uo, { children: [
167
+ /* @__PURE__ */ n(ko, { children: (k = o.banner) == null ? void 0 : k.title }),
168
+ /* @__PURE__ */ n(vo, { children: (B = o.banner) == null ? void 0 : B.body })
169
+ ] })
170
+ ] }),
171
+ /* @__PURE__ */ n($o, { children: /* @__PURE__ */ n(
172
+ Mo,
173
+ {
174
+ href: (C = o.banner) == null ? void 0 : C.url,
175
+ style: {
176
+ backgroundColor: ((x = (E = o.banner) == null ? void 0 : E.ctaButton) == null ? void 0 : x.color) || "#009dc4",
177
+ color: ((N = (L = o.banner) == null ? void 0 : L.ctaButton) == null ? void 0 : N.textColor) || "#fff"
178
+ },
179
+ target: "_blank",
180
+ children: (_ = (T = o.banner) == null ? void 0 : T.ctaButton) == null ? void 0 : _.label
181
+ }
182
+ ) })
183
+ ] })
184
+ ] });
185
+ }, Bo = /* @__PURE__ */ s("div")({
186
+ name: "SidebarContainer",
187
+ class: "s1abskp8",
188
+ propsAsIs: !1
189
+ }), Co = ({
190
+ children: o,
191
+ direction: a,
192
+ style: i,
193
+ className: e,
194
+ hiding: l
195
+ }) => /* @__PURE__ */ n(G, {
196
+ direction: a,
197
+ style: i,
198
+ hiding: l,
199
+ className: e,
200
+ children: /* @__PURE__ */ n(Bo, {
201
+ children: o
202
+ })
203
+ }), Eo = (o) => (o == null ? void 0 : o.type) === c.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === c.INGAME_IAB21_LBAR, xo = (o) => (o == null ? void 0 : o.type) === c.INGAME_IAB11 || (o == null ? void 0 : o.type) === c.INGAME_IAB21, Lo = ({ advertisement: o, layoutMode: a = "side-by-side", sidebar: i, banner: e }) => {
204
+ const l = v(o.data);
205
+ return !l.data && l.loading ? null : l.error ? /* @__PURE__ */ d("div", { children: [
206
+ "error ",
207
+ /* @__PURE__ */ n("button", { onClick: o.close, children: "close" })
208
+ ] }) : l.data ? !i && !e && xo(l.data) ? /* @__PURE__ */ n(P, { promotion: l.data, onClose: o.close }) : i && Eo(l.data) ? /* @__PURE__ */ n(Co, { direction: i, hiding: o.hiding, children: /* @__PURE__ */ n(P, { promotion: l.data, onClose: o.close, inSidebar: !0 }) }) : e ? /* @__PURE__ */ n(io, { hiding: o.hiding, promotion: l.data, direction: e }) : null : /* @__PURE__ */ d("div", { children: [
209
+ "empty promo ",
210
+ /* @__PURE__ */ n("button", { onClick: o.close, children: "close" })
211
+ ] });
212
+ }, No = /* @__PURE__ */ s("div")({
213
+ name: "AdvertisementUIWrap",
214
+ class: "aa6pjif",
215
+ propsAsIs: !1
216
+ }), To = (o) => {
217
+ const a = o.target;
218
+ a instanceof HTMLAnchorElement && a.target === "_blank" && a.getAttribute("data-analytics") === "web-link" && O.emit("poll", {
219
+ action: "navigated",
220
+ payload: {}
221
+ });
222
+ }, _o = ({
223
+ gamification: o,
224
+ layoutMode: a,
225
+ sidebar: i,
226
+ banner: e
227
+ }) => {
228
+ const l = w(null), r = v(o.advertisement.$list), t = D(
229
+ () => o.advertisement.getActiveAdvertisement(),
230
+ // fire getActiveNotification when notifications were updated
231
+ // eslint-disable-next-line react-hooks/exhaustive-deps
232
+ [r]
233
+ );
234
+ return K(l, {
235
+ enabled: !!t,
236
+ event: "click",
237
+ listener: To
238
+ }), t ? /* @__PURE__ */ n(No, {
239
+ ref: l,
240
+ style: {
241
+ height: !e && !i ? "auto" : "100%"
242
+ },
243
+ children: /* @__PURE__ */ n(Lo, {
244
+ sidebar: i,
245
+ banner: e,
246
+ advertisement: t,
247
+ layoutMode: a
248
+ })
249
+ }) : null;
250
+ }, jo = ({
251
+ sdk: o,
252
+ sidebar: a,
253
+ banner: i,
254
+ event: e,
255
+ layoutMode: l
256
+ }) => {
257
+ const {
258
+ deactivate: r
259
+ } = z(o);
260
+ R(() => {
261
+ e ? o.createEventSession(e) : r();
262
+ }, [e, r, o]);
263
+ const t = v(o.featuresList.getStore());
264
+ if (a && i)
265
+ return /* @__PURE__ */ n("div", {
266
+ style: {
267
+ color: "red"
268
+ },
269
+ children: "define either sidebar or banner, not both."
270
+ });
271
+ if (!t)
272
+ return null;
273
+ const p = o.getFeature(J.GAMES);
274
+ return p ? /* @__PURE__ */ n(_o, {
275
+ gamification: p,
276
+ sidebar: a,
277
+ banner: i,
278
+ layoutMode: l
279
+ }) : null;
280
+ }, Uo = ({ event: o, sidebar: a, banner: i }) => {
281
+ const e = H();
282
+ return e ? /* @__PURE__ */ n("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ n(W, { children: /* @__PURE__ */ n(
283
+ jo,
284
+ {
285
+ sdk: e,
286
+ event: o,
287
+ sidebar: a,
288
+ banner: i,
289
+ layoutMode: "side-by-side"
290
+ }
291
+ ) }) }) : null;
292
+ };
293
+ export {
294
+ Uo as StreamLayerSDKAdvertisement
295
+ };
package/lib/es/app.js CHANGED
@@ -2,9 +2,9 @@ var ge = Object.defineProperty;
2
2
  var me = (e, s, n) => s in e ? ge(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
3
3
  var g = (e, s, n) => me(e, typeof s != "symbol" ? s + "" : s, n);
4
4
  import { jsx as t, jsxs as m, Fragment as L } from "react/jsx-runtime";
5
- import { a3 as V, u, F as fe, s as h, T as re, i as ke, x as ye, a as Ne, N as be, k as Se, M as Ie, b as Ee, e as we, C as Ae, g as Ce, O as ae, m as P, l as $e, h as Le, j as De, n as le, o as Te, p as xe, q as Oe, r as M, t as Re, v as de, w as U, y as Ve, z as Pe, I as Q, c as ce, B as Qe, D as _e, E as qe, G as Fe, H as x, J as G, K as Ke, L as Me, P as Ue, Q as ze, U as Be, V as We, W as _, _ as Ge, f as q, $ as He, a0 as je, X as Xe, Y as Ye, Z as Ze, a4 as Je, a1 as pe, a2 as H } from "./index2.js";
5
+ import { a4 as V, u, F as fe, s as h, T as re, i as ke, x as ye, b as Ne, N as be, k as Se, M as Ie, g as Ee, h as Ae, C as we, j as Ce, O as ae, m as P, l as $e, n as Le, o as De, p as le, q as Te, r as xe, t as Oe, v as M, w as Re, y as de, z as U, A as Ve, B as Pe, I as Q, c as ce, E as Qe, G as _e, H as qe, e as Fe, J as x, P as G, Q as Ke, R as Me, U as Ue, a as ze, W as Be, X as We, L as _, $ as Ge, f as q, a0 as He, a1 as je, Y as Xe, Z as Ye, _ as Ze, a5 as Je, a2 as pe, a3 as H } from "./index2.js";
6
6
  import { createContext as es, useContext as z, useRef as $, useState as E, useEffect as k, useTransition as ss, lazy as ns, useMemo as C, Suspense as ts, forwardRef as os, useLayoutEffect as is, useCallback as R } from "react";
7
- import { C as A, c as j, Q as O, S as D } from "./useStreamLayerApp2.js";
7
+ import { C as w, c as j, Q as O, S as D } from "./useStreamLayerApp2.js";
8
8
  window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));
9
9
  function rs(e) {
10
10
  return e instanceof DOMException && // everything except Firefox
@@ -46,7 +46,7 @@ var X;
46
46
  (function(e) {
47
47
  e.Init = "init", e.Ready = "ready", e.Connecting = "connecting", e.Connected = "connected", e.Disconnected = "disconnected", e.Failed = "failed", e.Reconnect = "reconnect", e.Reconnecting = "reconnecting";
48
48
  })(X || (X = {}));
49
- A.Unknown, A.Internal, A.DeadlineExceeded, A.ResourceExhausted, A.FailedPrecondition, A.Unavailable, A.DataLoss;
49
+ w.Unknown, w.Internal, w.DeadlineExceeded, w.ResourceExhausted, w.FailedPrecondition, w.Unavailable, w.DataLoss;
50
50
  V("grpc:retry");
51
51
  j(10, { description: "Number of attempts to retry" }), j(3e4, { description: "Max delay between retries in milliseconds" });
52
52
  var I;
@@ -226,7 +226,7 @@ const ds = {
226
226
  return !i.length && !l ? /* @__PURE__ */ t(ms, {
227
227
  deepLink: r
228
228
  }) : /* @__PURE__ */ m(L, {
229
- children: [/* @__PURE__ */ t(we, {
229
+ children: [/* @__PURE__ */ t(Ae, {
230
230
  items: i,
231
231
  scrollNode: s,
232
232
  scrollStore: n,
@@ -236,7 +236,7 @@ const ds = {
236
236
  currentUserId: e.currentUserId.get()
237
237
  }, d), r && /* @__PURE__ */ t(fs, {
238
238
  ref: o,
239
- children: /* @__PURE__ */ t(Ae, {
239
+ children: /* @__PURE__ */ t(we, {
240
240
  onClick: () => p(r),
241
241
  title: "Invite Friends",
242
242
  description: "Challenge them now!"
@@ -316,7 +316,7 @@ const ds = {
316
316
  className: n,
317
317
  gamification: e,
318
318
  responsiveStore: a
319
- }), ws = ({
319
+ }), As = ({
320
320
  gamification: e,
321
321
  className: s,
322
322
  appNode: n,
@@ -360,9 +360,9 @@ const ds = {
360
360
  useContainer: !l,
361
361
  children: p
362
362
  });
363
- }, As = ns(() => import("./gamification-feature.js")), Cs = ({ sdk: e, feature: s, className: n, scrollStore: o, appNode: i, scrollNode: a, responsiveStore: l }) => {
363
+ }, ws = ns(() => import("./gamification-feature.js")), Cs = ({ sdk: e, feature: s, className: n, scrollStore: o, appNode: i, scrollNode: a, responsiveStore: l }) => {
364
364
  const d = C(() => s && s.featureConfig.get().type === D.GAMES ? /* @__PURE__ */ t(cs, { className: n, sdk: e, feature: s, children: /* @__PURE__ */ t(
365
- As,
365
+ ws,
366
366
  {
367
367
  appNode: i,
368
368
  scrollStore: o,
@@ -380,7 +380,7 @@ const ds = {
380
380
  }
381
381
  );
382
382
  }, $s = ({ feature: e, className: s, appNode: n, responsiveStore: o }) => e && e.featureConfig.get().type === D.GAMES ? /* @__PURE__ */ t(
383
- ws,
383
+ As,
384
384
  {
385
385
  className: s,
386
386
  appNode: n,
@@ -526,18 +526,18 @@ const ds = {
526
526
  }) => {
527
527
  var l, d, r, p, c, v, f;
528
528
  const N = u(o.friends.getStore()), [b, S] = E(void 0), y = C(() => {
529
- var w, T;
529
+ var A, T;
530
530
  const W = a.getInviter();
531
- return W ? (T = (w = N.data) == null ? void 0 : w.find(({
531
+ return W ? (T = (A = N.data) == null ? void 0 : A.find(({
532
532
  slId: ve
533
533
  }) => ve === W)) == null ? void 0 : T.name : "";
534
534
  }, [N.data, a]);
535
535
  return k(() => {
536
- const w = e.$store.subscribe((T) => {
536
+ const A = e.$store.subscribe((T) => {
537
537
  T && S(T.data);
538
538
  });
539
539
  return () => {
540
- w();
540
+ A();
541
541
  };
542
542
  }, [e.$store]), /* @__PURE__ */ t(Ms, {
543
543
  children: /* @__PURE__ */ t(_e, {
@@ -563,8 +563,8 @@ const ds = {
563
563
  inviteCardSubtext: (v = s.inviteCard) == null ? void 0 : v.subtext,
564
564
  inviteCardBtnLabel: (f = s.inviteCard) == null ? void 0 : f.buttonLabel,
565
565
  onClose: () => {
566
- var w;
567
- (w = n.close) == null || w.call(n);
566
+ var A;
567
+ (A = n.close) == null || A.call(n);
568
568
  },
569
569
  gamification: o,
570
570
  sdk: a,
@@ -939,6 +939,7 @@ const ds = {
939
939
  };
940
940
  export {
941
941
  mn as E,
942
+ rn as F,
942
943
  kn as S,
943
944
  cn as i,
944
945
  fn as u
package/lib/es/index2.js CHANGED
@@ -4,7 +4,7 @@ var fs = (c, p, m) => Ik(c, typeof p != "symbol" ? p + "" : p, m);
4
4
  import { jsx as E, jsxs as Q, Fragment as ci } from "react/jsx-runtime";
5
5
  import * as _ from "react";
6
6
  import Pa, { createContext as _k, useMemo as li, useEffect as Wt, useCallback as lr, useSyncExternalStore as Pk, useState as Rt, useRef as Zn, useLayoutEffect as lv, Component as sv, createElement as Nk, PureComponent as Mk } from "react";
7
- import { p as Ak, S as bp, u as zk, Q as $e, a as Nu, b as Nc, I as uv, g as Ok, P as Cp } from "./useStreamLayerApp2.js";
7
+ import { p as Ak, S as bp, u as zk, Q as $e, b as Nu, d as Nc, I as uv, g as Ok, e as Cp } from "./useStreamLayerApp2.js";
8
8
  var wp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function cv(c) {
10
10
  return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
@@ -23158,63 +23158,64 @@ const CT = ({
23158
23158
  c && /* @__PURE__ */ E(uP, { children: c })
23159
23159
  ] }) });
23160
23160
  export {
23161
- eS as $,
23162
- Rr as A,
23163
- YP as B,
23161
+ vP as $,
23162
+ jP as A,
23163
+ qP as B,
23164
23164
  HP as C,
23165
- KP as D,
23166
- GP as E,
23165
+ Rr as D,
23166
+ YP as E,
23167
23167
  o0 as F,
23168
- s0 as G,
23169
- gm as H,
23168
+ KP as G,
23169
+ GP as H,
23170
23170
  WP as I,
23171
- ZP as J,
23172
- QP as K,
23173
- k7 as L,
23171
+ gm as J,
23172
+ M7 as K,
23173
+ TP as L,
23174
23174
  zT as M,
23175
23175
  DP as N,
23176
23176
  MP as O,
23177
- R7 as P,
23178
- i0 as Q,
23179
- Sm as R,
23177
+ ZP as P,
23178
+ QP as Q,
23179
+ k7 as R,
23180
23180
  mP as S,
23181
23181
  NP as T,
23182
- kP as U,
23183
- EP as V,
23184
- TP as W,
23185
- xP as X,
23186
- LP as Y,
23187
- RP as Z,
23188
- vP as _,
23189
- $P as a,
23190
- wP as a0,
23191
- jk as a1,
23192
- Wk as a2,
23193
- $k as a3,
23194
- _P as a4,
23195
- WR as b,
23182
+ R7 as U,
23183
+ Sm as V,
23184
+ kP as W,
23185
+ EP as X,
23186
+ xP as Y,
23187
+ LP as Z,
23188
+ RP as _,
23189
+ i0 as a,
23190
+ eS as a0,
23191
+ wP as a1,
23192
+ jk as a2,
23193
+ Wk as a3,
23194
+ $k as a4,
23195
+ _P as a5,
23196
+ $P as b,
23196
23197
  mt as c,
23197
23198
  P7 as d,
23198
- FP as e,
23199
+ s0 as e,
23199
23200
  IP as f,
23200
- BP as g,
23201
- bP as h,
23201
+ WR as g,
23202
+ FP as h,
23202
23203
  zP as i,
23203
- UP as j,
23204
+ BP as j,
23204
23205
  OP as k,
23205
23206
  gP as l,
23206
23207
  $R as m,
23207
- fv as n,
23208
- CP as o,
23209
- tS as p,
23210
- yP as q,
23211
- SP as r,
23208
+ bP as n,
23209
+ UP as o,
23210
+ fv as p,
23211
+ CP as q,
23212
+ tS as r,
23212
23213
  x as s,
23213
- jS as t,
23214
+ yP as t,
23214
23215
  y7 as u,
23215
- AP as v,
23216
- I7 as w,
23216
+ SP as v,
23217
+ jS as w,
23217
23218
  VP as x,
23218
- jP as y,
23219
- qP as z
23219
+ AP as y,
23220
+ I7 as z
23220
23221
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as L, Fragment as E } from "react/jsx-runtime";
2
- import { u as C, F as r2, s as u, T as j, i as i2, x as a2, a as l2, N as d2, k as c2, M as p2, b as u2, e as C2, C as v2, g as h2, O as K, m as x, l as m2, h as g2, j as L2, n as X, o as f2, p as S2, q as y2, r as U, t as k2, v as J, w as _, I as e2, c as P, y as N2, z as b2, A as z, B as A2, D as I2, E as $2, G as E2, H as T, J as Q, K as V2, L as w2, P as R2, Q as H2, R as q, U as T2, V as x2, W as F, X as F2, Y as D2, Z as M2, _ as O2, f as D, $ as U2, a0 as _2, S as P2, a1 as B2, a2 as G2 } from "./index2.js";
2
+ import { u as C, F as r2, s as u, T as j, i as i2, x as a2, b as l2, N as d2, k as c2, M as p2, g as u2, h as C2, C as v2, j as h2, O as K, m as x, l as m2, n as g2, o as L2, p as X, q as f2, r as S2, t as y2, v as U, w as k2, y as J, z as _, I as e2, c as P, A as N2, B as b2, D as z, E as A2, G as I2, H as $2, e as E2, J as T, P as Q, Q as V2, R as w2, U as R2, a as H2, V as q, W as T2, X as x2, L as F, Y as F2, Z as D2, _ as M2, $ as O2, f as D, a0 as U2, a1 as _2, S as P2, a2 as B2, a3 as G2 } from "./index2.js";
3
3
  import { createContext as z2, useContext as s2, useRef as $, useState as b, useEffect as k, useTransition as Q2, lazy as q2, useMemo as H, Suspense as Z2, forwardRef as Y2, useLayoutEffect as W2, useCallback as R, Component as j2 } from "react";
4
4
  import { Q as K2, S as I } from "./useStreamLayerApp2.js";
5
5
  const M = /* @__PURE__ */ u("div")({