@streamlayer/react 1.24.5 → 1.24.6

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.
Files changed (103) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +26 -26
  3. package/lib/cjs/bet-pack.js +1 -1
  4. package/lib/cjs/feature.js +1 -1
  5. package/lib/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  6. package/lib/cjs/index10.js +1 -1
  7. package/lib/cjs/index11.js +1 -1
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +4 -1
  10. package/lib/cjs/index14.js +1 -4
  11. package/lib/cjs/index15.js +1 -1
  12. package/lib/cjs/index16.js +2 -2
  13. package/lib/cjs/index2.js +1 -1
  14. package/lib/cjs/index4.js +3 -3
  15. package/lib/cjs/index6.js +1 -1
  16. package/lib/cjs/index7.js +1 -1
  17. package/lib/cjs/index9.js +2 -2
  18. package/lib/cjs/insight.js +1 -1
  19. package/lib/cjs/masters2.js +3 -3
  20. package/lib/cjs/notification.js +1 -1
  21. package/lib/cjs/pause-ad.js +1 -1
  22. package/lib/cjs/points.js +1 -1
  23. package/lib/cjs/polymarket.js +1 -1
  24. package/lib/cjs/storage.js +1 -1
  25. package/lib/cjs/useStreamLayerApp2.js +13 -13
  26. package/lib/classic/cjs/Question.js +1 -1
  27. package/lib/classic/cjs/advertisement.js +26 -26
  28. package/lib/classic/cjs/bet-pack.js +3 -3
  29. package/lib/classic/cjs/feature.js +1 -1
  30. package/lib/classic/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  31. package/lib/classic/cjs/index10.js +1 -1
  32. package/lib/classic/cjs/index11.js +1 -1
  33. package/lib/classic/cjs/index12.js +1 -1
  34. package/lib/classic/cjs/index13.js +1 -1
  35. package/lib/classic/cjs/index2.js +2 -2
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index7.js +2 -2
  38. package/lib/classic/cjs/index8.js +1 -1
  39. package/lib/classic/cjs/index9.js +1 -1
  40. package/lib/classic/cjs/insight.js +1 -1
  41. package/lib/classic/cjs/notification2.js +1 -1
  42. package/lib/classic/cjs/pause-ad.js +1 -1
  43. package/lib/classic/cjs/points.js +1 -1
  44. package/lib/classic/cjs/polymarket.js +1 -1
  45. package/lib/classic/cjs/useStreamLayerApp2.js +13 -13
  46. package/lib/classic/es/Question.js +313 -198
  47. package/lib/classic/es/advertisement.js +1988 -1955
  48. package/lib/classic/es/bet-pack.js +12 -13
  49. package/lib/classic/es/feature.js +188 -37
  50. package/lib/{es/index-DvqmgCor.js → classic/es/index-CfSdnrfA.js} +1 -1
  51. package/lib/classic/es/index10.js +309 -2580
  52. package/lib/classic/es/index11.js +2580 -305
  53. package/lib/classic/es/index12.js +12 -12
  54. package/lib/classic/es/index13.js +2 -2
  55. package/lib/classic/es/index2.js +129 -121
  56. package/lib/classic/es/index5.js +0 -1
  57. package/lib/classic/es/index7.js +2 -2
  58. package/lib/classic/es/index8.js +1 -1
  59. package/lib/classic/es/index9.js +1 -1
  60. package/lib/classic/es/insight.js +1 -1
  61. package/lib/classic/es/notification2.js +137 -138
  62. package/lib/classic/es/pause-ad.js +124 -149
  63. package/lib/classic/es/points.js +3 -4
  64. package/lib/classic/es/polymarket.js +1 -1
  65. package/lib/classic/es/useStreamLayerApp2.js +2931 -2877
  66. package/lib/classic/source.css +1 -1
  67. package/lib/dist/cjs/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  68. package/lib/dist/cjs/masters.js +31 -31
  69. package/lib/dist/es/{index-DvqmgCor.js → index-CfSdnrfA.js} +1 -1
  70. package/lib/dist/es/masters.js +7957 -7774
  71. package/lib/dist/index.d.ts +2 -0
  72. package/lib/es/Question.js +66 -65
  73. package/lib/es/advertisement.js +1988 -1955
  74. package/lib/es/bet-pack.js +1 -1
  75. package/lib/es/feature.js +188 -37
  76. package/lib/{classic/es/index-DvqmgCor.js → es/index-CfSdnrfA.js} +1 -1
  77. package/lib/es/index10.js +1 -1
  78. package/lib/es/index11.js +12 -12
  79. package/lib/es/index12.js +366 -2579
  80. package/lib/es/index13.js +789 -234
  81. package/lib/es/index14.js +293 -792
  82. package/lib/es/index15.js +2580 -305
  83. package/lib/es/index16.js +41 -42
  84. package/lib/es/index2.js +279 -271
  85. package/lib/es/index4.js +15 -16
  86. package/lib/es/index6.js +0 -1
  87. package/lib/es/index7.js +1 -1
  88. package/lib/es/index9.js +2 -2
  89. package/lib/es/insight.js +1 -1
  90. package/lib/es/masters2.js +194 -183
  91. package/lib/es/notification.js +22 -23
  92. package/lib/es/pause-ad.js +124 -149
  93. package/lib/es/points.js +20 -21
  94. package/lib/es/polymarket.js +1 -1
  95. package/lib/es/storage.js +1 -1
  96. package/lib/es/useStreamLayerApp2.js +2931 -2877
  97. package/lib/source.css +1 -1
  98. package/lib/style.css +1 -1
  99. package/package.json +72 -53
  100. package/lib/cjs/sl-types.js +0 -1
  101. package/lib/classic/cjs/sl-types.js +0 -1
  102. package/lib/classic/es/sl-types.js +0 -156
  103. package/lib/es/sl-types.js +0 -156
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./index3.js"),c=require("react");require("./sl-types.js");const o=require("./index4.js"),s=require("./hooks-n9ax4LRT.js"),r=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&i.eventBus.emit("interactions",{action:"tap",payload:{}})},u=()=>{const e=s.Y();return c.useEffect(()=>(document?.addEventListener("click",r),()=>{document?.removeEventListener("click",r)}),[]),e?n.jsx(o.D,{sdk:e}):null};exports.BetPackProvider=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./index3.js"),c=require("react");require("./feature.js");const o=require("./index4.js"),s=require("./hooks-n9ax4LRT.js"),r=e=>{const t=e.target;t instanceof Element&&t.getAttribute("data-a")==="intr"&&i.eventBus.emit("interactions",{action:"tap",payload:{}})},u=()=>{const e=s.Y();return c.useEffect(()=>(document?.addEventListener("click",r),()=>{document?.removeEventListener("click",r)}),[]),e?n.jsx(o.D,{sdk:e}):null};exports.BetPackProvider=u;
@@ -1 +1 @@
1
- "use strict";const a=require("pino");require("./sl-types.js");require("nanostores");const s=require("./useStreamLayerApp2.js"),d=a.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:t=>{console.log(t)}}}),o=(t,e)=>d.child({name:t},e);class l extends Event{slEventBus;constructor(e,n){super(e),this.slEventBus=n}}const u=o("event-bus");class c{name;listeners;constructor(e="sl-event-bus"){this.name=e,this.listeners=new Set}emit=(e,n)=>{const r=new l(this.name,{...n,type:e});u.debug(r,"Emitting event"),window.dispatchEvent(r)};listen(e){return window.addEventListener(this.name,e),this.listeners.add(e),()=>{this.off(e)}}off(e){window.removeEventListener(this.name,e),this.listeners.delete(e)}destroy=()=>{this.listeners.forEach(e=>{window.removeEventListener(this.name,e),this.listeners.delete(e)}),this.listeners.clear()}}window.slStore=Object.create(null);var i;(function(t){t.ORGANIZATION="ORGANIZATION",t.STREAM="STREAM"})(i||(i={}));s.SdkOverlayType.BETTING+"",s.SdkOverlayType.GAMES+"",s.SdkOverlayType.PUBLIC_CHAT+"",s.SdkOverlayType.TWITTER+"";exports.FeatureStatus=void 0;(function(t){t.Ready="ready",t.Suspended="suspended"})(exports.FeatureStatus||(exports.FeatureStatus={}));exports.EventBus=c;exports.createLogger=o;
1
+ "use strict";const p=require("react"),L=require("nanostores"),N=require("pino"),g=require("./useStreamLayerApp2.js");var U=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];t.forEach(i=>{(i?i.split(" "):[]).forEach(c=>{if(c.startsWith("atm_")){const[,m]=c.split("_");n[m]=c}else r.push(c)})});const o=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(n[i]);return o.push(...r),o.join(" ")},b=U;function _(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var B=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,E=_(function(e){return B.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),M=e=>e.toUpperCase()===e,q=e=>t=>e.indexOf(t)===-1,C=(e,t)=>{const n={};return Object.keys(e).filter(q(t)).forEach(r=>{n[r]=e[r]}),n};function D(e,t,n){const r=C(t,n);if(!e){const o=typeof E=="function"?{default:E}:E;Object.keys(r).forEach(i=>{o.default(i)||delete r[i]})}return r}var H=(e,t)=>{};function j(e){let t="";return n=>{const r=(i,d)=>{const{as:c=e,class:m=t}=i,v=n.propsAsIs===void 0?!(typeof c=="string"&&c.indexOf("-")===-1&&!M(c[0])):n.propsAsIs,u=D(v,i,["as","class"]);u.ref=d,u.className=n.atomic?b(n.class,u.className||m):b(u.className||m,n.class);const{vars:a}=n;if(a){const s={};for(const l in a){const y=a[l],S=y[0],P=y[1]||"",T=typeof S=="function"?S(i):S;H(T,n.name),s[`--${l}`]=`${T}${P}`}const f=u.style||{},h=Object.keys(f);h.length>0&&h.forEach(l=>{s[l]=f[l]}),u.style=s}return e.__wyw_meta&&e!==c?(u.as=c,p.createElement(e,u)):p.createElement(c,u)},o=p.forwardRef?p.forwardRef(r):(i=>{const d=C(i,["innerRef"]);return r(d,i.innerRef)});return o.displayName=n.name,o.__wyw_meta={className:n.class||t,extends:e},o}}var z=j,k={exports:{}},x={};var O;function V(){if(O)return x;O=1;var e=p;function t(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,d=e.useDebugValue;function c(a,s){var f=s(),h=r({inst:{value:f,getSnapshot:s}}),l=h[0].inst,y=h[1];return i(function(){l.value=f,l.getSnapshot=s,m(l)&&y({inst:l})},[a,f,s]),o(function(){return m(l)&&y({inst:l}),a(function(){m(l)&&y({inst:l})})},[a]),d(f),f}function m(a){var s=a.getSnapshot;a=a.value;try{var f=s();return!n(a,f)}catch{return!0}}function v(a,s){return s()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:c;return x.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,x}var A;function F(){return A||(A=1,k.exports=V()),k.exports}var G=F();const w=(e,t)=>n=>{e.current!==n&&(e.current=n,t())};function W(e,{keys:t,deps:n=[e,t]}={}){const r=p.useRef();r.current=e.get();const o=p.useCallback(d=>(w(r,d)(e.value),t?.length>0?L.listenKeys(e,t,w(r,d)):e.listen(w(r,d))),n),i=()=>r.current;return p.useSyncExternalStore?p.useSyncExternalStore(o,i,i):G.useSyncExternalStore(o,i,i)}const $=W,X=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],K=p.useTransition||X,Y=N.pino({level:"trace",enabled:typeof window<"u"&&!!window.localStorage.getItem("SL_DEBUG"),browser:{write:e=>{console.log(e)}}}),I=(e,t)=>Y.child({name:e},t);class Q extends Event{slEventBus;constructor(t,n){super(t),this.slEventBus=n}}const Z=I("event-bus");class J{name;listeners;constructor(t="sl-event-bus"){this.name=t,this.listeners=new Set}emit=(t,n)=>{const r=new Q(this.name,{...n,type:t});Z.debug(r,"Emitting event"),window.dispatchEvent(r)};listen(t){return window.addEventListener(this.name,t),this.listeners.add(t),()=>{this.off(t)}}off(t){window.removeEventListener(this.name,t),this.listeners.delete(t)}destroy=()=>{this.listeners.forEach(t=>{window.removeEventListener(this.name,t),this.listeners.delete(t)}),this.listeners.clear()}}exports.NotificationType=void 0;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(exports.NotificationType||(exports.NotificationType={}));window.slStore=Object.create(null);var R;(function(e){e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM"})(R||(R={}));g.SdkOverlayType.BETTING+"",g.SdkOverlayType.GAMES+"",g.SdkOverlayType.PUBLIC_CHAT+"",g.SdkOverlayType.TWITTER+"";exports.FeatureStatus=void 0;(function(e){e.Ready="ready",e.Suspended="suspended"})(exports.FeatureStatus||(exports.FeatureStatus={}));exports.EventBus=J;exports.createLogger=I;exports.cx_default=b;exports.styled_default=z;exports.useStore=$;exports.useTransition=K;
@@ -2,4 +2,4 @@
2
2
  `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),A.entityMap=A.HTML_ENTITIES})(Je)),Je}var ke={},rr;function cr(){if(rr)return ke;rr=1;var A=Ie().NAMESPACE,S=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=new RegExp("[\\-\\.0-9"+S.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),X=new RegExp("^"+S.source+G.source+"*(?::"+S.source+G.source+"*)?$"),V=0,g=1,O=2,H=3,M=4,q=5,k=6,C=7;function _(a,i){this.message=a,this.locator=i,Error.captureStackTrace&&Error.captureStackTrace(this,_)}_.prototype=new Error,_.prototype.name=_.name;function J(){}J.prototype={parse:function(a,i,c){var l=this.domBuilder;l.startDocument(),B(i,i={}),ue(a,i,c,l,this.errorHandler),l.endDocument()}};function ue(a,i,c,l,p){function v(R){if(R>65535){R-=65536;var P=55296+(R>>10),we=56320+(R&1023);return String.fromCharCode(P,we)}else return String.fromCharCode(R)}function m(R){var P=R.slice(1,-1);return Object.hasOwnProperty.call(c,P)?c[P]:P.charAt(0)==="#"?v(parseInt(P.substr(1).replace("x","0x"))):(p.error("entity not found:"+R),R)}function w(R){if(R>F){var P=a.substring(F,R).replace(/&#?\w+;/g,m);u&&E(F),l.characters(P,0,R-F),F=R}}function E(R,P){for(;R>=h&&(P=U.exec(a));)f=P.index,h=f+P[0].length,u.lineNumber++;u.columnNumber=R-f+1}for(var f=0,h=0,U=/.*(?:\r\n?|\n)|.*$/g,u=l.locator,Y=[{currentNSMap:i}],ne={},F=0;;){try{var z=a.indexOf("<",F);if(z<0){if(!a.substr(F).match(/^\s*$/)){var Ee=l.doc,ge=Ee.createTextNode(a.substr(F));Ee.appendChild(ge),l.currentElement=ge}return}switch(z>F&&w(z),a.charAt(z+1)){case"/":var j=a.indexOf(">",z+3),Q=a.substring(z+2,j).replace(/[ \t\n\r]+$/g,""),ee=Y.pop();j<0?(Q=a.substring(z+2).replace(/[\s<].*/,""),p.error("end tag name: "+Q+" is not complete:"+ee.tagName),j=z+1+Q.length):Q.match(/\s</)&&(Q=Q.replace(/[\s<].*/,""),p.error("end tag name: "+Q+" maybe not complete"),j=z+1+Q.length);var Te=ee.localNSMap,K=ee.tagName==Q,Z=K||ee.tagName&&ee.tagName.toLowerCase()==Q.toLowerCase();if(Z){if(l.endElement(ee.uri,ee.localName,Q),Te)for(var be in Te)Object.prototype.hasOwnProperty.call(Te,be)&&l.endPrefixMapping(be);K||p.fatalError("end tag name: "+Q+" is not match the current start tagName:"+ee.tagName)}else Y.push(ee);j++;break;case"?":u&&E(z),j=W(a,z,l);break;case"!":u&&E(z),j=I(a,z,l,p);break;default:u&&E(z);var $=new b,ve=Y[Y.length-1].currentNSMap,j=s(a,z,$,ve,m,p),Le=$.length;if(!$.closed&&y(a,j,$.tagName,ne)&&($.closed=!0,c.nbsp||p.warning("unclosed xml attribute")),u&&Le){for(var Ae=re(u,{}),se=0;se<Le;se++){var le=$[se];E(le.offset),le.locator=re(u,{})}l.locator=Ae,N($,l,ve)&&Y.push($),l.locator=u}else N($,l,ve)&&Y.push($);A.isHTML($.uri)&&!$.closed?j=T(a,j,$.tagName,m,l):j++}}catch(R){if(R instanceof _)throw R;p.error("element parse error: "+R),j=-1}j>F?F=j:w(Math.max(z,F)+1)}}function re(a,i){return i.lineNumber=a.lineNumber,i.columnNumber=a.columnNumber,i}function s(a,i,c,l,p,v){function m(u,Y,ne){c.attributeNames.hasOwnProperty(u)&&v.fatalError("Attribute "+u+" redefined"),c.addValue(u,Y.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,p),ne)}for(var w,E,f=++i,h=V;;){var U=a.charAt(f);switch(U){case"=":if(h===g)w=a.slice(i,f),h=H;else if(h===O)h=H;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(h===H||h===g)if(h===g&&(v.warning('attribute value must after "="'),w=a.slice(i,f)),i=f+1,f=a.indexOf(U,i),f>0)E=a.slice(i,f),m(w,E,i-1),h=q;else throw new Error("attribute value no end '"+U+"' match");else if(h==M)E=a.slice(i,f),m(w,E,i),v.warning('attribute "'+w+'" missed start quot('+U+")!!"),i=f+1,h=q;else throw new Error('attribute value must after "="');break;case"/":switch(h){case V:c.setTagName(a.slice(i,f));case q:case k:case C:h=C,c.closed=!0;case M:case g:break;case O:c.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return v.error("unexpected end of input"),h==V&&c.setTagName(a.slice(i,f)),f;case">":switch(h){case V:c.setTagName(a.slice(i,f));case q:case k:case C:break;case M:case g:E=a.slice(i,f),E.slice(-1)==="/"&&(c.closed=!0,E=E.slice(0,-1));case O:h===O&&(E=w),h==M?(v.warning('attribute "'+E+'" missed quot(")!'),m(w,E,i)):((!A.isHTML(l[""])||!E.match(/^(?:disabled|checked|selected)$/i))&&v.warning('attribute "'+E+'" missed value!! "'+E+'" instead!!'),m(E,E,i));break;case H:throw new Error("attribute value missed!!")}return f;case"€":U=" ";default:if(U<=" ")switch(h){case V:c.setTagName(a.slice(i,f)),h=k;break;case g:w=a.slice(i,f),h=O;break;case M:var E=a.slice(i,f);v.warning('attribute "'+E+'" missed quot(")!!'),m(w,E,i);case q:h=k;break}else switch(h){case O:c.tagName,(!A.isHTML(l[""])||!w.match(/^(?:disabled|checked|selected)$/i))&&v.warning('attribute "'+w+'" missed value!! "'+w+'" instead2!!'),m(w,w,i),i=f,h=g;break;case q:v.warning('attribute space is required"'+w+'"!!');case k:h=g,i=f;break;case H:h=M,i=f;break;case C:throw new Error("elements closed character '/' and '>' must be connected to")}}f++}}function N(a,i,c){for(var l=a.tagName,p=null,v=a.length;v--;){var m=a[v],w=m.qName,E=m.value,u=w.indexOf(":");if(u>0)var f=m.prefix=w.slice(0,u),h=w.slice(u+1),U=f==="xmlns"&&h;else h=w,f=null,U=w==="xmlns"&&"";m.localName=h,U!==!1&&(p==null&&(p={},B(c,c={})),c[U]=p[U]=E,m.uri=A.XMLNS,i.startPrefixMapping(U,E))}for(var v=a.length;v--;){m=a[v];var f=m.prefix;f&&(f==="xml"&&(m.uri=A.XML),f!=="xmlns"&&(m.uri=c[f||""]))}var u=l.indexOf(":");u>0?(f=a.prefix=l.slice(0,u),h=a.localName=l.slice(u+1)):(f=null,h=a.localName=l);var Y=a.uri=c[f||""];if(i.startElement(Y,h,l,a),a.closed){if(i.endElement(Y,h,l),p)for(f in p)Object.prototype.hasOwnProperty.call(p,f)&&i.endPrefixMapping(f)}else return a.currentNSMap=c,a.localNSMap=p,!0}function T(a,i,c,l,p){if(/^(?:script|textarea)$/i.test(c)){var v=a.indexOf("</"+c+">",i),m=a.substring(i+1,v);if(/[&<]/.test(m))return/^script$/i.test(c)?(p.characters(m,0,m.length),v):(m=m.replace(/&#?\w+;/g,l),p.characters(m,0,m.length),v)}return i+1}function y(a,i,c,l){var p=l[c];return p==null&&(p=a.lastIndexOf("</"+c+">"),p<i&&(p=a.lastIndexOf("</"+c)),l[c]=p),p<i}function B(a,i){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(i[c]=a[c])}function I(a,i,c,l){var p=a.charAt(i+2);switch(p){case"-":if(a.charAt(i+3)==="-"){var v=a.indexOf("-->",i+4);return v>i?(c.comment(a,i+4,v-i-4),v+3):(l.error("Unclosed comment"),-1)}else return-1;default:if(a.substr(i+3,6)=="CDATA["){var v=a.indexOf("]]>",i+9);return c.startCDATA(),c.characters(a,i+9,v-i-9),c.endCDATA(),v+3}var m=D(a,i),w=m.length;if(w>1&&/!doctype/i.test(m[0][0])){var E=m[1][0],f=!1,h=!1;w>3&&(/^public$/i.test(m[2][0])?(f=m[3][0],h=w>4&&m[4][0]):/^system$/i.test(m[2][0])&&(h=m[3][0]));var U=m[w-1];return c.startDTD(E,f,h),c.endDTD(),U.index+U[0].length}}return-1}function W(a,i,c){var l=a.indexOf("?>",i);if(l){var p=a.substring(i,l).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return p?(p[0].length,c.processingInstruction(p[1],p[2]),l+2):-1}return-1}function b(){this.attributeNames={}}b.prototype={setTagName:function(a){if(!X.test(a))throw new Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,i,c){if(!X.test(a))throw new Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:i,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}};function D(a,i){var c,l=[],p=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(p.lastIndex=i,p.exec(a);c=p.exec(a);)if(l.push(c),c[1])return l}return ke.XMLReader=J,ke.ParseError=_,ke}var tr;function ur(){if(tr)return Se;tr=1;var A=Ie(),S=ar(),G=lr(),X=cr(),V=S.DOMImplementation,g=A.NAMESPACE,O=X.ParseError,H=X.XMLReader;function M(s){return s.replace(/\r[\n\u0085]/g,`
3
3
  `).replace(/[\r\u0085\u2028]/g,`
4
4
  `)}function q(s){this.options=s||{locator:{}}}q.prototype.parseFromString=function(s,N){var T=this.options,y=new H,B=T.domBuilder||new C,I=T.errorHandler,W=T.locator,b=T.xmlns||{},D=/\/x?html?$/.test(N),a=D?G.HTML_ENTITIES:G.XML_ENTITIES;W&&B.setDocumentLocator(W),y.errorHandler=k(I,B,W),y.domBuilder=T.domBuilder||B,D&&(b[""]=g.HTML),b.xml=b.xml||g.XML;var i=T.normalizeLineEndings||M;return s&&typeof s=="string"?y.parse(i(s),b,a):y.errorHandler.error("invalid doc source"),B.doc};function k(s,N,T){if(!s){if(N instanceof C)return N;s=N}var y={},B=s instanceof Function;T=T||{};function I(W){var b=s[W];!b&&B&&(b=s.length==2?function(D){s(W,D)}:s),y[W]=b&&function(D){b("[xmldom "+W+"] "+D+J(T))}||function(){}}return I("warning"),I("error"),I("fatalError"),y}function C(){this.cdata=!1}function _(s,N){N.lineNumber=s.lineNumber,N.columnNumber=s.columnNumber}C.prototype={startDocument:function(){this.doc=new V().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(s,N,T,y){var B=this.doc,I=B.createElementNS(s,T||N),W=y.length;re(this,I),this.currentElement=I,this.locator&&_(this.locator,I);for(var b=0;b<W;b++){var s=y.getURI(b),D=y.getValue(b),T=y.getQName(b),a=B.createAttributeNS(s,T);this.locator&&_(y.getLocator(b),a),a.value=a.nodeValue=D,I.setAttributeNode(a)}},endElement:function(s,N,T){var y=this.currentElement;y.tagName,this.currentElement=y.parentNode},startPrefixMapping:function(s,N){},endPrefixMapping:function(s){},processingInstruction:function(s,N){var T=this.doc.createProcessingInstruction(s,N);this.locator&&_(this.locator,T),re(this,T)},ignorableWhitespace:function(s,N,T){},characters:function(s,N,T){if(s=ue.apply(this,arguments),s){if(this.cdata)var y=this.doc.createCDATASection(s);else var y=this.doc.createTextNode(s);this.currentElement?this.currentElement.appendChild(y):/^\s*$/.test(s)&&this.doc.appendChild(y),this.locator&&_(this.locator,y)}},skippedEntity:function(s){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(s){(this.locator=s)&&(s.lineNumber=0)},comment:function(s,N,T){s=ue.apply(this,arguments);var y=this.doc.createComment(s);this.locator&&_(this.locator,y),re(this,y)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(s,N,T){var y=this.doc.implementation;if(y&&y.createDocumentType){var B=y.createDocumentType(s,N,T);this.locator&&_(this.locator,B),re(this,B),this.doc.doctype=B}},warning:function(s){console.warn("[xmldom warning] "+s,J(this.locator))},error:function(s){console.error("[xmldom error] "+s,J(this.locator))},fatalError:function(s){throw new O(s,this.locator)}};function J(s){if(s)return`
5
- @`+(s.systemId||"")+"#[line:"+s.lineNumber+",col:"+s.columnNumber+"]"}function ue(s,N,T){return typeof s=="string"?s.substr(N,T):s.length>=N+T||N?new java.lang.String(s,N,T)+"":s}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(s){C.prototype[s]=function(){return null}});function re(s,N){s.currentElement?s.currentElement.appendChild(N):s.doc.appendChild(N)}return Se.__DOMHandler=C,Se.normalizeLineEndings=M,Se.DOMParser=q,Se}var nr;function pr(){if(nr)return xe;nr=1;var A=ar();return xe.DOMImplementation=A.DOMImplementation,xe.XMLSerializer=A.XMLSerializer,xe.DOMParser=ur().DOMParser,xe}var or=pr();const dr=ir.ra(or),fr=sr({__proto__:null,default:dr},[or]);exports.i=fr;
5
+ @`+(s.systemId||"")+"#[line:"+s.lineNumber+",col:"+s.columnNumber+"]"}function ue(s,N,T){return typeof s=="string"?s.substr(N,T):s.length>=N+T||N?new java.lang.String(s,N,T)+"":s}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(s){C.prototype[s]=function(){return null}});function re(s,N){s.currentElement?s.currentElement.appendChild(N):s.doc.appendChild(N)}return Se.__DOMHandler=C,Se.normalizeLineEndings=M,Se.DOMParser=q,Se}var nr;function pr(){if(nr)return xe;nr=1;var A=ar();return xe.DOMImplementation=A.DOMImplementation,xe.XMLSerializer=A.XMLSerializer,xe.DOMParser=ur().DOMParser,xe}var or=pr();const dr=ir.ua(or),fr=sr({__proto__:null,default:dr},[or]);exports.i=fr;
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),l=require("./sl-types.js"),e=l.styled_default("div")({name:"Container",class:"cqg02m",propsAsIs:!1}),c=({children:s,style:t,loading:i})=>i?n.jsx(e,{style:t,children:s}):s;exports.e=e;exports.i=c;
1
+ "use strict";const n=require("react/jsx-runtime"),c=require("./feature.js"),s=c.styled_default("div")({name:"Container",class:"cqg02m",propsAsIs:!1}),l=({children:e,style:t,loading:i})=>i?n.jsx(s,{style:t,children:e}):e;exports.e=s;exports.i=l;
@@ -1 +1 @@
1
- "use strict";const t=require("./sl-types.js"),a=require("./useStreamLayerApp2.js"),e=require("react/jsx-runtime"),I=require("react"),v=require("./index15.js"),h=require("./index8.js"),U={[a.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.UNSET]:void 0,[a.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[a.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[a.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},_={[a.QuestionType.TWEET]:"Learn more",[a.QuestionType.FACTOID]:"Learn more",[a.QuestionType.POLL]:"Answer",[a.QuestionType.TRIVIA]:"Answer",[a.QuestionType.PREDICTION]:"Answer",[a.QuestionType.PROMOTION]:"",[a.QuestionType.UNSET]:""},$=i=>i.split(/\s+/).map(n=>n[0]).join("").toUpperCase(),w=i=>i?i.toLocaleString("en-US"):"0",L=i=>{const n=new Date(i);if(!n)return"";const o=new Date,r=Math.floor(o.getTime()-n.getTime());return r<6e4?`${Math.floor(r/1e3)}s`:r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:n.getFullYear()===o.getFullYear()?`${n.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:`${n.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})}`},D=t.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),Q=t.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),S=t.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),H=()=>h.B1,O=t.styled_default(H())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),E=t.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),b=t.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),q=t.styled_default("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),j=({image:i,name:n,userName:o,verified:r,createdTweet:m})=>{const c=m&&L(m);return e.jsxs(D,{children:[i&&e.jsxs(Q,{children:[e.jsx(S,{className:"SL_AccountImage",src:i}),e.jsx(O,{name:"twitter"})]}),e.jsxs(E,{children:[n&&e.jsxs(b,{className:"SL_TweetAccountName",children:[n," ",r&&e.jsx(h.B1,{name:"icon-twitter-verified"})]}),o&&e.jsxs(q,{className:"SL_TweetAccountUserName",children:["@",o," ",c&&`・ ${c}`]})]})]})},C=t.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),R=t.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),P=t.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),d=t.styled_default("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),g=t.styled_default("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),T=t.styled_default("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),F=()=>T,l=t.styled_default(F())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),M=()=>T,f=t.styled_default(M())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),V=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),A=i=>i?.replace(V,""),z=I.memo(({image:i,body:n,muted:o,account:r,accountVerified:m,tweet:c,isDetail:y,controlVideo:N})=>{const s=c?.meta?.extendedEntities?.media,p=s?.find(({type:u})=>u==="photo"),x=I.useMemo(()=>s?.[0]?.videoInfo?.variants?.findLast(({contentType:u})=>u==="video/mp4")?.url,[s]);return e.jsxs(C,{children:[e.jsxs(R,{children:[e.jsx(j,{image:i,name:c?.meta?.accountName,userName:r,verified:m,createdTweet:c?.date}),e.jsx(P,{children:A(n)}),!y&&p&&e.jsx(d,{children:e.jsx(l,{src:s?.[0].mediaUrlHttps})}),y&&p&&e.jsxs(e.Fragment,{children:[s?.length===1&&e.jsx(d,{children:e.jsx(l,{src:s[0].mediaUrlHttps})}),s?.length===2&&e.jsxs(d,{children:[e.jsx(f,{src:s[0].mediaUrlHttps}),e.jsx(f,{src:s[1].mediaUrlHttps})]}),s?.length===3&&e.jsxs(d,{children:[e.jsx(f,{src:s[0].mediaUrlHttps}),e.jsxs(g,{children:[e.jsx(l,{src:s[1].mediaUrlHttps}),e.jsx(l,{src:s[2].mediaUrlHttps})]})]}),s?.length===4&&e.jsxs(d,{children:[e.jsxs(g,{children:[e.jsx(l,{src:s[0].mediaUrlHttps}),e.jsx(l,{src:s[1].mediaUrlHttps})]}),e.jsxs(g,{children:[e.jsx(l,{src:s[2].mediaUrlHttps}),e.jsx(l,{src:s[3].mediaUrlHttps})]})]})]})]}),!p&&(s?.[0]?.type==="video"||s?.[0]?.type==="animated_gif")&&x&&e.jsx(v.Fe,{muted:o,source:x,poster:s[0].mediaUrlHttps,controlVideo:N})]})});exports.D=j;exports.I=$;exports.N=z;exports.e=U;exports.j=A;exports.o=_;exports.s=w;
1
+ "use strict";const t=require("./feature.js"),a=require("./useStreamLayerApp2.js"),e=require("react/jsx-runtime"),I=require("react"),v=require("./index14.js"),h=require("./index8.js"),U={[a.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.UNSET]:void 0,[a.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[a.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[a.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[a.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},_={[a.QuestionType.TWEET]:"Learn more",[a.QuestionType.FACTOID]:"Learn more",[a.QuestionType.POLL]:"Answer",[a.QuestionType.TRIVIA]:"Answer",[a.QuestionType.PREDICTION]:"Answer",[a.QuestionType.PROMOTION]:"",[a.QuestionType.UNSET]:""},$=i=>i.split(/\s+/).map(n=>n[0]).join("").toUpperCase(),w=i=>i?i.toLocaleString("en-US"):"0",L=i=>{const n=new Date(i);if(!n)return"";const o=new Date,r=Math.floor(o.getTime()-n.getTime());return r<6e4?`${Math.floor(r/1e3)}s`:r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:n.getFullYear()===o.getFullYear()?`${n.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:`${n.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})}`},D=t.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),Q=t.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),S=t.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),H=()=>h.B1,O=t.styled_default(H())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),E=t.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),b=t.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),q=t.styled_default("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),j=({image:i,name:n,userName:o,verified:r,createdTweet:m})=>{const c=m&&L(m);return e.jsxs(D,{children:[i&&e.jsxs(Q,{children:[e.jsx(S,{className:"SL_AccountImage",src:i}),e.jsx(O,{name:"twitter"})]}),e.jsxs(E,{children:[n&&e.jsxs(b,{className:"SL_TweetAccountName",children:[n," ",r&&e.jsx(h.B1,{name:"icon-twitter-verified"})]}),o&&e.jsxs(q,{className:"SL_TweetAccountUserName",children:["@",o," ",c&&`・ ${c}`]})]})]})},C=t.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),R=t.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),P=t.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),d=t.styled_default("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),g=t.styled_default("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),T=t.styled_default("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),M=()=>T,l=t.styled_default(M())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),F=()=>T,f=t.styled_default(F())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),V=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),A=i=>i?.replace(V,""),z=I.memo(({image:i,body:n,muted:o,account:r,accountVerified:m,tweet:c,isDetail:x,controlVideo:N})=>{const s=c?.meta?.extendedEntities?.media,p=s?.find(({type:u})=>u==="photo"),y=I.useMemo(()=>s?.[0]?.videoInfo?.variants?.findLast(({contentType:u})=>u==="video/mp4")?.url,[s]);return e.jsxs(C,{children:[e.jsxs(R,{children:[e.jsx(j,{image:i,name:c?.meta?.accountName,userName:r,verified:m,createdTweet:c?.date}),e.jsx(P,{children:A(n)}),!x&&p&&e.jsx(d,{children:e.jsx(l,{src:s?.[0].mediaUrlHttps})}),x&&p&&e.jsxs(e.Fragment,{children:[s?.length===1&&e.jsx(d,{children:e.jsx(l,{src:s[0].mediaUrlHttps})}),s?.length===2&&e.jsxs(d,{children:[e.jsx(f,{src:s[0].mediaUrlHttps}),e.jsx(f,{src:s[1].mediaUrlHttps})]}),s?.length===3&&e.jsxs(d,{children:[e.jsx(f,{src:s[0].mediaUrlHttps}),e.jsxs(g,{children:[e.jsx(l,{src:s[1].mediaUrlHttps}),e.jsx(l,{src:s[2].mediaUrlHttps})]})]}),s?.length===4&&e.jsxs(d,{children:[e.jsxs(g,{children:[e.jsx(l,{src:s[0].mediaUrlHttps}),e.jsx(l,{src:s[1].mediaUrlHttps})]}),e.jsxs(g,{children:[e.jsx(l,{src:s[2].mediaUrlHttps}),e.jsx(l,{src:s[3].mediaUrlHttps})]})]})]})]}),!p&&(s?.[0]?.type==="video"||s?.[0]?.type==="animated_gif")&&y&&e.jsx(v.Ve,{muted:o,source:y,poster:s[0].mediaUrlHttps,controlVideo:N})]})});exports.D=j;exports.I=$;exports.N=z;exports.e=U;exports.j=A;exports.o=_;exports.s=w;
@@ -1 +1 @@
1
- "use strict";const wu=require("react");var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Au(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Tu(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var Ke={exports:{}},Ne,ra;function le(){if(ra)return Ne;ra=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ne=r,Ne}var Be,ta;function nu(){if(ta)return Be;ta=1;var r=typeof me=="object"&&me&&me.Object===Object&&me;return Be=r,Be}var je,na;function ie(){if(na)return je;na=1;var r=nu(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return je=t,je}var ke,aa;function xu(){if(aa)return ke;aa=1;var r=ie(),e=function(){return r.Date.now()};return ke=e,ke}var He,ia;function Ou(){if(ia)return He;ia=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return He=e,He}var Ge,sa;function Su(){if(sa)return Ge;sa=1;var r=Ou(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return Ge=t,Ge}var Ue,ua;function Fe(){if(ua)return Ue;ua=1;var r=ie(),e=r.Symbol;return Ue=e,Ue}var ze,oa;function Ku(){if(oa)return ze;oa=1;var r=Fe(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,a=r?r.toStringTag:void 0;function i(s){var o=t.call(s,a),l=s[a];try{s[a]=void 0;var h=!0}catch{}var m=n.call(s);return h&&(o?s[a]=l:delete s[a]),m}return ze=i,ze}var We,ca;function Eu(){if(ca)return We;ca=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return We=t,We}var $e,fa;function Re(){if(fa)return $e;fa=1;var r=Fe(),e=Ku(),t=Eu(),n="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function s(o){return o==null?o===void 0?a:n:i&&i in Object(o)?e(o):t(o)}return $e=s,$e}var Ye,la;function he(){if(la)return Ye;la=1;function r(e){return e!=null&&typeof e=="object"}return Ye=r,Ye}var Je,da;function we(){if(da)return Je;da=1;var r=Re(),e=he(),t="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&r(a)==t}return Je=n,Je}var Xe,ha;function Pu(){if(ha)return Xe;ha=1;var r=Su(),e=le(),t=we(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt;function l(h){if(typeof h=="number")return h;if(t(h))return n;if(e(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=e(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=r(h);var _=i.test(h);return _||s.test(h)?o(h.slice(2),_?2:8):a.test(h)?n:+h}return Xe=l,Xe}var Ze,va;function au(){if(va)return Ze;va=1;var r=le(),e=xu(),t=Pu(),n="Expected a function",a=Math.max,i=Math.min;function s(o,l,h){var m,_,S,E,L,K,b=0,d=!1,p=!1,q=!0;if(typeof o!="function")throw new TypeError(n);l=t(l)||0,r(h)&&(d=!!h.leading,p="maxWait"in h,S=p?a(t(h.maxWait)||0,l):S,q="trailing"in h?!!h.trailing:q);function g(A){var U=m,J=_;return m=_=void 0,b=A,E=o.apply(J,U),E}function P(A){return b=A,L=setTimeout(N,l),d?g(A):E}function x(A){var U=A-K,J=A-b,te=l-U;return p?i(te,S-J):te}function F(A){var U=A-K,J=A-b;return K===void 0||U>=l||U<0||p&&J>=S}function N(){var A=e();if(F(A))return R(A);L=setTimeout(N,x(A))}function R(A){return L=void 0,q&&m?g(A):(m=_=void 0,E)}function O(){L!==void 0&&clearTimeout(L),b=0,m=K=_=L=void 0}function M(){return L===void 0?E:R(e())}function H(){var A=e(),U=F(A);if(m=arguments,_=this,K=A,U){if(L===void 0)return P(K);if(p)return clearTimeout(L),L=setTimeout(N,l),g(K)}return L===void 0&&(L=setTimeout(N,l)),E}return H.cancel=O,H.flush=M,H}return Ze=s,Ze}var Qe,pa;function iu(){if(pa)return Qe;pa=1;var r=Re(),e=le(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(o){if(!e(o))return!1;var l=r(o);return l==n||l==a||l==t||l==i}return Qe=s,Qe}var Ve,ya;function Mu(){if(ya)return Ve;ya=1;var r=ie(),e=r["__core-js_shared__"];return Ve=e,Ve}var er,ga;function Iu(){if(ga)return er;ga=1;var r=Mu(),e=(function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!e&&e in n}return er=t,er}var rr,_a;function su(){if(_a)return rr;_a=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return rr=t,rr}var tr,ba;function Du(){if(ba)return tr;ba=1;var r=iu(),e=Iu(),t=le(),n=su(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,l=s.toString,h=o.hasOwnProperty,m=RegExp("^"+l.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(S){if(!t(S)||e(S))return!1;var E=r(S)?m:i;return E.test(n(S))}return tr=_,tr}var nr,ma;function Lu(){if(ma)return nr;ma=1;function r(e,t){return e?.[t]}return nr=r,nr}var ar,qa;function de(){if(qa)return ar;qa=1;var r=Du(),e=Lu();function t(n,a){var i=e(n,a);return r(i)?i:void 0}return ar=t,ar}var ir,Ca;function Ee(){if(Ca)return ir;Ca=1;var r=de(),e=r(Object,"create");return ir=e,ir}var sr,Fa;function Nu(){if(Fa)return sr;Fa=1;var r=Ee();function e(){this.__data__=r?r(null):{},this.size=0}return sr=e,sr}var ur,Ra;function Bu(){if(Ra)return ur;Ra=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return ur=r,ur}var or,wa;function ju(){if(wa)return or;wa=1;var r=Ee(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var s=this.__data__;if(r){var o=s[i];return o===e?void 0:o}return n.call(s,i)?s[i]:void 0}return or=a,or}var cr,Aa;function ku(){if(Aa)return cr;Aa=1;var r=Ee(),e=Object.prototype,t=e.hasOwnProperty;function n(a){var i=this.__data__;return r?i[a]!==void 0:t.call(i,a)}return cr=n,cr}var fr,Ta;function Hu(){if(Ta)return fr;Ta=1;var r=Ee(),e="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=r&&a===void 0?e:a,this}return fr=t,fr}var lr,xa;function Gu(){if(xa)return lr;xa=1;var r=Nu(),e=Bu(),t=ju(),n=ku(),a=Hu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,lr=i,lr}var dr,Oa;function Uu(){if(Oa)return dr;Oa=1;function r(){this.__data__=[],this.size=0}return dr=r,dr}var hr,Sa;function Nn(){if(Sa)return hr;Sa=1;function r(e,t){return e===t||e!==e&&t!==t}return hr=r,hr}var vr,Ka;function Pe(){if(Ka)return vr;Ka=1;var r=Nn();function e(t,n){for(var a=t.length;a--;)if(r(t[a][0],n))return a;return-1}return vr=e,vr}var pr,Ea;function zu(){if(Ea)return pr;Ea=1;var r=Pe(),e=Array.prototype,t=e.splice;function n(a){var i=this.__data__,s=r(i,a);if(s<0)return!1;var o=i.length-1;return s==o?i.pop():t.call(i,s,1),--this.size,!0}return pr=n,pr}var yr,Pa;function Wu(){if(Pa)return yr;Pa=1;var r=Pe();function e(t){var n=this.__data__,a=r(n,t);return a<0?void 0:n[a][1]}return yr=e,yr}var gr,Ma;function $u(){if(Ma)return gr;Ma=1;var r=Pe();function e(t){return r(this.__data__,t)>-1}return gr=e,gr}var _r,Ia;function Yu(){if(Ia)return _r;Ia=1;var r=Pe();function e(t,n){var a=this.__data__,i=r(a,t);return i<0?(++this.size,a.push([t,n])):a[i][1]=n,this}return _r=e,_r}var br,Da;function Me(){if(Da)return br;Da=1;var r=Uu(),e=zu(),t=Wu(),n=$u(),a=Yu();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var mr,La;function Bn(){if(La)return mr;La=1;var r=de(),e=ie(),t=r(e,"Map");return mr=t,mr}var qr,Na;function Ju(){if(Na)return qr;Na=1;var r=Gu(),e=Me(),t=Bn();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return qr=n,qr}var Cr,Ba;function Xu(){if(Ba)return Cr;Ba=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Cr=r,Cr}var Fr,ja;function Ie(){if(ja)return Fr;ja=1;var r=Xu();function e(t,n){var a=t.__data__;return r(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Fr=e,Fr}var Rr,ka;function Zu(){if(ka)return Rr;ka=1;var r=Ie();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Rr=e,Rr}var wr,Ha;function Qu(){if(Ha)return wr;Ha=1;var r=Ie();function e(t){return r(this,t).get(t)}return wr=e,wr}var Ar,Ga;function Vu(){if(Ga)return Ar;Ga=1;var r=Ie();function e(t){return r(this,t).has(t)}return Ar=e,Ar}var Tr,Ua;function eo(){if(Ua)return Tr;Ua=1;var r=Ie();function e(t,n){var a=r(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return Tr=e,Tr}var xr,za;function jn(){if(za)return xr;za=1;var r=Ju(),e=Zu(),t=Qu(),n=Vu(),a=eo();function i(s){var o=-1,l=s==null?0:s.length;for(this.clear();++o<l;){var h=s[o];this.set(h[0],h[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,xr=i,xr}var Or,Wa;function ro(){if(Wa)return Or;Wa=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return Or=e,Or}var Sr,$a;function to(){if($a)return Sr;$a=1;function r(e){return this.__data__.has(e)}return Sr=r,Sr}var Kr,Ya;function uu(){if(Ya)return Kr;Ya=1;var r=jn(),e=ro(),t=to();function n(a){var i=-1,s=a==null?0:a.length;for(this.__data__=new r;++i<s;)this.add(a[i])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,Kr=n,Kr}var Er,Ja;function no(){if(Ja)return Er;Ja=1;function r(e,t,n,a){for(var i=e.length,s=n+(a?1:-1);a?s--:++s<i;)if(t(e[s],s,e))return s;return-1}return Er=r,Er}var Pr,Xa;function ao(){if(Xa)return Pr;Xa=1;function r(e){return e!==e}return Pr=r,Pr}var Mr,Za;function io(){if(Za)return Mr;Za=1;function r(e,t,n){for(var a=n-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}return Mr=r,Mr}var Ir,Qa;function so(){if(Qa)return Ir;Qa=1;var r=no(),e=ao(),t=io();function n(a,i,s){return i===i?t(a,i,s):r(a,e,s)}return Ir=n,Ir}var Dr,Va;function uo(){if(Va)return Dr;Va=1;var r=so();function e(t,n){var a=t==null?0:t.length;return!!a&&r(t,n,0)>-1}return Dr=e,Dr}var Lr,ei;function oo(){if(ei)return Lr;ei=1;function r(e,t,n){for(var a=-1,i=e==null?0:e.length;++a<i;)if(n(t,e[a]))return!0;return!1}return Lr=r,Lr}var Nr,ri;function kn(){if(ri)return Nr;ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=Array(a);++n<a;)i[n]=t(e[n],n,e);return i}return Nr=r,Nr}var Br,ti;function Hn(){if(ti)return Br;ti=1;function r(e){return function(t){return e(t)}}return Br=r,Br}var jr,ni;function ou(){if(ni)return jr;ni=1;function r(e,t){return e.has(t)}return jr=r,jr}var kr,ai;function co(){if(ai)return kr;ai=1;var r=uu(),e=uo(),t=oo(),n=kn(),a=Hn(),i=ou(),s=200;function o(l,h,m,_){var S=-1,E=e,L=!0,K=l.length,b=[],d=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(E=t,L=!1):h.length>=s&&(E=i,L=!1,h=new r(h));e:for(;++S<K;){var p=l[S],q=m==null?p:m(p);if(p=_||p!==0?p:0,L&&q===q){for(var g=d;g--;)if(h[g]===q)continue e;b.push(p)}else E(h,q,_)||b.push(p)}return b}return kr=o,kr}var Hr,ii;function cu(){if(ii)return Hr;ii=1;function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}return Hr=r,Hr}var Gr,si;function fo(){if(si)return Gr;si=1;var r=Re(),e=he(),t="[object Arguments]";function n(a){return e(a)&&r(a)==t}return Gr=n,Gr}var Ur,ui;function Gn(){if(ui)return Ur;ui=1;var r=fo(),e=he(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(s){return e(s)&&n.call(s,"callee")&&!a.call(s,"callee")};return Ur=i,Ur}var zr,oi;function re(){if(oi)return zr;oi=1;var r=Array.isArray;return zr=r,zr}var Wr,ci;function lo(){if(ci)return Wr;ci=1;var r=Fe(),e=Gn(),t=re(),n=r?r.isConcatSpreadable:void 0;function a(i){return t(i)||e(i)||!!(n&&i&&i[n])}return Wr=a,Wr}var $r,fi;function fu(){if(fi)return $r;fi=1;var r=cu(),e=lo();function t(n,a,i,s,o){var l=-1,h=n.length;for(i||(i=e),o||(o=[]);++l<h;){var m=n[l];a>0&&i(m)?a>1?t(m,a-1,i,s,o):r(o,m):s||(o[o.length]=m)}return o}return $r=t,$r}var Yr,li;function Ae(){if(li)return Yr;li=1;function r(e){return e}return Yr=r,Yr}var Jr,di;function ho(){if(di)return Jr;di=1;function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}return Jr=r,Jr}var Xr,hi;function vo(){if(hi)return Xr;hi=1;var r=ho(),e=Math.max;function t(n,a,i){return a=e(a===void 0?n.length-1:a,0),function(){for(var s=arguments,o=-1,l=e(s.length-a,0),h=Array(l);++o<l;)h[o]=s[a+o];o=-1;for(var m=Array(a+1);++o<a;)m[o]=s[o];return m[a]=i(h),r(n,this,m)}}return Xr=t,Xr}var Zr,vi;function po(){if(vi)return Zr;vi=1;function r(e){return function(){return e}}return Zr=r,Zr}var Qr,pi;function yo(){if(pi)return Qr;pi=1;var r=de(),e=(function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Qr=e,Qr}var Vr,yi;function go(){if(yi)return Vr;yi=1;var r=po(),e=yo(),t=Ae(),n=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:t;return Vr=n,Vr}var et,gi;function _o(){if(gi)return et;gi=1;var r=800,e=16,t=Date.now;function n(a){var i=0,s=0;return function(){var o=t(),l=e-(o-s);if(s=o,l>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return et=n,et}var rt,_i;function bo(){if(_i)return rt;_i=1;var r=go(),e=_o(),t=e(r);return rt=t,rt}var tt,bi;function lu(){if(bi)return tt;bi=1;var r=Ae(),e=vo(),t=bo();function n(a,i){return t(e(a,i,r),a+"")}return tt=n,tt}var nt,mi;function Un(){if(mi)return nt;mi=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return nt=e,nt}var at,qi;function Te(){if(qi)return at;qi=1;var r=iu(),e=Un();function t(n){return n!=null&&e(n.length)&&!r(n)}return at=t,at}var it,Ci;function mo(){if(Ci)return it;Ci=1;var r=Te(),e=he();function t(n){return e(n)&&r(n)}return it=t,it}var st,Fi;function qo(){if(Fi)return st;Fi=1;var r=co(),e=fu(),t=lu(),n=mo(),a=t(function(i,s){return n(i)?r(i,e(s,1,n,!0)):[]});return st=a,st}var ut,Ri;function du(){if(Ri)return ut;Ri=1;function r(e,t){for(var n=-1,a=e==null?0:e.length,i=0,s=[];++n<a;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}return ut=r,ut}var ot,wi;function Co(){if(wi)return ot;wi=1;function r(e){return function(t,n,a){for(var i=-1,s=Object(t),o=a(t),l=o.length;l--;){var h=o[e?l:++i];if(n(s[h],h,s)===!1)break}return t}}return ot=r,ot}var ct,Ai;function Fo(){if(Ai)return ct;Ai=1;var r=Co(),e=r();return ct=e,ct}var ft,Ti;function Ro(){if(Ti)return ft;Ti=1;function r(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}return ft=r,ft}var qe={exports:{}},lt,xi;function wo(){if(xi)return lt;xi=1;function r(){return!1}return lt=r,lt}qe.exports;var Oi;function hu(){return Oi||(Oi=1,(function(r,e){var t=ie(),n=wo(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,s=i&&i.exports===a,o=s?t.Buffer:void 0,l=o?o.isBuffer:void 0,h=l||n;r.exports=h})(qe,qe.exports)),qe.exports}var dt,Si;function zn(){if(Si)return dt;Si=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return dt=t,dt}var ht,Ki;function Ao(){if(Ki)return ht;Ki=1;var r=Re(),e=Un(),t=he(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",s="[object Date]",o="[object Error]",l="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",S="[object RegExp]",E="[object Set]",L="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",d="[object DataView]",p="[object Float32Array]",q="[object Float64Array]",g="[object Int8Array]",P="[object Int16Array]",x="[object Int32Array]",F="[object Uint8Array]",N="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",M={};M[p]=M[q]=M[g]=M[P]=M[x]=M[F]=M[N]=M[R]=M[O]=!0,M[n]=M[a]=M[b]=M[i]=M[d]=M[s]=M[o]=M[l]=M[h]=M[m]=M[_]=M[S]=M[E]=M[L]=M[K]=!1;function H(A){return t(A)&&e(A.length)&&!!M[r(A)]}return ht=H,ht}var Ce={exports:{}};Ce.exports;var Ei;function To(){return Ei||(Ei=1,(function(r,e){var t=nu(),n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,s=i&&t.process,o=(function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}})();r.exports=o})(Ce,Ce.exports)),Ce.exports}var vt,Pi;function vu(){if(Pi)return vt;Pi=1;var r=Ao(),e=Hn(),t=To(),n=t&&t.isTypedArray,a=n?e(n):r;return vt=a,vt}var pt,Mi;function xo(){if(Mi)return pt;Mi=1;var r=Ro(),e=Gn(),t=re(),n=hu(),a=zn(),i=vu(),s=Object.prototype,o=s.hasOwnProperty;function l(h,m){var _=t(h),S=!_&&e(h),E=!_&&!S&&n(h),L=!_&&!S&&!E&&i(h),K=_||S||E||L,b=K?r(h.length,String):[],d=b.length;for(var p in h)(m||o.call(h,p))&&!(K&&(p=="length"||E&&(p=="offset"||p=="parent")||L&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||a(p,d)))&&b.push(p);return b}return pt=l,pt}var yt,Ii;function Oo(){if(Ii)return yt;Ii=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,a=typeof n=="function"&&n.prototype||r;return t===a}return yt=e,yt}var gt,Di;function So(){if(Di)return gt;Di=1;function r(e,t){return function(n){return e(t(n))}}return gt=r,gt}var _t,Li;function Ko(){if(Li)return _t;Li=1;var r=So(),e=r(Object.keys,Object);return _t=e,_t}var bt,Ni;function Eo(){if(Ni)return bt;Ni=1;var r=Oo(),e=Ko(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!r(i))return e(i);var s=[];for(var o in Object(i))n.call(i,o)&&o!="constructor"&&s.push(o);return s}return bt=a,bt}var mt,Bi;function Wn(){if(Bi)return mt;Bi=1;var r=xo(),e=Eo(),t=Te();function n(a){return t(a)?r(a):e(a)}return mt=n,mt}var qt,ji;function $n(){if(ji)return qt;ji=1;var r=Fo(),e=Wn();function t(n,a){return n&&r(n,a,e)}return qt=t,qt}var Ct,ki;function Po(){if(ki)return Ct;ki=1;var r=Te();function e(t,n){return function(a,i){if(a==null)return a;if(!r(a))return t(a,i);for(var s=a.length,o=n?s:-1,l=Object(a);(n?o--:++o<s)&&i(l[o],o,l)!==!1;);return a}}return Ct=e,Ct}var Ft,Hi;function Yn(){if(Hi)return Ft;Hi=1;var r=$n(),e=Po(),t=e(r);return Ft=t,Ft}var Rt,Gi;function Mo(){if(Gi)return Rt;Gi=1;var r=Yn();function e(t,n){var a=[];return r(t,function(i,s,o){n(i,s,o)&&a.push(i)}),a}return Rt=e,Rt}var wt,Ui;function Io(){if(Ui)return wt;Ui=1;var r=Me();function e(){this.__data__=new r,this.size=0}return wt=e,wt}var At,zi;function Do(){if(zi)return At;zi=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return At=r,At}var Tt,Wi;function Lo(){if(Wi)return Tt;Wi=1;function r(e){return this.__data__.get(e)}return Tt=r,Tt}var xt,$i;function No(){if($i)return xt;$i=1;function r(e){return this.__data__.has(e)}return xt=r,xt}var Ot,Yi;function Bo(){if(Yi)return Ot;Yi=1;var r=Me(),e=Bn(),t=jn(),n=200;function a(i,s){var o=this.__data__;if(o instanceof r){var l=o.__data__;if(!e||l.length<n-1)return l.push([i,s]),this.size=++o.size,this;o=this.__data__=new t(l)}return o.set(i,s),this.size=o.size,this}return Ot=a,Ot}var St,Ji;function pu(){if(Ji)return St;Ji=1;var r=Me(),e=Io(),t=Do(),n=Lo(),a=No(),i=Bo();function s(o){var l=this.__data__=new r(o);this.size=l.size}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,St=s,St}var Kt,Xi;function jo(){if(Xi)return Kt;Xi=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}return Kt=r,Kt}var Et,Zi;function yu(){if(Zi)return Et;Zi=1;var r=uu(),e=jo(),t=ou(),n=1,a=2;function i(s,o,l,h,m,_){var S=l&n,E=s.length,L=o.length;if(E!=L&&!(S&&L>E))return!1;var K=_.get(s),b=_.get(o);if(K&&b)return K==o&&b==s;var d=-1,p=!0,q=l&a?new r:void 0;for(_.set(s,o),_.set(o,s);++d<E;){var g=s[d],P=o[d];if(h)var x=S?h(P,g,d,o,s,_):h(g,P,d,s,o,_);if(x!==void 0){if(x)continue;p=!1;break}if(q){if(!e(o,function(F,N){if(!t(q,N)&&(g===F||m(g,F,l,h,_)))return q.push(N)})){p=!1;break}}else if(!(g===P||m(g,P,l,h,_))){p=!1;break}}return _.delete(s),_.delete(o),p}return Et=i,Et}var Pt,Qi;function ko(){if(Qi)return Pt;Qi=1;var r=ie(),e=r.Uint8Array;return Pt=e,Pt}var Mt,Vi;function Ho(){if(Vi)return Mt;Vi=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a,i){n[++t]=[i,a]}),n}return Mt=r,Mt}var It,es;function Go(){if(es)return It;es=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(a){n[++t]=a}),n}return It=r,It}var Dt,rs;function Uo(){if(rs)return Dt;rs=1;var r=Fe(),e=ko(),t=Nn(),n=yu(),a=Ho(),i=Go(),s=1,o=2,l="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",S="[object Number]",E="[object RegExp]",L="[object Set]",K="[object String]",b="[object Symbol]",d="[object ArrayBuffer]",p="[object DataView]",q=r?r.prototype:void 0,g=q?q.valueOf:void 0;function P(x,F,N,R,O,M,H){switch(N){case p:if(x.byteLength!=F.byteLength||x.byteOffset!=F.byteOffset)return!1;x=x.buffer,F=F.buffer;case d:return!(x.byteLength!=F.byteLength||!M(new e(x),new e(F)));case l:case h:case S:return t(+x,+F);case m:return x.name==F.name&&x.message==F.message;case E:case K:return x==F+"";case _:var A=a;case L:var U=R&s;if(A||(A=i),x.size!=F.size&&!U)return!1;var J=H.get(x);if(J)return J==F;R|=o,H.set(x,F);var te=n(A(x),A(F),R,O,M,H);return H.delete(x),te;case b:if(g)return g.call(x)==g.call(F)}return!1}return Dt=P,Dt}var Lt,ts;function zo(){if(ts)return Lt;ts=1;var r=cu(),e=re();function t(n,a,i){var s=a(n);return e(n)?s:r(s,i(n))}return Lt=t,Lt}var Nt,ns;function Wo(){if(ns)return Nt;ns=1;function r(){return[]}return Nt=r,Nt}var Bt,as;function $o(){if(as)return Bt;as=1;var r=du(),e=Wo(),t=Object.prototype,n=t.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(s){return s==null?[]:(s=Object(s),r(a(s),function(o){return n.call(s,o)}))}:e;return Bt=i,Bt}var jt,is;function Yo(){if(is)return jt;is=1;var r=zo(),e=$o(),t=Wn();function n(a){return r(a,t,e)}return jt=n,jt}var kt,ss;function Jo(){if(ss)return kt;ss=1;var r=Yo(),e=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,s,o,l,h,m){var _=o&e,S=r(i),E=S.length,L=r(s),K=L.length;if(E!=K&&!_)return!1;for(var b=E;b--;){var d=S[b];if(!(_?d in s:n.call(s,d)))return!1}var p=m.get(i),q=m.get(s);if(p&&q)return p==s&&q==i;var g=!0;m.set(i,s),m.set(s,i);for(var P=_;++b<E;){d=S[b];var x=i[d],F=s[d];if(l)var N=_?l(F,x,d,s,i,m):l(x,F,d,i,s,m);if(!(N===void 0?x===F||h(x,F,o,l,m):N)){g=!1;break}P||(P=d=="constructor")}if(g&&!P){var R=i.constructor,O=s.constructor;R!=O&&"constructor"in i&&"constructor"in s&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(g=!1)}return m.delete(i),m.delete(s),g}return kt=a,kt}var Ht,us;function Xo(){if(us)return Ht;us=1;var r=de(),e=ie(),t=r(e,"DataView");return Ht=t,Ht}var Gt,os;function Zo(){if(os)return Gt;os=1;var r=de(),e=ie(),t=r(e,"Promise");return Gt=t,Gt}var Ut,cs;function Qo(){if(cs)return Ut;cs=1;var r=de(),e=ie(),t=r(e,"Set");return Ut=t,Ut}var zt,fs;function Vo(){if(fs)return zt;fs=1;var r=de(),e=ie(),t=r(e,"WeakMap");return zt=t,zt}var Wt,ls;function ec(){if(ls)return Wt;ls=1;var r=Xo(),e=Bn(),t=Zo(),n=Qo(),a=Vo(),i=Re(),s=su(),o="[object Map]",l="[object Object]",h="[object Promise]",m="[object Set]",_="[object WeakMap]",S="[object DataView]",E=s(r),L=s(e),K=s(t),b=s(n),d=s(a),p=i;return(r&&p(new r(new ArrayBuffer(1)))!=S||e&&p(new e)!=o||t&&p(t.resolve())!=h||n&&p(new n)!=m||a&&p(new a)!=_)&&(p=function(q){var g=i(q),P=g==l?q.constructor:void 0,x=P?s(P):"";if(x)switch(x){case E:return S;case L:return o;case K:return h;case b:return m;case d:return _}return g}),Wt=p,Wt}var $t,ds;function rc(){if(ds)return $t;ds=1;var r=pu(),e=yu(),t=Uo(),n=Jo(),a=ec(),i=re(),s=hu(),o=vu(),l=1,h="[object Arguments]",m="[object Array]",_="[object Object]",S=Object.prototype,E=S.hasOwnProperty;function L(K,b,d,p,q,g){var P=i(K),x=i(b),F=P?m:a(K),N=x?m:a(b);F=F==h?_:F,N=N==h?_:N;var R=F==_,O=N==_,M=F==N;if(M&&s(K)){if(!s(b))return!1;P=!0,R=!1}if(M&&!R)return g||(g=new r),P||o(K)?e(K,b,d,p,q,g):t(K,b,F,d,p,q,g);if(!(d&l)){var H=R&&E.call(K,"__wrapped__"),A=O&&E.call(b,"__wrapped__");if(H||A){var U=H?K.value():K,J=A?b.value():b;return g||(g=new r),q(U,J,d,p,g)}}return M?(g||(g=new r),n(K,b,d,p,q,g)):!1}return $t=L,$t}var Yt,hs;function gu(){if(hs)return Yt;hs=1;var r=rc(),e=he();function t(n,a,i,s,o){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:r(n,a,i,s,t,o)}return Yt=t,Yt}var Jt,vs;function tc(){if(vs)return Jt;vs=1;var r=pu(),e=gu(),t=1,n=2;function a(i,s,o,l){var h=o.length,m=h,_=!l;if(i==null)return!m;for(i=Object(i);h--;){var S=o[h];if(_&&S[2]?S[1]!==i[S[0]]:!(S[0]in i))return!1}for(;++h<m;){S=o[h];var E=S[0],L=i[E],K=S[1];if(_&&S[2]){if(L===void 0&&!(E in i))return!1}else{var b=new r;if(l)var d=l(L,K,E,i,s,b);if(!(d===void 0?e(K,L,t|n,l,b):d))return!1}}return!0}return Jt=a,Jt}var Xt,ps;function _u(){if(ps)return Xt;ps=1;var r=le();function e(t){return t===t&&!r(t)}return Xt=e,Xt}var Zt,ys;function nc(){if(ys)return Zt;ys=1;var r=_u(),e=Wn();function t(n){for(var a=e(n),i=a.length;i--;){var s=a[i],o=n[s];a[i]=[s,o,r(o)]}return a}return Zt=t,Zt}var Qt,gs;function bu(){if(gs)return Qt;gs=1;function r(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}return Qt=r,Qt}var Vt,_s;function ac(){if(_s)return Vt;_s=1;var r=tc(),e=nc(),t=bu();function n(a){var i=e(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(s){return s===a||r(s,a,i)}}return Vt=n,Vt}var en,bs;function Jn(){if(bs)return en;bs=1;var r=re(),e=we(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,s){if(r(i))return!1;var o=typeof i;return o=="number"||o=="symbol"||o=="boolean"||i==null||e(i)?!0:n.test(i)||!t.test(i)||s!=null&&i in Object(s)}return en=a,en}var rn,ms;function ic(){if(ms)return rn;ms=1;var r=jn(),e="Expected a function";function t(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var s=arguments,o=a?a.apply(this,s):s[0],l=i.cache;if(l.has(o))return l.get(o);var h=n.apply(this,s);return i.cache=l.set(o,h)||l,h};return i.cache=new(t.Cache||r),i}return t.Cache=r,rn=t,rn}var tn,qs;function sc(){if(qs)return tn;qs=1;var r=ic(),e=500;function t(n){var a=r(n,function(s){return i.size===e&&i.clear(),s}),i=a.cache;return a}return tn=t,tn}var nn,Cs;function uc(){if(Cs)return nn;Cs=1;var r=sc(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(s,o,l,h){i.push(l?h.replace(t,"$1"):o||s)}),i});return nn=n,nn}var an,Fs;function oc(){if(Fs)return an;Fs=1;var r=Fe(),e=kn(),t=re(),n=we(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function s(o){if(typeof o=="string")return o;if(t(o))return e(o,s)+"";if(n(o))return i?i.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return an=s,an}var sn,Rs;function mu(){if(Rs)return sn;Rs=1;var r=oc();function e(t){return t==null?"":r(t)}return sn=e,sn}var un,ws;function qu(){if(ws)return un;ws=1;var r=re(),e=Jn(),t=uc(),n=mu();function a(i,s){return r(i)?i:e(i,s)?[i]:t(n(i))}return un=a,un}var on,As;function De(){if(As)return on;As=1;var r=we();function e(t){if(typeof t=="string"||r(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return on=e,on}var cn,Ts;function Xn(){if(Ts)return cn;Ts=1;var r=qu(),e=De();function t(n,a){a=r(a,n);for(var i=0,s=a.length;n!=null&&i<s;)n=n[e(a[i++])];return i&&i==s?n:void 0}return cn=t,cn}var fn,xs;function cc(){if(xs)return fn;xs=1;var r=Xn();function e(t,n,a){var i=t==null?void 0:r(t,n);return i===void 0?a:i}return fn=e,fn}var ln,Os;function fc(){if(Os)return ln;Os=1;function r(e,t){return e!=null&&t in Object(e)}return ln=r,ln}var dn,Ss;function lc(){if(Ss)return dn;Ss=1;var r=qu(),e=Gn(),t=re(),n=zn(),a=Un(),i=De();function s(o,l,h){l=r(l,o);for(var m=-1,_=l.length,S=!1;++m<_;){var E=i(l[m]);if(!(S=o!=null&&h(o,E)))break;o=o[E]}return S||++m!=_?S:(_=o==null?0:o.length,!!_&&a(_)&&n(E,_)&&(t(o)||e(o)))}return dn=s,dn}var hn,Ks;function dc(){if(Ks)return hn;Ks=1;var r=fc(),e=lc();function t(n,a){return n!=null&&e(n,a,r)}return hn=t,hn}var vn,Es;function hc(){if(Es)return vn;Es=1;var r=gu(),e=cc(),t=dc(),n=Jn(),a=_u(),i=bu(),s=De(),o=1,l=2;function h(m,_){return n(m)&&a(_)?i(s(m),_):function(S){var E=e(S,m);return E===void 0&&E===_?t(S,m):r(_,E,o|l)}}return vn=h,vn}var pn,Ps;function vc(){if(Ps)return pn;Ps=1;function r(e){return function(t){return t?.[e]}}return pn=r,pn}var yn,Ms;function pc(){if(Ms)return yn;Ms=1;var r=Xn();function e(t){return function(n){return r(n,t)}}return yn=e,yn}var gn,Is;function yc(){if(Is)return gn;Is=1;var r=vc(),e=pc(),t=Jn(),n=De();function a(i){return t(i)?r(n(i)):e(i)}return gn=a,gn}var _n,Ds;function Zn(){if(Ds)return _n;Ds=1;var r=ac(),e=hc(),t=Ae(),n=re(),a=yc();function i(s){return typeof s=="function"?s:s==null?t:typeof s=="object"?n(s)?e(s[0],s[1]):r(s):a(s)}return _n=i,_n}var bn,Ls;function gc(){if(Ls)return bn;Ls=1;var r=du(),e=Mo(),t=Zn(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s,3))}return bn=a,bn}var mn,Ns;function _c(){if(Ns)return mn;Ns=1;function r(e,t,n){var a;return n(e,function(i,s,o){if(t(i,s,o))return a=s,!1}),a}return mn=r,mn}var qn,Bs;function bc(){if(Bs)return qn;Bs=1;var r=_c(),e=$n(),t=Zn();function n(a,i){return r(a,t(i,3),e)}return qn=n,qn}var Cn,js;function mc(){if(js)return Cn;js=1;function r(e){return e&&e.length?e[0]:void 0}return Cn=r,Cn}var Fn,ks;function qc(){return ks||(ks=1,Fn=mc()),Fn}var Rn,Hs;function Cc(){if(Hs)return Rn;Hs=1;function r(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}return Rn=r,Rn}var wn,Gs;function Cu(){if(Gs)return wn;Gs=1;var r=Ae();function e(t){return typeof t=="function"?t:r}return wn=e,wn}var An,Us;function Fc(){if(Us)return An;Us=1;var r=Cc(),e=Yn(),t=Cu(),n=re();function a(i,s){var o=n(i)?r:e;return o(i,t(s))}return An=a,An}var Tn,zs;function Rc(){if(zs)return Tn;zs=1;var r=$n(),e=Cu();function t(n,a){return n&&r(n,e(a))}return Tn=t,Tn}var xn,Ws;function wc(){if(Ws)return xn;Ws=1;function r(){}return xn=r,xn}var On,$s;function Ac(){if($s)return On;$s=1;var r=Yn(),e=Te();function t(n,a){var i=-1,s=e(n)?Array(n.length):[];return r(n,function(o,l,h){s[++i]=a(o,l,h)}),s}return On=t,On}var Sn,Ys;function Tc(){if(Ys)return Sn;Ys=1;function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}return Sn=r,Sn}var Kn,Js;function xc(){if(Js)return Kn;Js=1;var r=we();function e(t,n){if(t!==n){var a=t!==void 0,i=t===null,s=t===t,o=r(t),l=n!==void 0,h=n===null,m=n===n,_=r(n);if(!h&&!_&&!o&&t>n||o&&l&&m&&!h&&!_||i&&l&&m||!a&&m||!s)return 1;if(!i&&!o&&!_&&t<n||_&&a&&s&&!i&&!o||h&&a&&s||!l&&s||!m)return-1}return 0}return Kn=e,Kn}var En,Xs;function Oc(){if(Xs)return En;Xs=1;var r=xc();function e(t,n,a){for(var i=-1,s=t.criteria,o=n.criteria,l=s.length,h=a.length;++i<l;){var m=r(s[i],o[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return En=e,En}var Pn,Zs;function Sc(){if(Zs)return Pn;Zs=1;var r=kn(),e=Xn(),t=Zn(),n=Ac(),a=Tc(),i=Hn(),s=Oc(),o=Ae(),l=re();function h(m,_,S){_.length?_=r(_,function(K){return l(K)?function(b){return e(b,K.length===1?K[0]:K)}:K}):_=[o];var E=-1;_=r(_,i(t));var L=n(m,function(K,b,d){var p=r(_,function(q){return q(K)});return{criteria:p,index:++E,value:K}});return a(L,function(K,b){return s(K,b,S)})}return Pn=h,Pn}var Mn,Qs;function Kc(){if(Qs)return Mn;Qs=1;var r=Nn(),e=Te(),t=zn(),n=le();function a(i,s,o){if(!n(o))return!1;var l=typeof s;return(l=="number"?e(o)&&t(s,o.length):l=="string"&&s in o)?r(o[s],i):!1}return Mn=a,Mn}var In,Vs;function Ec(){if(Vs)return In;Vs=1;var r=fu(),e=Sc(),t=lu(),n=Kc(),a=t(function(i,s){if(i==null)return[];var o=s.length;return o>1&&n(i,s[0],s[1])?s=[]:o>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),e(i,r(s,1),[])});return In=a,In}var Dn,eu;function Pc(){if(eu)return Dn;eu=1;var r=au(),e=le(),t="Expected a function";function n(a,i,s){var o=!0,l=!0;if(typeof a!="function")throw new TypeError(t);return e(s)&&(o="leading"in s?!!s.leading:o,l="trailing"in s?!!s.trailing:l),r(a,i,{leading:o,maxWait:i,trailing:l})}return Dn=n,Dn}var Ln,ru;function Mc(){if(ru)return Ln;ru=1;var r=mu(),e=0;function t(n){var a=++e;return r(n)+a}return Ln=t,Ln}var Ic=Ke.exports,tu;function Dc(){return tu||(tu=1,(function(r,e){(function(t,n){r.exports=n(au(),qo(),gc(),bc(),qc(),Fc(),Rc(),wc(),Ec(),Pc(),Mc(),wu)})(Ic,(function(t,n,a,i,s,o,l,h,m,_,S,E){return(function(){var L={654:function(b,d,p){var q,g=this&&this.__assign||function(){return g=Object.assign||function(y){for(var u,c=1,f=arguments.length;c<f;c++)for(var v in u=arguments[c])Object.prototype.hasOwnProperty.call(u,v)&&(y[v]=u[v]);return y},g.apply(this,arguments)},P=this&&this.__createBinding||(Object.create?function(y,u,c,f){f===void 0&&(f=c);var v=Object.getOwnPropertyDescriptor(u,c);v&&!("get"in v?!u.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(y,f,v)}:function(y,u,c,f){f===void 0&&(f=c),y[f]=u[c]}),x=this&&this.__setModuleDefault||(Object.create?function(y,u){Object.defineProperty(y,"default",{enumerable:!0,value:u})}:function(y,u){y.default=u}),F=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var u={};if(y!=null)for(var c in y)c!=="default"&&Object.prototype.hasOwnProperty.call(y,c)&&P(u,y,c);return x(u,y),u},N=this&&this.__spreadArray||function(y,u,c){if(c||arguments.length===2)for(var f,v=0,C=u.length;v<C;v++)!f&&v in u||(f||(f=Array.prototype.slice.call(u,0,v)),f[v]=u[v]);return y.concat(f||Array.prototype.slice.call(u))},R=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(d,"__esModule",{value:!0}),d.updateRtl=d.doesFocusableExist=d.getCurrentFocusKey=d.updateAllLayouts=d.resume=d.pause=d.navigateByDirection=d.setFocus=d.setKeyMap=d.destroy=d.setThrottle=d.init=d.SpatialNavigation=d.ROOT_FOCUS_KEY=void 0;var O=R(p(150)),M=R(p(117)),H=R(p(747)),A=R(p(23)),U=R(p(842)),J=R(p(682)),te=R(p(784)),ve=R(p(432)),Le=R(p(67)),xe=R(p(35)),Q=R(p(119)),pe=F(p(964)),ue="left",oe="right",ce="up",ne="down",ye="enter",ge=((q={}).left=[37,"ArrowLeft"],q.up=[38,"ArrowUp"],q.right=[39,"ArrowRight"],q.down=[40,"ArrowDown"],q.enter=[13,"Enter"],q);d.ROOT_FOCUS_KEY="SN:ROOT";var _e=["#0FF","#FF0","#F0F"],Oe={leading:!0,trailing:!1},Se=(function(){function y(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=ge,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return y.getCutoffCoordinate=function(u,c,f,v,C){var w=u?v.top:C===Q.default.LTR?v.left:v.right,T=u?v.bottom:C===Q.default.LTR?v.right:v.left;return c?f?w:T:f?T:w},y.getRefCorners=function(u,c,f){var v={a:{x:0,y:0},b:{x:0,y:0}};switch(u){case ce:var C=c?f.bottom:f.top;v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ne:C=c?f.top:f.bottom,v.a={x:f.left,y:C},v.b={x:f.right,y:C};break;case ue:var w=c?f.right:f.left;v.a={x:w,y:f.top},v.b={x:w,y:f.bottom};break;case oe:w=c?f.left:f.right,v.a={x:w,y:f.top},v.b={x:w,y:f.bottom}}return v},y.isAdjacentSlice=function(u,c,f){var v=u.a,C=u.b,w=c.a,T=c.b,I=f?"x":"y",G=v[I],k=C[I],j=w[I],B=T[I],D=.2*(k-G);return Math.max(0,Math.min(k,B)-Math.max(G,j))>=D},y.getPrimaryAxisDistance=function(u,c,f){var v=u.a,C=c.a,w=f?"y":"x";return Math.abs(C[w]-v[w])},y.getSecondaryAxisDistance=function(u,c,f,v,C){if(C)return C(u,c,f,v);var w=u.a,T=u.b,I=c.a,G=c.b,k=f?"x":"y",j=w[k],B=T[k],D=I[k],Y=G[k];if(v==="center"){var W=(j+B)/2,X=(D+Y)/2;return Math.abs(W-X)}if(v==="edges"){var se=Math.min(j,B),z=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-z),ee=Math.abs(V-fe);return Math.min(ae,ee)}var be=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,be)},y.prototype.sortSiblingsByPriority=function(u,c,f,v){var C=this,w=f===ne||f===ce,T=y.getRefCorners(f,!1,c);return(0,ve.default)(u,(function(I){var G=y.getRefCorners(f,!0,I.layout),k=y.isAdjacentSlice(T,G,w),j=k?y.getPrimaryAxisDistance:y.getSecondaryAxisDistance,B=k?y.getSecondaryAxisDistance:y.getPrimaryAxisDistance,D=j(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),Y=B(T,G,w,C.distanceCalculationMethod,C.customDistanceCalculationFunction),W=5*D+Y,X=(W+1)/(k?5:1);return C.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(I.focusKey," relative to ").concat(v," is"),D,Y,W),C.log("smartNavigate","priority for ".concat(I.focusKey," relative to ").concat(v," is"),X),C.visualDebugger&&(C.visualDebugger.drawPoint(G.a.x,G.a.y,"yellow",6),C.visualDebugger.drawPoint(G.b.x,G.b.y,"yellow",6)),X}))},y.prototype.init=function(u){var c=this,f=u===void 0?{}:u,v=f.debug,C=v!==void 0&&v,w=f.visualDebug,T=w!==void 0&&w,I=f.nativeMode,G=I!==void 0&&I,k=f.throttle,j=k===void 0?0:k,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,W=Y!==void 0&&Y,X=f.shouldFocusDOMNode,se=X!==void 0&&X,z=f.domNodeFocusOptions,V=z===void 0?{}:z,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,be=ee!==void 0&&ee,$=f.distanceCalculationMethod,Z=$===void 0?"corners":$,Qn=f.customDistanceCalculationFunction,Fu=Qn===void 0?void 0:Qn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=G,this.throttleKeypresses=D,this.useGetBoundingClientRect=W,this.shouldFocusDOMNode=se&&!G,this.shouldUseNativeEvents=ae,this.writingDirection=be?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=Fu,this.debug=C,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new xe.default(this.writingDirection);var Vn=function(){requestAnimationFrame((function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,(function(ea,Ru){c.visualDebugger.drawLayout(ea.layout,Ru,ea.parentFocusKey)})),Vn()}))};Vn()}},y.prototype.setThrottle=function(u){var c=u===void 0?{}:u,f=c.throttle,v=f===void 0?0:f,C=c.throttleKeypresses,w=C!==void 0&&C;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(v)&&(this.throttle=v),this.bindEventHandlers())},y.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=ge,this.unbindEventHandlers())},y.prototype.getEventType=function(u){return(0,A.default)(this.getKeyMap(),(function(c){return c.includes(u)}))},y.getKeyCode=function(u){return u.keyCode||u.code||u.key},y.prototype.bindEventHandlers=function(){var u=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(u.paused!==!0){u.debug&&(u.logIndex+=1);var f=y.getKeyCode(c),v=u.getEventType(f);if(v){u.pressedKeys[v]=u.pressedKeys[v]?u.pressedKeys[v]+1:1,u.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var C={pressedKeys:u.pressedKeys};if(v===ye&&u.focusKey)u.onEnterPress(C);else{var w=u.onArrowPress(v,C)===!1;if(u.visualDebugger&&u.visualDebugger.clear(),w)u.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(u.getKeyMap(),(function(I){return I.includes(f)}));u.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,Le.default)(this.keyDownEventListener.bind(this),this.throttle,Oe)),this.keyUpEventListener=function(c){var f=y.getKeyCode(c),v=u.getEventType(f);delete u.pressedKeys[v],u.throttle&&!u.throttleKeypresses&&u.keyDownEventListenerThrottled.cancel(),v===ye&&u.focusKey&&u.onEnterRelease(),!u.focusKey||v!==ue&&v!==oe&&v!==ce&&v!==ne||u.onArrowRelease(v)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},y.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var u=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",u),this.keyDownEventListener=null}},y.prototype.onEnterPress=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(u):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},y.prototype.onEnterRelease=function(){var u=this.focusableComponents[this.focusKey];u?u.focusable?u.onEnterRelease&&u.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},y.prototype.onArrowPress=function(u,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(u,c);this.log("onArrowPress","noComponent")},y.prototype.onArrowRelease=function(u){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(u):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},y.prototype.navigateByDirection=function(u,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,ue,oe];f.includes(u)?(this.log("navigateByDirection","direction",u),this.smartNavigate(u,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(u,"`, but you can use only these: "),f)}},y.prototype.smartNavigate=function(u,c,f){var v=this;if(!this.nativeMode){var C=u===ne||u===ce,w=u===ne||(this.writingDirection===Q.default.LTR?u===oe:u===ue);this.log("smartNavigate","direction",u),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,(function(z){z.layoutUpdated=!1}));var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var I=T.parentFocusKey,G=T.focusKey,k=T.layout,j=y.getCutoffCoordinate(C,w,!1,k,this.writingDirection),B=(0,H.default)(this.focusableComponents,(function(z){if(z.parentFocusKey===I&&z.focusable){v.updateLayout(z.focusKey);var V=y.getCutoffCoordinate(C,w,!0,z.layout,v.writingDirection);return C||v.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1}));if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map((function(z){return z.focusKey})).join(", "),B.map((function(z){return z.node})),B.map((function(z){return z})))),this.visualDebugger){var D=y.getRefCorners(u,!1,k);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,k,u,G),W=(0,U.default)(Y);if(this.log("smartNavigate","nextComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W)this.setFocus(W.focusKey,f);else{var X=this.focusableComponents[I],se=X?.isFocusBoundary?X.focusBoundaryDirections||[u]:[];X&&se.includes(u)||this.smartNavigate(u,I,f)}}}else this.setFocus(this.getForcedFocusKey())}},y.prototype.saveLastFocusedChildKey=function(u,c){u&&(this.log("saveLastFocusedChildKey","".concat(u.focusKey," lastFocusedChildKey set"),c),u.lastFocusedChildKey=c)},y.prototype.log=function(u,c){for(var f=[],v=2;v<arguments.length;v++)f[v-2]=arguments[v];this.debug&&console.log.apply(console,N(["%c".concat(u,"%c").concat(c),"background: ".concat(_e[this.logIndex%_e.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},y.prototype.getCurrentFocusKey=function(){return this.focusKey},y.prototype.getForcedFocusKey=function(){var u,c=(0,H.default)(this.focusableComponents,(function(v){return v.focusable&&v.forceFocus})),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",d.ROOT_FOCUS_KEY);return(u=(0,U.default)(f))===null||u===void 0?void 0:u.focusKey},y.prototype.getNextFocusKey=function(u){var c=this,f=this.focusableComponents[u];if(!f||this.nativeMode)return u;var v=(0,H.default)(this.focusableComponents,(function(I){return I.parentFocusKey===u&&I.focusable}));if(v.length>0){var C=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",C),this.log("getNextFocusKey","preferredChildFocusKey is",w),C&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(C))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",C),this.getNextFocusKey(C);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);v.forEach((function(I){return c.updateLayout(I.focusKey)}));var T=(function(I,G){var k=G===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,ve.default)(I,k);return(0,U.default)(j)})(v,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",u),u},y.prototype.addFocusable=function(u){var c=u.focusKey,f=u.node,v=u.parentFocusKey,C=u.onEnterPress,w=u.onEnterRelease,T=u.onArrowPress,I=u.onArrowRelease,G=u.onFocus,k=u.onBlur,j=u.saveLastFocusedChild,B=u.trackChildren,D=u.onUpdateFocus,Y=u.onUpdateHasFocusedChild,W=u.preferredChildFocusKey,X=u.autoRestoreFocus,se=u.forceFocus,z=u.focusable,V=u.isFocusBoundary,fe=u.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:v,onEnterPress:C,onEnterRelease:w,onArrowPress:T,onArrowRelease:I,onFocus:G,onBlur:k,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:W,focusable:z,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:X,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(W||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},y.prototype.removeFocusable=function(u){var c=u.focusKey,f=this.focusableComponents[c];if(f){var v=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var C=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter((function(I){return I!==c}));var w=this.focusableComponents[v],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||C)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",v),this.setFocusDebounced(v))}},y.prototype.getNodeLayoutByFocusKey=function(u){var c=this.focusableComponents[u];return c?(this.updateLayout(c.focusKey),c.layout):null},y.prototype.setCurrentFocusedKey=function(u,c){var f,v,C,w;if(this.isFocusableComponent(this.focusKey)&&u!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(v=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||v===void 0||v.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=u,this.isFocusableComponent(this.focusKey)){var I=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&I.node&&I.node.focus(this.domNodeFocusOptions),(w=(C=I.node)===null||C===void 0?void 0:C.setAttribute)===null||w===void 0||w.call(C,"data-focused","true"),I.onUpdateFocus(!0),I.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",I)}},y.prototype.updateParentsHasFocusedChild=function(u,c){for(var f=this,v=[],C=this.focusableComponents[u];C;){var w=C.parentFocusKey,T=this.focusableComponents[w];if(T){var I=T.focusKey;v.push(I)}C=T}var G=(0,M.default)(this.parentsHavingFocusedChild,v),k=(0,M.default)(v,this.parentsHavingFocusedChild);(0,J.default)(G,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)})),(0,J.default)(k,(function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)})),this.parentsHavingFocusedChild=v},y.prototype.updateParentsLastFocusedChild=function(u){for(var c=this.focusableComponents[u];c;){var f=c.parentFocusKey,v=this.focusableComponents[f];v&&this.saveLastFocusedChildKey(v,c.focusKey),c=v}},y.prototype.getKeyMap=function(){return this.keyMap},y.prototype.setKeyMap=function(u){this.keyMap=g(g({},this.getKeyMap()),(function(c){var f={};return Object.entries(c).forEach((function(v){var C=v[0],w=v[1];f[C]=Array.isArray(w)?w:[w]})),f})(u))},y.prototype.isFocusableComponent=function(u){return!!this.focusableComponents[u]},y.prototype.isParticipatingFocusableComponent=function(u){return this.isFocusableComponent(u)&&this.focusableComponents[u].focusable},y.prototype.onIntermediateNodeBecameFocused=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onFocus(this.getNodeLayoutByFocusKey(u),c)},y.prototype.onIntermediateNodeBecameBlurred=function(u,c){this.isParticipatingFocusableComponent(u)&&this.focusableComponents[u].onBlur(this.getNodeLayoutByFocusKey(u),c)},y.prototype.pause=function(){this.paused=!0},y.prototype.resume=function(){this.paused=!1},y.prototype.setFocus=function(u,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",u),u&&u!==d.ROOT_FOCUS_KEY||(u=this.getForcedFocusKey());var f=this.getNextFocusKey(u);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},y.prototype.updateAllLayouts=function(){var u=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,(function(c,f){u.updateLayout(f)}))},y.prototype.updateLayout=function(u){var c=this.focusableComponents[u];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,v=this.useGetBoundingClientRect?(0,pe.getBoundingClientRect)(f):(0,pe.default)(f);c.layout=g(g({},v),{node:f})}},y.prototype.updateFocusable=function(u,c){var f=c.node,v=c.preferredChildFocusKey,C=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,I=c.onEnterPress,G=c.onEnterRelease,k=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[u];D&&(D.preferredChildFocusKey=v,D.focusable=C,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=I,D.onEnterRelease=G,D.onArrowPress=k,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},y.prototype.isNativeMode=function(){return this.nativeMode},y.prototype.doesFocusableExist=function(u){return!!this.focusableComponents[u]},y.prototype.updateRtl=function(u){this.writingDirection=u?Q.default.RTL:Q.default.LTR},y})();d.SpatialNavigation=new Se,d.init=d.SpatialNavigation.init,d.setThrottle=d.SpatialNavigation.setThrottle,d.destroy=d.SpatialNavigation.destroy,d.setKeyMap=d.SpatialNavigation.setKeyMap,d.setFocus=d.SpatialNavigation.setFocus,d.navigateByDirection=d.SpatialNavigation.navigateByDirection,d.pause=d.SpatialNavigation.pause,d.resume=d.SpatialNavigation.resume,d.updateAllLayouts=d.SpatialNavigation.updateAllLayouts,d.getCurrentFocusKey=d.SpatialNavigation.getCurrentFocusKey,d.doesFocusableExist=d.SpatialNavigation.doesFocusableExist,d.updateRtl=d.SpatialNavigation.updateRtl},35:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0});var g=q(p(119)),P=typeof window<"u"&&window.document,x=P?window.innerWidth:0,F=P?window.innerHeight:0,N=(function(){function R(O){P&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,M,H){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",H===g.default.LTR?"ltr":"rtl");var U=A.getContext("2d");return A.style.zIndex=M,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=F,U},R.prototype.clear=function(){P&&this.debugCtx.clearRect(0,0,x,F)},R.prototype.clearLayouts=function(){P&&this.layoutsCtx.clearRect(0,0,x,F)},R.prototype.drawLayout=function(O,M,H){if(P){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===g.default.LTR?"left":"right",U=O[A];this.layoutsCtx.fillText(M,U,O.top+10),this.layoutsCtx.fillText(H,U,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(U),U,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),U,O.top+55)}},R.prototype.drawPoint=function(O,M,H,A){H===void 0&&(H="blue"),A===void 0&&(A=10),P&&(this.debugCtx.strokeStyle=H,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,M-A/2,A,A))},R})();d.default=N},119:function(b,d){var p;Object.defineProperty(d,"__esModule",{value:!0}),(function(q){q[q.LTR=0]="LTR",q[q.RTL=1]="RTL"})(p||(p={})),d.default=p},607:function(b,d,p){var q=this&&this.__createBinding||(Object.create?function(P,x,F,N){N===void 0&&(N=F);var R=Object.getOwnPropertyDescriptor(x,F);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[F]}}),Object.defineProperty(P,N,R)}:function(P,x,F,N){N===void 0&&(N=F),P[N]=x[F]}),g=this&&this.__exportStar||function(P,x){for(var F in P)F==="default"||Object.prototype.hasOwnProperty.call(x,F)||q(x,P,F)};Object.defineProperty(d,"__esModule",{value:!0}),g(p(79),d),g(p(445),d),g(p(654),d)},964:function(b,d){Object.defineProperty(d,"__esModule",{value:!0}),d.getBoundingClientRect=void 0;var p=function(q){for(var g=q.offsetParent,P=q.offsetHeight,x=q.offsetWidth,F=q.offsetLeft,N=q.offsetTop;g&&g.nodeType===1;)F+=g.offsetLeft-g.scrollLeft,N+=g.offsetTop-g.scrollTop,g=g.offsetParent;return{height:P,left:F,top:N,width:x}};d.default=function(q){var g=q&&q.parentElement;if(q&&g){var P=p(g),x=p(q),F=x.height,N=x.left,R=x.top,O=x.width;return{x:N-P.left,y:R-P.top,width:O,height:F,left:N,top:R,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},d.getBoundingClientRect=function(q){if(q&&q.getBoundingClientRect){var g=q.getBoundingClientRect();return{x:g.x,y:g.y,width:g.width,height:g.height,left:g.left,top:g.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(b,d,p){Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusContext=d.FocusContext=void 0;var q=p(156),g=p(654);d.FocusContext=(0,q.createContext)(g.ROOT_FOCUS_KEY),d.FocusContext.displayName="FocusContext",d.useFocusContext=function(){return(0,q.useContext)(d.FocusContext)}},79:function(b,d,p){var q=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusable=void 0;var g=p(156),P=q(p(604)),x=q(p(461)),F=p(654),N=p(445);d.useFocusable=function(R){var O=R===void 0?{}:R,M=O.focusable,H=M===void 0||M,A=O.saveLastFocusedChild,U=A===void 0||A,J=O.trackChildren,te=J!==void 0&&J,ve=O.autoRestoreFocus,Le=ve===void 0||ve,xe=O.forceFocus,Q=xe!==void 0&&xe,pe=O.isFocusBoundary,ue=pe!==void 0&&pe,oe=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,ye=O.onEnterPress,ge=ye===void 0?P.default:ye,_e=O.onEnterRelease,Oe=_e===void 0?P.default:_e,Se=O.onArrowPress,y=Se===void 0?function(){return!0}:Se,u=O.onArrowRelease,c=u===void 0?P.default:u,f=O.onFocus,v=f===void 0?P.default:f,C=O.onBlur,w=C===void 0?P.default:C,T=O.extraProps,I=(0,g.useCallback)((function($){ge(T,$)}),[ge,T]),G=(0,g.useCallback)((function(){Oe(T)}),[Oe,T]),k=(0,g.useCallback)((function($,Z){return y($,T,Z)}),[T,y]),j=(0,g.useCallback)((function($){c($,T)}),[c,T]),B=(0,g.useCallback)((function($,Z){v($,T,Z)}),[T,v]),D=(0,g.useCallback)((function($,Z){w($,T,Z)}),[T,w]),Y=(0,g.useRef)(null),W=(0,g.useState)(!1),X=W[0],se=W[1],z=(0,g.useState)(!1),V=z[0],fe=z[1],ae=(0,N.useFocusContext)(),ee=(0,g.useMemo)((function(){return ce||(0,x.default)("sn:focusable-item-")}),[ce]),be=(0,g.useCallback)((function($){$===void 0&&($={}),F.SpatialNavigation.setFocus(ee,$)}),[ee]);return(0,g.useEffect)((function(){var $=Y.current;return F.SpatialNavigation.addFocusable({focusKey:ee,node:$,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:U,trackChildren:te,isFocusBoundary:ue,focusBoundaryDirections:oe,autoRestoreFocus:Le,forceFocus:Q,focusable:H}),function(){F.SpatialNavigation.removeFocusable({focusKey:ee})}}),[]),(0,g.useEffect)((function(){var $=Y.current;F.SpatialNavigation.updateFocusable(ee,{node:$,preferredChildFocusKey:ne,focusable:H,isFocusBoundary:ue,focusBoundaryDirections:oe,onEnterPress:I,onEnterRelease:G,onArrowPress:k,onArrowRelease:j,onFocus:B,onBlur:D})}),[ee,ne,H,ue,oe,I,G,k,j,B,D]),{ref:Y,focusSelf:be,focused:X,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=s},682:function(b){b.exports=o},784:function(b){b.exports=l},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=S},156:function(b){b.exports=E}},K={};return(function b(d){var p=K[d];if(p!==void 0)return p.exports;var q=K[d]={exports:{}};return L[d].call(q.exports,q,q.exports,b),q.exports})(607)})()}))})(Ke)),Ke.exports}var Lc=Dc();exports.commonjsGlobal=me;exports.distExports=Lc;exports.getAugmentedNamespace=Tu;exports.getDefaultExportFromCjs=Au;
1
+ "use strict";const e=require("react/jsx-runtime"),R=require("./index9.js"),l=require("./feature.js"),g=require("./index14.js"),q=require("./index11.js"),u=require("./index8.js"),r=require("./useStreamLayerApp2.js"),x=require("react"),o=require("./index3.js"),k=l.styled_default("div")({name:"Container",class:"c1vwopgc",propsAsIs:!1}),N=l.styled_default("div")({name:"QuestionTypeWrap",class:"qyktpt0",propsAsIs:!1}),T=()=>u.B1,Q=l.styled_default(T())({name:"QuestionTypeIcon",class:"q951jdx",propsAsIs:!0}),S=l.styled_default("span")({name:"QuestionTypeTitle",class:"qss5f0e",propsAsIs:!1}),U=l.styled_default("button")({name:"CloseIconWrap",class:"c1ao1jtv",propsAsIs:!1}),F=()=>u.B1,O=l.styled_default(F())({name:"CloseIcon",class:"cvsl7l3",propsAsIs:!0}),W=R.b(U,{}),z=({webos:s,type:t,closeTimer:n,close:p,label:y,mastersApp:d})=>{const a=t?q.e[t]:{label:y,iconName:void 0};return e.jsxs(k,{children:[e.jsxs(N,{children:[a?.iconName&&e.jsx(Q,{"data-type-trivia":t===r.QuestionType.TRIVIA,"data-type-poll":t===r.QuestionType.POLL,"data-type-prediction":t===r.QuestionType.PREDICTION,"data-masters-app":!!d,name:a.iconName}),a?.label&&e.jsx(S,{children:a.label})]}),n?.seconds?e.jsx(g.y,{close:p,autoClose:n.auto,duration:n.seconds}):e.jsx(W,{webos:s,"data-a":"intr",onClick:p,type:"button","data-close-btn":"true",children:e.jsx(O,{"data-a":"intr",name:"icon-cross"})})]})},G="data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",B=l.styled_default("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),J=()=>u.B1,K=l.styled_default(J())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),X=l.styled_default("img")({name:"AdSponsorLogo",class:"a1dflj8e",propsAsIs:!1}),Y=({mastersApp:s,sponsorLogo:t})=>s?e.jsx(B,{children:e.jsx(K,{name:"mastersLogo"})}):t?e.jsx(B,{children:e.jsx(X,{src:t,alt:"ad-sponsor-logo"})}):e.jsx(B,{children:e.jsx("img",{src:G,alt:"stream-layer-logo"})}),e2=l.styled_default("div")({name:"Container",class:"cq8qxhy",propsAsIs:!1}),s2=l.styled_default("div")({name:"VideoWrapper",class:"v18kj6dc",propsAsIs:!1}),l2=()=>g.Ve,t2=l.styled_default(l2())({name:"FocusableVideo",class:"fv2nwib",propsAsIs:!0}),M=l.styled_default("div")({name:"VideoStatus",class:"v8ptucg",propsAsIs:!1}),$="caip8y5",a2=l.styled_default("div")({name:"Content",class:"ccgc65e",propsAsIs:!1}),i2=l.styled_default("h3")({name:"Title",class:"t1q3iml2",propsAsIs:!1}),d2=l.styled_default("div")({name:"Description",class:"d1y2pxs8",propsAsIs:!1}),o2=l.styled_default("img")({name:"Image",class:"ig2j4fc",propsAsIs:!1}),n2=l.styled_default("div")({name:"ImageContainer",class:"i3dd6iy",propsAsIs:!1}),C2=({instantView:s,isDetail:t,notification:n,controlVideo:p,muted:y,questionId:d,fireEvent:a,isEventFired:i})=>{const m=x.useRef(null),[v,f]=x.useState(!1),[V,L]=x.useState(void 0),C=s?.playVideoMuted===r.PlayVideoMuted.ENABLED,h=t&&s?.autoPlayVideo===r.AutoPlayVideo.ENABLED,w=C&&h,j=s?.heading,I=s?.body,A=j||I,[H,Z]=x.useState(!0),P=n?.title,D=n?.body;return e.jsxs(e2,{children:[s?.video?.url&&e.jsxs(s2,{children:[e.jsx(t2,{className:$,source:s.video.url,poster:s.video.thumbnailUrl,controlVideo:p,muted:y,autoPlay:t&&s.autoPlayVideo===r.AutoPlayVideo.ENABLED,ref:m,onRender:()=>{i?.("video-rendered")||(o.eventBus.emit("advertisement",{action:"videoRendered",payload:{id:d}}),a?.("video-rendered"))},onQuartile:c=>{i?.(`video-quartile-${c}`)||(o.eventBus.emit("advertisement",{action:"quartileCompleted",payload:{id:d,quartile:c}}),a?.(`video-quartile-${c}`))},onMuteClick:c=>{const _=c?"muted":"unmuted";i?.(_)||(o.eventBus.emit("advertisement",{action:c?"videoMuted":"videoUnmuted",payload:{id:d}}),a?.(_))},onPause:()=>{f?.(!0),Z(!1)},onMute:c=>{L(c)},onReplay:()=>{i?.("replayed")||(o.eventBus.emit("advertisement",{action:"videoReplayed",payload:{id:d}}),a?.("replayed"))},onPlay:()=>{i?.("played")||(o.eventBus.emit("advertisement",{action:"videoPlay",payload:{id:d}}),a?.("played")),f?.(!1),i?.("played")&&i?.("ended")&&!i?.("replayed")&&(o.eventBus.emit("advertisement",{action:"videoReplayed",payload:{id:d}}),a?.("replayed"))},onEnd:()=>{i?.("ended")||(o.eventBus.emit("advertisement",{action:"videoEnd",payload:{id:d}}),a?.("ended"))},playMuted:C,hasNotPausedVideo:H,webos:!0}),v&&!H&&e.jsxs(M,{children:[e.jsx(u.B1,{name:"icon-pause"}),"PAUSED"]}),V&&w&&e.jsxs(M,{children:[e.jsx(u.B1,{name:"iconMute"}),"MUTED"]})]}),s?.image&&!s?.video?.url&&e.jsx(n2,{className:$,"data-rounded":s.imageMode===r.QuestionImages.ROUNDED,children:e.jsx(o2,{src:s?.image})}),e.jsxs(a2,{children:[e.jsx(i2,{children:t&&A?j:P}),e.jsx(d2,{children:t&&A?I:D})]})]})},r2=l.styled_default("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),b="c1px8nt6",c2=l.styled_default("div")({name:"Content",class:"c5et2jt",propsAsIs:!1}),p2=l.styled_default("h3")({name:"Title",class:"t1i2kpk2",propsAsIs:!1}),u2=l.styled_default("div")({name:"Description",class:"dd3lh3p",propsAsIs:!1}),y2=l.styled_default("img")({name:"Image",class:"i1gfjeu5",propsAsIs:!1}),f2=l.styled_default("div")({name:"ImageContainer",class:"i58y999",propsAsIs:!1}),E=({instantView:s,isDetail:t,notification:n,controlVideo:p,muted:y,questionId:d,fireEvent:a,isEventFired:i})=>{const m=s?.heading,v=s?.body,f=m||v,V=n?.title,L=n?.body;return e.jsxs(r2,{children:[s?.video?.url&&e.jsx(g.Ve,{className:b,source:s.video.url,poster:s.video.thumbnailUrl,controlVideo:p,muted:y,autoPlay:t&&s.autoPlayVideo===r.AutoPlayVideo.ENABLED,onRender:()=>{i?.("video-rendered")||(o.eventBus.emit("advertisement",{action:"videoRendered",payload:{id:d}}),a?.("video-rendered"))},onQuartile:C=>{i?.(`video-quartile-${C}`)||(o.eventBus.emit("advertisement",{action:"quartileCompleted",payload:{id:d,quartile:C}}),a?.(`video-quartile-${C}`))},onMuteClick:C=>{const h=C?"muted":"unmuted";i?.(h)||(o.eventBus.emit("advertisement",{action:C?"videoMuted":"videoUnmuted",payload:{id:d}}),a?.(h))},onReplay:()=>{i?.("replayed")||(o.eventBus.emit("advertisement",{action:"videoReplayed",payload:{id:d}}),a?.("replayed"))},onPlay:()=>{i?.("played")||(o.eventBus.emit("advertisement",{action:"videoPlay",payload:{id:d}}),a?.("played")),i?.("played")&&i?.("ended")&&!i?.("replayed")&&(o.eventBus.emit("advertisement",{action:"videoReplayed",payload:{id:d}}),a?.("replayed"))},onEnd:()=>{i?.("ended")||(o.eventBus.emit("advertisement",{action:"videoEnd",payload:{id:d}}),a?.("ended"))}}),s?.image&&!s?.video?.url&&e.jsx(f2,{className:b,"data-rounded":s.imageMode===r.QuestionImages.ROUNDED,children:e.jsx(y2,{src:s?.image})}),e.jsxs(c2,{children:[e.jsx(p2,{children:t&&f?m:V}),e.jsx(u2,{children:t&&f?v:L})]})]})},m2=l.styled_default("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),v2=l.styled_default("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),h2=()=>u.B1,x2=l.styled_default(h2())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),V2=({instantView:s,...t})=>e.jsxs(m2,{children:[t.webos?e.jsx(C2,{instantView:s,...t,isDetail:!0}):e.jsx(E,{instantView:s,...t,isDetail:!0}),s?.webLink&&e.jsxs(v2,{href:s?.webLink.url,target:"_blank","data-a":"web-link",children:[s?.webLink.label,e.jsx(x2,{name:"icon-external-link"})]})]}),L2=l.styled_default("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),B2=l.styled_default("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),g2=s=>e.jsxs(L2,{children:[s.title&&e.jsx(B2,{children:s.title}),e.jsx(q.N,{...s,isDetail:!0})]});exports.$=E;exports.O=z;exports.a=g2;exports.d=Y;exports.f=V2;
@@ -1 +1,4 @@
1
- "use strict";const s=require("react/jsx-runtime"),Z=require("./index9.js"),l=require("./sl-types.js"),m=require("./index15.js"),H=require("./index11.js"),d=require("./index8.js"),C=require("./useStreamLayerApp2.js"),r=require("react"),D=l.styled_default("div")({name:"Container",class:"c1vwopgc",propsAsIs:!1}),E=l.styled_default("div")({name:"QuestionTypeWrap",class:"qyktpt0",propsAsIs:!1}),P=()=>d.B1,q=l.styled_default(P())({name:"QuestionTypeIcon",class:"q951jdx",propsAsIs:!0}),N=l.styled_default("span")({name:"QuestionTypeTitle",class:"qss5f0e",propsAsIs:!1}),k=l.styled_default("button")({name:"CloseIconWrap",class:"c1ao1jtv",propsAsIs:!1}),T=()=>d.B1,S=l.styled_default(T())({name:"CloseIcon",class:"cvsl7l3",propsAsIs:!0}),Q=Z.b(k,{}),U=({webos:e,type:a,closeTimer:t,close:o,label:n,mastersApp:c})=>{const i=a?H.e[a]:{label:n,iconName:void 0};return s.jsxs(D,{children:[s.jsxs(E,{children:[i?.iconName&&s.jsx(q,{"data-type-trivia":a===C.QuestionType.TRIVIA,"data-type-poll":a===C.QuestionType.POLL,"data-type-prediction":a===C.QuestionType.PREDICTION,"data-masters-app":!!c,name:i.iconName}),i?.label&&s.jsx(N,{children:i.label})]}),t?.seconds?s.jsx(m.y,{close:o,autoClose:t.auto,duration:t.seconds}):s.jsx(Q,{webos:e,"data-a":"intr",onClick:o,type:"button","data-close-btn":"true",children:s.jsx(S,{"data-a":"intr",name:"icon-cross"})})]})},F="data:image/svg+xml,%3csvg%20width='103'%20height='18'%20viewBox='0%200%20103%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_6919_104497)'%3e%3cpath%20d='M9.89618%203.45801C9.91951%203.45801%209.94451%203.46134%209.96784%203.46134C9.97618%203.46134%209.98284%203.46134%209.99118%203.46467H9.99784C10.0095%203.46467%2010.0212%203.46801%2010.0312%203.46801C10.0412%203.46801%2010.0462%203.46801%2010.0545%203.47134C10.0762%203.47467%2010.0962%203.47467%2010.1178%203.47634C10.1412%203.47967%2010.1662%203.48134%2010.1895%203.48467H10.2012C10.2462%203.48967%2010.2945%203.49634%2010.3395%203.50467C10.4512%203.52467%2010.5595%203.54801%2010.6662%203.57801C10.6928%203.58301%2010.7178%203.59301%2010.7445%203.60134H10.7478C10.7745%203.60967%2010.7995%203.61801%2010.8262%203.62467C10.8528%203.63301%2010.8778%203.64134%2010.9045%203.65134C10.9312%203.65967%2010.9562%203.66801%2010.9795%203.67967C11.0012%203.68801%2011.0212%203.69634%2011.0428%203.70634C11.0495%203.70967%2011.0578%203.71134%2011.0645%203.71467C11.0828%203.72301%2011.1012%203.72967%2011.1195%203.73801C11.1262%203.74134%2011.1312%203.74301%2011.1378%203.74634C11.1562%203.75467%2011.1712%203.76134%2011.1895%203.76967C11.1962%203.77301%2011.2045%203.77467%2011.2128%203.78134C11.2345%203.78967%2011.2528%203.79801%2011.2728%203.80967C11.2762%203.80967%2011.2795%203.81301%2011.2812%203.81301C11.3045%203.82467%2011.3295%203.83634%2011.3512%203.84801C11.3695%203.85634%2011.3878%203.86801%2011.4062%203.87634C11.4212%203.88134%2011.4328%203.89134%2011.4462%203.89967C11.4645%203.91134%2011.4828%203.91967%2011.5012%203.93134C11.5045%203.93467%2011.5078%203.93467%2011.5095%203.93634L11.5728%203.97467H11.5762L15.2178%206.18801L15.4412%206.32467C16.3228%206.90801%2016.9028%207.88467%2016.9028%208.99301C16.9028%2010.1013%2016.3262%2011.0763%2015.4445%2011.6613L15.2095%2011.803L11.5745%2014.0113H11.5712L11.5078%2014.0497C11.5078%2014.0497%2011.5012%2014.053%2011.4995%2014.0547C11.4812%2014.0663%2011.4628%2014.0747%2011.4445%2014.0863C11.4595%2014.078%2011.4745%2014.0697%2011.4895%2014.0597L5.94951%2017.433C5.94951%2017.433%205.94618%2017.433%205.94618%2017.4363L5.74451%2017.558H5.74118C5.19784%2017.863%204.55784%2018.0247%203.87784%2017.993C2.73618%2017.938%201.75784%2017.3463%201.19284%2016.4847C0.837844%2015.9413%200.64451%2015.2913%200.681177%2014.6013C0.71451%2013.983%200.922844%2013.4147%201.26118%2012.9397L1.26951%2012.9247L4.04451%208.99634L6.77784%205.12634C6.81118%205.07967%206.84784%205.03301%206.87784%204.98467C6.87451%204.98967%206.86951%204.99967%206.86284%205.00467C6.87118%204.98967%206.88118%204.97634%206.88951%204.96134C6.88951%204.95801%206.89284%204.95801%206.89284%204.95634C6.89618%204.95301%206.89951%204.94801%206.90118%204.94467C6.90118%204.94467%206.90118%204.94134%206.90451%204.94134C6.91951%204.92134%206.93451%204.90134%206.94618%204.87801C6.96118%204.85801%206.97618%204.83801%206.99118%204.81634C7.00618%204.79634%207.02118%204.77634%207.03618%204.75467C7.03951%204.75134%207.03951%204.74967%207.04284%204.74634C7.04618%204.74301%207.04618%204.74134%207.04951%204.74134C7.06451%204.72134%207.07951%204.70134%207.09784%204.67967C7.10951%204.66467%207.12118%204.65134%207.13451%204.63634C7.16784%204.59801%207.20118%204.56134%207.23784%204.52301C7.25284%204.50801%207.26451%204.49467%207.27951%204.47967C7.30118%204.45634%207.32118%204.43634%207.34618%204.41634C7.36451%204.39967%207.38284%204.38134%207.40118%204.36467C7.41951%204.34801%207.43451%204.33301%207.45284%204.31801C7.45618%204.31467%207.45951%204.31301%207.45951%204.31301C7.47118%204.30134%207.48118%204.29301%207.49284%204.28467C7.50451%204.27301%207.51951%204.26134%207.53284%204.25301C7.53618%204.24967%207.53951%204.24801%207.54118%204.24801C7.55951%204.23301%207.57451%204.21967%207.59284%204.20467C7.60784%204.18967%207.62618%204.17801%207.64118%204.16634C7.65618%204.15467%207.66784%204.14634%207.68284%204.13467C7.70118%204.11967%207.71951%204.10801%207.73784%204.09467C7.75284%204.08634%207.76451%204.07467%207.77951%204.06634C7.78618%204.06134%207.79451%204.05467%207.80284%204.05134C7.81784%204.03967%207.83284%204.03134%207.84784%204.02301C7.85118%204.01967%207.85618%204.01801%207.85951%204.01467C7.87784%204.00301%207.89618%203.99134%207.91118%203.98301C7.91784%203.97801%207.92618%203.97467%207.93284%203.96801C7.94784%203.95967%207.95951%203.95134%207.97451%203.94134C7.98284%203.93634%207.99284%203.92967%208.00118%203.92467C8.01618%203.91634%208.03451%203.90801%208.04951%203.89634C8.05284%203.89301%208.05784%203.89134%208.06451%203.88801C8.08618%203.87634%208.10451%203.86467%208.12451%203.85634C8.12784%203.85301%208.13118%203.85301%208.13618%203.85134C8.15784%203.83967%208.17784%203.82801%208.19951%203.81967C8.19951%203.81967%208.20284%203.81967%208.20284%203.81634C8.22618%203.80467%208.24784%203.79301%208.27284%203.78134C8.27284%203.78134%208.27618%203.78134%208.27618%203.77801C8.29451%203.76967%208.31284%203.76134%208.33284%203.75134C8.34118%203.74801%208.35118%203.74301%208.35951%203.73967C8.37118%203.73467%208.38284%203.72801%208.39618%203.72467C8.41118%203.71967%208.42284%203.71301%208.43784%203.70801C8.46118%203.69967%208.48284%203.69134%208.50784%203.68134C8.52284%203.67634%208.53451%203.66967%208.54951%203.66634C8.57118%203.65801%208.59118%203.65134%208.61284%203.64301C8.63118%203.63801%208.65284%203.63134%208.66951%203.62301C8.75451%203.59634%208.83784%203.57134%208.92284%203.54967C8.94118%203.54467%208.96284%203.54134%208.97951%203.53801C9.08451%203.51467%209.19451%203.49467%209.30284%203.48301C9.32951%203.47967%209.35784%203.47801%209.38451%203.47467C9.42118%203.47134%209.45951%203.46967%209.49618%203.46634C9.51118%203.46634%209.52284%203.46301%209.53784%203.46301H9.55951C9.58951%203.46301%209.61618%203.45967%209.64784%203.45967H9.73784C9.79451%203.45967%209.84284%203.45967%209.89451%203.46301L9.89618%203.45801ZM10.6662%2014.413C10.5612%2014.4413%2010.4512%2014.4647%2010.3395%2014.4863C10.4512%2014.4663%2010.5595%2014.443%2010.6662%2014.413ZM9.56118%2014.5313H9.56951C9.56118%2014.5313%209.54784%2014.5313%209.53951%2014.528C9.54618%2014.528%209.55451%2014.5313%209.56118%2014.5313ZM7.08784%2013.293C7.05451%2013.253%207.02451%2013.2147%206.99451%2013.1747C7.02451%2013.2147%207.05784%2013.253%207.08784%2013.293ZM6.90284%2013.043C6.90284%2013.043%206.90618%2013.0463%206.90618%2013.048C6.90284%2013.0447%206.90284%2013.043%206.89951%2013.0363C6.89618%2013.033%206.89618%2013.0297%206.89284%2013.0247C6.86951%2012.9897%206.84784%2012.953%206.82284%2012.918C6.84451%2012.953%206.86784%2012.9913%206.88951%2013.0247C6.89618%2013.0297%206.89784%2013.0363%206.90118%2013.0413L6.90284%2013.043ZM6.89451%2013.0263C6.85784%2012.968%206.81951%2012.913%206.77618%2012.858L6.89451%2013.0263Z'%20fill='%231652A8'%20style='fill:%231652A8;fill:color(display-p3%200.0863%200.3216%200.6588);fill-opacity:1;'/%3e%3cg%20opacity='0.85'%3e%3cpath%20d='M5.77088%200.453306L5.97588%200.578306L5.97921%200.581639L11.5225%203.94997C11.5075%203.94164%2011.4925%203.93331%2011.4775%203.92331C11.4959%203.93497%2011.5142%203.94331%2011.5325%203.95497C11.5359%203.95831%2011.5392%203.95831%2011.5409%203.95997L11.6042%203.99831H11.6075L15.2492%206.21164L15.4725%206.34831C16.3542%206.93164%2016.9342%207.9083%2016.9342%209.01664C16.9342%2010.125%2016.3575%2011.1%2015.4759%2011.685L15.2409%2011.8266L11.6059%2014.035H11.6025L11.5392%2014.0733C11.5392%2014.0733%2011.5325%2014.0766%2011.5309%2014.0783C11.5125%2014.09%2011.4942%2014.0983%2011.4759%2014.11C11.4642%2014.1183%2011.4492%2014.125%2011.4359%2014.1333C11.4175%2014.145%2011.3992%2014.1533%2011.3809%2014.1616C11.3575%2014.1733%2011.3359%2014.185%2011.3109%2014.1966C11.3075%2014.2%2011.3042%2014.2%2011.3025%2014.2C11.2842%2014.2116%2011.2625%2014.22%2011.2425%2014.2283C11.2359%2014.2316%2011.2275%2014.2333%2011.2192%2014.24C11.2009%2014.2483%2011.1859%2014.255%2011.1675%2014.2633C11.1609%2014.2666%2011.1592%2014.2683%2011.1525%2014.2683C11.1309%2014.2766%2011.1109%2014.285%2011.0859%2014.2966C11.0625%2014.3083%2011.0342%2014.3166%2011.0109%2014.325C10.9875%2014.3333%2010.9592%2014.345%2010.9359%2014.3533C10.9092%2014.3616%2010.8842%2014.37%2010.8575%2014.38C10.8309%2014.3883%2010.8059%2014.3966%2010.7792%2014.4033H10.7759C10.7492%2014.4116%2010.7242%2014.4183%2010.6975%2014.4266C10.5925%2014.455%2010.4825%2014.4783%2010.3709%2014.4983C10.3259%2014.5066%2010.2775%2014.5133%2010.2325%2014.5183C10.2259%2014.5183%2010.2242%2014.5183%2010.2209%2014.5216C10.1975%2014.525%2010.1725%2014.5283%2010.1492%2014.53C10.1009%2014.5366%2010.0525%2014.5383%2010.0042%2014.5416C9.92921%2014.5483%209.85254%2014.5483%209.77754%2014.5483H9.68088C9.65421%2014.5483%209.62921%2014.545%209.60254%2014.545C9.59421%2014.545%209.58088%2014.545%209.57254%2014.5416C9.53254%2014.5383%209.49088%2014.5366%209.45254%2014.5333C9.27421%2014.5166%209.09588%2014.4866%208.92754%2014.4466C8.90421%2014.44%208.87921%2014.435%208.85254%2014.4266C8.81921%2014.4183%208.78588%2014.41%208.74921%2014.3983C8.73088%2014.3933%208.70921%2014.3866%208.69254%2014.3816C8.66588%2014.3733%208.64088%2014.365%208.61421%2014.355C8.58754%2014.3466%208.56254%2014.3383%208.53921%2014.3266C8.51588%2014.3183%208.48754%2014.3066%208.46421%2014.2983C8.44088%2014.29%208.41921%2014.2816%208.39754%2014.27C8.38921%2014.2666%208.38254%2014.265%208.37421%2014.2583C8.35588%2014.25%208.33754%2014.2416%208.31754%2014.2316C8.31754%2014.2316%208.31421%2014.2316%208.31421%2014.2283C8.29088%2014.2166%208.26588%2014.205%208.24254%2014.1933C8.21921%2014.1816%208.19421%2014.17%208.17088%2014.155C8.14754%2014.1433%208.12254%2014.1283%208.10088%2014.1166C8.07754%2014.105%208.05254%2014.09%208.03088%2014.0766C8.00754%2014.0616%207.98588%2014.0483%207.96088%2014.0366C7.93754%2014.0216%207.91588%2014.0083%207.89421%2013.9933C7.87254%2013.9783%207.85254%2013.965%207.83088%2013.95C7.82754%2013.95%207.82754%2013.9466%207.82421%2013.945C7.80588%2013.9333%207.78754%2013.9183%207.76754%2013.905C7.76421%2013.9016%207.76088%2013.9016%207.75921%2013.9C7.74088%2013.885%207.72254%2013.8733%207.70421%2013.86C7.70088%2013.8566%207.69588%2013.855%207.69254%2013.8483C7.67421%2013.8333%207.65588%2013.82%207.63754%2013.805C7.63754%2013.805%207.63421%2013.805%207.63421%2013.8016C7.61588%2013.7866%207.59754%2013.7733%207.57754%2013.755C7.57421%2013.7516%207.57088%2013.7516%207.56921%2013.7483C7.55421%2013.7366%207.53921%2013.7216%207.52421%2013.71C7.51754%2013.705%207.51254%2013.6983%207.50588%2013.695C7.49421%2013.6833%207.47921%2013.6716%207.46588%2013.66C7.43921%2013.6366%207.41421%2013.6133%207.39088%2013.5866C7.37254%2013.57%207.35754%2013.5516%207.33921%2013.535C7.32754%2013.5233%207.31754%2013.5116%207.30588%2013.5C7.29421%2013.4883%207.28421%2013.48%207.27588%2013.4683C7.25754%2013.4516%207.24254%2013.43%207.22421%2013.4133C7.19088%2013.375%207.15754%2013.3383%207.12421%2013.2966C7.09088%2013.2566%207.06088%2013.2183%207.03088%2013.1783C7.01588%2013.1583%207.00088%2013.1383%206.98588%2013.1166C6.97088%2013.0966%206.95588%2013.0766%206.94421%2013.0533C6.94088%2013.05%206.94088%2013.0483%206.93754%2013.0416C6.93421%2013.0383%206.93421%2013.0366%206.93088%2013.03C6.90754%2012.995%206.88588%2012.9583%206.86088%2012.9233C6.88254%2012.9583%206.90588%2012.995%206.92754%2013.03C6.89088%2012.9716%206.85254%2012.9166%206.80921%2012.8616L4.07921%208.99664L1.34088%205.12997L1.23254%204.97664L1.22921%204.97164C0.92421%204.51164%200.737543%203.97497%200.707543%203.39497C0.670877%202.70497%200.86421%202.05164%201.22088%201.50997C1.78588%200.648306%202.76588%200.0566391%203.90421%20-2.75556e-05C4.58421%20-0.0150276%205.22421%200.148306%205.77088%200.453306Z'%20fill='url(%23paint0_linear_6919_104497)'%20style=''/%3e%3c/g%3e%3cpath%20d='M32.4132%2012.862C31.2015%2012.862%2030.4482%2012.0503%2030.4482%2010.7203V8.4453H32.6632V7.02697H30.4482V4.72363L28.8548%205.9053V7.0253H27.9648V8.44363H28.8548V10.7053C28.8548%2012.9953%2030.1982%2014.412%2032.4282%2014.412H32.7682V12.862H32.4132Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M19.9812%2012.5767L21.4028%2011.4651C22.0395%2012.4867%2022.8995%2013.0351%2023.9962%2013.0351C25.1962%2013.0351%2025.9512%2012.2651%2025.9512%2011.3017C25.9512%2010.1901%2024.7662%209.83506%2023.5212%209.43506C22.0545%208.96172%2020.4695%208.36839%2020.4695%206.38339C20.4695%204.73839%2021.9362%203.43506%2023.9362%203.43506C25.5812%203.43506%2026.6028%204.07172%2027.4328%205.03506L26.1145%206.01339C25.6262%205.25839%2024.8995%204.85839%2023.9362%204.85839C22.8395%204.85839%2022.1278%205.51006%2022.1278%206.35506C22.1278%207.39172%2023.2695%207.73339%2024.5128%208.14839C25.9945%208.65172%2027.6095%209.29006%2027.6095%2011.3051C27.6095%2012.9651%2026.2462%2014.5501%2024.0095%2014.5501C22.1578%2014.5501%2020.8978%2013.7651%2019.9795%2012.5801L19.9812%2012.5767Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M38.2695%2010.7367C38.2695%208.56503%2039.9379%206.8667%2042.1095%206.8667C44.2812%206.8667%2045.9062%208.4467%2045.9062%2010.6334V11.2534H39.7912C39.9979%2012.39%2040.8845%2013.1434%2042.1695%2013.1434C43.1745%2013.1434%2043.9429%2012.6117%2044.3262%2011.8134L45.6262%2012.5367C44.9762%2013.7484%2043.8095%2014.545%2042.1695%2014.545C39.8362%2014.545%2038.2695%2012.8767%2038.2695%2010.735V10.7367ZM39.8645%209.91003H44.2962C44.0595%208.8467%2043.2479%208.25503%2042.1095%208.25503C40.9712%208.25503%2040.1595%208.93503%2039.8645%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M33.7549%2010.72C33.7549%208.42999%2035.0982%207.02832%2037.3282%207.02832H38.0366V8.56499H37.3132C36.1016%208.56499%2035.3199%209.40665%2035.3349%2010.7367V14.415H33.7549V10.7233V10.72Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M46.6882%2010.7218C46.6882%208.56517%2048.3865%206.88184%2050.5132%206.88184C52.6399%206.88184%2054.3082%208.56517%2054.3082%2010.7218V14.4135H52.7582V13.4535C52.2415%2014.1468%2051.4432%2014.5468%2050.4682%2014.5468C48.3565%2014.5468%2046.6865%2012.8935%2046.6865%2010.7218H46.6882ZM52.7882%2010.7218C52.7882%209.40684%2051.7832%208.3585%2050.5132%208.3585C49.2432%208.3585%2048.2382%209.40684%2048.2382%2010.7218C48.2382%2012.0368%2049.2282%2013.0852%2050.5132%2013.0852C51.7982%2013.0852%2052.7882%2012.0218%2052.7882%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M55.3027%2010.2717C55.3027%208.30667%2056.6461%206.875%2058.6411%206.875C59.7777%206.875%2060.6944%207.33333%2061.2694%208.10167C61.8161%207.33333%2062.7027%206.875%2063.8394%206.875C65.8477%206.875%2067.2511%208.27833%2067.2511%2010.2717V14.4067H65.6711V10.2867C65.6711%209.165%2064.9177%208.38167%2063.8394%208.38167C62.7611%208.38167%2062.0527%209.18%2062.0677%2010.2433V14.4083H60.4877V10.2883C60.4877%209.16667%2059.7194%208.38333%2058.6411%208.38333C57.5627%208.38333%2056.8694%209.18167%2056.8827%2010.245V14.41H55.3027V10.275V10.2717Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M68.2646%203.62695H69.8746V12.872H74.2313V14.4086H68.2646V3.62695Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M89.418%2010.7367C89.418%208.56503%2091.0863%206.8667%2093.258%206.8667C95.4296%206.8667%2097.0546%208.4467%2097.0546%2010.6334V11.2534H90.9396C91.1463%2012.39%2092.033%2013.1434%2093.318%2013.1434C94.323%2013.1434%2095.0913%2012.6117%2095.4746%2011.8134L96.7746%2012.5367C96.1246%2013.7484%2094.958%2014.545%2093.318%2014.545C90.9846%2014.545%2089.418%2012.8767%2089.418%2010.735V10.7367ZM91.013%209.91003H95.4446C95.208%208.8467%2094.3963%208.25503%2093.258%208.25503C92.1196%208.25503%2091.308%208.93503%2091.013%209.91003Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M74.4948%2010.7218C74.4948%208.56517%2076.1932%206.88184%2078.3198%206.88184C80.4465%206.88184%2082.1148%208.56517%2082.1148%2010.7218V14.4135H80.5648V13.4535C80.0482%2014.1468%2079.2498%2014.5468%2078.2748%2014.5468C76.1632%2014.5468%2074.4932%2012.8935%2074.4932%2010.7218H74.4948ZM80.5948%2010.7218C80.5948%209.40684%2079.5898%208.3585%2078.3198%208.3585C77.0498%208.3585%2076.0448%209.40684%2076.0448%2010.7218C76.0448%2012.0368%2077.0348%2013.0852%2078.3198%2013.0852C79.6048%2013.0852%2080.5948%2012.0218%2080.5948%2010.7218Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M85.0381%2014.0498L81.9814%207.0498H83.6798L85.8364%2012.1748L87.8748%207.0498H89.5431L85.0831%2017.8465H83.4581L85.0381%2014.0515V14.0498Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3cpath%20d='M98.041%2010.7151C98.041%208.4251%2099.3843%207.02344%20101.614%207.02344H102.323V8.5601H101.599C100.388%208.5601%2099.606%209.40177%2099.621%2010.7318V14.4101H98.041V10.7184V10.7151Z'%20fill='%23687C8B'%20style='fill:%23687C8B;fill:color(display-p3%200.4078%200.4863%200.5451);fill-opacity:1;'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_6919_104497'%20x1='4.31754'%20y1='8.70664'%20x2='13.6359'%20y2='3.59497'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.2'%20stop-color='%231589EE'%20style='stop-color:%231589EE;stop-color:color(display-p3%200.0824%200.5373%200.9333);stop-opacity:1;'/%3e%3cstop%20offset='1'%20stop-color='%235EB4FF'%20style='stop-color:%235EB4FF;stop-color:color(display-p3%200.3686%200.7059%201.0000);stop-opacity:1;'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_6919_104497'%3e%3crect%20width='101.648'%20height='18'%20fill='white'%20style='fill:white;fill-opacity:1;'%20transform='translate(0.675781)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",y=l.styled_default("div")({name:"SponsorLogoWrap",class:"s8p5v5z",propsAsIs:!1}),O=()=>d.B1,R=l.styled_default(O())({name:"SponsorLogo",class:"s755yti",propsAsIs:!0}),W=l.styled_default("img")({name:"AdSponsorLogo",class:"a1dflj8e",propsAsIs:!1}),z=({mastersApp:e,sponsorLogo:a})=>e?s.jsx(y,{children:s.jsx(R,{name:"mastersLogo"})}):a?s.jsx(y,{children:s.jsx(W,{src:a,alt:"ad-sponsor-logo"})}):s.jsx(y,{children:s.jsx("img",{src:F,alt:"stream-layer-logo"})}),G=l.styled_default("div")({name:"Container",class:"cq8qxhy",propsAsIs:!1}),J=l.styled_default("div")({name:"VideoWrapper",class:"v18kj6dc",propsAsIs:!1}),K=()=>m.Fe,X=l.styled_default(K())({name:"FocusableVideo",class:"fv2nwib",propsAsIs:!0}),g=l.styled_default("div")({name:"VideoStatus",class:"v8ptucg",propsAsIs:!1}),A="caip8y5",Y=l.styled_default("div")({name:"Content",class:"ccgc65e",propsAsIs:!1}),s2=l.styled_default("h3")({name:"Title",class:"t1q3iml2",propsAsIs:!1}),e2=l.styled_default("div")({name:"Description",class:"d1y2pxs8",propsAsIs:!1}),l2=l.styled_default("img")({name:"Image",class:"ig2j4fc",propsAsIs:!1}),a2=l.styled_default("div")({name:"ImageContainer",class:"i3dd6iy",propsAsIs:!1}),t2=({instantView:e,isDetail:a,notification:t,controlVideo:o,muted:n})=>{const c=r.useRef(null),[i,p]=r.useState(!1),[f,u]=r.useState(void 0),h=e?.playVideoMuted===C.PlayVideoMuted.ENABLED,_=a&&e?.autoPlayVideo===C.AutoPlayVideo.ENABLED,B=h&&_,x=e?.heading,V=e?.body,L=x||V,[j,M]=r.useState(!0),b=t?.title,w=t?.body;return s.jsxs(G,{children:[e?.video?.url&&s.jsxs(J,{children:[s.jsx(X,{className:A,source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:o,muted:n,autoPlay:a&&e.autoPlayVideo===C.AutoPlayVideo.ENABLED,ref:c,onPause:()=>{p?.(!0),M(!1)},onMute:$=>{u($)},onPlay:()=>{p?.(!1)},playMuted:h,hasNotPausedVideo:j,webos:!0}),i&&!j&&s.jsxs(g,{children:[s.jsx(d.B1,{name:"icon-pause"}),"PAUSED"]}),f&&B&&s.jsxs(g,{children:[s.jsx(d.B1,{name:"iconMute"}),"MUTED"]})]}),e?.image&&!e?.video?.url&&s.jsx(a2,{className:A,"data-rounded":e.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(l2,{src:e?.image})}),s.jsxs(Y,{children:[s.jsx(s2,{children:a&&L?x:b}),s.jsx(e2,{children:a&&L?V:w})]})]})},i2=l.styled_default("div")({name:"Container",class:"cgn5uen",propsAsIs:!1}),I="c1px8nt6",C2=l.styled_default("div")({name:"Content",class:"c5et2jt",propsAsIs:!1}),o2=l.styled_default("h3")({name:"Title",class:"t1i2kpk2",propsAsIs:!1}),c2=l.styled_default("div")({name:"Description",class:"dd3lh3p",propsAsIs:!1}),d2=l.styled_default("img")({name:"Image",class:"i1gfjeu5",propsAsIs:!1}),n2=l.styled_default("div")({name:"ImageContainer",class:"i58y999",propsAsIs:!1}),v=({instantView:e,isDetail:a,notification:t,controlVideo:o,muted:n})=>{const c=e?.heading,i=e?.body,p=c||i,f=t?.title,u=t?.body;return s.jsxs(i2,{children:[e?.video?.url&&s.jsx(m.Fe,{className:I,source:e.video.url,poster:e.video.thumbnailUrl,controlVideo:o,muted:n,autoPlay:a&&e.autoPlayVideo===C.AutoPlayVideo.ENABLED}),e?.image&&!e?.video?.url&&s.jsx(n2,{className:I,"data-rounded":e.imageMode===C.QuestionImages.ROUNDED,children:s.jsx(d2,{src:e?.image})}),s.jsxs(C2,{children:[s.jsx(o2,{children:a&&p?c:f}),s.jsx(c2,{children:a&&p?i:u})]})]})},p2=l.styled_default("div")({name:"Container",class:"c1euiow",propsAsIs:!1}),r2=l.styled_default("a")({name:"WebLinkBtn",class:"w19zie3h",propsAsIs:!1}),f2=()=>d.B1,u2=l.styled_default(f2())({name:"WebLinkIcon",class:"wyg5v7z",propsAsIs:!0}),y2=({instantView:e,...a})=>s.jsxs(p2,{children:[a.webos?s.jsx(t2,{instantView:e,...a,isDetail:!0}):s.jsx(v,{instantView:e,...a,isDetail:!0}),e?.webLink&&s.jsxs(r2,{href:e?.webLink.url,target:"_blank","data-a":"web-link",children:[e?.webLink.label,s.jsx(u2,{name:"icon-external-link"})]})]}),m2=l.styled_default("div")({name:"Container",class:"c1dcxmvf",propsAsIs:!1}),h2=l.styled_default("blockquote")({name:"Quote",class:"qb4q22c",propsAsIs:!1}),x2=e=>s.jsxs(m2,{children:[e.title&&s.jsx(h2,{children:e.title}),s.jsx(H.N,{...e,isDetail:!0})]});exports.D=v;exports.O=U;exports.a=x2;exports.d=z;exports.f=y2;
1
+ "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./feature.js"),se=require("./index10.js"),v=require("./index8.js"),n=require("./useStreamLayerApp2.js"),me=require("./index9.js"),he=require("./index5.js"),Ne=s.styled_default("div")({name:"SDKContainer",class:"sopqfe6",propsAsIs:!1}),xe=s.styled_default("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),ne=s.styled_default("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),Oe=()=>ne,ae=s.styled_default(Oe())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),Ve=()=>ae,Le=s.styled_default(Ve())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),Be=s.styled_default("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),Fe=()=>ne,We=s.styled_default(Fe())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),Me=()=>ae,ze=s.styled_default(Me())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),Ye=s.styled_default("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});let Ue=class{observers=new Set;subscribe(r){this.observers.add(r)}unsubscribe(r){this.observers.delete(r)}notify(r){this.observers.forEach(l=>l(r))}};const Y=new Ue,Ke={hiding:!1,finished:!1},Ie=()=>{const[t,r]=o.useState(Ke),l=o.useRef(null);o.useEffect(()=>{const u=y=>{r(y)};return Y.subscribe(u),()=>{Y.unsubscribe(u)}},[]);const d=o.useCallback(u=>{const y={hiding:!0,finished:!1};l.current&&clearTimeout(l.current),u?.delay?l.current=setTimeout(()=>{Y.notify(y)},u?.delay):Y.notify(y)},[]),a=o.useCallback(()=>{t.hiding&&(l.current=null,Y.notify({hiding:!1,finished:!0}))},[t.hiding]);return{...t,runAnimation:d,onAnimationEnd:a}},He=s.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),Ze="sx17qu6",Ge="h1692c5m",re=({children:t,style:r,className:l,enabled:d=!0,hiding:a,onAnimationEnd:u})=>e.jsx(He,{style:r,className:s.cx_default(l,d&&Ze,d&&a&&Ge),onAnimationEnd:u,children:t}),Je=()=>re,Xe=s.styled_default(Je())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),je=({children:t,style:r,enabled:l,animate:d,...a})=>{const u=o.useRef(null);return e.jsx(Xe,{...a,enabled:l&&d,style:{...r,...(()=>{const y=u?.current,I=(y&&window.getComputedStyle(y))?.getPropertyValue("height");return l?{height:d?I:0}:{}})()},children:e.jsx("div",{ref:u,children:t})})},es=s.styled_default("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),ss=s.styled_default("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),ts=s.styled_default("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),ns=()=>v.B1,as=s.styled_default(ns())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),rs=({icon:t,title:r,description:l})=>e.jsxs(es,{children:[e.jsx(as,{name:t}),e.jsx(ss,{children:r}),e.jsx(ts,{children:l})]}),is=()=>je,os=s.styled_default(is())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),N=s.styled_default("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),ue="s1g20ja7",ls=s.styled_default("div")({name:"Container",class:"c455ozj",propsAsIs:!1}),ds=()=>v.B1,pe=s.styled_default(ds())({name:"IconPrediction",class:"i1913njx",propsAsIs:!0}),U=s.styled_default("div")({name:"FeedbackIconWrap",class:"fzfk69z",propsAsIs:!1}),H=s.styled_default("div")({name:"FeedbackHeader",class:"fx87qaj",propsAsIs:!1}),cs=s.styled_default("span")({name:"FeedbackTitle",class:"fvek9ew",propsAsIs:!1}),O=s.styled_default("span")({name:"FeedbackDescription",class:"f1kbtp09",propsAsIs:!1}),us=s.styled_default("div")({name:"FeedbackTitleWrap",class:"f4i8rro",propsAsIs:!1}),ps=s.styled_default("div")({name:"FeedbackResultDescriptionWrap",class:"fqyssr",propsAsIs:!1}),fs=()=>O,ys=s.styled_default(fs())({name:"FeedbackDynamicDescription",class:"fyv794i",propsAsIs:!0}),ms=()=>O,hs=s.styled_default(ms())({name:"FeedbackResultDescription",class:"f1jkj9vx",propsAsIs:!0}),te=s.styled_default("div")({name:"FeedbackText",class:"f1pxh3a6",propsAsIs:!1}),xs=s.styled_default("span")({name:"DynamicWrap",class:"d1afvufn",propsAsIs:!1}),Is=s.styled_default("div")({name:"EarlyFeedbackDescription",class:"eq8u24d",propsAsIs:!1}),fe=({feedbackMessages:t,questionVotedCorrectly:r,questionVoted:l,questionType:d,hasCorrectAnswer:a,showExpiredNotification:u,showClosedNotificationTrivia:y,votedInCurrentRender:I,votedAfterQuestionClosed:i,voteErrorMessage:f,enteredAnActiveQuestion:C,marketClosed:g,percentsAnimated:j,votedAnswer:R,isEarlyPrediction:m,correctAnswer:T,onAnimationEnd:_})=>{const b=l&&(d===n.QuestionType.TRIVIA||d===n.QuestionType.PREDICTION),Q=d===n.QuestionType.PREDICTION&&!a,q=g&&d===n.QuestionType.PREDICTION&&!l||d===n.QuestionType.PREDICTION&&i&&I&&C,A=b&&Q,k=b&&a,h=d===n.QuestionType.PREDICTION&&l&&I&&a,V=l&&d===n.QuestionType.POLL&&I,E=r?"correct":"incorrect",S=r?t?.correctFeedback:t?.incorrectFeedback;return u||y||A||k||q||V||h||f?e.jsx(os,{enabled:I,animate:!f&&u?!0:j,onAnimationEnd:_,children:e.jsxs(ls,{"data-prediction":Q,children:[f&&!q&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"questionExpired"}),e.jsx(O,{children:f})]}),!f&&u&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Expired"})}),e.jsx(te,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!f&&y&&e.jsxs(N,{className:s.cx_default(ue),children:[e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Closed"})}),e.jsx(te,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),q&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:m?a?"The results are already in!":"Question is Closed":"Question Closed"})}),e.jsx(te,{children:m?e.jsx(Is,{children:a?`Correct: ${T?.text}`:"Event affecting the outcome has occurred."}):"This event has already taken place, so the ability to make a prediction on its outcome is no longer available."})]})]}),!f&&A&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"icon-prediction"}),e.jsxs(ys,{children:["Your pick has been recorded. ",e.jsx(xs,{children:"We’ll notify you of the result."})]})]}),!f&&V&&e.jsxs(N,{children:[!m&&e.jsx(U,{"data-feedback-type":"correct",children:e.jsx(v.B1,{name:"correct"})}),e.jsx(O,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!f&&(k||h)&&e.jsxs(N,{className:s.cx_default(y&&ue),children:[!m&&e.jsx(U,{"data-feedback-type":E,children:e.jsx(v.B1,{name:E})}),e.jsx("div",{children:e.jsxs(H,{children:[m?e.jsx(us,{children:E==="incorrect"?e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"So close!"}),e.jsx("div",{children:"Better luck next time"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"That’s correct!"}),e.jsx("div",{children:"You chose wisely."})]})}):e.jsx(cs,{"data-feedback-type":E,children:S?.title}),m?e.jsxs(ps,{children:[e.jsxs("div",{children:["Your pick: ",R?.text]}),e.jsx("div",{children:E==="incorrect"?`Correct: ${T?.text}`:""})]}):e.jsx(hs,{children:S?.description})]})})]})]})}):null},js=s.styled_default("div")({name:"Container",class:"c1hygj0s",propsAsIs:!1}),Ts=s.styled_default("div")({name:"Title",class:"t1r84tez",propsAsIs:!1}),As=s.styled_default("div")({name:"Description",class:"d1aj1a7k",propsAsIs:!1}),vs=s.styled_default("div")({name:"AdditionalDescription",class:"ax09ezs",propsAsIs:!1}),Cs=()=>v.B1,Es=s.styled_default(Cs())({name:"Icon",class:"inkrac",propsAsIs:!0}),gs=({icon:t,title:r,description:l,additionalDescription:d})=>e.jsxs(js,{children:[t&&e.jsx(Es,{name:t}),e.jsx(Ts,{children:r}),e.jsx(As,{children:l}),d&&e.jsx(vs,{children:d})]}),Te=s.styled_default("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),bs=()=>xe,$s=s.styled_default(bs())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),ws=s.styled_default("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),_s=s.styled_default("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),Qs=s.styled_default("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),Ae=s.styled_default("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),Ps=s.styled_default("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),Rs=s.styled_default("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),ve=s.styled_default("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),qs=()=>re,ye=s.styled_default(qs())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),ks=s.styled_default("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),Ss=()=>v.B1,Ds=s.styled_default(Ss())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),Ns=()=>v.B1,Os=s.styled_default(Ns())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0}),Vs=s.styled_default("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),Ls=s.styled_default("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),Bs=s.styled_default("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),Fs=s.styled_default("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),Ws=s.styled_default("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),Ms=s.styled_default("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ce=s.styled_default("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),zs=()=>Ce,Ys=s.styled_default(zs())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),Us=()=>Ce,Ks=s.styled_default(Us())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),Hs=s.styled_default("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),Zs=s.styled_default("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),Gs=s.styled_default("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),Js=s.styled_default("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),Xs=s.styled_default("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),et=()=>v.B1,st=s.styled_default(et())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),tt={[n.QuestionImages.CENTERED]:t=>e.jsx(Ys,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.TRANSPARENT]:t=>e.jsx(Ws,{"data-testid":"vote-icon",children:e.jsx(Ms,{style:{backgroundImage:`url(${t})`}})}),[n.QuestionImages.ROUNDED]:t=>e.jsx(Ks,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.NONE]:()=>null,[n.QuestionImages.UNSET]:()=>null},nt=({questionType:t,hasCorrectAnswer:r,correct:l,youVoted:d,questionVoted:a})=>{if(t===n.QuestionType.POLL&&d)return"voted";if(t===n.QuestionType.PREDICTION){if(!r&&a)return d?"voted":"unset";if(r&&a)return d?l?"correct":"incorrect":"unset";if(d)return"correct"}return t===n.QuestionType.TRIVIA&&a&&d?l?"correct":"incorrect":"unset"},at=({questionType:t,questionVoted:r,correct:l,hasCorrectAnswer:d,questionStatus:a})=>t===n.QuestionType.TRIVIA?r&&l:t===n.QuestionType.PREDICTION?r&&l&&d||a===n.QuestionStatus.RESOLVED&&l:!1,rt=me.b(Vs),it=t=>{const{id:r,icon:l,text:d,percentageDecimal:a,points:u,onVote:y,markThatVoted:I,firstOption:i,onPercentsAnimated:f,youSelected:C,youVoted:g,questionVoted:j,imageMode:R,answerTimeExpired:m,questionStatus:T,isLoading:_,questionType:b,correct:Q,hasCorrectAnswer:q,marketClosed:A,isEarlyPrediction:k,isAd:h,webos:V}=t,[E,S]=o.useState(0),L=nt(t),M=at({questionType:b,questionVoted:j,correct:Q,hasCorrectAnswer:q,questionStatus:T}),P=A&&b===n.QuestionType.PREDICTION,K=j||P,B=b===n.QuestionType.PREDICTION&&!j&&!A&&!h,z=j&&!C&&L!=="incorrect"&&!g;return o.useLayoutEffect(()=>{S(0),requestAnimationFrame(()=>{S(a)})},[a]),e.jsxs(rt,{value:r,webos:V,autoFocus:i,"data-selected":C,"data-answer-state":L,disabled:j||_||m||P,"data-is-not-checked":z,"data-a":"intr",onClick:Z=>{I(b===n.QuestionType.PREDICTION?A:T===n.QuestionStatus.RESOLVED),y(Z)},"data-is-ad":h,children:[e.jsx(Ls,{children:e.jsx(Bs,{"data-answer-state":L,"data-is-not-checked":z,style:{width:`${K?E:0}%`},onTransitionEnd:()=>{P||f?.()},"data-is-ad":h})}),e.jsxs(Fs,{"data-a":"intr",children:[l&&R&&tt[R]?.(l),e.jsx(Hs,{"data-a":"intr",children:d}),B&&e.jsxs(Gs,{children:[u,e.jsx(Js,{children:"pts"})]}),K&&e.jsxs(Zs,{children:[M&&e.jsx(st,{name:k?"selectedBetPack":"selected"}),e.jsx(Xs,{children:e.jsx(he.p,{value:a,suffix:"%"})})]})]})]})},ot=()=>je,lt=s.styled_default(ot())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),dt=s.styled_default("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),ct=s.styled_default("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ut=s.styled_default("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),pt=()=>v.B1,ft=s.styled_default(pt())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),yt=s.styled_default("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),mt=s.styled_default("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),ht=s.styled_default("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),xt=({title:t,points:r,isPlayingTimer:l,isTimer:d,animatePoints:a,questionType:u,timerDuration:y,votedInCurrentRender:I,percentsAnimated:i,onTimerExpired:f})=>e.jsx(lt,{enabled:u===n.QuestionType.PREDICTION&&I,animate:i,children:e.jsxs(dt,{style:{justifyContent:u===n.QuestionType.PREDICTION?"center":"space-between"},children:[e.jsxs(ct,{children:[t&&e.jsx(ut,{children:t}),r!==void 0&&u!==n.QuestionType.POLL&&e.jsxs(e.Fragment,{children:[e.jsx(ft,{name:"icon-trophy"}),e.jsxs(yt,{children:[e.jsx(mt,{children:a?e.jsx(he.p,{value:r,delay:.3}):r}),e.jsx(ht,{children:"PTS"})]})]})]}),d&&u!==n.QuestionType.PREDICTION&&e.jsx(me.L,{isPlaying:l,onTimerExpired:f,duration:y})]})}),It=(t,r)=>t==="already_voted"?r===n.QuestionType.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.":"Something went wrong, please try again",jt=()=>e.jsx(Te,{children:e.jsxs(Ae,{children:[e.jsx(se.i,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),e.jsx(se.i,{loading:!0,style:{height:"24px",margin:"16px 0"}}),e.jsx(ve,{children:Array.from({length:5}).map((t,r)=>e.jsx(se.i,{loading:!0,style:{height:"44px"}},r))})]})}),Tt=({openedQuestion:t,isLoading:r,vote:l,close:d,isEarlyPrediction:a,mastersApp:u,webos:y})=>{const I=t.subject,i=t.type,f=t.status,C=t.options?.options,g=t.marketClosed,j=t.id,R=o.useRef(),m=o.useRef(),T=u?!1:t?.adUnit===n.AdUnit.STANDART,[_,b]=o.useState(!1),[Q,q]=o.useState(!1),[A,k]=o.useState(!0),[h,V]=o.useState(!1),[E,S]=o.useState(!1),[L,M]=o.useState(""),[P,K]=o.useState(""),[B,z]=o.useState(!1),[Z,Ee]=o.useState(!1),[ie,ge]=o.useState(!1),{runAnimation:F,hiding:oe}=Ie();o.useEffect(()=>{oe&&d(j)},[d,oe]),o.useEffect(()=>{i===n.QuestionType.PREDICTION?g&&k(!1):f===n.QuestionStatus.RESOLVED&&k(!1)},[]);const be=o.useCallback(p=>{q(p),b(!0)},[]),$e=o.useCallback(()=>{a&&b(!1)},[a]),G=o.useRef(!1),le=o.useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{ge(!0),F({delay:5500})},4e3)},[F]),de=o.useCallback(async p=>{if(!G.current&&(G.current=!0,j)){const w=p.currentTarget.value;M(w);try{await l(j,w),T&&le()}catch(W){K(It(W.message,i)),M(""),console.error("Error while voting",W),G.current=!1}}},[i,j,M,l,T,le]),we=o.useCallback(()=>{V(!0),F({delay:3500})},[F]),_e=o.useCallback(()=>{S(!0),F({delay:3500})},[F]),c=t?.answers.find(p=>p.youVoted===!0),x=o.useMemo(()=>!!t?.answers.find(p=>p.correct===!0),[t]),$=o.useMemo(()=>t?.answers.find(p=>p.correct===!0),[t]);o.useEffect(()=>{c&&_&&!Z&&(R.current=setTimeout(_e,1e4),Ee(!0))},[c]),o.useEffect(()=>()=>{clearTimeout(R.current),clearTimeout(m.current)},[]);const J=o.useMemo(()=>t?t.answers.map(p=>({...p,questionVoted:!!c,youSelected:L===p.id,isLoading:r,hasCorrectAnswer:x,questionType:t.type,answerTimeExpired:h,questionStatus:f,imageMode:t.appearance?.images,onVote:de})):[],[x,h,r,t,c,f,de,L]);o.useEffect(()=>{const p=J.some(({percentageDecimal:W})=>W!==0),w=c&&i===n.QuestionType.PREDICTION;P&&(a||!p||g&&w)&&z(!0)},[J,P,a,g,i,c]);const ce=C&&(C.case==="trivia"||C.case==="prediction")?C.value:void 0,D=f===n.QuestionStatus.RESOLVED&&i===n.QuestionType.TRIVIA&&!c&&!A,X=i===n.QuestionType.TRIVIA&&Q,ee=o.useMemo(()=>T?!1:i===n.QuestionType.PREDICTION?a?!1:!!(c&&!x||c&&x&&$?.youVoted):!0,[i,c,x,$,a,T]),Qe=o.useMemo(()=>{if(i===n.QuestionType.PREDICTION&&c&&(!x||x&&$?.youVoted))return c.points;if(!(D||h))return c?c.correct?c.pointsEarned:0:$?.points},[h,c,$,D,i,x]),Pe=o.useMemo(()=>i===n.QuestionType.PREDICTION&&c?x?x&&$?.youVoted?"You won":"":"To win":D||h?"Time expired":i===n.QuestionType.POLL?"Time remaining":c?"You won":"To win",[h,i,c,D,x,$]),Re=!ee||ee&&i===n.QuestionType.PREDICTION&&_&&!B,qe=(i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION)&&c&&x&&$?.youVoted,ke=c||D||X||i===n.QuestionType.TRIVIA&&f===n.QuestionStatus.RESOLVED&&A,Se=!a&&(h||E)||ie,De=()=>{const p=()=>i===n.QuestionType.TRIVIA?c?.correct?`That's correct!
2
+ You chose wisely.`:`So close!
3
+ Better luck next time.`:i===n.QuestionType.POLL?`Thanks for answering.
4
+ Please stay tuned for the next question.`:i===n.QuestionType.PREDICTION?"Stay tuned to see if your prediction was correct.":"",w=()=>i===n.QuestionType.TRIVIA?`Your Pick: ${$?.text}`:i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?`Your Pick: ${c?.text}`:"",W=()=>i===n.QuestionType.TRIVIA&&C?.case==="trivia"?C?.value.explanation:i===n.QuestionType.PREDICTION?I:"";return ie?e.jsx(ye,{children:e.jsx(gs,{title:p(),description:w(),...c?.correct||i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?{icon:"icon-correct"}:{},...i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION?{additionalDescription:W()}:{}})}):!a&&(h||E)?e.jsx(ye,{children:e.jsx(rs,{icon:"icon-check-circle",title:"More to come...",description:E?e.jsxs(e.Fragment,{children:["Stay tuned for more questions ",e.jsx("br",{})," and insights."]}):e.jsxs(e.Fragment,{children:["Watch for additional enhanced stream ",e.jsx("br",{})," interactive experience."]})})}):null};return e.jsxs($s,{children:[a&&e.jsx(ws,{}),e.jsx(Te,{style:a?{marginTop:"-40px"}:{},children:e.jsxs(Ae,{children:[!a&&!T&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,votedAnswer:c}),ee&&e.jsx(xt,{title:Pe,points:Qe,onTimerExpired:we,questionType:t.type,isTimer:!r,isPlayingTimer:!c,animatePoints:qe,timerDuration:ke?0:Number(t?.appearance?.autoHideInterval||"30"),votedInCurrentRender:_,percentsAnimated:B}),Se?De():e.jsxs(e.Fragment,{children:[a&&e.jsxs(ks,{children:[e.jsx(Ds,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),e.jsx(Ps,{style:Re?{marginTop:0}:{},children:I}),a&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,isEarlyPrediction:a,correctAnswer:$,votedAnswer:c,onAnimationEnd:$e}),e.jsxs(Rs,{children:[e.jsx(ve,{children:J.sort((p,w)=>p.id>w.id?1:-1).map((p,w)=>e.jsx(it,{...p,firstOption:w===0,markThatVoted:be,onPercentsAnimated:()=>z(!0),votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,isEarlyPrediction:a,isAd:T,webos:y},p.id))}),a&&e.jsxs(e.Fragment,{children:[e.jsx(_s,{}),e.jsx(Qs,{children:e.jsx(Os,{name:"mastersLogoWhite"})})]})]})]})]})})]})};exports.C=We;exports.Qe=Tt;exports.S=ze;exports.Ze=jt;exports.a=ae;exports.c=xe;exports.d=Ye;exports.f=re;exports.l=Be;exports.m=Le;exports.n=ne;exports.p=Ne;exports.y=Ie;
@@ -1,4 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./sl-types.js"),se=require("./index10.js"),v=require("./index8.js"),n=require("./useStreamLayerApp2.js"),me=require("./index9.js"),he=require("./index5.js"),Ne=s.styled_default("div")({name:"SDKContainer",class:"sopqfe6",propsAsIs:!1}),xe=s.styled_default("div")({name:"SDKScrollContainer",class:"s102vcph",propsAsIs:!1}),ne=s.styled_default("div")({name:"SDKContentContainer",class:"s1meqjjv",propsAsIs:!1}),Oe=()=>ne,ae=s.styled_default(Oe())({name:"SDKWhiteContainer",class:"s1burm22",propsAsIs:!0}),Ve=()=>ae,Le=s.styled_default(Ve())({name:"SDKSummaryContainer",class:"sm5r3j5",propsAsIs:!0}),Be=s.styled_default("div")({name:"TabsContainer",class:"tysxwr6",propsAsIs:!1}),Fe=()=>ne,We=s.styled_default(Fe())({name:"LeaderboardContainer",class:"l9er3b1",propsAsIs:!0}),Me=()=>ae,ze=s.styled_default(Me())({name:"TabsNavContainer",class:"t19dtrb3",propsAsIs:!0}),Ye=s.styled_default("div")({name:"UserSummaryContainer",class:"u1552n3j",propsAsIs:!1});let Ue=class{observers=new Set;subscribe(r){this.observers.add(r)}unsubscribe(r){this.observers.delete(r)}notify(r){this.observers.forEach(l=>l(r))}};const Y=new Ue,Ke={hiding:!1,finished:!1},Ie=()=>{const[t,r]=o.useState(Ke),l=o.useRef(null);o.useEffect(()=>{const u=y=>{r(y)};return Y.subscribe(u),()=>{Y.unsubscribe(u)}},[]);const d=o.useCallback(u=>{const y={hiding:!0,finished:!1};l.current&&clearTimeout(l.current),u?.delay?l.current=setTimeout(()=>{Y.notify(y)},u?.delay):Y.notify(y)},[]),a=o.useCallback(()=>{t.hiding&&(l.current=null,Y.notify({hiding:!1,finished:!0}))},[t.hiding]);return{...t,runAnimation:d,onAnimationEnd:a}},He=s.styled_default("div")({name:"Container",class:"c1pgyo67",propsAsIs:!1}),Ze="sx17qu6",Ge="h1692c5m",re=({children:t,style:r,className:l,enabled:d=!0,hiding:a,onAnimationEnd:u})=>e.jsx(He,{style:r,className:s.cx_default(l,d&&Ze,d&&a&&Ge),onAnimationEnd:u,children:t}),Je=()=>re,Xe=s.styled_default(Je())({name:"GrowingContainer",class:"gck55ev",propsAsIs:!0}),je=({children:t,style:r,enabled:l,animate:d,...a})=>{const u=o.useRef(null);return e.jsx(Xe,{...a,enabled:l&&d,style:{...r,...(()=>{const y=u?.current,I=(y&&window.getComputedStyle(y))?.getPropertyValue("height");return l?{height:d?I:0}:{}})()},children:e.jsx("div",{ref:u,children:t})})},es=s.styled_default("div")({name:"Container",class:"c1gcvmcj",propsAsIs:!1}),ss=s.styled_default("div")({name:"Title",class:"tnr592a",propsAsIs:!1}),ts=s.styled_default("div")({name:"Description",class:"d1e8jqpv",propsAsIs:!1}),ns=()=>v.B1,as=s.styled_default(ns())({name:"Icon",class:"i1vs651k",propsAsIs:!0}),rs=({icon:t,title:r,description:l})=>e.jsxs(es,{children:[e.jsx(as,{name:t}),e.jsx(ss,{children:r}),e.jsx(ts,{children:l})]}),is=()=>je,os=s.styled_default(is())({name:"ShowInContainer",class:"s16sbdnm",propsAsIs:!0}),N=s.styled_default("div")({name:"FeedbackContainer",class:"fbhorgl",propsAsIs:!1}),ue="s1g20ja7",ls=s.styled_default("div")({name:"Container",class:"c455ozj",propsAsIs:!1}),ds=()=>v.B1,pe=s.styled_default(ds())({name:"IconPrediction",class:"i1913njx",propsAsIs:!0}),U=s.styled_default("div")({name:"FeedbackIconWrap",class:"fzfk69z",propsAsIs:!1}),H=s.styled_default("div")({name:"FeedbackHeader",class:"fx87qaj",propsAsIs:!1}),cs=s.styled_default("span")({name:"FeedbackTitle",class:"fvek9ew",propsAsIs:!1}),O=s.styled_default("span")({name:"FeedbackDescription",class:"f1kbtp09",propsAsIs:!1}),us=s.styled_default("div")({name:"FeedbackTitleWrap",class:"f4i8rro",propsAsIs:!1}),ps=s.styled_default("div")({name:"FeedbackResultDescriptionWrap",class:"fqyssr",propsAsIs:!1}),fs=()=>O,ys=s.styled_default(fs())({name:"FeedbackDynamicDescription",class:"fyv794i",propsAsIs:!0}),ms=()=>O,hs=s.styled_default(ms())({name:"FeedbackResultDescription",class:"f1jkj9vx",propsAsIs:!0}),te=s.styled_default("div")({name:"FeedbackText",class:"f1pxh3a6",propsAsIs:!1}),xs=s.styled_default("span")({name:"DynamicWrap",class:"d1afvufn",propsAsIs:!1}),Is=s.styled_default("div")({name:"EarlyFeedbackDescription",class:"eq8u24d",propsAsIs:!1}),fe=({feedbackMessages:t,questionVotedCorrectly:r,questionVoted:l,questionType:d,hasCorrectAnswer:a,showExpiredNotification:u,showClosedNotificationTrivia:y,votedInCurrentRender:I,votedAfterQuestionClosed:i,voteErrorMessage:f,enteredAnActiveQuestion:C,marketClosed:g,percentsAnimated:j,votedAnswer:R,isEarlyPrediction:m,correctAnswer:T,onAnimationEnd:_})=>{const b=l&&(d===n.QuestionType.TRIVIA||d===n.QuestionType.PREDICTION),Q=d===n.QuestionType.PREDICTION&&!a,q=g&&d===n.QuestionType.PREDICTION&&!l||d===n.QuestionType.PREDICTION&&i&&I&&C,A=b&&Q,k=b&&a,h=d===n.QuestionType.PREDICTION&&l&&I&&a,V=l&&d===n.QuestionType.POLL&&I,E=r?"correct":"incorrect",S=r?t?.correctFeedback:t?.incorrectFeedback;return u||y||A||k||q||V||h||f?e.jsx(os,{enabled:I,animate:!f&&u?!0:j,onAnimationEnd:_,children:e.jsxs(ls,{"data-prediction":Q,children:[f&&!q&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"questionExpired"}),e.jsx(O,{children:f})]}),!f&&u&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Expired"})}),e.jsx(te,{children:"You can still answer to see if you're correct, but no points are awarded for expired questions."})]})]}),!f&&y&&e.jsxs(N,{className:s.cx_default(ue),children:[e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:"Question Closed"})}),e.jsx(te,{children:"This question was answered after the moderator closed the question. So the points for this answer won’t tally."})]})]}),q&&e.jsxs(N,{children:[!m&&e.jsx(U,{children:e.jsx(v.B1,{name:"questionExpired"})}),e.jsxs("div",{children:[e.jsx(H,{children:e.jsx(O,{children:m?a?"The results are already in!":"Question is Closed":"Question Closed"})}),e.jsx(te,{children:m?e.jsx(Is,{children:a?`Correct: ${T?.text}`:"Event affecting the outcome has occurred."}):"This event has already taken place, so the ability to make a prediction on its outcome is no longer available."})]})]}),!f&&A&&e.jsxs(N,{children:[!m&&e.jsx(pe,{name:"icon-prediction"}),e.jsxs(ys,{children:["Your pick has been recorded. ",e.jsx(xs,{children:"We’ll notify you of the result."})]})]}),!f&&V&&e.jsxs(N,{children:[!m&&e.jsx(U,{"data-feedback-type":"correct",children:e.jsx(v.B1,{name:"correct"})}),e.jsx(O,{children:"Thanks for answering. Please stay tuned for the next question."})]}),!f&&(k||h)&&e.jsxs(N,{className:s.cx_default(y&&ue),children:[!m&&e.jsx(U,{"data-feedback-type":E,children:e.jsx(v.B1,{name:E})}),e.jsx("div",{children:e.jsxs(H,{children:[m?e.jsx(us,{children:E==="incorrect"?e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"So close!"}),e.jsx("div",{children:"Better luck next time"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"That’s correct!"}),e.jsx("div",{children:"You chose wisely."})]})}):e.jsx(cs,{"data-feedback-type":E,children:S?.title}),m?e.jsxs(ps,{children:[e.jsxs("div",{children:["Your pick: ",R?.text]}),e.jsx("div",{children:E==="incorrect"?`Correct: ${T?.text}`:""})]}):e.jsx(hs,{children:S?.description})]})})]})]})}):null},js=s.styled_default("div")({name:"Container",class:"c1hygj0s",propsAsIs:!1}),Ts=s.styled_default("div")({name:"Title",class:"t1r84tez",propsAsIs:!1}),As=s.styled_default("div")({name:"Description",class:"d1aj1a7k",propsAsIs:!1}),vs=s.styled_default("div")({name:"AdditionalDescription",class:"ax09ezs",propsAsIs:!1}),Cs=()=>v.B1,Es=s.styled_default(Cs())({name:"Icon",class:"inkrac",propsAsIs:!0}),gs=({icon:t,title:r,description:l,additionalDescription:d})=>e.jsxs(js,{children:[t&&e.jsx(Es,{name:t}),e.jsx(Ts,{children:r}),e.jsx(As,{children:l}),d&&e.jsx(vs,{children:d})]}),Te=s.styled_default("div")({name:"Container",class:"c14ielyq",propsAsIs:!1}),bs=()=>xe,$s=s.styled_default(bs())({name:"QuestionScrollContainer",class:"q1tlqx57",propsAsIs:!0}),ws=s.styled_default("div")({name:"TopShadow",class:"t1hq58md",propsAsIs:!1}),_s=s.styled_default("div")({name:"BottomShadow",class:"b1c8nxcx",propsAsIs:!1}),Qs=s.styled_default("div")({name:"SponsorLogo",class:"siozuc3",propsAsIs:!1}),Ae=s.styled_default("div")({name:"Content",class:"cpnc44r",propsAsIs:!1}),Ps=s.styled_default("div")({name:"Title",class:"tq7p3w0",propsAsIs:!1}),Rs=s.styled_default("div")({name:"OptionsWrap",class:"o1jlfj9g",propsAsIs:!1}),ve=s.styled_default("div")({name:"Options",class:"o84pmnd",propsAsIs:!1}),qs=()=>re,ye=s.styled_default(qs())({name:"AlertContainer",class:"a1dybjw9",propsAsIs:!0}),ks=s.styled_default("div")({name:"EarlyPrediction",class:"e1l05ict",propsAsIs:!1}),Ss=()=>v.B1,Ds=s.styled_default(Ss())({name:"EarlyPredictionIcon",class:"ez9juex",propsAsIs:!0}),Ns=()=>v.B1,Os=s.styled_default(Ns())({name:"SponsorIcon",class:"s8p4aob",propsAsIs:!0}),Vs=s.styled_default("button")({name:"ButtonContainer",class:"b1b6dl8t",propsAsIs:!1}),Ls=s.styled_default("div")({name:"ButtonPctWrap",class:"b4iik8i",propsAsIs:!1}),Bs=s.styled_default("div")({name:"ButtonPct",class:"b1gq1lnf",propsAsIs:!1}),Fs=s.styled_default("span")({name:"ButtonBody",class:"b1j65z51",propsAsIs:!1}),Ws=s.styled_default("div")({name:"IconContainer",class:"i19tpfua",propsAsIs:!1}),Ms=s.styled_default("div")({name:"IconWrap",class:"i1tubmma",propsAsIs:!1}),Ce=s.styled_default("img")({name:"Icon",class:"i1grrgwj",propsAsIs:!1}),zs=()=>Ce,Ys=s.styled_default(zs())({name:"IconDefault",class:"ibemyq8",propsAsIs:!0}),Us=()=>Ce,Ks=s.styled_default(Us())({name:"IconCircle",class:"i1dceht",propsAsIs:!0}),Hs=s.styled_default("span")({name:"Title",class:"t116q4vq",propsAsIs:!1}),Zs=s.styled_default("span")({name:"Indicators",class:"i17ajcu2",propsAsIs:!1}),Gs=s.styled_default("div")({name:"PtsWrap",class:"pu9kmlb",propsAsIs:!1}),Js=s.styled_default("span")({name:"Pts",class:"p1j2j0s0",propsAsIs:!1}),Xs=s.styled_default("span")({name:"Percentage",class:"p1mzj1sj",propsAsIs:!1}),et=()=>v.B1,st=s.styled_default(et())({name:"CheckIcon",class:"cichgz8",propsAsIs:!0}),tt={[n.QuestionImages.CENTERED]:t=>e.jsx(Ys,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.TRANSPARENT]:t=>e.jsx(Ws,{"data-testid":"vote-icon",children:e.jsx(Ms,{style:{backgroundImage:`url(${t})`}})}),[n.QuestionImages.ROUNDED]:t=>e.jsx(Ks,{"data-testid":"vote-icon",alt:"option-icon",src:t}),[n.QuestionImages.NONE]:()=>null,[n.QuestionImages.UNSET]:()=>null},nt=({questionType:t,hasCorrectAnswer:r,correct:l,youVoted:d,questionVoted:a})=>{if(t===n.QuestionType.POLL&&d)return"voted";if(t===n.QuestionType.PREDICTION){if(!r&&a)return d?"voted":"unset";if(r&&a)return d?l?"correct":"incorrect":"unset";if(d)return"correct"}return t===n.QuestionType.TRIVIA&&a&&d?l?"correct":"incorrect":"unset"},at=({questionType:t,questionVoted:r,correct:l,hasCorrectAnswer:d,questionStatus:a})=>t===n.QuestionType.TRIVIA?r&&l:t===n.QuestionType.PREDICTION?r&&l&&d||a===n.QuestionStatus.RESOLVED&&l:!1,rt=me.b(Vs),it=t=>{const{id:r,icon:l,text:d,percentageDecimal:a,points:u,onVote:y,markThatVoted:I,firstOption:i,onPercentsAnimated:f,youSelected:C,youVoted:g,questionVoted:j,imageMode:R,answerTimeExpired:m,questionStatus:T,isLoading:_,questionType:b,correct:Q,hasCorrectAnswer:q,marketClosed:A,isEarlyPrediction:k,isAd:h,webos:V}=t,[E,S]=o.useState(0),L=nt(t),M=at({questionType:b,questionVoted:j,correct:Q,hasCorrectAnswer:q,questionStatus:T}),P=A&&b===n.QuestionType.PREDICTION,K=j||P,B=b===n.QuestionType.PREDICTION&&!j&&!A&&!h,z=j&&!C&&L!=="incorrect"&&!g;return o.useLayoutEffect(()=>{S(0),requestAnimationFrame(()=>{S(a)})},[a]),e.jsxs(rt,{value:r,webos:V,autoFocus:i,"data-selected":C,"data-answer-state":L,disabled:j||_||m||P,"data-is-not-checked":z,"data-a":"intr",onClick:Z=>{I(b===n.QuestionType.PREDICTION?A:T===n.QuestionStatus.RESOLVED),y(Z)},"data-is-ad":h,children:[e.jsx(Ls,{children:e.jsx(Bs,{"data-answer-state":L,"data-is-not-checked":z,style:{width:`${K?E:0}%`},onTransitionEnd:()=>{P||f?.()},"data-is-ad":h})}),e.jsxs(Fs,{"data-a":"intr",children:[l&&R&&tt[R]?.(l),e.jsx(Hs,{"data-a":"intr",children:d}),B&&e.jsxs(Gs,{children:[u,e.jsx(Js,{children:"pts"})]}),K&&e.jsxs(Zs,{children:[M&&e.jsx(st,{name:k?"selectedBetPack":"selected"}),e.jsx(Xs,{children:e.jsx(he.p,{value:a,suffix:"%"})})]})]})]})},ot=()=>je,lt=s.styled_default(ot())({name:"ShowInContainer",class:"sie6cqo",propsAsIs:!0}),dt=s.styled_default("div")({name:"WinBarContainer",class:"wgizw4u",propsAsIs:!1}),ct=s.styled_default("div")({name:"Content",class:"c1l3ucjp",propsAsIs:!1}),ut=s.styled_default("div")({name:"Title",class:"tx7j799",propsAsIs:!1}),pt=()=>v.B1,ft=s.styled_default(pt())({name:"WinIcon",class:"w4lwuj0",propsAsIs:!0}),yt=s.styled_default("div")({name:"Points",class:"po9i64o",propsAsIs:!1}),mt=s.styled_default("span")({name:"PointsCount",class:"pe5g05h",propsAsIs:!1}),ht=s.styled_default("span")({name:"PointsUnits",class:"p1hdtpmb",propsAsIs:!1}),xt=({title:t,points:r,isPlayingTimer:l,isTimer:d,animatePoints:a,questionType:u,timerDuration:y,votedInCurrentRender:I,percentsAnimated:i,onTimerExpired:f})=>e.jsx(lt,{enabled:u===n.QuestionType.PREDICTION&&I,animate:i,children:e.jsxs(dt,{style:{justifyContent:u===n.QuestionType.PREDICTION?"center":"space-between"},children:[e.jsxs(ct,{children:[t&&e.jsx(ut,{children:t}),r!==void 0&&u!==n.QuestionType.POLL&&e.jsxs(e.Fragment,{children:[e.jsx(ft,{name:"icon-trophy"}),e.jsxs(yt,{children:[e.jsx(mt,{children:a?e.jsx(he.p,{value:r,delay:.3}):r}),e.jsx(ht,{children:"PTS"})]})]})]}),d&&u!==n.QuestionType.PREDICTION&&e.jsx(me.L,{isPlaying:l,onTimerExpired:f,duration:y})]})}),It=(t,r)=>t==="already_voted"?r===n.QuestionType.POLL?"You’ve already answered this question on another device.":"You’ve already answered this question on another device. So the points for this answer won't tally.":"Something went wrong, please try again",jt=()=>e.jsx(Te,{children:e.jsxs(Ae,{children:[e.jsx(se.i,{loading:!0,style:{height:"40px",borderRadius:"100px"}}),e.jsx(se.i,{loading:!0,style:{height:"24px",margin:"16px 0"}}),e.jsx(ve,{children:Array.from({length:5}).map((t,r)=>e.jsx(se.i,{loading:!0,style:{height:"44px"}},r))})]})}),Tt=({openedQuestion:t,isLoading:r,vote:l,close:d,isEarlyPrediction:a,mastersApp:u,webos:y})=>{const I=t.subject,i=t.type,f=t.status,C=t.options?.options,g=t.marketClosed,j=t.id,R=o.useRef(),m=o.useRef(),T=u?!1:t?.adUnit===n.AdUnit.STANDART,[_,b]=o.useState(!1),[Q,q]=o.useState(!1),[A,k]=o.useState(!0),[h,V]=o.useState(!1),[E,S]=o.useState(!1),[L,M]=o.useState(""),[P,K]=o.useState(""),[B,z]=o.useState(!1),[Z,Ee]=o.useState(!1),[ie,ge]=o.useState(!1),{runAnimation:F,finished:oe}=Ie();o.useEffect(()=>{oe&&d(j)},[d,oe]),o.useEffect(()=>{i===n.QuestionType.PREDICTION?g&&k(!1):f===n.QuestionStatus.RESOLVED&&k(!1)},[]);const be=o.useCallback(p=>{q(p),b(!0)},[]),$e=o.useCallback(()=>{a&&b(!1)},[a]),G=o.useRef(!1),le=o.useCallback(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{ge(!0),F({delay:5500})},4e3)},[F]),de=o.useCallback(async p=>{if(!G.current&&(G.current=!0,j)){const w=p.currentTarget.value;M(w);try{await l(j,w),T&&le()}catch(W){K(It(W.message,i)),M(""),console.error("Error while voting",W),G.current=!1}}},[i,j,M,l,T,le]),we=o.useCallback(()=>{V(!0),F({delay:3500})},[F]),_e=o.useCallback(()=>{S(!0),F({delay:3500})},[F]),c=t?.answers.find(p=>p.youVoted===!0),x=o.useMemo(()=>!!t?.answers.find(p=>p.correct===!0),[t]),$=o.useMemo(()=>t?.answers.find(p=>p.correct===!0),[t]);o.useEffect(()=>{c&&_&&!Z&&(R.current=setTimeout(_e,1e4),Ee(!0))},[c]),o.useEffect(()=>()=>{clearTimeout(R.current),clearTimeout(m.current)},[]);const J=o.useMemo(()=>t?t.answers.map(p=>({...p,questionVoted:!!c,youSelected:L===p.id,isLoading:r,hasCorrectAnswer:x,questionType:t.type,answerTimeExpired:h,questionStatus:f,imageMode:t.appearance?.images,onVote:de})):[],[x,h,r,t,c,f,de,L]);o.useEffect(()=>{const p=J.some(({percentageDecimal:W})=>W!==0),w=c&&i===n.QuestionType.PREDICTION;P&&(a||!p||g&&w)&&z(!0)},[J,P,a,g,i,c]);const ce=C&&(C.case==="trivia"||C.case==="prediction")?C.value:void 0,D=f===n.QuestionStatus.RESOLVED&&i===n.QuestionType.TRIVIA&&!c&&!A,X=i===n.QuestionType.TRIVIA&&Q,ee=o.useMemo(()=>T?!1:i===n.QuestionType.PREDICTION?a?!1:!!(c&&!x||c&&x&&$?.youVoted):!0,[i,c,x,$,a,T]),Qe=o.useMemo(()=>{if(i===n.QuestionType.PREDICTION&&c&&(!x||x&&$?.youVoted))return c.points;if(!(D||h))return c?c.correct?c.pointsEarned:0:$?.points},[h,c,$,D,i,x]),Pe=o.useMemo(()=>i===n.QuestionType.PREDICTION&&c?x?x&&$?.youVoted?"You won":"":"To win":D||h?"Time expired":i===n.QuestionType.POLL?"Time remaining":c?"You won":"To win",[h,i,c,D,x,$]),Re=!ee||ee&&i===n.QuestionType.PREDICTION&&_&&!B,qe=(i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION)&&c&&x&&$?.youVoted,ke=c||D||X||i===n.QuestionType.TRIVIA&&f===n.QuestionStatus.RESOLVED&&A,Se=!a&&(h||E)||ie,De=()=>{const p=()=>i===n.QuestionType.TRIVIA?c?.correct?`That's correct!
2
- You chose wisely.`:`So close!
3
- Better luck next time.`:i===n.QuestionType.POLL?`Thanks for answering.
4
- Please stay tuned for the next question.`:i===n.QuestionType.PREDICTION?"Stay tuned to see if your prediction was correct.":"",w=()=>i===n.QuestionType.TRIVIA?`Your Pick: ${$?.text}`:i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?`Your Pick: ${c?.text}`:"",W=()=>i===n.QuestionType.TRIVIA&&C?.case==="trivia"?C?.value.explanation:i===n.QuestionType.PREDICTION?I:"";return ie?e.jsx(ye,{children:e.jsx(gs,{title:p(),description:w(),...c?.correct||i===n.QuestionType.POLL||i===n.QuestionType.PREDICTION?{icon:"icon-correct"}:{},...i===n.QuestionType.TRIVIA||i===n.QuestionType.PREDICTION?{additionalDescription:W()}:{}})}):!a&&(h||E)?e.jsx(ye,{children:e.jsx(rs,{icon:"icon-check-circle",title:"More to come...",description:E?e.jsxs(e.Fragment,{children:["Stay tuned for more questions ",e.jsx("br",{})," and insights."]}):e.jsxs(e.Fragment,{children:["Watch for additional enhanced stream ",e.jsx("br",{})," interactive experience."]})})}):null};return e.jsxs($s,{children:[a&&e.jsx(ws,{}),e.jsx(Te,{style:a?{marginTop:"-40px"}:{},children:e.jsxs(Ae,{children:[!a&&!T&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,votedAnswer:c}),ee&&e.jsx(xt,{title:Pe,points:Qe,onTimerExpired:we,questionType:t.type,isTimer:!r,isPlayingTimer:!c,animatePoints:qe,timerDuration:ke?0:Number(t?.appearance?.autoHideInterval||"30"),votedInCurrentRender:_,percentsAnimated:B}),Se?De():e.jsxs(e.Fragment,{children:[a&&e.jsxs(ks,{children:[e.jsx(Ds,{name:"iconEarlyPrediction"}),"EARLY PREDICTION"]}),e.jsx(Ps,{style:Re?{marginTop:0}:{},children:I}),a&&e.jsx(fe,{feedbackMessages:ce,questionVoted:!!c,questionVotedCorrectly:c?.correct,questionType:i,hasCorrectAnswer:x,showExpiredNotification:D,showClosedNotificationTrivia:X,votedInCurrentRender:_,votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,percentsAnimated:B,voteErrorMessage:P,isEarlyPrediction:a,correctAnswer:$,votedAnswer:c,onAnimationEnd:$e}),e.jsxs(Rs,{children:[e.jsx(ve,{children:J.sort((p,w)=>p.id>w.id?1:-1).map((p,w)=>e.jsx(it,{...p,firstOption:w===0,markThatVoted:be,onPercentsAnimated:()=>z(!0),votedAfterQuestionClosed:Q,enteredAnActiveQuestion:A,marketClosed:g,isEarlyPrediction:a,isAd:T,webos:y},p.id))}),a&&e.jsxs(e.Fragment,{children:[e.jsx(_s,{}),e.jsx(Qs,{children:e.jsx(Os,{name:"mastersLogoWhite"})})]})]})]})]})})]})};exports.C=We;exports.Qe=Tt;exports.S=ze;exports.Ze=jt;exports.a=ae;exports.c=xe;exports.d=Ye;exports.f=re;exports.l=Be;exports.m=Le;exports.n=ne;exports.p=Ne;exports.y=Ie;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("./feature.js"),t=require("react"),m=require("./index8.js"),T=require("./index9.js"),ne=require("./useStreamLayerApp2.js"),le=l.styled_default("div")({name:"CloseIconWrap",class:"c3v6bv6",propsAsIs:!1}),oe=l.styled_default("div")({name:"TimerWrap",class:"teuhmro",propsAsIs:!1}),re=()=>m.B1,ue=l.styled_default(re())({name:"Icon",class:"i17rfxv5",propsAsIs:!0}),ce=({close:s,className:a,timerClassName:o,skipIcon:u,isPlaying:d=!0,duration:c=0,autoClose:f})=>{const[p,x]=t.useState(c===0);t.useEffect(()=>{x(!c)},[c]);const I=t.useCallback(()=>{f===ne.CloseTimerAuto.ENABLED?s?.():x(!0)},[f,s]);return p?e.jsxs(le,{"data-a":"intr",onClick:s,className:a,style:u?{width:"auto"}:{},children:[u&&e.jsx("span",{"data-a":"intr",children:"Skip"}),e.jsx(ue,{"data-a":"intr",name:u?"iconSkip":"icon-cross"})]}):e.jsx(oe,{children:e.jsx(T.G,{className:o,isPlaying:d,duration:c,onTimerExpired:I})})},ie=l.styled_default("div")({name:"Container",class:"c1bgb86j",propsAsIs:!1}),de=l.styled_default("video")({name:"Player",class:"p6703cq",propsAsIs:!1}),fe=l.styled_default("img")({name:"Poster",class:"p12ow7zo",propsAsIs:!1}),B=l.styled_default("div")({name:"Control",class:"cdpal9o",propsAsIs:!1}),pe="t1xke4ml",ye="h1yzxv57",me=l.styled_default("div")({name:"VideoControls",class:"vxo8xch",propsAsIs:!1}),U=l.styled_default("button")({name:"ControlBtn",class:"coyuzu0",propsAsIs:!1}),xe=()=>U,ge=l.styled_default(xe())({name:"MuteIcon",class:"musmi9a",propsAsIs:!0}),he=()=>U,je=l.styled_default(he())({name:"PauseIcon",class:"p1qe7rum",propsAsIs:!0}),be=()=>U,Ie=l.styled_default(be())({name:"PlayIcon",class:"psevery",propsAsIs:!0}),J=l.styled_default("button")({name:"WebOSIconButton",class:"w1q3u7py",propsAsIs:!1}),Pe=()=>J,R=l.styled_default(Pe())({name:"WebOSIconButtonAnimation",class:"wdlqvum",propsAsIs:!0}),Ae=()=>R,Ce=l.styled_default(Ae())({name:"WebOSIconButtonPlay",class:"w1ylz9ea",propsAsIs:!0}),ve=()=>R,ke=l.styled_default(ve())({name:"WebOSIconButtonPause",class:"w1iylt55",propsAsIs:!0}),_e=()=>R,Se=l.styled_default(_e())({name:"WebOSIconButtonMute",class:"w8h4h7",propsAsIs:!0}),Ee=()=>R,Me=l.styled_default(Ee())({name:"WebOSIconButtonUnmute",class:"w12l12kt",propsAsIs:!0}),we=s=>{for(const a of s)a.isIntersecting?a.target instanceof HTMLVideoElement&&a.target.autoplay&&a.target.play():a.target instanceof HTMLVideoElement&&!a.target.paused&&a.target.pause()},Q=new IntersectionObserver(we,{threshold:.5}),z=new Set,Be=s=>{Q.observe(s),z.add(s)},Re=s=>{Q.unobserve(s),z.delete(s)},X=()=>{for(const s of z)s instanceof HTMLVideoElement&&!s.paused&&s.pause()};function Ve(...s){return t.useCallback(a=>{for(const o of s)o!==null&&(typeof o=="function"?o(a):o&&(o.current=a))},[...s])}const Ne=T.b(ie),Oe=({loading:s,autoPlay:a,played:o,playing:u,isMuted:d,unmute:c,mute:f,togglePlaying:p})=>!s&&!a&&!o?e.jsx(B,{children:u?e.jsx(m.B1,{name:"icon-pause"}):e.jsx(m.B1,{name:"icon-play"})}):o?e.jsxs(me,{children:[u?e.jsx(je,{onClick:p}):e.jsx(Ie,{onClick:p}),e.jsx(ge,{className:l.cx_default(!d&&"muted"),onClick:d?c:f})]}):null,We=({loading:s,autoPlay:a,playMuted:o,playing:u,played:d,unmute:c,mute:f,isMuted:p,hasNotPausedVideo:x,hasInteractedWithAudio:I})=>e.jsxs(e.Fragment,{children:[!s&&!(a&&o)&&e.jsx(B,{"data-control-btn":"true",children:u?x?null:e.jsx(Ce,{children:e.jsx(m.B1,{name:"icon-play"})}):d?e.jsx(ke,{children:e.jsx(m.B1,{name:"icon-pause"})}):e.jsx(J,{"data-control-icon":"true",children:e.jsx(m.B1,{name:"icon-play"})})}),!s&&a&&o&&I&&e.jsx(B,{children:p?e.jsx(Se,{onClick:c,children:e.jsx(m.B1,{name:"iconMute"})}):e.jsx(Me,{onClick:f,children:e.jsx(m.B1,{name:"iconUnMute"})})})]}),qe=t.forwardRef(({poster:s,source:a,aspectRatio:o,controlVideo:u,onReplay:d,onPlay:c,onPause:f,onEnd:p,onRender:x,onMute:I,onMuteClick:k,onQuartile:V,autoPlay:P,playMuted:A,className:Z,muted:C,webos:_,hasNotPausedVideo:Y},ee)=>{const i=t.useRef(null),se=Ve(i,ee),N=t.useRef(!1),O=t.useRef(!1),y=t.useRef(new Set),[H,$]=t.useState(!1),[S,E]=t.useState(!1),[W,D]=t.useState(!1),[F,M]=t.useState(!0),[q,w]=t.useState(A),[L,te]=t.useState(!1);t.useEffect(()=>{a&&(w(A),$(!1))},[a]);const j=t.useCallback(()=>{u?.({muted:!1})},[u]),G=t.useCallback(()=>{u?.({muted:!0})},[u]),b=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!0),w(!0),n&&k?.(!0)},[k]),v=t.useCallback(n=>{n?.stopPropagation(),i.current&&(i.current.muted=!1),w(!1),L||te(!0),n&&k?.(!1)},[L,k]);t.useEffect(()=>{C!==void 0&&(C?b():v())},[b,C,v]);const K=n=>{n.stopPropagation?.();const r=i?.current;if(r)if(S)r.pause();else{const g=i?.current;if(!g)return;X(),g.play().catch(h=>console.log(h)),M(!1)}},ae=()=>{i?.current?.load(),M(!0)};return t.useEffect(()=>()=>{j()},[j]),t.useEffect(()=>{const n=i.current;return n?(O.current=n.muted,w(n.muted),Be(n),()=>{Re(n)}):()=>{}},[]),t.useEffect(()=>{x?.()},[x]),t.useEffect(()=>{y.current.clear(),N.current=!1},[a]),e.jsxs(Ne,{webos:_,onClick:P&&A?q?v:b:K,"data-a":"intr",autoFocus:!0,options:{focusKey:"video-play-btn"},className:l.cx_default(S&&!_&&pe,P&&ye,Z),style:o?{aspectRatio:o}:{},children:[e.jsx(de,{ref:se,src:a,autoPlay:P,onPlay:()=>{$(!0),N.current&&(d?.(),y.current.clear()),E(!0),M(!1),c?.(),A?b():G()},onTimeUpdate:n=>{const r=n.target.duration,g=n.target.currentTime;if(r&&g){const h=Math.floor(g/r*100);h>=25&&h<50&&!y.current.has(25)?(V?.(25),y.current.add(25)):h>=50&&h<75&&!y.current.has(50)?(V?.(50),y.current.add(50)):h>=75&&!y.current.has(75)&&(V?.(75),y.current.add(75))}},onVolumeChange:n=>{const r=n.target.muted;O.current!==r&&(I?.(r),O.current=r,(r!==C||C===void 0)&&(r?j():G()))},onError:async n=>{try{if(n.target instanceof HTMLVideoElement){D(!0);const r=await(await fetch(n.target.src)).blob(),g=URL.createObjectURL(r);n.target.src=g}}catch(r){console.error("video fallback fetch failed",r),E(!0),M(!0)}finally{D(!1),j()}},onPause:()=>{E(!1),f?.(),j()},onEnded:()=>{E(!1),N.current=!0,ae(),p?.(),j()},style:{visibility:F?"hidden":"visible"},controls:!1,playsInline:!0}),e.jsx(fe,{src:s,style:{visibility:F?"visible":"hidden"}}),!_&&e.jsx(Oe,{loading:W,autoPlay:P,played:H,playing:S,isMuted:q,unmute:v,mute:b,togglePlaying:K}),_&&e.jsx(We,{loading:W,autoPlay:P,playMuted:A,playing:S,played:H,unmute:v,mute:b,isMuted:q,hasNotPausedVideo:Y,hasInteractedWithAudio:L}),W&&e.jsx(B,{children:e.jsx(T.d,{})})]})});exports.Oe=X;exports.Ve=qe;exports.y=ce;