1import{a as Pl}from"./chunk-ODLE6EYI.js";import{b as El}from"./chunk-574UYRX6.js";import{a as Yt}from"./chunk-Z46Q7VVB.js";import{a as Ln,b as Rl}from"./chunk-HGB6TBMO.js";import{a as ht,b as Zt,c as kl}from"./chunk-QRXKZV37.js";import{a as Dl}from"./chunk-7APDPKGL.js";import{a as ml}from"./chunk-IYU6HLLJ.js";import{m as pl}from"./chunk-A6OESW6W.js";import{a as In,b as dl}from"./chunk-JDQTM4TK.js";import{b as Ka}from"./chunk-X2JJBX2U.js";import"./chunk-2LCN7GIH.js";import{a as Sl,b as Tl}from"./chunk-RHTXDPWN.js";import{a as bl,b as wl}from"./chunk-AD3SIBKK.js";import{a as Xa,b as so,c as el,d as tl}from"./chunk-GVBB3IJR.js";import{b as ao,c as Vn,d as ul}from"./chunk-62CNRWQA.js";import"./chunk-KJ4QD3SP.js";import{a as za,b as Qa,c as Ua,d as $a}from"./chunk-LQJNMQA2.js";import{a as Wa,b as Ha}from"./chunk-ZRDGGLZM.js";import{s as qt}from"./chunk-MELO2MRH.js";import"./chunk-ZUTNCURO.js";import{a as lo,b as co}from"./chunk-4MJYK4HN.js";import{C as xl,a as Mn,b as hl,c as Lt,d as Ot,e as Nt,f as jt,g as zt,h as Qt,i as Ut,j as $t,k as Wt,l as Ht,m as Gt,n as Jt,o as _l,p as gl,q as po,r as uo,s as yl,t as vl,u as mo,x as fo}from"./chunk-Q3BHSGJM.js";import{a as fl}from"./chunk-7MM3JE7L.js";import{a as ol,b as hr,c as rl,d as sl,e as al,g as ll,i as cl}from"./chunk-DZ2HACRA.js";import{a as Fn}from"./chunk-PQE4SCUS.js";import"./chunk-5C3IPH6P.js";import"./chunk-GQIMCUCB.js";import{a as ro,b as Ya}from"./chunk-NREODXHC.js";import{a as qn,b as Cl}from"./chunk-PNAV3SM6.js";import{a as Za}from"./chunk-Y22INTMN.js";import{c as qa}from"./chunk-L3JBNTOC.js";import"./chunk-NRMQDMFJ.js";import"./chunk-5M4XIZMD.js";import{a as ze,b as nt,c as Ie,e as nl,g as il}from"./chunk-2BFVK5HI.js";import"./chunk-3LVDM64V.js";import{p as La,t as Oa,u as Na,w as ja}from"./chunk-6HN5HIFJ.js";import"./chunk-VTF4T7ID.js";import{A as Ba,B as Aa,C as Ia,F as Va,c as Da,d as Ji,l as Zi,w as Yi}from"./chunk-GQC2THZT.js";import{a as Pa,c as Gi,i as Ra,r as An}from"./chunk-E7TZAWVT.js";import{a as Y,b as ca,c as K,d as da}from"./chunk-EKVTZPVT.js";import{a as io,b as Ga}from"./chunk-LW5LPVES.js";import{b as no}from"./chunk-ZYWYILRC.js";import"./chunk-S54BMOKL.js";import{b as Xi,c as eo,g as to,h as Ma}from"./chunk-3ZR4SHJC.js";import{a as F,b as $,d as J,e as b,f as Q,g as sa,j as aa,k as ee,l as la}from"./chunk-K75VSEIY.js";import{a as ra}from"./chunk-7FRBKRRG.js";import"./chunk-WPWHXKEF.js";import{c as Ki}from"./chunk-ZWC24XOW.js";import{Aa as Bn,Ga as Ca,H as fn,Ha as ba,Ia as ni,L as ve,Qa as wa,Ra as fr,Ta as Sa,Ua as Ta,Wa as St,X as ga,Xa as Ea,Y as ya,Ya as ii,_a as ka,c as na,d as ut,e as dr,g as Re,i as mn,j as pr,kb as oo,l as ur,lb as Ja,oa as fe,ua as va,w as Ft,ya as mr,za as xa}from"./chunk-2U5T7ZRU.js";import"./chunk-HFHRXST3.js";import{D as oa,F as Vt,H as tt,L as mt,P as ft,Q as O,R as Fa,m as Ui,n as ta,o as $i,w as ia,y as At,z as It}from"./chunk-EHK3LLER.js";import{G as Hi,K as ha,L as _a,c as En,h as Mt,i as kn,k as pa,n as Wi,o as ua,p as Pn,v as ma,w as fa,x as Rn,y as Dn}from"./chunk-UZFNZKCX.js";import{C as ea,D as Qi,k as ji,t as Ks,u as te,v as zi,y as Xs}from"./chunk-YDFILND7.js";import{$c as U,Ac as V,Ad as Ys,Bd as un,D as ti,Da as P,Ea as R,F as wn,Fa as Sn,Gb as Mi,Hb as D,Hc as w,Ia as Ii,Ja as js,Jb as Us,K as Rt,Kc as p,La as Tn,Lc as Li,Mc as Oi,O as We,Ob as T,Oc as Xe,Od as pt,Pb as qi,Pc as De,Qc as Be,T as Ls,U as Os,Ua as Vi,Ub as Me,Uc as Ae,Vc as rt,Wc as me,Xa as zs,Zc as m,_c as M,ad as Ge,d as Ms,da as Ns,dd as Hs,ed as Gs,fd as Js,gc as bt,ia as se,ic as $s,jc as y,jd as dt,la as L,lc as v,mc as Ws,na as W,nc as he,nd as cr,oc as le,od as oe,pc as ce,pd as et,q as qs,qb as Qs,qc as h,qd as Bt,r as Ke,ra as Dt,rb as Fe,rc as s,rd as wt,sa as Ai,sb as Fi,sc as a,sd as Zs,tc as d,vb as He,vd as Ni,wa as I,wd as E,x as Se,xb as c,xc as qe,xd as A,yc as Le,yd as Te,z as pn}from"./chunk-TROGQXTX.js";import{a as N,b as j,d as Vs,e as B,g as Fs,i as u}from"./chunk-S6MAVN2Q.js";var _r=B((tx,Al)=>{u();var zp=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];Al.exports=function(n){var t=n,i=n.indexOf("["),o=n.indexOf("]");
1i!=-1&&o!=-1&&(n=n.substring(0,i)+n.substring(i,o).replace(/:/g,";")+n.substring(o,n.length));for(var r=zp.exec(n||""),l={},f=14;f--;)l[Qp[f]]=r[f]||"";return i!=-1&&o!=-1&&(l.source=t,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=Up(l,l.path),l.queryKey=$p(l,l.query),l};function Up(e,n){var t=/\/{2,9}/g,i=n.replace(t,"/").split("/");return(n.substr(0,1)=="/"||n.length===0)&&i.splice(0,1),n.substr(n.length-1,1)=="/"&&i.splice(i.length-1,1),i}function $p(e,n){var t={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,r){o&&(t[o]=r)}),t}});var Vl=B((ix,Il)=>{u();var oi=1e3,ri=oi*60,si=ri*60,ai=si*24,Wp=ai*365.25;Il.exports=function(e,n){n=n||{};var t=typeof e;if(t==="string"&&e.length>0)return Hp(e);if(t==="number"&&isNaN(e)===!1)return n.long?Jp(e):Gp(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Hp(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]),i=(n[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*Wp;case"days":case"day":case"d":return t*ai;case"hours":case"hour":case"hrs":case"hr":case"h":return t*si;case"minutes":case"minute":case"mins":case"min":case"m":return t*ri;case"seconds":case"second":case"secs":case"sec":case"s":return t*oi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Gp(e){return e>=ai?Math.round(e/ai)+"d":e>=si?Math.round(e/si)+"h":e>=ri?Math.round(e/ri)+"m":e>=oi?Math.round(e/oi)+"s":e+"ms"}function Jp(e){return _o(e,ai,"day")||_o(e,si,"hour")||_o(e,ri,"minute")||_o(e,oi,"second")||e+" ms"}function _o(e,n,t){if(!(e<n))return e<n*1.5?Math.floor(e/n)+" "+t:Math.ceil(e/n)+" "+t+"s"}});var Ml=B((H,Fl)=>{u();H=Fl.exports=gr.debug=gr.default=gr;H.coerce=tu;H.disable=Xp;H.enable=Kp;H.enabled=eu;H.humanize=Vl();H.instances=[];H.names=[];H.skips=[];H.formatters={};function Zp(e){var n=0,t;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return H.colors[Math.abs(n)%H.colors.length]}function gr(e){var n;function t(){if(t.enabled){var i=t,o=+new Date,r=o-(n||o);i.diff=r,i.prev=n,i.curr=o,n=o;for(var l=new Array(arguments.length),f=0;f<l.length;f++)l[f]=arguments[f];l[0]=H.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");var _=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(S,k){if(S==="%%")return S;_++;var q=H.formatters[k];if(typeof q=="function"){var re=l[_];S=q.call(i,re),l.splice(_,1),_--}return S}),H.formatArgs.call(i,l);var C=t.log||H.log||console.log.bind(console);C.apply(i,l)}}return t.namespace=e,t.enabled=H.enabled(e),t.useColors=H.useColors(),t.color=Zp(e),t.destroy=Yp,typeof H.init=="function"&&H.init(t),H.instances.push(t),t}function Yp(){var e=H.instances.indexOf(this);return e!==-1?(H.instances.splice(e,1),!0):!1}function Kp(e){H.save(e),H.names=[],H.skips=[];var n,t=(typeof e=="string"?e:"").split(/[\s,]+/),i=t.length;for(n=0;n<i;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),e[0]==="-"?H.skips.push(new RegExp("^"+e.substr(1)+"$")):H.names.push(new RegExp("^"+e+"$")));for(n=0;n<H.instances.length;n++){var o=H.instances[n];o.enabled=H.enabled(o.namespace)}}function Xp(){H.enable("")}function eu(e){if(e[e.length-1]==="*")return!0;var n,t;for(n=0,t=H.skips.length;n<t;n++)if(H.skips[n].test(e))return!1;for(n=0,t=H.names.length;n<t;n++)if(H.names[n].test(e))return!0;return!1}function tu(e){return e instanceof Error?e.stack||e.message:e}});var On=B((Oe,Ll)=>{u();Oe=Ll.exports=Ml();Oe.log=ou;Oe.formatArgs=iu;Oe.save=ru;Oe.load=ql;Oe.useColors=nu;Oe.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:su();Oe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function nu(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Oe.formatters.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}};function iu(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+Oe.humanize(this.diff),!!n){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(r){r!=="%%"&&(i++,r==="%c"&&(o=i))}),e.splice(o,0,t)}}function ou(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ru(e){try{e==null?Oe.storage.removeItem("debug"):Oe.storage.debug=e}catch{}}function ql(){var e;try{e=Oe.storage.debug}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}Oe.enable(ql());function su(){try{return window.localStorage}catch{}}});var jl=B((ax,Nl)=>{u();var au=_r(),Ol=On()("socket.io-client:url");Nl.exports=lu;function lu(e,n){var t=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(Ol("protocol-less url %s",e),typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),Ol("parse %s",e),t=au(e)),t.port||(/^(http|ws)$/.test(t.protocol)?t.port="80":/^(http|ws)s$/.test(t.protocol)&&(t.port="443")),t.path=t.path||"/";var i=t.host.indexOf(":")!==-1,o=i?"["+t.host+"]":t.host;return t.id=t.protocol+"://"+o+":"+t.port,t.href=t.protocol+"://"+o+(n&&n.port===t.port?"":":"+t.port),t}});var hn=B((cx,yr)=>{u();typeof yr<"u"&&(yr.exports=Je);function Je(e){if(e)return cu(e)}function cu(e){for(var n in Je.prototype)e[n]=Je.prototype[n];return e}Je.prototype.on=Je.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};Je.prototype.once=function(e,n){function t(){this.off(e,t),n.apply(this,arguments)}return t.fn=n,this.on(e,t),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+e];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<t.length;o++)if(i=t[o],i===n||i.fn===n){t.splice(o,1);break}return t.length===0&&delete this._callbacks["$"+e],this};Je.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),t=this._callbacks["$"+e],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,o=t.length;i<o;++i)t[i].apply(this,n)}return this};Je.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Je.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var go=B((px,zl)=>{u();var du={}.toString;zl.exports=Array.isArray||function(e){return du.call(e)=="[object Array]"}});var vr=B((mx,Ql)=>{u();Ql.exports=fu;var pu=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",uu=typeof ArrayBuffer=="function",mu=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function fu(e){return pu&&Buffer.isBuffer(e)||uu&&(e instanceof ArrayBuffer||mu(e))}});var Wl=B(yo=>{u();var br=go(),Ul=vr(),$l=Object.prototype.toString,hu=typeof Blob=="function"||typeof Blob<"u"&&$l.call(Blob)==="[object BlobConstructor]",_u=typeof File=="function"||typeof File<"u"&&$l.call(File)==="[object FileConstructor]";yo.deconstructPacket=function(e){var n=[],t=e.data,i=e;return i.data=xr(t,n),i.attachments=n.length,{packet:i,buffers:n}};function xr(e,n){if(!e)return e;if(Ul(e)){var t={_placeholder:!0,num:n.length};return n.push(e),t}else if(br(e)){for(var i=new Array(e.length),o=0;o<e.length;o++)i[o]=xr(e[o],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){var i={};for(var r in e)i[r]=xr(e[r],n);return i}return e}yo.reconstructPacket=function(e,n){return e.data=Cr(e.data,n),e.attachments=void 0,e};function Cr(e,n){if(!e)return e;if(e&&e._placeholder===!0){var t=typeof e.num=="number"&&e.num>=0&&e.num<n.length;if(t)return n[e.num];throw new Error("illegal attachments")}else if(br(e))for(var i=0;i<e.length;i++)e[i]=Cr(e[i],n);else if(typeof e=="object")for(var o in e)e[o]=Cr(e[o],n);return e}yo.removeBlobs=function(e,n){function t(r,l,f){if(!r)return r;if(hu&&r instanceof Blob||_u&&r instanceof File){i++;var _=new FileReader;_.onload=function(){f?f[l]=this.result:o=this.result,--i||n(o)},_.readAsArrayBuffer(r)}else if(br(r))for(var C=0;C<r.length;C++)t(r[C],C,r);else if(typeof r=="object"&&!Ul(r))for(var S in r)t(r[S],S,r)}var i=0,o=e;t(o),i||n(o)}});var xo=B(ge=>{u();var Sr=On()("socket.io-parser"),gu=hn(),wr=Wl(),Hl=go(),yu=vr();ge.protocol=4;ge.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"];ge.CONNECT=0;ge.DISCONNECT=1;ge.EVENT=2;ge.ACK=3;ge.ERROR=4;ge.BINARY_EVENT=5;ge.BINARY_ACK=6;ge.Encoder=Gl;ge.Decoder=vo;function Gl(){}
1var vu=ge.ERROR+'"encode error"';Gl.prototype.encode=function(e,n){if(Sr("encoding packet %j",e),ge.BINARY_EVENT===e.type||ge.BINARY_ACK===e.type)Cu(e,n);else{var t=Jl(e);n([t])}};function Jl(e){var n=""+e.type;if((ge.BINARY_EVENT===e.type||ge.BINARY_ACK===e.type)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null){var t=xu(e.data);if(t!==!1)n+=t;else return vu}return Sr("encoded %j as %s",e,n),n}function xu(e){try{return JSON.stringify(e)}catch{return!1}}function Cu(e,n){function t(i){var o=wr.deconstructPacket(i),r=Jl(o.packet),l=o.buffers;l.unshift(r),n(l)}wr.removeBlobs(e,t)}function vo(){this.reconstructor=null}gu(vo.prototype);vo.prototype.add=function(e){var n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=wu(e),ge.BINARY_EVENT===n.type||ge.BINARY_ACK===n.type?(this.reconstructor=new Tr(n),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",n)):this.emit("decoded",n)}else if(yu(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,this.emit("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)};function bu(e,n){switch(e){case 0:return typeof n=="object";case 1:return n===void 0;case 4:return typeof n=="string"||typeof n=="object";case 2:case 5:return Hl(n)&&(typeof n[0]=="string"||typeof n[0]=="number");case 3:case 6:return Hl(n)}}function wu(e){var n=0,t={type:Number(e.charAt(0))};if(ge.types[t.type]==null)return Tu("unknown packet type "+t.type);if(ge.BINARY_EVENT===t.type||ge.BINARY_ACK===t.type){for(var i=n+1;e.charAt(++n)!=="-"&&n!=e.length;);var o=e.substring(i,n);if(o!=Number(o)||e.charAt(n)!=="-")throw new Error("Illegal attachments");t.attachments=Number(o)}if(e.charAt(n+1)==="/"){for(var i=n+1;++n;){var r=e.charAt(n);if(r===","||n===e.length)break}t.nsp=e.substring(i,n)}else t.nsp="/";var l=e.charAt(n+1);if(l!==""&&Number(l)==l){for(var i=n+1;++n;){var r=e.charAt(n);if(r==null||Number(r)!=r){--n;break}if(n===e.length)break}t.id=Number(e.substring(i,n+1))}if(e.charAt(++n)){var f=Su(e.substr(n));if(bu(t.type,f))t.data=f;else throw new Error("invalid payload")}return Sr("decoded %s as %j",e,t),t}function Su(e){try{return JSON.parse(e)}catch{return!1}}vo.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function Tr(e){this.reconPack=e,this.buffers=[]}Tr.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var n=wr.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null};Tr.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function Tu(e){return{type:ge.ERROR,data:"parser error: "+e}}});var Zl=B((vx,Er)=>{u();try{Er.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{Er.exports=!1}});var Co=B((Cx,Yl)=>{u();Yl.exports=(function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})()});var bo=B((wx,Kl)=>{u();var Eu=Zl(),ku=Co();Kl.exports=function(e){var n=e.xdomain,t=e.xscheme,i=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!n||Eu))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!t&&i)return new XDomainRequest}catch{}if(!n)try{return new ku[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}});var ec=B((Tx,Xl)=>{u();Xl.exports=Object.keys||function(n){var t=[],i=Object.prototype.hasOwnProperty;for(var o in n)i.call(n,o)&&t.push(o);return t}});var kr=B((kx,nc)=>{u();var Pu=go(),tc=Object.prototype.toString,Ru=typeof Blob=="function"||typeof Blob<"u"&&tc.call(Blob)==="[object BlobConstructor]",Du=typeof File=="function"||typeof File<"u"&&tc.call(File)==="[object FileConstructor]";nc.exports=wo;function wo(e){if(!e||typeof e!="object")return!1;if(Pu(e)){for(var n=0,t=e.length;n<t;n++)if(wo(e[n]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Ru&&e instanceof Blob||Du&&e instanceof File)return!0;
1if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return wo(e.toJSON(),!0);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&wo(e[i]))return!0;return!1}});var oc=B((Rx,ic)=>{u();ic.exports=function(e,n,t){var i=e.byteLength;if(n=n||0,t=t||i,e.slice)return e.slice(n,t);if(n<0&&(n+=i),t<0&&(t+=i),t>i&&(t=i),n>=i||n>=t||i===0)return new ArrayBuffer(0);for(var o=new Uint8Array(e),r=new Uint8Array(t-n),l=n,f=0;l<t;l++,f++)r[f]=o[l];return r.buffer}});var sc=B((Bx,rc)=>{u();rc.exports=Bu;function Bu(e,n,t){var i=!1;return t=t||Au,o.count=e,e===0?n():o;function o(r,l){if(o.count<=0)throw new Error("after called too many times");--o.count,r?(i=!0,n(r),n=t):o.count===0&&!i&&n(null,l)}}function Au(){}});var dc=B((Ix,cc)=>{u();var Xt=String.fromCharCode;function ac(e){for(var n=[],t=0,i=e.length,o,r;t<i;)o=e.charCodeAt(t++),o>=55296&&o<=56319&&t<i?(r=e.charCodeAt(t++),(r&64512)==56320?n.push(((o&1023)<<10)+(r&1023)+65536):(n.push(o),t--)):n.push(o);return n}function Iu(e){for(var n=e.length,t=-1,i,o="";++t<n;)i=e[t],i>65535&&(i-=65536,o+=Xt(i>>>10&1023|55296),i=56320|i&1023),o+=Xt(i);return o}function lc(e,n){if(e>=55296&&e<=57343){if(n)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Pr(e,n){return Xt(e>>n&63|128)}function Vu(e,n){if((e&4294967168)==0)return Xt(e);var t="";return(e&4294965248)==0?t=Xt(e>>6&31|192):(e&4294901760)==0?(lc(e,n)||(e=65533),t=Xt(e>>12&15|224),t+=Pr(e,6)):(e&4292870144)==0&&(t=Xt(e>>18&7|240),t+=Pr(e,12),t+=Pr(e,6)),t+=Xt(e&63|128),t}function Fu(e,n){n=n||{};for(var t=n.strict!==!1,i=ac(e),o=i.length,r=-1,l,f="";++r<o;)l=i[r],f+=Vu(l,t);return f}function Nn(){if(en>=To)throw Error("Invalid byte index");var e=So[en]&255;if(en++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function Mu(e){var n,t,i,o,r;if(en>To)throw Error("Invalid byte index");if(en==To)return!1;if(n=So[en]&255,en++,(n&128)==0)return n;if((n&224)==192){if(t=Nn(),r=(n&31)<<6|t,r>=128)return r;throw Error("Invalid continuation byte")}if((n&240)==224){if(t=Nn(),i=Nn(),r=(n&15)<<12|t<<6|i,r>=2048)return lc(r,e)?r:65533;throw Error("Invalid continuation byte")}if((n&248)==240&&(t=Nn(),i=Nn(),o=Nn(),r=(n&7)<<18|t<<12|i<<6|o,r>=65536&&r<=1114111))return r;throw Error("Invalid UTF-8 detected")}var So,To,en;function qu(e,n){n=n||{};var t=n.strict!==!1;So=ac(e),To=So.length,en=0;for(var i=[],o;(o=Mu(t))!==!1;)i.push(o);return Iu(i)}cc.exports={version:"2.1.2",encode:Fu,decode:qu}});var pc=B(Rr=>{u();(function(e){"use strict";Rr.encode=function(n){var t=new Uint8Array(n),i,o=t.length,r="";for(i=0;i<o;i+=3)r+=e[t[i]>>2],r+=e[(t[i]&3)<<4|t[i+1]>>4],r+=e[(t[i+1]&15)<<2|t[i+2]>>6],r+=e[t[i+2]&63];return o%3===2?r=r.substring(0,r.length-1)+"=":o%3===1&&(r=r.substring(0,r.length-2)+"=="),r},Rr.decode=function(n){var t=n.length*.75,i=n.length,o,r=0,l,f,_,C;n[n.length-1]==="="&&(t--,n[n.length-2]==="="&&t--);var S=new ArrayBuffer(t),k=new Uint8Array(S);for(o=0;o<i;o+=4)l=e.indexOf(n[o]),f=e.indexOf(n[o+1]),_=e.indexOf(n[o+2]),C=e.indexOf(n[o+3]),k[r++]=l<<2|f>>4,k[r++]=(f&15)<<4|_>>2,k[r++]=(_&3)<<6|C&63;return S}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")});var gc=B((qx,_c)=>{u();var jn=typeof jn<"u"?jn:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,uc=(function(){try{var e=new Blob(["hi"]);return e.size===2}catch{return!1}})(),Lu=uc&&(function(){try{var e=new Blob([new Uint8Array([1,2])]);return e.size===2}catch{return!1}})(),Ou=jn&&jn.prototype.append&&jn.prototype.getBlob;function mc(e){return e.map(function(n){if(n.buffer instanceof ArrayBuffer){var t=n.buffer;if(n.byteLength!==t.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(t,n.byteOffset,n.byteLength)),t=i.buffer}return t}return n})}
1function fc(e,n){n=n||{};var t=new jn;return mc(e).forEach(function(i){t.append(i)}),n.type?t.getBlob(n.type):t.getBlob()}function hc(e,n){return new Blob(mc(e),n||{})}typeof Blob<"u"&&(fc.prototype=Blob.prototype,hc.prototype=Blob.prototype);_c.exports=(function(){return uc?Lu?Blob:hc:Ou?fc:void 0})()});var _n=B(ae=>{u();var Nu=ec(),ju=kr(),Eo=oc(),zu=sc(),yc=dc(),Dr;typeof ArrayBuffer<"u"&&(Dr=pc());var Qu=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),Uu=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),vc=Qu||Uu;ae.protocol=3;var ko=ae.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},li=Nu(ko),st={type:"error",data:"parser error"},Ze=gc();ae.encodePacket=function(e,n,t,i){typeof n=="function"&&(i=n,n=!1),typeof t=="function"&&(i=t,t=null);var o=e.data===void 0?void 0:e.data.buffer||e.data;if(typeof ArrayBuffer<"u"&&o instanceof ArrayBuffer)return Wu(e,n,i);if(typeof Ze<"u"&&o instanceof Ze)return Gu(e,n,i);if(o&&o.base64)return $u(e,i);var r=ko[e.type];return e.data!==void 0&&(r+=t?yc.encode(String(e.data),{strict:!1}):String(e.data)),i(""+r)};function $u(e,n){var t="b"+ae.packets[e.type]+e.data.data;return n(t)}function Wu(e,n,t){if(!n)return ae.encodeBase64Packet(e,t);var i=e.data,o=new Uint8Array(i),r=new Uint8Array(1+i.byteLength);r[0]=ko[e.type];for(var l=0;l<o.length;l++)r[l+1]=o[l];return t(r.buffer)}function Hu(e,n,t){if(!n)return ae.encodeBase64Packet(e,t);var i=new FileReader;return i.onload=function(){ae.encodePacket({type:e.type,data:i.result},n,!0,t)},i.readAsArrayBuffer(e.data)}function Gu(e,n,t){if(!n)return ae.encodeBase64Packet(e,t);if(vc)return Hu(e,n,t);var i=new Uint8Array(1);i[0]=ko[e.type];var o=new Ze([i.buffer,e.data]);return t(o)}ae.encodeBase64Packet=function(e,n){var t="b"+ae.packets[e.type];if(typeof Ze<"u"&&e.data instanceof Ze){var i=new FileReader;return i.onload=function(){var _=i.result.split(",")[1];n(t+_)},i.readAsDataURL(e.data)}var o;try{o=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch{for(var r=new Uint8Array(e.data),l=new Array(r.length),f=0;f<r.length;f++)l[f]=r[f];o=String.fromCharCode.apply(null,l)}return t+=btoa(o),n(t)};ae.decodePacket=function(e,n,t){if(e===void 0)return st;if(typeof e=="string"){if(e.charAt(0)==="b")return ae.decodeBase64Packet(e.substr(1),n);if(t&&(e=Ju(e),e===!1))return st;var o=e.charAt(0);return Number(o)!=o||!li[o]?st:e.length>1?{type:li[o],data:e.substring(1)}:{type:li[o]}}var i=new Uint8Array(e),o=i[0],r=Eo(e,1);return Ze&&n==="blob"&&(r=new Ze([r])),{type:li[o],data:r}};function Ju(e){try{e=yc.decode(e,{strict:!1})}catch{return!1}return e}ae.decodeBase64Packet=function(e,n){var t=li[e.charAt(0)];if(!Dr)return{type:t,data:{base64:!0,data:e.substr(1)}};var i=Dr.decode(e.substr(1));return n==="blob"&&Ze&&(i=new Ze([i])),{type:t,data:i}};ae.encodePayload=function(e,n,t){typeof n=="function"&&(t=n,n=null);var i=ju(e);if(n&&i)return Ze&&!vc?ae.encodePayloadAsBlob(e,t):ae.encodePayloadAsArrayBuffer(e,t);if(!e.length)return t("0:");function o(l){return l.length+":"+l}function r(l,f){ae.encodePacket(l,i?n:!1,!1,function(_){f(null,o(_))})}Br(e,r,function(l,f){return t(f.join(""))})};function Br(e,n,t){for(var i=new Array(e.length),o=zu(e.length,t),r=function(f,_,C){n(_,function(S,k){i[f]=k,C(S,i)})},l=0;l<e.length;l++)r(l,e[l],o)}ae.decodePayload=function(e,n,t){if(typeof e!="string")return ae.decodePayloadAsBinary(e,n,t);typeof n=="function"&&(t=n,n=null);var i;if(e==="")return t(st,0,1);for(var o="",r,l,f=0,_=e.length;f<_;f++){var C=e.charAt(f);if(C!==":"){o+=C;continue}if(o===""||o!=(r=Number(o))||(l=e.substr(f+1,r),o!=l.length))return t(st,0,1);if(l.length){if(i=ae.decodePacket(l,n,!1),st.type===i.type&&st.data===i.data)return t(st,0,1);var S=t(i,f+r,_);if(S===!1)return}f+=r,o=""}if(o!=="")return t(st,0,1)};ae.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));function t(i,o){ae.encodePacket(i,!0,!0,function(r){return o(null,r)})}Br(e,t,function(i,o){var r=o.reduce(function(_,C){var S;return typeof C=="string"?S=C.length:S=C.byteLength,_+S.toString().length+S+2},0),l=new Uint8Array(r),f=0;
1return o.forEach(function(_){var C=typeof _=="string",S=_;if(C){for(var re=new Uint8Array(_.length),k=0;k<_.length;k++)re[k]=_.charCodeAt(k);S=re.buffer}C?l[f++]=0:l[f++]=1;for(var q=S.byteLength.toString(),k=0;k<q.length;k++)l[f++]=parseInt(q[k]);l[f++]=255;for(var re=new Uint8Array(S),k=0;k<re.length;k++)l[f++]=re[k]}),n(l.buffer)})};ae.encodePayloadAsBlob=function(e,n){function t(i,o){ae.encodePacket(i,!0,!0,function(r){var l=new Uint8Array(1);if(l[0]=1,typeof r=="string"){for(var f=new Uint8Array(r.length),_=0;_<r.length;_++)f[_]=r.charCodeAt(_);r=f.buffer,l[0]=0}for(var C=r instanceof ArrayBuffer?r.byteLength:r.size,S=C.toString(),k=new Uint8Array(S.length+1),_=0;_<S.length;_++)k[_]=parseInt(S[_]);if(k[S.length]=255,Ze){var q=new Ze([l.buffer,k.buffer,r]);o(null,q)}})}Br(e,t,function(i,o){return n(new Ze(o))})};ae.decodePayloadAsBinary=function(e,n,t){typeof n=="function"&&(t=n,n=null);for(var i=e,o=[];i.byteLength>0;){for(var r=new Uint8Array(i),l=r[0]===0,f="",_=1;r[_]!==255;_++){if(f.length>310)return t(st,0,1);f+=r[_]}i=Eo(i,2+f.length),f=parseInt(f);var C=Eo(i,0,f);if(l)try{C=String.fromCharCode.apply(null,new Uint8Array(C))}catch{var S=new Uint8Array(C);C="";for(var _=0;_<S.length;_++)C+=String.fromCharCode(S[_])}o.push(C),i=Eo(i,f)}var k=o.length;o.forEach(function(q,re){t(ae.decodePacket(q,n,!0),re,k)})}});var Po=B((jx,xc)=>{u();var Zu=_n(),Yu=hn();xc.exports=_t;function _t(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}Yu(_t.prototype);_t.prototype.onError=function(e,n){var t=new Error(e);return t.type="TransportError",t.description=n,this.emit("error",t),this};_t.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this};_t.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this};_t.prototype.send=function(e){if(this.readyState==="open")this.write(e);else throw new Error("Transport not open")};_t.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")};_t.prototype.onData=function(e){var n=Zu.decodePacket(e,this.socket.binaryType);this.onPacket(n)};_t.prototype.onPacket=function(e){this.emit("packet",e)};_t.prototype.onClose=function(){this.readyState="closed",this.emit("close")}});var ci=B(Ar=>{u();Ar.encode=function(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n.length&&(n+="&"),n+=encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n};Ar.decode=function(e){for(var n={},t=e.split("&"),i=0,o=t.length;i<o;i++){var r=t[i].split("=");n[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return n}});var di=B(($x,Cc)=>{u();Cc.exports=function(e,n){var t=function(){};t.prototype=n.prototype,e.prototype=new t,e.prototype.constructor=e}});var Fr=B((Hx,Ec)=>{"use strict";u();var Sc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ro=64,Tc={},bc=0,tn=0,wc;function Ir(e){var n="";do n=Sc[e%Ro]+n,e=Math.floor(e/Ro);while(e>0);return n}function Ku(e){var n=0;for(tn=0;tn<e.length;tn++)n=n*Ro+Tc[e.charAt(tn)];return n}function Vr(){var e=Ir(+new Date);return e!==wc?(bc=0,wc=e):e+"."+Ir(bc++)}for(;tn<Ro;tn++)Tc[Sc[tn]]=tn;Vr.encode=Ir;Vr.decode=Ku;Ec.exports=Vr});var Pc=B((Jx,kc)=>{u();var pi=1e3,ui=pi*60,mi=ui*60,fi=mi*24,Xu=fi*365.25;
1kc.exports=function(e,n){n=n||{};var t=typeof e;if(t==="string"&&e.length>0)return em(e);if(t==="number"&&isNaN(e)===!1)return n.long?nm(e):tm(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function em(e){if(e=String(e),!(e.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]),i=(n[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*Xu;case"days":case"day":case"d":return t*fi;case"hours":case"hour":case"hrs":case"hr":case"h":return t*mi;case"minutes":case"minute":case"mins":case"min":case"m":return t*ui;case"seconds":case"second":case"secs":case"sec":case"s":return t*pi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function tm(e){return e>=fi?Math.round(e/fi)+"d":e>=mi?Math.round(e/mi)+"h":e>=ui?Math.round(e/ui)+"m":e>=pi?Math.round(e/pi)+"s":e+"ms"}function nm(e){return Do(e,fi,"day")||Do(e,mi,"hour")||Do(e,ui,"minute")||Do(e,pi,"second")||e+" ms"}function Do(e,n,t){if(!(e<n))return e<n*1.5?Math.floor(e/n)+" "+t:Math.ceil(e/n)+" "+t+"s"}});var Dc=B((G,Rc)=>{u();G=Rc.exports=Mr.debug=Mr.default=Mr;G.coerce=lm;G.disable=sm;G.enable=rm;G.enabled=am;G.humanize=Pc();G.instances=[];G.names=[];G.skips=[];G.formatters={};function im(e){var n=0,t;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return G.colors[Math.abs(n)%G.colors.length]}function Mr(e){var n;function t(){if(t.enabled){var i=t,o=+new Date,r=o-(n||o);i.diff=r,i.prev=n,i.curr=o,n=o;for(var l=new Array(arguments.length),f=0;f<l.length;f++)l[f]=arguments[f];l[0]=G.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");var _=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(S,k){if(S==="%%")return S;_++;var q=G.formatters[k];if(typeof q=="function"){var re=l[_];S=q.call(i,re),l.splice(_,1),_--}return S}),G.formatArgs.call(i,l);var C=t.log||G.log||console.log.bind(console);C.apply(i,l)}}return t.namespace=e,t.enabled=G.enabled(e),t.useColors=G.useColors(),t.color=im(e),t.destroy=om,typeof G.init=="function"&&G.init(t),G.instances.push(t),t}function om(){var e=G.instances.indexOf(this);return e!==-1?(G.instances.splice(e,1),!0):!1}function rm(e){G.save(e),G.names=[],G.skips=[];var n,t=(typeof e=="string"?e:"").split(/[\s,]+/),i=t.length;for(n=0;n<i;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),e[0]==="-"?G.skips.push(new RegExp("^"+e.substr(1)+"$")):G.names.push(new RegExp("^"+e+"$")));for(n=0;n<G.instances.length;n++){var o=G.instances[n];o.enabled=G.enabled(o.namespace)}}function sm(){G.enable("")}function am(e){if(e[e.length-1]==="*")return!0;var n,t;for(n=0,t=G.skips.length;n<t;n++)if(G.skips[n].test(e))return!1;for(n=0,t=G.names.length;n<t;n++)if(G.names[n].test(e))return!0;return!1}function lm(e){return e instanceof Error?e.stack||e.message:e}});var hi=B((Ne,Ac)=>{u();Ne=Ac.exports=Dc();Ne.log=pm;Ne.formatArgs=dm;Ne.save=um;Ne.load=Bc;Ne.useColors=cm;Ne.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:mm();Ne.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function cm(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Ne.formatters.j=function(e){try{return JSON.stringify(e)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}};function dm(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+Ne.humanize(this.diff),!!n){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(r){r!=="%%"&&(i++,r==="%c"&&(o=i))}),e.splice(o,0,t)}}function pm(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function um(e){try{e==null?Ne.storage.removeItem("debug"):Ne.storage.debug=e}catch{}}function Bc(){var e;try{e=Ne.storage.debug}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}Ne.enable(Bc());function mm(){try{return window.localStorage}catch{}}});var qr=B((Xx,Fc)=>{u();var Ic=Po(),fm=ci(),Vc=_n(),hm=di(),_m=Fr(),at=hi()("engine.io-client:polling");Fc.exports=gt;var gm=(function(){var e=bo(),n=new e({xdomain:!1});return n.responseType!=null})();function gt(e){var n=e&&e.forceBase64;(!gm||n)&&(this.supportsBinary=!1),Ic.call(this,e)}hm(gt,Ic);gt.prototype.name="polling";gt.prototype.doOpen=function(){this.poll()};gt.prototype.pause=function(e){var n=this;this.readyState="pausing";function t(){at("paused"),n.readyState="paused",e()}if(this.polling||!this.writable){var i=0;this.polling&&(at("we are currently polling - waiting to pause"),i++,this.once("pollComplete",function(){at("pre-pause polling complete"),--i||t()}
1)),this.writable||(at("we are currently writing - waiting to pause"),i++,this.once("drain",function(){at("pre-pause writing complete"),--i||t()}))}else t()};gt.prototype.poll=function(){at("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};gt.prototype.onData=function(e){var n=this;at("polling got data %s",e);var t=function(i,o,r){if(n.readyState==="opening"&&n.onOpen(),i.type==="close")return n.onClose(),!1;n.onPacket(i)};Vc.decodePayload(e,this.socket.binaryType,t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():at('ignoring poll - transport state "%s"',this.readyState))};gt.prototype.doClose=function(){var e=this;function n(){at("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(at("transport open - closing"),n()):(at("transport not open - deferring close"),this.once("open",n))};gt.prototype.write=function(e){var n=this;this.writable=!1;var t=function(){n.writable=!0,n.emit("drain")};Vc.encodePayload(e,this.supportsBinary,function(i){n.doWrite(i,t)})};gt.prototype.uri=function(){var e=this.query||{},n=this.secure?"https":"http",t="";this.timestampRequests!==!1&&(e[this.timestampParam]=_m()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=fm.encode(e),this.port&&(n==="https"&&Number(this.port)!==443||n==="http"&&Number(this.port)!==80)&&(t=":"+this.port),e.length&&(e="?"+e);var i=this.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.hostname+"]":this.hostname)+t+this.path+e}});var Nc=B((tC,Or)=>{u();var ym=bo(),Oc=qr(),vm=hn(),xm=di(),Lr=hi()("engine.io-client:polling-xhr"),Cm=Co();Or.exports=zn;Or.exports.Request=Ee;function Mc(){}function zn(e){if(Oc.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var n=location.protocol==="https:",t=location.port;t||(t=n?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||t!==e.port,this.xs=e.secure!==n}}xm(zn,Oc);zn.prototype.supportsBinary=!0;zn.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Ee(e)};zn.prototype.doWrite=function(e,n){var t=typeof e!="string"&&e!==void 0,i=this.request({method:"POST",data:e,isBinary:t}),o=this;i.on("success",n),i.on("error",function(r){o.onError("xhr post error",r)}),this.sendXhr=i};zn.prototype.doPoll=function(){Lr("xhr poll");var e=this.request(),n=this;e.on("data",function(t){n.onData(t)}),e.on("error",function(t){n.onError("xhr poll error",t)}),this.pollXhr=e};function Ee(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}vm(Ee.prototype);Ee.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new ym(e),t=this;try{Lr("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch{}if(this.method==="POST")try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}
1"withCredentials"in n&&(n.withCredentials=this.withCredentials),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){t.onLoad()},n.onerror=function(){t.onError(n.responseText)}):n.onreadystatechange=function(){if(n.readyState===2)try{var o=n.getResponseHeader("Content-Type");(t.supportsBinary&&o==="application/octet-stream"||o==="application/octet-stream; charset=UTF-8")&&(n.responseType="arraybuffer")}catch{}n.readyState===4&&(n.status===200||n.status===1223?t.onLoad():setTimeout(function(){t.onError(typeof n.status=="number"?n.status:0)},0))},Lr("xhr data %s",this.data),n.send(this.data)}catch(o){setTimeout(function(){t.onError(o)},0);return}typeof document<"u"&&(this.index=Ee.requestsCount++,Ee.requests[this.index]=this)};Ee.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};Ee.prototype.onData=function(e){this.emit("data",e),this.onSuccess()};Ee.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)};Ee.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Mc:this.xhr.onreadystatechange=Mc,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ee.requests[this.index],this.xhr=null}};Ee.prototype.onLoad=function(){var e;try{var n;try{n=this.xhr.getResponseHeader("Content-Type")}catch{}n==="application/octet-stream"||n==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(t){this.onError(t)}e!=null&&this.onData(e)};Ee.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR};Ee.prototype.abort=function(){this.cleanup()};Ee.requestsCount=0;Ee.requests={};typeof document<"u"&&(typeof attachEvent=="function"?attachEvent("onunload",Lc):typeof addEventListener=="function"&&(qc="onpagehide"in Cm?"pagehide":"unload",addEventListener(qc,Lc,!1)));var qc;function Lc(){for(var e in Ee.requests)Ee.requests.hasOwnProperty(e)&&Ee.requests[e].abort()}});var Qc=B((iC,zc)=>{u();var Nr=qr(),bm=di(),jc=Co();zc.exports=Qn;var wm=/\n/g,Sm=/\\n/g,Bo;function Tm(){}function Qn(e){Nr.call(this,e),this.query=this.query||{},Bo||(Bo=jc.___eio=jc.___eio||[]),this.index=Bo.length;var n=this;Bo.push(function(t){n.onData(t)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=Tm)},!1)}bm(Qn,Nr);Qn.prototype.supportsBinary=!1;Qn.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Nr.prototype.doClose.call(this)};Qn.prototype.doPoll=function(){var e=this,n=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),n.async=!0,n.src=this.uri(),n.onerror=function(o){e.onError("jsonp poll error",o)};var t=document.getElementsByTagName("script")[0];t?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n),this.script=n;var i=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);i&&setTimeout(function(){var o=document.createElement("iframe");document.body.appendChild(o),document.body.removeChild(o)},100)};Qn.prototype.doWrite=function(e,n){var t=this;if(!this.form){var i=document.createElement("form"),o=document.createElement("textarea"),r=this.iframeId="eio_iframe_"+this.index,l;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=r,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}this.form.action=this.uri();function f(){_(),n()}function _(){if(t.iframe)try{t.form.removeChild(t.iframe)}catch(S){t.onError("jsonp polling iframe removal error",S)}try{var C='<iframe src="javascript:0" name="'+t.iframeId+'">';l=document.createElement(C)}catch{l=document.createElement("iframe"),l.name=t.iframeId,l.src="javascript:0"}l.id=t.iframeId,t.form.appendChild(l),t.iframe=l}_(),e=e.replace(Sm,`\\ 2`),this.area.value=e.replace(wm,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){t.iframe.readyState==="complete"&&f()}:this.iframe.onload=f}});var $c=B((rC,Uc)=>{"use strict";u();Uc.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var Hc=B((aC,Wc)=>{u();var jr=Po(),Em=_n(),km=ci(),Pm=di(),Rm=Fr(),Dm=hi()("engine.io-client:websocket"),Ao,zr;typeof WebSocket<"u"?Ao=WebSocket:typeof self<"u"&&(Ao=self.WebSocket||self.MozWebSocket);if(typeof window>"u")try{zr=$c()}catch{}var Un=Ao||zr;Wc.exports=it;function it(e){var n=e&&e.forceBase64;n&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=Ao&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(Un=zr),jr.call(this,e)}Pm(it,jr);it.prototype.name="websocket";it.prototype.supportsBinary=!0;it.prototype.doOpen=function(){if(this.check()){var e=this.uri(),n=this.protocols,t={};this.isReactNative||(t.agent=this.agent,t.perMessageDeflate=this.perMessageDeflate,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(t.headers=this.extraHeaders),this.localAddress&&(t.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?n?new Un(e,n):new Un(e):new Un(e,n,t)}
2catch(i){return this.emit("error",i)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};it.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(n){e.onData(n.data)},this.ws.onerror=function(n){e.onError("websocket error",n)}};it.prototype.write=function(e){var n=this;this.writable=!1;for(var t=e.length,i=0,o=t;i<o;i++)(function(l){Em.encodePacket(l,n.supportsBinary,function(f){if(!n.usingBrowserWebSocket){var _={};if(l.options&&(_.compress=l.options.compress),n.perMessageDeflate){var C=typeof f=="string"?Buffer.byteLength(f):f.length;C<n.perMessageDeflate.threshold&&(_.compress=!1)}}try{n.usingBrowserWebSocket?n.ws.send(f):n.ws.send(f,_)}catch{Dm("websocket closed before onclose event")}--t||r()})})(e[i]);function r(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}};it.prototype.onClose=function(){jr.prototype.onClose.call(this)};it.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()};it.prototype.uri=function(){var e=this.query||{},n=this.secure?"wss":"ws",t="";this.port&&(n==="wss"&&Number(this.port)!==443||n==="ws"&&Number(this.port)!==80)&&(t=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Rm()),this.supportsBinary||(e.b64=1),e=km.encode(e),e.length&&(e="?"+e);var i=this.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.hostname+"]":this.hostname)+t+this.path+e};it.prototype.check=function(){return!!Un&&!("__initialize"in Un&&this.name===it.prototype.name)}
2});var Ur=B(Qr=>{u();var Bm=bo(),Am=Nc(),Im=Qc(),Vm=Hc();Qr.polling=Fm;Qr.websocket=Vm;function Fm(e){var n,t=!1,i=!1,o=e.jsonp!==!1;if(typeof location<"u"){var r=location.protocol==="https:",l=location.port;l||(l=r?443:80),t=e.hostname!==location.hostname||l!==e.port,i=e.secure!==r}if(e.xdomain=t,e.xscheme=i,n=new Bm(e),"open"in n&&!e.forceJSONP)return new Am(e);if(!o)throw new Error("JSONP disabled");return new Im(e)}});var $r=B((pC,Gc)=>{u();var Mm=[].indexOf;Gc.exports=function(e,n){if(Mm)return e.indexOf(n);for(var t=0;t<e.length;++t)if(e[t]===n)return t;return-1}});var Kc=B((mC,Yc)=>{u();var qm=Ur(),Lm=hn(),xe=hi()("engine.io-client:socket"),Om=$r(),Zc=_n(),Jc=_r(),Nm=ci();Yc.exports=Z;function Z(e,n){if(!(this instanceof Z))return new Z(e,n);n=n||{},e&&typeof e=="object"&&(n=e,e=null),e?(e=Jc(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Jc(n.host).host),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=n.query||{},typeof this.query=="string"&&(this.query=Nm.decode(this.query)),this.upgrade=n.upgrade!==!1,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=n.jsonp!==!1,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=n.withCredentials!==!1,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=n.perMessageDeflate!==!1?n.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=n.rejectUnauthorized===void 0?!0:n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Z.priorWebsocketSuccess=!1;Lm(Z.prototype);Z.protocol=Zc.protocol;Z.Socket=Z;Z.Transport=Po();Z.transports=Ur();Z.parser=_n();Z.prototype.createTransport=function(e){xe('creating transport "%s"',e);var n=jm(this.query);n.EIO=Zc.protocol,n.transport=e;var t=this.transportOptions[e]||{};this.id&&(n.sid=this.id);var i=new qm[e]({query:n,socket:this,agent:t.agent||this.agent,hostname:t.hostname||this.hostname,port:t.port||this.port,secure:t.secure||this.secure,path:t.path||this.path,forceJSONP:t.forceJSONP||this.forceJSONP,jsonp:t.jsonp||this.jsonp,forceBase64:t.forceBase64||this.forceBase64,enablesXDR:t.enablesXDR||this.enablesXDR,withCredentials:t.withCredentials||this.withCredentials,timestampRequests:t.timestampRequests||this.timestampRequests,timestampParam:t.timestampParam||this.timestampParam,policyPort:t.policyPort||this.policyPort,pfx:t.pfx||this.pfx,key:t.key||this.key,passphrase:t.passphrase||this.passphrase,cert:t.cert||this.cert,ca:t.ca||this.ca,ciphers:t.ciphers||this.ciphers,rejectUnauthorized:t.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:t.perMessageDeflate||this.perMessageDeflate,extraHeaders:t.extraHeaders||this.extraHeaders,forceNo
2de:t.forceNode||this.forceNode,localAddress:t.localAddress||this.localAddress,requestTimeout:t.requestTimeout||this.requestTimeout,protocols:t.protocols||void 0,isReactNative:this.isReactNative});return i};function jm(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}Z.prototype.open=function(){var e;if(this.rememberUpgrade&&Z.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var n=this;setTimeout(function(){n.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)};Z.prototype.setTransport=function(e){xe("setting transport %s",e.name);var n=this;this.transport&&(xe("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){n.onDrain()}).on("packet",function(t){n.onPacket(t)}).on("error",function(t){n.onError(t)}).on("close",function(){n.onClose("transport close")})};Z.prototype.probe=function(e){xe('probing transport "%s"',e);var n=this.createTransport(e,{probe:1}),t=!1,i=this;Z.priorWebsocketSuccess=!1;function o(){if(i.onlyBinaryUpgrades){var k=!this.supportsBinary&&i.transport.supportsBinary;t=t||k}t||(xe('probe transport "%s" opened',e),n.send([{type:"ping",data:"probe"}]),n.once("packet",function(q){if(!t)if(q.type==="pong"&&q.data==="probe"){if(xe('probe transport "%s" pong',e),i.upgrading=!0,i.emit("upgrading",n),!n)return;Z.priorWebsocketSuccess=n.name==="websocket",xe('pausing current transport "%s"',i.transport.name),i.transport.pause(function(){t||i.readyState!=="closed"&&(xe("changing transport and sending upgrade packet"),S(),i.setTransport(n),n.send([{type:"upgrade"}]),i.emit("upgrade",n),n=null,i.upgrading=!1,i.flush())})}else{xe('probe transport "%s" failed',e);var re=new Error("probe error");re.transport=n.name,i.emit("upgradeError",re)}}))}function r(){t||(t=!0,S(),n.close(),n=null)}function l(k){var q=new Error("probe error: "+k);q.transport=n.name,r(),xe('probe transport "%s" failed because of error: %s',e,k),i.emit("upgradeError",q)}function f(){l("transport closed")}function _(){l("socket closed")}function C(k){n&&k.name!==n.name&&(xe('"%s" works - aborting "%s"',k.name,n.name),r())}function S(){n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",f),i.removeListener("close",_),i.removeListener("upgrading",C)}n.once("open",o),n.once("error",l),n.once("close",f),this.once("close",_),this.once("upgrading",C),n.open()};Z.prototype.onOpen=function(){if(xe("socket open"),this.readyState="open",Z.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){xe("starting upgrade probes");for(var e=0,n=this.upgrades.length;e<n;e++)this.probe(this.upgrades[e])}};Z.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(xe('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var n=new Error("server error");n.code=e.data,this.onError(n);break;
2case"message":this.emit("data",e.data),this.emit("message",e.data);break}else xe('packet received with socket readyState "%s"',this.readyState)};Z.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Z.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var n=this;n.pingTimeoutTimer=setTimeout(function(){n.readyState!=="closed"&&n.onClose("ping timeout")},e||n.pingInterval+n.pingTimeout)};Z.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){xe("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)};Z.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})};Z.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Z.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(xe("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Z.prototype.write=Z.prototype.send=function(e,n,t){return this.sendPacket("message",e,n,t),this};Z.prototype.sendPacket=function(e,n,t,i){if(typeof n=="function"&&(i=n,n=void 0),typeof t=="function"&&(i=t,t=null),!(this.readyState==="closing"||this.readyState==="closed")){t=t||{},t.compress=t.compress!==!1;var o={type:e,data:n,options:t};this.emit("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}};Z.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?i():n()}):this.upgrading?i():n()}function n(){e.onClose("forced close"),xe("socket closing - telling transport to close"),e.transport.close()}function t(){e.removeListener("upgrade",t),e.removeListener("upgradeError",t),n()}function i(){e.once("upgrade",t),e.once("upgradeError",t)}return this};Z.prototype.onError=function(e){xe("socket error %j",e),Z.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)};Z.prototype.onClose=function(e,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){xe('socket close with reason: "%s"',e);var t=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,n),t.writeBuffer=[],t.prevBufferLen=0}};Z.prototype.filterUpgrades=function(e){for(var n=[],t=0,i=e.length;t<i;t++)~Om(this.transports,e[t])&&n.push(e[t]);return n}});var Xc=B((hC,Wr)=>{u();Wr.exports=Kc();Wr.exports.parser=_n()});var td=B((gC,ed)=>{u();ed.exports=zm;function zm(e,n){var t=[];n=n||0;for(var i=n||0;i<e.length;i++)t[i-n]=e[i];return t}});var Hr=B((vC,nd)=>{u();nd.exports=Qm;function Qm(e,n,t){return e.on(n,t),{destroy:function(){e.removeListener(n,t)}}}});var Gr=B((CC,od)=>{u();var id=[].slice;od.exports=function(e,n){if(typeof n=="string"&&(n=e[n]),typeof n!="function")throw new Error("bind() requires a function");var t=id.call(arguments,2);return function(){return n.apply(e,t.concat(id.call(arguments)))}}});var Xr=B((ad,ld)=>{u();var je=xo(),rd=hn(),Yr=td(),Jr=Hr(),Zr=Gr(),lt=On()("socket.io-client:socket"),Um=ci(),sd=kr();ld.exports=ad=ye;var $m={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},Kr=rd.prototype.emit;function ye(e,n,t){this.io=e,this.nsp=n,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},t&&t.query&&(this.query=t.query),this.io.autoConnect&&this.open()}rd(ye.prototype);ye.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[Jr(e,"open",Zr(this,"onopen")),Jr(e,"packet",Zr(this,"onpacket")),Jr(e,"close",Zr(this,"onclose"))]}};ye.prototype.open=ye.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit
2("connecting"),this)};ye.prototype.send=function(){var e=Yr(arguments);return e.unshift("message"),this.emit.apply(this,e),this};ye.prototype.emit=function(e){if($m.hasOwnProperty(e))return Kr.apply(this,arguments),this;var n=Yr(arguments),t={type:(this.flags.binary!==void 0?this.flags.binary:sd(n))?je.BINARY_EVENT:je.EVENT,data:n};return t.options={},t.options.compress=!this.flags||this.flags.compress!==!1,typeof n[n.length-1]=="function"&&(lt("emitting packet with ack id %d",this.ids),this.acks[this.ids]=n.pop(),t.id=this.ids++),this.connected?this.packet(t):this.sendBuffer.push(t),this.flags={},this};ye.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)};ye.prototype.onopen=function(){if(lt("transport is open - connecting"),this.nsp!=="/")if(this.query){var e=typeof this.query=="object"?Um.encode(this.query):this.query;lt("sending connect packet with query %s",e),this.packet({type:je.CONNECT,query:e})}else this.packet({type:je.CONNECT})};ye.prototype.onclose=function(e){lt("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)};ye.prototype.onpacket=function(e){var n=e.nsp===this.nsp,t=e.type===je.ERROR&&e.nsp==="/";if(!(!n&&!t))switch(e.type){case je.CONNECT:this.onconnect();break;case je.EVENT:this.onevent(e);break;case je.BINARY_EVENT:this.onevent(e);break;case je.ACK:this.onack(e);break;case je.BINARY_ACK:this.onack(e);break;case je.DISCONNECT:this.ondisconnect();break;case je.ERROR:this.emit("error",e.data);break}};ye.prototype.onevent=function(e){var n=e.data||[];lt("emitting event %j",n),e.id!=null&&(lt("attaching ack callback to event"),n.push(this.ack(e.id))),this.connected?Kr.apply(this,n):this.receiveBuffer.push(n)};ye.prototype.ack=function(e){var n=this,t=!1;return function(){if(!t){t=!0;var i=Yr(arguments);lt("sending ack %j",i),n.packet({type:sd(i)?je.BINARY_ACK:je.ACK,id:e,data:i})}}};ye.prototype.onack=function(e){var n=this.acks[e.id];typeof n=="function"?(lt("calling ack %s with %j",e.id,e.data),n.apply(this,e.data),delete this.acks[e.id]):lt("bad ack %s",e.id)};ye.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()};ye.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)Kr.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]};ye.prototype.ondisconnect=function(){lt("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")};ye.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)};ye.prototype.close=ye.prototype.disconnect=function(){return this.connected&&(lt("performing disconnect (%s)",this.nsp),this.packet({type:je.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this};ye.prototype.compress=function(e){return this.flags.compress=e,this};ye.prototype.binary=function(e){return this.flags.binary=e,this}});var dd=B((SC,cd)=>{u();cd.exports=$n;function $n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}$n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),t=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-t:e+t}return Math.min(e,this.max)|0};$n.prototype.reset=function(){this.attempts=0};$n.prototype.setMin=function(e){this.ms=e};$n.prototype.setMax=function(e){this.max=e};$n.prototype.setJitter=function(e){this.jitter=e}});var es=B((EC,md)=>{u();var Wm=Xc(),Hm=Xr(),Gm=hn(),Jm=xo(),nn=Hr(),Wn=Gr(),Ve=On()("socket.io-client:manager"),pd=$r(),Zm=dd(),ud=Object.prototype.hasOwnProperty;md.exports=X;function X(e,n){if(!(this instanceof X))return new X(e,n);e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.nsps={},this.subs=[],this.opts=n,this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor(n.randomizationFactor||.5),this.backoff=new Zm({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var t=n.parser||Jm;this.encoder=new t.Encoder,this.decoder=new t.Decoder,this.autoConnect=n.autoConnect!==!1,this.autoConnect&&this.open()}X.prototype.emitAll=function(){this.emit.apply(this,arguments);
2for(var e in this.nsps)ud.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)};X.prototype.updateSocketIds=function(){for(var e in this.nsps)ud.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))};X.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id};Gm(X.prototype);X.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection};X.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts};X.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay};X.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor};X.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax};X.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout};X.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};X.prototype.open=X.prototype.connect=function(e,n){if(Ve("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Ve("opening %s",this.uri),this.engine=Wm(this.uri,this.opts);var t=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=nn(t,"open",function(){i.onopen(),e&&e()}),r=nn(t,"error",function(_){if(Ve("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",_),e){var C=new Error("Connection error");C.data=_,e(C)}else i.maybeReconnectOnOpen()});if(this._timeout!==!1){var l=this._timeout;Ve("connect attempt will timeout after %d",l),l===0&&o.destroy();var f=setTimeout(function(){Ve("connect attempt timed out after %d",l),o.destroy(),t.close(),t.emit("error","timeout"),i.emitAll("connect_timeout",l)},l);this.subs.push({destroy:function(){clearTimeout(f)}})}return this.subs.push(o),this.subs.push(r),this};X.prototype.onopen=function(){Ve("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(nn(e,"data",Wn(this,"ondata"))),this.subs.push(nn(e,"ping",Wn(this,"onping"))),this.subs.push(nn(e,"pong",Wn(this,"onpong"))),this.subs.push(nn(e,"error",Wn(this,"onerror"))),this.subs.push(nn(e,"close",Wn(this,"onclose"))),this.subs.push(nn(this.decoder,"decoded",Wn(this,"ondecoded")))};X.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};X.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};X.prototype.ondata=function(e){this.decoder.add(e)};X.prototype.ondecoded=function(e){this.emit("packet",e)};X.prototype.onerror=function(e){Ve("error",e),this.emitAll("error",e)};X.prototype.socket=function(e,n){var t=this.nsps[e];if(!t){t=new Hm(this,e,n),this.nsps[e]=t;var i=this;t.on("connecting",o),t.on("connect",function(){t.id=i.generateId(e)}),this.autoConnect&&o()}function o(){~pd(i.connecting,t)||i.connecting.push(t)}return t};X.prototype.destroy=function(e){var n=pd(this.connecting,e);~n&&this.connecting.splice(n,1),!this.connecting.length&&this.close()};X.prototype.packet=function(e){Ve("writing packet %j",e);var n=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),n.encoding?n.packetBuffer.push(e):(n.encoding=!0,this.encoder.encode(e,function(t){for(var i=0;i<t.length;i++)n.engine.write(t[i],e.options);n.encoding=!1,n.processPacketQueue()}))};X.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}};X.prototype.cleanup=function(){Ve("cleanup");for(var e=this.subs.length,n=0;n<e;n++){var t=this.subs.shift();t.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};X.prototype.close=X.prototype.disconnect=function(){Ve("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};X.prototype.onclose=function(e){Ve("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit
2("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()};X.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Ve("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var n=this.backoff.duration();Ve("will wait %dms before reconnect attempt",n),this.reconnecting=!0;var t=setTimeout(function(){e.skipReconnect||(Ve("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(i){i?(Ve("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",i.data)):(Ve("reconnect success"),e.onreconnect())}))},n);this.subs.push({destroy:function(){clearTimeout(t)}})}};X.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}});var yd=B((gn,gd)=>{u();var Ym=jl(),Km=xo(),fd=es(),hd=On()("socket.io-client");gd.exports=gn=_d;var _i=gn.managers={};function _d(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};var t=Ym(e),i=t.source,o=t.id,r=t.path,l=_i[o]&&r in _i[o].nsps,f=n.forceNew||n["force new connection"]||n.multiplex===!1||l,_;return f?(hd("ignoring socket cache for %s",i),_=fd(i,n)):(_i[o]||(hd("new io instance for %s",i),_i[o]=fd(i,n)),_=_i[o]),t.query&&!n.query&&(n.query=t.query),_.socket(t.path,n)}gn.protocol=Km.protocol;gn.connect=_d;gn.Manager=es();gn.Socket=Xr()});var c0=B((T3,l0)=>{u();l0.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var an=B(yn=>{u();var as,T_=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];yn.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};yn.getSymbolTotalCodewords=function(n){return T_[n]};yn.getBCHDigit=function(e){let n=0;for(;e!==0;)n++,e>>>=1;return n};yn.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');as=n};yn.isKanjiModeEnabled=function(){return typeof as<"u"};yn.toSJIS=function(n){return as(n)}});var Yo=B(ot=>{u();ot.L={bit:1};ot.M={bit:0};ot.Q={bit:3};ot.H={bit:2};function E_(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return ot.L;case"m":case"medium":return ot.M;case"q":case"quartile":return ot.Q;case"h":case"high":return ot.H;default:throw new Error("Unknown EC Level: "+e)}}ot.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4};ot.from=function(n,t){if(ot.isValid(n))return n;try{return E_(n)}catch{return t}}});var u0=B((B3,p0)=>{u();function d0(){this.buffer=[],this.length=0}d0.prototype={get:function(e){let n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let t=0;t<n;t++)this.putBit((e>>>n-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}};p0.exports=d0});var f0=B((I3,m0)=>{u();function Ci(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Ci.prototype.set=function(e,n,t,i){let o=e*this.size+n;this.data[o]=t,i&&(this.reservedBit[o]=!0)};Ci.prototype.get=function(e,n){return this.data[e*this.size+n]};Ci.prototype.xor=function(e,n,t){this.data[e*this.size+n]^=t};Ci.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]};m0.exports=Ci});var h0=B(Ko=>{u();var k_=an().getSymbolSize;Ko.getRowColCoords=function(n){if(n===1)return[];let t=Math.floor(n/7)+2,i=k_(n),o=i===145?26:Math.ceil((i-13)/(2*t-2))*2,r=[i-7];for(let l=1;l<t-1;l++)r[l]=r[l-1]-o;return r.push(6),r.reverse()};Ko.getPositions=function(n){let t=[],i=Ko.getRowColCoords(n),o=i.length;for(let r=0;r<o;r++)for(let l=0;l<o;l++)r===0&&l===0||r===0&&l===o-1||r===o-1&&l===0||t.push([i[r],i[l]]);return t}});var y0=B(g0=>{u();var P_=an().getSymbolSize,_0=7;g0.getPositions=function(n){let t=P_(n);return[[0,0],[t-_0,0],[0,t-_0]]}});var v0=B(ue=>{u();ue.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var vn={N1:3,N2:3,N3:40,N4:10};ue.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7};ue.from=function(n){return ue.isValid(n)?parseInt(n,10):void 0};ue.getPenaltyN1=function(n){let t=n.size,i=0,o=0,r=0,l=null,f=null;for(let _=0;_<t;_++){o=r=0,l=f=null;for(let C=0;C<t;C++){let S=n.get(_,C);S===l?o++:(o>=5&&(i+=vn.N1+(o-5)),l=S,o=1),S=n.get(C,_),S===f?r++:(r>=5&&(i+=vn.N1+(r-5)),f=S,r=1)}o>=5&&(i+=vn.N1+(o-5)),r>=5&&(i+=vn.N1+(r-5))}return i};ue.getPenaltyN2=function(n){let t=n.size,i=0;for(let o=0;o<t-1;o++)for(let r=0;r<t-1;r++){let l=n.get(o,r)+n.get(o,r+1)+n.get(o+1,r)+n.get(o+1,r+1);(l===4||l===0)&&i++}return i*vn.N2};ue.getPenaltyN3=function(n){let t=n.size,i=0,o=0,r=0;for(let l=0;l<t;l++){o=r=0;for(let f=0;f<t;f++)o=o<<1&2047|n.get(l,f),f>=10&&(o===1488||o===93)&&i++,r=r<<1&2047|n.get(f,l),f>=10&&(r===1488||r===93)&&i++}return i*vn.N3};ue.getPenaltyN4=function(n){let t=0,i=n.data.length;for(let r=0;r<i;r++)t+=n.data[r];return Math.abs(Math.ceil(t*100/i/5)-10)*vn.N4};function R_(e,n,t){switch(e){case ue.Patterns.PATTERN000:return(n+t)%2===0;case ue.Patterns.PATTERN001:return n%2===0;case ue.Patterns.PATTERN010:return t%3===0;case ue.Patterns.PATTERN011:return(n+t)%3===0;case ue.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(t/3))%2===0;case ue.Patterns.PATTERN101:return n*t%2+n*t%3===0;case ue.Patterns.PATTERN110:return(n*t%2+n*t%3)%2===0;case ue.Patterns.PATTERN111:return(n*t%3+(n+t)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}ue.applyMask=function(n,t){let i=t.size;
2for(let o=0;o<i;o++)for(let r=0;r<i;r++)t.isReserved(r,o)||t.xor(r,o,R_(n,r,o))};ue.getBestMask=function(n,t){let i=Object.keys(ue.Patterns).length,o=0,r=1/0;for(let l=0;l<i;l++){t(l),ue.applyMask(l,n);let f=ue.getPenaltyN1(n)+ue.getPenaltyN2(n)+ue.getPenaltyN3(n)+ue.getPenaltyN4(n);ue.applyMask(l,n),f<r&&(r=f,o=l)}return o}});var cs=B(ls=>{u();var ln=Yo(),Xo=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],er=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ls.getBlocksCount=function(n,t){switch(t){case ln.L:return Xo[(n-1)*4+0];case ln.M:return Xo[(n-1)*4+1];case ln.Q:return Xo[(n-1)*4+2];case ln.H:return Xo[(n-1)*4+3];default:return}};ls.getTotalCodewordsCount=function(n,t){switch(t){case ln.L:return er[(n-1)*4+0];case ln.M:return er[(n-1)*4+1];case ln.Q:return er[(n-1)*4+2];case ln.H:return er[(n-1)*4+3];default:return}}});var x0=B(nr=>{u();var bi=new Uint8Array(512),tr=new Uint8Array(256);(function(){let n=1;for(let t=0;t<255;t++)bi[t]=n,tr[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)bi[t]=bi[t-255]})();nr.log=function(n){if(n<1)throw new Error("log("+n+")");return tr[n]};nr.exp=function(n){return bi[n]};nr.mul=function(n,t){return n===0||t===0?0:bi[tr[n]+tr[t]]}});var C0=B(wi=>{u();var ds=x0();wi.mul=function(n,t){let i=new Uint8Array(n.length+t.length-1);for(let o=0;o<n.length;o++)for(let r=0;r<t.length;r++)i[o+r]^=ds.mul(n[o],t[r]);return i};wi.mod=function(n,t){let i=new Uint8Array(n);for(;i.length-t.length>=0;){let o=i[0];for(let l=0;l<t.length;l++)i[l]^=ds.mul(t[l],o);let r=0;for(;r<i.length&&i[r]===0;)r++;i=i.slice(r)}return i};wi.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let i=0;i<n;i++)t=wi.mul(t,new Uint8Array([1,ds.exp(i)]));return t}});var S0=B((H3,w0)=>{u();var b0=C0();function ps(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ps.prototype.initialize=function(n){this.degree=n,this.genPoly=b0.generateECPolynomial(this.degree)};ps.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(n.length+this.degree);t.set(n);let i=b0.mod(t,this.genPoly),o=this.degree-i.length;if(o>0){let r=new Uint8Array(this.degree);return r.set(i,o),r}return i};w0.exports=ps});var us=B(T0=>{u();T0.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}});var ms=B(kt=>{u();var E0="[0-9]+",D_="[A-Z $%*+\\-./:]+",Si="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Si=Si.replace(/u/g,"\\u");var B_="(?:(?![A-Z0-9 $%*+\\-./:]|"+Si+`)(?:.|[\r 3]))+`;kt.KANJI=new RegExp(Si,"g");kt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");kt.BYTE=new RegExp(B_,"g");kt.NUMERIC=new RegExp(E0,"g");kt.ALPHANUMERIC=new RegExp(D_,"g");var A_=new RegExp("^"+Si+"$"),I_=new RegExp("^"+E0+"$"),V_=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");kt.testKanji=function(n){return A_.test(n)};kt.testNumeric=function(n){return I_.test(n)};kt.testAlphanumeric=function(n){return V_.test(n)}});var cn=B(we=>{u();var F_=us(),fs=ms();we.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};we.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};we.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};we.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};we.MIXED={bit:-1};we.getCharCountIndicator=function(n,t){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!F_.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?n.ccBits[0]:t<27?n.ccBits[1]:n.ccBits[2]};we.getBestModeForData=function(n){return fs.testNumeric(n)?we.NUMERIC:fs.testAlphanumeric(n)?we.ALPHANUMERIC:fs.testKanji(n)?we.KANJI:we.BYTE};we.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")};we.isValid=function(n){return n&&n.bit&&n.ccBits};function M_(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return we.NUMERIC;case"alphanumeric":return we.ALPHANUMERIC;case"kanji":return we.KANJI;case"byte":return we.BYTE;default:throw new Error("Unknown mode: "+e)}}we.from=function(n,t){if(we.isValid(n))return n;try{return M_(n)}catch{return t}}});var B0=B(xn=>{u();var ir=an(),q_=cs(),k0=Yo(),dn=cn(),hs=us(),R0=7973,P0=ir.getBCHDigit
3(R0);function L_(e,n,t){for(let i=1;i<=40;i++)if(n<=xn.getCapacity(i,t,e))return i}function D0(e,n){return dn.getCharCountIndicator(e,n)+4}function O_(e,n){let t=0;return e.forEach(function(i){let o=D0(i.mode,n);t+=o+i.getBitsLength()}),t}function N_(e,n){for(let t=1;t<=40;t++)if(O_(e,t)<=xn.getCapacity(t,n,dn.MIXED))return t}xn.from=function(n,t){return hs.isValid(n)?parseInt(n,10):t};xn.getCapacity=function(n,t,i){if(!hs.isValid(n))throw new Error("Invalid QR Code version");typeof i>"u"&&(i=dn.BYTE);let o=ir.getSymbolTotalCodewords(n),r=q_.getTotalCodewordsCount(n,t),l=(o-r)*8;if(i===dn.MIXED)return l;let f=l-D0(i,n);switch(i){case dn.NUMERIC:return Math.floor(f/10*3);case dn.ALPHANUMERIC:return Math.floor(f/11*2);case dn.KANJI:return Math.floor(f/13);case dn.BYTE:default:return Math.floor(f/8)}};xn.getBestVersionForData=function(n,t){let i,o=k0.from(t,k0.M);if(Array.isArray(n)){if(n.length>1)return N_(n,o);if(n.length===0)return 1;i=n[0]}else i=n;return L_(i.mode,i.getLength(),o)};xn.getEncodedBits=function(n){if(!hs.isValid(n)||n<7)throw new Error("Invalid QR Code version");let t=n<<12;for(;ir.getBCHDigit(t)-P0>=0;)t^=R0<<ir.getBCHDigit(t)-P0;return n<<12|t}});var F0=B(V0=>{u();var _s=an(),I0=1335,j_=21522,A0=_s.getBCHDigit(I0);V0.getEncodedBits=function(n,t){let i=n.bit<<3|t,o=i<<10;for(;_s.getBCHDigit(o)-A0>=0;)o^=I0<<_s.getBCHDigit(o)-A0;return(i<<10|o)^j_}});var q0=B((rS,M0)=>{u();var z_=cn();function Gn(e){this.mode=z_.NUMERIC,this.data=e.toString()}Gn.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};Gn.prototype.getLength=function(){return this.data.length};Gn.prototype.getBitsLength=function(){return Gn.getBitsLength(this.data.length)};Gn.prototype.write=function(n){let t,i,o;for(t=0;t+3<=this.data.length;t+=3)i=this.data.substr(t,3),o=parseInt(i,10),n.put(o,10);let r=this.data.length-t;r>0&&(i=this.data.substr(t),o=parseInt(i,10),n.put(o,r*3+1))};M0.exports=Gn});var O0=B((aS,L0)=>{u();var Q_=cn(),gs=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Jn(e){this.mode=Q_.ALPHANUMERIC,this.data=e}Jn.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Jn.prototype.getLength=function(){return this.data.length};Jn.prototype.getBitsLength=function(){return Jn.getBitsLength(this.data.length)};Jn.prototype.write=function(n){let t;for(t=0;t+2<=this.data.length;t+=2){let i=gs.indexOf(this.data[t])*45;i+=gs.indexOf(this.data[t+1]),n.put(i,11)}this.data.length%2&&n.put(gs.indexOf(this.data[t]),6)};L0.exports=Jn});var j0=B((cS,N0)=>{u();var U_=cn();function Zn(e){this.mode=U_.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Zn.getBitsLength=function(n){return n*8};Zn.prototype.getLength=function(){return this.data.length};Zn.prototype.getBitsLength=function(){return Zn.getBitsLength(this.data.length)};Zn.prototype.write=function(e){for(let n=0,t=this.data.length;n<t;n++)e.put(this.data[n],8)};N0.exports=Zn});var Q0=B((pS,z0)=>{u();var $_=cn(),W_=an();function Yn(e){this.mode=$_.KANJI,this.data=e}Yn.getBitsLength=function(n){return n*13};Yn.prototype.getLength=function(){return this.data.length};Yn.prototype.getBitsLength=function(){return Yn.getBitsLength(this.data.length)};Yn.prototype.write=function(e){let n;for(n=0;n<this.data.length;n++){let t=W_.toSJIS(this.data[n]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+` 4Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),e.put(t,13)}};z0.exports=Yn});var U0=B((mS,ys)=>{"use strict";u();var Ti={single_source_shortest_paths:function(e,n,t){var i={},o={};o[n]=0;var r=Ti.PriorityQueue.make();r.push(n,0);for(var l,f,_,C,S,k,q,re,ct;!r.empty();){l=r.pop(),f=l.value,C=l.cost,S=e[f]||{};for(_ in S)S.hasOwnProperty(_)&&(k=S[_],q=C+k,re=o[_],ct=typeof o[_]>"u",(ct||re>q)&&(o[_]=q,r.push(_,q),i[_]=f))}if(typeof t<"u"&&typeof o[t]>"u"){var Ye=["Could not find a path from ",n," to ",t,"."].join("");throw new Error(Ye)}return i},extract_shortest_path_from_predecessor_list:function(e,n){for(var t=[],i=n,o;i;)t.push(i),o=e[i],i=e[i];return t.reverse(),t},find_path:function(e,n,t){var i=Ti.single_source_shortest_paths(e,n,t);return Ti.extract_shortest_path_from_predecessor_list(i,t)},PriorityQueue:{make:function(e){var n=Ti.PriorityQueue,t={},i;e=e||{};for(i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t.queue=[],t.sorter=e.sorter||n.default_sorter,t},default_sorter:function(e,n){return e.cost-n.cost},push:function(e,n){var t={value:e,cost:n};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof ys<"u"&&(ys.exports=Ti)});var K0=B(Kn=>
vendor: 4,734 bytes, lines 4-5
4{u();var ie=cn(),H0=q0(),G0=O0(),J0=j0(),Z0=Q0(),Ei=ms(),or=an(),H_=U0();function $0(e){return unescape(encodeURIComponent(e)).length}function ki(e,n,t){let i=[],o;for(;(o=e.exec(t))!==null;)i.push({data:o[0],index:o.index,mode:n,length:o[0].length});return i}function Y0(e){let n=ki(Ei.NUMERIC,ie.NUMERIC,e),t=ki(Ei.ALPHANUMERIC,ie.ALPHANUMERIC,e),i,o;return or.isKanjiModeEnabled()?(i=ki(Ei.BYTE,ie.BYTE,e),o=ki(Ei.KANJI,ie.KANJI,e)):(i=ki(Ei.BYTE_KANJI,ie.BYTE,e),o=[]),n.concat(t,i,o).sort(function(l,f){return l.index-f.index}).map(function(l){return{data:l.data,mode:l.mode,length:l.length}})}function vs(e,n){switch(n){case ie.NUMERIC:return H0.getBitsLength(e);case ie.ALPHANUMERIC:return G0.getBitsLength(e);case ie.KANJI:return Z0.getBitsLength(e);case ie.BYTE:return J0.getBitsLength(e)}}function G_(e){return e.reduce(function(n,t){let i=n.length-1>=0?n[n.length-1]:null;return i&&i.mode===t.mode?(n[n.length-1].data+=t.data,n):(n.push(t),n)},[])}function J_(e){let n=[];for(let t=0;t<e.length;t++){let i=e[t];switch(i.mode){case ie.NUMERIC:n.push([i,{data:i.data,mode:ie.ALPHANUMERIC,length:i.length},{data:i.data,mode:ie.BYTE,length:i.length}]);break;case ie.ALPHANUMERIC:n.push([i,{data:i.data,mode:ie.BYTE,length:i.length}]);break;case ie.KANJI:n.push([i,{data:i.data,mode:ie.BYTE,length:$0(i.data)}]);break;case ie.BYTE:n.push([{data:i.data,mode:ie.BYTE,length:$0(i.data)}])}}return n}function Z_(e,n){let t={},i={start:{}},o=["start"];for(let r=0;r<e.length;r++){let l=e[r],f=[];for(let _=0;_<l.length;_++){let C=l[_],S=""+r+_;f.push(S),t[S]={node:C,lastCount:0},i[S]={};for(let k=0;k<o.length;k++){let q=o[k];t[q]&&t[q].node.mode===C.mode?(i[q][S]=vs(t[q].lastCount+C.length,C.mode)-vs(t[q].lastCount,C.mode),t[q].lastCount+=C.length):(t[q]&&(t[q].lastCount=C.length),i[q][S]=vs(C.length,C.mode)+4+ie.getCharCountIndicator(C.mode,n))}}o=f}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:t}}function W0(e,n){let t,i=ie.getBestModeForData(e);if(t=ie.from(n,i),t!==ie.BYTE&&t.bit<i.bit)throw new Error('"'+e+'" cannot be encoded with mode '+ie.toString(t)+`. 5 Suggested mode is: `+ie.toString(i));switch(t===ie.KANJI&&!or.isKanjiModeEnabled()&&(t=ie.BYTE),t){case ie.NUMERIC:return new H0(e);case ie.ALPHANUMERIC:return new G0(e);case ie.KANJI:return new Z0(e);case ie.BYTE:return new J0(e)}}Kn.fromArray=function(n){return n.reduce(function(t,i){return typeof i=="string"?t.push(W0(i,null)):i.data&&t.push(W0(i.data,i.mode)),t},[])};Kn.fromString=function(n,t){let i=Y0(n,or.isKanjiModeEnabled()),o=J_(i),r=Z_(o,t),l=H_.find_path(r.map,"start","end"),f=[];for(let _=1;_<l.length-1;_++)f.push(r.table[l[_]].node);return Kn.fromArray(G_(f))};Kn.rawSplit=function(n){return Kn.fromArray(Y0(n,or.isKanjiModeEnabled()))}});var ep=B(X0=>{u();var sr=an(),xs=Yo(),Y_=u0(),K_=f0(),X_=h0(),eg=y0(),ws=v0(),Ss=cs(),tg=S0(),rr=B0(),ng=F0(),ig=cn(),Cs=K0();function og(e,n){let t=e.size,i=eg.getPositions(n);for(let o=0;o<i.length;o++){let r=i[o][0],l=i[o][1];for(let f=-1;f<=7;f++)if(!(r+f<=-1||t<=r+f))for(let _=-1;_<=7;_++)l+_<=-1||t<=l+_||(f>=0&&f<=6&&(_===0||_===6)||_>=0&&_<=6&&(f===0||f===6)||f>=2&&f<=4&&_>=2&&_<=4?e.set(r+f,l+_,!0,!0):e.set(r+f,l+_,!1,!0))}}function rg(e){let n=e.size;for(let t=8;t<n-8;t++){let i=t%2===0;e.set(t,6,i,!0),e.set(6,t,i,!0)}}function sg(e,n){let t=X_.getPositions(n);for(let i=0;i<t.length;i++){let o=t[i][0],r=t[i][1];for(let l=-2;l<=2;l++)for(let f=-2;f<=2;f++)l===-2||l===2||f===-2||f===2||l===0&&f===0?e.set(o+l,r+f,!0,!0):e.set(o+l,r+f,!1,!0)}}function ag(e,n){let t=e.size,i=rr.getEncodedBits(n),o,r,l;for(let f=0;f<18;f++)o=Math.floor(f/3),r=f%3+t-8-3,l=(i>>f&1)===1,e.set(o,r,l,!0),e.set(r,o,l,!0)}function bs(e,n,t){let i=e.size,o=ng.getEncodedBits(n,t),r,l;for(r=0;r<15;r++)l=(o>>r&1)===1,r<6?e.set(r,8,l,!0):r<8?e.set(r+1,8,l,!0):e.set(i-15+r,8,l,!0),r<8?e.set(8,i-r-1,l,!0):r<9?e.set(8,15-r-1+1,l,!0):e.set(8,15-r-1,l,!0);e.set(i-8,8,1,!0)}function lg(e,n){let t=e.size,i=-1,o=t-1,r=7,l=0;for(let f=t-1;f>0;f-=2)for(f===6&&f--;;){for(let _=0;_<2;_++)if(!e.isReserved(o,f-_)){let C=!1;l<n.length&&(C=(n[l]>>>r&1)===1),e.set(o,f-_,C),r--,r===-1&&(l++,r=7)}if(o+=i,o<0||t<=o){o-=i,i=-i;break}}}function cg(e,n,t){let i=new Y_;t.forEach(function(_){i.put(_.mode.bit,4),i.put(_.getLength(),ig.getCharCountIndicator(_.mode,e)),_.write(i)});let o=sr.getSymbolTotalCodewords(e),r=Ss.getTotalCodewordsCount(e,n),l=(o-r)*8;for(i.getLengthInBits()+4<=l&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);let f=(l-i.getLengthInBits())/8;for(let _=0;_<f;_++)i.put(_%2?17:236,8);return dg(i,e,n)}function dg(e,n,t){let i=sr.getSymbolTotalCodewords(n),o=Ss.getTotalCodewordsCount(n,t),r=i-o,l=Ss.getBlocksCount(n,t),f=i%l,_=l-f,C=Math.floor(i/l),S=Math.floor(r/l),k=S+1,q=C-S,re=ne
5w tg(q),ct=0,Ye=new Array(l),Di=new Array(l),ei=0,Bi=new Uint8Array(e.buffer);for(let bn=0;bn<l;bn++){let lr=bn<_?S:k;Ye[bn]=Bi.slice(ct,ct+lr),Di[bn]=re.encode(Ye[bn]),ct+=lr,ei=Math.max(ei,lr)}let Pt=new Uint8Array(i),Is=0,xt,Ct;for(xt=0;xt<ei;xt++)for(Ct=0;Ct<l;Ct++)xt<Ye[Ct].length&&(Pt[Is++]=Ye[Ct][xt]);for(xt=0;xt<q;xt++)for(Ct=0;Ct<l;Ct++)Pt[Is++]=Di[Ct][xt];return Pt}function pg(e,n,t,i){let o;if(Array.isArray(e))o=Cs.fromArray(e);else if(typeof e=="string"){let C=n;if(!C){let S=Cs.rawSplit(e);C=rr.getBestVersionForData(S,t)}o=Cs.fromString(e,C||40)}else throw new Error("Invalid data");let r=rr.getBestVersionForData(o,t);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!n)n=r;else if(n<r)throw new Error(` 6The chosen QR Code version cannot contain this amount of data. 7Minimum version required to store current data is: `+r+`. 8`);let l=cg(n,t,o),f=sr.getSymbolSize(n),_=new K_(f);return og(_,n),rg(_),sg(_,n),bs(_,t,0),n>=7&&ag(_,n),lg(_,l),isNaN(i)&&(i=ws.getBestMask(_,bs.bind(null,_,t))),ws.applyMask(i,_),bs(_,t,i),{modules:_,version:n,errorCorrectionLevel:t,maskPattern:i,segments:o}}X0.create=function(n,t){if(typeof n>"u"||n==="")throw new Error("No input text");let i=xs.M,o,r;return typeof t<"u"&&(i=xs.from(t.errorCorrectionLevel,xs.M),o=rr.from(t.version),r=ws.from(t.maskPattern),t.toSJISFunc&&sr.setToSJISFunction(t.toSJISFunc)),pg(n,o,i,r)}});var Ts=B(Cn=>{u();function tp(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let n=e.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+e);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");let t=parseInt(n.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+n.slice(0,6).join("")}}Cn.getOptions=function(n){n||(n={}),n.color||(n.color={});let t=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;return{width:i,scale:i?4:o,margin:t,color:{dark:tp(n.color.dark||"#000000ff"),light:tp(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}};Cn.getScale=function(n,t){return t.width&&t.width>=n+t.margin*2?t.width/(n+t.margin*2):t.scale};Cn.getImageWidth=function(n,t){let i=Cn.getScale(n,t);return Math.floor((n+t.margin*2)*i)};Cn.qrToImageData=function(n,t,i){let o=t.modules.size,r=t.modules.data,l=Cn.getScale(o,i),f=Math.floor((o+i.margin*2)*l),_=i.margin*l,C=[i.color.light,i.color.dark];for(let S=0;S<f;S++)for(let k=0;k<f;k++){let q=(S*f+k)*4,re=i.color.light;if(S>=_&&k>=_&&S<f-_&&k<f-_){let ct=Math.floor((S-_)/l),Ye=Math.floor((k-_)/l);re=C[r[ct*o+Ye]?1:0]}n[q++]=re.r,n[q++]=re.g,n[q++]=re.b,n[q]=re.a}}});var np=B(ar=>{u();var Es=Ts();function ug(e,n,t){e.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=t,n.width=t,n.style.height=t+"px",n.style.width=t+"px"}function mg(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}ar.render=function(n,t,i){let o=i,r=t;typeof o>"u"&&(!t||!t.getContext)&&(o=t,t=void 0),t||(r=mg()),o=Es.getOptions(o);let l=Es.getImageWidth(n.modules.size,o),f=r.getContext("2d"),_=f.createImageData(l,l);return Es.qrToImageData(_.data,n,o),ug(f,r,l),f.putImageData(_,0,0),r};ar.renderToDataURL=function(n,t,i){let o=i;typeof o>"u"&&(!t||!t.getContext)&&(o=t,t=void 0),o||(o={});let r=ar.render(n,t,o),l=o.type||"image/png",f=o.rendererOpts||{};return r.toDataURL(l,f.quality)}});var rp=B(op=>{u();var fg=Ts();function ip(e,n){let t=e.a/255,i=n+'="'+e.hex+'"';return t<1?i+" "+n+'-opacity="'+t.toFixed(2).slice(1)+'"':i}function ks(e,n,t){let i=e+n;return typeof t<"u"&&(i+=" "+t),i}function hg(e,n,t){let i="",o=0,r=!1,l=0;for(let f=0;f<e.length;f++){let _=Math.floor(f%n),C=Math.floor(f/n);!_&&!r&&(r=!0),e[f]?(l++,f>0&&_>0&&e[f-1]||(i+=r?ks("M",_+t,.5+C+t):ks("m",o,0),o=0,r=!1),_+1<n&&e[f+1]||(i+=ks("h",l),l=0)):o++}return i}op.render=function(n,t,i){let o=fg.getOptions(t),r=n.modules.size,l=n.modules.data,f=r+o.margin*2,_=o.color.light.a?"<path "+ip(o.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",C="<path "+ip(o.color.dark,"stroke")+' d="'+hg(l,r,o.margin)+'"/>
8',S='viewBox="0 0 '+f+" "+f+'"',q='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+S+' shape-rendering="crispEdges">'+_+C+`</svg> 9`;return typeof i=="function"&&i(null,q),q}});var ap=B(Pi=>{u();var _g=c0(),Ps=ep(),sp=np(),gg=rp();function Rs(e,n,t,i,o){let r=[].slice.call(arguments,1),l=r.length,f=typeof r[l-1]=="function";if(!f&&!_g())throw new Error("Callback required as last argument");if(f){if(l<2)throw new Error("Too few arguments provided");l===2?(o=t,t=n,n=i=void 0):l===3&&(n.getContext&&typeof o>"u"?(o=i,i=void 0):(o=i,i=t,t=n,n=void 0))}else{if(l<1)throw new Error("Too few arguments provided");return l===1?(t=n,n=i=void 0):l===2&&!n.getContext&&(i=t,t=n,n=void 0),new Promise(function(_,C){try{let S=Ps.create(t,i);_(e(S,n,i))}catch(S){C(S)}})}try{let _=Ps.create(t,i);o(null,e(_,n,i))}catch(_){o(_)}}Pi.create=Ps.create;Pi.toCanvas=Rs.bind(null,sp.render);Pi.toDataURL=Rs.bind(null,sp.renderToDataURL);Pi.toString=Rs.bind(null,function(e,n,t){return gg.render(e,t)})});u();u();u();var jp=["*"],Kt=(()=>{class e{get type(){return this._type}set type(t){this._type=t}get max(){return this._max}set max(t){this._max=fn(t)}get value(){return this._value}set value(t){this._value=fn(t)}get percentage(){return this._value*100/this._max}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-row-chart"]],hostAttrs:[1,"flex","h-full"],inputs:{type:"type",max:"max",value:"value"},standalone:!1,ngContentSelectors:jp,decls:3,vars:8,consts:[[1,"h-full","text-white"],[1,"flex","rounded","md:rounded-lg","items-center","justify-end","h-full","px-2"]],template:function(i,o){i&1&&(Li(),s(0,"div",0)(1,"div",1),Oi(2),a()()),i&2&&(rt("width",o.percentage,"%"),c(),me("bg-green",o.type=="success"&&o.value>0)("bg-red",o.type=="fail"&&o.value>0)("bg-blue-black-light-2",o.type=="none"||o.value==0))},encapsulation:2,changeDetection:0})}}return e})();var Bl=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=qi({type:e})}static{this.\u0275inj=Ai({imports:[Qi,ao]})}}return e})();u();u();var vd=Fs(yd(),1),Ce=(function(e){return e.Connect="connect",e.ConnectError="connect_error",e.ConnectTimeout="connect_timeout",e.Connecting="connecting",e.Disconnect="disconnect",e.Error="error",e.Reconnect="reconnect",e.ReconnectAttempt="reconnect_attempt",e.ReconnectFailed="reconnect_failed",e.ReconnectError="reconnect_error",e.Reconnecting="reconnecting",e.Ping="ping",e.Pong="pong",e.Moderator="moderator event",e.User="user event",e.UserConnected="user connected",e.UserDisconnected="user disconnected",e})(Ce||{}),de=(function(e){return e.Sync="sync",e.Results="results",e.Finished="finished",e.GetReady="get_ready",e.WaitResult="wait_result",e.WaitApplied="wait_applied",e.WaitBrainstorming="wait_brainstorming",e.Brainstorming="brainstorming",e.RandomSelection="random_selection",e.Poll="poll",e})(de||{}),Io=class{get io(){return this._socket.io}get nsp(){return this._socket.nsp}get id(){return this._socket.id}get connected(){return this._socket.connected}get disconnected(){return this._socket.disconnected}constructor(n,t){this._socket=(0,vd.connect)(n,t)}open(){return this._socket.open()}connect(){return this._socket.connect()}send(...n){return this._socket.send.apply(this._socket,n)}emit(n,...t){return this._socket.emit.apply(this._socket,[n,...t])}close(){return this._socket.close()}disconnect(){return this._socket.disconnect()}compress(n){return this._socket.compress(n)}on(n,t){return this._socket.on(n,t)}addEventListener(n,t){return this._socket.addEventListener(n,t)}once(n,t){return this._socket.once(n,t)}off(n,t){return this._socket.off(n,t)}removeListener(n,t){return this._socket.removeListener(n,t)}removeEventListener(n,t){return this._socket.removeEventListener(n,t)}removeAllListeners(){return this._socket.removeAllListeners()}listeners(n){return this._socket.listeners(n)}hasListeners(n){return this._socket.hasListeners(n)}fromEvent(n){return Ms.create(t=>this.on(n,i=>t.next(i))).pipe(Ns())}};u();var Xm=F("[Play Store State] Initial"),e1=F("[Play Store State] Change User",$()),t1=F("[Play Store State] Change Subscription",$()),n1=F("[Play Store State] Change Lesson",$()),i1=F("[Play Store State] Change Resources",$()),o1=F("[Play Store State] Change Session",$()),r1=F("[Play Store State] Change State",$()),s1=F("[Play Store State] Change Lesson Id",$()),a1=F("[Play Store State] Change Resource Index",$()),l1=F("[Play Store State] Change Is Loading Module",$()),c1=F("[Play Store State] Change Is Creating Session",$()),d1=F("[Play Store State] Change Is Loading Session",$()),p1=F("[Play Store State] Add Many Answers",$()),u1=F("[Play Store State] Add One Answer",$()),m1=F("[Play Store State] Change Drawer Tool",$()),f1=F("[Play Store State] Change Question Intent",$()),h1=F("[Play Store State] Change Randomly Selected Students",$()),_1=F("[Play Store State] add Randomly Selected Student",$()),g1=F("[Play Store State] Change Poll",$()),y1=F("[Play Store State] Change Poll Answers",$()),v1=F("[Play Store State] Add One Poll Answer",$()),x1=F("[Play Store State] Remove Poll Answers"),C1=F("[Play Store State] Change Brainstorming Answers",$()),b1=F("[Play Store State] Add One Brainstorming Answer",$()),w1=F("[Play Store State] Change Brainstorming Answers Positions",$()),S1=F("[Play Store State] Loa
9d Module",$()),T1=F("[Play Store State] Load Session",$()),E1=F("[Play Store State] Create Session",$()),k1=F("[Play Store State] Connect To Socket"),P1=F("[Play Store State] Update Session"),R1=F("[Play Store State] Start Session"),D1=F("[Play Store State] Syncronize With Socket"),B1=F("[Play Store State] Syncronize Resource"),A1=F("[Play Store State] Syncronize Wait Question"),I1=F("[Play Store State] Syncronize Question Results"),V1=F("[Play Store State] Syncronize Finish Session"),F1=F("[Play Store State] Previous Resource"),M1=F("[Play Store State] Next Resource"),q1=F("[Play Store State] Finish Session"),L1=F("[Play Store State] Cancel Session"),O1=F("[Play Store State] Receive Answer",$()),N1=F("[Play Store State] Update Session State",$()),j1=F("[Play Store State] Check End Resource Question"),z1=F("[Play Store State] Go To Details"),Q1=F("[Play Store State] Clear Local Storage"),U1=F("[Play Store State] Syncronize Random Selection",$()),$1=F("[Play Store State] Save Randomly Selected Student",$()),W1=F("[Play Store State] Clear Randomly Selected Students"),H1=F("[Play Store State] Syncronize Poll",$()),G1=F("[Play Store State] Save Poll Answers"),J1=F("[Play Store State] Reset Poll"),Z1=F("[Play Store State] Syncronize Wait Brainstorming"),Y1=F("[Play Store State] Syncronize Brainstorming",$()),K1=F("[Play Store State] Save Brainstorming Answers"),X1=F("[Play Store State] Save Brainstorming Answers Positions"),ef=F("[Play Store State] Add Many Students",$()),tf=F("[Play Store State] Connected",$()),nf=F("[Play Store State] Disconnected",$()),of=F("[Play Store State] Receive Valuation",$()),rf=F("[Play Store State] Clear"),sf=F("[Play Store State] Expel Student",$()),af=F("[Play Store State] Viewed Resource"),g={initial:Xm,changeUser:e1,changeSubscription:t1,changeSession:o1,changeLesson:n1,changeResources:i1,changeState:r1,changeLessonId:s1,changeResourceIndex:a1,changeIsLoadingModule:l1,changeIsCreatingSession:c1,changeIsLoadingSession:d1,addManyAnswers:p1,addOneAnswer:u1,changeDrawerTool:m1,changeQuestionIntent:f1,changeRandomlySelectedStudents:h1,addRandomlySelectedStudent:_1,changePoll:g1,changePollAnswers:y1,addOnePollAnswer:v1,removePollAnswers:x1,changeBrainstormingAnswers:C1,addOneBrainstormingAnswer:b1,changeBrainstormingAnswersPositions:w1,loadModule:S1,loadSession:T1,createSession:E1,connectToSocket:k1,updateSession:P1,startSession:R1,syncronizeWithSocket:D1,syncronizeResource:B1,syncronizeWaitQuestion:A1,syncronizeQuestionResults:I1,syncronizeFinishSession:V1,previousResource:F1,nextResource:M1,finishSession:q1,cancelSession:L1,receiveAnswer:O1,checkEndResourceQuestion:j1,updateSessionState:N1,goToDetails:z1,clearLocalStorage:Q1,syncronizeRandomSelection:U1,saveRandomlySelectedStudent:$1,clearRandomlySelectedStudents:W1,syncronizePoll:H1,savePollAnswers:G1,resetPoll:J1,syncronizeWaitBrainstorming:Z1,syncronizeBrainstorming:Y1,saveBrainstormingAnswers:K1,saveBrainstormingAnswersPositions:X1,addManyStudents:ef,guestConnected:tf,guestDisconnected:nf,receiveClassValuation:of,clearGuests:rf,expelStudent:sf,viewedResource:af};u();u();var Vo="play";u();var _e={students:Fn({sortComparer:(e,n)=>(e.nickname||"").localeCompare(n.nickname||"")}),answers:Fn({selectId:e=>`${e.resource_id}_${e.student_id}`}),pollAnswers:Fn({selectId:e=>e.student_id}),brainstormingAnswers:Fn(),brainstormingAnswersPositions:Fn({selectId:e=>e.id})},gi={answers:_e.answers.getInitialState(),students:_e.students.getInitialState(),pollAnswers:_e.pollAnswers.getInitialState(),brainstormingAnswers:_e.brainstormingAnswers.getInitialState(),brainstormingAnswersPositions:_e.brainstormingAnswersPositions.getInitialState()},xd={user:null,subscription:null,socket:null,lesson:null,resources:[],session:null,state:null,answers:gi.answers,students:gi.students,lessonId:null,resourceIndex:0,isLoadingModule:!1,isCreatingSession:!1,isLoadingSession:!1,drawerTool:Bn.Students,questionIntent:0,randomlySelectedStudents:[],poll:null,pollAnswers:gi.pollAnswers,brainstormingAnswers:gi.brainstormingAnswers,brainstormingAnswersPositions:gi.brainstormingAnswersPositions},lf=la(xd,ee(g.initial,e=>xd),ee(g.changeUser,(e,{user:n})=>j(N({},e),{user:n})),ee(g.changeSubscription,(e,{subscription:n})=>j(N({},e),{subscription:n})),ee(g.changeLesson,(e,{lesson:n})=>j(N({},e),{lesson:n})),ee(g.changeResources,(e,{resources:n})=>j(N({},e),{resources:n})),ee(g.changeSession,(e,{session:n})=>j(N({},e),{session:n})),ee(g.changeState,(e,{state:n})=>j(N({},e),{state:n})),ee(g.changeLessonId,(e,{lessonId:n})=>j(N({},e),{lessonId:n})),ee(g.changeResourceIndex,(e,{resourceIndex:n})=>j(N({},e),{resourceIndex:n})),ee(g.changeIsLoadingModule,(e,{isLoadingModule:n})=>j(N({},e),{isLoadingModule:n})),ee(g.changeIsCreatingSession,(e,{isCreatingSession:n})=>j(N({},e),{isCreatingSession:n})),ee(g.changeIsLoadingSession,(e,{isLoadingSession:n})=>j(N({},e),{isLoadingSession:n})),ee(g.addManyAnswers,(e,{answers:n})=>j(N({}
9,e),{answers:_e.answers.addMany(n,e.answers)})),ee(g.addOneAnswer,(e,{answer:n})=>j(N({},e),{answers:_e.answers.upsertOne(n,e.answers)})),ee(g.changeDrawerTool,(e,{drawerTool:n})=>j(N({},e),{drawerTool:n})),ee(g.changeQuestionIntent,(e,{questionIntent:n})=>j(N({},e),{questionIntent:n})),ee(g.changeRandomlySelectedStudents,(e,{randomlySelectedStudents:n})=>j(N({},e),{randomlySelectedStudents:n})),ee(g.addRandomlySelectedStudent,(e,{studentId:n})=>j(N({},e),{randomlySelectedStudents:[...e.randomlySelectedStudents,+n]})),ee(g.changePoll,(e,{poll:n})=>j(N({},e),{poll:n})),ee(g.changePollAnswers,(e,{pollAnswers:n})=>j(N({},e),{pollAnswers:_e.pollAnswers.setAll(n,e.pollAnswers)})),ee(g.addOnePollAnswer,(e,{answer:n})=>j(N({},e),{pollAnswers:_e.pollAnswers.upsertOne(n,e.pollAnswers)})),ee(g.removePollAnswers,e=>j(N({},e),{pollAnswers:_e.pollAnswers.removeAll(e.pollAnswers)})),ee(g.changeBrainstormingAnswers,(e,{brainstormingAnswers:n})=>j(N({},e),{brainstormingAnswers:_e.brainstormingAnswers.setAll(n,e.brainstormingAnswers)})),ee(g.addOneBrainstormingAnswer,(e,{brainstormingAnswer:n})=>j(N({},e),{brainstormingAnswers:_e.brainstormingAnswers.upsertOne(n,e.brainstormingAnswers)})),ee(g.changeBrainstormingAnswersPositions,(e,{brainstormingAnswersPositions:n})=>j(N({},e),{brainstormingAnswersPositions:_e.brainstormingAnswersPositions.setAll(n,e.brainstormingAnswersPositions)})),ee(g.addManyStudents,(e,{students:n})=>j(N({},e),{students:_e.students.addMany(n,e.students)})),ee(g.guestConnected,(e,{student:n})=>{let t=e.students.entities[n.id];return t?t=j(N({},n),{connected_at:new Date().toISOString(),disconnected_at:null}):t=N({},n),j(N({},e),{students:_e.students.upsertOne(t,e.students)})}),ee(g.guestDisconnected,(e,{id:n})=>{let t=e.students.entities[n],i=j(N({},t),{disconnected_at:new Date().toISOString()});return j(N({},e),{students:_e.students.upsertOne(i,e.students)})}),ee(g.receiveClassValuation,(e,{valuation:n})=>{let t=e.students.entities[n.guest_id];return t=j(N({},t),{valuation:n.valuation}),j(N({},e),{students:_e.students.upsertOne(t,e.students)})}),ee(g.clearGuests,e=>j(N({},e),{students:_e.students.removeAll(e.students)})));function Cd(e,n){return lf(e,n)}var Fo={answers:_e.answers.getSelectors(),pollAnswers:_e.pollAnswers.getSelectors(),brainstormingAnswers:_e.brainstormingAnswers.getSelectors(),brainstormingAnswersPositions:_e.brainstormingAnswersPositions.getSelectors()},bd=[fe.Unique,fe.Multiple,fe.TrueOrFalse,fe.Order,fe.MatchingText,fe.CompleteSentence,fe.WordSearch,fe.MatchingImage,fe.Alternative],ke=sa(Vo),cf=Q(ke,e=>e.answers),wd=_e.students.getSelectors(),Sd=Q(ke,e=>e.students),df=Q(Sd,wd.selectAll),ZC=Q(Sd,wd.selectEntities),Mo=Q(ke,e=>e.user),Td=Q(ke,e=>e.subscription),ne=Q(ke,e=>e.session),Ed=Q(ke,e=>e.isLoadingModule),kd=Q(ke,e=>e.isCreatingSession),Pd=Q(ke,e=>e.isLoadingSession),Qe=Q(ke,e=>e.state),Rd=Q(ke,e=>e.drawerTool),Dd=Q(ke,e=>e.lesson),Ue=Q(ke,e=>e.resources),on=Q(ke,e=>e.resourceIndex),be=Q(on,Ue,(e,n)=>n[e]),YC=Q(on,Ue,(e,n)=>n[e].resource_type_id>6),Bd=Q(on,e=>e===0),Ad=Q(Ue,on,(e,n)=>e.length-1===n),Id=Q(be,e=>!!e?.viewed_at),ts=Q(Ue,e=>e.filter(n=>n.resource_type_id>6)),ns=Q(ts,e=>e.filter(n=>!!n.viewed_at)),qo=Q(ts,be,(e,n)=>n?e.map(t=>t.id).indexOf(n.id)+1:0),Vd=Q(Ue,be,(e,n)=>n?e.map(t=>t.id).indexOf(n.id)+1:0),Lo=Q(ke,e=>e.questionIntent),Oo=Q(cf,Fo.answers.selectAll),Fd=Q(be,Oo,(e,n)=>e?n.filter(t=>+t.resource_id==+e.id):[]),No=Q(be,Oo,Lo,(e,n,t)=>e?n.filter(i=>+i.resource_id==+e.id&&i.intent===t):[]),$e=Q(df,ne,(e,n)=>n?e.filter(t=>t.session_id===n.id):[]),Md=Q($e,e=>{let n=e.map(i=>i.valuation).filter(i=>+i==1).length,t=Math.round(n/e.length*100);return isNaN(t)?0:t}),yt=Q($e,e=>e.filter(n=>n.connected_at&&!n.disconnected_at)),yi=Q(be,e=>e&&e.resource_type_id>6),is=Q($e,ts,Oo,be,(e,n,t,i)=>i?fr(e,n,t,1e3).map(r=>{let l=t.find(C=>+C.resource_id==+i.id&&C.student_id===r.student_id),f=l&&l.answer?wa(l.time,i.time,1e3):0,_=bd.includes(i.resource_type_id);return j(N({},r),{resource_id:i.id,question_points:_?f:0,answer:typeof l=="object"?!!l.answer:null,gradeable:_})}):[]),qd=Q($e,ns,Oo,(e,n,t)=>{n=n.map(k=>j(N({},k),{gradable:bd.includes(k.resource_type_id)}));let i=n.filter(k=>k.gradable),o=fr(e,i,t,1e3),r=i.map(k=>Sa(k,t,e.length)),l=t.filter(k=>k.answer),f=i.length>0&&e.length>0&&l.length>0?Math.round(l.length/(i.length*e.length)*100):0,_=r.length>1?r.reduce((k,q)=>k.successes>q.successes?k:q):null,C=r.length>1?r.reduce((k,q)=>k.faults>q.faults?k:q):null,S=r.length>1?r.reduce((k,q)=>k.none>q.none?k:q):null;return{correct_percent:f,leaderboard:o,statistics:r,most_successes:_,most_faults:C}}),Ld=Q(Qe,ne,yi,(e,n,t)=>e?.event_type==de.GetReady||e?.event_type!=de.Results&&e?.event_type!=de.Brainstorming&&n?.competition&&t),Od=Q(ke,e=>e.randomlySelectedStudents),pf=Q(ke,e=>e.pollAnswers),Nd=Q(ke,e=>e.poll),os=Q(pf,Fo.pollAnswers.selectAll),jd=Q($e,os,(e,n)=>{let i=n.reduce((o,r)=>[...o,...r.option],[]).reduce((o,r)=>j(N({},o),{[r]:{percent:0,count:o[r]?.count+1||1}}),{});for(let o in i)i[o].percent=Math.round(i[o].count/e.length*100);return i}),uf=Q(ke,e=>e.brainstormingAnswers),mf=Q(ke,e=>e.brainstormingAnswersPositions),vi=Q(mf,Fo.brainstormingAnswersPositions.selectAll),rs=Q(uf,Fo.brainstormingAnswers.selectAll),zd=Q(rs,vi,(e,n)=>e.filter(t=>n.findIndex(i=>i.items.findIndex(o=>o.id===t.id)!=-1)==-1));var xi="randomly_selected_students",jo="poll_definition",zo="poll_responses",Qo="brainstorming_responses",Uo="brainstorming_answers_positions",Qd=(()=>{class e{constructor(){this._cookieStorage=I(Da),this._subscriptionService=I(Ia),this._translateService=I(mt),this._sessionService=I(Aa),this._lessonService=I(Yi),this._localStorage=I(Ji),this._authService=I(Zi),this._environment=I(Vt),this._platform=I(Ft),this._actions=I(ca),this._router=I(At),this._store=I(J),this._socket=null,this.loadModule$=Y(()=>this._actions.pipe(K(g.loadModule),L(()=>this._store.dispatch(g.changeIsLoadingModule({isLoadingModule:!0}))),se(t=>ti([this._subscriptionService.getSubscription().pipe(Rt(()=>Ke(null)))]).pipe(se(([i])=>[g.changeUser({user:t.user}),g.changeLesson({lesson:t.lesson}),g.changeSubscription({subscription:i}),g.loadSession({lessonId:t.lesson.id})]))))),this.loadSession$=Y(()=>this._actions.pipe(K(g.loadSession),L(()=>this._store.dispatch(g.changeIsLoadingSession({isLoadingSession:!0}))),W(this._store.pipe(b(Ue))),se(([t,i])=>this._sessionService.getByLessonId(t.lessonId,mr.Live).pipe(se(o=>{if(o===null)return[g.clearLocalStorage(),g.changeSession({session:o}),g.changeIsLoadingSession({isLoadingSession:!1}),g.changeIsLoadingModule({isLoadingModule:!1})];let r=this._localStorage.getItem(xi),l=r?r.split(",").map(Number):[],f=this._localStorage.getItem(jo),_=f?JSON.parse(f):null,C=this._localStorage.getItem(zo),S=C?JSON.parse(C):[],k=this._localStorage.getItem(Qo
9),q=k?JSON.parse(k):[],re=this._localStorage.getItem(Uo),ct=re?JSON.parse(re):[];return ti([this._sessionService.getStateBy(o.id).pipe(Rt(()=>Ke(null))),this._sessionService.getAllStudentsForSessionId(o.id),this._sessionService.getAnswersBy(o.id),this._sessionService.getAllResourcesForSessionId(o.id)]).pipe(se(([Ye,Di,ei,Bi])=>[g.changeSession({session:o}),g.changeState({state:Ye}),g.changeResourceIndex({resourceIndex:Ye?Bi.findIndex(Pt=>Pt.id===Ye?.data?.resource?.id):0}),g.addManyStudents({students:Di}),g.changeResources({resources:Bi}),g.addManyAnswers({answers:ei.map(Pt=>j(N({},Pt),{answer:!!Pt.correct,intent:0}))}),g.changeRandomlySelectedStudents({randomlySelectedStudents:l}),g.changePoll({poll:_}),g.changePollAnswers({pollAnswers:S}),g.changeBrainstormingAnswers({brainstormingAnswers:q}),g.changeBrainstormingAnswersPositions({brainstormingAnswersPositions:ct}),g.changeIsLoadingSession({isLoadingSession:!0}),g.connectToSocket()]))}))))),this.createSession$=Y(()=>this._actions.pipe(K(g.createSession),L(()=>this._store.dispatch(g.changeIsCreatingSession({isCreatingSession:!0}))),W(this._store.pipe(b(Mo))),Se(([t,i])=>j(N({},t),{title:t.title?t.title:this._translateService.translate("validation.general.not-found.title"),userId:i.id})),Os(t=>this._sessionService.create(t.lessonId,{device_id:this._cookieStorage.getItem("_tc_bid")||null,user_id:t.userId,device_type_id:xa.WEB,session_type_id:mr.Live,randomize:t.random_options,competition:t.competition,authorization:t.auth_required,max_attempts:0,answers:!0}).pipe(se(i=>[g.loadSession({lessonId:t.lessonId}),g.changeIsCreatingSession({isCreatingSession:!1})]),Rt(()=>[g.changeIsCreatingSession({isCreatingSession:!1})]))))),this.connectToSocket$=Y(()=>this._actions.pipe(K(g.connectToSocket),W(this._store.pipe(b(ne))),L(([t,i])=>{if(!this._platform.isBrowser){this._store.dispatch(g.changeIsLoadingModule({isLoadingModule:!1}));return}let o=new Io(this._environment.get(qt.SOCKET_CLASSROOM_BASE_URL),{path:this._environment.get(qt.SOCKET_CLASSROOM_PATH),query:{code:i.code,access_token:this._authService.getAccessToken()}});this._environment.get(qt.APP_ENV)!=="production"&&(o.fromEvent(Ce.Connect).subscribe(()=>console.log(Ce.Connect)),o.fromEvent(Ce.Error).subscribe(r=>console.log(Ce.Error,r)),o.fromEvent(Ce.Disconnect).subscribe(()=>console.log(Ce.Disconnect))),o.fromEvent(Ce.UserConnected).subscribe(r=>{let l={id:r.data.id,avatar_id:r.data.avatarId,session_id:r.data.sessionId,nickname:r.data.nickname,valuation:r.data.valuation,connected_at:r.data.connectedAt,disconnected_at:r.data.disconnectedAt,updated_at:r.data.updatedAt,attempts:0};this._store.dispatch(g.guestConnected({student:l}))}),o.fromEvent(Ce.UserDisconnected).subscribe(r=>this._store.dispatch(g.guestDisconnected({id:r.data.guestId}))),o.fromEvent(Ce.User).subscribe(r=>{switch(r.event_type){case"question_response":let l={student_id:r.data.guest_id,resource_id:r.data.resource_id,session_id:r.data.session_id,time:r.data.time,option:r.data.option,correct:r.data.answer,answer:r.data.answer};this._store.dispatch(g.receiveAnswer({answer:l})),this._store.dispatch(g.checkEndResourceQuestion());break;case"poll_response":this._store.dispatch(g.addOnePollAnswer({answer:{student_id:r.data.student_id,option:r.data.option}})),this._store.dispatch(g.savePollAnswers());break;case"brainstorming_response":this._store.dispatch(g.addOneBrainstormingAnswer({brainstormingAnswer:r.data})),this._store.dispatch(g.saveBrainstormingAnswers());break;case"class_valuation":this._store.dispatch(g.receiveClassValuation({valuation:r.data}));break}}),this._socket&&this._socket.connect&&this._socket.disconnect(),this._socket=o}),L(()=>this._store.dispatch(g.changeIsLoadingModule({isLoadingModule:!1})))),{dispatch:!1}),this.updateSession$=Y(()=>this._actions.pipe(K(g.updateSession),W(this._store.pipe(b(ne))),pn(([t,i])=>this._sessionService.update(i.id,va(i)).pipe(se(o=>[g.changeSession({session:o})]))))),this.startSession$=Y(()=>this._actions.pipe(K(g.startSession),W(this._store.pipe(b(ne))),Se(([t,i])=>({action:t,session:i,startedAt:new Date().toISOString()})),L(({action:t,session:i,startedAt:o})=>this._store.dispatch(g.changeSession({session:j(N({},i),{started_at:o})}))),L(t=>this._store.dispatch(g.changeResourceIndex({resourceIndex:0}))),L(t=>this._store.dispatch(g.syncronizeWithSocket())),L(t=>this._store.dispatch(g.clearRandomlySelectedStudents())),se(({action:t,session:i,startedAt:o})=>this._sessionService.start(i.id))),{dispatch:!1}),this.syncronizeWithSocket$=Y(()=>this._actions.pipe(K(g.syncronizeWithSocket),W(this._store.pipe(b(Ue))),W(this._store.pipe(b(on)),([t,i],o)=>({action:t,resources:i,resourceIndex:o})),se(({action:t,resources:i,resourceIndex:o})=>i[o].resource_type_id>6?[g.syncronizeWaitQuestion()]:[g.syncronizeResource()]))),this.syncronizeWaitQuestion$=Y(()=>this._actions.pipe(K(g.syncronizeWaitQuestion),W(this._store.pipe(b(be))),W(this._store.pipe(b(Id)),([t,i],o)=>({action:t,resource:i,isQuestionApplied:o})),Se(({action:t,resource:i,isQuestionApplied:o})=>({event_type:o?de.WaitApplied:de.GetReady,resource_id:i.id,data:{resource:i}})),L(t=>this._socket.emit(Ce.Moderator,t)),se(t=>[g.changeState({state:t}),g.updateSessionState({state:t})]))),this.expelStudent$=Y(()=>this._actions.pipe(K(g.expelStudent),L(t=>this._socket.emit("student:expel",{student_id:t.studentId}))),{dispatch:!1}),this.syncronizeResource$=Y(()=>this._actions.pipe(K(g.syncronizeResource),W(this._store.pipe(b(be))),W(this._store.pipe(b(ne))),W(this._store.pipe(b(Lo))),W(this._store.pipe(b(yi)),([[[t,i],o],r],l)=>({resource:i,state:{event_type:de.Sync,resource_id:i.id,data:{random_options:o.random_options,resource:o.random_options&&l&&(i?.resource_type_id===fe.Unique||i?.resource_type_id===fe.Multiple)?j(N({},i),{options:[...i.options].sort(()=>.5-Math.random())}):i}},isQuestion:l,questionIntent:r})),L(({state:t})=>this._socket.emit(Ce.Moderator,t)),se(({state:t,isQuestion:i,questionIntent:o})=>i?[g.changeState({state:t}),g.updateSessionState({state:t}),g.viewedResource(),g.changeQuestionIntent({questionIntent:o+1})]:[g.changeState({state:t}),g.viewedResource(),g.updateSessionState({state:t})]))),this.viewedResource$=Y(()=>this._actions.pipe(K(g.viewedResource),W(this._store.pipe(b(ne))),W(this._store.pipe(b(be))),W(this._store.pipe(b(Ue)),([[t,i],o],r)=>({action:t,session:i,resource:o,resources:r})),L(({action:t,session:i,resource:o,resources:r})=>this._store.dispatch(g.changeResources({resources:[...r.map(l=>l.id===o.id?j(N({},l),{viewed_at:new Date().toISOString()}):l)]}
9))),se(({action:t,session:i,resource:o})=>this._sessionService.viewed(i.id,o.id))),{dispatch:!1}),this.receiveAnswer$=Y(()=>this._actions.pipe(K(g.receiveAnswer),W(this._store.pipe(b(Lo))),se(([t,i])=>[g.addOneAnswer({answer:j(N({},t.answer),{intent:i})})]))),this.syncronizeQuestionResults$=Y(()=>this._actions.pipe(K(g.syncronizeQuestionResults),W(this._store.pipe(b($e))),W(this._store.pipe(b(is))),W(this._store.pipe(b(be))),Se(([[[t,i],o],r])=>({event_type:de.Results,data:{resource:r,students:{connected:i.length},leaderboard:o}})),L(t=>this._socket.emit(Ce.Moderator,t)),pn(t=>[g.changeState({state:t}),g.updateSessionState({state:t})]))),this.syncronizeFinishSession$=Y(()=>this._actions.pipe(K(g.syncronizeFinishSession),W(this._store.pipe(b($e))),W(this._store.pipe(b(is))),Se(([[t,i],o])=>({event_type:de.Finished,data:{leaderboard:o,students:{connected:i.length}}})),L(t=>this._socket.emit(Ce.Moderator,t)),pn(t=>[g.changeState({state:t}),g.updateSessionState({state:t}),g.clearLocalStorage()]))),this.syncronizeWaitBrainstorming$=Y(()=>this._actions.pipe(K(g.syncronizeWaitBrainstorming),W(this._store.pipe(b(Qe))),Se(([t,i])=>({event_type:de.WaitBrainstorming,resource_id:i.resource_id,data:{previous_event_type:i.data.previous_event_type??i.event_type}})),L(t=>this._socket.emit(Ce.Moderator,t)),L(()=>this._localStorage.removeItem(Qo)),L(()=>this._localStorage.removeItem(Uo)),pn(t=>[g.changeState({state:t}),g.updateSessionState({state:t}),g.changeBrainstormingAnswers({brainstormingAnswers:[]}),g.changeBrainstormingAnswersPositions({brainstormingAnswersPositions:[]})]))),this.syncronizeBrainstorming$=Y(()=>this._actions.pipe(K(g.syncronizeBrainstorming),W(this._store.pipe(b(Qe))),Se(([t,i])=>({event_type:de.Brainstorming,resource_id:i.resource_id,data:{previous_event_type:i.data.previous_event_type,topic:t.topic,open:t.open}})),L(t=>this._socket.emit(Ce.Moderator,t)),pn(t=>[g.changeState({state:t}),g.updateSessionState({state:t})]))),this.saveBrainstormingAnswers$=Y(()=>this._actions.pipe(K(g.saveBrainstormingAnswers),W(this._store.pipe(b(rs))),L(([t,i])=>this._localStorage.setItem(Qo,JSON.stringify(i)))),{dispatch:!1}),this.saveBrainstormingAnswersPositions$=Y(()=>this._actions.pipe(K(g.saveBrainstormingAnswersPositions),W(this._store.pipe(b(vi))),L(([t,i])=>this._localStorage.setItem(Uo,JSON.stringify(i)))),{dispatch:!1}),this.syncronizeRandomSelection$=Y(()=>this._actions.pipe(K(g.syncronizeRandomSelection),Se(({step:t,students:i,selectedId:o})=>({event_type:de.RandomSelection,data:{step:t,students:i,selectedId:o}})),L(t=>this._socket.emit(Ce.Moderator,t))),{dispatch:!1}),this.syncronizePoll$=Y(()=>this._actions.pipe(K(g.syncronizePoll),L(({poll:t})=>this._localStorage.setItem(jo,JSON.stringify(t))),Se(({poll:t})=>({event_type:de.Poll,data:{poll:t}})),L(t=>this._socket.emit(Ce.Moderator,t)),se(t=>[g.changePoll({poll:t.data.poll})]))),this.savePollAnswers$=Y(()=>this._actions.pipe(K(g.savePollAnswers),W(this._store.pipe(b(os))),L(([t,i])=>this._localStorage.setItem(zo,JSON.stringify(i)))),{dispatch:!1}),this.resetPoll$=Y(()=>this._actions.pipe(K(g.resetPoll),L(()=>this._localStorage.removeItem(jo)),L(()=>this._localStorage.removeItem(zo)),se(()=>[g.removePollAnswers(),g.changePoll({poll:null})]))),this.previousResource$=Y(()=>this._actions.pipe(K(g.previousResource),W(this._store.pipe(b(on))),se(([t,i])=>i>0?[g.changeResourceIndex({resourceIndex:i-1}),g.syncronizeWithSocket()]:[]))),this.nextResource$=Y(()=>this._actions.pipe(K(g.nextResource),W(this._store.pipe(b(Ue))),W(this._store.pipe(b(on))),se(([[t,i],o])=>o<i.length-1?[g.changeResourceIndex({resourceIndex:o+1}),g.syncronizeWithSocket()]:[]))),this.finishSession$=Y(()=>this._actions.pipe(K(g.finishSession),W(this._store.pipe(b(ne)),(t,i)=>({action:t,session:i,endedAt:new Date().toISOString()})),L(({action:t,session:i,endedAt:o})=>this._store.dispatch(g.changeSession({session:j(N({},i),{code:null,ended_at:o})}))),L(t=>this._store.dispatch(g.syncronizeFinishSession())),se(({action:t,session:i,endedAt:o})=>this._sessionService.end(i.id))),{dispatch:!1}),this.cancelSession$=Y(()=>this._actions.pipe(K(g.cancelSession),W(this._store.pipe(b(ne))),L(([t,i])=>this._socket.emit(Ce.Moderator,{event_type:de.Finished,data:{leaderboard:[],students:{connected:0}}})),se(([t,i])=>this._sessionService.delete(i.id).pipe(Se(()=>i))),L(t=>{this._store.dispatch(g.clearLocalStorage()),this._store.dispatch(g.initial()),this._router.navigate(["/",t.lesson_id])})),{dispatch:!1}),this.updateSessionState$=Y(()=>this._actions.pipe(K(g.updateSessionState),W(this._store.pipe(b(ne))),pn(([t,i])=>this._sessionService.updateState(i.id,t.state))),{dispatch:!1}),this.checkEndResourceQuestion$=Y(()=>this._actions.pipe(K(g.checkEndResourceQuestion),W(this._store.pipe(b(yt))),W(this._store.pipe(b(No))),L(([[t,i],o])=>{o.length>=i.length&&this._store.dispatch(g.syncronizeQuestionResults())})),{dispatch:!1}),this.goToDetails$=Y(()=>this._actions.pipe(K(g.goToDetails),W(this._store.pipe(b(ne))),L(t=>this._store.dispatch(g.initial())),L(([t,i])=>this._router.navigate(["/reports",i.id]))),{dispatch:!1}),this.saveRandomlySelectedStudent$=Y(()=>this._actions.pipe(K(g.saveRandomlySelectedStudent),L(({studentId:t})=>{let i=this._localStorage.getItem(xi),o=i?i.split(","):[];this._localStorage.setItem(xi,[...o,t.toString()].join())}),se(({studentId:t})=>
9[g.addRandomlySelectedStudent({studentId:t})]))),this.clearRandomlySelectedStudents$=Y(()=>this._actions.pipe(K(g.clearRandomlySelectedStudents),L(()=>this._localStorage.removeItem(xi)),se(()=>[g.changeRandomlySelectedStudents({randomlySelectedStudents:[]})]))),this.clearLocalStorage$=Y(()=>this._actions.pipe(K(g.clearLocalStorage),L(()=>{this._localStorage.removeItem(xi),this._localStorage.removeItem(jo),this._localStorage.removeItem(zo),this._localStorage.removeItem(Qo),this._localStorage.removeItem(Uo)}),se(()=>[g.changeRandomlySelectedStudents({randomlySelectedStudents:[]}),g.changePoll({poll:null}),g.changePollAnswers({pollAnswers:[]}),g.changeBrainstormingAnswers({brainstormingAnswers:[]}),g.changeBrainstormingAnswersPositions({brainstormingAnswersPositions:[]})])))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac})}}return e})();u();u();var ff=e=>({randomlySelectedStudents:e});function hf(e,n){e&1&&(s(0,"h1",9),m(1,"m-play.60"),a(),s(2,"p",10),m(3,"m-play.61"),a())}function _f(e,n){if(e&1&&(s(0,"span",12),m(1),a()),e&2){let t=p().$implicit;h("@inOutAnimation",void 0),c(),M(t.nickname)}}function gf(e,n){if(e&1&&y(0,_f,2,2,"span",12),e&2){let t=n.$index,i=p(3);v(t==i.currentIndex?0:-1)}}function yf(e,n){if(e&1&&(s(0,"div",11),le(1,gf,1,1,null,null,he),a(),s(3,"p",10),m(4,"m-play.62"),a()),e&2){let t=p(2);c(),ce(t.students)}}function vf(e,n){if(e&1&&(s(0,"span",4),m(1),a()),e&2){let t=p(2);c(),M(t.selectedStudent.nickname)}}function xf(e,n){e&1&&(s(0,"span",7),m(1,"m-play.actions.exit"),a())}function Cf(e,n){e&1&&(s(0,"span",7),m(1,"m-play.actions.cancel"),a())}function bf(e,n){e&1&&(s(0,"span",7),m(1,"m-play.actions.retry"),a())}function wf(e,n){e&1&&(s(0,"span",7),m(1,"m-play.actions.reset"),a())}function Sf(e,n){if(e&1&&y(0,bf,2,0,"span",7)(1,wf,2,0,"span",7),e&2){let t=p(3);v(t.students.length>1?0:1)}}function Tf(e,n){e&1&&(s(0,"span",7),m(1,"m-play.actions.start"),a())}function Ef(e,n){if(e&1){let t=V();s(0,"button",13),w("click",function(){P(t);let o=p(),r=p();return R(r.start(o.randomlySelectedStudents))}),y(1,Sf,2,1)(2,Tf,2,0,"span",7),a()}if(e&2){let t=p(2);c(),v(t.step==t.steps.Result?1:2)}}function kf(e,n){if(e&1){let t=V();s(0,"div",0)(1,"div",1),d(2,"img",2)(3,"img",3),a(),y(4,hf,4,0)(5,yf,5,0)(6,vf,2,1,"span",4),s(7,"div",5)(8,"button",6),w("click",function(){P(t);let o=p();return R(o.close())}),y(9,xf,2,0,"span",7)(10,Cf,2,0,"span",7),a(),y(11,Ef,3,1,"button",8),a()()}if(e&2){let t,i=p();c(2),me("hidden",i.step==i.steps.Result),c(),me("hidden",i.step!=i.steps.Result),c(),v((t=i.step)===i.steps.Start?4:t===i.steps.Playing?5:t===i.steps.Result?6:-1),c(5),v(i.step==i.steps.Result?9:10),c(2),v(i.step!=i.steps.Playing?11:-1)}}function Ud(e,n){return e.open(Pf,{maxWidth:"480px",width:"90%",disableClose:!0,data:n})}var Pf=(()=>{class e{constructor(t,i,o){this._dialogRef=t,this._store=o,this.step=St.Start,this.steps=St,this.iterations=1e3*Ea/ii,this.randomlySelectedStudents$=this._store.pipe(b(Od)),this._data=i}ngOnInit(){this._store.dispatch(g.syncronizeRandomSelection({step:St.Start}))}ngOnDestroy(){this._timerSubscription?.unsubscribe()}close(){this._store.dispatch(g.syncronizeRandomSelection({step:St.End})),this._dialogRef.close()}start(t){if(this.currentIndex=0,this.students=this._data.students.filter(o=>t.indexOf(o.id)===-1).sort(()=>Math.random()-.5),this.students.length===0){this._reset();return}if(this.students.length===1){this.selectedStudent=this.students[0],this._displayResult();return}let i=Math.floor(Math.random()*(this.students.length-1))+1;this.selectedStudent=this.students[i],this.step=St.Playing,this._store.dispatch(g.syncronizeRandomSelection({step:St.Playing,selectedId:this.selectedStudent.id,students:this.students})),this._timerSubscription=wn(0,ii).pipe(We(this.iterations+1),L(()=>this.currentIndex=this.currentIndex<this.students.length-1?this.currentIndex+1:0)).subscribe(o=>{o===this.iterations&&this._displayResult()})}_reset(){this._store.dispatch(g.clearRandomlySelectedStudents()),this.start([])}_displayResult(){this.step=St.Result,this._store.dispatch(g.syncronizeRandomSelection({step:St.Result,selectedId:this.selectedStudent.id,students:this.students}
9)),this._store.dispatch(g.saveRandomlySelectedStudent({studentId:this.selectedStudent.id}))}static{this.\u0275fac=function(i){return new(i||e)(D(ze),D(nt),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:2,vars:5,consts:[[1,"flex","flex-col","items-center","bg-white","text-blue-black","rounded-lg","overflow-hidden","py-6","px-4","md:px-16"],[1,"h-36","w-36","mb-4"],["src","assets/images/0051.png","alt","",1,"mx-auto"],["src","assets/images/0052.png","alt","",1,"mx-auto"],["l10nTranslate","",1,"gtm-toolbar-randomselection","font-black","text-2xl","mb-3"],[1,"flex","justify-center","pt-7"],[1,"btn","btn-outlined-deep-purple","btn-md","btn-120","mx-2",3,"click"],["l10nTranslate",""],[1,"btn","btn-contained-deep-purple","btn-md","btn-120","mx-2"],["l10nTranslate","",1,"font-black","text-2xl","mb-3"],["l10nTranslate","",1,"h-9","text-center"],[1,"w-full","flex","justify-center","mb-3"],["l10nTranslate","",1,"shrink-0","font-black","text-2xl"],[1,"btn","btn-contained-deep-purple","btn-md","btn-120","mx-2",3,"click"]],template:function(i,o){if(i&1&&(y(0,kf,12,7,"div",0),E(1,"async")),i&2){let r;v((r=oe(3,ff,A(1,1,o.randomlySelectedStudents$)))?0:-1,r)}},dependencies:[O,te],encapsulation:2,data:{animation:[na("inOutAnimation",[pr(":enter",[Re({transform:"translateX(100px)",opacity:0}),ut(`${ii}ms ease-in`,Re({transform:"translateX(0)",opacity:1}))]),pr(":leave",[Re({transform:"translateX(0)",opacity:1}),ut(`${ii}ms ease-out`,Re({transform:"translateX(-100px)",opacity:0}))])])]}})}}return e})();u();function $d(e){return e.open(Rf,{maxWidth:"480px",width:"90%"})}var Rf=(()=>{class e{constructor(){this._dialogRef=I(ze)}close(t){this._dialogRef.close(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:11,vars:0,consts:[[1,"flex","flex-col","items-center","bg-white","text-blue-black","rounded-lg","py-8","px-2"],["width","110px","height","115px","src","assets/images/0053.png","alt","",1,"mb-4"],["l10nTranslate","",1,"font-black","text-2xl","text-center","mb-2"],["l10nTranslate","",1,"max-w-xs","text-center","mb-8"],[1,"flex","justify-center","items-center"],["l10nTranslate","",1,"btn","btn-md","btn-outlined-deep-purple","btn-120","md:btn-150","mr-4",3,"click"],["l10nTranslate","",1,"btn","btn-md","btn-contained-deep-purple","btn-120","md:btn-150",3,"click"]],template:function(i,o){i&1&&(s(0,"div",0),d(1,"img",1),s(2,"h1",2),m(3,"m-play.58"),a(),s(4,"p",3),m(5,"m-play.59"),a(),s(6,"div",4)(7,"button",5),w("click",function(){return o.close(!1)}),m(8,"m-play.actions.cancel"),a(),s(9,"button",6),w("click",function(){return o.close(!0)}),m(10,"m-play.actions.accept"),a()()())},dependencies:[O],encapsulation:2})}}return e})();u();var If=(e,n)=>({poll:e,pollAnswersCount:n});function Vf(e,n){if(e&1){let t=V();s(0,"button",43),w("click",function(){P(t);let o=p().$index,r=p(3);return R(r.removeOption(o))}),d(1,"em",44),a()}}function Ff(e,n){e&1&&d(0,"div",42)}function Mf(e,n){if(e&1&&(qe(0,26),s(1,"div",35)(2,"div",36)(3,"td-form-field",37),d(4,"textarea",38,1),E(6,"translate"),s(7,"td-hint",24),m(8),a()()(),s(9,"div",39)(10,"div",40),y(11,Vf,2,0,"button",41)(12,Ff,1,0,"div",42),a()()(),Le()),e&2){let t=n.$index,i=Ae(5),o=p(3);h("formGroupName",t),c(4),h("placeholder",dt(Te(6,5,"placeholders.resources.options.statement.multiple",o.locale.language))),c(4),U("",(i.value==null?null:i.value.length)||0,"/50"),c(3),v(t>1?11:12)}}function qf(e,n){if(e&1){let t=V();s(0,"div",27)(1,"button",45),w("click",function(){P(t);let o=p(3);return R(o.addOption())}),m(2," +\xA0"),s(3,"span",22),m(4,"m-play.actions.add-answer-option"),a()()()}}function Lf(e,n){if(e&1){let t=V();s(0,"form",10)(1,"fieldset",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"span",16),m(6,"m-play.53"),a(),d(7,"td-slide-toggle-switch",17),a()(),s(8,"div",18)(9,"div",19)(10,"div",20)(11,"td-form-field",21)(12,"td-label",22),m(13,"m-play.resources.title.multiple"),a(),d(14,"textarea",23,0),s(16,"td-hint",24),m(17),a()()()(),qe(18,25),le(19,Mf,13,8,"ng-container",26,he),Le(),y(21,qf,5,0,"div",27),a()(),s(22,"div",28)(23,"div",29),d(24,"em",30),s(25,"span",31),m(26,"m-play.54"),a()(),s(27,"div",32)(28,"button",33),w("click",function(){P(t);let o=p(2);return R(o.cancel())}),m(29,"m-play.actions.cancel"),a(),s(30,"button",34),w("click",function(){P(t);let o=p(2);return R(o.publish())}),m(31,"m-play.actions.publish"),a()()()()()}if(e&2){let t=Ae(15),i=p(2);h("formGroup",i.form),c(),me("opacity-60",i.disabled),h("disabled",i.disabled),c(16),U("",(t.value==null?null:t.value.length)||0,"/100"),c(2),ce(i.options.controls),c(2),v(i.options.controls.length<4?21:-1),c(9),h("disabled",i.form.invali
9d)}}function Of(e,n){if(e&1&&(s(0,"div",49)(1,"p",52),m(2),a(),s(3,"div",53)(4,"div",54)(5,"span",55),m(6),a()()()()),e&2){let t=n.$implicit,i=n.$index,o=p(2);c(2),M(t.statement),c(2),rt("width",(o.pollAnswersCount[i]==null?null:o.pollAnswersCount[i].percent)||0,"%"),c(2),U(" ",o.pollAnswersCount[i]==null?null:o.pollAnswersCount[i].count," ")}}function Nf(e,n){if(e&1){let t=V();s(0,"div",11)(1,"div",46)(2,"div",47)(3,"p",48),m(4),a(),le(5,Of,7,4,"div",49,he),a()(),s(7,"div",50)(8,"div",32)(9,"button",51),w("click",function(){P(t);let o=p(2);return R(o.restart())}),m(10,"m-play.55"),a()()()()}if(e&2){let t=p();c(4),M(t.poll==null?null:t.poll.title),c(),ce(t.poll==null?null:t.poll.options)}}function jf(e,n){if(e&1){let t=V();s(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),d(4,"em",6),s(5,"span",7),m(6,"m-play.52"),a()(),s(7,"button",8),w("click",function(){P(t);let o=p();return R(o.close.emit())}),d(8,"em",9),a()(),y(9,Lf,32,7,"form",10)(10,Nf,11,1,"div",11),a()()}e&2&&(c(9),v(n.poll?10:9))}var Hd=(()=>{class e{get disabled(){return this._disabled}set disabled(t){let i=ve(t);this._disabled!==i&&(this._disabled=i)}get options(){return this._form.get("options")}get form(){return this._form}constructor(t,i){this.locale=t,this._store=i,this._disabled=!1,this.close=new Tn,this.poll$=this._store.pipe(b(Nd)),this.pollAnswersCount$=this._store.pipe(b(jd)),this._form=Ca()}removeOption(t){this.options.removeAt(t)}addOption(){this.options.push(ba())}cancel(){this.form.reset(),this.close.emit()}publish(){if(this.form.valid){let t=this.form.value;this._store.dispatch(g.syncronizePoll({poll:t}))}}restart(){this.form.reset(),this._store.dispatch(g.resetPoll())}static{this.\u0275fac=function(i){return new(i||e)(D(tt),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-poll"]],inputs:{disabled:"disabled"},outputs:{close:"close"},standalone:!1,decls:3,vars:8,consts:[["TitleInput",""],["OptionInput",""],[1,"h-full","bg-white","py-2"],[1,"flex","flex-col","h-full"],[1,"h-12","shrink-0","flex","justify-between","items-center","pl-4","pr-2","border-b","border-blue-black-light-1"],[1,"flex","items-center","text-blue-black-light-8"],[1,"ai","ai-circle-chart","text-xl","mr-2"],["l10nTranslate","",1,"font-black"],[1,"btn-icon","btn-flat-blue-black","btn-md",3,"click"],[1,"ai","ai-close"],[3,"formGroup"],[1,"td-play-poll-form-container","gtm-toolbar-poll","flex","flex-col","justify-between"],[1,"td-play-poll-form-container","flex","flex-col","justify-between",3,"disabled"],[1,"overflow-x-hidden","overflow-y-auto","scrollbar","not-border-radius","px-1","md:px-3","pt-3","pb-4"],[1,"flex","flex-row","justify-end","pb-4"],[1,"flex","items-center"],["l10nTranslate","",1,"text-blue-black-light-8","font-black","mr-2"],["formControlName","multiple"],[1,"flex","flex-col"],[1,"mb-4","flex","flex-row","items-start"],[1,"flex-1","truncate","text-lg"],["appearance","underline-fill",1,"w-full"],["l10nTranslate",""],["formControlName","title","maxlength","100","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","tdInput","",1,"scrollbar"],["align","end",1,"text-blue-black-light-8"],["formArrayName","options"],[3,"formGroupName"],[1,"mt-6","relative","block"],[1,"pb-4","px-1","md:px-3"],[1,"flex","flex-row","items-start","py-5"],[1,"ai","ai-circle-info","text-amber","mr-1"],["l10nTranslate","",1,"text-xs"],[1,"flex","flex-row","justify-center"],["l10nTranslate","",1,"btn","btn-md","btn-120","btn-outlined-deep-purple","mr-4",3,"click"],["l10nTranslate","",1,"btn","btn-md","btn-120","btn-contained-deep-purple",3,"click","disabled"],[1,"flex","items-start","mb-2"],[1,"grow","truncate"],["floatLabel","never","appearance","outline",1,"w-full"],["formControlName","statement","maxlength","50","cdkTextareaAutosize","","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","5","tdInput","",1,"scrollbar",3,"placeholder"],[1,"ml-4","mt-1"],[1,"flex","flex-row"],[1,"btn-icon","btn-md","btn-flat-blue-black"],[1,"btn-icon","btn-md","invisible"],[1,"btn-icon","btn-md","btn-flat-blue-black",3,"click"],[1,"ai","ai-trash","text-lg"],[1,"btn","btn-md","btn-flat-blue-black",3,"click"],[1,"overflow-x-hidden","overflow-y-auto","scrollbar","not-border-radius"],[1,"px-1","md:px-3","pt-6","pb-4"],[1,"font-bold","break-words","text-center","md:text-xl","mb-8","md:mb-14"],[1,"mb-8"],[1,"py-4","px-1","md:px-3"],["l10nTranslate","",1,"btn","btn-md","btn-150","btn-contained-deep-purple",3,"click"],[1,"font-bold","break-words","md:text-xl","mb-2"],[1,"h-6","w-full","rounded","bg-blue-black-light-1","relative"],[1,"h-6","flex","items-center","rounded","bg-cyan","absolute","left-0","inset-y-0","transition-width","duration-200","ease-linear"],[1,"font-black","text-white","absolute","right-0","mr-1"]],template:function(i,o){if(i&1&&(y(0,jf,11,1,"div",2),E(1,"async"),E(2,"async")),i&2){let r;v((r=et(5,If,A(1,1,o.poll$),A(2,3,o.pollAnswersCount$)))?0:-1,r)}},dependencies:[Pn,En,Mt,kn,Hi,Dn,Rn,ma,fa,to,Xi,eo,no,io,qn,O,te,ft],styles:[".td-play-poll-form-container[_ngcontent-%COMP%]{height:calc(100vh - 55px)}"],changeDetection:0})}}return e})();u();u();u();u();u();var Qf=e=>({v1:e}),Gd=(()=>{class e{get student(){return this._data.student}constructor(t,i){this._data=t,this._snackBarRef=i}close(){this._snackBarRef.dismiss()}static{this.\u0275fac=function(i){return new(i||e)(D(Qa),D(za))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-remove-user-snack-bar"]],standalone:!1,decls:3,vars:3,consts:[[1,"flex","justify-center","items-center"],["l10nTranslate","",1,"text-white","mr-4",3,"params"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"p",1),m(2,"m-play.70"),a()()),i&2&&(c(),h("params",oe(1,Qf,o.student.nickname)))},dependencies:[O],encapsulation:2})}}return e})();var $o=(()=>{class e{constructor(){this._snackBar=I(Ua)}openRemoveUserSnackBar(t){return this._snackBar.openFromComponent(Gd,{data:t,duration:5e3,horizontalPosition:"end",panelClass:"snack-bar-blue-purple"})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var $f=e=>({v1:e}),Jd=(()=>{class e{get student(){return this._data.student}constructor(t,i,o,r){this._data=t,this._dialogRef=i,this._playSnackBars=o,this._store=r}expel(){this._dialogRef.close(),this._store.dispatch(g.expelStudent({
9studentId:this._data.student.id})),this._playSnackBars.openRemoveUserSnackBar({student:this._data.student})}close(){this._dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(D(nt),D(ze),D($o),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:14,vars:3,consts:[[1,"text-blue-black","bg-white","rounded-lg","py-4","relative","overflow-hidden"],[1,"flex","flex-col","px-2","text-center"],[1,"mb-4","pt-4","flex","justify-center"],["alt","Remove User","src","assets/images/0062.png","width","70","height","120"],[1,"max-w-xs","mx-auto","mb-4","text-blue-black"],["l10nTranslate","",1,"font-black","text-center","text-xl","mb-4"],["l10nTranslate","",1,"mb-8",3,"params"],[1,"flex","justify-center","items-center"],["l10nTranslate","",1,"btn","btn-outlined-deep-purple","btn-md","mr-2","md:btn-120",3,"click"],["l10nTranslate","",1,"btn","btn-contained-deep-purple","btn-md","ml-2","md:btn-120",3,"click"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),d(3,"img",3),a(),s(4,"div",4)(5,"h1",5),m(6,"m-play.68"),a(),s(7,"p",6),m(8,"m-play.69"),a(),s(9,"div",7)(10,"button",8),w("click",function(){return o.close()}),m(11,"m-play.actions.cancel"),a(),s(12,"button",9),w("click",function(){return o.expel()}),m(13,"m-play.actions.expel"),a()()()()()),i&2&&(c(7),h("params",oe(1,$f,o.student.nickname)))},dependencies:[O],encapsulation:2})}}return e})();u();function Wf(e,n){if(e&1&&(s(0,"span",8),m(1),a()),e&2){let t=p(2).$implicit;c(),M(t.quantity)}}function Hf(e,n){if(e&1&&(s(0,"span",8),m(1),a(),s(2,"div",9)(3,"td-row-chart",10),y(4,Wf,2,1,"span",8),a()()),e&2){let t=p().$implicit,i=p();c(),M(t.word),c(2),h("max",i.max)("type",t.type)("value",t.quantity),c(),v(t.quantity>0?4:-1)}}function Gf(e,n){if(e&1&&y(0,Hf,5,5),e&2){let t=n.$implicit;v(t.word?0:-1)}}var Zd=(()=>{class e{get max(){return this._data.max}get selected(){return this._data.selected}constructor(t,i){this._data=t,this._dialogRef=i}close(){this._dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(D(nt),D(ze))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:11,vars:0,consts:[[1,"h-full","flex","flex-col","bg-white","rounded-lg","p-2"],[1,"flex","justify-between","content-center","mt-1","mb-4"],[1,"flex","items-center"],["l10nTranslate","",1,"text-base","font-bold","md:text-base","text-blue-black-light-6"],[1,"btn-icon","btn-flat-blue-black",3,"click"],[1,"ai","ai-close"],[1,"h-full","flex","items-center","pl-2","pr-1","mb-4"],[1,"w-full","scrollbar","overflow-auto"],[1,"font-bold","text-xl","md:text-2xl"],[1,"h-10","flex-1","bg-background","rounded-lg","mt-1","mb-4"],[3,"max","type","value"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),m(4,"play.text-56"),a()(),s(5,"button",4),w("click",function(){return o.close()}),d(6,"em",5),a()(),s(7,"div",6)(8,"div",7),le(9,Gf,1,1,null,null,he),a()()()),i&2&&(c(9),ce(o.selected))},dependencies:[Kt,O],encapsulation:2})}}return e})();var Hn=(()=>{class e{constructor(){this._dialog=I(Ie)}openRemoveUserDialog(t){return this._dialog.open(Jd,{maxWidth:"350px",width:"100%",maxHeight:"95vh",disableClose:!0,autoFocus:!0,data:t})}openCompleteSentenceFeedbackDialog(t){return this._dialog.open(Zd,{maxWidth:"290px",width:"100%",maxHeight:"95vh",data:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Yf(e,n){if(e&1&&(s(0,"span",3),d(1,"em",8),s(2,"span",9),m(3),s(4,"span"),m(5),E(6,"translate"),E(7,"lowercase"),a()()()),e&2){let t=p();c(3),U("",t.students.length,"/100\xA0 "),c(2),M(A(7,5,Te(6,2,"m-play.7",t.locale.language)))}}function Kf(e,n){if(e&1){let t=V();s(0,"button",10),w("click",function(){P(t);let o=p();return R(o.close.emit())}),d(1,"em",11),a()}}function Xf(e,n){if(e&1){let t=V();qe(0),s(1,"li",14)(2,"div",15)(3,"div",16)(4,"div",17),d(5,"img",18),a(),s(6,"span",19),m(7),a()(),s(8,"button",20),w("click",function(){let o=P(t).$implicit,r=p(2);return R(r.openRemoveUserDialog(o))}),d(9,"em",11),a()()(),Le()}if(e&2){let t=n.$implicit,i=p(2);c(5),h("src",i.avatars[t.avatar_id-1].url,Fe),c(2),M(t.nickname)}}function eh(e,n){if(e&1&&(s(0,"cdk-virtual-scroll-viewport",6)(1,"ul",12),Me(2,Xf,10,2,"ng-container",13),a()()),e&2){let t=p();c(2),h("cdkVirtualForOf",t.students)}}function th(e,n){e&1&&(s(0,"div",7)(1,"div",21),d(2,"img",22),s(3,"div",23)(4,"span",24),m(5,"m-play.56"),a(),s(6,"span",25),m(7,"m-play.57"),a()()()())}var Wo=(()=>{class e{get students(){return this._students}set students(t){this._students=t}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=ve(t)}get remove(){return this._remove}constructor(t,i,o,r,l){this.locale=t,this._avatars=i,this._dialog=o,this._playDialogs=r,this._store=l,this._students=null,this._disableClose=!1,this.close=new Tn,this.avatars=this._avatars.data,this.students$=this._store.pipe(b(yt))}openRemoveUserDialog(t){this._playDialogs.openRemoveUserDialog({student:t})}static{this.\u0275fac=function(i){return new(i||e)(D(tt),D(Yt),D(Ie),D(Hn),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-student-list"]],inputs:{students:"students",disableClose:"disableClose"},outputs:{close:"close"},standalone:!1,decls:8,vars:3,consts:[[1,"h-full","bg-white","rounded-lg","pt-2"],[1,"flex","flex-col","h-full"],[1,"h-12","shrink-0","flex","justify-between","items-center","pl-4","pr-2","border-b","border-blue-black-light-1"],[1,"flex","items-center","text-blue-black-light-8"],[1,"btn-icon","btn-flat-blue-black","btn-md"],[1,"relative","w-full","grow","flex","flex-col","overflow-auto","pt-4"],["orientation","vertical","itemSize","45",1,"h-full","scrollbar","not-border-radius"],[1,"flex","items-center","justify-center","h-full"],[1,"ai","ai-circle-user","text-xl","mr-2"],[1,"font-black"],[1,"btn-icon","btn-flat-blue-black","btn-md",3,"click"],[1,"ai","ai-close"],[1,"list-none"],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mx-2","mt-1"],[1,"group","w-full","flex","justify-between","items-center","px-2","py-1","rounded","transition","ease-linear","duration-300","hover:bg-background-banner"],[1,"flex"],[1,"w-6","h-6","rounded-full","border","border-grey-light-1","mr-2","inline-block"],["alt","",1,"w-full","rounded-full",3,"src"],[1,"text-blue-black","self-center","font-bold"],[1,"btn-icon","btn-md","btn-flat-blue-black","opacity-0","group-hover:opacity-100",3,"click"],[1,"px-8","py-4","text-center"],["src","assets/images/0089.svg","alt","",1,"mx-auto","mb-6"],[1,"px-8"],["l10nTranslate","",1,"block","text-xl","font-black","text-blue-black","mb-3"],["l10nTranslate",""]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),y(3,Yf,8,7,"span",3),y(4,Kf,2,0,"button",4),a(),s(5,"div",5),y(6,eh,3,1,"cdk-virtual-scroll-viewport",6)(7,th,8,0,"div",7),a()()()),i&2&&(c(3),v(o.students?3:-1),c(),v(o.disableClose?-1:4),c(2),v(o.students&&o.students.length?6:7))},dependencies:[La,Na,Oa,O,zi,ft],encapsulation:2,changeDetection:0})}}return e})();u();u();function Ho(e){return e.open(co,{width:"450px",maxWidth:"90vw",data:{type:lo.Warning,icon:!0,title:"alerts.wait",message:"play.text-79",close:{enabled:!0,label:"actions.cancel"},action:{enabled:!0,label:"play.text-2"}}})}var nh=(e,n,t,i,o,r,l,f,_)=>({state:e,session:n,students:t,resources:i,position:o,answers:r,isFirstResource:l,isLastResource:f,isQuestion:_}),ih=e=>({v1:e});function oh(e,n){if(e&1&&(s(0,"div",11),d(1,"em",20),s(2,"span",10),m(3,"m-play.51"),a(),s(4,"span"),m(5),a()()),e&2){let t=p();c(5),Ge("",t.answers.length,"/",t.students.length)}}function rh(e,n){if(e&1){let t=V();s(0,"button",23),w("click",function(){P(t);let o=p(3);return R(o.previousResource())}),d(1,"em",24),a()}if(e&2){let t=p(2);h("disabled",t.isFirstResource||t.isQuestion&&(t.state==null?null:t.state.event_type)==="sync_screen")}}function sh(e,n){if(e&1){let t=V();s(0,"button",25),w("click",function(){P(t);let o=p(3);return R(o.syncronizeQuestionResults())}),d(1,"em",26),a()}}function ah(e,n){if(e&1){let t=V();s(0,"button",28),w("click",function(){P(t);let o=p(5);return R(o.nextResource())}),m(1,"m-play.actions.skip"),a()}}function lh(e,n){if(e&1){let t=V();y(0,ah,2,0,"button",27),s(1,"button",25),w("click",function(){P(t);let o=p(4);return R(o.nextResource())}),d(2,"em",26),a()}if(e&2){let t=p(3),i=p();v((t.state==null?null:t.state.event_type)===i.eventTypes.GetReady?0:-1),c(),me("lg:hidden",(t.state==null?null:t.state.event_type)===i.eventTypes.GetReady)}}function ch(e,n){if(e&1&&y(0,lh,3,3),e&2){let t=p(2);v(t.isLastResource?-1:0)}}function dh(e,n){if(e&1&&(y(0,rh,2,1,"button",21),y(1,sh,2,0,"button",22)(2,ch,1,1)),e&2){let t=p(),i=p();v((t.state==null?null:t.state.event_type)!==i.eventTypes.GetReady?0:-1),c(),v(t.isQuestion&&(t.state==null?null:t.state.event_type)==="sync_screen"?1:2)}}function ph(e,n){if(e&1){let t=V();s(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),d(4,"em",4),s(5,"span",5),m(6,"m-play.0"),a()(),d(7,"div",6),s(8,"div",7)(9,"div",8),d(10,"em",9),s(11,"span",10),m(12,"m-play.50"),a(),s(13,"span"),m(14),a()(),y(15,oh,6,2,"div",11),a()(),s(16,"div",12),y(17,dh,3,2),d(18,"div",13),s(19,"div",14)(20,"button",15),w("click",function(){P(t);let o=p();return R(o.finishSession())}),d(21,"em",16),a(),s(22,"button",17),w("click",function(){P(t);let o=p();return R(o.finishSession())}),d(23,"em",18),s(24,"span",19),m(25,"m-play.1"),a()()()()()()}if(e&2){let t=n,i=p();c(5),h("params",oe(5,ih,t.session.code)),c(9),Ge("",t.position,"/",t.resources.length),c(),v(t.students.length>0&&t.isQuestion&&(t.state==null?null:t.state.event_type)!==i.eventTypes.GetReady?15:-1),c(2),v(t.state?17:-1)}}var sn=(()=>{class e{constructor(){this._store=I(J),this._dialog=I(Ie),this.session$=this._store.pipe(b(ne)),this.state$=this._store.pipe(b(Qe)),this.students$=this._store.pipe(b(yt)),this.resources$=this._store.pipe(b(Ue)),this.position$=this._store.pipe(b(Vd)),this.answers$=this._store.pipe(b(No)),this.isFirstResource$=this._store.pipe(b(Bd)),this.isLastResource$=this._store.pipe(b(Ad)),this.isQuestion$=this._store.pipe(b(yi)),this._eventTypes=de}get eventTypes(){return this._eventTypes}syncronizeQuestionResults(){this._store.dispatch(g.syncronizeQuestionResults())}previousResource(){this._store.dispatch(g.previousResource())}nextResource(){this._store.dispatch(g.nextResource())}finishSession(){Ho(this._dialog).afterClosed().subscribe(i=>i&&this._store.dispatch(g.finishSession()))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-footer"]],standalone:!1,decls:10,vars:29,consts:[[1,"max-w-5xl","w-full","h-full","mx-auto","px-3","md:px-4"],[1,"shadow-md","w-full","h-full","rounded-lg","flex","justify-between","items-center","px-1","md:px-4","bg-white"],[1,"td-footer-left","flex","items-center"],[1,"hidden","md:flex","items-center","text-blue-black"],[1,"td-footer-tomi-icon","ai","ai-tomi","md:mr-2"],["l10nTranslate","",1,"font-black","text-xl",3,"params"],[1,"hidden","md:block","h-8","w-px","border-r","border-blue-black-light-2","mx-3"],[1,"flex","items-center","justify-evenly"],[1,"flex","items-center","text-blue-black-light-8"],[1,"ai","ai-book-open-write","mr-1"],["l10nTranslate","",1,"hidden","xl:inline-block","md:mr-2"],[1,"hidden","md:flex","items-center","text-blue-black-light-8","px-2","md:px-4"],[1,"td-footer-right","flex","items-center","justify-end"],[1,"h-8","w-px","border-r","border-blue-black-light-2","mx-3"],[1,"flex","justify-end","shrink-0"],[1,"lg:hidden","btn-icon","btn-flat-blue-black","btn-md",3,"click"],[1,"ai","ai-stop"],[1,"hidden","lg:block","btn","btn-flat-blue-black","btn-md","xl:btn-150",3,"click"],[1,"ai","ai-stop","mr-1.5"],["l10nTranslate",""],[1,"ai","ai-circle-user","mr-1"],[1,"btn-icon","btn-flat-blue-black","btn-md","mr-3",3,"disabled"],[1,"btn-icon","btn-flat-blue-black","btn-md"],[1,"btn-icon","btn-flat-blue-black","btn-md","mr-3",3,"click","disabled"],[1,"ai","ai-arrow-open-left"],[1,"btn-icon","btn-flat-blue-black","btn-md",3,"click"],[1,"ai","ai-arrow-open-right"],["l10nTranslate","",1,"hidden","lg:block","btn","btn-flat-blue-black","btn-md","btn-120"],["l10nTranslate","",1,"hidden","lg:block","btn","btn-flat-blue-black","btn-md","btn-120",3,"click"]],template:function(i,o){if(i&1&&(y(0,ph,26,7,"div",0),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async"),E(5,"async"),E(6,"async"),E(7,"async"),E(8,"async"),E(9,"async")),i&2){let r;v((r=Ni(19,nh,[A(1,1,o.state$),A(2,3,o.session$),A(3,5,o.students$),A(4,7,o.resources$),A(5,9,o.position$),A(6,11,o.answers$),A(7,13,o.isFirstResource$),A(8,15,o.isLastResource$),A(9,17,o.isQuestion$)]))?0:-1,r)}},dependencies:[O,te],styles:[".td-footer-tomi-icon[_ngcontent-%COMP%]{font-size:30px}.td-footer-left[_ngcontent-%COMP%]{flex:2}.td-footer-right[_ngcontent-%COMP%]{flex:1}"],changeDetection:0})}}return e})();u();u();u();var Kd=(()=>{class e{constructor(){this._url=""}get url(){return this._url}set url(t){this._url=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-session-gold-medal-svg"]],inputs:{url:"url"},standalone:!1,decls:44,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 250 225"],["id","gold-medal-1","x1",".4","x2",".6","y1",".1","y2","1","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#f90"],["offset","1","stop-color","#ffce0a"],["id","gold-medal-2","x1",".2","x2",".5","y1",".1","y2",".9","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#ffce0a"],["offset","1","stop-color","#ffe16c"],["id","gold-medal-3","x1",".4","x2",".6","y1","0","y2","1","gradientUnits","objectBoundingBox"],["offset","1","stop-color","#ffad33"],["id","gold-medal-4","width","235.2","height","249.7","x","-3","y","12","filterUnits","userSpaceOnUse"],["dy","8"],["result","b","stdDeviation","7.5"],["flood-color","#22233a","flood-opacity",".1"],["in2","b","operator","in"],["id","gold-medal-5","width","100%","height","100%","preserveAspectRatio","xMidYMid slice","viewBox","0 0 200 200"],["width","200","height","200"],["transform","translate(15, -22)"],["fill","rgba(255,255,255,0)","d","M0 0h225v250H0z"],["cx","5","cy","4.5","fill","#e60dff","rx","5","ry","4.5","transform","translate(23.2 32.4)"],["fill","#03e5e4","d","m193.5 64.7 5.4-10.9 6.6 9.5Z"],["fill","#ffce0a","d","m14.2 155.3 2 2.6.1.1h.1v.1h.1l3.4-.2h.2a.3.3 0 0 1 .1.2l.1.1a.3.3 0 0 1-.1.2l-1.9 2.8v.4l1.2 3.1a.3.3 0 0 1 .1.2l-.1.1a.3.3 0 0 1-.2.1.1.1 0 0 1-.2 0l-3.2-.9h-.2l-.1.1h-.1l-2.5 2.1a.3.3 0 0 1-.2.1h-.2a.3.3 0 0 0-.2-.1v-.2l-.2-3.4v-.1l-.1-.1v-.1l-2.8-1.8a.3.3 0 0 1-.2-.1v-.2a.3.3 0 0 1 .1-.2l.1-.1 3.2-1.2.1-.1h.1v
9-.1l.8-3.3.1-.1a.3.3 0 0 1 .2-.1h.2a.3.3 0 0 1 .2.1Z"],["fill","#97d700","d","m30.3 120.2-13.2 8.2-.2-7.8Z"],["fill","#00b5ff","d","m84.1 39.2-8.6-13 7.8-.4Z"],["fill","#ffce0a","d","m156.7 22.2.1 3.3v.2l.1.1h.1l2.8 1.9.1.1v.2a.3.3 0 0 1-.1.2l-.1.1-3.2 1.1h-.1v.1l-.1.1-.9 3.3-.1.1a.3.3 0 0 1-.2.1.1.1 0 0 1-.2 0 .3.3 0 0 1-.2-.1l-2-2.7-.1-.1h-.2l-3.3.1h-.2l-.2-.2V30a.3.3 0 0 1 .1-.2l1.9-2.8V26.7l-1.2-3.2v-.2l.1-.1a.3.3 0 0 1 .2-.1.1.1 0 0 1 .2 0l3.2.9.1.1h.1V24h.1l2.6-2.1a.3.3 0 0 1 .2-.1h.2l.2.2v.2Z"],["fill","#97d700","fill-rule","evenodd","d","M215.9 127.4a.9.9 0 0 1 .1.4v.5l-.2.4a1.6 1.6 0 0 1-.3.4l-2 2.1a.3.3 0 0 0-.2.1.3.3 0 0 1-.2.1l-.1.1h-.4a.4.4 0 0 1-.3-.1.3.3 0 0 1-.2-.1l-.2-.2a.3.3 0 0 0-.1-.2l-.9-2.2a1.6 1.6 0 0 1-.5-.1 1.6 1.6 0 0 1-.5-.1l-.4-.2a1.6 1.6 0 0 0-.4-.3l-.2-.4-.2-.4a7706891604895.5 7706891604895.5 0 0 1-.2-.8l-.1-.1-2.1-.9a.3.3 0 0 1-.2-.1l-.2-.2a.3.3 0 0 1-.1-.2.4.4 0 0 1-.1-.3v-.5a.3.3 0 0 0 .1-.2l.2-.2 2.1-2 .3-.3a1.1 1.1 0 0 1 .5-.1.9.9 0 0 1 .4-.1 1.6 1.6 0 0 0 .5.1l.6.3h.1v.1h.1a8.5 8.5 0 0 1 1.5-1.2 5.7 5.7 0 0 1 1.8-.9 9.5 9.5 0 0 1 3.8-.6.3.3 0 0 1 .2.1h.1a1966926221521.4 1966926221521.4 0 0 0 .2.4 9 9 0 0 1 0 1.9 6.2 6.2 0 0 1-.5 1.9 8 8 0 0 1-.8 1.7 14 14 0 0 1-1.3 1.5v.1h.1v.1h.1l.1.7Zm-7-2.8a2.2 2.2 0 0 0 .3-.7 8789168329669 8789168329669 0 0 0 .8-1.4l-.5-.2c-.1 0-.5-.2-.7.1l-2.1 2v.2l2 .8.2-.8Zm6.2 3.1-.2-.6a6.5 6.5 0 0 1-.7.4 6.5 6.5 0 0 0-.7.4 102189.6 102189.6 0 0 0-1.6.6l.9 2 2.1-2.1a.8.8 0 0 0 .2-.7Zm-1.6-.9a6.7 6.7 0 0 0 2.1-1.7 6.9 6.9 0 0 0 1.3-2.5 7.3 7.3 0 0 0 .3-2.7 6.2 6.2 0 0 0-2.7.4 7 7 0 0 0-2.4 1.3 8.7 8.7 0 0 0-1.7 2.1 7 7 0 0 0-.9 2.5v.3a.4.4 0 0 0 .1.3.8.8 0 0 0 .1.3l.2.2.2.2a6954293506307.9 6954293506307.9 0 0 1 .6.2h.3a7 7 0 0 0 2.5-.9Z"],["fill","#97d700","d","M214.9 122.2a.9.9 0 0 1 .3.6.6.6 0 0 1-.3.5.7.7 0 0 1-.5.2h-.3l-.2-.2-.2-.2v-.6a1.2 1.2 0 0 1 .2-.3.3.3 0 0 1 .2-.1.8.8 0 0 1 .3-.1.7.7 0 0 1 .5.2ZM207.9 128.9h.4l.1.1a.3.3 0 0 1 .1.2l.1.1a.3.3 0 0 1-.1.2.3.3 0 0 1-.1.2l-1.7 1.6v.1h-.1l-.1.1h-.2l-.1-.1h-.1l-.1-.1-.1-.1v-.4l.1-.1 1.7-1.7a.3.3 0 0 1 .2-.1ZM209.8 129.6a.7.7 0 0 1 .6.1l.1.1v.4l-.1.1-1 1-.1.1h-.1l-.1.1h-.2l-.1-.1a248806265960.3 248806265960.3 0 0 1-.2-.2.3.3 0 0 1 0-.4l.1-.1 1-1 .1-.1ZM206.4 128.9v.1h-.4l-.1-.1h-.1a.3.3 0 0 0-.1-.2v-.4l.1-.1 1.1-1.1a.3.3 0 0 1 .2-.1h.3a.4.4 0 0 1 .3.3v.3a.3.3 0 0 1-.1.2l-1.1 1.1h-.1Z"],["fill","#fff","fill-rule","evenodd","d","M14.5 76.9a.9.9 0 0 1 .4-.1.6.6 0 0 1 .5 0 .9.9 0 0 1 .4.1 1.6 1.6 0 0 1 .4.3l2.1 2a.3.3 0 0 1 .2.1.3.3 0 0 0 .1.2v.2a.3.3 0 0 1 .1.2v.2a6556195635546 6556195635546 0 0 1-.2.4l-.2.2a.3.3 0 0 1-.2.1l-2.1 1h-.1v.5a1.6 1.6 0 0 1-.1.5l-.2.4a1.8 1.8 0 0 1-.7.7 1.2 1.2 0 0 1-.3.2 1.1 1.1 0 0 1-.5.1.9.9 0 0 1-.4.1v.1l-.9 2.1a.3.3 0 0 1-.1.2l-.2.2-.2.2a.3.3 0 0 0-.2.1h-.3a.3.3 0 0 1-.2-.1.8.8 0 0 1-.3-.1.3.3 0 0 1-.2-.1l-2-2a1.6 1.6 0 0 1-.3-.4l-.2-.4v-.9l.3-.7v-.1H9a14 14 0 0 1-1.3-1.5 8.7 8.7 0 0 1-1-1.7 6.2 6.2 0 0 1-.5-1.9 6.7 6.7 0 0 1-.1-2q-.1-.1 0-.1a.3.3 0 0 1 .1-.2l.1-.1h.2a6 6 0 0 1 1.9-.1 8.7 8.7 0 0 1 1.9.4 7.4 7.4 0 0 1 1.8.8 8.5 8.5 0 0 1 1.5 1.2l.1-.1.1-.1.7-.1Zm-2.5 7-.8-.2a6.5 6.5 0 0 1-.7-.4 6.5 6.5 0 0 1-.7-.4l-.2.6a.4.4 0 0 0 .2.6l2 2 .1.1.1-.1.8-2-.8-.2Zm2.8-6.2-.6.2a2.7 2.7 0 0 1 .5.7 6.5 6.5 0 0 1 .4.7 2.2 2.2 0 0 1 .3.7 4 4 0 0 1 .3.8l2-.9v-.1l-2.2-2a1 1 0 0 0-.7-.1Zm-.8 1.5a8.4 8.4 0 0 0-1.8-2A9.6 9.6 0 0 0 9.7 76a9.4 9.4 0 0 0-2.7-.2 6.2 6.2 0 0 0 .4 2.7 7.3 7.3 0 0 0 1.4 2.3 6.1 6.1 0 0 0 2.2 1.7 8.4 8.4 0 0 0 2.6.8h.2a.8.8 0 0 1 .3-.1.4.4 0 0 1 .3-.1l.2-.2.2-.2a.4.4 0 0 1 .1-.3.8.8 0 0 1 .1-.3.8.8 0 0 0-.1-.3 7.1 7.1 0 0 0-.9-2.6Z"],["fill","#fff","d","M9.4 78a.7.7 0 0 1 1 0 1.3 1.3 0 0 1 .3.5.8.8 0 0 1-.1.3.3.3 0 0 1-.1.2 1.2 1.2 0 0 1-.3.2h-.5a1.2 1.2 0 0 1-.3-.2l-.2-.2v-.3a.7.7 0 0 1 .2-.5ZM16.3 84.8a.3.3 0 0 1-.1-.2l.1-.1a.3.3 0 0 1 .1-.2l.1-.1a.3.3 0 0 1 .4 0l.1.1 1.7 1.6.1.1.1.1v.3l-.1.1a2487944027793.2 2487944027793.2 0 0 1-.2.2h-.2a.1.1 0 0 1-.2 0l-.1-.1-1.7-1.6a.3.3 0 0 1-.1-.2ZM16.9 82.9a.7.7 0 0 1 .1-.6l.1-.1h.4l.1.1 1 .9.1.1.1.1v.4l-.1.1-.2.2h-.4L18 84l-1-1ZM16.3 86.3l.1.1v.4a2487944027792.9 2487944027792.9 0 0 1-.2.2h-.4a.3.3 0 0 1-.2-.1l-1.1-1.1-.1-.1a.3.3 0 0 1 0-.4 2487944027790.3 2487944027790.3 0 0 1 .2-.2.3.3 0 0 1 .4 0l.1.1 1.2 1Z"],["filter","url(#gold-medal-4)"],["fill","#fff","d","m164.9 230.9-17.6-4.8-19.3-5.2a7.3 7.3 0 0 1-1.7-.6 12.4 12.4 0 0 1-1.5-1.1 7.3 7.3 0 0 1-1.2-1.3 6.5 6.5 0 0 1-.9-1.6q-4.1.3-8.2.3-4 0-8-.3a6.5 6.5 0 0 1-.9 1.6 7.3 7.3 0 0 1-1.2 1.3 12.4 12.4 0 0 1-1.5 1.1 7.4 7.4 0 0 1-1.7.6l-19.3 5.2-17.6 4.8a11.4 11.4 0 0 1-5.2 0 10.3 10.3 0 0 1-4.4-2.6 10 10 0 0 1-2.6-9.6l5.7-20.9a95 95 0 1 1 113.6-.1l5.7 21a9.7 9.7 0 0 1 .1 4.5 9 9 0 0 1-1.8 4.1 10 10 0 0 1-3.5 2.9 9.2 9.2 0 0 1-4.4 1h-1.3l-.6-.2a2.2 2.2 0 0 1-.7-.1Z"],["cx","91.8","cy","91.8","r","91.8","fill","url(#gold-medal-1)","transform","translate(22.6 29.7)"],["cx","82.1","cy","82.1","r","82.1","fill","url(#gold-medal-2)","transform","translate(31.9 39.9)"],["fill","url(#gold-medal-3)","fill-rule","evenodd","d","M150.8 33.7a96.2 96.2 0 0 1 3
90.9 20.6 95 95 0 0 1 20.6 30.9 95.4 95.4 0 0 1 0 72.7 97.3 97.3 0 0 1-20.6 30.9 95.3 95.3 0 0 1-103.6 20.6 95 95 0 0 1-30.9-20.6 97.3 97.3 0 0 1-20.6-30.9A95.1 95.1 0 0 1 150.8 33.7Zm-3.6 167a84.4 84.4 0 0 0 27.8-18.6 85.6 85.6 0 0 0 18.6-93.3 86 86 0 0 0-46.4-46.4 85.8 85.8 0 0 0-65.5 0 85.6 85.6 0 0 0-52.9 79.1 85.4 85.4 0 0 0 25.1 60.6 84.4 84.4 0 0 0 27.8 18.6 85.8 85.8 0 0 0 65.5 0Z"],["fill","#ffce0a","d","m101.1 220.9-36.9 10a11.4 11.4 0 0 1-5.2 0 10.3 10.3 0 0 1-4.5-2.6 9.6 9.6 0 0 1-2.5-4.5 8.9 8.9 0 0 1 0-5.1l22.6-83 44.6 12.1-12.3 66.8a7.8 7.8 0 0 1-.7 2.1 6.4 6.4 0 0 1-1.3 1.9 11.2 11.2 0 0 1-1.7 1.4 8.3 8.3 0 0 1-2.1.9Z"],["fill","#fff","d","m119.2 147.8-12.3 66.8a7.8 7.8 0 0 1-.7 2.1 6.4 6.4 0 0 1-1.3 1.9 11.2 11.2 0 0 1-1.7 1.4 8.3 8.3 0 0 1-2.1.9l-19.3 5.2 22.5-82.3Z","opacity",".6"],["fill","#ffce0a","d","M125.8 220a7 7 0 0 1-1.7-1.4 6.4 6.4 0 0 1-1.3-1.9 11.4 11.4 0 0 1-.8-2.1l-12.2-66.8 44.6-12.1 22.6 83a11 11 0 0 1 0 5.1 9 9 0 0 1-2.6 4.5 9.4 9.4 0 0 1-4.4 2.6 11.4 11.4 0 0 1-5.2 0l-36.9-10a8.3 8.3 0 0 1-2.1-.9Z"],["fill","#fff","d","m124.7 143.8 22.5 82.3-19.3-5.2a8.3 8.3 0 0 1-2.1-.9 7 7 0 0 1-1.7-1.4 6.4 6.4 0 0 1-1.3-1.9 6.2 6.2 0 0 1-.8-2.1l-12.2-66.8Z","opacity",".6"],["fill","#8d98c6","d","m161.9 176.3-4 9.4a18.7 18.7 0 0 1-3.5 5.7 19.5 19.5 0 0 1-5 4.5 22.2 22.2 0 0 1-6 2.9 25.2 25.2 0 0 1-6.7.9l-2.3-.1-2.3-.3-2.2-.6a10.7 10.7 0 0 1-2.2-.8l-9.4-4-1.1-.4a7.9 7.9 0 0 0-1.2-.3l-1.2-.2a7.3 7.3 0 0 0-2.4 0 6.7 6.7 0 0 0-1.1.1 9.2 9.2 0 0 1-1.1.3l-1.1.4-9.5 3.8a19.4 19.4 0 0 1-2.1.7l-2.1.6-2.2.3-2.2.1a25.3 25.3 0 0 1-6.7-1 23.7 23.7 0 0 1-6.2-3 19.9 19.9 0 0 1-5-4.6 23.6 23.6 0 0 1-3.5-5.9s-2.3-10.2-5.2-11.6c.3-.3 6.9-27.9 6.9-27.9l85 .5 8.3 27.4c-1.9.4-2.4 2.5-2.7 3.1Z","opacity",".2"],["cx","63.2","cy","63.2","r","63.2","fill","url(#gold-medal-5)","transform","translate(52.3 59.4)"],["fill","#8d98c6","d","m56 132.2.6 5 1 4.8q.6 2.5 1.4 4.8a58.7 58.7 0 0 1-2.3-6 52.1 52.1 0 0 1-1.8-6.3l-1-6.4q-.3-3.2-.3-6.5a60.4 60.4 0 0 1 17.8-43 59.4 59.4 0 0 1 19.7-13.2 60.2 60.2 0 0 1 23.3-4.7 59.5 59.5 0 0 1 18.7 3 61.5 61.5 0 0 1 16.8 8.4 60.4 60.4 0 0 1 13.4 13.3 62.1 62.1 0 0 1 8.8 16.7 60.7 60.7 0 0 0-9.4-14.6 62 62 0 0 0-13.1-11.4 61.5 61.5 0 0 0-32.9-9.7 60.2 60.2 0 0 0-23.3 4.7A59.5 59.5 0 0 0 60.5 104a60.2 60.2 0 0 0-4.7 23.3q0 2.5.2 4.9Z","opacity",".2"],["fill","#fff","fill-rule","evenodd","d","M184.9 139.2a17.3 17.3 0 0 1 1.2 6.7 18.5 18.5 0 0 1-1.3 6.6 16.7 16.7 0 0 1-3.9 5.6 16.1 16.1 0 0 1-5.6 3.7l-9.4 3.8a15.8 15.8 0 0 0-3 1.5 20.6 20.6 0 0 0-2.6 2.2 13.4 13.4 0 0 0-2.2 2.6 16.6 16.6 0 0 0-1.7 3l-3.9 9.2a18 18 0 0 1-3.8 5.6 16.5 16.5 0 0 1-5.7 3.7 16.9 16.9 0 0 1-6.6 1.3 19.1 19.1 0 0 1-6.7-1.4l-9.2-4a27 27 0 0 0-3.3-1 26.3 26.3 0 0 0-3.3-.4 18.4 18.4 0 0 0-3.4.3 27 27 0 0 0-3.3 1l-9.3 3.8a19.3 19.3 0 0 1-6.7 1.2 16.6 16.6 0 0 1-6.6-1.4A18 18 0 0 1 79 189a16.5 16.5 0 0 1-3.7-5.7l-3.8-9.3a15.8 15.8 0 0 0-1.5-3 17.6 17.6 0 0 0-2.2-2.7 20.6 20.6 0 0 0-2.6-2.2 21.4 21.4 0 0 0-3-1.6l-9.2-3.9a16.7 16.7 0 0 1-5.6-3.9 16.1 16.1 0 0 1-3.7-5.6 17 17 0 0 1-1.3-6.7 19 19 0 0 1 1.4-6.6l4-9.3a22.5 22.5 0 0 0 1-3.2 14.8 14.8 0 0 0 .4-3.4 19.5 19.5 0 0 0-.3-3.4 14.8 14.8 0 0 0-1-3.2l-3.7-9.4a16.9 16.9 0 0 1-1.3-6.6 17.1 17.1 0 0 1 1.4-6.7 18.7 18.7 0 0 1 3.8-5.5 16.5 16.5 0 0 1 5.7-3.7l9.3-3.8a13 13 0 0 0 3-1.6 14 14 0 0 0 2.7-2.1 20.6 20.6 0 0 0 2.2-2.6 21.4 21.4 0 0 0 1.6-3l3.9-9.3a16.3 16.3 0 0 1 3.9-5.5 16.1 16.1 0 0 1 5.6-3.7 17 17 0 0 1 6.7-1.3 16.6 16.6 0 0 1 6.6 1.4l9.3 3.9a16.5 16.5 0 0 0 3.2 1.1 19.4 19.4 0 0 0 6.8 0 16.1 16.1 0 0 0 3.2-.9l9.4-3.8a16.8 16.8 0 0 1 6.6-1.2 17.1 17.1 0 0 1 6.7 1.4 14 14 0 0 1 5.5 3.8 16.1 16.1 0 0 1 3.7 5.6l3.8 9.4a13 13 0 0 0 1.6 3 15.6 15.6 0 0 0 2.1 2.6 13.4 13.4 0 0 0 2.6 2.2 16.6 16.6 0 0 0 3 1.7l9.3 3.9a16.4 16.4 0 0 1 5.5 3.8 19.6 19.6 0 0 1 3.8 5.7 18.8 18.8 0 0 1 1.2 6.6 17.1 17.1 0 0 1-1.4 6.7l-3.9 9.2a19.2 19.2 0 0 0-1.1 3.3 17.9 17.9 0 0 0-.3 3.3 19.2 19.2 0 0 0 1.2 6.7Zm-46.8 40.2a61.5 61.5 0 1 0-23.5 4.7 61.4 61.4 0 0 0 23.5-4.7Z"],["fill","none","d","M42.4 50.5h144.2v144.2H42.4Z"]],template:function(i,o){i&1&&(Sn(),s(0,"svg",0)(1,"defs")(2,"linearGradient",1),d(3,"stop",2)(4,"stop",3),a(),s(5,"linearGradient",4),d(6,"stop",5)(7,"stop",6),a(),s(8,"linearGradient",7),d(9,"stop",5)(10,"stop",8),a(),s(11,"filter",9),d(12,"feOffset",10)(13,"feGaussianBlur",11)(14,"feFlood",12)(15,"feComposite",13),a(),s(16,"pattern",14),d(17,"image",15),a()(),s(18,"g",16),d(19,"path",17)(20,"ellipse",18)(21,"path",19)(22,"path",20)(23,"path",21)(24,"path",22)(25,"path",23)(26,"path",24)(27,"path",25)(28,"path",26)(29,"path",27),s(30,"g",28),d(31,"path",29),a(),d(32,"circle",30)(33,"circle",31)(34,"path",32)(35,"path",33)(36,"path",34)(37,"path",35)(38,"path",36)(39,"path",37)(40,"circle",38)(41,"path",39)(42,"path",40)(43,"path",41),a()()),i&2&&(c(17),bt("href",o.url))},encapsulation:2,changeDetection:0})}}return e})();u();var Xd=(()=>{class e{constructor(){this._url=""}get url(){return this._url}set url(t){this._url=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-session-silver-medal-svg"]],inputs:{url:"url"},standalone:!1,decls:31,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 150 160"],["id","silver-medal-1","x1",".8","x2",".3","y1",".9","y2",".1","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#b3d1e4"],["offset","1","stop-color","#5f9bc1"],["id","silver-medal-2","x1",".5","x2",".5","y1","1","y2","0","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#fff"],["offset","1","stop-color","#b3d1e4"],["id","silver-medal-3","x1",".5","x2",".5","y1","0","y2","1.1","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#e5eff6"],["id","silver-medal-4","width","170.1","height","179.7","x","-9.5","y","-4.3","filterUnits","userSpaceOnUse"],["dy","5"],["result","b","stdDeviation","7.5"],["flood-color","#22233a","flood-opacity",".1"],["in2","b","operator","in"],["id","silver-medal-5","preserveAspectRatio","xMidYMid slice","width","100%","height","100%","viewBox","0 0 200 200"],["width","200","height","200"],["fill","rgba(255,255,255,0)","d","M0 0h150v160H0z"],["filter","url(#silver-medal-4)"],["fill","#fff","d","m102 147.7-22.2-5.3a12.9 12.9 0 0 0-2.1-.4l-2.2-.1-2.2.1a12.9 12.9 0 0 0-2.1.4L49 147.7a4 4 0 0 1-2 .1 4.5 4.5 0 0 1-2.9-2.5 3.7 3.7 0 0 1-.3-1.9l1-13.2a62.5 62.5 0 1 1 61.4 0l1 13.2a3.6 3.6 0 0 1-.2 1.7 3.9 3.9 0 0 1-.9 1.4 3.4 3.4 0 0 1-1.4 1 3.8 3.8 0 0 1-1.7.4.3.3 0 0 1-.2-.1h-.5a.4.4 0 0 1-.3-.1Z"],["cx","60.3","cy","59.9","fill","url(#silver-medal-1)","rx","60.3","ry","59.9","transform","translate(15.2 15.2)"],["cx","54","cy","53.6","fill","url(#silver-medal-2)","rx","54","ry","53.6","transform","translate(21.3 21.9)"],["fill","url(#silver-medal-3)","fill-rule","evenodd","d","M99.4 17.8a60.4 60.4 0 0 1 20.3 13.6 62.9 62.9 0 0 1 13.6 68.2 63.5 63.5 0 0 1-13.6 20.3 62.3 62.3 0 0 1-68.1 13.5 61.7 61.7 0 0 1-20.3-13.5 62.9 62.9 0 0 1-13.6-68.2 63.5 63.5 0 0 1 13.6-20.3 60.4 60.4 0 0 1 20.3-13.6 61.9 61.9 0 0 1 47.8 0Zm-2.3 109.9a56.5 56.5 0 0 0 0-104.2 56.4 56.4 0 0 0-43.2 0 56.5 56.5 0 0 0 0 104.2 56.4 56.4 0 0 0 43.2 0Z"],["fill","#00b3fd","d","m102 147.7-22.2-5.3a12.9 12.9 0 0 0-2.1-.4l-2.2-.1-2.2.1a12.9 12.9 0 0 0-2.1.4L49 147.7a4 4 0 0 1-2 .1 4.5 4.5 0 0 1-2.9-2.5 3.7 3.7 0 0 1-.3-1.9l4.2-53h55l4.2 53a3.7 3.7 0 0 1-.3 1.9 4.5 4.5 0 0 1-2.9 2.5 4 4 0 0 1-2-.1Z"],["fill","#fff","d","M65 143.6V90.1h21v53.5l-6.3-1.5a10.6 10.6 0 0 0-2.1-.4l-2.1-.1-2.1.1a10.6 10.6 0 0 0-2.1.4Z","opacity",".5"],["fill","#8d98c6","d","m104.7 113.7-.2.2a.3.3 0 0 1-.1.2.4.4 0 0 0-.1.3l-2.4 5a16.3 16.3 0 0 1-2.3 3.2 13.8 13.8 0 0 1-3.1 2.5 14.2 14.2 0 0 1-3.6 1.5 15.3 15.3 0 0 1-3.9.5 9.9 9.9 0 0 1-1.4-.1l-1.4-.2a10.5 10.5 0 0 1-1.4-.3l-1.3-.4-5.7-2.2-.7-.2-.7-.2a2.2 2.2 0 0 0-.7-.1h-1.4a2.2 2.2 0 0 0-.7.1 3 3 0 0 0-.7.1l-.6.2-5.8 2.1-1.2.4a11.9 11.9 0 0 1-1.3.3l-1.4.2h-1.3a13.6 13.6 0 0 1-4-.4 17.4 17.4 0 0 1-3.6-1.6 14.5 14.5 0 0 1-3.1-2.5 14 14 0 0 1-2.3-3.3l-2.2-5 1.4-16.5h55.9l1.4 15.9a.8.8 0 0 1-.1.3Z","opacity",".2"],["cx","41.7","cy","41.7","r","41.7","fill","url(#silver-medal-5)","transform","translate(34.1 34.2)"],["fill","#8d98c6","d","M36.6 82.2a26.3 26.3 0 0 0 .4 3.3l.7 3.2.9 3.1a39.9 39.9 0 0 1-1.6-3.9 32.5 32.5 0 0 1-1.1-4.2 30.7 30.7 0 0 1-.7-4.2q-.2-2.1-.2-4.3a40.6 40.6 0 0 1 3-15.4 42.4 42.4 0 0 1 8.7-13A40.8 40.8 0 0 1 75.2 35a39 39 0 0 1 12.2 2 36.8 36.8 0 0 1 11.2 5.6 38.2 38.2 0 0 1 8.8 8.7 38.7 38.7 0 0 1 5.8 11 40.5 40.5 0 0 0-6.2-9.6 38.3 38.3 0 0 0-8.6-7.5A39.3 39.3 0 0 0 88 40.4a40.9 40.9 0 0 0-26.7 1.4 42.8 42.8 0 0 0-13.1 8.7 41 41 0 0 0-8.7 13.1 40.6 40.6 0 0 0-3 15.4l.1 3.2Z","opacity",".2"],["fill","#fff","fill-rule","evenodd","d","M121.7 86.9a12.6 12.6 0 0 1 .8 4.3 10.8 10.8 0 0 1-.9 4.4 12 12 0 0 1-2.5 3.7 12 12 0 0 1-3.8 2.5l-6.1 2.4a14.2 14.2 0 0 0-2 1.1 9.3 9.3 0 0 0-1.8 1.4 11.2 11.2 0 0 0-1.4 1.7 7.3 7.3 0 0 0-1.1 2l-2.6 6.1a13.4 13.4 0 0 1-2.5 3.7 11.7 11.7 0 0 1-3.8 2.4 9.6 9.6 0 0 1-4.4.8 10.4 10.4 0 0 1-4.3-.9l-6.2-2.6a19.4 19.4 0 0 0-2.1-.7 12.3 12.3 0 0 0-2.2-.2 12.8 12.8 0 0 0-2.3.2 10.9 10.9 0 0 0-2.1.6l-6.2 2.5a9.6 9.6 0 0 1-4.4.8 10.4 10.4 0 0 1-4.3-.9 10.5 10.5 0 0 1-3.7-2.5 11.5 11.5 0 0 1-2.5-3.7l-2.5-6.2a9.3 9.3 0 0 0-1-2 11.2 11.2 0 0 0-1.4-1.7 8.9 8.9 0 0 0-1.7-1.5l-2-1.1-6.1-2.6a11.5 11.5 0 0 1-3.7-2.5 9.8 9.8 0 0 1-2.4-3.7 11.2 11.2 0 0 1-.9-4.4 13.3 13.3 0 0 1 .9-4.4l2.7-6.1a13.5 13.5 0 0 0 .6-2.2 8.3 8.3 0 0 0 .3-2.2 12.3 12.3 0 0 0-.2-2.2 9.4 9.4 0 0 0-.7-2.2l-2.4-6.1a11.2 11.2 0 0 1-.9-4.4 13.4 13.4 0 0 1 1-4.4 10.1 10.1 0 0 1 2.5-3.7 10.3 10.3 0 0 1 3.7-2.4l6.2-2.5a10 10 0 0 0 2-1.1A11.2 11.2 0 0 0 45 45a18.2 18.2 0 0 0 1.5-1.7 9.3 9.3 0 0 0 1-2l2.6-6.1a11.7 11.7 0 0 1 6.3-6.1 11.8 11.8 0 0 1 8.8.1l6.1 2.6a19.4 19.4 0 0 0 2.1.7 12.8 12.8 0 0 0 2.3.2 12.3 12.3 0 0 0 2.2-.2 10.9 10.9 0 0 0 2.1-.6l6.2-2.5a11.8 11.8 0 0 1 8.8.1 11.5 11.5 0 0 1 3.7 2.5 12.4 12.4 0 0 1 2.4 3.7l2.5 6.2a9.8 9.8 0 0 0 4.2 5.2 17.7 17.7 0 0 0 1.9 1.1l6.1 2.6a10.5 10.5 0 0 1 3.7 2.5A11.5 11.5 0 0 1 122 5
97a13.2 13.2 0 0 1 .8 4.4 11.2 11.2 0 0 1-.9 4.4l-2.6 6.1a9.4 9.4 0 0 0-.7 2.2 12.3 12.3 0 0 0-.2 2.2 6.2 6.2 0 0 0 .2 2.2 13.5 13.5 0 0 0 .6 2.2Zm-30.9 26.5a40.2 40.2 0 0 0 13.2-8.8 39.7 39.7 0 0 0 8.8-13.2 41.2 41.2 0 0 0 3.1-15.5 40.6 40.6 0 1 0-40.7 40.6 39.5 39.5 0 0 0 15.6-3.1Z"]],template:function(i,o){i&1&&(Sn(),s(0,"svg",0)(1,"defs")(2,"linearGradient",1),d(3,"stop",2)(4,"stop",3),a(),s(5,"linearGradient",4),d(6,"stop",5)(7,"stop",6),a(),s(8,"linearGradient",7),d(9,"stop",8)(10,"stop",6),a(),s(11,"filter",9),d(12,"feOffset",10)(13,"feGaussianBlur",11)(14,"feFlood",12)(15,"feComposite",13),a(),s(16,"pattern",14),d(17,"image",15),a()(),s(18,"g"),d(19,"path",16),s(20,"g",17),d(21,"path",18),a(),d(22,"ellipse",19)(23,"ellipse",20)(24,"path",21)(25,"path",22)(26,"path",23)(27,"path",24)(28,"circle",25)(29,"path",26)(30,"path",27),a()()),i&2&&(c(17),bt("href",o.url))},encapsulation:2,changeDetection:0})}}return e})();u();var e0=(()=>{class e{constructor(){this._url=""}get url(){return this._url}set url(t){this._url=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-session-bronze-medal-svg"]],inputs:{url:"url"},standalone:!1,decls:26,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 150 150"],["id","bronze-medal-1","x2","1","y1",".5","y2",".5","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#461e18"],["offset","1","stop-color","#a1815c"],["id","bronze-medal-2","x1",".5","x2",".5","y1","1","y2","0","gradientUnits","objectBoundingBox"],["offset","0","stop-color","#baa07d"],[0,"xlink","href","#bronze-medal-2","id","bronze-medal-3","y1","0","y2","1.1"],["id","bronze-medal-4","width","167.6","height","167.6","x","-8.5","y","-3.5","filterUnits","userSpaceOnUse"],["dy","5"],["result","c","stdDeviation","7.5"],["flood-color","#22233a","flood-opacity",".1"],["in2","c","operator","in"],["in","SourceGraphic"],["id","bronze-medal-5","preserveAspectRatio","xMidYMid slice","width","100%","height","100%","viewBox","0 0 200 200"],["width","200","height","200"],["fill","rgba(255,255,255,0)","d","M0 0h150v150H0z"],["filter","url(#bronze-medal-4)"],["cx","61.3","cy","61.3","r","61.3","fill","url(#bronze-medal-1)","transform","translate(14 14)"],["cx","52.5","cy","52.5","r","52.5","fill","url(#bronze-medal-2)","transform","translate(22.8 22.8)"],["fill","url(#bronze-medal-3)","fill-rule","evenodd","d","M98.8 18.7a61 61 0 0 1 37.8 56.6 61.1 61.1 0 0 1-4.6 23.5A61.4 61.4 0 0 1 98.8 132 61.3 61.3 0 0 1 32 118.7a60.5 60.5 0 0 1-13.3-19.9 60.9 60.9 0 0 1 0-46.9 61.4 61.4 0 0 1 33.2-33.2 60.9 60.9 0 0 1 46.9 0Zm-2.3 10
97.7a55.7 55.7 0 0 0 29.9-29.9 55.4 55.4 0 0 0 0-42.3 55.8 55.8 0 0 0-12-17.9 54.2 54.2 0 0 0-17.9-12 55.4 55.4 0 0 0-42.3 0 55.7 55.7 0 0 0-29.9 29.9 55.4 55.4 0 0 0 0 42.3 54.2 54.2 0 0 0 12 17.9 55.8 55.8 0 0 0 17.9 12 55.4 55.4 0 0 0 42.3 0Z"],["cx","40.8","cy","40.8","r","40.8","fill","url(#bronze-medal-5)","transform","translate(36.6 34.8)"],["fill","#8d98c6","d","m38.9 81.8.4 3.2.7 3.1.9 3.1a27.7 27.7 0 0 1-1.5-3.9l-1.2-4-.6-4.2a22.2 22.2 0 0 1-.2-4.2 40.4 40.4 0 0 1 2.9-15 39.5 39.5 0 0 1 8.6-12.8 37.3 37.3 0 0 1 12.7-8.5 39.1 39.1 0 0 1 15.1-3 37.7 37.7 0 0 1 12 1.9A39.5 39.5 0 0 1 114 62.3a38.9 38.9 0 0 0-6.1-9.4 35.4 35.4 0 0 0-8.5-7.4 40.5 40.5 0 0 0-10.1-4.7 42.5 42.5 0 0 0-11.1-1.6 41 41 0 0 0-15.1 3 39.5 39.5 0 0 0-12.8 8.6 40.5 40.5 0 0 0-8.5 12.7 39.1 39.1 0 0 0-3 15.1l.1 3.2Z","opacity",".2"],["fill","#fff","fill-rule","evenodd","d","M122.3 86.3a13 13 0 0 1 .8 4.3 12.2 12.2 0 0 1-.9 4.3 10.1 10.1 0 0 1-2.5 3.6 9.8 9.8 0 0 1-3.7 2.4l-6 2.4-2 1.1a16.4 16.4 0 0 0-1.7 1.3 11.2 11.2 0 0 0-1.4 1.7 10.3 10.3 0 0 0-1 1.9l-2.6 6a11.5 11.5 0 0 1-2.5 3.7 10.5 10.5 0 0 1-3.6 2.3 10.7 10.7 0 0 1-4.3.9 15.7 15.7 0 0 1-4.3-.9l-6-2.6a19.4 19.4 0 0 0-2.1-.7 12.2 12.2 0 0 0-4.4 0 14.5 14.5 0 0 0-2.1.6l-6 2.4a10.7 10.7 0 0 1-4.3.9 15.7 15.7 0 0 1-4.3-.9 11.6 11.6 0 0 1-3.6-2.5 11.2 11.2 0 0 1-2.4-3.7l-2.4-6a14 14 0 0 0-1-2l-1.4-1.7a11.2 11.2 0 0 0-1.7-1.4 10.3 10.3 0 0 0-1.9-1l-6-2.6a10.1 10.1 0 0 1-3.6-2.5A9.5 9.5 0 0 1 31 94a9.4 9.4 0 0 1-.8-4.3 10.4 10.4 0 0 1 .9-4.3l2.5-6a19.4 19.4 0 0 0 .7-2.1 12.2 12.2 0 0 0 0-4.4 10.9 10.9 0 0 0-.6-2.1l-2.4-6a9.2 9.2 0 0 1-.8-4.3 10.7 10.7 0 0 1 .9-4.3 9.9 9.9 0 0 1 2.4-3.6 11.2 11.2 0 0 1 3.7-2.4l6-2.4a14.2 14.2 0 0 0 2-1.1 16.4 16.4 0 0 0 1.7-1.3 11.2 11.2 0 0 0 1.4-1.7 17.7 17.7 0 0 0 1.1-1.9l2.5-6a10.1 10.1 0 0 1 2.5-3.6 9.5 9.5 0 0 1 3.6-2.4 9.4 9.4 0 0 1 4.3-.8 12.2 12.2 0 0 1 4.3.8l6 2.6a19.4 19.4 0 0 0 2.1.7 12.2 12.2 0 0 0 4.4 0 10.9 10.9 0 0 0 2.1-.6l6-2.4a9.4 9.4 0 0 1 4.3-.8 12.2 12.2 0 0 1 4.3.8 11.6 11.6 0 0 1 3.6 2.5 9.8 9.8 0 0 1 2.4 3.7l2.5 6a14 14 0 0 0 1 2 16.4 16.4 0 0 0 1.3 1.7 11.2 11.2 0 0 0 1.7 1.4 9.3 9.3 0 0 0 2 1l5.9 2.6a11.5 11.5 0 0 1 3.7 2.5 12.6 12.6 0 0 1 2.4 3.6 13 13 0 0 1 .8 4.3 15 15 0 0 1-.9 4.3l-2.6 6a19.4 19.4 0 0 0-.7 2.1 12.2 12.2 0 0 0 0 4.4 10.9 10.9 0 0 0 .6 2.1Zm-30.2 26a40 40 0 0 0 12.9-8.6 40.1 40.1 0 0 0 11.6-28.2 39.8 39.8 0 1 0-39.8 39.8 40.5 40.5 0 0 0 15.3-3Z"]],template:function(i,o){i&1&&(Sn(),s(0,"svg",0)(1,"defs")(2,"linearGradient",1),d(3,"stop",2)(4,"stop",3),a(),s(5,"linearGradient",4),d(6,"stop",5)(7,"stop",3),a(),d(8,"linearGradient",6),s(9,"filter",7),d(10,"feOffset",8)(11,"feGaussianBlur",9)(12,"feFlood",10)(13,"feComposite",11)(14,"feComposite",12),a(),s(15,"pattern",13),d(16,"image",14),a()(),s(17,"g"),d(18,"path",15),s(19,"g",16),d(20,"circle",17),a(),d(21,"circle",18)(22,"path",19)(23,"circle",20)(24,"path",21)(25,"path",22),a()()),i&2&&(c(16),bt("href",o.url))},encapsulation:2,changeDetection:0})}}return e})();function hh(e,n){if(e&1&&(s(0,"div",27)(1,"div",28),d(2,"td-session-silver-medal-svg",12),a()(),s(3,"div",29)(4,"p",14),m(5),a()(),s(6,"div",15)(7,"span",16),d(8,"em",17),s(9,"span"),m(10),a()(),s(11,"span",16),d(12,"em",18),s(13,"span"),m(14),a()(),s(15,"span",19),d(16,"em",20),s(17,"span"),m(18),s(19,"span",21),m(20,"pts"),a()()()()),e&2){let t=p();c(2),h("url",t.avatars[t.report.leaderboard[1].avatar_id-1].url),c(3),M(t.report.leaderboard[1].nickname),c(5),U("",t.report.leaderboard[1].success_percentage,"%"),c(4),Ge("",t.report.leaderboard[1].correct_answers,"/",t.report.statistics.length),c(4),M(t.report.leaderboard[1].total_points)}}function _h(e,n){if(e&1&&(s(0,"div",30)(1,"div",28),d(2,"td-session-bronze-medal-svg",12),a()(),s(3,"div",31)(4,"p",14),m(5),a()(),s(6,"div",15)(7,"span",16),d(8,"em",17),s(9,"span"),m(10),a()(),s(11,"span",16),d(12,"em",18),s(13,"span"),m(14),a()(),s(15,"span",19),d(16,"em",20),s(17,"span"),m(18),s(19,"span",21),m(20,"pts"),a()()()()),e&2){let t=p();c(2),h("url",t.avatars[t.report.leaderboard[2].avatar_id-1].url),c(3),M(t.report.leaderboard[2].nickname),c(5),U("",t.report.leaderboard[2].success_percentage,"%"),c(4),Ge("",t.report.leaderboard[2].correct_answers,"/",t.report.statistics.length),c(4),M(t.report.leaderboard[2].total_points)}}function gh(e,n){e&1&&(s(0,"div",25)(1,"h5",32),m(2,"m-play.7"),a(),s(3,"h5",33),m(4,"m-play.8"),a(),s(5,"h5",34)(6,"span",35),m(7,"%"),a(),s(8,"span",36),m(9,"m-play.report.00"),a()(),s(10,"h5",37),m(11,"Pts"),a()())}function yh(e,n){if(e&1&&(s(0,"div",26)(1,"div",38)(2,"span",39),m(3),a(),s(4,"div",40),d(5,"img",41),a(),s(6,"span",42),m(7),a()(),s(8,"span",43),m(9),a(),s(10,"span",44),m(11),a(),s(12,"span",44),m(13),a()()),e&2){let t=n.$implicit,i=n.$index,o=p();c(3),M(i+4),c(2),h("src",o.avatars[t.avatar_id-1].url,Fe)("alt",t.nickname),c(2),M(t.nickname),c(2),Ge(" ",t.correct_answers,"/",o.report.statistics.length," "),c(2),U(" ",t.success_percentage,"% "),c(2),U(" ",t.total_points," ")}}var t0=(()=>{class e{get report(){return this._report}set report(t){this._report=t}constructor(t,i,o){this._activatedRoute=t,this._router=i,this._avatars=o,this._report=null,this.avatars=this._avatars.data}ngOnInit(){this._router.navigate([],{queryParams:{end_lesson:"true"},queryParamsHandling:"merge",relativeTo:this._activatedRoute})}static{this.\u0275fac=function(i){return new(i||e)(D(ia),D(At),D(Yt))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-class-finished-ranking"]],inputs:{report:"report"},standalone:!1,decls:50,vars:12,consts:[[1,"px-1","md:px-4"],["l10nTranslate","",1,"text-white"],[1,"max-w-2xl","mx-auto","w-full","md:pt-8"],[1,"flex","text-white"],[1,"w-4/12","pr-2"],[1,"pt-20","md:pt-40","h-full","flex","flex-col","justify-end"],[1,"flex","justify-center","items-center","flex-col","px-2","pt-12","pb-8","bg-white","bg-opacity-25","rounded-lg","relative","md:px-4"],[1,"flex","items-center","justify-center","h-5","w-full","rounded","md:rounded-lg","bg-cyan","mt-2","md:h-12"],[1,"font-black","md:text-2xl"],[1,"w-4/12","px-1"],[1,"top-[-55px]","md:top-[-120px]","absolute","
9inset-x-0","flex","justify-center"],[1,"w-[120px]","md:w-[250px]"],[3,"url"],[1,"h-16","w-full","mb-4","mt-12","break-words","overflow-hidden"],[1,"font-black","md:text-2xl","text-center"],[1,"flex","flex-col","font-bold","md:text-xl"],[1,"flex","items-center","mb-4","leading-4"],[1,"ai","ai-objective","mr-1"],[1,"ai","ai-circle-check","mr-1"],[1,"flex","items-center","leading-4"],[1,"ai","ai-coin","mr-1"],[1,"text-xs"],[1,"flex","items-center","justify-center","h-5","w-full","rounded","md:rounded-lg","bg-amber","mt-2","md:h-12"],[1,"w-4/12","pl-2"],[1,"flex","items-center","justify-center","h-5","w-full","rounded","md:rounded-lg","bg-orange","mt-2","md:h-12"],[1,"flex","w-full","px-4","mt-4","mb-2"],[1,"flex","bg-white","rounded-lg","justify-between","items-center","mb-4","px-2","py-3","md:px-4","md:py-4"],[1,"top-[-50px]","md:top-[-85px]","absolute","inset-x-0","flex","justify-center"],[1,"w-[120px]","md:w-[150px]"],[1,"h-16","w-full","mb-4","mt-8","break-words","overflow-hidden"],[1,"top-[-55px]","md:top-[-90px]","absolute","inset-x-0","flex","justify-center"],[1,"h-16","w-full","mb-4","mt-4","break-words","overflow-hidden"],["l10nTranslate","",1,"w-6/12","text-xs","text-white","opacity-75"],["l10nTranslate","",1,"w-2/12","text-xs","text-white","opacity-75","text-center"],[1,"w-2/12","text-xs","text-white","opacity-75","text-right"],[1,"md:hidden"],["l10nTranslate","",1,"hidden","md:block"],["l10nTranslate","",1,"w-2/12","text-xs","text-white","opacity-75","text-right"],[1,"w-6/12","flex","items-center","pl-px","md:pl-2","md:pr-2"],[1,"font-black","md:text-xl","text-cyan","mr-4"],[1,"h-6","w-6","md:h-12","md:w-12","shrink-0","border-2","border-blue-black-light-2","rounded-full","mr-2","overflow-hidden","inline-block"],[1,"w-full","h-full",3,"src","alt"],[1,"font-bold","md:text-xl","text-blue-black","truncate"],[1,"w-2/12","font-bold","text-center","md:text-xl","text-blue-black"],[1,"w-2/12","font-bold","text-right","md:text-xl","text-blue-black"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"span",1),m(2,"m-play.6"),a(),s(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),y(8,hh,21,6),a(),s(9,"div",7)(10,"span",8),m(11,"2"),a()()()(),s(12,"div",9)(13,"div",5)(14,"div",6)(15,"div",10)(16,"div",11),d(17,"td-session-gold-medal-svg",12),a()(),s(18,"div",13)(19,"p",14),m(20),a()(),s(21,"div",15)(22,"span",16),d(23,"em",17),s(24,"span"),m(25),a()(),s(26,"span",16),d(27,"em",18),s(28,"span"),m(29),a()(),s(30,"span",19),d(31,"em",20),s(32,"span"),m(33),s(34,"span",21),m(35,"pts"),a()()()()(),s(36,"div",22)(37,"span",8),m(38,"1"),a()()()(),s(39,"div",23)(40,"div",5)(41,"div",6),y(42,_h,21,6),a(),s(43,"div",24)(44,"span",8),m(45,"3"),a()()()()(),y(46,gh,12,0,"div",25),le(47,yh,14,8,"div",26,he),E(49,"slice"),a()()),i&2&&(c(8),v(o.report.leaderboard.length>1?8:-1),c(9),h("url",o.avatars[o.report.leaderboard[0].avatar_id-1].url),c(3),M(o.report.leaderboard[0].nickname),c(5),U("",o.report.leaderboard[0].success_percentage,"%"),c(4),Ge("",o.report.leaderboard[0].correct_answers,"/",o.report.statistics.length),c(4),M(o.report.leaderboard[0].total_points),c(9),v(o.report.leaderboard.length>2?42:-1),c(4),v(o.report.leaderboard.length>3?46:-1),c(),ce(Te(49,9,o.report.leaderboard,3)))},dependencies:[O,Kd,Xd,e0,ea],encapsulation:2,changeDetection:0})}}return e})();u();function xh(e,n){if(e&1&&(s(0,"div",7)(1,"div",8)(2,"div",9),d(3,"img",10),a(),s(4,"span",11),m(5),a()(),s(6,"span",12),m(7),a(),s(8,"span",13),m(9),a()()),e&2){let t=n.$implicit,i=p();c(3),h("src",i.avatars[t.avatar_id-1].url,Fe)("alt",t.nickname),c(2),M(t.nickname),c(2),Ge(" ",t.correct_answers,"/",i.report.statistics.length," "),c(2),U(" ",t.success_percentage,"% ")}}var n0=(()=>{class e{constructor(){this._avatars=I(Yt),this._report=null,this.avatars=this._avatars.data}get report(){return this._report}set report(t){this._report=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-class-finished-students"]],inputs:{report:"report"},standalone:!1,decls:13,vars:0,consts:[[1,"px-4"],["l10nTranslate","",1,"text-white"],[1,"max-w-2xl","mx-auto","w-full","md:pt-8"],[1,"flex","w-full","px-4","mb-2"],["l10nTranslate","",1,"w-6/12","text-xs","text-white","opacity-75"],["l10nTranslate","",1,"w-4/12","text-xs","text-white","opacity-75","text-center"],["l10nTranslate","",1,"w-2/12","text-xs","text-white","opacity-75","text-right"],[1,"flex","bg-white","rounded-lg","justify-between","items-center","mb-4","px-4","py-4"],[1,"w-6/12","flex","items-center","md:pr-2"],[1,"h-12","w-12","shrink-0","border-2","border-blue-black-light-2","rounded-full","mr-8","overflow-hidden","inline-block"],[1,"w-full","h-full",3,"src","alt"],[1,"font-bold","text-xl","text-blue-black","truncate"],[1,"w-4/12","font-bold","text-center","text-xl","text-blue-black"],[1,"w-2/12","font-bold","text-right","text-xl","text-blue-black"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"span",1),m(2,"m-play.9"),a(),s(3,"div",2)(4,"div",3)(5,"h5",4),m(6,"m-play.7"),a(),s(7,"h5",5),m(8,"m-play.8"),a(),s(9,"h5",6),m(10,"m-play.report.00"),a()(),le(11,xh,10,6,"div",7,he),a()()),i&2&&(c(11),ce(o.report.leaderboard))},dependencies:[O],encapsulation:2,changeDetection:0})}}return e})();u();var bh=(e,n)=>({v1:e,v2:n}),wh=e=>({type:"success",quantity:e}),Sh=e=>({type:"fail",quantity:e}),Th=e=>({type:"none",quantity:e}),Eh=(e,n,t)=>[e,n,t],kh=e=>({v1:e});function Ph(e,n){if(e&1&&d(0,"td-resource-header-unique",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Rh(e,n){if(e&1&&d(0,"td-resource-header-multiple",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Dh(e,n){if(e&1&&d(0,"td-resource-header-true-or-false",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Bh(e,n){if(e&1&&d(0,"td-resource-header-order",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Ah(e,n){if(e&1&&d(0,"td-resource-header-matching-text",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Ih(e,n){if(e&1&&d(0,"td-resource-header-complete-sentence",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Vh(e,n){if(e&1&&d(0,"td-resource-header-wordsearch",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Fh(e,n){if(e&1&&d(0,"td-resource-header-open-ended",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Mh(e,n){if(e&1&&d(0,"td-resource-header-matching-image",7),e&2){let t=p();h("resource",t.statistics.resource)}}function qh(e,n){if(e&1&&d(0,"td-resource-header-alternative",7),e&2){let t=p();h("resource",t.statistics.resource)}}var r0=(()=>{class e{constructor(){this._statistics=null,this._students=null,this.resourceTypes=fe}get statistics(){return this._statistics}set statistics(t){this._statistics=t}get students(){return this._students}set students(t){this._students=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-class-finished-successes"]],inputs:{statistics:"statistics",students:"students"},standalone:!1,decls:58,vars:24,consts:[[1,"px-4"],[1,"mb-4"],["l10nTranslate","",1,"text-white"],[1,"bg-white","rounded-lg","pt-8","pb-4","px-4","mb-4"],[1,"text-xs","flex","items-center","mb-4"],[1,"h-6","w-6","mr-2",3,"resourceTypeId"],[1,"text-blue-black-light-8",3,"resourceTypeId"],[3,"resource"],["l10nTranslate","",1,"text-xl","font-black"],[1,"flex","flex-col","md:flex-row","md:px-8"],[1,"flex-1","pb-4"],[1,"pt-8","md:pr-8"],[1,"flex","items-center","mb-4"],[1,"ai","ai-circle-check-form-gray","text-lg","text-green-light-8","mr-2"],["l10nTranslate","",1,"text-blue-black-light-8","font-bold"],["l10nTranslate","",1,"block","mb-4",3,"params"],[1,"py-8"],[1,"block","w-full","mt-auto",3,"chartData"],[1,"flex","flex-row"],[1,"flex","flex-row","items-center","mr-4"],[1,"shrink-0","h-5","w-5","bg-green-light-8","rounded-full","mr-1"],["l10nTranslate","",1,"text-xs"],[1,"shrink-0","h-5","w-5","bg-red-light-8","rounded-full","mr-1"],[1,"flex","flex-row","items-center"],[1,"shrink-0","h-5","w-5","bg-blue-black-light-2","rounded-full","mr-1"],[1,"rounded-lg","bg-background-banner","h-full","pt-8","pb-4","px-4"],[1,"ai","ai-rocket","text-lg","text-cyan-light-6","mr-2"],["l10nTranslate","",1,"max-w-sm","block","mb-8",3,"params"],[1,"flex","justify-center"],[3,"value","size"],[1,"flex","flex-col","items-center","text-white"],[1,"font-black",2,"font-size","28px"]],template:function(i,o){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"span",2),m(3,"m-play.10"),a()(),s(4,"div",3)(5,"div",4),d(6,"td-resource-type-icon",5)(7,"td-resource-type-title",6),a(),y(8,Ph,1,1,"td-resource-header-unique",7)(9,Rh,1,1,"td-resource-header-multiple",7)(10,Dh,1,1,"td-resource-header-true-or-false",7)(11,Bh,1,1,"td-resource-header-order",7)(12,Ah,1,1,"td-resource-header-matching-text",7)(13,Ih,1,1,"td-resource-header-complete-sentence",7)(14,Vh,1,1,"td-resource-header-wordsearch",7)(15,Fh,1,1,"td-resource-header-open-ended",7)(16,Mh,1,1,"td-resource-header-matching-image",7)(17,qh,1,1,"td-resource-header-alternative",7),a(),s(18,"div",3)(19,"div",1)(20,"span",8),m(21,"m-play.11"),a()(),s(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12),d(26,"em",13),s(27,"span",14),m(28,"m-play.7"),a()(),s(29,"span",15),m(30,"m-play.12"),a(),s(31,"div",16),d(32,"td-sidebar-chart",17),a(),s(33,"div",18)(34,"div",19),d(35,"div",20),s(36,"span",21),m(37,"m-play.report.01"),a()(),s(38,"div",19),d(39,"div",22),s(40,"span",21),m(41,"m-play.report.02"),a()(),s(42,"div",23),d(43,"div",24),s(44,"span",21),m(45,"m-play.questions.no-answer"),a()()()()(),s(46,"div",25)(47,"div",12),d(48,"em",26),s(49,"span",14),m(50,"m-play.report.03"),a()(),s(51,"span",27),m(52,"m-play.13"),a(),s(53,"div",28)(54,"td-donut-chart",29)(55,"div",30)(56,"span",31),m(57),a()()()()()()()()),i&2){let r;c(6),h("resourceTypeId",o.statistics.resource.resource_type_id),c(),h("resourceTypeId",o.statistics.resource.resource_type_id),c(),v((r=o.statistics.resource.resource_type_id)===o.resourceTypes.Unique?8:r===8?9:r===9?10:r===10?11:r===11?12:r===12?13:r===13?14:r===14?15:r===15?16:r===16?17:-1),c(21),h("params",et(9,bh,o.statistics.successes,o.students.length)),c(3),h("chartData",Bt(18,Eh,oe(12,wh,o.statistics.successes),oe(14,Sh,o.statistics.faults),oe(16,Th,o.statistics.none))),c(19),h("params",oe(22,kh,o.statistics.success_percent)),c(3),h("value",o.statistics.success_percent)("size",125),c(3),U("",o.statistics.success_percent,"%")}},dependencies:[Lt,Ot,Nt,jt,zt,Qt,Ut,$t,Wt,Ht,Gt,Jt,Ln,Vn,O],styles:[".td-play-event-viewers-class-ranking-position-1[_ngcontent-%COMP%]{top:-170px}.td-play-event-viewers-class-ranking-position-2[_ngcontent-%COMP%]{top:-75px}.td-play-event-viewers-class-ranking-position-3[_ngcontent-%COMP%]{top:-30px}.td-play-event-viewers-class-ranking-medal[_ngcontent-%COMP%]{height:250px;width:220px}"],changeDetection:0})}}return e})();u();var Oh=(e,n)=>({v1:e,v2:n}),Nh=e=>({type:"success",quantity:e}),jh=e=>({type:"fail",quantity:e}),zh=e=>({type:"none",quantity:e}),Qh=(e,n,t)=>[e,n,t],Uh=e=>({v1:e});function $h(e,n){if(e&1&&d(0,"td-resource-header-unique",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Wh(e,n){if(e&1&&d(0,"td-resource-header-multiple",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Hh(e,n){if(e&1&&d(0,"td-resource-header-true-or-false",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Gh(e,n){if(e&1&&d(0,"td-resource-header-order",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Jh(e,n){if(e&1&&d(0,"td-resource-header-matching-text",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Zh(e,n){if(e&1&&d(0,"td-resource-header-complete-sentence",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Yh(e,n){if(e&1&&d(0,"td-resource-header-wordsearch",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Kh(e,n){if(e&1&&d(0,"td-resource-header-open-ended",7),e&2){let t=p();h("resource",t.statistics.resource)}}function Xh(e,n){if(e&1&&d(0,"td-resource-header-matching-image",7),e&2){let t=p();h("resource",t.statistics.resource)}}function e_(e,n){if(e&1&&d(0,"td-resource-header-alternative",7),e&2){let t=p();h("resource",t.statistics.resource)}}var s0=(()=>{class e{constructor(){this._statistics=null,this._students=null,this.resourceTypes=fe}get statistics(){return this._statistics}set statistics(t){this._statistics=t}get students(){return this._students}set students(t){this._students=t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-class-finished-worst"]],inputs:{statistics:"statistics",students:"students"},standalone:!1,decls:58,vars:24,consts:[[1,"px-4"],[1,"mb-4"],["l10nTranslate","",1,"text-white"],[1,"bg-white","rounded-lg","pt-8","pb-4","px-4","mb-4"],[1,"text-xs","flex","items-center","mb-4"],[1,"h-6","w-6","mr-2",3,"resourceTypeId"],[1,"text-blue-black-light-8",3,"resourceTypeId"],[3,"resource"],["l10nTranslate","",1,"text-xl","font-black"],[1,"flex","flex-col","md:flex-row","md:px-8"],[1,"flex-1","pb-4"],[1,"pt-8","md:pr-8"],[1,"flex","items-center","mb-4"],[1,"ai","ai-circle-wrong-form-gray","text-lg","text-red","mr-2"],["l10nTranslate","",1,"text-blue-black-light-8","font-bold"],["l10nTranslate","",1,"block","mb-4",3,"params"],[1,"py-8"],[1,"block","w-full","mt-auto",3,"chartData"],[1,"flex","flex-row"],[1,"flex","flex-row","items-center","mr-4"],[1,"shrink-0","h-5","w-5","bg-green","rounded-full","mr-1"],["l10nTranslate","",1,"text-xs"],[1,"shrink-0","h-5","w-5","bg-red","rounded-full","mr-1"],[1,"flex","flex-row","items-center"],[1,"shrink-0","h-5","w-5","bg-blue-black-light-2","rounded-full","mr-1"],[1,"rounded-lg","bg-background-banner","h-full","pt-8","pb-4","px-4"],[1,"ai","ai-rocket","text-lg","text-cyan-light-6","mr-2"],["l10nTranslate","",1,"max-w-sm","block","mb-8",3,"params"],[1,"flex","justify-center"],["bgColorInner","#CA0045","color","#CA0045",3,"value","size"],[1,"flex","flex-col","items-center","text-white"],[1,"font-black",2,"font-size","28px"]],template:function(i,o){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"span",2),m(3,"m-play.14"),a()(),s(4,"div",3)(5,"div",4),d(6,"td-resource-type-icon",5)(7,"td-resource-type-title",6),a(),y(8,$h,1,1,"td-resource-header-unique",7)(9,Wh,1,1,"td-resource-header-multiple",7)(10,Hh,1,1,"td-resource-header-true-or-false",7)(11,Gh,1,1,"td-resource-header-order",7)(12,Jh,1,1,"td-resource-header-matching-text",7)(13,Zh,1,1,"td-resource-header-complete-sentence",7)(14,Yh,1,1,"td-resource-header-wordsearch",7)(15,Kh,1,1,"td-resource-header-open-ended",7)(16,Xh,1,1,"td-resource-header-matching-image",7)(17,e_,1,1,"td-resource-header-alternative",7),a(),s(18,"div",3)(19,"div",1)(20,"span",8),m(21,"m-play.11"),a()(),s(22,"div",9)(23,"div",10)(24,"div",11)(25,"div",12),d(26,"em",13),s(27,"span",14),m(28,"m-play.7"),a()(),s(29,"span",15),m(30,"m-play.15"),a(),s(31,"div",16),d(32,"td-sidebar-chart",17),a(),s(33,"div",18)(34,"div",19),d(35,"div",20),s(36,"span",21),m(37,"m-play.report.01"),a()(),s(38,"div",19),d(39,"div",22),s(40,"span",21),m(41,"m-play.report.02"),a()(),s(42,"div",23),d(43,"div",24),s(44,"span",21),m(45,"m-play.questions.no-answer"),a()()()()(),s(46,"div",25)(47,"div",12),d(48,"em",26),s(49,"span",14),m(50,"m-play.16"),a()(),s(51,"span",27),m(52,"m-play.17"),a(),s(53,"div",28)(54,"td-donut-chart",29)(55,"div",30)(56,"span",31),m(57),a()()()()()()()()),i&2){let r;c(6),h("resourceTypeId",o.statistics.resource.resource_type_id),c(),h("resourceTypeId",o.statistics.resource.resource_type_id),c(),v((r=o.statistics.resource.resource_type_id)===o.resourceTypes.Unique?8:r===8?9:r===9?10:r===10?11:r===11?12:r===12?13:r===13?14:r===14?15:r===15?16:r===16?17:-1),c(21),h("params",et(9,Oh,o.statistics.faults,o.students.length)),c(3),h("chartData",Bt(18,Qh,oe(12,Nh,o.statistics.successes),oe(14,jh,o.statistics.faults),oe(16,zh,o.statistics.none))),c(19),h("params",oe(22,Uh,o.statistics.faults_percent)),c(3),h("value",o.statistics.faults_percent)("size",125),c(3),U("",o.statistics.faults_percent,"%")}},dependencies:[Lt,Ot,Nt,jt,zt,Qt,Ut,$t,Wt,Ht,Gt,Jt,Ln,Vn,O],styles:[".td-play-event-viewers-class-ranking-position-1[_ngcontent-%COMP%]{top:-170px}.td-play-event-viewers-class-ranking-position-2[_ngcontent-%COMP%]{top:-75px}.td-play-event-viewers-class-ranking-position-3[_ngcontent-%COMP%]{top:-30px}.td-play-event-viewers-class-ranking-medal
9[_ngcontent-%COMP%]{height:250px;width:220px}"],changeDetection:0})}}return e})();var n_=(e,n,t,i,o)=>({session:e,report:n,questions:t,students:i,valuation:o}),i_=e=>["/",e];function o_(e,n){if(e&1){let t=V();s(0,"button",30),w("click",function(){P(t);let o=p(3);return R(o.onSelect("ranking"))}),s(1,"div",31)(2,"div",32)(3,"div",33)(4,"div",34),d(5,"em",35),a(),s(6,"div",36)(7,"span",37),m(8,"m-play.6"),a(),s(9,"span",38)(10,"span",39),m(11),a(),m(12," m-play.18 "),a()()()(),d(13,"div",40),a()()}if(e&2){let t=p(2),i=p();c(),me("bg-opacity-40",i.tab==="ranking")("bg-opacity-25",i.tab!=="ranking"),c(10),M(t.report.leaderboard[0].nickname),c(2),me("bg-amber",i.tab==="ranking")("bg-transparent",i.tab!=="ranking")}}function r_(e,n){if(e&1){let t=V();s(0,"button",30),w("click",function(){P(t);let o=p(3);return R(o.onSelect("students"))}),s(1,"div",41)(2,"div",32)(3,"div",33)(4,"div",42),d(5,"em",43),a(),s(6,"div",44)(7,"span",45),m(8,"m-play.19"),a()()()(),d(9,"div",46),a()()}if(e&2){let t=p(3);c(),me("bg-opacity-40",t.tab==="students")("bg-opacity-25",t.tab!=="students"),c(8),me("bg-cyan",t.tab==="students")("bg-transparent",t.tab!=="students")}}function s_(e,n){if(e&1&&(s(0,"span",49),m(1),E(2,"translate"),E(3,"lowercase"),a()),e&2){let t=p(3),i=p();c(),Ge("",t.report.most_successes.successes," ",A(3,5,Te(2,2,"classes.report.0009",i.locale.language)))}}function a_(e,n){e&1&&(s(0,"span",49),m(1,"-"),a())}function l_(e,n){if(e&1){let t=V();s(0,"button",30),w("click",function(){P(t);let o=p(3);return R(o.onSelect("best"))}),s(1,"div",31)(2,"div",32)(3,"div",33)(4,"div",47),d(5,"em",48),a(),s(6,"div",36)(7,"span",37),m(8,"m-play.10"),a(),y(9,s_,4,7,"span",49),y(10,a_,2,0,"span",49),a()()(),d(11,"div",50),a()()}if(e&2){let t=p(2),i=p();c(),me("bg-opacity-40",i.tab==="best")("bg-opacity-25",i.tab!=="best"),c(8),v(t.report.leaderboard.length>1?9:-1),c(),v(t.report.leaderboard.length<2?10:-1),c(),me("bg-green",i.tab==="best")("bg-transparent",i.tab!=="best")}}function c_(e,n){if(e&1&&(s(0,"span",49),m(1),E(2,"translate"),E(3,"lowercase"),a()),e&2){let t=p(3),i=p();c(),Ge("",t.report.most_faults.faults," ",A(3,5,Te(2,2,"classes.report.0010",i.locale.language)))}}function d_(e,n){e&1&&(s(0,"span",49),m(1,"-"),a())}function p_(e,n){if(e&1){let t=V();s(0,"button",30),w("click",function(){P(t);let o=p(3);return R(o.onSelect("worst"))}),s(1,"div",41)(2,"div",32)(3,"div",33)(4,"div",51),d(5,"em",52),a(),s(6,"div",36)(7,"span",37),m(8,"m-play.14"),a(),y(9,c_,4,7,"span",49),y(10,d_,2,0,"span",49),a()()(),d(11,"div",53),a()()}if(e&2){let t=p(2),i=p();c(),me("bg-opacity-40",i.tab==="worst")("bg-opacity-25",i.tab!=="worst"),c(8),v(t.report.leaderboard.length>1?9:-1),c(),v(t.report.leaderboard.length<2?10:-1),c(),me("bg-red",i.tab==="worst")("bg-transparent",i.tab!=="worst")}}function u_(e,n){if(e&1&&(y(0,o_,14,9,"button",29)(1,r_,10,8,"button",29),y(2,l_,12,10,"button",29),y(3,p_,12,10,"button",29)),e&2){let t=p();v(t.session.competition?0:1),c(2),v(t.session.competition&&t.report.most_successes&&t.report.most_successes.successes>0?2:-1),c(),v(t.session.competition&&t.report.most_faults&&t.report.most_faults.faults>0?3:-1)}}function m_(e,n){e&1&&(s(0,"div",27)(1,"div",54),d(2,"img",55),a(),s(3,"span",25),m(4,"m-play.23"),a()())}function f_(e,n){if(e&1){let t=V();s(0,"button",56),w("click",function(){P(t);let o=p(2);return R(o.goToDetails())}),d(1,"em",57),s(2,"span",58),m(3,"m-play.24"),a()()}}function h_(e,n){if(e&1&&d(0,"td-play-event-viewers-class-finished-ranking",59),e&2){let t=p(2);h("report",t.report)}}function __(e,n){if(e&1&&y(0,h_,1,1,"td-play-event-viewers-class-finished-ranking",59),e&2){let t=p();v(t.questions.length>0&&t.report.leaderboard.length>0?0:-1)}}function g_(e,n){if(e&1&&d(0,"td-play-event-viewers-class-finished-students",59),e&2){let t=p(2);h("report",t.report)}}function y_(e,n){if(e&1&&y(0,g_,1,1,"td-play-event-viewers-class-finished-students",59),e&2){let t=p();v(t.questions.length>0&&t.report.leaderboard.length>0?0:-1)}}function v_(e,n){if(e&1&&d(0,"td-play-event-viewers-class-finished-successes",60),e&2){let t=p(2);h("statistics",t.report.most_successes)("students",t.students)}}function x_(e,n){if(e&1&&y(0,v_,1,2,"td-play-event-viewers-class-finished-successes",60),e&2){let t=p();v(t.report&&t.report.most_successes&&t.report.most_successes.successes>0?0:-1)}}function C_(e,n){if(e&1&&d(0,"td-play-event-viewers-class-finished-worst",60),e&2){let t=p(2);h("statistics",t.report.most_faults)("students",t.students)}}function b_(e,n){if(e&1&&y(0,C_,1,2,"td-play-event-viewers-class-finished-worst",60),e&2){let t=p();v(t.report&&t.report.most_faults&&t.report.most_faults.faults>0?0:-1)}}function w_(e,n){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"td-toolbar",2),qe(3,3),s(4,"div",4),d(5,"td-brand-logo",5),s(6,"div",6)(7,"span",7),m(8),a()()(),Le(),qe(9,8),s(10,"a",9),m(11,"m-play.actions.exit"),a(),Le(),a()(),s(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14),y(17,u_,4,3),s(18,"div",15)(19,"span",16),m(20,"m-play.20"),a(),s(21,"div",17)(22,"td-donut-chart",18)(23,"div",19),d(24,"img",20),a()()(),s(25,"span",21),m(26),a(),s(27,"span",16),m(28,"m-play.21"),a()()()(),s(29,"div",22)(30,"div",23)(31,"div",24)(32,"span",25),m(33,"m-play.22"),a(),s(34,"span",26),m(35),E(36,"date"),a(),y(37,m_,5,0,"div",27),a(),y(38,f_,4,0,"button",28),a(),y(39,__,1,1)(40,y_,1,1
9)(41,x_,1,1)(42,b_,1,1),a()()()()()),e&2){let t,i=n,o=p();c(8),M(i.session.title),c(2),h("routerLink",oe(17,i_,i.session.lesson_id))("skipLocationChange",!0),c(7),v(i.questions.length>0&&i.report.leaderboard.length>0?17:-1),c(5),h("value",i.valuation)("size",150)("strokeWidth",20),c(4),U("",i.valuation,"% "),c(9),M(Ys(36,12,i.session.created_at,"MMM d, yyyy h:mm a",null,o.locale.language)),c(2),v(!i.questions.length>0?37:-1),c(),v(i.questions.length>0&&i.report.leaderboard.length>0?38:-1),c(),v((t=o.tab)==="ranking"?39:t==="students"?40:t==="best"?41:t==="worst"?42:-1)}}var a0=(()=>{class e{get tab(){return this._tab}constructor(t,i){this.locale=t,this._store=i,this.session$=this._store.pipe(b(ne),We(1),L(o=>this._setInitialTab(o))),this.report$=this._store.pipe(b(qd),We(1)),this.questions$=this._store.pipe(b(ns),We(1)),this.valuation$=this._store.pipe(b(Md)),this.students$=this._store.pipe(b($e),We(1))}goToDetails(){this._store.dispatch(g.goToDetails())}onSelect(t){this._tab=t}_setInitialTab(t){this._tab=t.competition?"ranking":"students"}static{this.\u0275fac=function(i){return new(i||e)(D(tt),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-class-finished"]],standalone:!1,decls:6,vars:17,consts:[[1,"min-h-screen","flex","flex-col","justify-start"],[1,"relative","z-50"],["height","60",1,"bg-white","shadow"],["ngProjectAs","td-toolbar-left",5,["td-toolbar-left"]],[1,"text-blue-black","mr-2","flex","flex-row"],["width","30","height","30"],[1,"truncate"],[1,"font-black","text-xl","text-blue-black","ml-4","truncate"],["ngProjectAs","td-toolbar-right",5,["td-toolbar-right"]],["l10nTranslate","",1,"btn","btn-md","btn-contained-deep-purple","lg:btn-150",3,"routerLink","skipLocationChange"],[1,"grow","bg-blue-purple","overflow-y-auto"],[1,"container","mx-auto"],[1,"flex","flex-row"],[1,"w-2/12","hidden","md:block"],[1,"pt-4","md:pt-8"],[1,"w-full","bg-white","rounded-lg","py-4","text-center"],["l10nTranslate","",1,"font-black","text-xl","text-blue-black"],[1,"flex","w-full","h-full","justify-center","items-center","py-8"],["color","#00C82F","bgColorInner","#ffffff","bgColorOuter","#ffffff",3,"value","size","strokeWidth"],[1,"flex","flex-col","items-center","justify-center"],["src","assets/images/like.svg","alt","",1,"h-24","w-24","img-fluid","max-w-full","self-center"],[1,"font-black","text-xl","text-blue-black"],[1,"w-full","md:w-10/12"],[1,"flex","justify-between","items-center","px-2","md:px-4","pt-4","mb-4","md:mb-8","md:pt-8"],[1,"text-white"],["l10nTranslate","",1,"block","text-lg","font-black","md:text-2xl"],[1,"text-xs","md:text-base"],[1,"pt-20","ml-72"],[1,"btn","btn-md","btn-flat-deep-purple","lg:btn-150"],[1,"focus:outline-none","mb-4","w-full"],[1,"focus:outline-none","mb-4","w-full",3,"click"],[1,"flex","h-24","bg-white","rounded-lg"],[1,"flex-1"],[1,"flex","px-4","py-4"],[1,"flex","items-center","justify-center","h-16","w-16","bg-amber","rounded","text-white","mr-4"],[1,"ai","ai-medal","text-3xl","text-amber-light-4"],[1,"flex-1","text-left","text-white"],["l10nTranslate","",1,"block","font-black","mb-1"],["l10nTranslate",""],[1,"font-bold"],[1,"shrink-0","w-2","h-full","bg-amber","rounded-r-lg"],[1,"flex","h-24","bg-white","bg-opacity-25","rounded-lg"],[1,"flex","items-center","justify-center","h-16","w-16","bg-cyan","rounded","text-white","mr-4"],[1,"ai","ai-circle-user","text-3xl","text-cyan-light-4"],[1,"flex-1","flex","items-center","text-white"],["l10nTranslate","",1,"block","font-black"],[1,"shrink-0","w-2","h-full","bg-cyan","rounded-r-lg"],[1,"flex","items-center","justify-center","h-16","w-16","bg-green","rounded","text-white","mr-4"],[1,"ai","ai-medal","text-3xl","text-green-light-4"],[1,"block","truncate"],[1,"shrink-0","w-2","h-full","bg-green","rounded-r-lg"],[1,"flex","items-center","justify-center","h-16","w-16","bg-red","rounded","text-white","mr-4"],[1,"ai","ai-medal","text-3xl","text-red-light-4"],[1,"shrink-0","w-2","h-full","bg-red","rounded-r-lg"],[1,"ml-10"],["src","assets/images/termino-la-clase.png","alt",""],[1,"btn","btn-md","btn-flat-deep-purple","lg:btn-150",3,"click"],[1,"ai","ai-download","text-lg","md:hidden"],["l10nTranslate","",1,"hidden","md:block"],[3,"report"],[3,"statistics","students"]],template:function(i,o){if(i&1&&(y(0,w_,43,19,"div",0),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async"),E(5,"async")),i&2){let r;v((r=Zs(11,n_,A(1,1,o.session$),A(2,3,o.report$),A(3,5,o.questions$),A(4,7,o.students$),A(5,9,o.valuation$)))?0:-1,r)}},dependencies:[It,Wa,ht,Vn,O,t0,n0,r0,s0,te,zi,Xs,ft],styles:[".td-play-event-viewers-class-position-1[_ngcontent-%COMP%]{top:-170px}.td-play-event-viewers-class-position-2[_ngcontent-%COMP%]{top:-70px}.td-play-event-viewers-class-position-3[_ngcontent-%COMP%]{top:-50px}.td-play-event-viewers-class-medal[_ngcontent-%COMP%]{height:250px;width:220px}"],changeDetection:0})}}return e})();u();var pp=Fs(ap());u();var cp=(()=>{class e{get playBaseURL(){return this._environment.get(qt.PLAY_BASE_URL)}get lessonId(){return this._data.lessonId}constructor(t,i,o){this._data=t,this._dialogRef=i,this._environment=o}close(){this._dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(D(nt),D(ze),D(Vt))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:9,vars:0,consts:[[1,"flex","flex-col","items-center","bg-white","text-blue-black","rounded-lg","py-12","px-6"],["src","assets/images/0038.png","alt","",1,"mb-4","block"],["l10nTranslate","",1,"font-black","text-xl","text-center","mb-4","md:text-2xl"],["l10nTranslate","",1,"text-center","mb-12"],[1,"flex","justify-center","items-center"],["l10nTranslate","",1,"btn","btn-md","btn-contained-deep-purple","btn-100","mx-2","md:btn-150",3,"click"]],template:function(i,o){i&1&&(s(0,"div",0),d(1,"img",1),s(2,"h1",2),m(3,"m-play.64"),a(),s(4,"p",3),m(5,"m-play.65"),a(),s(6,"div",4)(7,"button",5),w("click",function(){return o.close()}),m(8,"m-play.66"),a()()())},dependencies:[O],encapsulation:2})}}return e})();u();function dp(e){return e.open(co,{width:"450px",maxWidth:"90vw",data:{type:lo.Warning,icon:!0,title:"alerts.wait",message:"play.text-102",close:{enabled:!0,label:"actions.cancel"},action:{enabled:!0,label:"play.text-103"}}})}var vg=(e,n)=>({session:e,students:n}
9),xg=e=>["/",e],Cg=()=>({v1:"1"}),bg=()=>({v1:"2"});function wg(e,n){e&1&&(s(0,"div",5),d(1,"td-brand-logo",12)(2,"td-brand-text"),a())}function Sg(e,n){if(e&1){let t=V();s(0,"button",37),E(1,"translate"),w("click",function(){P(t);let o=p(5);return R(o.expandQr())}),d(2,"img",38),s(3,"span",39),d(4,"em",40),a()()}if(e&2){let t=p(5);bt("aria-expanded",!1)("aria-label",Te(1,3,"m-play.84",t.locale.language)),c(2),h("src",t.qrDataUrl,Fe)}}function Tg(e,n){e&1&&d(0,"div",27)}function Eg(e,n){if(e&1){let t=V();s(0,"h2",17),m(1,"m-play.75"),a(),s(2,"div",18)(3,"article",19)(4,"div")(5,"h6",20),m(6,"m-play.76"),a(),s(7,"h4",21),m(8,"m-play.77"),a(),d(9,"p",22),s(10,"p",23)(11,"span",24),m(12,"m-play.79"),a(),s(13,"span",25),m(14),a()()(),y(15,Sg,5,6,"button",26)(16,Tg,1,0,"div",27),a(),s(17,"article",28)(18,"div")(19,"h6",20),m(20,"m-play.76"),a(),s(21,"h4",29),m(22,"m-play.80"),a(),s(23,"div",30),d(24,"em",31)(25,"div",32),s(26,"p",33),m(27),a(),s(28,"button",34),E(29,"translate"),w("mouseenter",function(o){return P(t),R(o.stopImmediatePropagation())})("click",function(){P(t);let o=p(3),r=p();return R(r.copyLinkConnect(o.session))}),d(30,"em",35),m(31,"\xA0"),s(32,"span",36),m(33,"m-play.81"),a()()(),s(34,"p",23)(35,"span",24),m(36,"m-play.79"),a(),s(37,"span",25),m(38),a()()()()()}if(e&2){let t=p(3),i=p();c(5),h("params",cr(12,Cg)),c(4),h("innerHTML","m-play.78",Qs),c(5),M(t.session.code),c(),v(i.qrDataUrl?15:16),c(4),h("params",cr(13,bg)),c(8),M(i.playPath),c(),h("matTooltip",dt(Te(29,9,"m-play.67",i.locale.language))),c(10),M(t.session.code)}}function kg(e,n){if(e&1&&d(0,"img",43),e&2){let t=p(5);h("src",t.qrDataUrl,Fe)}}function Pg(e,n){if(e&1){let t=V();s(0,"button",41),E(1,"translate"),w("click",function(){P(t);let o=p(4);return R(o.collapseQr())}),s(2,"div",42),y(3,kg,1,1,"img",43),s(4,"span",39),d(5,"em",44),a()()()}if(e&2){let t=p(4);bt("aria-expanded",!0)("aria-label",Te(1,3,"m-play.85",t.locale.language)),c(3),v(t.qrDataUrl?3:-1)}}function Rg(e,n){if(e&1){let t=V();s(0,"div",8),y(1,Eg,39,14)(2,Pg,6,6,"button",13),s(3,"div",14)(4,"button",15),w("click",function(){P(t);let o=p(2),r=p();return R(r.cancelSession(o.students.length))}),m(5,"m-play.actions.cancel"),a(),s(6,"button",16),w("click",function(){P(t);let o=p(2),r=p();return R(r.startSession(o.session,o.students.length))}),m(7,"m-play.29"),a()()()}if(e&2){let t=p(2),i=p();c(),v(i.qrExpanded?2:1),c(5),h("disabled",!t.session||t.students.length<1)}}function Dg(e,n){e&1&&(m(0," \xA0"),s(1,"span",36),m(2,"m-play.26"),a())}function Bg(e,n){if(e&1){let t=V();s(0,"div",9)(1,"p",45)(2,"span",36),m(3,"m-play.25"),a(),y(4,Dg,3,0),a(),s(5,"p",46),m(6),a(),s(7,"p",47),m(8,"m-play.27"),a(),s(9,"p",48),m(10),a(),s(11,"p",47),m(12,"m-play.28"),a(),s(13,"span",48),m(14),a(),s(15,"div",49)(16,"button",50),E(17,"translate"),w("mouseenter",function(o){return P(t),R(o.stopImmediatePropagation())})("click",function(){P(t);let o=p(2),r=p();return R(r.copyLinkConnect(o.session))}),m(18,"m-play.refer.00"),a()(),s(19,"div",51)(20,"button",15),w("click",function(){P(t);let o=p(2),r=p();return R(r.cancelSession(o.students.length))}),m(21,"m-play.actions.cancel"),a(),s(22,"button",16),w("click",function(){P(t);let o=p(2),r=p();return R(r.startSession(o.session,o.students.length))}),m(23,"m-play.29"),a()()()}if(e&2){let t=p(2),i=p();c(4),v(t.session.auth_required?4:-1),c(2),U('"',t.session.title,'"'),c(4),M(i.playPath),c(4),M(t.session.code),c(2),h("matTooltip",dt(Te(17,7,"m-play.67",i.locale.language))),c(6),h("disabled",!t.session||t.students.length<1)}}function Ag(e,n){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"a",2),d(3,"em",3),a(),s(4,"strong",4),m(5," m-play.74 "),a()(),y(6,wg,3,0,"div",5),a(),s(7,"div",6)(8,"div",7),y(9,Rg,8,2,"div",8)(10,Bg,24,10,"div",9),a(),s(11,"div",10),d(12,"td-play-student-list",11),a()()),e&2){let t=p(),i=p();c(2),h("routerLink",oe(5,xg,t.session.lesson_id)),c(4),v(i.screenWidth<770?6:-1),c(3),v(i.screenWidth>760?9:10),c(3),h("students",t.students)("disableClose",!0)}}function Ig(e,n){e&1&&y(0,Ag,13,7),e&2&&v(n.session?0:-1)}var up=(()=>{class e{handleBeforeUnload(t){t.returnValue=!0}constructor(t,i,o,r,l,f,_,C,S){this.locale=t,this._translationService=i,this._environment=o,this._clipboard=r,this._dialog=l,this._router=f,this._store=_,this._cdr=C,this._destroyRef=S,this.qrDataUrl=null,this.qrExpanded=!1,this.session$=this._store.pipe(b(ne)),this.students$=this._store.pipe(b(yt)),this.playPath=this._environment.get(qt.PLAY_BASE_URL),this.get
9ScreenSize(),this.session$.pipe(ra(this._destroyRef),Se(k=>k?.code?this.joinPlayUrl(k):null),Ls(),se(k=>k?qs(pp.default.toDataURL(k,{width:480,margin:2,errorCorrectionLevel:"M"})).pipe(Rt(()=>Ke(null))):Ke(null))).subscribe(k=>{let q=this.qrDataUrl;this.qrDataUrl=k,(!k||this.qrExpanded&&k!==q)&&(this.qrExpanded=!1),this._cdr.markForCheck()})}joinPlayUrl(t){return Dl(`${this.playPath}/${this.locale.language}`,t.code.toString())}expandQr(){this.qrDataUrl&&(this.qrExpanded=!0,this._cdr.markForCheck())}collapseQr(){this.qrExpanded=!1,this._cdr.markForCheck()}copyLinkConnect(t){this._clipboard.copy(this._translationService.translate("play.text-36",{v1:t.title,v2:this.joinPlayUrl(t)})),this.tooltip.show()}cancelSession(t){t>0?dp(this._dialog).afterClosed().subscribe(i=>i&&this._store.dispatch(g.cancelSession())):this._store.dispatch(g.cancelSession())}startSession(t,i){i>0?this._store.dispatch(g.startSession()):this._dialog.open(cp,{width:"480px",maxWidth:"95vw",data:{lessonId:t.lesson_id}})}getScreenSize(t){let i=window.innerWidth;i<=760&&this.qrExpanded&&(this.qrExpanded=!1),this.screenWidth=i,this._cdr.markForCheck()}static{this.\u0275fac=function(i){return new(i||e)(D(tt),D(mt),D(Vt),D(ml),D(Ie),D(At),D(J),D(pt),D(js))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-idle"]],viewQuery:function(i,o){if(i&1&&Xe(In,5),i&2){let r;De(r=Be())&&(o.tooltip=r.first)}},hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)("resize",function(l){return o.getScreenSize(l)},He)},standalone:!1,decls:3,vars:8,consts:[[1,"py-4","grid","grid-cols-3","shadow","mb-5"],[1,"flex","items-center","justify-center"],[1,"btn-icon","btn-md","btn-flat-blue-black","mr-4","md:mr-0",3,"routerLink"],[1,"ai","ai-arrow-left","text-lg"],["l10nTranslate","",1,"hidden","text-xl","text-blue-black","font-black","ml-4","mr-4","md:inline-block"],[1,"flex","justify-center","items-center","text-blue-black-light-2"],[1,"td-event-viewer-idle-container","flex","flex-col","md:flex-row","container","mx-auto","text-blue-black","px-1","md:px-4"],[1,"td-idle-left-panel","w-full","md:w-3/5","flex","flex-col","min-h-0"],[1,"w-full","flex","flex-col"],[1,"h-auto","max-w-2xl","flex","flex-col","items-center","mx-auto","py-6","md:py-8"],[1,"w-full","md:w-2/5","h-96","md:h-auto","bg-white","rounded-lg","shadow","mb-4"],[3,"students","disableClose"],[1,"mr-1"],["type","button",1,"td-idle-qr-expanded","flex","w-full","shrink-0","cursor-zoom-out","flex-col","border-0","bg-transparent","p-0","m-0","rounded","focus:outline-none","focus-visible:ring-2","focus-visible:ring-deep-purple"],[1,"mb-4","flex","w-full","max-w-[500px]","mx-auto","justify-center","items-center","gap-5","shrink-0","md:px-6","lg:px-0"],["type","button","l10nTranslate","",1,"btn","btn-outlined-deep-purple","btn-md","btn-120","md:btn-150","mr-4",3,"click"],["l10nTranslate","",1,"btn","btn-contained-deep-purple","btn-md","btn-120","md:btn-150",3,"click","disabled"],["l10nTranslate","",1,"text-center","font-black","text-2xl","shrink-0"],[1,"flex","flex-col","w-full","max-w-[500px]","m-auto","md:px-6","lg:px-0"],[1,"py-11","border-b","border-b-[#31343f]","flex","justify-between","items-start"],["l10nTranslate","",1,"text-xs","mb-1.5",3,"params"],["l10nTranslate","",1,"font-black","text-xl","mb-3"],["l10nTranslate","",1,"text-base","max-w-[300px]","w-full","mb-3",3,"innerHTML"],[1,"flex","items-center"],["l10nTranslate","",1,"mr-2"],[1,"text-blue-purple","font-black","text-2xl"],["type","button",1,"td-idle-qr-thumb","flex","shrink-0","items-start","gap-3","border-0","bg-transparent","p-0","text-left","cursor-zoom-in","rounded","focus:outline-none","focus-visible:ring-2","focus-visible:ring-deep-purple"],["aria-hidden","true",1,"w-[108px]","h-[108px]","shrink-0","rounded","bg-blue-black-light-2/10"],[1,"py-11"],["l10nTranslate","",1,"font-black","text-xl","mb-6"],[1,"bg-background-banner","rounded-[23px]","relative","items-center","flex","h-[46px]","mb-4"],[1,"ai","ai-pwatomi","text-base","align-middle","pl-3"],[1,"bg-[#D2D3D7]","m-2","w-[1px]","h-[17px]"],[1,"py-4"],[1,"bg-deep-purple","right-0","top-0","text-white","items-center","flex","justify-center","rounded-[32px]","w-[118px]","h-[46px]","absolute",3,"mouseenter","click","matTooltip"],[1,"ai","ai-stack-long","icon-1","align-middle"],["l10nTranslate",""],["type","button",1,"td-idle-qr-thumb","flex","shrink-0","items-start","gap-3","border-0","bg-transparent","p-0","text-left","cursor-zoom-in","rounded","focus:outline-none","focus-visible:ring-2","focus-visible:ring-deep-purple",3,"click"],["alt","","role","presentation",1,"block","h-[108px]","w-[108px]","shrink-0","rounded",3,"src"],["aria-hidden","true",1,"flex","h-7","w-7","shrink-0","items-center","justify-center","rounded-full","bg-[#E8E9EB]","text-blue-black","shadow-sm"],["aria-hidden","true",1,"ai","ai-expand","text-[14px]","leading-none"],["type","button",1,"td-idle-qr-expanded","flex","w-full","shrink-0","cursor-zoom-out","flex-col","border-0","bg-transparent","p-0","m-0","rounded","focus:outline-none","focus-visible:ring-2","focus-visible:ring-deep-purple",3,"click"],[1,"td-idle-qr-expanded__body","flex","items-start","justify-center","gap-3","p-4"],["alt","","role","presentation",1,"td-idle-qr-expanded__img",3,"src"],["aria-hidden","true",1,"ai","ai-contract","text-[14px]","leading-none"],[1,"text-center","font-black","md:text-2xl"],[1,"font-black","text-2xl","text-center","md:text-3xl","mb-8"],["l10nTranslate","",1,"mb-2"],[1,"text-blue-purple","text-xl","font-black","mb-8","md:text-3xl"],[1,"mb-8"],["l10nTranslate","",1,"btn","btn-flat-blue-black","btn-md","btn-120","md:btn-150",3,"mouseenter","click","matTooltip"],[1,"mb-4"]],template:function(i,o){if(i&1&&(y(0,Ig,1,1),E(1,"async"),E(2,"async")),i&2){let r;v((r=et(5,vg,A(1,1,o.session$),A(2,3,o.students$)))?0:-1,r)}},dependencies:[It,In,ht,Zt,O,Wo,te,ft],styles:["@media(min-width:768px){.td-idle-left-panel[_ngcontent-%COMP%]{align-self:flex-start}.td-idle-qr-expanded[_ngcontent-%COMP%] .td-idle-qr-expanded__img[_ngcontent-%COMP%]{min-width:0;flex-shrink:1;max-height:min(72vh,100vh - 200px);max-width:min(100%,520px);width:auto;height:auto;object-fit:contain}}"],changeDetection:0})}}return e})();u();u();var Ds=(()=>{class e{constructor(t,i,o){this.dialogRef=t,this.sanitizer=o,this.data=i,this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i.url)}close(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(D(ze),D(nt),D($i))}}static{this.\u0275cmp=T({type:e,selectors:[["app-iframe-dialog"]],standalone:!1,decls:3,vars:1,consts:[[1,"w-full","py-0"],[1,"!p-0","m-0","!max-h-[100vh]","!h-[100vh]"],[1,"w-full","h-full","border-none",3,"src"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"mat-dialog-content",1),d(2,"iframe",2),a()()),i&2&&(c(2),h("src",o.safeUrl,Fi))},dependencies:[nl],styles:[`@charset "UTF-8";app-iframe-dialog .mat-dialog-container{width:90vw!important;height:90vh!important;max-width:1200px!important}app-iframe-dialog .mat-dialog-content{height:calc(100% - 64px);padding:0;overflow:hidden} 10`],encapsulation:2,changeDetection:0})}}return e})();var qg=(e,n,t,i)=>({lesson:e,user:n,isCreatingSession:t,isLoadingSession:i}),mp=e=>["/",e];function Lg(e,n){e&1&&(d(0,"div",42),s(1,"div",43),d(2,"td-loader",44),a())}function Og(e,n){}function Ng(e,n){}function jg(e,n){if(e&1){let t=V();
10s(0,"div",1)(1,"form",2),y(2,Lg,3,0),s(3,"div",3)(4,"div",4)(5,"a",5),d(6,"em",6),a(),s(7,"strong",7)(8,"span",8),m(9,"m-play.34"),a()()(),s(10,"div",9),d(11,"td-brand-logo",10)(12,"td-brand-text"),a()(),s(13,"div",11)(14,"div",12)(15,"div",13),d(16,"img",14),a(),s(17,"h1",15)(18,"span",16),m(19,"m-play.34"),a(),d(20,"br"),s(21,"span",17),m(22),a()(),s(23,"div",18),Me(24,Og,0,0,"ng-template",19),a()(),s(25,"div",20)(26,"div",21)(27,"div",22)(28,"h5",23),m(29,"m-play.35"),a(),s(30,"a",24),w("click",function(){P(t);let o=p(2);return R(o.openPersonalizedReviews())}),m(31,"m-play.82 "),d(32,"em",25),a()(),s(33,"div",26)(34,"div",27)(35,"div",28),d(36,"em",29),a(),s(37,"div",30)(38,"p",31),m(39,"m-play.36"),a(),s(40,"p",32),m(41,"m-play.37"),a()(),d(42,"td-slide-toggle-switch",33),a()()(),s(43,"div",21)(44,"div",22)(45,"h5",23),m(46,"m-play.38"),a(),s(47,"a",24),w("click",function(){P(t);let o=p(2);return R(o.openPointsExplanation())}),m(48,"m-play.39 "),d(49,"em",25),a()(),s(50,"div",34)(51,"div",27)(52,"div",35),d(53,"em",36),a(),s(54,"div",30)(55,"p",31),m(56,"m-play.40"),a(),s(57,"p",32),m(58,"m-play.41"),a()(),d(59,"td-slide-toggle-switch",37),a(),s(60,"div",27)(61,"div",38),d(62,"em",39),a(),s(63,"div",30)(64,"p",31),m(65,"m-play.42"),a(),s(66,"p",32),m(67,"m-play.43"),a()(),d(68,"td-slide-toggle-switch",40),a()()()(),s(69,"div",41),Me(70,Ng,0,0,"ng-template",19),a()()()()}if(e&2){let t=p(),i=Ae(2),o=p();c(),h("formGroup",o.form),c(),v(t.isCreatingSession||t.isLoadingSession?2:-1),c(3),h("routerLink",oe(6,mp,t.lesson.id)),c(17),U('"',t.lesson.title,'"'),c(2),h("ngTemplateOutlet",i),c(46),h("ngTemplateOutlet",i)}}function zg(e,n){if(e&1){let t=V();s(0,"div",45)(1,"a",46),m(2,"m-play.actions.cancel"),a(),s(3,"button",47),w("click",function(){P(t);let o=p(),r=p();return R(r.continue(o.lesson,o.user))}),m(4,"m-play.actions.continue"),a()()}if(e&2){let t=p();c(),h("routerLink",oe(2,mp,t.lesson.id)),c(2),h("disabled",t.isCreatingSession||t.isLoadingSession)}}function Qg(e,n){e&1&&(y(0,jg,71,8,"div",1),Me(1,zg,5,4,"ng-template",null,0,un)),e&2&&v(n.lesson?0:-1)}var fp=(()=>{class e{get language(){return this.locale.language}constructor(t,i,o,r){this.locale=t,this._environment=i,this._dialog=o,this._store=r,this.lesson$=this._store.pipe(b(Dd)),this.user$=this._store.pipe(b(Mo)),this.isCreatingSession$=this._store.pipe(b(kd)),this.isLoadingSession$=this._store.pipe(b(Pd)),this.form=new pa({competition:new Wi(!0),random_options:new Wi(!1),auth_required:new Wi(!0)})}continue(t,i){let{competition:o,random_options:r,auth_required:l}=this.form.getRawValue();this._store.dispatch(g.createSession({lessonId:t.id,title:t.title,image_url:t.image_url,competition:o,random_options:r,auth_required:l,userId:i.id}))}openPointsExplanation(){let t={title:"",url:"https://help.tomi.digital/help/docs/es/19320149-cmo-funciona-el-sistema-de-puntos-en-tomidigita.html"};this._dialog.open(Ds,{data:t,panelClass:"app-iframe-dialog",width:"95vw",maxWidth:"1100px",height:"90vh"})}openPersonalizedReviews(){let t={title:"",url:"https://help.tomi.digital/help/docs/es/78695935-repasos-personalizados.html"};this._dialog.open(Ds,{data:t,panelClass:"app-iframe-dialog",width:"95vw",maxWidth:"1100px",height:"90vh"})}static{this.\u0275fac=function(i){return new(i||e)(D(tt),D(Vt),D(Ie),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-settings"]],standalone:!1,decls:5,vars:14,consts:[["ButtonsTpl",""],[1,"container","mx-auto"],[1,"flex","flex-col","py-5",3,"formGroup"],[1,"td-event-viewer-settings-header","mb-6","grid","grid-cols-3"],[1,"flex","items-center","justify-center"],[1,"btn-icon","btn-md","btn-flat-blue-black","mr-4","md:mr-0",3,"routerLink"],[1,"ai","ai-arrow-left","text-lg"],[1,"hidden","text-xl","text-blue-black","font-black","ml-4","mr-4","md:inline-block"],["l10nTranslate",""],[1,"flex","justify-center","items-center","text-blue-black-light-2"],[1,"mr-1"],[1,"grow","flex","flex-col","md:flex-row","md:justify-center"],[1,"max-w-lg","flex","flex-col","items-center","mx-auto","md:mr-4","lg:mr-10","px-1"],[1,"hidden","md:block","my-5"],["src","assets/images/0002.png","alt","",1,"mx-auto"],[1,"font-black","text-center","mt-4","mb-8","px-3"],["l10nTranslate","",1,"md:text-2xl"],[1,"text-2xl","md:text-3xl"],[1,"pb-8"],[3,"ngTemplateOutlet"],[1,"max-w-lg","mx-auto","md:ml-4","lg:ml-10","px-1"],[1,"rounded-lg","shadow"],[1,"flex","items-center","justify-between","border-b","border-blue-black-light-2","px-4","py-3"],["l10nTranslate","",1,"text-blue-black","font-black"],["l10nTranslate","",1,"text-deep-purple","cursor-pointer",3,"click"],[1,"ai","ai-arrow-open-right","text-xs"],[1,"px-4","py-2","md:py-4","mb-5"],[1,"flex","py-3","md:py-4"],[1,"td-event-viewer-settings-option-icon","shrink-0","flex","justify-center","items-center","bg-navy-blue","rounded","mr-2"],[1,"ai","ai-rocket","text-white","md:text-lg"],[1,"pr-1"],["l10nTranslate","",1,"font-bold"],["l10nTranslate","",1,"text-blue-black-light-8"],["formControlName","auth_required",1,"ml-auto"],[1,"px-4","py-2","md:py-4"],[1,"td-event-viewer-settings-option-icon","shrink-0","flex","justify-center","items-center","bg-amber","rounded","mr-2"],[1,"ai","ai-achievements","text-white","md:text-lg"],["formControlName","competition",1,"ml-auto"],[1,"td-event-viewer-settings-option-icon","shrink-0","flex","justify-center","items-center","bg-green-light-8","rounded","mr-2"],[1,"ai","ai-random","text-white","md:text-lg"],["formControlName","random_options",1,"ml-auto"],[1,"md:hidden","pt-8"],[1,"fixed","inset-0","z-10","bg-white","opacity-80","rounded-lg"],[1,"fixed","inset-0","z-20","flex","justify-center","items-center","pointer-events-none"],["color","#5800FF","size","40","strokeWidth","10"],[1,"flex","justify-center","items-center"],["l10nTranslate","",1,"btn","btn-md","btn-outlined-deep-purple","mr-2","btn-100","md:btn-150",3,"routerLink"],["l10nTranslate","",1,"btn","btn-md","btn-contained-deep-purple","ml-2","btn-100","md:btn-150",3,"click","disabled"]],template:function(i,o){if(i&1&&(y(0,Qg,3,1),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async")),i&2){let r;v((r=wt(9,qg,A(1,1,o.lesson$),A(2,3,o.user$),A(3,5,o.isCreatingSession$),A(4,7,o.isLoadingSession$)))?0:-1,r)}},dependencies:[Ks,Pn,Mt,kn,Dn,Rn,It,oo,qn,ht,Zt,O,te],styles:[".td-event-viewer-settings-option-icon[_ngcontent-%COMP%]{width:25px;height:25px}@media(min-width:768px){.td-event-viewer-settings-option-icon[_ngcontent-%COMP%]{width:32px;height:32px}.td-event-viewer-settings-header[_ngcontent-%COMP%]{margin-bottom:6%}}"],changeDetection:0})}}return e})();u();u();u();u();function $g(e,n){e&1&&(s(0,"div",3)(1,"span",15),m(2,"a"),a()())}function Wg(e,n){e&1&&(s(0,"div",4)(1,"span",15),m(2,"b"),a()())}function Hg(e,n){e&1&&(s(0,"div",5)(1,"span",15),m(2,"c"),a()())}function Gg(e,n){e&1&&(s(0,"div",6)(1,"span",15),m(2,"d"),a()())}function Jg(e,n){if(e&1&&(s(0,"div",7),d(1,"em",16),a()),e&2){let t=p();h("ngClass",t.selected.color),c(),h("ngClass",t.selected.icon)}}function Zg(e,n){if(e&1&&(s(0,"span",10),m(1),a()),e&2){let t=p();c(),M(t.selected.quantity)}}var hp=(()=>{class e{constructor(t,i){this._data=t,this._dialogRef=i}ngOnInit(){let{max:t,selected:i}=this._data;this.max=t,this.selected=i}close(){this._dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(D(nt),D(ze))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!1,decls:16,vars:6,consts:[[1,"h-full","flex","flex-col","bg-white","rounded-lg","p-2"],[1,"w-full","flex","items-center","mb-6"],[1,"shrink-0","h-8","mr-1"],[1,"bg-aquamarine-light-8","w-6","h-full","flex","justify-center","items-center","rounded"],[1,"bg-orange-light-8","w-6","h-full","flex","justify-center","items-center","rounded"],[1,"bg-blue-purple-light-8","w-6","h-full","flex","justify-center","items-center","rounded"],[1,"bg-cyan-light-8","w-6","h-full","flex","justify-center","items-center","rounded"],[1,"w-6","h-full","flex","justify-center","items-center","rounded",3,"ngClass"],[1,"h-8","flex-1","bg-background","rounded","mr-2"],[3,"max","type","value"],[1,"font-black","md:text-2xl"],[1,"btn-icon","btn-flat-blue-black",3,"click"],[1,"ai","ai-close"],[1,"flex","justify-center","grow","overflow-y-auto"],[1,"text-blue-black","font-bold","text-center","my-auto"],[1,"font-black","text-white","md:text-2xl"],[1,"ai","text-white","md:text-lg",3,"ngClass"]],template:function(i,o){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),y(3,$g,3,0,"div",3)(4,Wg,3,0,"div",4)(5,Hg,3,0,"div",5)(6,Gg,3,0,"div",6)(7,Jg,2,2,"div",7),a(),s(8,"div",8)(9,"td-row-chart",9),y(10,Zg,2,1,"span",10),a()(),s(11,"button",11),w("click",function(){return o.close()}),d(12,"em",12),a()(),s(13,"div",13)(14,"p",14),m(15),a()()()),i&2){let r;c(3),v((r=o.selected.enumeration)==="a"?3:r==="b"?4:r==="c"?5:r==="d"?6:7),c(6),h("max",o.max)("type",o.selected.type)("value",o.selected.quantity),c(),v(o.selected.quantity>0?10:-1),c(5),M(o.selected.statement)}},dependencies:[ji,Kt],encapsulation:2})}}return e})();var Yg=["optionStatement"],Kg=["optionButton"];function Xg(e,n){e&1&&(s(0,"div",30)(1,"span",36),m(2,"a"),a()())}
10function ey(e,n){e&1&&(s(0,"div",31)(1,"span",36),m(2,"b"),a()())}function ty(e,n){e&1&&(s(0,"div",32)(1,"span",36),m(2,"c"),a()())}function ny(e,n){e&1&&(s(0,"div",33)(1,"span",36),m(2,"d"),a()())}function iy(e,n){if(e&1&&(s(0,"div",34),d(1,"em",37),a()),e&2){let t=p().$implicit;h("ngClass",t.color),c(),h("ngClass",t.icon)}}function oy(e,n){if(e&1&&(s(0,"span",19),m(1),a()),e&2){let t=p().$implicit;c(),M(t.quantity)}}function ry(e,n){if(e&1){let t=V();s(0,"button",29,1),w("click",function(){let o=P(t).$index,r=p(2);return R(r.onSelect(o))}),y(2,Xg,3,0,"div",30)(3,ey,3,0,"div",31)(4,ty,3,0,"div",32)(5,ny,3,0,"div",33)(6,iy,2,2,"div",34),s(7,"div",17)(8,"td-row-chart",18),y(9,oy,2,1,"span",19),a()(),d(10,"em",35),a()}if(e&2){let t,i=n.$implicit,o=n.$index,r=p(2);h("ngClass",o==r.selectedIndex?"shadow-md":"shadow"),c(2),v((t=i.enumeration)==="a"?2:t==="b"?3:t==="c"?4:t==="d"?5:6),c(6),h("max",r.max)("type",i.type)("value",i.quantity),c(),v(i.quantity>0?9:-1)}}function sy(e,n){if(e&1&&(s(0,"span",19),m(1),a()),e&2){let t=p(2);c(),M(t.chartNone.quantity)}}function ay(e,n){if(e&1&&(s(0,"div",39),d(1,"img",41),a()),e&2){let t=p(3);c(),h("src",t.selected.asset_url,Fe)}}function ly(e,n){if(e&1&&(s(0,"p",40),d(1,"td-math-render",42),a()),e&2){let t=p(3);c(),h("text",t.selected.statement)}}function cy(e,n){if(e&1&&(s(0,"div",28)(1,"div",38),y(2,ay,2,1,"div",39)(3,ly,2,1,"p",40),a()()),e&2){let t=p(2);c(2),v(t.selected.asset_url?2:3)}}function dy(e,n){if(e&1&&(s(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"span",6),m(5,"m-play.30"),a(),s(6,"div",7)(7,"span",8),m(8,"m-play.31"),a(),d(9,"em",9),s(10,"span",10),m(11),a()()(),s(12,"div",11)(13,"div",12),le(14,ry,11,6,"button",13,he),s(16,"div",14)(17,"div",15),d(18,"em",16),a(),s(19,"div",17)(20,"td-row-chart",18),y(21,sy,2,1,"span",19),a()(),d(22,"em",20),a()()()()(),s(23,"div",21,0),d(25,"div",22),s(26,"div",23)(27,"div",24)(28,"span",25),m(29,"m-play.32"),a()(),s(30,"div",26)(31,"div",27),y(32,cy,4,1,"div",28),a()()()()()),e&2){let t=p();c(11),U("",t.correctPercent,"%"),c(3),ce(t.chartData),c(6),h("max",t.max)("type",t.chartNone.type)("value",t.chartNone.quantity),c(),v(t.chartNone.quantity>0?21:-1),c(4),rt("top",t.arrowIndicatorTop,"px"),c(7),v(t.selected?32:-1)}}var Xn=(()=>{class e{get max(){return this.studentsCount??0}get selected(){return this._selected}constructor(){this._selected=null,this._dialog=I(Ie),this._changeDetector=I(pt),this._breakpointObserver=I(An)}ngAfterViewInit(){let t=this.chartData.findIndex(i=>i.type==="success");this._selected=this.chartData[t],this.selectedIndex=t,this._breakpointObserver.isMatched("(max-width: 768px)")||this._moveArrowIndicator(t)}onSelect(t){this._selected=this.chartData[t],this.selectedIndex=t,this._breakpointObserver.isMatched("(max-width: 768px)")?this._dialog.open(hp,{maxWidth:"95vw",maxHeight:"95vh",width:"290px",height:"100%",data:{max:this.max,selected:this.selected}}):this._moveArrowIndicator(t)}_moveArrowIndicator(t){let i=this.optionButtons.toArray()[t],o=this.optionStatement.nativeElement.getBoundingClientRect(),r=i.nativeElement.getBoundingClientRect();this.arrowIndicatorTop=r.top-o.top+r.height/2-15,this._changeDetector.detectChanges()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-feedback-bars"]],viewQuery:function(i,o){if(i&1&&Xe(Yg,5)(Kg,5),i&2){let r;De(r=Be())&&(o.optionStatement=r.first),De(r=Be())&&(o.optionButtons=r)}},inputs:{chartData:"chartData",chartNone:"chartNone",correctPercent:"correctPercent",studentsCount:"studentsCount"},standalone:!1,decls:1,vars:1,consts:[["optionStatement",""],["optionButton",""],[1,"flex","flex-col","md:flex-row"],[1,"flex-1","pb-4"],[1,"flex","flex-col","h-full","md:pr-4"],[1,"flex","justify-between","items-center","mb-4","md:mb-8"],["l10nTranslate","",1,"text-xs","md:text-base","text-blue-black-light-8","md:mb-5","md:mt-4"],[1,"flex","items-center","font-black","text-blue-black","bg-background-banner","rounded","md:rounded-lg","p-1","md:p-2"],["l10nTranslate","",1,"hidden","md:block","mr-1"],[1,"ai","ai-objective","md:hidden","mr-2"],[1,"md:text-2xl"],[1,"flex-1"],[1,"flex","flex-col","h-full","justify-center"],[1,"td-play-event-question-results-feedback-bars-option","mb-3","flex","items-center","rounded","md:rounded-lg","focus:outline-none",3,"ngClass"],[1,"td-play-event-question-results-feedback-bars-option","flex","items-center","p-1"],[1,"bg-blue-black-light-2","w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","mr-1","md:mr-2"],[1,"ai","ai-square-minus","text-white","md:text-lg"],[1,"h-full","flex-1","bg-background","rounded-lg"],[3,"max","type","value"],[1,"font-black","md:text-2xl"],[1,"invisible","td-play-event-question-results-feedback-bars-option-arrow","ai","ai-arrow-open-right","px-2"],[1,"hidden","md:block","flex-1","relative","ml-10"],[1,"td-play-event-question-results-feedback-bars-statement-arrow","hidden","md:block","absolute","w-8","h-8","bg-white","transform","rotate-45","transition-all","duration-300","ease-linear"],[1,"rounded-lg","shadow-md","h-full","pt-4"],[1,"px-4","mb-4"],["l10nTranslate","",1,"text-blue-black-light-8"],[1,"pl-4","pr-1","pb-1"],[1,"td-play-event-question-results-feedback-bars-statement-container","scrollbar","overflow-auto"],[1,"flex","justify-center","items-center","h-full"],[1,"td-play-event-question-results-feedback-bars-option","mb-3","flex","items-center","rounded","md:rounded-lg","focus:outline-none",3,"click","ngClass"],[1,"bg-aquamarine-light-8","w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","select-none","mr-1","md:mr-2"],[1,"bg-orange-light-8","w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","select-none","mr-1","md:mr-2"],[1,"bg-blue-purple-light-8","w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","select-none","mr-1","md:mr-2"],[1,"bg-cyan-light-8","w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","select-none","mr-1","md:mr-2"],[1,"w-6","md:w-8","h-full","flex","justify-center","items-center","rounded","mr-1","md:mr-2",3,"ngClass"],[1,"td-play-event-question-results-feedback-bars-option-arrow","ai","ai-arrow-open-right","text-blue-black-light-8","px-2"],[1,"font-black","text-white","md:text-2xl"],[1,"ai","text-white","md:text-lg",3,"ngClass"],[1,"m-auto","pr-1"],[1,"shrink-0","rounded","border","mx-3"],[1,"text-xl","text-blue-black","font-bold"],["draggable","false",1,"w-full","h-full","rounded",3,"src"],[3,"text"]],template:function(i,o){i&1&&y(0,dy,33,8,"div",2),i&2&&v(o.chartData?0:-1)},dependencies:[ji,Mn,Kt,O],styles:[".td-play-event-question-results-feedback-bars-option[_ngcontent-%COMP%]{height:40px;padding:3px}.td-play-event-question-results-feedback-bars-option-arrow[_ngcontent-%COMP%]{font-size:14px}@media(min-width:768px){.td-play-event-question-results-feedback-bars-option[_ngcontent-%COMP%]{height:70px;padding:5px}.td-play-event-question-results-feedback-bars-option-arrow[_ngcontent-%COMP%]{font-size:30px}}.td-play-event-question-results-feedback-bars-statement-arrow[_ngcontent-%COMP%]{left:-1rem;box-shadow:-4px 4px 10px -4px #22233a26}.td-play-event-question-results-feedback-bars-statement-container[_ngcontent-%COMP%]{height:360px}"],changeDetection:0})}}return e})();var gp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null,this._selected=null,this.enumeration=["a","b","c","d"]}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get max(){return this._students?this._students.length:0}get data(){return this._data}get selected(){return this._selected}ngOnInit(){let t=this._answers.filter(o=>o.answer).length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let i=this._resource.options.map((o,r)=>
10{let l=this._answers.filter(f=>+f.option==+o.id);return{id:o.id,type:ve(o.answer)?"success":"fail",quantity:l.length,statement:o.statement,asset_url:o.asset_url,enumeration:this.enumeration[r]}});this.chartNone={type:"none",quantity:this._students.length-this._answers.length},this._data=i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-unique"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:1,vars:4,consts:[[3,"chartData","chartNone","correctPercent","studentsCount"]],template:function(i,o){i&1&&d(0,"td-play-event-question-results-feedback-bars",0),i&2&&h("chartData",o.data)("chartNone",o.chartNone)("correctPercent",o.correctPercent)("studentsCount",o.students.length)},dependencies:[Xn],encapsulation:2,changeDetection:0})}}return e})();u();var yp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null,this._selected=null,this.enumeration=["a","b","c","d"]}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get max(){return this._students?this._students.length:0}get data(){return this._data}get selected(){return this._selected}ngOnInit(){let t=this._answers.filter(o=>o.answer).length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let i=this._resource.options.map((o,r)=>
10{let l=this._answers.filter(f=>f.option.split(",").map(Number).includes(+o.id));return{id:o.id,type:ve(o.answer)?"success":"fail",quantity:l.length,statement:o.statement,asset_url:o.asset_url,enumeration:this.enumeration[r]}});this.chartNone={type:"none",quantity:this._students.length-this._answers.length},this._data=i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-multiple"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:1,vars:4,consts:[[3,"chartData","chartNone","correctPercent","studentsCount"]],template:function(i,o){i&1&&d(0,"td-play-event-question-results-feedback-bars",0),i&2&&h("chartData",o.data)("chartNone",o.chartNone)("correctPercent",o.correctPercent)("studentsCount",o.students.length)},dependencies:[Xn],encapsulation:2,changeDetection:0})}}return e})();u();u();var fy=["*"];function hy(e,n){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"p",2),m(3,"m-play.30"),a(),s(4,"div",3)(5,"div",4),d(6,"td-sidebar-chart",5),a(),s(7,"div",6)(8,"span",7),m(9,"m-play.31"),a(),d(10,"em",8),s(11,"span",9),m(12),a()()()(),s(13,"td-divider",10)(14,"span",11),m(15,"m-play.33"),a()(),s(16,"div",12),Oi(17),a()()),e&2){let t=p();c(6),h("chartData",t.chartData),c(6),U("",t.correctPercent,"%")}}var vt=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-feedback-stackedbar"]],inputs:{chartData:"chartData",correctPercent:"correctPercent"},standalone:!1,ngContentSelectors:fy,decls:1,vars:1,consts:[[1,"flex","flex-col"],[1,"md:px-4"],["l10nTranslate","",1,"hidden","md:block","text-xs","md:text-base","text-blue-black-light-8","mb-4","md:mt-4"],[1,"flex","items-center","h-full"],[1,"h-6","md:h-10","w-full","mr-2","md:mr-4"],[3,"chartData"],[1,"shrink-0","flex","items-center","font-black","text-blue-black","bg-background-banner","rounded","md:rounded-lg","p-1","md:p-2"],["l10nTranslate","",1,"hidden","md:block","mr-1"],[1,"ai","ai-objective","md:hidden","mr-2"],[1,"md:text-2xl"],[1,"pt-2","pb-4","md:pt-8","md:pb-8","md:px-4"],["l10nTranslate","",1,"text-xs","px-8"],[1,"md:py-8","md:px-4"]],template:function(i,o){i&1&&(Li(),y(0,hy,18,2,"div",0)),i&2&&v(o.chartData?0:-1)},dependencies:[ro,Ln,O],encapsulation:2})}}return e})();var vp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}ngOnInit(){let t=this._answers.filter(o=>o.answer).length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let i=this._resource.options.map((o,r)=>
10{let l=this._answers.filter(f=>{let _=f.option.toString();return _=="true"||_=="false"?_===o.statement:(_==="1").toString()===o.statement});return{id:o.id,type:ve(o.answer)?"success":"fail",quantity:l.length}});i.push({id:0,type:"none",quantity:this._students.length-this._answers.length}),this._data=i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-true-or-false"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:2,vars:4,consts:[[3,"chartData","correctPercent"],[3,"resource","answer"]],template:function(i,o){i&1&&(s(0,"td-play-event-question-results-feedback-stackedbar",0),d(1,"td-resource-render-true-or-false",1),a()),i&2&&(h("chartData",o.data)("correctPercent",o.correctPercent),c(),h("resource",o.resource)("answer",!0))},dependencies:[po,vt],encapsulation:2,changeDetection:0})}}return e})();u();function gy(e,n){if(e&1&&(s(0,"span",10),m(1),a()),e&2){let t=p().$implicit;c(),M(t.answer.option)}}function yy(e,n){e&1&&(s(0,"span",11),m(1,"m-play.questions.no-answer"),a())}function vy(e,n){if(e&1&&(s(0,"div",5)(1,"div",6)(2,"div",7),d(3,"img",8),a(),s(4,"span",9),m(5),a()(),y(6,gy,2,1,"span",10)(7,yy,2,0,"span",11),a()),e&2){let t=n.$implicit,i=p(2);c(3),h("src",i.avatars[t.student.avatar_id-1].url,Fe),c(2),M(t.student.nickname),c(),v(t.answer?6:7)}}function xy(e,n){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"span",2),m(3,"m-play.30"),a(),s(4,"div",3)(5,"div",4),le(6,vy,8,3,"div",5,he),a()()()()),e&2){let t=p();c(6),ce(t.data)}}var xp=(()=>{class e{constructor(){this._avatars=I(Yt),this._answers=null,this._students=null,this.avatars=this._avatars.data}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}ngOnInit(){this._data=this._students.map(t=>{let i=this._answers.find(o=>o.student_id===t.id);return{student:t,answer:i}}),this._data=this._data.sort(function(t,i){return t.answer===void 0||t.answer===null?1:i.answer===void 0||i.answer===null?-1:t.answer===i.answer?0:t.answer<i.answer?-1:1})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-open-ended"]],inputs:{answers:"answers",students:"students"},standalone:!1,decls:1,vars:1,consts:[[1,"flex","flex-col","md:flex-row","pl-3","pr-1","w-full"],[1,"flex","flex-col","h-full","w-full"],["l10nTranslate","",1,"text-xs","text-blue-black-light-8","mb-5","mt-4"],[1,"td-play-event-question-results-open-ended-resource-container","w-full","overflow-auto","scrollbar","md:scrollbar-lg"],[1,"pr-2","md:pr-4"],[1,"mb-8"],[1,"flex","mb-2"],[1,"w-8","h-8","rounded-full","border","border-grey-light-1","mr-2","inline-block"],["alt","",1,"w-full","rounded-full",3,"src"],[1,"text-blue-black","self-center","font-black"],[1,"text-blue-black"],["l10nTranslate","",1,"text-blue-black"]],template:function(i,o){i&1&&y(0,xy,8,0,"div",0),i&2&&v(o.data?0:-1)},dependencies:[O],styles:[".td-play-event-question-results-open-ended-resource-container[_ngcontent-%COMP%]{height:360px}"],changeDetection:0})}}return e})();u();var Cp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}ngOnInit(){let t=this._answers.filter(l=>l.answer).length,i=this._answers.filter(l=>!l.answer).length,o=this._students.length-this._answers.length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let r=this._answers.map((l,f)=>{let _=this._answers.filter(C=>(C.option==="1").toString()===l.statement);return{id:l.id,type:ve(l.answer)?"success":"fail",quantity:_.length}});this._data=[{type:"success",quantity:t},{type:"fail",quantity:i},{type:"none",quantity:o}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-matching-text"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:2,vars:3,consts:[[3,"chartData","correctPercent"],["answer","true",3,"resource"]],template:function(i,o){i&1&&(s(0,"td-play-event-question-results-feedback-stackedbar",0),d(1,"td-resource-render-matching-text",1),a()),i&2&&(h("chartData",o.data)("correctPercent",o.correctPercent),c(),h("resource",o.resource))},dependencies:[mo,vt],encapsulation:2,changeDetection:0})}}return e})();u();var bp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}ngOnInit(){let t=this._answers.filter(l=>l.answer).length,i=this._answers.filter(l=>!l.answer).length,o=this._students.length-this._answers.length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let r=this._answers.map((l,f)=>{let _=this._answers.filter(C=>(C.option==="1").toString()===l.statement);return{id:l.id,type:ve(l.answer)?"success":"fail",quantity:_.length}});this._data=[{type:"success",quantity:t},{type:"fail",quantity:i},{type:"none",quantity:o}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-matching-image"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:2,vars:3,consts:[[3,"chartData","correctPercent"],["answer","true",3,"resource"]],template:function(i,o){i&1&&(s(0,"td-play-event-question-results-feedback-stackedbar",0),d(1,"td-resource-render-matching-image",1),a()),i&2&&(h("chartData",o.data)("correctPercent",o.correctPercent),c(),h("resource",o.resource))},dependencies:[fo,vt],encapsulation:2,changeDetection:0})}}return e})();u();var wp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}ngOnInit(){let t=this._answers.filter(l=>l.answer).length,i=this._answers.filter(l=>!l.answer).length,o=this._students.length-this._answers.length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let r=this._answers.map((l,f)=>{let _=this._answers.filter(C=>(C.option==="1").toString()===l.statement);return{id:l.id,type:ve(l.answer)?"success":"fail",quantity:_.length}});this._data=[{type:"success",quantity:t},{type:"fail",quantity:i},{type:"none",quantity:o}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-order"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:2,vars:3,consts:[[3,"chartData","correctPercent"],["answer","true",3,"resource"]],template:function(i,o){i&1&&(s(0,"td-play-event-question-results-feedback-stackedbar",0),d(1,"td-resource-render-order",1),a()),i&2&&(h("chartData",o.data)("correctPercent",o.correctPercent),c(),h("resource",o.resource))},dependencies:[uo,vt],encapsulation:2,changeDetection:0})}}return e})();u();u();var Ty=["OptionStatement"],Ey=["OptionButton"];function ky(e,n){if(e&1){let t=V();s(0,"button",20,1),w("click",function(){P(t);let o=p().$index,r=p(3);return R(r.onSelect(o))}),m(2),d(3,"em",21),a()}if(e&2){let t=p().$implicit;c(2),U(" ",t.render," ")}}function Py(e,n){if(e&1&&(s(0,"span",22),m(1),a()),e&2){let t=n.$implicit;c(),M(t)}}function Ry(e,n){if(e&1&&le(0,Py,2,1,"span",22,he),e&2){let t=p().$index,i=p(3);ce(i.wordsRender[t])}}function Dy(e,n){if(e&1&&y(0,ky,4,1,"button",19)(1,Ry,2,0),e&2){let t=n.$implicit;v(t.hidden?0:1)}}function By(e,n){if(e&1&&(s(0,"div",12),le(1,Dy,2,1,null,null,he),a()),e&2){let t=p(2);c(),ce(t.chartData)}}function Ay(e,n){if(e&1&&(s(0,"span",27),m(1),a()),e&2){let t=p().$implicit;c(),M(t.quantity)}}function Iy(e,n){if(e&1&&(s(0,"div",23)(1,"span",24),m(2),a()(),s(3,"div",25)(4,"td-row-chart",26),y(5,Ay,2,1,"span",27),a()()),e&2){let t=n.$implicit,i=p(3);c(2),M(t.word),c(2),h("max",i.max)("type",t.type)("value",t.quantity),c(),v(t.quantity>0?5:-1)}}function Vy(e,n){e&1&&le(0,Iy,6,5,null,null,Ws),e&2&&ce(n)}function Fy(e,n){if(e&1&&(s(0,"div",2)(1,"div",3)(2,"div",4)(3,"span",5),m(4,"play.text-59"),a(),s(5,"div",6)(6,"span",7),m(7,"play.text-57"),a(),d(8,"em",8),s(9,"span",9),m(10),a()()(),s(11,"div",10)(12,"div",11),y(13,By,3,0,"div",12),a()()(),s(14,"div",13,0),d(16,"div",14),s(17,"div",15)(18,"div",16)(19,"span",17),m(20,"play.text-56"),a()(),s(21,"div",18),y(22,Vy,2,0),a()()()()),e&2){let t,i=p();c(10),U("",i.percent,"%"),c(3),v(i.chartData?13:-1),c(3),rt("top",
10i.arrowIndicatorTop,"px"),c(6),v((t=i.answersData[i.indexRender])?22:-1,t)}}var Sp=(()=>{class e{get chartData(){return this._chartData}set chartData(t){this._chartData=t}get answersData(){return this._answersData}set answersData(t){this._answersData=t}get percent(){return this._percent}set percent(t){this._percent=t}get max(){return this._max}set max(t){this._max=t}get selected(){return this._selected}get arrowIndicatorTop(){return this._arrowIndicatorTop}get indexRender(){return this._indexRender}get indexList(){return this._indexList}get wordsRender(){return this._wordsRender}constructor(){this._max=0,this._selected=null,this._indexRender=0,this._indexList=[],this._wordsRender=[],this._dialogs=I(Hn),this._changeDetector=I(pt),this._breakpointObserver=I(An)}ngOnInit(){this._syncFromInputs()}ngOnChanges(t){(t.chartData||t.answersData)&&this._syncFromInputs()}_syncFromInputs(){if(!this._chartData?.length||!this._answersData?.length){this._indexList=[],this._wordsRender=[];return}this._indexList=this._answersData.map(t=>t[0]?.index),this._wordsRender=this._chartData.map(t=>(t.render??"").toString().split(" "))}ngAfterViewInit(){!this._breakpointObserver.isMatched("(max-width: 768px)")&&this.optionButtons?.length&&this._moveArrowIndicator(0)}onSelect(t){this._indexRender=this._indexList.indexOf(t),this._selected=this._answersData[this._indexRender],this._breakpointObserver.isMatched("(max-width: 766px)")?this._dialogs.openCompleteSentenceFeedbackDialog({max:this._max,selected:this._selected}):this._moveArrowIndicator(this._indexRender)}_moveArrowIndicator(t){let i=this.optionButtons.toArray()[t];if(!i||!this.optionStatement)return;let o=this.optionStatement.nativeElement.getBoundingClientRect(),r=i.nativeElement.getBoundingClientRect();this._arrowIndicatorTop=r.top-o.top+r.height/2-15,this._changeDetector.detectChanges()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-results-feedback-complete-sentence-bars"]],viewQuery:function(i,o){if(i&1&&Xe(Ty,5)(Ey,5),i&2){let r;De(r=Be())&&(o.optionStatement=r.first),De(r=Be())&&(o.optionButtons=r)}},inputs:{chartData:"chartData",answersData:"answersData",percent:"percent",max:"max"},standalone:!1,features:[Vi],decls:1,vars:1,consts:[["OptionStatement",""],["OptionButton",""],[1,"flex","flex-col","md:flex-row"],[1,"flex","flex-col","flex-1","h-full"],[1,"flex","justify-between","items-center","mb-4","md:mb-8"],["l10nTranslate","",1,"text-xs","text-blue-black-light-8","md:text-base","md:mb-5","md:mt-4"],[1,"flex","items-center","text-blue-black","bg-background-banner-2","rounded","py-1","px-2"],["l10nTranslate","",1,"text-xs","text-center","hidden","mr-2","md:block"],[1,"ai","ai-objective","mr-2","md:hidden"],[1,"text-center","md:text-3xl","font-black"],[1,"flex-1"],[1,"flex","flex-col","h-full","justify-center"],[1,"flex","flex-wrap","w-full","items-center","font-bold","md:text-xl"],[1,"hidden","flex-1","relative","ml-10","md:block"],[1,"td-play-event-question-results-feedback-bars-statement-arrow","shadow-md","hidden","absolute","w-6","h-6","bg-white","transform","rotate-45","transition-all","duration-300","ease-linear","md:block"],[1,"rounded-lg","shadow-md","h-full","pt-4","px-6"],[1,"mb-8"],["l10nTranslate","",1,"text-blue-black-light-8"],[1,"td-play-event-question-results-feedback-bars-statement-container","w-full","scrollbar","overflow-y-auto"],[1,"flex","items-center","border-2","border-deep-purple-light-8","font-black","rounded-full","bg-background","text-deep-purple-light-8","mr-1","mb-2","px-2","py-2","md:text-xl"],[1,"flex","items-center","border-2","border-deep-purple-light-8","font-black","rounded-full","bg-background","text-deep-purple-light-8","mr-1","mb-2","px-2","py-2","md:text-xl",3,"click"],[1,"ai","ai-arrow-small-right","text-deep-purple-light-8"],[1,"mr-1","mb-2"],[1,"mb-2"],[1,"font-bold","md:text-xl"],[1,"flex-1","h-10","bg-background","rounded-lg","mb-4"],[3,"max","type","value"],[1,"font-bold","md:text-2xl"]],template:function(i,o){i&1&&y(0,Fy,23,5,"div",2),i&2&&v(o.chartData?0:-1)},dependencies:[Kt,O],styles:[".td-play-event-question-results-feedback-bars-statement-arrow[_ngcontent-%COMP%]{left:-10px;box-shadow:-4px 4px 10px -4px #22233a26}.td-play-event-question-results-feedback-bars-statement-container[_ngcontent-%COMP%]{height:360px}"],changeDetection:0})}}return e})();var Tp=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null,this._answersD
10ata=[]}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}get correctPercent(){return this._correctPercent}get answersData(){return this._answersData}ngOnInit(){this._initialize()}ngOnChanges(t){(t.resource||t.answers||t.students)&&this._initialize()}_initialize(){this._answersData=[];let t=this._answers??[],i=t.filter(o=>o.answer).length;if(this._correctPercent=this._students?.length?Math.round(i/this._students.length*100):0,!this._resource?.title){this._data=null;return}if(this._data=this._resource.title.replace(/@.*?@/mg,o=>` $$^^${o}$$^^ `).split("$$^^").map(o=>o.trim()).filter(o=>o.length>0).map(o=>({render:o.match(/^@|@$/mg)?o.replace(/^@|@$/mg,""):o,hidden:!!o.match(/^@|@$/mg)})),this._data){let o=this._data.filter(f=>f.hidden).map(f=>f.render),r=o.map(f=>this._data.map(_=>_.render).indexOf(f)),l=o.map((f,_)=>t.map(C=>C.option).map(C=>(C?.toString?.()??"").split(",")).map(C=>C).map(C=>C[_])).map(f=>this.counterWord(f));for(let f=0;f<o.length;f++)this._answersData.push(this.addAnswers(l[f],o[f],r[f],r.length));this._answersData.map(f=>{f.unshift(f.splice(f.findIndex(_=>_.type==="success"),1)[0])})}}counterWord(t){let i={};for(let o of t)i[o]?i[o]+=1:i[o]=1;return i}addAnswers(t,i,o,r){let l=[],f=Object.keys(t),_=Object.values(t);for(let C=0;C<r;C++)l.push({word:f[C]?f[C]:null,quantity:_[C]?_[C]:null,type:i===f[C]?"success":"fail",index:o});return l}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-complete-sentence"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,features:[Vi],decls:1,vars:4,consts:[[3,"chartData","answersData","percent","max"]],template:function(i,o){i&1&&d(0,"td-play-results-feedback-complete-sentence-bars",0),i&2&&h("chartData",o.data)("answersData",o.answersData)("percent",o.correctPercent)("max",o.students.length)},dependencies:[Sp],encapsulation:2,changeDetection:0})}}return e})();u();function Ly(e,n){if(e&1&&(s(0,"div",5),m(1),a()),e&2){let t=n.$implicit;c(),U(" ",t," ")}}function Oy(e,n){if(e&1&&(s(0,"div",3)(1,"span",4),m(2),a(),le(3,Ly,2,1,"div",5,he),a()),e&2){let t=n.$implicit,i=n.$index,o=p().$index;c(2),M(o*5+i+1),c(),ce(t.statement.split(""))}}function Ny(e,n){if(e&1&&(s(0,"div",2),le(1,Oy,5,1,"div",3,he),a()),e&2){let t=n.$implicit;c(),ce(t)}}var Ep=(()=>{class e{constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null,this._options=[]}get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get data(){return this._data}get options(){return this._options}ngOnInit(){for(let l=0;l<this.resource.options.length/5;l++){let f=l*5,_=[];for(let C=f;C<this.resource.options.length&&C<f+5;C++)_.push(this.resource.options[C]);this._options.push(_)}let t=this._answers.filter(l=>l.answer).length,i=this._answers.filter(l=>!l.answer).length,o=this._students.length-this._answers.length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let r=this._answers.map((l,f)=>{let _=this._answers.filter(C=>(C.option==="1").toString()===l.statement);return{id:l.id,type:ve(l.answer)?"success":"fail",quantity:_.length}});this._data=[{type:"success",quantity:t},{type:"fail",quantity:i},{type:"none",quantity:o}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-wordsearch"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:4,vars:2,consts:[[3,"chartData","correctPercent"],[1,"flex","flex-wrap","gap-4","justify-around"],[1,"flex","flex-col","gap-2"],[1,"flex","items-center","gap-1"],[1,"text-grey","font-bold","leading-10","mr-2"],[1,"flex","bg-blue-black-light-1","text-lg","text-blue-black","h-8","w-8","shrink-0","justify-center","font-bold","items-center","uppercase","rounded-sm"]],template:function(i,o){i&1&&(s(0,"td-play-event-question-results-feedback-stackedbar",0)(1,"div",1),le(2,Ny,3,0,"div",2,he),a()()),i&2&&(h("chartData",o.data)("correctPercent",o.correctPercent),c(2),ce(o.options))},dependencies:[vt],encapsulation:2,changeDetection:0})}}return e})();u();var kp=(()=>{class e{get resource(){return this._resource}set resource(t){this._resource=t}get answers(){return this._answers}set answers(t){this._answers=t}get students(){return this._students}set students(t){this._students=t}get max(){return this._students?this._students.length:0}get data(){return this._data}get selected(){return this._selected}constructor(){this._resource=null,this._answers=null,this._students=null,this._data=null,this._selected=null,this.enumeration=["a","b","c","d"],this._translationService=I(mt)}ngOnInit(){let t=this._answers.filter(l=>l.answer).length;this.correctPercent=this._students.length?Math.round(t/this._students.length*100):0;let i=this._resource.options.map((l,f)=>{let _=this._answers.filter(C=>ni(C.option)===ni(l.statement));return{id:l.id,type:ve(l.answer)?"success":"fail",quantity:_.length,statement:l.statement,enumeration:this.enumeration[f],icon:void 0,color:void 0}}),o=this._resource.options.map(l=>ni(l.statement)),r=this._answers.filter(l=>o.includes(ni(l.option)));
10i.push({id:0,type:"fail",quantity:this._answers.length-r.length,statement:this._translationService.translate("questions.another-answer"),enumeration:void 0,icon:"ai-square-close",color:"bg-red-light-8"}),this.chartNone={type:"none",quantity:this._students.length-this._answers.length},this._data=i}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results-alternative"]],inputs:{resource:"resource",answers:"answers",students:"students"},standalone:!1,decls:1,vars:4,consts:[[3,"chartData","chartNone","correctPercent","studentsCount"]],template:function(i,o){i&1&&d(0,"td-play-event-question-results-feedback-bars",0),i&2&&h("chartData",o.data)("chartNone",o.chartNone)("correctPercent",o.correctPercent)("studentsCount",o.students.length)},dependencies:[Xn],encapsulation:2,changeDetection:0})}}return e})();var Qy=(e,n,t,i)=>({session:e,resource:n,answers:t,students:i});function Uy(e,n){if(e&1&&d(0,"td-resource-header-unique",4),e&2){let t=p(2);h("resource",t.resource)}}function $y(e,n){if(e&1&&d(0,"td-resource-header-multiple",4),e&2){let t=p(2);h("resource",t.resource)}}function Wy(e,n){if(e&1&&d(0,"td-resource-header-true-or-false",4),e&2){let t=p(2);h("resource",t.resource)}}function Hy(e,n){if(e&1&&d(0,"td-resource-header-order",5),e&2){let t=p(2);h("resource",t.resource)}}function Gy(e,n){if(e&1&&d(0,"td-resource-header-matching-text",5),e&2){let t=p(2);h("resource",t.resource)}}function Jy(e,n){if(e&1&&d(0,"td-resource-header-complete-sentence",4),e&2){let t=p(2);h("resource",t.resource)}}function Zy(e,n){if(e&1&&d(0,"td-resource-header-wordsearch",5),e&2){let t=p(2);h("resource",t.resource)}}function Yy(e,n){if(e&1&&d(0,"td-resource-header-open-ended",4),e&2){let t=p(2);h("resource",t.resource)}}function Ky(e,n){if(e&1&&d(0,"td-resource-header-matching-image",5),e&2){let t=p(2);h("resource",t.resource)}}function Xy(e,n){if(e&1&&d(0,"td-resource-header-alternative",5),e&2){let t=p(2);h("resource",t.resource)}}function e2(e,n){if(e&1&&d(0,"td-play-event-question-results-unique",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function t2(e,n){if(e&1&&d(0,"td-play-event-question-results-multiple",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function n2(e,n){if(e&1&&d(0,"td-play-event-question-results-true-or-false",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function i2(e,n){if(e&1&&d(0,"td-play-event-question-results-order",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function o2(e,n){if(e&1&&d(0,"td-play-event-question-results-matching-text",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function r2(e,n){if(e&1&&d(0,"td-play-event-question-results-complete-sentence",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function s2(e,n){if(e&1&&d(0,"td-play-event-question-results-wordsearch",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function a2(e,n){if(e&1&&d(0,"td-play-event-question-results-open-ended",8),e&2){let t=p(2);h("answers",t.answers)("students",t.students)}}function l2(e,n){if(e&1&&d(0,"td-play-event-question-results-matching-image",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function c2(e,n){if(e&1&&d(0,"td-play-event-question-results-alternative",7),e&2){let t=p(2);h("resource",t.resource)("answers",t.answers)("students",t.students)}}function d2(e,n){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),y(4,Uy,1,1,"td-resource-header-unique",4)(5,$y,1,1,"td-resource-header-multiple",4)(6,Wy,1,1,"td-resource-header-true-or-false",4)(7,Hy,1,1,"td-resource-header-order",5)(8,Gy,1,1,"td-resource-header-matching-text",5)(9,Jy,1,1,"td-resource-header-complete-sentence",4)(10,Zy,1,1,"td-resource-header-wordsearch",5)(11,Yy,1,1,"td-resource-header-open-ended",4)(12,Ky,1,1,"td-resource-header-matching-image",5)(13,Xy,1,1,"td-resource-header-alternative",5),a(),s(14,"div",6),y(15,e2,1,3,"td-play-event-question-results-unique",7)(16,t2,1,3,"td-play-event-question-results-multiple",7)(17,n2,1,3,"td-play-event-question-results-true-or-false",7)(18,i2,1,3,"td-play-event-question-results-order",7)(19,o2,1,3,"td-play-event-question-results-matching-text",7)(20,r2,1,3,"td-play-event-question-results-complete-sentence",7)(21,s2,1,3,"td-play-event-question-results-wordsearch",7)(22,a2,1,2,"td-play-event-question-results-open-ended",8)(23,l2,1,3,"td-play-event-question-results-matching-image",7)(24,c2,1,3,"td-play-event-question-results-alternative",7),a()()(),s(25,"div",9),d(26,"td-play-footer"),a()()),e&2){let t,i,o=p(),r=p();c(4),v((t=o.resource.resource_type_id)===r.resourceTypes.Unique?4:t===r.resourceTypes.Multiple?5:t===r.resourceTypes.TrueOrFalse?6:t===r.resourceTypes.Order?7:t===r.resourceTypes.MatchingText?8:t===r.resourceTypes.CompleteSentence?9:t===r.resourceTypes.WordSearch?10:t===r.resourceTypes.OpenEnded?11:t===r.resourceTypes.MatchingImage?12:t===r.resourceTypes.Alternative?13:-1),c(11),v((i=o.resource.resource_type_id)===r.resourceTypes.Unique?15:i===r.resourceTypes.Multiple?16:i===r.resourceTypes.TrueOrFalse?17:i===r.resourceTypes.Order?18:i===r.resourceTypes.MatchingText?19:i===r.resourceTypes.CompleteSentence?20:i===r.resourceTypes.WordSearch?21:i===r.resourceTypes.OpenEnded?22:i===r.resourceTypes.MatchingImage?23:i===r.resourceTypes.Alternative?24:-1)}}function p2(e,n){if(e&1&&y(0,d2,27,2,"div",0),e&2){let t=n;v(t.resource&&t.session?0:-1)}}var Pp=(()=>{class e{constructor(){this._store=I(J),this.session$=this._store.pipe(b(ne)),this.resource$=this._store.pipe(b(be)),this.answers$=this._store.pipe(b(Fd)),this.students$=this._store.pipe(b($e)),this.resourceTypes=fe}handleBeforeUnload(t){t.returnValue=!0}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-question-results"]],hostAttrs:[1,"block","h-screen","bg-blue-purple"],hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)},standalone:!1,decls:5,vars:14,consts:[[1,"min-h-full","flex","flex-col","bg-blue-purple"],[1,"td-event-viewer-question-results-container"],[1,"max-w-6xl","mx-auto","w-full","pt-4","pb-24","px-4","bg-blue-purple","md:pt-8"],[1,"mb-4","text-white","md:px-6"],["alternative","true",3,"resource"],[3,"resource"],[1,"bg-white","rounded-lg","py-2","md:py-4","px-3","md:px-5"],[3,"resource","answers","students"],[3,"answers","students"],[1,"td-event-viewer-question-results-footer","sticky","inset-x-0","bottom-0","z-10","pb-3","mt-auto"]],template:function(i,o){if(i&1&&(y(0,p2,1,1),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async")),i&2){let r;v((r=wt(9,Qy,A(1,1,o.session$),A(2,3,o.resource$),A(3,5,o.answers$),A(4,7,o.students$)))?0:-1,r)}},dependencies:[Nt,jt,zt,Qt,Ut,$t,Wt,Ht,Gt,Jt,sn,gp,yp,vp,xp,Cp,bp,wp,Tp,Ep,
10kp,te],styles:['.td-event-viewer-question-results-background-shadow[_ngcontent-%COMP%]{background:#fff;background:-moz-linear-gradient(0deg,rgb(255,255,255) 5%,rgba(255,255,255,0) 35%);background:-webkit-linear-gradient(0deg,rgb(255,255,255) 5%,rgba(255,255,255,0) 35%);background:linear-gradient(0deg,#fff 5%,#fff0 35%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1)}.td-event-viewer-question-results-footer[_ngcontent-%COMP%]{height:68px}'],changeDetection:0})}}return e})();u();var m2=["Timebar"],f2=(e,n,t)=>({session:e,resource:n,questionPosition:t});function h2(e,n){e&1&&(qe(0),d(1,"div",23),Le())}function _2(e,n){if(e&1&&(s(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"span",9),m(8,"m-play.47"),a(),m(9),a(),s(10,"div",10)(11,"div",11),d(12,"td-resource-type-icon",12),a(),s(13,"div",13),d(14,"td-resource-type-title",14),a()(),s(15,"div",15)(16,"div",16,0)(18,"span",17),d(19,"td-math-render",18),a(),Me(20,h2,2,0,"ng-container",19),a()(),s(21,"div",20),d(22,"div",21,1),a()()()()()(),s(24,"div",22),d(25,"td-play-footer"),a()()),e&2){let t=Ae(17),i=p(),o=p();c(9),U(" ",i.questionPosition," "),c(3),h("resourceTypeId",i.resource.resource_type_id),c(2),h("resourceTypeId",i.resource.resource_type_id),c(5),h("text",o.renderQuestionTitle(i.resource.resource_type_id,i.resource.title)),c(),h("IfIsScrollable",t)}}function g2(e,n){if(e&1&&y(0,_2,26,5,"div",2),e&2){let t=n;v(t.session&&t.resource?0:-1)}}var Dp=(()=>{class e{constructor(){this._animationBuilder=I(Ki),this._platform=I(Ft),this._store=I(J),this.session$=this._store.pipe(b(ne)),this.resource$=this._store.pipe(b(be),L(()=>this._player?.restart()),L(()=>{this._timer?.unsubscribe(),this._timer=this._getTimer()})),this.questionPosition$=this._store.pipe(b(qo))}handleBeforeUnload(t){t.returnValue=!0}ngAfterViewInit(){if(this._platform.isBrowser){let t=this._animationBuilder.build([ut("5s",mn([Re({width:"0%"}),Re({width:"100%"})]))]);this._player=t.create(this.timebar.nativeElement),this._player.play()}}ngOnDestroy(){this._player?.destroy(),this._timer?.unsubscribe()}renderQuestionTitle(t,i){switch(t){case fe.CompleteSentence:return i.replace(/@[^@]*@/g,"____");default:return i}}_getTimer(){return wn(0,1e3).pipe(We(6)).subscribe(t=>t===5&&this._syncronizeResource())}_syncronizeResource(){this._store.dispatch(g.syncronizeResource())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-wait-question"]],viewQuery:function(i,o){if(i&1&&Xe(m2,5),i&2){let r;De(r=Be())&&(o.timebar=r.first)}},hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)},standalone:!1,decls:4,vars:11,consts:[["ResourceTitleContainer",""],["Timebar",""],[1,"td-event-viewer-wait-question-container","min-h-screen","flex","flex-col","bg-blue-purple"],[1,"flex-1","flex","items-center"],[1,"container","mx-auto","h-full"],[1,"max-w-6xl","mx-auto","h-full"],[1,"flex","flex-col","justify-center","items-center","h-full","text-white"],[1,"text-white","px-4","text-center","w-full"],[1,"font-black","text-lg","mb-5","md:text-xl"],["l10nTranslate",""],[1,"text-center"],[1,"inline-block","mr-2"],[1,"h-8","w-8","text-lg",3,"resourceTypeId"],[1,"inline-block","text-white","text-lg","mb-8","md:text-xl"],[1,"mb-8",3,"resourceTypeId"],[1,"mb-16"],[1,"h-32","text-center","overflow-hidden","relative","md:h-64"],[1,"font-black","md:text-2xl"],[3,"text"],[4,"IfIsScrollable"],[1,"w-full","h-10","bg-blue-purple-light-2","rounded"],[1,"h-10","bg-light-cyan","rounded"],[1,"td-event-viewer-wait-question-footer","pb-3"],[1,"td-event-viewer-wait-question-background-shadow","absolute","inset-0"]],template:function(i,o){if(i&1&&(y(0,g2,1,1),E(1,"async"),E(2,"async"),E(3,"async")),i&2){let r;v((r=Bt(7,f2,A(1,1,o.session$),A(2,3,o.resource$),A(3,5,o.questionPosition$)))?0:-1,r)}},dependencies:[Gi,Mn,Lt,Ot,O,sn,te],styles:['.td-event-viewer-wait-question-background-shadow[_ngcontent-%COMP%]{background:#5f5afa;background:-moz-linear-gradient(0deg,rgb(95,90,250) 5%,rgba(95,90,250,0) 35%);background:-webkit-linear-gradient(0deg,rgb(95,90,250) 5%,rgba(95,90,250,0) 35%);background:linear-gradient(0deg,#5f5afa 5%,#5f5afa00 35%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#5f5afa",endColorstr="#5f5afa",GradientType=1)}.td-event-viewer-wait-question-footer[_ngcontent-%COMP%]{height:68px}'],changeDetection:0})}}return e})();u();var v2=(e,n,t,i)=>({session:e,resource:n,resources:t,questionPosition:i});function x2(e,n){e&1&&(qe(0),d(1,"div",26),Le())}function C2(e,n){if(e&1){let t=V();s(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"span",8),m(8,"m-play.47"),a(),m(9),a(),s(10,"div",9)(11,"div",10),d(12,"td-resource-type-icon",11),a(),s(13,"div",12),d(14,"td-resource-type-title",13),a()(),s(15,"div",14,0)(17,"span",15),d(18,"td-math-render",16),a(),Me(19,x2,2,0,"ng-container",17),a(),s(20,"div",18)(21,"div",19)(22,"div",20),d(23,"em",21),s(24,"span",22),m(25,"m-play.48"),a()(),s(26,"p",23),m(27,"m-play.49"),a(),s(28,"button",24),w("click",function(){P(t);let o=p(),r=p();return R(r.repeatQuestionApplied(o.resource,o.resources))}),m(29,"m-play.actions.apply"),a()()()()()()()(),s(30,"div",25),d(31,"td-play-footer"),a()()}if(e&2){let t=Ae(16),i=p(),o=p();c(9),U(" ",i.questionPosition," "),c(3),h("resourceTypeId",i.resource.resource_type_id),c(2),h("resourceTypeId",i.resource.resource_type_id),c(4),h("text",o.renderQuestionTitle(i.resource.resource_type_id,i.resource.title)),c(),h("IfIsScrollable",t)}}function b2(e,n){if(e&1&&y(0,C2,32,5,"div",1),e&2){let t=n;v(t.session&&t.resource?0:-1)}}var Bp=(()=>{class e{constructor(){this._store=I(J),this.session$=this._store.pipe(b(ne)),this.resource$=this._store.pipe(b(be)),this.resources$=this._store.pipe(b(Ue)),this.questionPosition$=this._store.pipe(b(qo))}handleBeforeUnload(t){t.returnValue=!0}renderQuestionTitle(t,i){switch(t){case fe.CompleteSentence:return i.replace(/@[^@]*@/g,"____");default:return i}}repeatQuestionApplied(t,i){this._store.dispatch(g.changeResources({resources:[...i.map(o=>o.id===t.id?j(N({},o),{viewed_at:null}):o)]})),this._store.dispatch(g.syncronizeWithSocket())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-wait-question-applied"]],hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)},standalone:!1,decls:5,vars:14,consts:[["ResourceTitleContainer",""],[1,"td-event-viewer-wait-question-container","min-h-screen","flex","flex-col","bg-blue-purple"],[1,"flex-1","flex","items-center"],[1,"container","mx-auto","h-full"],[1,"max-w-6xl","mx-auto","h-full"],[1,"flex","flex-col","justify-center","items-center","h-full","text-white"],[1,"text-white","px-4","text-center","w-full"],[1,"font-black","text-lg","mb-5","md:text-xl"],["l10nTranslate",""],[1,"text-center"],[1,"inline-block","mr-2"],[1,"h-8","w-8","text-lg",3,"resourceTypeId"],[1,"inline-block","text-white","text-lg","mb-8","md:text-xl"],[1,"mb-8",3,"resourceTypeId"],[1,"h-32","md:h-64","text-center","overflow-hidden","relative"],[1,"font-black","md:text-2xl"],[3,"text"],[4,"IfIsScrollable"],[1,"max-w-5xl","mx-auto","md:px-4"],[1,"flex","flex-col","items-center","border","border-white","rounded-lg","mt-4","p-3","md:p-10"],[1,"flex","flex-col","md:flex-row","items-center","mb-2","md:mb-4"],[1,"ai","ai-circle-info","text-amber","text-lg","mb-2","md:mb-0","md:mr-2"],["l10nTranslate","",1,"font-black","text-xl"],["l10nTranslate","",1,"mb-4","md:mb-6"],["l10nTranslate","",1,"btn","btn-outlined-deep-purple","btn-md","btn-120",3,"click"],[1,"td-event-viewer-wait-question-footer","pb-3"],[1,"td-event-viewer-wait-question-background-shadow","absolute","
10inset-0"]],template:function(i,o){if(i&1&&(y(0,b2,1,1),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async")),i&2){let r;v((r=wt(9,v2,A(1,1,o.session$),A(2,3,o.resource$),A(3,5,o.resources$),A(4,7,o.questionPosition$)))?0:-1,r)}},dependencies:[Gi,Mn,Lt,Ot,O,sn,te],styles:['.td-event-viewer-wait-question-background-shadow[_ngcontent-%COMP%]{background:#5f5afa;background:-moz-linear-gradient(0deg,rgb(95,90,250) 5%,rgba(95,90,250,0) 35%);background:-webkit-linear-gradient(0deg,rgb(95,90,250) 5%,rgba(95,90,250,0) 35%);background:linear-gradient(0deg,#5f5afa 5%,#5f5afa00 35%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#5f5afa",endColorstr="#5f5afa",GradientType=1)}.td-event-viewer-wait-question-footer[_ngcontent-%COMP%]{height:68px}'],changeDetection:0})}}return e})();u();u();var Ap=(()=>{class e{get seconds(){return this._seconds}set seconds(t){let i=fn(t);this._seconds!==i&&(this._seconds=i)}constructor(){this.finish=new Tn,this._elementRef=I(zs),this._animationBuilder=I(Ki),this._changeDetector=I(pt)}ngOnInit(){let t="cubic-bezier(1, 0, 0.45, 1.1)",i=this._animationBuilder.build([dr([ut(`${this.seconds}s ${t}`,mn([Re({borderBottomColor:"#99e1ff"}),Re({borderBottomColor:"#ea99b4"})])),ur(".td-timelapse-bar",[dr([ut(`${this.seconds}s`,mn([Re({width:"0%"}),Re({width:"100%"})])),ut(`${this.seconds}s ${t}`,mn([Re({backgroundColor:"#99e1ff"}),Re({backgroundColor:"#ea99b4"})]))])]),ur(".td-timelapse-time",[ut(`${this.seconds}s ${t}`,mn([Re({backgroundColor:"#00b5ff"}),Re({backgroundColor:"#ca0045"})]))])])]);this._player=i.create(this._elementRef.nativeElement),this._player.onStart(()=>{this.timer$=this._getTimer(),this._changeDetector.detectChanges()}),this._player.play()}ngOnDestroy(){this._player&&(this._player.destroy(),this._player=null)}_getTimer(){return wn(0,1e3).pipe(We(this.seconds+1),Se(t=>this.seconds-t),L(t=>t===0&&this.finish.emit()))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-timelapse"]],inputs:{seconds:"seconds"},outputs:{finish:"finish"},standalone:!1,decls:10,vars:3,consts:[[1,"relative"],[1,"h-4","w-full","bg-blue-grey-light-05","md:h-16"],[1,"td-timelapse-bar","h-full","bg-cyan-light-4"],[1,"absolute","inset-0"],[1,"max-w-6xl","mx-auto","h-full","px-4"],[1,"flex","justify-end","items-center","h-full"],[1,"td-timelapse-time","hidden","h-10","w-10","justify-center","items-center","rounded-full","bg-cyan","text-white","text-2xl","font-black","md:flex"]],template:function(i,o){i&1&&(s(0,"div",0)(1,"div",1),d(2,"div",2),s(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"span"),m(8),E(9,"async"),a()()()()()()()),i&2&&(c(8),M(A(9,1,o.timer$)))},dependencies:[te],encapsulation:2})}}return e})();var T2=(e,n)=>({session:e,resource:n});function E2(e,n){if(e&1&&(s(0,"div",0)(1,"div",3)(2,"div",4)(3,"span",5),m(4),a()(),s(5,"div",6)(6,"div",7),d(7,"td-player",8),a()()()()),e&2){let t=p(2);c(4),M(t.resource.title),c(3),h("src",t.resource.asset_url)}}function k2(e,n){if(e&1&&(s(0,"div",1)(1,"div",3)(2,"div",4)(3,"span",5),m(4),a()(),s(5,"div",6)(6,"div",9),d(7,"img",10),a()()()()),e&2){let t=p(2);c(4),M(t.resource.title),c(3),h("src",t.resource.asset_url,Fe)}}function P2(e,n){if(e&1&&d(0,"iframe",13),e&2){let t=p(3),i=p();h("src",i.getSanitizedUrl(t.resource.asset_url),Fi)}}function R2(e,n){if(e&1&&(s(0,"div",1)(1,"div",3)(2,"div",11)(3,"span",5),m(4),a()(),s(5,"div",6)(6,"div",12),y(7,P2,1,1,"iframe",13),a()()()()),e&2){let t=p(2);c(4),M(t.resource.title),c(3),v(t.resource.asset_url?7:-1)}}function D2(e,n){if(e&1&&(s(0,"div",2),d(1,"td-html-viewer",14),a()),e&2){let t=p(2);c(),h("src",t.resource.asset_url)}}function B2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function A2(e,n){if(e&1&&(y(0,B2,1,1,"td-play-timelapse",15),s(1,"div",16),d(2,"td-resource-header-unique",17)(3,"td-resource-render-unique",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function I2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function V2(e,n){if(e&1&&(y(0,I2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-multiple",17)(3,"td-resource-render-multiple",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function F2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function M2(e,n){if(e&1&&(y(0,F2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-true-or-false",17),s(3,"div",19),d(4,"td-resource-render-true-or-false",17),a()()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(2),h("resource",t.resource)}}function q2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function L2(e,n){if(e&1&&(y(0,q2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-order",17)(3,"td-resource-render-order",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function O2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function N2(e,n){if(e&1&&(y(0,O2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-matching-text",17)(3,"td-resource-render-matching-text",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function j2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function z2(e,n){if(e&1&&(y(0,j2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-complete-sentence",17),s(3,"td-divider",20)(4,"span",21),m(5,"m-play.71"),a()(),d(6,"td-resource-render-complete-sentence",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(4),h("resource",t.resource)}}function Q2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function U2(e,n){if(e&1&&(y(0,Q2,1,1,"td-play-timelapse",15),s(1,"div",22),d(2,"td-resource-header-wordsearch",17)(3,"td-resource-render-wordsearch",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function $2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function W2(e,n){if(e&1&&(y(0,$2,1,1,"td-play-timelapse",15),s(1,"div",16),d(2,"td-resource-header-open-ended",17)(3,"img",23),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource)}}function H2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function G2(e,n){if(e&1&&(y(0,H2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-matching-image",17)(3,"td-resource-render-matching-image",17),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource),c(),h("resource",t.resource)}}function J2(e,n){if(e&1){let t=V();s(0,"td-play-timelapse",18),w("finish",function(){P(t);let o=p(4);return R(o.questionResults())}),a()}if(e&2){let t=p(3);h("seconds",t.resource.time)}}function Z2(e,n){if(e&1&&(y(0,J2,1,1,"td-play-timelapse",15),s(1,"div",2),d(2,"td-resource-header-alternative",17)(3,"img",23),a()),e&2){let t=p(2);v(t.session.competition?0:-1),c(2),h("resource",t.resource)}}function Y2(e,n){if(e&1&&y(0,E2,8,2,"div",0)(1,k2,8,2,"div",1)(2,R2,8,2,"div",1)(3,D2,2,1,"div",2)(4,A2,4,3)(5,V2,4,3)(6,M2,5,3)(7,L2,4,3)(8,N2,4,3)(9,z2,7,3)(10,U2,4,3)(11,W2,4,2)(12,G2,4,3)(13,Z2,4,2),e&2){let t,i=p(),o=p();v((t=i.resource.resource_type_id)===o.resourceTypes.Video?0:t===o.resourceTypes.Image?1:t===o.resourceTypes.Simulator?2:t===o.resourceTypes.Text?3:t===o.resourceTypes.Unique?4:t===o.resourceTypes.Multiple?5:t===o.resourceTypes.TrueOrFalse?6:t===o.resourceTypes.Order?7:t===o.resourceTypes.MatchingText?8:t===o.resourceTypes.CompleteSentence?9:t===o.resourceTypes.WordSearch?10:t===o.resourceTypes.OpenEnded?11:t===o.resourceTypes.MatchingImage?12:t===o.resourceTypes.Alternative?13:-1)}}function K2(e,n){if(e&1&&y(0,Y2,14,1),e&2){let t=n;v(t.resource&&t.session?0:-1)}}var Ip=(()=>{class e{constructor(){this._store=I(J),this.sanitizer=I($i),this.session$=this._store.pipe(b(ne)),this.resource$=this._store.pipe(b(be)),this.resourceTypes=fe}handleBeforeUnload(t){t.returnValue=!0}questionResults(){this._store.dispatch(g.syncronizeQuestionResults())}getSanitizedUrl(t){return t?(this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t),this.safeUrl):null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-sync-resource"]],hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)},standalone:!1,decls:3,vars:8,consts:[[1,"container","mx-auto","h-full","w-full","pt-8","px-4"],[1,"gtm-course-play-image","max-w-6xl","mx-auto","h-full","w-full","pt-8","px-4"],[1,"max-w-6xl","mx-auto","w-full","pt-8","pb-24","px-4"],[1,"flex","flex-col","h-full"],[1,"mb-8"],[1,"font-black","text-2xl","text-blue-black"],[1,"flex-1","text-center"],[1,"h-full","w-full","pb-24"],["fullscreen","false","tdPlayer","",3,"src"],[1,"flex","items-center","h-full","justify-center","pb-24"],["draggable","false","alt","",1,"mx-auto","h-auto","max-w-full","max-h-full",3,"src"],[1,"mb-8","text-center"],[1,"flex","items-center","h-full","justify-center"],["allowfullscreen","",1,"h-full","w-full",2,"border","none",3,"src"],[3,"src"],[3,"seconds"],[1,"max-w-6xl","mx-auto","w-full","pt-4","pb-24","px-4","md:pt-8"],[3,"resource"],[3,"finish","seconds"],[1,"max-w-xl","mx-auto"],[1,"pt-2","pb-4","md:pt-8","md:pb-8","md:px-4"],["l10nTranslate","",1,"text-xs","px-4","text-blue-black-light-8"],[1,"max-w-6xl","mx-auto","w-full","pt-8","pb-24","px-2","md:px-4","lg:px-10"],["src","assets/images/0036.png","alt","Alternative answer",1,"mx-auto","mt-8","md:mt-12"]],template:function(i,o){if(i&1&&(y(0,K2,1,1),E(1,"async"),E(2,"async")),i&2){let r;v((r=et(5,T2,A(1,1,o.session$),A(2,3,o.resource$)))?0:-1,r)}},dependencies:[bl,Sl,Nt,jt,zt,Qt,Ut,$t,Wt,Ht,Gt,Jt,_l,gl,po,uo,yl,vl,mo,fo,ro,O,Ap,te],encapsulation:2,changeDetection:0})}}return e})();u();u();var ev=(e,n)=>({state:e,session:n}),tv=e=>({v1:e});function nv(e,n){if(e&1){let t=V();s(0,"div",0)(1,"div",1)(2,"div",2),d(3,"em",3),s(4,"span",4),m(5,"m-play.0"),a()(),d(6,"div",5),s(7,"button",6),w("click",function(){let o=P(t),r=p();return R(r.exitBrainstorming(o.state))}),d(8,"em",7),a(),s(9,"button",8),w("click",function(){let o=P(t),r=p();return R(r.exitBrainstorming(o.state))}),m(10,"m-play.actions.exit-board"),a(),d(11,"div",9),s(12,"button",10),w("click",function(){P(t);let o=p();return R(o.finishSession())}),m(13,"m-play.1"),a()()()}e&2&&(c(4),h("params",oe(1,tv,n.session.code)))}var Vp=(()=>{class e{constructor(){this._dialog=I(Ie),this._store=I(J),this.session$=this._store.pipe(b(ne)),this.state$=this._store.pipe(b(Qe))}exitBrainstorming(t){switch(t.data?.previous_event_type){case de.Results:this._store.dispatch(g.syncronizeQuestionResults());break;default:this._store.dispatch(g.syncronizeResource());break}}finishSession(){Ho(this._dialog).afterClosed().subscribe(i=>i&&this._store.dispatch(g.finishSession()))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-brainstorming-footer"]],standalone:!1,decls:3,vars:8,consts:[[1,"max-w-xl","lg:max-w-2xl","w-full","h-full","mx-auto","px-1","md:px-4"],[1,"w-full","h-full","rounded-lg","shadow-md","flex","justify-between","items-center","px-1","md:px-4","bg-white"],[1,"flex","items-center","text-blue-black"],[1,"td-brainstorming-footer-tomi-icon","ai","ai-tomi","mr-2"],["l10nTranslate","",1,"hidden","md:block","font-black","text-xl",3,"params"],[1,"hidden","md:block","h-8","w-px","border-r","border-blue-black-light-2","mx-3"],[1,"md:hidden","btn-icon","btn-flat-blue-black","btn-md",3,"click"],[1,"ai","ai-close"],["l10nTranslate","",1,"hidden","md:block","btn","btn-flat-blue-black","btn-md","lg:btn-150",3,"click"],[1,"h-8","w-px","border-r","border-blue-black-light-2","mx-3"],["l10nTranslate","",1,"btn","btn-flat-blue-black","btn-md","lg:btn-150",3,"click"]],template:function(i,o){if(i&1&&(y(0,nv,14,3,"div",0),E(1,"async"),E(2,"async")),i&2){let r;v((r=et(5,ev,A(1,1,o.state$),A(2,3,o.session$)))?0:-1,r)}},dependencies:[O,te],styles:[".td-brainstorming-footer-tomi-icon[_ngcontent-%COMP%]{font-size:30px}"]})}}return e})();var ov=["stickyList"],rv=["Board"],sv=["StickyGroupTemplate"],av=(e,n,t)=>({state:e,answers:n,isMobile:t});function lv(e,n){if(e&1){let t=V();s(0,"div",22),w("cdkDragDropped",function(o){P(t);let r=p(2),l=p();return R(l.onDragDropped(o,r.isMobile))})("cdkDragReleased",function(o){P(t);let r=p(3);return R(r.onDragReleased(o))}),s(1,"div",23)(2,"p",24),m(3),a()(),s(4,"span",25),m(5),a()()}if(e&2){let t=n.$implicit,i=p(3);rt("background-color",i.colors[t.color].background),h("cdkDragData",t),c(3),M(t.answer),c(2),U(" ",t.student.nickname," ")}}function cv(e,n){if(e&1&&le(0,lv,6,5,"div",21,$s().trackBy,!0),e&2){let t=p();
10ce(t.answers)}}function dv(e,n){e&1&&(s(0,"div",26),d(1,"img",27),s(2,"p",28),m(3,"m-play.3"),a()(),s(4,"div",29),d(5,"em",30),a())}function pv(e,n){e&1&&(s(0,"div",19),d(1,"img",31),s(2,"p",28),m(3,"m-play.4"),a()())}function uv(e,n){if(e&1){let t=V();s(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6,1)(5,"div",7),d(6,"em",8),a(),s(7,"h1",9),m(8),a(),s(9,"div",10)(10,"span",11),m(11,"m-play.2"),a(),s(12,"td-slide-toggle-switch",12),w("change",function(o){let r=P(t),l=p();return R(l.toggleClosingBrainstorming(o,r.state.data.topic))}),a()(),y(13,cv,2,0)(14,dv,6,0),a(),s(15,"div",13),d(16,"td-play-event-viewers-brainstorming-footer"),a()(),s(17,"div",14)(18,"div",15,2)(20,"div",16),d(21,"td-brand-logo",17)(22,"td-brand-text"),a(),s(23,"h1",18),m(24),a(),y(25,pv,4,0,"div",19),a(),s(26,"div",20),d(27,"td-play-event-viewers-brainstorming-footer"),a()()()()}if(e&2){let t=n,i=p();c(3),h("cdkDropListData",t.answers)("cdkDropListConnectedTo",i.connectedTo)("cdkDropListLockAxis",t.isMobile?"y":null),c(5),M(t.state.data.topic),c(4),h("checked",t.state.data.open),c(),v(t.answers.length?13:14),c(11),M(t.state.data.topic),c(),v(i.stickyGroups.size==0?25:-1)}}function mv(e,n){if(e&1){let t=V();s(0,"div",33)(1,"input",36),Js("ngModelChange",function(o){P(t);let r=p().$implicit,l=p();return Gs(l.stickyGroups.get(r).name,o)||(l.stickyGroups.get(r).name=o),R(o)}),w("blur",function(){P(t);let o=p(2);return R(o.saveStickyGroupsPositions())}),a(),d(2,"em",37),a()}if(e&2){let t=p().$implicit,i=p();c(),Hs("ngModel",i.stickyGroups.get(t).name)}}function fv(e,n){if(e&1){let t=V();s(0,"div",38),w("cdkDragDropped",function(o){P(t);let r=p(2);return R(r.onDragDropped(o))})("cdkDragReleased",function(o){P(t);let r=p(2);return R(r.onDragReleased(o))}),s(1,"div",23)(2,"p",24),m(3),a()(),s(4,"span",25),m(5),a()()}if(e&2){let t=n.$implicit,i=p(2);rt("background-color",i.colors[t.color].background),h("cdkDragData",t),c(3),M(t.answer),c(2),M(t.student.nickname)}}function hv(e,n){if(e&1){let t=V();s(0,"div",32),w("cdkDragReleased",function(o){P(t);let r=p();return R(r.onDragDropListReleased(o))}),y(1,mv,3,1,"div",33),s(2,"div",34),le(3,fv,6,5,"div",35,he),a()()}if(e&2){let t,i,o,r,l=n.$implicit,f=p();me("bg-background-banner",((t=f.stickyGroups.get(l))==null||t.items==null?null:t.items.length)>1),h("id",l)("cdkDropListData",(i=f.stickyGroups.get(l))==null?null:i.items)("cdkDropListConnectedTo",f.connectedTo),c(),v(((o=f.stickyGroups.get(l))==null||o.items==null?null:o.items.length)>1?1:-1),c(2),ce((r=f.stickyGroups.get(l))==null?null:r.items)}}var Fp=(()=>{class e{handleBeforeUnload(t){t.returnValue=!0}constructor(t,i,o,r,l,f,_,C){this._document=t,this._translationService=i,this._screenBreakpoints=o,this._viewContainerRef=r,this._changeDetector=l,this._renderer=f,this._dragDrop=_,this._store=C,this.answers$=this._store.pipe(b(zd)),this.state$=this._store.pipe(b(Qe)),this.isMobile$=this._screenBreakpoints.mobile$.pipe(Se(S=>S.matches)),this.stickyGroups=new Map,this.colors=ya,this._groupNumber=1}ngAfterViewInit(){this.connectedTo=[this.stickyList.nativeElement.id],this._store.pipe(b(vi),We(1)).subscribe(t=>{t.forEach(({id:i,items:o,point:r,name:l})=>this._createStickyGroup(i,o,r,l)),this._changeDetector.markForCheck()})}trackBy(t,i){return i?.id}onDragDropped(t,i){if(t.isPointerOverContainer||i){if(t.previousContainer===t.container){t.container.data.length===1&&t.container.id!==this.stickyList.nativeElement.id&&this._moveStickyGroup(t.container.id,this.insertionPoint),ol(t.container.data,t.previousIndex,t.currentIndex),t.container.id!==this.stickyList.nativeElement.id&&this.saveStickyGroupsPositions();return}hr(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex),t.container.id!==this.stickyList.nativeElement.id&&this._setStickyGroupName(t.container.id),!t.previousContainer.data.length&&t.previousContainer.id!==this.stickyList.nativeElement.id&&this._removeStickyGroup(t.previousContainer.id),this.saveStickyGroupsPositions();return}if(this.insertionPoint=this.insertionPoint??t.dropPoint,t.previousContainer.data.length===1&&t.previousContainer.data[0].id===t.item.data.id&&t.previousContainer.id!==this.stickyList.nativeElement.id){this._moveStickyGroup(t.previousContainer.id,this.insertionPoint);return}let o="sticky-group-"+Date.now(),r=this._createStickyGroup(o,[],this.insertionPoint);hr(t.previousContainer.data,r.data,t.previousIndex,0),this.saveStickyGroupsPositions()}onDragReleased(t){let o=this._document.querySelector(".cdk-drag-preview")?.style?.transform||"",l=o.substring(o.indexOf("(")+1,o.indexOf(")")).replace(/px/g,"").split(",").map(Number);this.insertionPoint=l.length>1?{x:l[0],y:l[1]}:null}onDragDropListReleased(t){let{x:i,y:o}=t.source.element.nativeElement.getBoundingClientRect();this._updateStickyGroupPosition(t.source.element.nativeElement.id,{x:i,y:o})}_createStickyGroup(t,i,o,r){this.stickyGroups.set(t,{id:t,name:r,point:o,items:[...i]});let f=this._viewContainerRef.createEmbeddedView(this.stickyGroupTemplate,{$implicit:t}).rootNodes[0];this._renderer.addClass(f,"absolute"),this._renderer.setStyle(f,"left",o.x+"px"),this._renderer.setStyle(f,"top",o.y+"px"),this._renderer.appendChild(this.board.nativeElement,f);let _=this._dragDrop.createDropList(f);return _.data=this.stickyGroups.get(t).items,this.connectedTo=[...this.connectedTo,t],_}_setStickyGroupName(t){this.stickyGroups.get(t).name=this.stickyGroups.get(t)?.name??this._translationService.translate("play.text-90",{v1:this._groupNumber++})}_removeStickyGroup(t){let i=this._document.getElementById(t);this._renderer.removeChild(i.parentNode,i),this.stickyGroups.delete(t)}_moveStickyGroup(t,i){let o=this._document.getElementById(t);this._renderer.setStyle(o,"left",i.x-7.5+"px"),this._renderer.setStyle(o,"top",i.y+"px"),this._updateStickyGroupPosition(t,i)}_updateStickyGroupPosition(t,i){this.stickyGroups.has(t)&&(this.stickyGroups.get(t).point=i),this.saveStickyGroupsPositions()}saveStickyGroupsPositions(){let t=Array.from(this.stickyGroups.values(),r=>{var l=r,{items:i}=l,o=Vs(l,["items"]);return j(N({},o),{items:[...i]})});this._store.dispatch(g.changeBrainstormingAnswersPositions({brainstormingAnswersPositions:t})),this._store.dispatch(g.saveBrainstormingAnswersPositions())}toggleClosingBrainstorming(t,i){this._store.dispatch(g.syncronizeBrainstorming({topic:i,open:t.checked}))}static{this.\u0275fac=function(i){return new(i||e)(D(Ii),D(mt),D(Ba),D(Us),D(pt),D(Mi),D(rl),D(J))}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-brainstorming"]],viewQuery:function(i,o){if(i&1&&Xe(ov,5)(rv,5)(sv,5),i&2){let r;De(r=Be())&&(o.stickyList=r.first),De(r=Be())&&(o.board=r.first),De(r=Be())&&(o.stickyGroupTemplate=r.first)}},hostBindings:function(i,o){i&1&&w("beforeunload",function(l){return o.handleBeforeUnload(l)},He)},standalone:!1,decls:6,vars:11,consts:[["StickyGroupTemplate",""],["stickyList",""],["Board",""],[1,"gtm-toolbar-brainstorming","h-screen","flex","flex-col"],[1,"td-brainstorming-container","flex","grow","overflow-hidden","select-none"],[1,"shrink-0","w-full","md:w-60"],["cdkDropList","","id","stickyList",1,"td-brainstorming-sticky-group","w-full","h-full","relative","bg-white","md:bg-background-banner","px-1","pt-1","pb-20","md:pb-1","overflow-y-auto","z-10","scrollbar","not-border-radius",3,"cdkDropListData","cdkDropListConnectedTo","cdkDropListLockAxis"],[1,"md:hidden","flex","justify-center","items-center","pt-2","pb-3"],[1,"ai","ai-tomi","text-2xl","text-blue-black-light-2"],[1,"md:hidden","font-black","text-xl","text-center","px-4","mb-6"],[1,"flex","justify-around","items-center","my-3"],["l10nTranslate","",1,"text-blue-black","mr-2"],["labelPosition","before",3,"change","checked"],[1,"td-brainstorming-footer","md:hidden","sticky","inset-x-0","bottom-0","z-10","pb-3"],[1,"h-full","hidden","md:flex","flex-col","grow","p-1"],[1,"td-brainstorming-board","h-full"],[1,"flex","justify-center","items-center","text-blue-black-light-2","py-4"],[1,"mr-1"],[1,"font-black","text-xl","text-center","mt-4","px-14"],[1,"w-full","h-full","flex","flex-col","justify-center","items-center"],[1,"td-brainstorming-footer","sticky","inset-x-0","bottom-0","z-10","pb-3"],["cdkDragBoundary",".td-brainstorming-container","cdkDrag","",1,"td-brainstorming-sticky-note","w-full","md:w-56","flex","flex-col","justify-center","items-center","rounded","shadow","pt-2","px-2","mb-2",3,"background-color","cdkDragData"],["cdkDragBoundary",".td-brainstorming-container","cdkDrag","",1,"td-brainstorming-sticky-note","w-full","md:w-56","flex","flex-col","justify-center","items-center","rounded","shadow","pt-2","px-2","mb-2",3,"cdkDragDropped","cdkDragReleased","cdkDragData"],[1,"grow","flex","items-end"],[1,"font-black","text-center"],[1,"self-end","w-2/3","text-xs","text-right","text-blue-black-light-4","italic","truncate","pt-2","pb-1"],[1,"md:hidden","w-full","flex","flex-col","justify-center","items-center","pt-10","text-blue-black"],["src","assets/images/0055.png","alt","",1,"w-24","mb-14"],["l10nTranslate","",1,"text-center"],[1,"td-brainstorming-sticky-list-empty","hidden","md:block","absolute","
10inset-x-0","text-center"],[1,"ai","ai-file","text-4xl","text-background-banner-2"],["src","assets/images/0054.png","alt","",1,"mb-6"],["cdkDrag","","cdkDropList","","cdkDragBoundary",".td-brainstorming-board",1,"td-brainstorming-sticky-group","max-h-screen","rounded-lg","overflow-y-auto",3,"cdkDragReleased","id","cdkDropListData","cdkDropListConnectedTo"],["cdkDragHandle","",1,"w-full","flex","justify-between","items-center","rounded-t-lg","px-3","py-1","cursor-move"],[1,"px-2"],["cdkDragBoundary",".td-brainstorming-container","cdkDrag","",1,"td-brainstorming-sticky-note","w-56","flex","flex-col","justify-center","items-center","rounded","shadow","pt-2","px-2","mb-2",3,"background-color","cdkDragData"],[1,"w-1/2","font-black","text-xs","text-blue-black","p-1","rounded-sm","bg-transparent","focus:bg-background-banner-2","focus:outline-none",3,"ngModelChange","blur","ngModel"],[1,"ai","ai-drag","text-blue-black-light-8"],["cdkDragBoundary",".td-brainstorming-container","cdkDrag","",1,"td-brainstorming-sticky-note","w-56","flex","flex-col","justify-center","items-center","rounded","shadow","pt-2","px-2","mb-2",3,"cdkDragDropped","cdkDragReleased","cdkDragData"]],template:function(i,o){if(i&1&&(y(0,uv,28,8,"div",3),E(1,"async"),E(2,"async"),E(3,"async"),Me(4,hv,5,6,"ng-template",null,0,un)),i&2){let r;v((r=Bt(7,av,A(1,1,o.state$),A(2,3,o.answers$),A(3,5,o.isMobile$)))?0:-1,r)}},dependencies:[En,Mt,ua,ll,al,sl,qn,ht,Zt,O,Vp,te],styles:[".td-brainstorming-sticky-list-empty[_ngcontent-%COMP%]{top:50%;margin-top:-26px}.td-brainstorming-sticky-note[_ngcontent-%COMP%]{min-height:4.13rem;transition:box-shadow .2s cubic-bezier(0,0,.2,1);box-shadow:0 1px 3px #22233a33}.td-brainstorming-sticky-note[_ngcontent-%COMP%]:active{box-shadow:0 3px 7px #22233a33}.td-brainstorming-footer[_ngcontent-%COMP%]{height:68px}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.td-brainstorming-sticky-group.cdk-drop-list-dragging[_ngcontent-%COMP%] .td-brainstorming-sticky-note[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}}return e})();u();var gv=e=>({state:e});function yv(e,n){e&1&&(s(0,"span",16),m(1,"m-play.brainstorming.validation.topic.required"),a())}function vv(e,n){if(e&1){let t=V();s(0,"div",1)(1,"div",2),d(2,"td-brand-logo",3)(3,"td-brand-text"),a(),d(4,"img",4),s(5,"h1",5),m(6,"m-play.44"),a(),s(7,"p",6),m(8,"m-play.45"),a(),s(9,"div",7),d(10,"em",8),s(11,"p",9),m(12,"m-play.46"),a()(),s(13,"form",10),w("ngSubmit",function(){P(t);let o=p();return R(o.submit())}),s(14,"td-form-field",11)(15,"td-label",12),m(16,"m-play.brainstorming.topic"),a(),d(17,"textarea",13,0),s(19,"td-hint",14)(20,"div",15),y(21,yv,2,0,"span",16),s(22,"span",17),m(23),a()()()(),s(24,"div",18)(25,"button",19),w("click",function(){let o=P(t),r=p();return R(r.cancel(o.state))}),m(26,"m-play.actions.cancel"),a(),s(27,"button",20),m(28,"m-play.actions.accept"),a()()()()}if(e&2){let t=Ae(18),i=p();c(13),h("formGroup",i.form),c(8),v(i.topic.invalid&&(i.topic.dirty||i.topic.touched)&&i.topic.errors.required?21:-1),c(2),U("",(t.value==null?null:t.value.length)||0,"/200"),c(4),h("disabled",!i.form.valid)}}var Mp=(()=>{class e{constructor(){this._store=I(J),this.state$=this._store.pipe(b(Qe)),this._form=ga()}get form(){return this._form}get topic(){return this._form.get("topic")}cancel(t){switch(t.data?.previous_event_type){case de.Results:this._store.dispatch(g.syncronizeQuestionResults());break;default:this._store.dispatch(g.syncronizeResource());break}}submit(){if(this.form.valid){let{topic:t}=this.form.value;this._store.dispatch(g.syncronizeBrainstorming({topic:t,open:!0}))}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=T({type:e,selectors:[["td-play-event-viewers-wait-brainstorming"]],standalone:!1,decls:2,vars:5,consts:[["TopicInput",""],[1,"max-w-xl","flex","flex-col","items-center","mx-auto","py-2","md:py-6","text-blue-black"],[1,"flex","justify-center","items-center","text-blue-black-light-2","mb-16"],[1,"mr-1"],["src","assets/images/0053.png","alt","",1,"w-28","md:w-auto","mb-8"],["l10nTranslate","",1,"font-black","text-3xl","mb-3"],["l10nTranslate","",1,"text-center","px-4","mb-8","md:mb-12"],[1,"hidden","md:flex","items-center","text-center","text-blue-black-light-8","mb-10"],[1,"ai","ai-information","mr-2"],["l10nTranslate","",1,"text-xs"],[1,"w-full","px-1",3,"ngSubmit","formGroup"],["appearance","underline-fill",1,"w-full"],["l10nTranslate",""],["formControlName","topic","maxlength","200","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","5","tdInput",""],[1,"w-full"],[1,"only-one-error","flex","justify-between"],["l10nTranslate","",1,"error-message","text-red","text-xs"],[1,"text-blue-black-light-8","ml-auto"],[1,"flex","justify-center","items-center","pt-6"],["l10nTranslate","",1,"btn","btn-md","btn-outlined-deep-purple","mr-2","btn-120","md:btn-150",3,"click"],["type","submit","l10nTranslate","",1,"btn","btn-md","btn-contained-deep-purple","ml-2","btn-120","md:btn-150",3,"disabled"]],template:function(i,o){if(i&1&&(y(0,vv,29,4,"div",1),E(1,"async")),i&2){let r;v((r=oe(3,gv,A(1,1,o.state$)))?0:-1,r)}},dependencies:[Pn,En,Mt,kn,Hi,Dn,Rn,to,Xi,eo,no,io,ht,Zt,O,te],encapsulation:2})}}return e})();
10var Cv=(e,n,t,i,o,r,l,f,_)=>({subscription:e,session:n,state:t,students:i,allStudents:o,isMdScreen:r,drawerTool:l,disableTools:f,isLoadingModule:_}),qp=(e,n,t,i)=>[e,n,t,i];function bv(e,n){e&1&&d(0,"td-play-event-viewers-settings")}function wv(e,n){e&1&&d(0,"td-play-event-viewers-idle")}function Sv(e,n){e&1&&d(0,"td-play-event-viewers-wait-question")}function Tv(e,n){e&1&&(d(0,"td-play-event-viewers-sync-resource",12),s(1,"div",13),d(2,"td-play-footer"),a())}function Ev(e,n){e&1&&d(0,"td-play-event-question-results")}function kv(e,n){e&1&&d(0,"td-play-event-viewers-class-finished")}function Pv(e,n){e&1&&d(0,"td-play-event-viewers-wait-question-applied")}function Rv(e,n){e&1&&d(0,"td-play-event-viewers-wait-brainstorming")}function Dv(e,n){e&1&&d(0,"td-play-event-viewers-brainstorming")}function Bv(e,n){if(e&1){let t=V();qe(0),s(1,"button",21),E(2,"translate"),w("click",function(){P(t);let o=p(7);return R(o.openPoll())}),s(3,"div",22),d(4,"em",23),a(),d(5,"div",17),a(),Le()}if(e&2){let t=p(6),i=p();c(),me("td-play-toolbar-btn-selected",t.drawerTool==i.drawerTools.Poll),h("matTooltip",dt(Te(2,5,"m-play.52",i.locale.language)))("disabled",t.disableTools)}}function Av(e,n){e&1&&(s(0,"a",24)(1,"div",22),d(2,"em",23),s(3,"div",25),d(4,"em",26),a()(),d(5,"div",17),a())}function Iv(e,n){if(e&1){let t=V();qe(0),s(1,"button",27),E(2,"translate"),w("click",function(){P(t);let o=p(6),r=p();return R(r.openRandomSelection(o.allStudents))}),s(3,"div",28),d(4,"em",29),a()(),s(5,"button",30),E(6,"translate"),w("click",function(){P(t);let o=p(6),r=p();return R(r.openBrainstorming(o.state))}),s(7,"div",31),d(8,"em",32),a()(),Le()}if(e&2){let t=p(6),i=p();c(),h("matTooltip",dt(Te(2,6,"m-play.60",i.locale.language)))("disabled",(t.allStudents==null?null:t.allStudents.length)<1||t.disableTools),c(4),h("matTooltip",dt(Te(6,9,"m-play.44",i.locale.language)))("disabled",t.disableTools)}}function Vv(e,n){e&1&&(s(0,"a",33)(1,"div",34),d(2,"em",29),s(3,"div",25),d(4,"em",26),a()()(),s(5,"a",35)(6,"div",31),d(7,"em",32),s(8,"div",25),d(9,"em",26),a()()())}function Fv(e,n){if(e&1){let t=V();s(0,"div",11)(1,"button",14),E(2,"translate"),w("click",function(){P(t);let o=p(6);return R(o.openStudentList())}),s(3,"div",15),d(4,"em",16),a(),d(5,"div",17),a(),Me(6,Bv,6,8,"ng-container",18)(7,Av,6,0,"ng-template",null,1,un),d(9,"div",19),s(10,"div",20),Me(11,Iv,9,12,"ng-container",18)(12,Vv,10,0,"ng-template",null,2,un),a()()}if(e&2){let t=Ae(8),i=Ae(13),o=p(5),r=p();c(),me("td-play-toolbar-btn-selected",o.drawerTool==r.drawerTools.Students),h("matTooltip",dt(Te(2,10,"m-play.7",r.locale.language))),c(5),h("tdAllowedWithSubType",wt(13,qp,r.planTypes.Premium,r.planTypes.ProPlus,r.planTypes.Pro,r.planTypes.FreeTrial))("tdAllowedWithSubTypeSubscription",o.subscription)("tdAllowedWithSubTypeElse",t),c(5),h("tdAllowedWithSubType",wt(18,qp,r.planTypes.Premium,r.planTypes.ProPlus,r.planTypes.Pro,r.planTypes.FreeTrial))("tdAllowedWithSubTypeSubscription",o.subscription)("tdAllowedWithSubTypeElse",i)}}function Mv(e,n){if(e&1){let t=V();s(0,"mat-sidenav-container",4)(1,"mat-sidenav",5,0)(3,"td-play-student-list",6),w("close",function(){P(t);let o=Ae(2);return R(o.close())}),a(),s(4,"td-play-poll",7),w("close",function(){P(t);let o=Ae(2);return R(o.close())}),a()(),s(5,"mat-sidenav-content",8)(6,"div",9)(7,"div",10),y(8,Sv,1,0,"td-play-event-viewers-wait-question")(9,Tv,3,0)(10,Ev,1,0,"td-play-event-question-results")(11,kv,1,0,"td-play-event-viewers-class-finished")(12,Pv,1,0,"td-play-event-viewers-wait-question-applied")(13,Rv,1,0,"td-play-event-viewers-wait-brainstorming")(14,Dv,1,0,"td-play-event-viewers-brainstorming"),a(),y(15,Fv,14,23,"div",11),a()()()}if(e&2){let t,i=p(4),o=p();c(),h("mode",i.isMdScreen?"side":"over"),c(2),me("hidden",i.drawerTool!=o.drawerTools.Students),h("students",i.students),c(),me("hidden",i.drawerTool!=o.drawerTools.Poll),h("disabled",i.disableTools),c(4),v((t=i.state.event_type)===o.eventTypes.GetReady?8:t===o.eventTypes.Sync?9:t===o.eventTypes.Results?10:t===o.eventTypes.Finished?11:t===o.eventTypes.WaitApplied?12:t===o.eventTypes.WaitBrainstorming?13:t===o.eventTypes.Brainstorming?14:-1),c(7),v(i.state.event_type!=o.eventTypes.Finished&&i.state.event_type!=o.eventTypes.WaitBrainstorming?15:-1)}}function qv(e,n){if(e&1&&y(0,Mv,16,9,"mat-sidenav-container",4),e&2){let t=p(3);v(t.state?0:-1)}}function Lv(e,n){if(e&1&&y(0,wv,1,0,"td-play-event-viewers-idle")(1,qv,1,1),e&2){let t=p(2);v(t.session.started_at===null?0:1)}}function Ov(e,n){if(e&1&&y(0,bv,1,0,"td-play-event-viewers-settings")(1,Lv,2,1),e&2){let t=p();v(t.session?1:0)}}function Nv(e,n){e&1&&(s(0,"div",3),d(1,"td-loader"),a())}function jv(e,n){if(e&1&&y(0,Ov,2,1)(1,Nv,2,0,"div",3),e&2){let t=p();v(!n.isLoadingModule&&t.isBrowser?0:1)}}var Lp=(()=>{class e{get isBrowser(){return this._platform.isBrowser}get eventTypes(){return this._eventTypes}get planTypes(){return ka}constructor(t,i,o,r,l,f,_,C){this._document=t,this.locale=i,this._breakpointObserver=o,this._renderer=r,this._platform=l,this._dialog=f,this._store=_,this._meta=C,this.subscription$=this._store.pipe(b(Td)),this.session$=this._store.pipe(b(ne)),this.state$=this._store.pipe(b(Qe),L(S=>S?.event_type==de.Finished&&this.drawer?.close())),this.students$=this._store.pipe(b(yt)),this.allStudents$=this._store.pipe(b($e)),this.isLoadingModule$=this._store.pipe(b(Ed)),this.drawerTool$=this._store.pipe(b(Rd)),this.disableTools$=this._store.pipe(b(Ld)),this.isMdScreen$=this._breakpointObserver.observe("(min-width: 768px)").pipe(Se(S=>S.matches)),this.drawerTools=Bn,this._eventTypes=de}
10ngOnInit(){this._renderer.setStyle(this._document.body,"overscroll-behavior","none"),this._renderer.addClass(this._document.documentElement,"notranslate"),this._renderer.setAttribute(this._document.documentElement,"translate","no")}ngOnDestroy(){this._renderer.setStyle(this._document.body,"overscroll-behavior","initial"),this._meta.removeTag("name='google'"),this._renderer.removeClass(this._document.documentElement,"notranslate"),this._renderer.removeAttribute(this._document.documentElement,"translate")}openStudentList(){this._store.dispatch(g.changeDrawerTool({drawerTool:Bn.Students})),this.drawer.open()}openPoll(){this._store.dispatch(g.changeDrawerTool({drawerTool:Bn.Poll})),this.drawer.open()}openRandomSelection(t){Ud(this._dialog,{students:t})}openBrainstorming(t){if(this.drawer.close(),t.event_type===de.Brainstorming){$d(this._dialog).afterClosed().subscribe(o=>o&&this._store.dispatch(g.syncronizeWaitBrainstorming()));return}this._store.dispatch(g.syncronizeWaitBrainstorming())}static{this.\u0275fac=function(i){return new(i||e)(D(Ii),D(tt),D(An),D(Mi),D(Ft),D(Ie),D(J),D(Ui))}}static{this.\u0275cmp=T({type:e,selectors:[["ng-component"]],viewQuery:function(i,o){if(i&1&&Xe(so,5),i&2){let r;De(r=Be())&&(o.drawer=r.first)}},standalone:!1,decls:10,vars:29,consts:[["Drawer",""],["BlockPollTemplate",""],["BlockBrainstormingTemplate",""],[1,"h-screen","w-full","flex","justify-center","items-center"],[1,"h-screen"],["position","end",1,"w-full","md:max-w-xs","xl:max-w-sm",3,"mode"],[3,"close","students"],[3,"close","disabled"],[1,"td-play-sidenav-content"],[1,"w-full","flex"],[1,"h-screen","grow","flex","flex-col","relative","overflow-x-hidden","overflow-y-auto","scrollbar","not-border-radius"],[1,"w-14","bg-white","shadow-md","py-2","z-10"],[1,"grow"],[1,"td-play-footer","shrink-0","sticky","inset-x-0","bottom-0","z-10","bg-transparent","pb-3","mt-auto"],[1,"td-play-toolbar-btn","flex","justify-end","items-center","h-12","ml-auto","focus:outline-none",3,"click","matTooltip"],[1,"td-play-toolbar-btn-type-1","flex","items-center","justify-center","text-blue-black-light-8","rounded"],[1,"ai","ai-circle-user"],[1,"td-play-toolbar-btn-indicator","h-full","bg-deep-purple","rounded-l-sm"],[4,"tdAllowedWithSubType","tdAllowedWithSubTypeSubscription","tdAllowedWithSubTypeElse"],[1,"h-px","border-t","border-blue-black-light-2","mt-2","mb-5","mx-3"],[1,"flex","flex-col","items-center"],[1,"td-play-toolbar-btn","flex","justify-end","items-center","h-12","ml-auto","focus:outline-none",3,"click","matTooltip","disabled"],[1,"td-play-toolbar-btn-type-1","flex","items-center","justify-center","text-blue-black-light-8","rounded","relative"],[1,"ai","ai-circle-chart"],["routerLink","/pricing/teacher","target","_blank",1,"td-play-toolbar-btn","flex","justify-end","items-center","h-12","ml-auto","focus:outline-none"],[1,"h-5","w-5","flex","justify-center","items-center","bg-amber","rounded-full","shadow","absolute","-top-1","-right-1"],[1,"ai","ai-premium","text-blue-black","text-xs"],[1,"td-play-toolbar-btn","focus:outline-none","mb-4",3,"click","matTooltip","disabled"],[1,"td-play-toolbar-btn-type-2","flex","items-center","justify-center","bg-cyan","text-white","rounded-full"],[1,"ai","ai-user-random"],[1,"td-play-toolbar-btn","focus:outline-none",3,"click","matTooltip","disabled"],[1,"td-play-toolbar-btn-type-2","flex","items-center","justify-center","bg-amber","text-white","rounded-full","relative"],[1,"ai","ai-lightbulb"],["routerLink","/pricing/teacher","target","_blank",1,"td-play-toolbar-btn","focus:outline-none","mb-4"],[1,"td-play-toolbar-btn-type-2","flex","items-center","justify-center","bg-cyan","text-white","rounded-full","relative"],["routerLink","/pricing/teacher","target","_blank",1,"td-play-toolbar-btn","focus:outline-none"]],template:function(i,o){if(i&1&&(y(0,jv,2,1),E(1,"async"),E(2,"async"),E(3,"async"),E(4,"async"),E(5,"async"),E(6,"async"),E(7,"async"),E(8,"async"),E(9,"async")),i&2){let r;v((r=Ni(19,Cv,[A(1,1,o.subscription$),A(2,3,o.session$),A(3,5,o.state$),A(4,7,o.students$),A(5,9,o.allStudents$),A(6,11,o.isMdScreen$),A(7,13,o.drawerTool$),A(8,15,o.disableTools$),A(9,17,o.isLoadingModule$)]))?0:-1,r)}},dependencies:[It,so,el,Xa,In,Pa,oo,Hd,Wo,sn,a0,up,fp,Pp,Dp,Bp,Ip,Fp,Mp,te,ft],styles:[".td-play-sidenav-content[_ngcontent-%COMP%]{overflow:hidden}.td-play-toolbar-btn-type-1[_ngcontent-%COMP%], .td-play-toolbar-btn-type-2[_ngcontent-%COMP%]{width:40px;height:40px}.td-play-toolbar-btn-indicator[_ngcontent-%COMP%]{width:4px;margin-left:3px;visibility:hidden}.td-play-toolbar-btn-selected[_ngcontent-%COMP%] .td-play-toolbar-btn-type-1[_ngcontent-%COMP%]{color:#5800ff;background-color:#f5f6fc}.td-play-toolbar-btn-selected[_ngcontent-%COMP%] .td-play-toolbar-btn-indicator[_ngcontent-%COMP%]{visibility:visible}.td-play-toolbar-btn[_ngcontent-%COMP%]:disabled.td-play-toolbar-btn-selected .td-play-toolbar-btn-type-1[_ngcontent-%COMP%], .td-play-toolbar-btn[_ngcontent-%COMP%]:disabled.td-play-toolbar-btn-selected .td-play-toolbar-btn-indicator[_ngcontent-%COMP%]{background-color:#f3f3f5}.td-play-toolbar-btn[_ngcontent-%COMP%]:disabled .td-play-toolbar-btn-type-1[_ngcontent-%COMP%]{color:#d2d3d7}.td-play-toolbar-btn[_ngcontent-%COMP%]:disabled .td-play-toolbar-btn-type-2[_ngcontent-%COMP%]{color:#d2d3d7;background-color:#f3f3f5}.td-play-footer[_ngcontent-%COMP%]{height:68px}.mat-drawer[_ngcontent-%COMP%]:not(.mat-drawer-side){box-shadow:none}.mat-drawer-side.mat-drawer-end[_ngcontent-%COMP%]{border:none!important} .cdk-overlay-container{z-index:1000!important}"],changeDetection:0})}}return e})();u();u();u();u();var zv={"m-play":{0:"Lesson {{ v1 }}",1:"Finish lesson",2:"To recieve ideas",3:"Waiting for the student ideas...",4:"Drag and drop the sticky notes to this board to organize the student ideas.",5:"Report lesson",6:"Ranking",7:"Students",8:"Questions",9:"Results",10:"Question with more successes",11:"Question analysis",12:"{{ v1 }} of {{ v2 }} students answered successfully",13:"{{ v1 }}% of the class answered the question successfully.",14:"Question with more faults",15:"{{ v1 }} of {{ v2 }} students answered incorrectly",16:"Fault percentage",17:"{{ v1 }}% of the class answered the question incorrectly.",18:"1st place",19:"Student list",20:"V
10aluation",21:"like it",22:"The lesson has ended!",23:"\xA1Very good, you have finished!",24:"Go to the report",25:"Invite your students to join this lesson",26:"and log-in",27:"1. Open this URL in a browser",28:"2. Enter this code",29:"Start",30:"Students answers",31:"Success",32:"Answer option",33:"Correct answer",34:"Guided lesson",35:"Student settings",36:"Student Recovery",37:"Enable login to offer review activities and track your students' recovery",38:"Question settings",39:"Points system",40:"Competition mode",41:"Enables the countdown on each question and points are given depending to answers velocity.",42:"Shuffle answer options",43:"Shuffles the answer options on each question.",44:"Brainstorming",45:"Promote on your students the generation of ideas and a collective construction of the class.",46:"For a better experience, we suggest to use this feature through video call",47:"Question",48:"This question was already applied",49:"Applying it again will overwrite the answers.",50:"Resource",51:"Answers",52:"Poll",53:"Multiple selection",54:"Polls aren't gradable and neither are saved for future consultations.",55:"Do another poll",56:"Invite your students to join the class so we can start it!",57:"Capacity: 100 students",58:"Active brainstorming",59:"You have an active board in this moment. Do you want to open a new one?",60:"Random selection",61:"Promote participation in class! The system will choose a student from the list.",62:"Waiting result...",63:"All students have been selected.",64:"There aren't connected students!",65:"To view as a student, we recommend accessing play.tomi.digital from your mobile device, tablet, or another tab in your browser, using the class code.",66:"Understood",67:"Copied to clipboard!",68:"Remove student",69:"Do you want to remove '{{v1 }}' from the class?",70:"'{{v1 }}' has been removed from this class.",71:"Complete the sentence",72:"Brainstorming board",73:"New board",74:"Play",75:"Invite your students to join the class as follows:",76:"OPTION {{v1}}",77:"Scanning the QR code",78:"Your students will enter directly into <b>TOMiPlay,</b> to enter the code.",79:"Class code",80:"From the web browser by going to",81:"Copy link",82:"Personalized reviews",84:"Enlarge QR code",85:"Shrink QR code",report:{"00":"Accuracy","01":"Correct","02":"Incorrect","03":"Accuracy percentage"},actions:{close:"Close",exit:"Exit",cancel:"Cancel",continue:"Continue",accept:"Accept",apply:"Apply",skip:"Skip","add-answer-option":"Add answer option",publish:"Publish",retry:"Retry",reset:"Reset",start:"Start",expel:"Expel","exit-board":"Close board"},questions:{"no-answer":"No answer"},refer:{"00":"Copy link"},brainstorming:{topic:"Write a topic",validation:{topic:{required:"Brainstorming topic is required"}}},resources:{title:{multiple:"Write the statement of the question"}}}},Qv={"m-play":{0:"Clase {{ v1 }}",1:"Terminar clase",2:"Recibir ideas",3:"Esperando ideas de los estudiantes...",4:"Arrastra las notas adhesivas a este espacio para ordenar las ideas.",5:"Reportar clase",6:"Ranking",7:"Estudiantes",8:"Preguntas",9:"Resultados",10:"Pregunta con m\xE1s aciertos",11:"An\xE1lisis de la pregunta",12:"{{ v1 }} de {{ v2 }} contestaron correctamente",13:"El {{ v1 }}% de la clase respondi\xF3 la pregunta correctamente.",14:"Pregunta con m\xE1s equivocaciones",15:"{{ v1 }} de {{ v2 }} contestaron incorrectamente",16:"Porcentaje de equivocaciones",17:"El {{ v1 }}% de la clase respondi\xF3 la pregunta incorrectamente.",18:"primer puesto",19:"Lista de estudiantes",20:"Valoraci\xF3n",21:"le gusta",22:"\xA1La clase termin\xF3!",23:"\xA1Muy bien, has finalizado!",24:"Ver informe",25:"Invita a tus estudiantes a que se unan a la clase",26:"e inicien sesi\xF3n",27:"1. Ingresando en el navegador a",28:"2. Agregando el c\xF3digo de la clase",29:"Iniciar",30:"Respuesta estudiantes",31:"Acert\xF3 el",32:"Opci\xF3n de respuesta",33:"Respuesta correcta",34:"Clase guiada",35:"Ajustes de estudiantes",36:"Recuperaci\xF3n de estudiantes",37:"Activa el inicio de sesi\xF3n para ofrecer actividades de repaso y seguir la recuperaci\xF3n de tus estudiantes",38:"Ajustes de preguntas",39:"Sistema de puntos",40:"Modo competencia",41:"Se activa el tiempo para cada pregunta y se otorgan puntos por contestar m\xE1s r\xE1pido.",42:"Opciones de respuesta aleatorias",43:"El sistema reorganiza las opciones de respuesta de cada pregunta.",44:"Lluvia de ideas",45:"Incentiva en tus estudiantes la generaci\xF3n de ideas y la construcci\xF3n colectiva del contenido de la clase.",46:"Para mejorar la experiencia, sugerimos la ejecuci\xF3n de esta actividad a trav\xE9s de videollamada",47:"Pregunta",48:"Esta pregunta ya fue aplicada",49:"Al aplicarla nuevamente se sobrescribir\xE1n las respuestas.",50:"Recurso",51:"Respuestas",52:"Encuesta",53:"Selecci\xF3n m\xFAltiple",54:"Las encuestas no son calificables y tampoco se guardan para una posterior consulta.",55:"Realizar otra encuesta",56:"\xA1Invita a tus estudiantes para que se conecten a la clase y poder iniciarla!",57:"Capacidad: 100 estudiantes",58:"Lluvia de ideas activa",59:"Tienes un tablero activo en este momento. \xBFDeseas abrir un tablero nuevo?",60:"Salida aleatoria",61:"\xA1Fomenta la participaci\xF3n en clase! El sistema elegir\xE1 un estudiante de la lista.",62:"Esperando resultado...",63:"Todos los estudiantes han sido seleccionados.",64:"\xA1No tienes estudiantes conectados!",65:"Para visualizar como estudiante, te recomendamos ingresar a play.tomi.digital desde tu celular, tablet u otra pesta\xF1a de tu navegador, usando el c\xF3digo de clase",66:"Entendido",67:"\xA1Copiado al portapapeles!",68:"Expulsar estudiante",69:"\xBFDesea retirar de la clase a '{{v1 }}'?",70:"'{{v1 }}' ha sido retirado de esta clase.",71:"Completa la frase",72:"Tablero lluvia de ideas",73:"Nuevo tablero",74:"Presentar",75:"Invita a tus estudiantes a que se unan a la clase as\xED:",76:"OPCI\xD3N {{v1}}",77:"Escaneando el QR",78:"Tus estudiantes entrar\xE1n directamente a <b>TOMiPlay,</b> para ingresar el c\xF3digo.",79:"C\xF3digo de clase:",80:"Desde el navegador web ingresando a",81:"Copiar link",82:"Repasos personalizados",84:"Ampliar c\xF3digo QR",85:"Reducir c\xF3digo QR",report:{"00":"Porcentaje","01":"Correctas","02":"Incorrectas","03":"Porcentaje de aciertos"},actions:{close:"Cerrar",exit:"Salir",cancel:"Cancelar",continue:"Continuar",accept:"Aceptar",apply:"Aplicar",ski
10p:"Omitir","add-answer-option":"A\xF1adir opci\xF3n de respuesta",publish:"Publicar",retry:"Reintentar",reset:"Reiniciar",start:"Iniciar",expel:"Expulsar","exit-board":"Cerrar tablero"},questions:{"no-answer":"Sin contestar"},refer:{"00":"Copiar enlace"},brainstorming:{topic:"Ingresa un tema",validation:{topic:{required:"Ingresa un tema para la lluvia de ideas"}}},resources:{title:{multiple:"Escribe el enunciado de la pregunta"}}}},Uv={"m-play":{0:"Le\xE7on {{ v1 }}",1:"Finir la le\xE7on",2:"Pour recevoir des id\xE9es",3:"En attendant les id\xE9es des \xE9tudiants...",4:"Faites glisser et d\xE9posez les notes autocollantes sur ce tableau pour organiser les id\xE9es des \xE9l\xE8ves.",5:"Rapport de cours",6:"Classement",7:"\xC9tudiants",8:"Questions",9:"R\xE9sultats",10:"Question avec plus de succ\xE8s",11:"Analyse des questions",12:"{{ v1 }} des {{ v2 }} \xE9tudiants ont r\xE9pondu avec succ\xE8s",13:"{{ v1 }}% de la classe a r\xE9pondu avec succ\xE8s \xE0 la question.",14:"Question avec plus de d\xE9fauts",15:"{{ v1 }} des {{ v2 }} \xE9tudiants ont r\xE9pondu incorrectement",16:"Pourcentage de d\xE9fauts",17:"{{ v1 }}% de la classe a r\xE9pondu incorrectement \xE0 la question.",18:"1\xE8re place",19:"Liste des \xE9tudiants",20:"\xC9valuation",21:"J'aime \xE7a",22:"La le\xE7on est termin\xE9e",23:"Tr\xE8s bien, vous avez termin\xE9 !",24:"Acc\xE9der au rapport",25:"Invitez vos \xE9l\xE8ves \xE0 participer \xE0 cette le\xE7on",26:"et connectez-vous",27:"1. Ouvrez cette URL dans un navigateur",28:"2. Entrez ce code",29:"Commencer",30:"R\xE9ponses des \xE9tudiants",31:"Succ\xE8s",32:"Option de r\xE9ponse",33:"Bonne r\xE9ponse !",34:"Cours guid\xE9",35:"Param\xE8tres des \xE9tudiants",36:"R\xE9cup\xE9ration des \xE9tudiants",37:"Activez la connexion pour proposer des activit\xE9s de r\xE9vision et suivre la progression de vos \xE9l\xE8ves.",38:"Param\xE8tres des questions",39:"Syst\xE8me de points",40:"Mode comp\xE9tition :",41:"Active le compte \xE0 rebours sur chaque question et les points sont attribu\xE9s en fonction de la v\xE9locit\xE9 des r\xE9ponses.",42:"M\xE9langer les options de r\xE9ponse",43:"M\xE9lange les options de r\xE9ponse \xE0 chaque question.",44:"Remue-m\xE9ninges",45:"Favorisez chez vos \xE9l\xE8ves la g\xE9n\xE9ration d\u2019id\xE9es et une construction collective de la classe.",46:"Pour une meilleure exp\xE9rience, nous vous sugg\xE9rons d'utiliser cette fonctionnalit\xE9 via un appel vid\xE9o",47:"Question",48:"Cette question a d\xE9j\xE0 \xE9t\xE9 appliqu\xE9e",49:"L'appliquer \xE0 nouveau \xE9crasera les r\xE9ponses.",50:"Ressource",51:"R\xE9ponses",52:"Sondage",53:"S\xE9lection multiple",54:"Les sondages ne sont pas \xE9valuables et ne sont pas enregistr\xE9s pour des consultations ult\xE9rieures.",55:"Faire un autre sondage",56:"Invitez vos \xE9l\xE8ves \xE0 rejoindre le cours pour que nous puissions le d\xE9marrer !",57:"Capacit\xE9 : 100 \xE9tudiants",58:"Brainstorming actif",59:"Vous avez un tableau actif en ce moment. Voulez-vous en ouvrir un nouveau ?",60:"S\xE9lection al\xE9atoire",61:"Favorisez la participation en classe ! Le syst\xE8me choisira un \xE9l\xE8ve dans la liste.",62:"En attente du r\xE9sultat...",63:"Tous les \xE9tudiants ont \xE9t\xE9 s\xE9lectionn\xE9s.",64:"Il n'y a pas d'\xE9tudiants connect\xE9s !",65:"Pour consulter en tant qu'\xE9tudiant, nous vous recommandons d'acc\xE9der \xE0 play.tomi.digital depuis votre appareil mobile, votre tablette ou un autre onglet de votre navigateur, en utilisant le code de classe.",66:"Compris",67:"Copi\xE9 dans le presse-papiers !",68:"Supprimer l'\xE9tudiant",69:"Voulez-vous supprimer '{{v1 }}' de la classe\xA0?",70:"'{{v1 }}' a \xE9t\xE9 supprim\xE9 de cette classe.",71:"Compl\xE9tez la phrase",72:"Tableau de brainstorming",73:"Nouveau conseil d'administration",74:"Jouer",75:"Invitez vos \xE9l\xE8ves \xE0 rejoindre la classe comme suit\xA0:",76:"OPTION {{v1}}",77:"Scannez le code QR",78:"Vos \xE9l\xE8ves entreront directement dans <b>TOMiPlay,</b> pour saisir le code.",79:"Code de classe",80:"Depuis le navigateur Web en allant sur",81:"Copier le lien",82:"Avis personnalis\xE9s",84:"Agrandir le code QR",85:"R\xE9duire le code QR",report:{"00":"Pr\xE9cision","01":"Correct","02":"Incorrect","03":"Pourcentage de pr\xE9cision"},actions:{close:"Fermer",exit:"Sortie",cancel:"Annuler",continue:"Continuer",accept:"Accepter",apply:"Appliquer",skip:"Sauter","add-answer-option":"Ajouter une option de r\xE9ponse",publish:"Publier",retry:"R\xE9essayer",reset:"R\xE9initialiser",start:"Commencer",expel:"Expulser","exit-board":"Fermer le tableau"},questions:{"no-answer":"Pas de r\xE9ponse"},refer:{"00":"Copier le lien"},brainstorming:{topic:"\xC9crire un sujet",validation:{topic:{required:"Un sujet de brainstorming est requis"}}},resources:{title:{multiple:"\xC9crivez l'\xE9nonc\xE9 de la question"}}}},$v={"m-play":{0:"Li\xE7\xE3o {{ v1 }}",1:"Terminar a li\xE7\xE3o",2:"Para receber ideias",3:"Aguardando as ideias dos alunos...",4:"Arraste e solte as notas adesivas neste quadro para organizar as ideias dos alunos.",5:"Relatar li\xE7\xE3o",6:"Classifica\xE7\xE3o",7:"Estudantes",8:"Quest\xF5es",9:"Resultados",10:"Pergunta com mais sucessos",11:"An\xE1lise de perguntas",12:"{{ v1 }} de {{ v2 }} alunos responderam com sucesso",13:"{{ v1 }}% da turma respondeu \xE0 pergunta com sucesso.",14:"Pergunta com mais falhas",15:"{{ v1 }} de {{ v2 }} alunos responderam incorretamente",16:"Porcentagem de falhas",17:"{{ v1 }}% da turma respondeu \xE0 pergunta incorretamente.",18:"1\xBA lugar",19:"Lista de alunos",20:"Avalia\xE7\xE3o",21:"gostei",22:"A aula acabou",23:"Muito bem, voc\xEA terminou!",24:"Ir para o relat\xF3rio",25:"Convide seus alunos para participar desta aula",26:"e fa\xE7a login",27:"1. Abra esta URL em um navegador",28:"2. Insira este c\xF3digo",29:"Come\xE7ar",30:"Respostas dos alunos",31:"Sucesso",32:"Op\xE7\xE3o de resposta",33:"Resposta correta!",34:"Aula guiada",35:"Configura\xE7\xF5es do aluno",36:"Recupera\xE7\xE3o Estudantil",37:"Habilite o login para oferecer atividades de revis\xE3o e acompanhar a recupera\xE7\xE3o dos seus alunos.",38:"Configura\xE7\xF5es de perguntas",39:"Sistema de pontos",40:"Modo de competi\xE7\xE3o:",41:"Habilita a contagem regressiva em cada pergunta e os pontos s\xE3o dad
10os dependendo da velocidade das respostas.",42:"Embaralhar op\xE7\xF5es de resposta",43:"Embaralha as op\xE7\xF5es de resposta em cada pergunta.",44:"Tempestade de ideias",45:"Promova nos seus alunos a gera\xE7\xE3o de ideias e a constru\xE7\xE3o coletiva da aula.",46:"Para uma melhor experi\xEAncia, sugerimos utilizar este recurso por meio de videochamada",47:"Pergunta",48:"Esta quest\xE3o j\xE1 foi aplicada",49:"Aplicar novamente substituir\xE1 as respostas.",50:"Recurso",51:"Respostas",52:"Enquete",53:"Sele\xE7\xE3o m\xFAltipla",54:"As pesquisas n\xE3o s\xE3o classific\xE1veis e tamb\xE9m n\xE3o s\xE3o salvas para consultas futuras.",55:"Fa\xE7a outra enquete",56:"Convide seus alunos para participar da aula para que possamos inici\xE1-la!",57:"Capacidade: 100 alunos",58:"Brainstorming ativo",59:"Voc\xEA tem um quadro ativo neste momento. Quer abrir um novo?",60:"Sele\xE7\xE3o aleat\xF3ria",61:"Promova a participa\xE7\xE3o na aula! O sistema escolher\xE1 um aluno da lista.",62:"Aguardando resultado...",63:"Todos os alunos foram selecionados.",64:"N\xE3o h\xE1 alunos conectados!",65:"Para visualizar como aluno, recomendamos acessar play.tomi.digital do seu dispositivo m\xF3vel, tablet ou outra aba do seu navegador, usando o c\xF3digo da turma.",66:"Entendido",67:"Copiado para a \xE1rea de transfer\xEAncia!",68:"Remover aluno",69:"Voc\xEA deseja remover '{{v1 }}' da classe?",70:"'{{v1 }}' foi removido desta classe.",71:"Complete a frase",72:"Quadro de brainstorming",73:"Nova diretoria",74:"Jogar",75:"Convide seus alunos para participar da aula da seguinte maneira:",76:"OP\xC7\xC3O {{v1}}",77:"Escaneando o c\xF3digo QR",78:"Seus alunos entrar\xE3o diretamente no <b>TOMiPlay</b> para digitar o c\xF3digo.",79:"C\xF3digo de classe",80:"No navegador da web, acessando",81:"Copiar link",82:"Avalia\xE7\xF5es personalizadas",84:"Ampliar c\xF3digo QR",85:"Encolher c\xF3digo QR",report:{"00":"Precis\xE3o","01":"Correto","02":"Incorreto","03":"Porcentagem de precis\xE3o"},actions:{close:"Fechar",exit:"Sa\xEDda",cancel:"Cancelar",continue:"Continuar",accept:"Aceitar",apply:"Aplicar",skip:"Pular","add-answer-option":"Adicionar op\xE7\xE3o de resposta",publish:"Publicar",retry:"Tentar novamente",reset:"Reiniciar",start:"Come\xE7ar",expel:"Expulsar","exit-board":"Fechar quadro"},questions:{"no-answer":"Sem resposta"},refer:{"00":"Copiar link"},brainstorming:{topic:"Escreva um t\xF3pico",validation:{topic:{required:"T\xF3pico de brainstorming \xE9 obrigat\xF3rio"}}},resources:{title:{multiple:"Escreva a declara\xE7\xE3o da quest\xE3o"}}}},As={en:zv,es:Qv,fr:Uv,pt:$v};var Wv="navigate_after_login",Op=(()=>{class e{constructor(){this._translateService=I(mt),this._userAuthService=I(Va),this._lessonService=I(Yi),this._localStorage=I(Ji),this._authService=I(Zi),this._platform=I(Ft),this._router=I(At),this._store=I(J),this._title=I(ta),this._meta=I(Ui)}canActivate(t,i){this._translateService.addProviders([{name:"m-play",asset:As}]),this._translateService.loadTranslations([{name:"m-play",asset:As}]);let o=fn(t.params.id),r=t.data.redirectTo||"/auth/login";return o===0?(this._router.navigate(["/error/404"],{skipLocationChange:!0}),Ke(!1)):(this._title.setTitle(`TOMi.digital - ${this._translateService.translate("seo.lesson-list.title")}`),this._meta.updateTag({name:"description",content:this._translateService.translate("seo.lesson-list.description")}),ti(this._authService.profile(),this._lessonService.getById(o)).pipe(se(([l,f])=>f.published?f.private&&l.id!==f.user_id?(this._router.navigate(["/error/404"],{skipLocationChange:!0}),Ke(!1)):Ke(!0).pipe(L(_=>this._store.dispatch(g.initial())),L(_=>this._store.dispatch(g.loadModule({user:l,lesson:f})))):(this._router.navigate(["/error/404"],{skipLocationChange:!0}),Ke(!1))),Rt(l=>(this._platform.isBrowser&&l?.status===401&&this._authService.getAccessToken()&&this._authService.logout(),this._localStorage.setItem(Wv,i.url),this._router.navigate([r],{queryParamsHandling:"preserve"}),Ke(!1)))))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Np=[{path:"",canActivate:[Op],data:{profileTypes:[Ta.Teacher]},component:Lp}];var Kk=(()=>{class e{constructor(){this._mathlive=I(fl),this._mathlive.boot()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=qi({type:e})}static{this.\u0275inj=Ai({providers:[Hn,$o],imports:[Qi,ha,_a,oa.forChild(Np),tl,dl,$a,il,qa,Za,cl,ja,aa.forFeature
10(Vo,Cd),da.forFeature([Qd]),Ra,wl,Ja,Ha,Ma,Ga,Tl,hl,El,Cl,xl,kl,Ya,Pl,Bl,Rl,ao,ul,pl,Ka,Fa]})}}return e})();export{Kk as TdPlayModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.