trtc-sdk-v5 5.8.3-beta.5 → 5.8.3-beta.7
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.
- package/index.d.ts +0 -10
- package/package.json +1 -1
- package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.iife.js +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/cross-room.esm.js +1 -1
- package/plugins/cross-room/cross-room.iife.js +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/debug/debug.esm.js +8 -8
- package/plugins/debug/debug.iife.js +8 -8
- package/plugins/debug/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +2 -2
- package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +2 -2
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.iife.js +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/video-effect/watermark/watermark.esm.js +1 -1
- package/plugins/video-effect/watermark/watermark.iife.js +1 -1
- package/trtc.esm.js +24 -24
- package/trtc.js +1 -1
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
1. \u4E1A\u52A1\u4FA7\u4F20\u5165\u7528\u4E8E\u64AD\u653E\u97F3\u89C6\u9891\u7684 div \u6807\u7B7E\u5BB9\u5668\u88AB\u4E1A\u52A1\u4FA7\u4ECE DOM \u79FB\u9664\u3002
|
|
7
7
|
2. \u7528\u6237\u5728 Chrome 70 \u53CA\u4EE5\u4E0B\u7248\u672C\uFF0C\u5F53\u79FB\u52A8 div \u5BB9\u5668\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u6682\u505C\u3002`,tips_en:`The remote stream video playback is paused, which usually has two possibilities:
|
|
8
8
|
1. The business side passes in the div tag container for playing audio and video to be removed by the business side from the DOM.
|
|
9
|
-
2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.`,color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u5E94\u7528\u7A97\u53E3",tips_en:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u6574\u4E2A\u5C4F\u5E55",tips_en:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u67D0\u4E2A\u6807\u7B7E\u9875",tips_en:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips_zh:"\u8BE5\u65E5\u5FD7\u4E0B\u7684\u5206\u8FA8\u7387\u3001\u5E27\u7387\u4E3A\u5B9E\u9645\u91C7\u96C6\u51FA\u7684\u5206\u8FA8\u7387\u53CA\u5E27\u7387",tips_en:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips_zh:"\u8C03\u7528 remoteStream.play \u63A5\u53E3",tips_en:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips_zh:"\u8C03\u7528 localStream.play \u63A5\u53E3",tips_en:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips_zh:"\u4E1A\u52A1\u4FA7\u8C03\u7528 remoteStream.setAudioVolume(0) \u63A5\u53E3\uFF0C\u5C06\u64AD\u653E\u97F3\u91CF\u8BBE\u7F6E\u4E3A 0\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u65E0\u58F0",tips_en:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u505C\u6B62\uFF0C\u53EF\u80FD\u539F\u56E0\uFF1A\u7528\u6237\u70B9\u51FB\u505C\u6B62\u91C7\u96C6\u6309\u94AE\u3001\u5206\u4EAB\u7684\u7A97\u53E3/\u9875\u9762\u88AB\u5173\u95ED\u7B49\u3002",tips_en:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips_zh:"\u8C03\u7528 client.join \u63A5\u53E3",tips_en:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips_zh:"\u8C03\u7528 client.publish \u63A5\u53E3",tips_en:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips_zh:"\u8C03\u7528 client.subscribe \u63A5\u53E3",tips_en:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips_zh:"\u8C03\u7528 client.switchRole \u63A5\u53E3",tips_en:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach(e=>{te[`${e}()`]={tips_zh:`\u8C03\u7528 trtc.${e}`,tips_en:`Call trtc.${e}`,color:"blue",class:"blue",textColor:"#fff"}});var Mr=Object.keys(te);function Br(e){return function(t,r,o){return o.value=e(o.value,r),o}}var Pt=new WeakMap;function tr(e,t){return Br((r,o)=>function(...i){var c,l;let a=(c=Pt.get(this))==null?void 0:c.get(t(...i));a&&a>0&&clearTimeout(a);let s=window.setTimeout(()=>{r.apply(this,i)},e);Pt.has(this)?(l=Pt.get(this))==null||l.set(t(...i),s):Pt.set(this,new Map([[t(...i),s]]))})}var M="top",W="bottom",$="right",B="left",It="auto",De=[M,W,$,B],ye="start",Pe="end",$r="clippingParents",Ut="viewport",Xe="popper",Hr="reference",rr=De.reduce(function(e,t){return e.concat([t+"-"+ye,t+"-"+Pe])},[]),Nt=[].concat(De,[It]).reduce(function(e,t){return e.concat([t,t+"-"+ye,t+"-"+Pe])},[]),Go="beforeRead",Ko="read",Fo="afterRead",Xo="beforeMain",Yo="main",Jo="afterMain",Qo="beforeWrite",Zo="write",ei="afterWrite",Wr=[Go,Ko,Fo,Xo,Yo,Jo,Qo,Zo,ei];function j(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oe(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ye(e){if(typeof ShadowRoot=="undefined")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ti(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!V(a)||!j(a)||(Object.assign(a.style,o),Object.keys(i).forEach(function(s){var c=i[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function ri(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),c=s.reduce(function(l,d){return l[d]="",l},{});!V(i)||!j(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var lt={name:"applyStyles",enabled:!0,phase:"write",fn:ti,effect:ri,requires:["computeStyles"]};function q(e){return e.split("-")[0]}var se=Math.max,Ie=Math.min,_e=Math.round;function Je(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(Je())}function ie(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),i=1,a=1;t&&V(e)&&(i=e.offsetWidth>0&&_e(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_e(o.height)/e.offsetHeight||1);var s=oe(e)?k(e):window,c=s.visualViewport,l=!ct()&&r,d=(o.left+(l&&c?c.offsetLeft:0))/i,p=(o.top+(l&&c?c.offsetTop:0))/a,S=o.width/i,g=o.height/a;return{width:S,height:g,top:p,right:d+S,bottom:p+g,left:d,x:d,y:p}}function Ue(e){var t=ie(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ut(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ye(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return k(e).getComputedStyle(e)}function or(e){return["table","td","th"].indexOf(j(e))>=0}function K(e){return((oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Te(e){return j(e)==="html"?e:e.assignedSlot||e.parentNode||(Ye(e)?e.host:null)||K(e)}function Vr(e){return!V(e)||Q(e).position==="fixed"?null:e.offsetParent}function oi(e){var t=/firefox/i.test(Je()),r=/Trident/i.test(Je());if(r&&V(e)){var o=Q(e);if(o.position==="fixed")return null}var i=Te(e);for(Ye(i)&&(i=i.host);V(i)&&["html","body"].indexOf(j(i))<0;){var a=Q(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function le(e){for(var t=k(e),r=Vr(e);r&&or(r)&&Q(r).position==="static";)r=Vr(r);return r&&(j(r)==="html"||j(r)==="body"&&Q(r).position==="static")?t:r||oi(e)||t}function Ne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,r){return se(e,Ie(t,r))}function zr(e,t,r){var o=Me(e,t,r);return o>r?r:o}function pt(){return{top:0,right:0,bottom:0,left:0}}function dt(e){return Object.assign({},pt(),e)}function ft(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ii=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,dt(typeof t!="number"?t:ft(t,De))};function ai(e){var t,r=e.state,o=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=q(r.placement),l=Ne(c),d=[B,$].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!s)){var S=ii(i.padding,r),g=Ue(a),m=l==="y"?M:B,b=l==="y"?W:$,y=r.rects.reference[p]+r.rects.reference[l]-s[l]-r.rects.popper[p],T=s[l]-r.rects.reference[l],D=le(a),A=D?l==="y"?D.clientHeight||0:D.clientWidth||0:0,L=y/2-T/2,n=S[m],x=A-g[p]-S[b],f=A/2-g[p]/2+L,v=Me(n,f,x),E=l;r.modifiersData[o]=(t={},t[E]=v,t.centerOffset=v-f,t)}}function ni(e){var t=e.state,r=e.options,o=r.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ut(t.elements.popper,i)&&(t.elements.arrow=i))}var jr={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:ni,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(e){return e.split("-")[1]}var si={top:"auto",right:"auto",bottom:"auto",left:"auto"};function li(e,t){var r=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:_e(r*i)/i||0,y:_e(o*i)/i||0}}function qr(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,S=e.isFixed,g=s.x,m=g===void 0?0:g,b=s.y,y=b===void 0?0:b,T=typeof p=="function"?p({x:m,y}):{x:m,y};m=T.x,y=T.y;var D=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),L=B,n=M,x=window;if(d){var f=le(r),v="clientHeight",E="clientWidth";if(f===k(r)&&(f=K(r),Q(f).position!=="static"&&c==="absolute"&&(v="scrollHeight",E="scrollWidth")),f=f,i===M||(i===B||i===$)&&a===Pe){n=W;var R=S&&f===x&&x.visualViewport?x.visualViewport.height:f[v];y-=R-o.height,y*=l?1:-1}if(i===B||(i===M||i===W)&&a===Pe){L=$;var U=S&&f===x&&x.visualViewport?x.visualViewport.width:f[E];m-=U-o.width,m*=l?1:-1}}var H=Object.assign({position:c},d&&si),N=p===!0?li({x:m,y},k(r)):{x:m,y};if(m=N.x,y=N.y,l){var I;return Object.assign({},H,(I={},I[n]=A?"0":"",I[L]=D?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",I))}return Object.assign({},H,(t={},t[n]=A?y+"px":"",t[L]=D?m+"px":"",t.transform="",t))}function ci(e){var t=e.state,r=e.options,o=r.gpuAcceleration,i=o===void 0?!0:o,a=r.adaptive,s=a===void 0?!0:a,c=r.roundOffsets,l=c===void 0?!0:c,d={placement:q(t.placement),variation:ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qr(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qr(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Gr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ci,data:{}};var Mt={passive:!0};function ui(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=i===void 0?!0:i,s=o.resize,c=s===void 0?!0:s,l=k(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",r.update,Mt)}),c&&l.addEventListener("resize",r.update,Mt),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",r.update,Mt)}),c&&l.removeEventListener("resize",r.update,Mt)}}var Kr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ui,data:{}};var pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(t){return pi[t]})}var di={start:"end",end:"start"};function Bt(e){return e.replace(/start|end/g,function(t){return di[t]})}function Be(e){var t=k(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function $e(e){return ie(K(e)).left+Be(e).scrollLeft}function ir(e,t){var r=k(e),o=K(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;var d=ct();(d||!d&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c+$e(e),y:l}}function ar(e){var t,r=K(e),o=Be(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=se(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=se(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-o.scrollLeft+$e(e),l=-o.scrollTop;return Q(i||r).direction==="rtl"&&(c+=se(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:l}}function He(e){var t=Q(e),r=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function $t(e){return["html","body","#document"].indexOf(j(e))>=0?e.ownerDocument.body:V(e)&&He(e)?e:$t(Te(e))}function Ae(e,t){var r;t===void 0&&(t=[]);var o=$t(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=k(o),s=i?[a].concat(a.visualViewport||[],He(o)?o:[]):o,c=t.concat(s);return i?c:c.concat(Ae(Te(s)))}function Ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fi(e,t){var r=ie(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fr(e,t,r){return t===Ut?Ze(ir(e,r)):oe(t)?fi(t,r):Ze(ar(K(e)))}function mi(e){var t=Ae(Te(e)),r=["absolute","fixed"].indexOf(Q(e).position)>=0,o=r&&V(e)?le(e):e;return oe(o)?t.filter(function(i){return oe(i)&&ut(i,o)&&j(i)!=="body"}):[]}function nr(e,t,r,o){var i=t==="clippingParents"?mi(e):[].concat(t),a=[].concat(i,[r]),s=a[0],c=a.reduce(function(l,d){var p=Fr(e,d,o);return l.top=se(p.top,l.top),l.right=Ie(p.right,l.right),l.bottom=Ie(p.bottom,l.bottom),l.left=se(p.left,l.left),l},Fr(e,s,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function mt(e){var t=e.reference,r=e.element,o=e.placement,i=o?q(o):null,a=o?ae(o):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,l;switch(i){case M:l={x:s,y:t.y-r.height};break;case W:l={x:s,y:t.y+t.height};break;case $:l={x:t.x+t.width,y:c};break;case B:l={x:t.x-r.width,y:c};break;default:l={x:t.x,y:t.y}}var d=i?Ne(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case ye:l[d]=l[d]-(t[p]/2-r[p]/2);break;case Pe:l[d]=l[d]+(t[p]/2-r[p]/2);break;default:}}return l}function ce(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=o===void 0?e.placement:o,a=r.strategy,s=a===void 0?e.strategy:a,c=r.boundary,l=c===void 0?$r:c,d=r.rootBoundary,p=d===void 0?Ut:d,S=r.elementContext,g=S===void 0?Xe:S,m=r.altBoundary,b=m===void 0?!1:m,y=r.padding,T=y===void 0?0:y,D=dt(typeof T!="number"?T:ft(T,De)),A=g===Xe?Hr:Xe,L=e.rects.popper,n=e.elements[b?A:g],x=nr(oe(n)?n:n.contextElement||K(e.elements.popper),l,p,s),f=ie(e.elements.reference),v=mt({reference:f,element:L,strategy:"absolute",placement:i}),E=Ze(Object.assign({},L,v)),R=g===Xe?E:f,U={top:x.top-R.top+D.top,bottom:R.bottom-x.bottom+D.bottom,left:x.left-R.left+D.left,right:R.right-x.right+D.right},H=e.modifiersData.offset;if(g===Xe&&H){var N=H[i];Object.keys(U).forEach(function(I){var Z=[$,W].indexOf(I)>=0?1:-1,ee=[M,W].indexOf(I)>=0?"y":"x";U[I]+=N[ee]*Z})}return U}function sr(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,c=r.flipVariations,l=r.allowedAutoPlacements,d=l===void 0?Nt:l,p=ae(o),S=p?c?rr:rr.filter(function(b){return ae(b)===p}):De,g=S.filter(function(b){return d.indexOf(b)>=0});g.length===0&&(g=S);var m=g.reduce(function(b,y){return b[y]=ce(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[q(y)],b},{});return Object.keys(m).sort(function(b,y){return m[b]-m[y]})}function hi(e){if(q(e)===It)return[];var t=Qe(e);return[Bt(e),t,Bt(t)]}function gi(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!0:s,l=r.fallbackPlacements,d=r.padding,p=r.boundary,S=r.rootBoundary,g=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,y=r.allowedAutoPlacements,T=t.options.placement,D=q(T),A=D===T,L=l||(A||!b?[Qe(T)]:hi(T)),n=[T].concat(L).reduce(function(he,ne){return he.concat(q(ne)===It?sr(t,{placement:ne,boundary:p,rootBoundary:S,padding:d,flipVariations:b,allowedAutoPlacements:y}):ne)},[]),x=t.rects.reference,f=t.rects.popper,v=new Map,E=!0,R=n[0],U=0;U<n.length;U++){var H=n[U],N=q(H),I=ae(H)===ye,Z=[M,W].indexOf(N)>=0,ee=Z?"width":"height",F=ce(t,{placement:H,boundary:p,rootBoundary:S,altBoundary:g,padding:d}),X=Z?I?$:B:I?W:M;x[ee]>f[ee]&&(X=Qe(X));var G=Qe(X),pe=[];if(a&&pe.push(F[N]<=0),c&&pe.push(F[X]<=0,F[G]<=0),pe.every(function(he){return he})){R=H,E=!1;break}v.set(H,pe)}if(E)for(var de=b?3:1,Ce=function(ne){var ge=n.find(function(je){var ve=v.get(je);if(ve)return ve.slice(0,ne).every(function(qe){return qe})});if(ge)return R=ge,"break"},fe=de;fe>0;fe--){var Le=Ce(fe);if(Le==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var Xr={name:"flip",enabled:!0,phase:"main",fn:gi,requiresIfExists:["offset"],data:{_skip:!1}};function Yr(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Jr(e){return[M,$,W,B].some(function(t){return e[t]>=0})}function vi(e){var t=e.state,r=e.name,o=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=ce(t,{elementContext:"reference"}),c=ce(t,{altBoundary:!0}),l=Yr(s,o),d=Yr(c,i,a),p=Jr(l),S=Jr(d);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":S})}var Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vi};function bi(e,t,r){var o=q(e),i=[B,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*i,[B,$].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}}function yi(e){var t=e.state,r=e.options,o=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=Nt.reduce(function(p,S){return p[S]=bi(S,t.rects,a),p},{}),c=s[t.placement],l=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}var Zr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yi};function _i(e){var t=e.state,r=e.name;t.modifiersData[r]=mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var eo={name:"popperOffsets",enabled:!0,phase:"read",fn:_i,data:{}};function lr(e){return e==="x"?"y":"x"}function Ti(e){var t=e.state,r=e.options,o=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!1:s,l=r.boundary,d=r.rootBoundary,p=r.altBoundary,S=r.padding,g=r.tether,m=g===void 0?!0:g,b=r.tetherOffset,y=b===void 0?0:b,T=ce(t,{boundary:l,rootBoundary:d,padding:S,altBoundary:p}),D=q(t.placement),A=ae(t.placement),L=!A,n=Ne(D),x=lr(n),f=t.modifiersData.popperOffsets,v=t.rects.reference,E=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,U=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(f){if(a){var I,Z=n==="y"?M:B,ee=n==="y"?W:$,F=n==="y"?"height":"width",X=f[n],G=X+T[Z],pe=X-T[ee],de=m?-E[F]/2:0,Ce=A===ye?v[F]:E[F],fe=A===ye?-E[F]:-v[F],Le=t.elements.arrow,he=m&&Le?Ue(Le):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pt(),ge=ne[Z],je=ne[ee],ve=Me(0,v[F],he[F]),qe=L?v[F]/2-de-ve-ge-U.mainAxis:Ce-ve-ge-U.mainAxis,Oe=L?-v[F]/2+de+ve+je+U.mainAxis:fe+ve+je+U.mainAxis,Ge=t.elements.arrow&&le(t.elements.arrow),St=Ge?n==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,rt=(I=H==null?void 0:H[n])!=null?I:0,xt=X+qe-rt-St,Ot=X+Oe-rt,ot=Me(m?Ie(G,xt):G,X,m?se(pe,Ot):pe);f[n]=ot,N[n]=ot-X}if(c){var it,wt=n==="x"?M:B,Dt=n==="x"?W:$,be=f[x],we=x==="y"?"height":"width",at=be+T[wt],Re=be-T[Dt],nt=[M,B].indexOf(D)!==-1,At=(it=H==null?void 0:H[x])!=null?it:0,Et=nt?at:be-v[we]-E[we]-At+U.altAxis,Ct=nt?be+v[we]+E[we]-At-U.altAxis:Re,Lt=m&&nt?zr(Et,be,Ct):Me(m?Et:at,be,m?Ct:Re);f[x]=Lt,N[x]=Lt-be}t.modifiersData[o]=N}}var to={name:"preventOverflow",enabled:!0,phase:"main",fn:Ti,requiresIfExists:["offset"]};function cr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===k(e)||!V(e)?Be(e):cr(e)}function Si(e){var t=e.getBoundingClientRect(),r=_e(t.width)/e.offsetWidth||1,o=_e(t.height)/e.offsetHeight||1;return r!==1||o!==1}function pr(e,t,r){r===void 0&&(r=!1);var o=V(t),i=V(t)&&Si(t),a=K(t),s=ie(e,i,r),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((j(t)!=="body"||He(a))&&(c=ur(t)),V(t)?(l=ie(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=$e(a))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function xi(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var l=t.get(c);l&&i(l)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),o}function dr(e){var t=xi(e);return Wr.reduce(function(r,o){return r.concat(t.filter(function(i){return i.phase===o}))},[])}function fr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mr(e){var t=e.reduce(function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function io(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?ro:i;return function(c,l,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,a),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},S=[],g=!1,m={state:p,setOptions:function(D){var A=typeof D=="function"?D(p.options):D;y(),p.options=Object.assign({},a,p.options,A),p.scrollParents={reference:oe(c)?Ae(c):c.contextElement?Ae(c.contextElement):[],popper:Ae(l)};var L=dr(mr([].concat(o,p.options.modifiers)));return p.orderedModifiers=L.filter(function(n){return n.enabled}),b(),m.update()},forceUpdate:function(){if(!g){var D=p.elements,A=D.reference,L=D.popper;if(oo(A,L)){p.rects={reference:pr(A,le(L),p.options.strategy==="fixed"),popper:Ue(L)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var n=0;n<p.orderedModifiers.length;n++){if(p.reset===!0){p.reset=!1,n=-1;continue}var x=p.orderedModifiers[n],f=x.fn,v=x.options,E=v===void 0?{}:v,R=x.name;typeof f=="function"&&(p=f({state:p,options:E,name:R,instance:m})||p)}}}},update:fr(function(){return new Promise(function(T){m.forceUpdate(),T(p)})}),destroy:function(){y(),g=!0}};if(!oo(c,l))return m;m.setOptions(d).then(function(T){!g&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var D=T.name,A=T.options,L=A===void 0?{}:A,n=T.effect;if(typeof n=="function"){var x=n({state:p,name:D,instance:m,options:L}),f=function(){};S.push(x||f)}})}function y(){S.forEach(function(T){return T()}),S=[]}return m}}var Oi=[Kr,eo,Gr,lt,Zr,Xr,to,jr,Qr],hr=io({defaultModifiers:Oi});var wi="tippy-box",ho="tippy-content",Di="tippy-backdrop",go="tippy-arrow",vo="tippy-svg-arrow",We={passive:!0,capture:!0},bo=function(){return document.body};function gr(e,t,r){if(Array.isArray(e)){var o=e[t];return o==null?Array.isArray(r)?r[t]:r:o}return e}function Sr(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function yo(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ao(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function Ai(e){return e.split(/\s+/).filter(Boolean)}function et(e){return[].concat(e)}function no(e,t){e.indexOf(t)===-1&&e.push(t)}function Ei(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function Ci(e){return e.split("-")[0]}function Wt(e){return[].slice.call(e)}function so(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function ht(){return document.createElement("div")}function Vt(e){return["Element","Fragment"].some(function(t){return Sr(e,t)})}function Li(e){return Sr(e,"NodeList")}function Ri(e){return Sr(e,"MouseEvent")}function ki(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Pi(e){return Vt(e)?[e]:Li(e)?Wt(e):Array.isArray(e)?e:Wt(document.querySelectorAll(e))}function vr(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function lo(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Ii(e){var t,r=et(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function Ui(e,t){var r=t.clientX,o=t.clientY;return e.every(function(i){var a=i.popperRect,s=i.popperState,c=i.props,l=c.interactiveBorder,d=Ci(s.placement),p=s.modifiersData.offset;if(!p)return!0;var S=d==="bottom"?p.top.y:0,g=d==="top"?p.bottom.y:0,m=d==="right"?p.left.x:0,b=d==="left"?p.right.x:0,y=a.top-o+S>l,T=o-a.bottom-g>l,D=a.left-r+m>l,A=r-a.right-b>l;return y||T||D||A})}function br(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[o](i,r)})}function co(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var me={isTouch:!1},uo=0;function Ni(){me.isTouch||(me.isTouch=!0,window.performance&&document.addEventListener("mousemove",_o))}function _o(){var e=performance.now();e-uo<20&&(me.isTouch=!1,document.removeEventListener("mousemove",_o)),uo=e}function Mi(){var e=document.activeElement;if(ki(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Bi(){document.addEventListener("touchstart",Ni,We),window.addEventListener("blur",Mi)}var $i=typeof window!="undefined"&&typeof document!="undefined",Hi=$i?!!window.msCrypto:!1;var Wi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Vi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ue=Object.assign({appendTo:bo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Wi,Vi),zi=Object.keys(ue),ji=function(t){var r=Object.keys(t);r.forEach(function(o){ue[o]=t[o]})};function To(e){var t=e.plugins||[],r=t.reduce(function(o,i){var a=i.name,s=i.defaultValue;if(a){var c;o[a]=e[a]!==void 0?e[a]:(c=ue[a])!=null?c:s}return o},{});return Object.assign({},e,r)}function qi(e,t){var r=t?Object.keys(To(Object.assign({},ue,{plugins:t}))):zi,o=r.reduce(function(i,a){var s=(e.getAttribute("data-tippy-"+a)||"").trim();if(!s)return i;if(a==="content")i[a]=s;else try{i[a]=JSON.parse(s)}catch(c){i[a]=s}return i},{});return o}function po(e,t){var r=Object.assign({},t,{content:yo(t.content,[e])},t.ignoreAttributes?{}:qi(e,t.plugins));return r.aria=Object.assign({},ue.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Gi=function(){return"innerHTML"};function _r(e,t){e[Gi()]=t}function fo(e){var t=ht();return e===!0?t.className=go:(t.className=vo,Vt(e)?t.appendChild(e):_r(t,e)),t}function mo(e,t){Vt(t.content)?(_r(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?_r(e,t.content):e.textContent=t.content)}function Tr(e){var t=e.firstElementChild,r=Wt(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(ho)}),arrow:r.find(function(o){return o.classList.contains(go)||o.classList.contains(vo)}),backdrop:r.find(function(o){return o.classList.contains(Di)})}}function So(e){var t=ht(),r=ht();r.className=wi,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=ht();o.className=ho,o.setAttribute("data-state","hidden"),mo(o,e.props),t.appendChild(r),r.appendChild(o),i(e.props,e.props);function i(a,s){var c=Tr(t),l=c.box,d=c.content,p=c.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&mo(d,e.props),s.arrow?p?a.arrow!==s.arrow&&(l.removeChild(p),l.appendChild(fo(s.arrow))):l.appendChild(fo(s.arrow)):p&&l.removeChild(p)}return{popper:t,onUpdate:i}}So.$$tippy=!0;var Ki=1,Ht=[],yr=[];function Fi(e,t){var r=po(e,Object.assign({},ue,To(so(t)))),o,i,a,s=!1,c=!1,l=!1,d=!1,p,S,g,m=[],b=ao(xt,r.interactiveDebounce),y,T=Ki++,D=null,A=Ei(r.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:T,reference:e,popper:ht(),popperInstance:D,props:r,state:L,plugins:A,clearDelayTimeouts:Et,setProps:Ct,setContent:Lt,show:Po,hide:Io,hideWithInteractivity:Uo,enable:nt,disable:At,unmount:No,destroy:Mo};if(!r.render)return n;var x=r.render(n),f=x.popper,v=x.onUpdate;f.setAttribute("data-tippy-root",""),f.id="tippy-"+n.id,n.popper=f,e._tippy=n,f._tippy=n;var E=A.map(function(u){return u.fn(n)}),R=e.hasAttribute("aria-expanded");return Ge(),de(),X(),G("onCreate",[n]),r.showOnCreate&&at(),f.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),f.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",b)}),n;function U(){var u=n.props.touch;return Array.isArray(u)?u:[u,0]}function H(){return U()[0]==="hold"}function N(){var u;return!!((u=n.props.render)!=null&&u.$$tippy)}function I(){return y||e}function Z(){var u=I().parentNode;return u?Ii(u):document}function ee(){return Tr(f)}function F(u){return n.state.isMounted&&!n.state.isVisible||me.isTouch||p&&p.type==="focus"?0:gr(n.props.delay,u?0:1,ue.delay)}function X(u){u===void 0&&(u=!1),f.style.pointerEvents=n.props.interactive&&!u?"":"none",f.style.zIndex=""+n.props.zIndex}function G(u,h,_){if(_===void 0&&(_=!0),E.forEach(function(O){O[u]&&O[u].apply(O,h)}),_){var C;(C=n.props)[u].apply(C,h)}}function pe(){var u=n.props.aria;if(u.content){var h="aria-"+u.content,_=f.id,C=et(n.props.triggerTarget||e);C.forEach(function(O){var J=O.getAttribute(h);if(n.state.isVisible)O.setAttribute(h,J?J+" "+_:_);else{var re=J&&J.replace(_,"").trim();re?O.setAttribute(h,re):O.removeAttribute(h)}})}}function de(){if(!(R||!n.props.aria.expanded)){var u=et(n.props.triggerTarget||e);u.forEach(function(h){n.props.interactive?h.setAttribute("aria-expanded",n.state.isVisible&&h===I()?"true":"false"):h.removeAttribute("aria-expanded")})}}function Ce(){Z().removeEventListener("mousemove",b),Ht=Ht.filter(function(u){return u!==b})}function fe(u){if(!(me.isTouch&&(l||u.type==="mousedown"))){var h=u.composedPath&&u.composedPath()[0]||u.target;if(!(n.props.interactive&&co(f,h))){if(et(n.props.triggerTarget||e).some(function(_){return co(_,h)})){if(me.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else G("onClickOutside",[n,u]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),c=!0,setTimeout(function(){c=!1}),n.state.isMounted||ge())}}}function Le(){l=!0}function he(){l=!1}function ne(){var u=Z();u.addEventListener("mousedown",fe,!0),u.addEventListener("touchend",fe,We),u.addEventListener("touchstart",he,We),u.addEventListener("touchmove",Le,We)}function ge(){var u=Z();u.removeEventListener("mousedown",fe,!0),u.removeEventListener("touchend",fe,We),u.removeEventListener("touchstart",he,We),u.removeEventListener("touchmove",Le,We)}function je(u,h){qe(u,function(){!n.state.isVisible&&f.parentNode&&f.parentNode.contains(f)&&h()})}function ve(u,h){qe(u,h)}function qe(u,h){var _=ee().box;function C(O){O.target===_&&(br(_,"remove",C),h())}if(u===0)return h();br(_,"remove",S),br(_,"add",C),S=C}function Oe(u,h,_){_===void 0&&(_=!1);var C=et(n.props.triggerTarget||e);C.forEach(function(O){O.addEventListener(u,h,_),m.push({node:O,eventType:u,handler:h,options:_})})}function Ge(){H()&&(Oe("touchstart",rt,{passive:!0}),Oe("touchend",Ot,{passive:!0})),Ai(n.props.trigger).forEach(function(u){if(u!=="manual")switch(Oe(u,rt),u){case"mouseenter":Oe("mouseleave",Ot);break;case"focus":Oe(Hi?"focusout":"blur",ot);break;case"focusin":Oe("focusout",ot);break}})}function St(){m.forEach(function(u){var h=u.node,_=u.eventType,C=u.handler,O=u.options;h.removeEventListener(_,C,O)}),m=[]}function rt(u){var h,_=!1;if(!(!n.state.isEnabled||it(u)||c)){var C=((h=p)==null?void 0:h.type)==="focus";p=u,y=u.currentTarget,de(),!n.state.isVisible&&Ri(u)&&Ht.forEach(function(O){return O(u)}),u.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?_=!0:at(u),u.type==="click"&&(s=!_),_&&!C&&Re(u)}}function xt(u){var h=u.target,_=I().contains(h)||f.contains(h);if(!(u.type==="mousemove"&&_)){var C=we().concat(f).map(function(O){var J,re=O._tippy,Ke=(J=re.popperInstance)==null?void 0:J.state;return Ke?{popperRect:O.getBoundingClientRect(),popperState:Ke,props:r}:null}).filter(Boolean);Ui(C,u)&&(Ce(),Re(u))}}function Ot(u){var h=it(u)||n.props.trigger.indexOf("click")>=0&&s;if(!h){if(n.props.interactive){n.hideWithInteractivity(u);return}Re(u)}}function ot(u){n.props.trigger.indexOf("focusin")<0&&u.target!==I()||n.props.interactive&&u.relatedTarget&&f.contains(u.relatedTarget)||Re(u)}function it(u){return me.isTouch?H()!==u.type.indexOf("touch")>=0:!1}function wt(){Dt();var u=n.props,h=u.popperOptions,_=u.placement,C=u.offset,O=u.getReferenceClientRect,J=u.moveTransition,re=N()?Tr(f).arrow:null,Ke=O?{getBoundingClientRect:O,contextElement:O.contextElement||I()}:e,Lr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Rt){var Fe=Rt.state;if(N()){var Bo=ee(),Qt=Bo.box;["placement","reference-hidden","escaped"].forEach(function(kt){kt==="placement"?Qt.setAttribute("data-placement",Fe.placement):Fe.attributes.popper["data-popper-"+kt]?Qt.setAttribute("data-"+kt,""):Qt.removeAttribute("data-"+kt)}),Fe.attributes.popper={}}}},ke=[{name:"offset",options:{offset:C}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!J}},Lr];N()&&re&&ke.push({name:"arrow",options:{element:re,padding:3}}),ke.push.apply(ke,(h==null?void 0:h.modifiers)||[]),n.popperInstance=hr(Ke,f,Object.assign({},h,{placement:_,onFirstUpdate:g,modifiers:ke}))}function Dt(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function be(){var u=n.props.appendTo,h,_=I();n.props.interactive&&u===bo||u==="parent"?h=_.parentNode:h=yo(u,[_]),h.contains(f)||h.appendChild(f),n.state.isMounted=!0,wt()}function we(){return Wt(f.querySelectorAll("[data-tippy-root]"))}function at(u){n.clearDelayTimeouts(),u&&G("onTrigger",[n,u]),ne();var h=F(!0),_=U(),C=_[0],O=_[1];me.isTouch&&C==="hold"&&O&&(h=O),h?o=setTimeout(function(){n.show()},h):n.show()}function Re(u){if(n.clearDelayTimeouts(),G("onUntrigger",[n,u]),!n.state.isVisible){ge();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&s)){var h=F(!1);h?i=setTimeout(function(){n.state.isVisible&&n.hide()},h):a=requestAnimationFrame(function(){n.hide()})}}function nt(){n.state.isEnabled=!0}function At(){n.hide(),n.state.isEnabled=!1}function Et(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)}function Ct(u){if(!n.state.isDestroyed){G("onBeforeUpdate",[n,u]),St();var h=n.props,_=po(e,Object.assign({},h,so(u),{ignoreAttributes:!0}));n.props=_,Ge(),h.interactiveDebounce!==_.interactiveDebounce&&(Ce(),b=ao(xt,_.interactiveDebounce)),h.triggerTarget&&!_.triggerTarget?et(h.triggerTarget).forEach(function(C){C.removeAttribute("aria-expanded")}):_.triggerTarget&&e.removeAttribute("aria-expanded"),de(),X(),v&&v(h,_),n.popperInstance&&(wt(),we().forEach(function(C){requestAnimationFrame(C._tippy.popperInstance.forceUpdate)})),G("onAfterUpdate",[n,u])}}function Lt(u){n.setProps({content:u})}function Po(){var u=n.state.isVisible,h=n.state.isDestroyed,_=!n.state.isEnabled,C=me.isTouch&&!n.props.touch,O=gr(n.props.duration,0,ue.duration);if(!(u||h||_||C)&&!I().hasAttribute("disabled")&&(G("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,N()&&(f.style.visibility="visible"),X(),ne(),n.state.isMounted||(f.style.transition="none"),N()){var J=ee(),re=J.box,Ke=J.content;vr([re,Ke],0)}g=function(){var ke;if(!(!n.state.isVisible||d)){if(d=!0,f.offsetHeight,f.style.transition=n.props.moveTransition,N()&&n.props.animation){var Jt=ee(),Rt=Jt.box,Fe=Jt.content;vr([Rt,Fe],O),lo([Rt,Fe],"visible")}pe(),de(),no(yr,n),(ke=n.popperInstance)==null||ke.forceUpdate(),G("onMount",[n]),n.props.animation&&N()&&ve(O,function(){n.state.isShown=!0,G("onShown",[n])})}},be()}}function Io(){var u=!n.state.isVisible,h=n.state.isDestroyed,_=!n.state.isEnabled,C=gr(n.props.duration,1,ue.duration);if(!(u||h||_)&&(G("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,d=!1,s=!1,N()&&(f.style.visibility="hidden"),Ce(),ge(),X(!0),N()){var O=ee(),J=O.box,re=O.content;n.props.animation&&(vr([J,re],C),lo([J,re],"hidden"))}pe(),de(),n.props.animation?N()&&je(C,n.unmount):n.unmount()}}function Uo(u){Z().addEventListener("mousemove",b),no(Ht,b),b(u)}function No(){n.state.isVisible&&n.hide(),n.state.isMounted&&(Dt(),we().forEach(function(u){u._tippy.unmount()}),f.parentNode&&f.parentNode.removeChild(f),yr=yr.filter(function(u){return u!==n}),n.state.isMounted=!1,G("onHidden",[n]))}function Mo(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),St(),delete e._tippy,n.state.isDestroyed=!0,G("onDestroy",[n]))}}function gt(e,t){t===void 0&&(t={});var r=ue.plugins.concat(t.plugins||[]);Bi();var o=Object.assign({},t,{plugins:r}),i=Pi(e);if(!1)var a,s;var c=i.reduce(function(l,d){var p=d&&Fi(d,o);return p&&l.push(p),l},[]);return Vt(e)?c[0]:c}gt.defaultProps=ue;gt.setDefaultProps=ji;gt.currentInput=me;var nc=Object.assign({},lt,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});gt.setDefaultProps({render:So});var xo=gt;var P="trtc_debug_dialog",Ee=`${P}_activated`,zt=`${P}_switch`,xr=`${P}_mask`,jt=`${P}_pannel`,Or=`${P}_tabber`,qt=`${P}_tab`,wr=`${P}_topbar`,Ve=`${P}_toptab`,Se=`${P}_content`,Gt=`${P}_has_topbar`,Oo=`${Se}_log`,ze=`${Se}_network`,Kt=`${ze}_title`,Dr=`${ze}_basic`,Ar=`${ze}_local`,Er=`${ze}_remote`,Ft=`${P}_banner`,wo=`${Ft}_item`,Do=`${P}_toolbar`,vt=`${P}_tool`,xe=`${P}_item`,Ao=`${xe}_debug`,Eo=`${xe}_info`,Co=`${xe}_warn`,Lo=`${xe}_error`,bt=`${P}_back_top`,yt=`${P}_go_bottom`,Ro="success",Xi="failed",Cr=!1,_t=class{constructor(t,r){w(this,"_dialogStyle",null);w(this,"_dialogNode",null);w(this,"_switchNode",null);w(this,"_maskNode",null);w(this,"_pannelNode",null);w(this,"_logContentNode",null);w(this,"_networkContentNode",null);w(this,"_tabNodes",[]);w(this,"_toptabNodes",[]);w(this,"_backTopButton",null);w(this,"_goBottomButton",null);w(this,"_hasMove",!1);w(this,"_showDialog",!1);w(this,"_isMobile",!1);w(this,"_showLogType","all");w(this,"prevBytesSent",0);w(this,"prevBytesReceived",0);w(this,"_core");w(this,"_log");w(this,"_logList",[]);w(this,"_networkQuality");w(this,"tippyCount",0);w(this,"isUploading",!1);w(this,"handleNetworkQuality",t=>{this._networkQuality=t});w(this,"handleHeartbeatReport",t=>{var m,b,y,T,D,A,L,n,x,f;let o={2:"big",3:"small",7:"sub"},i={rtt:t.msg_up_stream_info.msg_network_status.uint32_rtt||((m=t.msg_down_stream_info[0])==null?void 0:m.msg_network_status.uint32_rtt)||((b=this._networkQuality)==null?void 0:b.uplinkRTT)||((y=this._networkQuality)==null?void 0:y.downlinkRTT)||0,upLoss:((T=this._networkQuality)==null?void 0:T.uplinkLoss)||0,downLoss:((D=this._networkQuality)==null?void 0:D.downlinkLoss)||0,bytesSent:t.bytes_sent||0,bytesReceived:t.bytes_received||0,localStatistics:{audio:{bitrate:(((A=t.msg_up_stream_info.msg_audio_status)==null?void 0:A.uint32_audio_codec_bitrate)||0)/1e3,audioLevel:(((L=t.msg_up_stream_info.msg_audio_status)==null?void 0:L.uint32_audio_level)||0)/1e8},video:t.msg_up_stream_info.msg_video_status.filter(v=>o[v.uint32_video_stream_type]).map(v=>({bitrate:(v.uint32_video_codec_bitrate||0)/1e3,width:v.uint32_video_width,height:v.uint32_video_height,frameRate:v.uint32_video_enc_fps,videoType:o[v.uint32_video_stream_type]}))},remoteStatistics:t.msg_down_stream_info.map(v=>({userId:v.msg_user_info.str_identifier,audio:{bitrate:(v.msg_audio_status.uint32_audio_codec_bitrate||0)/1e3,audioLevel:(v.msg_audio_status.uint32_audio_level||0)/1e8},video:v.msg_video_status.map(E=>({bitrate:(E.uint32_video_codec_bitrate||0)/1e3,width:E.uint32_video_width,height:E.uint32_video_height,frameRate:E.uint32_video_dec_fps,videoType:o[E.uint32_video_stream_type]}))}))},a=(i.bytesSent-this.prevBytesSent)/2,s=(i.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=i.bytesSent,this.prevBytesReceived=i.bytesReceived;let c=(n=this._dialogNode)==null?void 0:n.querySelector(`.${Dr}`),l=`rtt: ${i.rtt} ms upLoss: ${i.upLoss} downLoss: ${i.downLoss} <br>
|
|
9
|
+
2. If the user is in Chrome 70 and below, when the div container is moved, the playback will be paused.`,color:"orange",class:"orange",textColor:"#fff"},'"displaySurface":"window"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u5E94\u7528\u7A97\u53E3",tips_en:"Screen sharing captures the application window",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"monitor"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u6574\u4E2A\u5C4F\u5E55",tips_en:"Screen sharing captures the entire screen",color:"blue",class:"blue",textColor:"#fff"},'"displaySurface":"browser"':{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u4E86\u67D0\u4E2A\u6807\u7B7E\u9875",tips_en:"Screen sharing captures a certain tab page",color:"blue",class:"blue",textColor:"#fff"},updateMediaSettings:{tips_zh:"\u8BE5\u65E5\u5FD7\u4E0B\u7684\u5206\u8FA8\u7387\u3001\u5E27\u7387\u4E3A\u5B9E\u9645\u91C7\u96C6\u51FA\u7684\u5206\u8FA8\u7387\u53CA\u5E27\u7387",tips_en:"The resolution and frame rate below are the actual resolution and frame rate captured",color:"blue",class:"blue",textColor:"#fff"},"main stream start to play with":{tips_zh:"\u8C03\u7528 remoteStream.play \u63A5\u53E3",tips_en:"Call remoteStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"stream start to play with":{tips_zh:"\u8C03\u7528 localStream.play \u63A5\u53E3",tips_en:"Call localStream.play interface",color:"blue",class:"blue",textColor:"#fff"},"main setAudioVolume to 0":{tips_zh:"\u4E1A\u52A1\u4FA7\u8C03\u7528 remoteStream.setAudioVolume(0) \u63A5\u53E3\uFF0C\u5C06\u64AD\u653E\u97F3\u91CF\u8BBE\u7F6E\u4E3A 0\uFF0C\u4F1A\u5BFC\u81F4\u64AD\u653E\u65E0\u58F0",tips_en:"Business side calls remoteStream.setAudioVolume(0) interface to set the playback volume to 0, which will cause the playback to be silent",color:"orange",class:"orange",textColor:"#fff"},"screen sharing was stopped because the video track is ended":{tips_zh:"\u5C4F\u5E55\u5206\u4EAB\u91C7\u96C6\u505C\u6B62\uFF0C\u53EF\u80FD\u539F\u56E0\uFF1A\u7528\u6237\u70B9\u51FB\u505C\u6B62\u91C7\u96C6\u6309\u94AE\u3001\u5206\u4EAB\u7684\u7A97\u53E3/\u9875\u9762\u88AB\u5173\u95ED\u7B49\u3002",tips_en:"Screen sharing capture stopped, possible reasons: user clicks the stop button, the window/page shared by the user is closed, etc.",color:"orange",class:"orange",textColor:"#fff"},"Join() => joining room":{tips_zh:"\u8C03\u7528 client.join \u63A5\u53E3",tips_en:"Call client.join interface",color:"blue",class:"blue",textColor:"#fff"},"publish() => publishing local stream":{tips_zh:"\u8C03\u7528 client.publish \u63A5\u53E3",tips_en:"Call client.publish interface",color:"blue",class:"blue",textColor:"#fff"},"subscribe() => subscribe to":{tips_zh:"\u8C03\u7528 client.subscribe \u63A5\u53E3",tips_en:"Call client.subscribe interface",color:"blue",class:"blue",textColor:"#fff"},"switchRole() => switch role":{tips_zh:"\u8C03\u7528 client.switchRole \u63A5\u53E3",tips_en:"Call client.switchRole interface",color:"blue",class:"blue",textColor:"#fff"}};["enterRoom","exitRoom","switchRole","destroy","startLocalAudio","updateLocalAudio","stopLocalAudio","startLocalVideo","updateLocalVideo","stopLocalVideo","startScreenShare","updateScreenShare","stopScreenShare","startRemoteVideo","updateRemoteVideo","stopRemoteVideo","muteRemoteAudio","setRemoteAudioVolume"].forEach(e=>{te[`${e}()`]={tips_zh:`\u8C03\u7528 trtc.${e}`,tips_en:`Call trtc.${e}`,color:"blue",class:"blue",textColor:"#fff"}});var Mr=Object.keys(te);function Br(e){return function(t,r,o){return o.value=e(o.value,r),o}}var Pt=new WeakMap;function tr(e,t){return Br((r,o)=>function(...i){var c,l;let a=(c=Pt.get(this))==null?void 0:c.get(t(...i));a&&a>0&&clearTimeout(a);let s=window.setTimeout(()=>{r.apply(this,i)},e);Pt.has(this)?(l=Pt.get(this))==null||l.set(t(...i),s):Pt.set(this,new Map([[t(...i),s]]))})}var M="top",W="bottom",$="right",B="left",It="auto",De=[M,W,$,B],ye="start",Pe="end",$r="clippingParents",Ut="viewport",Xe="popper",Hr="reference",rr=De.reduce(function(e,t){return e.concat([t+"-"+ye,t+"-"+Pe])},[]),Nt=[].concat(De,[It]).reduce(function(e,t){return e.concat([t,t+"-"+ye,t+"-"+Pe])},[]),Go="beforeRead",Ko="read",Fo="afterRead",Xo="beforeMain",Yo="main",Jo="afterMain",Qo="beforeWrite",Zo="write",ei="afterWrite",Wr=[Go,Ko,Fo,Xo,Yo,Jo,Qo,Zo,ei];function j(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oe(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ye(e){if(typeof ShadowRoot=="undefined")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ti(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!V(a)||!j(a)||(Object.assign(a.style,o),Object.keys(i).forEach(function(s){var c=i[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function ri(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],a=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),c=s.reduce(function(l,d){return l[d]="",l},{});!V(i)||!j(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var lt={name:"applyStyles",enabled:!0,phase:"write",fn:ti,effect:ri,requires:["computeStyles"]};function q(e){return e.split("-")[0]}var se=Math.max,Ie=Math.min,_e=Math.round;function Je(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(Je())}function ie(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),i=1,a=1;t&&V(e)&&(i=e.offsetWidth>0&&_e(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_e(o.height)/e.offsetHeight||1);var s=oe(e)?k(e):window,c=s.visualViewport,l=!ct()&&r,d=(o.left+(l&&c?c.offsetLeft:0))/i,p=(o.top+(l&&c?c.offsetTop:0))/a,S=o.width/i,g=o.height/a;return{width:S,height:g,top:p,right:d+S,bottom:p+g,left:d,x:d,y:p}}function Ue(e){var t=ie(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function ut(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ye(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Q(e){return k(e).getComputedStyle(e)}function or(e){return["table","td","th"].indexOf(j(e))>=0}function K(e){return((oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Te(e){return j(e)==="html"?e:e.assignedSlot||e.parentNode||(Ye(e)?e.host:null)||K(e)}function Vr(e){return!V(e)||Q(e).position==="fixed"?null:e.offsetParent}function oi(e){var t=/firefox/i.test(Je()),r=/Trident/i.test(Je());if(r&&V(e)){var o=Q(e);if(o.position==="fixed")return null}var i=Te(e);for(Ye(i)&&(i=i.host);V(i)&&["html","body"].indexOf(j(i))<0;){var a=Q(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function le(e){for(var t=k(e),r=Vr(e);r&&or(r)&&Q(r).position==="static";)r=Vr(r);return r&&(j(r)==="html"||j(r)==="body"&&Q(r).position==="static")?t:r||oi(e)||t}function Ne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Me(e,t,r){return se(e,Ie(t,r))}function zr(e,t,r){var o=Me(e,t,r);return o>r?r:o}function pt(){return{top:0,right:0,bottom:0,left:0}}function dt(e){return Object.assign({},pt(),e)}function ft(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ii=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,dt(typeof t!="number"?t:ft(t,De))};function ai(e){var t,r=e.state,o=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,c=q(r.placement),l=Ne(c),d=[B,$].indexOf(c)>=0,p=d?"height":"width";if(!(!a||!s)){var S=ii(i.padding,r),g=Ue(a),m=l==="y"?M:B,b=l==="y"?W:$,y=r.rects.reference[p]+r.rects.reference[l]-s[l]-r.rects.popper[p],T=s[l]-r.rects.reference[l],D=le(a),E=D?l==="y"?D.clientHeight||0:D.clientWidth||0:0,L=y/2-T/2,n=S[m],x=E-g[p]-S[b],f=E/2-g[p]/2+L,v=Me(n,f,x),A=l;r.modifiersData[o]=(t={},t[A]=v,t.centerOffset=v-f,t)}}function ni(e){var t=e.state,r=e.options,o=r.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||ut(t.elements.popper,i)&&(t.elements.arrow=i))}var jr={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:ni,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(e){return e.split("-")[1]}var si={top:"auto",right:"auto",bottom:"auto",left:"auto"};function li(e,t){var r=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:_e(r*i)/i||0,y:_e(o*i)/i||0}}function qr(e){var t,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,c=e.position,l=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,S=e.isFixed,g=s.x,m=g===void 0?0:g,b=s.y,y=b===void 0?0:b,T=typeof p=="function"?p({x:m,y}):{x:m,y};m=T.x,y=T.y;var D=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),L=B,n=M,x=window;if(d){var f=le(r),v="clientHeight",A="clientWidth";if(f===k(r)&&(f=K(r),Q(f).position!=="static"&&c==="absolute"&&(v="scrollHeight",A="scrollWidth")),f=f,i===M||(i===B||i===$)&&a===Pe){n=W;var R=S&&f===x&&x.visualViewport?x.visualViewport.height:f[v];y-=R-o.height,y*=l?1:-1}if(i===B||(i===M||i===W)&&a===Pe){L=$;var U=S&&f===x&&x.visualViewport?x.visualViewport.width:f[A];m-=U-o.width,m*=l?1:-1}}var H=Object.assign({position:c},d&&si),N=p===!0?li({x:m,y},k(r)):{x:m,y};if(m=N.x,y=N.y,l){var I;return Object.assign({},H,(I={},I[n]=E?"0":"",I[L]=D?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",I))}return Object.assign({},H,(t={},t[n]=E?y+"px":"",t[L]=D?m+"px":"",t.transform="",t))}function ci(e){var t=e.state,r=e.options,o=r.gpuAcceleration,i=o===void 0?!0:o,a=r.adaptive,s=a===void 0?!0:a,c=r.roundOffsets,l=c===void 0?!0:c,d={placement:q(t.placement),variation:ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qr(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qr(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Gr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ci,data:{}};var Mt={passive:!0};function ui(e){var t=e.state,r=e.instance,o=e.options,i=o.scroll,a=i===void 0?!0:i,s=o.resize,c=s===void 0?!0:s,l=k(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",r.update,Mt)}),c&&l.addEventListener("resize",r.update,Mt),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",r.update,Mt)}),c&&l.removeEventListener("resize",r.update,Mt)}}var Kr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ui,data:{}};var pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(t){return pi[t]})}var di={start:"end",end:"start"};function Bt(e){return e.replace(/start|end/g,function(t){return di[t]})}function Be(e){var t=k(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function $e(e){return ie(K(e)).left+Be(e).scrollLeft}function ir(e,t){var r=k(e),o=K(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;var d=ct();(d||!d&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c+$e(e),y:l}}function ar(e){var t,r=K(e),o=Be(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=se(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=se(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-o.scrollLeft+$e(e),l=-o.scrollTop;return Q(i||r).direction==="rtl"&&(c+=se(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:l}}function He(e){var t=Q(e),r=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+o)}function $t(e){return["html","body","#document"].indexOf(j(e))>=0?e.ownerDocument.body:V(e)&&He(e)?e:$t(Te(e))}function Ee(e,t){var r;t===void 0&&(t=[]);var o=$t(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=k(o),s=i?[a].concat(a.visualViewport||[],He(o)?o:[]):o,c=t.concat(s);return i?c:c.concat(Ee(Te(s)))}function Ze(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fi(e,t){var r=ie(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Fr(e,t,r){return t===Ut?Ze(ir(e,r)):oe(t)?fi(t,r):Ze(ar(K(e)))}function mi(e){var t=Ee(Te(e)),r=["absolute","fixed"].indexOf(Q(e).position)>=0,o=r&&V(e)?le(e):e;return oe(o)?t.filter(function(i){return oe(i)&&ut(i,o)&&j(i)!=="body"}):[]}function nr(e,t,r,o){var i=t==="clippingParents"?mi(e):[].concat(t),a=[].concat(i,[r]),s=a[0],c=a.reduce(function(l,d){var p=Fr(e,d,o);return l.top=se(p.top,l.top),l.right=Ie(p.right,l.right),l.bottom=Ie(p.bottom,l.bottom),l.left=se(p.left,l.left),l},Fr(e,s,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function mt(e){var t=e.reference,r=e.element,o=e.placement,i=o?q(o):null,a=o?ae(o):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,l;switch(i){case M:l={x:s,y:t.y-r.height};break;case W:l={x:s,y:t.y+t.height};break;case $:l={x:t.x+t.width,y:c};break;case B:l={x:t.x-r.width,y:c};break;default:l={x:t.x,y:t.y}}var d=i?Ne(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case ye:l[d]=l[d]-(t[p]/2-r[p]/2);break;case Pe:l[d]=l[d]+(t[p]/2-r[p]/2);break;default:}}return l}function ce(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=o===void 0?e.placement:o,a=r.strategy,s=a===void 0?e.strategy:a,c=r.boundary,l=c===void 0?$r:c,d=r.rootBoundary,p=d===void 0?Ut:d,S=r.elementContext,g=S===void 0?Xe:S,m=r.altBoundary,b=m===void 0?!1:m,y=r.padding,T=y===void 0?0:y,D=dt(typeof T!="number"?T:ft(T,De)),E=g===Xe?Hr:Xe,L=e.rects.popper,n=e.elements[b?E:g],x=nr(oe(n)?n:n.contextElement||K(e.elements.popper),l,p,s),f=ie(e.elements.reference),v=mt({reference:f,element:L,strategy:"absolute",placement:i}),A=Ze(Object.assign({},L,v)),R=g===Xe?A:f,U={top:x.top-R.top+D.top,bottom:R.bottom-x.bottom+D.bottom,left:x.left-R.left+D.left,right:R.right-x.right+D.right},H=e.modifiersData.offset;if(g===Xe&&H){var N=H[i];Object.keys(U).forEach(function(I){var Z=[$,W].indexOf(I)>=0?1:-1,ee=[M,W].indexOf(I)>=0?"y":"x";U[I]+=N[ee]*Z})}return U}function sr(e,t){t===void 0&&(t={});var r=t,o=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,c=r.flipVariations,l=r.allowedAutoPlacements,d=l===void 0?Nt:l,p=ae(o),S=p?c?rr:rr.filter(function(b){return ae(b)===p}):De,g=S.filter(function(b){return d.indexOf(b)>=0});g.length===0&&(g=S);var m=g.reduce(function(b,y){return b[y]=ce(e,{placement:y,boundary:i,rootBoundary:a,padding:s})[q(y)],b},{});return Object.keys(m).sort(function(b,y){return m[b]-m[y]})}function hi(e){if(q(e)===It)return[];var t=Qe(e);return[Bt(e),t,Bt(t)]}function gi(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!0:s,l=r.fallbackPlacements,d=r.padding,p=r.boundary,S=r.rootBoundary,g=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,y=r.allowedAutoPlacements,T=t.options.placement,D=q(T),E=D===T,L=l||(E||!b?[Qe(T)]:hi(T)),n=[T].concat(L).reduce(function(he,ne){return he.concat(q(ne)===It?sr(t,{placement:ne,boundary:p,rootBoundary:S,padding:d,flipVariations:b,allowedAutoPlacements:y}):ne)},[]),x=t.rects.reference,f=t.rects.popper,v=new Map,A=!0,R=n[0],U=0;U<n.length;U++){var H=n[U],N=q(H),I=ae(H)===ye,Z=[M,W].indexOf(N)>=0,ee=Z?"width":"height",F=ce(t,{placement:H,boundary:p,rootBoundary:S,altBoundary:g,padding:d}),X=Z?I?$:B:I?W:M;x[ee]>f[ee]&&(X=Qe(X));var G=Qe(X),pe=[];if(a&&pe.push(F[N]<=0),c&&pe.push(F[X]<=0,F[G]<=0),pe.every(function(he){return he})){R=H,A=!1;break}v.set(H,pe)}if(A)for(var de=b?3:1,Ce=function(ne){var ge=n.find(function(je){var ve=v.get(je);if(ve)return ve.slice(0,ne).every(function(qe){return qe})});if(ge)return R=ge,"break"},fe=de;fe>0;fe--){var Le=Ce(fe);if(Le==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}var Xr={name:"flip",enabled:!0,phase:"main",fn:gi,requiresIfExists:["offset"],data:{_skip:!1}};function Yr(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Jr(e){return[M,$,W,B].some(function(t){return e[t]>=0})}function vi(e){var t=e.state,r=e.name,o=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=ce(t,{elementContext:"reference"}),c=ce(t,{altBoundary:!0}),l=Yr(s,o),d=Yr(c,i,a),p=Jr(l),S=Jr(d);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:S},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":S})}var Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vi};function bi(e,t,r){var o=q(e),i=[B,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],c=a[1];return s=s||0,c=(c||0)*i,[B,$].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}}function yi(e){var t=e.state,r=e.options,o=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=Nt.reduce(function(p,S){return p[S]=bi(S,t.rects,a),p},{}),c=s[t.placement],l=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=s}var Zr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yi};function _i(e){var t=e.state,r=e.name;t.modifiersData[r]=mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var eo={name:"popperOffsets",enabled:!0,phase:"read",fn:_i,data:{}};function lr(e){return e==="x"?"y":"x"}function Ti(e){var t=e.state,r=e.options,o=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!1:s,l=r.boundary,d=r.rootBoundary,p=r.altBoundary,S=r.padding,g=r.tether,m=g===void 0?!0:g,b=r.tetherOffset,y=b===void 0?0:b,T=ce(t,{boundary:l,rootBoundary:d,padding:S,altBoundary:p}),D=q(t.placement),E=ae(t.placement),L=!E,n=Ne(D),x=lr(n),f=t.modifiersData.popperOffsets,v=t.rects.reference,A=t.rects.popper,R=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,U=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(f){if(a){var I,Z=n==="y"?M:B,ee=n==="y"?W:$,F=n==="y"?"height":"width",X=f[n],G=X+T[Z],pe=X-T[ee],de=m?-A[F]/2:0,Ce=E===ye?v[F]:A[F],fe=E===ye?-A[F]:-v[F],Le=t.elements.arrow,he=m&&Le?Ue(Le):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pt(),ge=ne[Z],je=ne[ee],ve=Me(0,v[F],he[F]),qe=L?v[F]/2-de-ve-ge-U.mainAxis:Ce-ve-ge-U.mainAxis,Oe=L?-v[F]/2+de+ve+je+U.mainAxis:fe+ve+je+U.mainAxis,Ge=t.elements.arrow&&le(t.elements.arrow),St=Ge?n==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,rt=(I=H==null?void 0:H[n])!=null?I:0,xt=X+qe-rt-St,Ot=X+Oe-rt,ot=Me(m?Ie(G,xt):G,X,m?se(pe,Ot):pe);f[n]=ot,N[n]=ot-X}if(c){var it,wt=n==="x"?M:B,Dt=n==="x"?W:$,be=f[x],we=x==="y"?"height":"width",at=be+T[wt],Re=be-T[Dt],nt=[M,B].indexOf(D)!==-1,Et=(it=H==null?void 0:H[x])!=null?it:0,At=nt?at:be-v[we]-A[we]-Et+U.altAxis,Ct=nt?be+v[we]+A[we]-Et-U.altAxis:Re,Lt=m&&nt?zr(At,be,Ct):Me(m?At:at,be,m?Ct:Re);f[x]=Lt,N[x]=Lt-be}t.modifiersData[o]=N}}var to={name:"preventOverflow",enabled:!0,phase:"main",fn:Ti,requiresIfExists:["offset"]};function cr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ur(e){return e===k(e)||!V(e)?Be(e):cr(e)}function Si(e){var t=e.getBoundingClientRect(),r=_e(t.width)/e.offsetWidth||1,o=_e(t.height)/e.offsetHeight||1;return r!==1||o!==1}function pr(e,t,r){r===void 0&&(r=!1);var o=V(t),i=V(t)&&Si(t),a=K(t),s=ie(e,i,r),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((j(t)!=="body"||He(a))&&(c=ur(t)),V(t)?(l=ie(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=$e(a))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function xi(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var l=t.get(c);l&&i(l)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),o}function dr(e){var t=xi(e);return Wr.reduce(function(r,o){return r.concat(t.filter(function(i){return i.phase===o}))},[])}function fr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mr(e){var t=e.reduce(function(r,o){var i=r[o.name];return r[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function io(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?ro:i;return function(c,l,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,a),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},S=[],g=!1,m={state:p,setOptions:function(D){var E=typeof D=="function"?D(p.options):D;y(),p.options=Object.assign({},a,p.options,E),p.scrollParents={reference:oe(c)?Ee(c):c.contextElement?Ee(c.contextElement):[],popper:Ee(l)};var L=dr(mr([].concat(o,p.options.modifiers)));return p.orderedModifiers=L.filter(function(n){return n.enabled}),b(),m.update()},forceUpdate:function(){if(!g){var D=p.elements,E=D.reference,L=D.popper;if(oo(E,L)){p.rects={reference:pr(E,le(L),p.options.strategy==="fixed"),popper:Ue(L)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(U){return p.modifiersData[U.name]=Object.assign({},U.data)});for(var n=0;n<p.orderedModifiers.length;n++){if(p.reset===!0){p.reset=!1,n=-1;continue}var x=p.orderedModifiers[n],f=x.fn,v=x.options,A=v===void 0?{}:v,R=x.name;typeof f=="function"&&(p=f({state:p,options:A,name:R,instance:m})||p)}}}},update:fr(function(){return new Promise(function(T){m.forceUpdate(),T(p)})}),destroy:function(){y(),g=!0}};if(!oo(c,l))return m;m.setOptions(d).then(function(T){!g&&d.onFirstUpdate&&d.onFirstUpdate(T)});function b(){p.orderedModifiers.forEach(function(T){var D=T.name,E=T.options,L=E===void 0?{}:E,n=T.effect;if(typeof n=="function"){var x=n({state:p,name:D,instance:m,options:L}),f=function(){};S.push(x||f)}})}function y(){S.forEach(function(T){return T()}),S=[]}return m}}var Oi=[Kr,eo,Gr,lt,Zr,Xr,to,jr,Qr],hr=io({defaultModifiers:Oi});var wi="tippy-box",ho="tippy-content",Di="tippy-backdrop",go="tippy-arrow",vo="tippy-svg-arrow",We={passive:!0,capture:!0},bo=function(){return document.body};function gr(e,t,r){if(Array.isArray(e)){var o=e[t];return o==null?Array.isArray(r)?r[t]:r:o}return e}function Sr(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function yo(e,t){return typeof e=="function"?e.apply(void 0,t):e}function ao(e,t){if(t===0)return e;var r;return function(o){clearTimeout(r),r=setTimeout(function(){e(o)},t)}}function Ei(e){return e.split(/\s+/).filter(Boolean)}function et(e){return[].concat(e)}function no(e,t){e.indexOf(t)===-1&&e.push(t)}function Ai(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function Ci(e){return e.split("-")[0]}function Wt(e){return[].slice.call(e)}function so(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function ht(){return document.createElement("div")}function Vt(e){return["Element","Fragment"].some(function(t){return Sr(e,t)})}function Li(e){return Sr(e,"NodeList")}function Ri(e){return Sr(e,"MouseEvent")}function ki(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Pi(e){return Vt(e)?[e]:Li(e)?Wt(e):Array.isArray(e)?e:Wt(document.querySelectorAll(e))}function vr(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function lo(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Ii(e){var t,r=et(e),o=r[0];return o!=null&&(t=o.ownerDocument)!=null&&t.body?o.ownerDocument:document}function Ui(e,t){var r=t.clientX,o=t.clientY;return e.every(function(i){var a=i.popperRect,s=i.popperState,c=i.props,l=c.interactiveBorder,d=Ci(s.placement),p=s.modifiersData.offset;if(!p)return!0;var S=d==="bottom"?p.top.y:0,g=d==="top"?p.bottom.y:0,m=d==="right"?p.left.x:0,b=d==="left"?p.right.x:0,y=a.top-o+S>l,T=o-a.bottom-g>l,D=a.left-r+m>l,E=r-a.right-b>l;return y||T||D||E})}function br(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[o](i,r)})}function co(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=r.getRootNode==null||(o=r.getRootNode())==null?void 0:o.host}return!1}var me={isTouch:!1},uo=0;function Ni(){me.isTouch||(me.isTouch=!0,window.performance&&document.addEventListener("mousemove",_o))}function _o(){var e=performance.now();e-uo<20&&(me.isTouch=!1,document.removeEventListener("mousemove",_o)),uo=e}function Mi(){var e=document.activeElement;if(ki(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Bi(){document.addEventListener("touchstart",Ni,We),window.addEventListener("blur",Mi)}var $i=typeof window!="undefined"&&typeof document!="undefined",Hi=$i?!!window.msCrypto:!1;var Wi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Vi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ue=Object.assign({appendTo:bo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Wi,Vi),zi=Object.keys(ue),ji=function(t){var r=Object.keys(t);r.forEach(function(o){ue[o]=t[o]})};function To(e){var t=e.plugins||[],r=t.reduce(function(o,i){var a=i.name,s=i.defaultValue;if(a){var c;o[a]=e[a]!==void 0?e[a]:(c=ue[a])!=null?c:s}return o},{});return Object.assign({},e,r)}function qi(e,t){var r=t?Object.keys(To(Object.assign({},ue,{plugins:t}))):zi,o=r.reduce(function(i,a){var s=(e.getAttribute("data-tippy-"+a)||"").trim();if(!s)return i;if(a==="content")i[a]=s;else try{i[a]=JSON.parse(s)}catch(c){i[a]=s}return i},{});return o}function po(e,t){var r=Object.assign({},t,{content:yo(t.content,[e])},t.ignoreAttributes?{}:qi(e,t.plugins));return r.aria=Object.assign({},ue.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Gi=function(){return"innerHTML"};function _r(e,t){e[Gi()]=t}function fo(e){var t=ht();return e===!0?t.className=go:(t.className=vo,Vt(e)?t.appendChild(e):_r(t,e)),t}function mo(e,t){Vt(t.content)?(_r(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?_r(e,t.content):e.textContent=t.content)}function Tr(e){var t=e.firstElementChild,r=Wt(t.children);return{box:t,content:r.find(function(o){return o.classList.contains(ho)}),arrow:r.find(function(o){return o.classList.contains(go)||o.classList.contains(vo)}),backdrop:r.find(function(o){return o.classList.contains(Di)})}}function So(e){var t=ht(),r=ht();r.className=wi,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=ht();o.className=ho,o.setAttribute("data-state","hidden"),mo(o,e.props),t.appendChild(r),r.appendChild(o),i(e.props,e.props);function i(a,s){var c=Tr(t),l=c.box,d=c.content,p=c.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&mo(d,e.props),s.arrow?p?a.arrow!==s.arrow&&(l.removeChild(p),l.appendChild(fo(s.arrow))):l.appendChild(fo(s.arrow)):p&&l.removeChild(p)}return{popper:t,onUpdate:i}}So.$$tippy=!0;var Ki=1,Ht=[],yr=[];function Fi(e,t){var r=po(e,Object.assign({},ue,To(so(t)))),o,i,a,s=!1,c=!1,l=!1,d=!1,p,S,g,m=[],b=ao(xt,r.interactiveDebounce),y,T=Ki++,D=null,E=Ai(r.plugins),L={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:T,reference:e,popper:ht(),popperInstance:D,props:r,state:L,plugins:E,clearDelayTimeouts:At,setProps:Ct,setContent:Lt,show:Po,hide:Io,hideWithInteractivity:Uo,enable:nt,disable:Et,unmount:No,destroy:Mo};if(!r.render)return n;var x=r.render(n),f=x.popper,v=x.onUpdate;f.setAttribute("data-tippy-root",""),f.id="tippy-"+n.id,n.popper=f,e._tippy=n,f._tippy=n;var A=E.map(function(u){return u.fn(n)}),R=e.hasAttribute("aria-expanded");return Ge(),de(),X(),G("onCreate",[n]),r.showOnCreate&&at(),f.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),f.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",b)}),n;function U(){var u=n.props.touch;return Array.isArray(u)?u:[u,0]}function H(){return U()[0]==="hold"}function N(){var u;return!!((u=n.props.render)!=null&&u.$$tippy)}function I(){return y||e}function Z(){var u=I().parentNode;return u?Ii(u):document}function ee(){return Tr(f)}function F(u){return n.state.isMounted&&!n.state.isVisible||me.isTouch||p&&p.type==="focus"?0:gr(n.props.delay,u?0:1,ue.delay)}function X(u){u===void 0&&(u=!1),f.style.pointerEvents=n.props.interactive&&!u?"":"none",f.style.zIndex=""+n.props.zIndex}function G(u,h,_){if(_===void 0&&(_=!0),A.forEach(function(O){O[u]&&O[u].apply(O,h)}),_){var C;(C=n.props)[u].apply(C,h)}}function pe(){var u=n.props.aria;if(u.content){var h="aria-"+u.content,_=f.id,C=et(n.props.triggerTarget||e);C.forEach(function(O){var J=O.getAttribute(h);if(n.state.isVisible)O.setAttribute(h,J?J+" "+_:_);else{var re=J&&J.replace(_,"").trim();re?O.setAttribute(h,re):O.removeAttribute(h)}})}}function de(){if(!(R||!n.props.aria.expanded)){var u=et(n.props.triggerTarget||e);u.forEach(function(h){n.props.interactive?h.setAttribute("aria-expanded",n.state.isVisible&&h===I()?"true":"false"):h.removeAttribute("aria-expanded")})}}function Ce(){Z().removeEventListener("mousemove",b),Ht=Ht.filter(function(u){return u!==b})}function fe(u){if(!(me.isTouch&&(l||u.type==="mousedown"))){var h=u.composedPath&&u.composedPath()[0]||u.target;if(!(n.props.interactive&&co(f,h))){if(et(n.props.triggerTarget||e).some(function(_){return co(_,h)})){if(me.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else G("onClickOutside",[n,u]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),c=!0,setTimeout(function(){c=!1}),n.state.isMounted||ge())}}}function Le(){l=!0}function he(){l=!1}function ne(){var u=Z();u.addEventListener("mousedown",fe,!0),u.addEventListener("touchend",fe,We),u.addEventListener("touchstart",he,We),u.addEventListener("touchmove",Le,We)}function ge(){var u=Z();u.removeEventListener("mousedown",fe,!0),u.removeEventListener("touchend",fe,We),u.removeEventListener("touchstart",he,We),u.removeEventListener("touchmove",Le,We)}function je(u,h){qe(u,function(){!n.state.isVisible&&f.parentNode&&f.parentNode.contains(f)&&h()})}function ve(u,h){qe(u,h)}function qe(u,h){var _=ee().box;function C(O){O.target===_&&(br(_,"remove",C),h())}if(u===0)return h();br(_,"remove",S),br(_,"add",C),S=C}function Oe(u,h,_){_===void 0&&(_=!1);var C=et(n.props.triggerTarget||e);C.forEach(function(O){O.addEventListener(u,h,_),m.push({node:O,eventType:u,handler:h,options:_})})}function Ge(){H()&&(Oe("touchstart",rt,{passive:!0}),Oe("touchend",Ot,{passive:!0})),Ei(n.props.trigger).forEach(function(u){if(u!=="manual")switch(Oe(u,rt),u){case"mouseenter":Oe("mouseleave",Ot);break;case"focus":Oe(Hi?"focusout":"blur",ot);break;case"focusin":Oe("focusout",ot);break}})}function St(){m.forEach(function(u){var h=u.node,_=u.eventType,C=u.handler,O=u.options;h.removeEventListener(_,C,O)}),m=[]}function rt(u){var h,_=!1;if(!(!n.state.isEnabled||it(u)||c)){var C=((h=p)==null?void 0:h.type)==="focus";p=u,y=u.currentTarget,de(),!n.state.isVisible&&Ri(u)&&Ht.forEach(function(O){return O(u)}),u.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?_=!0:at(u),u.type==="click"&&(s=!_),_&&!C&&Re(u)}}function xt(u){var h=u.target,_=I().contains(h)||f.contains(h);if(!(u.type==="mousemove"&&_)){var C=we().concat(f).map(function(O){var J,re=O._tippy,Ke=(J=re.popperInstance)==null?void 0:J.state;return Ke?{popperRect:O.getBoundingClientRect(),popperState:Ke,props:r}:null}).filter(Boolean);Ui(C,u)&&(Ce(),Re(u))}}function Ot(u){var h=it(u)||n.props.trigger.indexOf("click")>=0&&s;if(!h){if(n.props.interactive){n.hideWithInteractivity(u);return}Re(u)}}function ot(u){n.props.trigger.indexOf("focusin")<0&&u.target!==I()||n.props.interactive&&u.relatedTarget&&f.contains(u.relatedTarget)||Re(u)}function it(u){return me.isTouch?H()!==u.type.indexOf("touch")>=0:!1}function wt(){Dt();var u=n.props,h=u.popperOptions,_=u.placement,C=u.offset,O=u.getReferenceClientRect,J=u.moveTransition,re=N()?Tr(f).arrow:null,Ke=O?{getBoundingClientRect:O,contextElement:O.contextElement||I()}:e,Lr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Rt){var Fe=Rt.state;if(N()){var Bo=ee(),Qt=Bo.box;["placement","reference-hidden","escaped"].forEach(function(kt){kt==="placement"?Qt.setAttribute("data-placement",Fe.placement):Fe.attributes.popper["data-popper-"+kt]?Qt.setAttribute("data-"+kt,""):Qt.removeAttribute("data-"+kt)}),Fe.attributes.popper={}}}},ke=[{name:"offset",options:{offset:C}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!J}},Lr];N()&&re&&ke.push({name:"arrow",options:{element:re,padding:3}}),ke.push.apply(ke,(h==null?void 0:h.modifiers)||[]),n.popperInstance=hr(Ke,f,Object.assign({},h,{placement:_,onFirstUpdate:g,modifiers:ke}))}function Dt(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function be(){var u=n.props.appendTo,h,_=I();n.props.interactive&&u===bo||u==="parent"?h=_.parentNode:h=yo(u,[_]),h.contains(f)||h.appendChild(f),n.state.isMounted=!0,wt()}function we(){return Wt(f.querySelectorAll("[data-tippy-root]"))}function at(u){n.clearDelayTimeouts(),u&&G("onTrigger",[n,u]),ne();var h=F(!0),_=U(),C=_[0],O=_[1];me.isTouch&&C==="hold"&&O&&(h=O),h?o=setTimeout(function(){n.show()},h):n.show()}function Re(u){if(n.clearDelayTimeouts(),G("onUntrigger",[n,u]),!n.state.isVisible){ge();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&s)){var h=F(!1);h?i=setTimeout(function(){n.state.isVisible&&n.hide()},h):a=requestAnimationFrame(function(){n.hide()})}}function nt(){n.state.isEnabled=!0}function Et(){n.hide(),n.state.isEnabled=!1}function At(){clearTimeout(o),clearTimeout(i),cancelAnimationFrame(a)}function Ct(u){if(!n.state.isDestroyed){G("onBeforeUpdate",[n,u]),St();var h=n.props,_=po(e,Object.assign({},h,so(u),{ignoreAttributes:!0}));n.props=_,Ge(),h.interactiveDebounce!==_.interactiveDebounce&&(Ce(),b=ao(xt,_.interactiveDebounce)),h.triggerTarget&&!_.triggerTarget?et(h.triggerTarget).forEach(function(C){C.removeAttribute("aria-expanded")}):_.triggerTarget&&e.removeAttribute("aria-expanded"),de(),X(),v&&v(h,_),n.popperInstance&&(wt(),we().forEach(function(C){requestAnimationFrame(C._tippy.popperInstance.forceUpdate)})),G("onAfterUpdate",[n,u])}}function Lt(u){n.setProps({content:u})}function Po(){var u=n.state.isVisible,h=n.state.isDestroyed,_=!n.state.isEnabled,C=me.isTouch&&!n.props.touch,O=gr(n.props.duration,0,ue.duration);if(!(u||h||_||C)&&!I().hasAttribute("disabled")&&(G("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,N()&&(f.style.visibility="visible"),X(),ne(),n.state.isMounted||(f.style.transition="none"),N()){var J=ee(),re=J.box,Ke=J.content;vr([re,Ke],0)}g=function(){var ke;if(!(!n.state.isVisible||d)){if(d=!0,f.offsetHeight,f.style.transition=n.props.moveTransition,N()&&n.props.animation){var Jt=ee(),Rt=Jt.box,Fe=Jt.content;vr([Rt,Fe],O),lo([Rt,Fe],"visible")}pe(),de(),no(yr,n),(ke=n.popperInstance)==null||ke.forceUpdate(),G("onMount",[n]),n.props.animation&&N()&&ve(O,function(){n.state.isShown=!0,G("onShown",[n])})}},be()}}function Io(){var u=!n.state.isVisible,h=n.state.isDestroyed,_=!n.state.isEnabled,C=gr(n.props.duration,1,ue.duration);if(!(u||h||_)&&(G("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,d=!1,s=!1,N()&&(f.style.visibility="hidden"),Ce(),ge(),X(!0),N()){var O=ee(),J=O.box,re=O.content;n.props.animation&&(vr([J,re],C),lo([J,re],"hidden"))}pe(),de(),n.props.animation?N()&&je(C,n.unmount):n.unmount()}}function Uo(u){Z().addEventListener("mousemove",b),no(Ht,b),b(u)}function No(){n.state.isVisible&&n.hide(),n.state.isMounted&&(Dt(),we().forEach(function(u){u._tippy.unmount()}),f.parentNode&&f.parentNode.removeChild(f),yr=yr.filter(function(u){return u!==n}),n.state.isMounted=!1,G("onHidden",[n]))}function Mo(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),St(),delete e._tippy,n.state.isDestroyed=!0,G("onDestroy",[n]))}}function gt(e,t){t===void 0&&(t={});var r=ue.plugins.concat(t.plugins||[]);Bi();var o=Object.assign({},t,{plugins:r}),i=Pi(e);if(!1)var a,s;var c=i.reduce(function(l,d){var p=d&&Fi(d,o);return p&&l.push(p),l},[]);return Vt(e)?c[0]:c}gt.defaultProps=ue;gt.setDefaultProps=ji;gt.currentInput=me;var nc=Object.assign({},lt,{effect:function(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow)}});gt.setDefaultProps({render:So});var xo=gt;var P="trtc_debug_dialog",Ae=`${P}_activated`,zt=`${P}_switch`,xr=`${P}_mask`,jt=`${P}_pannel`,Or=`${P}_tabber`,qt=`${P}_tab`,wr=`${P}_topbar`,Ve=`${P}_toptab`,Se=`${P}_content`,Gt=`${P}_has_topbar`,Oo=`${Se}_log`,ze=`${Se}_network`,Kt=`${ze}_title`,Dr=`${ze}_basic`,Er=`${ze}_local`,Ar=`${ze}_remote`,Ft=`${P}_banner`,wo=`${Ft}_item`,Do=`${P}_toolbar`,vt=`${P}_tool`,xe=`${P}_item`,Eo=`${xe}_debug`,Ao=`${xe}_info`,Co=`${xe}_warn`,Lo=`${xe}_error`,bt=`${P}_back_top`,yt=`${P}_go_bottom`,Ro="success",Xi="failed",Cr=!1,_t=class{constructor(t,r){w(this,"_dialogStyle",null);w(this,"_dialogNode",null);w(this,"_switchNode",null);w(this,"_maskNode",null);w(this,"_pannelNode",null);w(this,"_logContentNode",null);w(this,"_networkContentNode",null);w(this,"_tabNodes",[]);w(this,"_toptabNodes",[]);w(this,"_backTopButton",null);w(this,"_goBottomButton",null);w(this,"_hasMove",!1);w(this,"_showDialog",!1);w(this,"_isMobile",!1);w(this,"_showLogType","all");w(this,"prevBytesSent",0);w(this,"prevBytesReceived",0);w(this,"_core");w(this,"_log");w(this,"_logList",[]);w(this,"_networkQuality");w(this,"tippyCount",0);w(this,"isUploading",!1);w(this,"handleNetworkQuality",t=>{this._networkQuality=t});w(this,"handleHeartbeatReport",t=>{var m,b,y,T,D,E,L,n,x,f;let o={2:"big",3:"small",7:"sub"},i={rtt:t.msg_up_stream_info.msg_network_status.uint32_rtt||((m=t.msg_down_stream_info[0])==null?void 0:m.msg_network_status.uint32_rtt)||((b=this._networkQuality)==null?void 0:b.uplinkRTT)||((y=this._networkQuality)==null?void 0:y.downlinkRTT)||0,upLoss:((T=this._networkQuality)==null?void 0:T.uplinkLoss)||0,downLoss:((D=this._networkQuality)==null?void 0:D.downlinkLoss)||0,bytesSent:t.bytes_sent||0,bytesReceived:t.bytes_received||0,localStatistics:{audio:{bitrate:(((E=t.msg_up_stream_info.msg_audio_status)==null?void 0:E.uint32_audio_codec_bitrate)||0)/1e3,audioLevel:(((L=t.msg_up_stream_info.msg_audio_status)==null?void 0:L.uint32_audio_level)||0)/1e8},video:t.msg_up_stream_info.msg_video_status.filter(v=>o[v.uint32_video_stream_type]).map(v=>({bitrate:(v.uint32_video_codec_bitrate||0)/1e3,width:v.uint32_video_width,height:v.uint32_video_height,frameRate:v.uint32_video_enc_fps,videoType:o[v.uint32_video_stream_type]}))},remoteStatistics:t.msg_down_stream_info.map(v=>({userId:v.msg_user_info.str_identifier,audio:{bitrate:(v.msg_audio_status.uint32_audio_codec_bitrate||0)/1e3,audioLevel:(v.msg_audio_status.uint32_audio_level||0)/1e8},video:v.msg_video_status.map(A=>({bitrate:(A.uint32_video_codec_bitrate||0)/1e3,width:A.uint32_video_width,height:A.uint32_video_height,frameRate:A.uint32_video_dec_fps,videoType:o[A.uint32_video_stream_type]}))}))},a=(i.bytesSent-this.prevBytesSent)/2,s=(i.bytesReceived-this.prevBytesReceived)/2;this.prevBytesSent=i.bytesSent,this.prevBytesReceived=i.bytesReceived;let c=(n=this._dialogNode)==null?void 0:n.querySelector(`.${Dr}`),l=`rtt: ${i.rtt} ms upLoss: ${i.upLoss} downLoss: ${i.downLoss} <br>
|
|
10
10
|
\u2191 ${a/1e3} KB/s (${8*a/1e3} Kb/s) <br>
|
|
11
11
|
\u2193 ${s/1e3} KB/s (${8*s/1e3} Kb/s) <br>
|
|
12
|
-
`;c.innerHTML=l;let d=(x=this._dialogNode)==null?void 0:x.querySelector(`.${
|
|
12
|
+
`;c.innerHTML=l;let d=(x=this._dialogNode)==null?void 0:x.querySelector(`.${Er}`),p="";i.localStatistics.audio.bitrate&&(p=`<li>local audio: ${i.localStatistics.audio.bitrate} Kb/s audioLevel: ${i.localStatistics.audio.audioLevel.toFixed(5)}</li>`),i.localStatistics.video.length>0&&(p+=`${i.localStatistics.video.map(v=>`<li>local ${v.videoType} video: ${v.bitrate} Kb/s ${v.width}*${v.height} ${v.frameRate}fps</li>`).join("")}`),d.innerHTML=p===""?`${Y.NO_DATA}`:p;let S=(f=this._dialogNode)==null?void 0:f.querySelector(`.${Ar}`),g="";i.remoteStatistics.length>0&&i.remoteStatistics.forEach(v=>{let A=`remote ${v.userId}:`;v.audio.bitrate>0&&(A+=`<li>audio: ${v.audio.bitrate} Kb/s audioLevel: ${v.audio.audioLevel.toFixed(5)}</li>`),v.video.length>0&&v.video.forEach(R=>{A+=`<li>${R.videoType} video: ${R.bitrate} Kb/s ${R.width}*${R.height} ${R.frameRate}fps</li>`}),g+=A}),S.innerHTML=g===""?`${Y.NO_DATA}`:g});Cr=!0,this._core=t,this._log=r,this.addStyle(),this.addDialog(),this.synchronizeLog(),this.installEvents()}synchronizeLog(){this._core.loggerManager.getQueue().forEach(r=>{this.updateLog(r)})}addStyle(){this._dialogStyle=document.createElement("style"),this._dialogStyle.innerHTML=`
|
|
13
13
|
#${P}
|
|
14
14
|
{--DD-BG-0:#ededed;--DD-BG-1:#f7f7f7;--DD-BG-2:#fff;--DD-BORDER:rgba(0,0,0,0.1);--DD-ERROR:red;--DD-WARN:#fa9d3b;--DD-INFO:#000;--DD-DEBUG:#10aeff;--DD-WARN-BG:#fff3cc;--DD-ERROR-BG:#ffe6e6;}
|
|
15
15
|
#${P} a,.${zt}{cursor:pointer;}
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
@media (max-width:768px) {.${jt}{left:0;}}
|
|
21
21
|
.${Or}{display:flex;height:2rem;border-bottom:1px solid var(--DD-BORDER);}
|
|
22
22
|
.${qt}{padding:0 20px;border-right:1px solid rgba(0, 0, 0, 0.1);line-height:2rem;color: black;}
|
|
23
|
-
.${qt}.${
|
|
23
|
+
.${qt}.${Ae}{background-color:var(--DD-BG-2);}
|
|
24
24
|
.${wr}{height:2rem;display:flex;flex-direction:row;}
|
|
25
25
|
.${Ve}{width:20%;text-align:center;line-height:2rem;border-right:1px solid var(--DD-BORDER);border-bottom:1px solid var(--DD-BORDER);color:black;}
|
|
26
|
-
.${Ve}.${
|
|
26
|
+
.${Ve}.${Ae}{border-bottom:1px solid #1485ee;background-color:var(--DD-BG-2);}
|
|
27
27
|
.${Se}{background-color:#fff;position:absolute;left:0;right:0;top:2rem;bottom:6rem;overflow-y:scroll;overflow-x:hidden;}
|
|
28
28
|
.${Se}.${Gt}{top:4rem;}
|
|
29
29
|
.${ze}{display:flex;display:none;}
|
|
30
30
|
.${Kt}{text-align:center;background-color:var(--DD-BG-0);border-bottom:1px solid var(--DD-BORDER);}
|
|
31
|
-
.${Dr},.${
|
|
31
|
+
.${Dr},.${Er},.${Ar}{text-align:center;border-bottom:1px solid var(--DD-BORDER);}
|
|
32
32
|
.${xe}{border-bottom:1px solid var(--DD-BG-0);padding:5px 10px;overflow-wrap: break-word;}
|
|
33
33
|
.${Lo}{color:var(--DD-ERROR);background-color:var(--DD-ERROR-BG);}
|
|
34
34
|
.${Co}{color:var(--DD-WARN);background-color:var(--DD-WARN-BG);}
|
|
35
|
-
.${
|
|
36
|
-
.${
|
|
35
|
+
.${Ao}{color:var(--DD-INFO);}
|
|
36
|
+
.${Eo}{color:var(--DD-DEBUG);}
|
|
37
37
|
.${Ft}{position:absolute;left:0;right:0;bottom:2rem;height:4rem;border-bottom:1px solid var(--DD-BORDER);display:flex;flex-direction:column;overflow-y:scroll;background-color:var(--DD-BG-1);}
|
|
38
38
|
.${wo}{border-bottom:1px solid var(--DD-BORDER);padding:5px 10px;overflow-wrap: break-word;}
|
|
39
39
|
.${Do}{position:absolute;line-height:2rem;display:flex;flex-direction:row;left:0;right:0;bottom:0;}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.tippy-arrow {width: 16px;height: 16px;color: #333;}
|
|
48
48
|
.tippy-arrow:before {content: "";position: absolute;border-color: transparent;border-style: solid;}.tippy-box[data-placement^=top]>.tippy-arrow:before {bottom: -7px;left: 0;border-width: 8px 8px 0; border-top-color: initial;transform-origin: center top;}
|
|
49
49
|
.tippy-box[data-placement^=top]>.tippy-arrow {bottom: 0;}
|
|
50
|
-
`,document.body.appendChild(this._dialogStyle)}addDialog(){this._dialogNode=this.createDiaLog(),document.body.appendChild(this._dialogNode)}createDiaLog(){var s,c,l,d;this._isMobile=er();let t=document.createElement("template");t.innerHTML=`<div id="${P}" class="${P}"><div class="${zt}">Debug</div><div class="${xr}"></div><div class="${jt}"><a class="${bt}">${Y.BACK_TOP}</a><a class="${yt}">${Y.GO_BOTTOM}</a><div class="${Or}"><a class="${qt} ${
|
|
50
|
+
`,document.body.appendChild(this._dialogStyle)}addDialog(){this._dialogNode=this.createDiaLog(),document.body.appendChild(this._dialogNode)}createDiaLog(){var s,c,l,d;this._isMobile=er();let t=document.createElement("template");t.innerHTML=`<div id="${P}" class="${P}"><div class="${zt}">Debug</div><div class="${xr}"></div><div class="${jt}"><a class="${bt}">${Y.BACK_TOP}</a><a class="${yt}">${Y.GO_BOTTOM}</a><div class="${Or}"><a class="${qt} ${Ae}" data-tab="log">${Y.LOG_BUTTON}</a><a class="${qt}" data-tab="network">${Y.NETWORK_BUTTON}</a></div><div class="${wr}"><a class="${Ve} ${Ae}" data-type="all">All</a><a class="${Ve}" data-type="debug">Debug</a><a class="${Ve}" data-type="info">Info</a><a class="${Ve}" data-type="warn">Warn</a><a class="${Ve}" data-type="error">Error</a></div><div class="${Se} ${Gt}"><div class="${Oo}"></div><div class="${ze}"><div class="${Kt}">${Y.BASIC}</div><div class="${Dr}">${Y.NO_DATA}</div><div class="${Kt}">${Y.UPLINK}</div><div class="${Er}">${Y.NO_DATA}</div><div class="${Kt}">${Y.DOWNLINK}</div><div class="${Ar}">${Y.NO_DATA}</div></div></div><div class="${Ft}"></div><div class="${Do}"><a id="trtc_upload" class="${vt}">${Y.UPLOAD_BUTTON}</a><a id="trtc_export" class="${vt}">${Y.EXPORT_BUTTON}</a><a id="trtc_hide" class="${vt}">${Y.HIDE_BUTTON}</a></div></div></div>`;let r=t.content.firstChild;this._switchNode=r.querySelector(`.${zt}`),(s=this._switchNode)==null||s.addEventListener("click",this.onSwitchClick.bind(this)),this.dragable(this._switchNode),this._maskNode=r.querySelector(`.${xr}`),(c=this._maskNode)==null||c.addEventListener("click",this.onMaskClick.bind(this)),this._pannelNode=r.querySelector(`.${jt}`),(l=r.querySelector(`.${bt}`))==null||l.addEventListener("click",this.onBackTopClick.bind(this)),(d=r.querySelector(`.${yt}`))==null||d.addEventListener("click",this.onGoBottomClick.bind(this)),this._logContentNode=r.querySelector(`.${Oo}`),this._networkContentNode=r.querySelector(`.${ze}`),this._tabNodes=Array.from(r.querySelector(`.${Or}`).children),this._tabNodes.forEach(p=>{p.addEventListener("click",this.onTabClick.bind(this))}),this._toptabNodes=Array.from(r.querySelector(`.${wr}`).children),this._toptabNodes.forEach(p=>{p.addEventListener("click",this.onToptabClick.bind(this))}),this._backTopButton=r.querySelector(`.${bt}`),this._goBottomButton=r.querySelector(`.${yt}`);let o=r.querySelector("#trtc_upload");o==null||o.addEventListener("click",this.onUploadClick.bind(this));let i=r.querySelector("#trtc_export");i==null||i.addEventListener("click",this.onExportClick.bind(this));let a=r.querySelector("#trtc_hide");return a==null||a.addEventListener("click",this.onHideClick.bind(this)),r}deleteDialog(){Cr&&(Cr=!1,this.uninstallEvents(),this._dialogNode&&(document.body.removeChild(this._dialogNode),this._dialogNode=null),this._dialogStyle&&(document.body.removeChild(this._dialogStyle),this._dialogStyle=null))}updateLog(t){var o;this._logList.push(t);let r=document.createElement("div");switch(r.classList.add(xe),t.level){case 4:r.classList.add(Lo);break;case 2:r.classList.add(Ao);break;case 3:r.classList.add(Co);break;case 1:r.classList.add(Eo);break;default:break}r.textContent=t.log,this._showLogType!=="all"&&!r.classList.contains(`${xe}_${this._showLogType}`)&&(r.style.display="none"),(o=this._logContentNode)==null||o.appendChild(r),this.addHelper(r)}onSwitchClick(){if(this._hasMove){this._hasMove=!1;return}this._showDialog?this.hideDialog():(this._isMobile&&(this._maskNode.style.display="block"),this._pannelNode.style.display="block",this._switchNode.style.display="none",this._showDialog=!0)}onTabClick(t){var i,a,s,c,l;let r=t.target;(i=this._tabNodes)==null||i.forEach(d=>{d.classList.remove(Ae)}),r.classList.add(Ae);let o=r.getAttribute("data-tab");o==="log"?((s=(a=this._dialogNode)==null?void 0:a.querySelector(`.${Se}`))==null||s.classList.add(Gt),this._logContentNode.style.display="block",this._networkContentNode.style.display="none",this._goBottomButton.style.display="block",this._backTopButton.style.display="block"):o==="network"&&((l=(c=this._dialogNode)==null?void 0:c.querySelector(`.${Se}`))==null||l.classList.remove(Gt),this._networkContentNode.style.display="block",this._logContentNode.style.display="none",this._backTopButton.style.display="none",this._goBottomButton.style.display="none")}onToptabClick(t){var a,s;let r=t.target;(a=this._toptabNodes)==null||a.forEach(c=>{c.classList.remove(Ae)}),r.classList.add(Ae),this._showLogType=r.getAttribute("data-type");let o=(s=this._logContentNode)==null?void 0:s.querySelectorAll(`.${xe}`),i=`${xe}_${this._showLogType}`;o.forEach(c=>{c.classList.contains(i)||this._showLogType==="all"?c.style.display="block":c.style.display="none"})}onExportClick(){let t=this._logList.reduce((s,c)=>`${s+c.log}
|
|
51
51
|
`,""),r=new Blob([t],{type:"text/plain"}),o=document.createElement("a"),i=URL.createObjectURL(r);o.href=i;let a=`trtc_${this._core.room.sdkAppId===void 0?"EmptySdkAppId":this._core.room.sdkAppId}_${this._core.room.userId===void 0?"EmptyUserId":this._core.room.userId}_${new Date().getTime()}.log`;o.download=a,o.style.display="none",document.body.appendChild(o),o.click(),URL.revokeObjectURL(i),document.body.removeChild(o),this.addInfoToBanner(Ro,z?`\u5BFC\u51FA\u6210\u529F\uFF1A\u65E5\u5FD7\u6587\u4EF6\u540D\u4E3A${a}`:`Export success: The log file name is ${a}`),this._core.kvStatManager.addSuccessEvent({key:592703}),this._log.info("Export success: The log file name is ${fileName}")}addInfoToBanner(t,r){var a;let o=(a=this._dialogNode)==null?void 0:a.querySelector(`.${Ft}`),i=document.createElement("div");i.classList.add(wo),i.innerText=`${t===Ro?"\u{1F7E9}":"\u{1F7E5} "} [${this.getCurrentTime()}] ${r}`,o.appendChild(i),o.scrollTop=o.scrollHeight}async onUploadClick(){var c;if(this.isUploading)return;this.isUploading=!0;let t=(c=this._dialogNode)==null?void 0:c.querySelector("#trtc_upload");t.innerText=z?"\u4E0A\u4F20\u4E2D...":"Uploading...",t==null||t.classList.add(".disable");let r=this._logList.reduce((l,d)=>`${l+d.log}
|
|
52
52
|
`,""),o=new Blob([r],{type:"text/plain"}),i=new FormData,a="trtc.log";i.append("file",o,a),i.append("sdkAppId",`${this._core.room.sdkAppId||"EmptySdkAppId"}`),i.append("userId",`${this._core.room.userId||"EmptyUserId"}`),fetch("https://service.trtc.qcloud.com/api/uploadLogFile",{method:"POST",body:i}).then(l=>l.json()).then(l=>{this.addInfoToBanner(l.type,z?l.message_zh:l.message_en),this.isUploading=!1,this._log.info(l.message_en),this._core.kvStatManager.addSuccessEvent({key:592704})}).catch(()=>{this.addInfoToBanner(Xi,z?"\u4E0A\u4F20\u5931\u8D25\uFF1A\u8BF7\u4F7F\u7528\u672C\u5730\u5BFC\u51FA":"Upload Failed: Please use local export"),this._log.info("Upload Failed: Please use local export"),this._core.kvStatManager.addFailedEvent({key:592704})}).finally(()=>{t.innerText=z?"\u4E0A\u4F20":"Upload",t==null||t.classList.remove(".disable"),this.isUploading=!1})}onHideClick(){this.hideDialog()}onMaskClick(){this.hideDialog()}hideDialog(){this._isMobile&&(this._maskNode.style.display="none"),this._pannelNode.style.display="none",this._switchNode.style.display="block",this._showDialog=!1}onBackTopClick(){var t,r;(r=(t=this._dialogNode)==null?void 0:t.querySelector(`.${Se}`))==null||r.scrollTo(0,0)}onGoBottomClick(){var r;let t=(r=this._dialogNode)==null?void 0:r.querySelector(`.${Se}`);t==null||t.scrollTo(0,t==null?void 0:t.scrollHeight)}dragable(t){var p,S;let r={x:0,y:0,startX:0,startY:0,endX:0,endY:0,isTouchEnd:!1};r.x=((p=this._switchNode)==null?void 0:p.offsetLeft)||50,r.y=((S=this._switchNode)==null?void 0:S.offsetTop)||150;let o=g=>{g.preventDefault(),r.startX=g.pageX,r.startY=g.pageY,document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)},i=g=>{g.cancelable&&g.preventDefault(),this._hasMove=!0;let m=r.x-(g.pageX-r.startX),b=r.y-(g.pageY-r.startY);[m,b]=d(m,b),this._switchNode.style.right=`${m}px`,this._switchNode.style.bottom=`${b}px`,r.endX=m,r.endY=b},a=()=>{r.startX=0,r.startY=0,r.x=r.endX,r.y=r.endY,document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)},s=g=>{r.startX=g.touches[0].pageX,r.startY=g.touches[0].pageY,r.isTouchEnd=!1},c=()=>{r.isTouchEnd&&(r.startX=0,r.startY=0,r.isTouchEnd=!1,r.x=r.endX,r.y=r.endY)},l=g=>{if(g.touches.length<=0)return;let m=g.touches[0].pageX-r.startX,b=g.touches[0].pageY-r.startY,y=Math.floor(r.x-m),T=Math.floor(r.y-b);[y,T]=d(y,T),this._switchNode.style.right=`${y}px`,this._switchNode.style.bottom=`${T}px`,r.endX=y,r.endY=T,r.isTouchEnd=!0,g.cancelable&&g.preventDefault()},d=(g,m)=>{let b=Math.max(document.documentElement.offsetWidth,window.innerWidth),y=Math.max(document.documentElement.offsetHeight,window.innerHeight);return g+this._switchNode.offsetWidth>b&&(g=b-this._switchNode.offsetWidth),m+this._switchNode.offsetHeight>y&&(m=y-this._switchNode.offsetHeight),g<0&&(g=0),m<20&&(m=20),[g,m]};er()?(t.addEventListener("touchstart",s,{passive:!1}),t.addEventListener("touchend",c,{passive:!1}),t.addEventListener("touchmove",l,{passive:!1})):t.addEventListener("mousedown",o)}installEvents(){this._core.innerEmitter.on("264",this.handleLog,this),this._core.room.on("network-quality",this.handleNetworkQuality,this),this._core.room.on("heartbeat-report",this.handleHeartbeatReport,this)}uninstallEvents(){this._core.innerEmitter.off("264",this.handleLog,this),this._core.room.off("network-quality",this.handleNetworkQuality,this),this._core.room.off("heartbeat-report",this.handleHeartbeatReport,this)}handleLog(t){this.updateLog(t.log)}addHelper(t){let r=/((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/g,o=Mr,i=t.innerText;i=i.split(`
|
|
53
53
|
`).map(a=>{if(a=a.replace(/</g,"<").replace(/>/g,">"),a.includes("failed"))return a.includes("on autoplay-failed")?a:`<span class='red' style="background:red; color:#fff;">${a}</span>`;if(a.includes("clientIp:")){let s=a.match(r);return s==null||s.forEach(c=>{a=a.replace(c,`<a href="javascript:void(0);" target=""><span class='ip' style="background:#e1dfdf">${c}</span></a>`)}),a}return a.includes("URL of current page")&&(a=a.replace(/URL of current page: (.+)/,'URL of current page: <a href="$1">$1</a>')),a}).join(`
|