commit 42b7d9aba3327c81f01a869247f61dbfd989d25f Author: Đặng Minh Quang Date: Wed Jan 21 16:07:12 2026 +0700 Initial upload: Source and Game Build diff --git a/GameQuiz-InputKeyBoard/appmanifest.json b/GameQuiz-InputKeyBoard/appmanifest.json new file mode 100644 index 0000000..c7f1f32 --- /dev/null +++ b/GameQuiz-InputKeyBoard/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "GameQuiz-InputKeyBoard", + "short_name": "GameQuiz-InputKeyBoard", + "start_url": "index.html", + "display": "fullscreen", + "orientation": "any", + "icons": [{ + "src": "icon-16.png", + "sizes": "16x16", + "type": "image/png" + }, { + "src": "icon-32.png", + "sizes": "32x32", + "type": "image/png" + }, { + "src": "icon-128.png", + "sizes": "128x128", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "144x144", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "256x256", + "type": "image/png" + }] +} diff --git a/GameQuiz-InputKeyBoard/bg.mp4 b/GameQuiz-InputKeyBoard/bg.mp4 new file mode 100644 index 0000000..86b4792 Binary files /dev/null and b/GameQuiz-InputKeyBoard/bg.mp4 differ diff --git a/GameQuiz-InputKeyBoard/c2runtime.js b/GameQuiz-InputKeyBoard/c2runtime.js new file mode 100644 index 0000000..ae13908 --- /dev/null +++ b/GameQuiz-InputKeyBoard/c2runtime.js @@ -0,0 +1,485 @@ +// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net +'use strict';var aa,ca,da,ea,ga,ia,ka,la,A,ma,na,oa,pa,qa,sa,ta,ua,va,wa,xa,Aa,Ba,Ca,N,Da,Ea,Fa,Ga,Ha,Q,Ia,Ja,La,Ma,Na,Oa,Pa,Ra,Sa,Ta,Ua,Va,Wa,Xa,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype}); +(function(){function f(a,e,c,d){this.set(a,e,c,d)}function q(){this.Wb=this.Vb=this.Yb=this.Xb=this.hc=this.gc=this.Ib=this.Hb=0}function r(a,e,c,d){ad?e:d):(n=ac?e:c):cd?a:d):(n=ec?a:c)}function t(){this.items=this.$d=null;this.oi=0;ha&&(this.$d=new Set);this.Ah=[];this.Ye=!0}function b(a){W[E++]=a}function p(){this.Z=this.ol=this.y=this.am=0}function k(a){this.nh=[];this.ep=this.gp=this.hp=this.fp=0;this.Yi(a)}function d(a,e){this.hm= +a;this.gm=e;this.cells={}}function h(a,e){this.hm=a;this.gm=e;this.cells={}}function c(a,e,c){var d;return x.length?(d=x.pop(),d.Nm=a,d.x=e,d.y=c,d):new ca(a,e,c)}function a(a,e,c){this.Nm=a;this.x=e;this.y=c;this.Cb=new da}function e(a,e,c){var d;return y.length?(d=y.pop(),d.Nm=a,d.x=e,d.y=c,d):new ea(a,e,c)}function l(a,e,c){this.Nm=a;this.x=e;this.y=c;this.Cb=[];this.Sg=!0;this.Xd=new da;this.Dh=!1}function g(a,e){return a.Jd-e.Jd}ga=function(a){window.console&&window.console.log&&window.console.log(a)}; +ia=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};A=function(a){return"string"===typeof a};ma=function(a){return 0e;e<<=1)a=a|a>>e;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,e){return a>e?a:e};qa=function(a,e){return au)return!1;eu)return!1;l=g-a+b-c;m=v-e+h-d;a=c-a;e=d-e;g=b-g;v=h-v;h=oa(e*g-v*a);return oa(g*m-v*l)>h?!1:oa(a*m-e*l)<=h};f.prototype.set=function(a,e,c,d){this.left=a;this.top=e;this.right=c;this.bottom=d};f.prototype.Kh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width= +function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.ad=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};f.prototype.Ph=function(a){return this.left=== +a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=f;q.prototype.jl=function(a){this.Hb=a.left;this.Ib=a.top;this.gc=a.right;this.hc=a.top;this.Xb=a.right;this.Yb=a.bottom;this.Vb=a.left;this.Wb=a.bottom};q.prototype.Kr=function(a,e){if(0===e)this.jl(a);else{var c=Math.sin(e),d=Math.cos(e),g=a.left*c,v=a.top*c,b=a.right*c,c=a.bottom*c,h=a.left*d,l=a.top*d,m=a.right*d,d=a.bottom*d;this.Hb=h-v;this.Ib=l+g;this.gc=m-v;this.hc=l+b;this.Xb=m-c;this.Yb=d+b;this.Vb=h-c;this.Wb=d+ +g}};q.prototype.offset=function(a,e){this.Hb+=a;this.Ib+=e;this.gc+=a;this.hc+=e;this.Xb+=a;this.Yb+=e;this.Vb+=a;this.Wb+=e;return this};var n=0,L=0;q.prototype.jp=function(a){r(this.Hb,this.gc,this.Xb,this.Vb);a.left=n;a.right=L;r(this.Ib,this.hc,this.Yb,this.Wb);a.top=n;a.bottom=L};q.prototype.ad=function(a,e){var c=this.Hb,d=this.Ib,g=this.gc-c,v=this.hc-d,b=this.Xb-c,h=this.Yb-d,l=a-c,m=e-d,u=g*g+v*v,n=g*b+v*h,v=g*l+v*m,w=b*b+h*h,k=b*l+h*m,f=1/(u*w-n*n),g=(w*v-n*k)*f,u=(u*k-n*v)*f;if(0<=g&&0< +u&&1>g+u)return!0;g=this.Vb-c;v=this.Wb-d;u=g*g+v*v;n=g*b+v*h;v=g*l+v*m;f=1/(u*w-n*n);g=(w*v-n*k)*f;u=(u*k-n*v)*f;return 0<=g&&0g+u};xa=q;Aa=function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c]);return a};Ba=function(a,e){var c,d;e=ta(e);if(!(0>e||e>=a.length)){c=e;for(d=a.length-1;cc?c:a};Q=function(a){return a/(180/sa)};Ia=function(a){return 180/sa*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};La=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};Ma=function(a){return Ja(Ia(a))};Na=function(a){return La(Q(a))};Oa=function(a,e,c,d){return Math.atan2(d-e,c-a)};Pa=function(a,e){if(a===e)return 0;var c=Math.sin(a),d=Math.cos(a),g=Math.sin(e), +v=Math.cos(e),c=c*g+d*v;return 1<=c?0:-1>=c?sa:Math.acos(c)};Ra=function(a,e,c){var d=Math.sin(a),g=Math.cos(a),v=Math.sin(e),b=Math.cos(e);return Math.acos(d*v+g*b)>c?0=d*g-c*v};Ta=function(a,e,c,d,g,v){if(0===c)return v?a:e;var b=Math.sin(c);c=Math.cos(c);a-=d;e-=g;var h=a*b;a=a*c-e*b;e=e*c+h;return v?a+d:e+g};Ua=function(a,e,c,d){a=c-a;e=d-e;return Math.sqrt(a*a+e*e)};Va=function(a, +e){return!a!==!e};Wa=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};Xa=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var w=+new Date;$a=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-w};var m=!1,u=m=!1,fa=!1;"undefined"!== +typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),u=/(iphone|ipod|ipad)/i.test(navigator.userAgent),fa=window.c2ejecta);var ha=!m&&!fa&&!u&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;t.prototype.contains=function(a){return this.ve()?!1:ha?this.$d.has(a):this.items&&this.items.hasOwnProperty(a)};t.prototype.add=function(a){if(ha)this.$d.has(a)||(this.$d.add(a),this.Ye=!1);else{var e=a.toString(), +c=this.items;c?c.hasOwnProperty(e)||(c[e]=a,this.oi++,this.Ye=!1):(this.items={},this.items[e]=a,this.oi=1,this.Ye=!1)}};t.prototype.remove=function(a){if(!this.ve())if(ha)this.$d.has(a)&&(this.$d["delete"](a),this.Ye=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.oi--,this.Ye=!1)}};t.prototype.clear=function(){this.ve()||(ha?this.$d.clear():(this.items=null,this.oi=0),N(this.Ah),this.Ye=!0)};t.prototype.ve=function(){return 0===this.count()};t.prototype.count= +function(){return ha?this.$d.size:this.oi};var W=null,E=0;t.prototype.Xx=function(){if(!this.Ye){if(ha)N(this.Ah),W=this.Ah,E=0,this.$d.forEach(b),W=null,E=0;else{var a=this.Ah;N(a);var e,c=0,d=this.items;if(d)for(e in d)d.hasOwnProperty(e)&&(a[c++]=d[e])}this.Ye=!0}};t.prototype.Bf=function(){this.Xx();return this.Ah};da=t;new da;ab=function(a,e){ha?bb(a,e.$d):cb(a,e.Bf())};bb=function(a,e){var c,d,g,v;d=c=0;for(g=a.length;cc&&(c=v),bg&&(g=b);this.fp=e;this.gp=c;this.hp=d;this.ep=g};k.prototype.jl=function(a,e,c){this.nh.length=8;this.Wk=4;var d=this.nh;d[0]=a.left-e;d[1]=a.top-c;d[2]=a.right-e;d[3]=a.top-c;d[4]=a.right-e;d[5]=a.bottom-c;d[6]=a.left-e;d[7]=a.bottom-c;this.dm=a.right-a.left;this.cm=a.bottom-a.top;this.Ha()};k.prototype.gu=function(a,e,c){if(this.dm!==a||this.cm!==e||this.mp!==c){this.dm=a;this.cm=e; +this.mp=c;var d,g,v,b,h,l=0,m=1,u=this.pr,n=this.nh;0!==c&&(l=Math.sin(c),m=Math.cos(c));c=0;for(v=this.Wk;cx.length&&x.push(h),this.cells[d][v]=null);if(c)for(d= +c.left,g=c.right;d<=g;++d)for(v=c.top,b=c.bottom;v<=b;++v)e&&e.ad(d,v)||this.jf(d,v,!0).Sm(a)};d.prototype.rr=function(a,e){var c,d,g,v,b,h;c=this.pc(a.left);g=this.qc(a.top);d=this.pc(a.right);for(b=this.qc(a.bottom);c<=d;++c)for(v=g;v<=b;++v)(h=this.jf(c,v,!1))&&h.dump(e)};gb=d;h.prototype.jf=function(a,c,d){var g;g=this.cells[a];return g?(g=g[c])?g:d?(g=e(this,a,c),this.cells[a][c]=g):null:d?(g=e(this,a,c),this.cells[a]={},this.cells[a][c]=g):null};h.prototype.pc=function(a){return ta(a/this.hm)}; +h.prototype.qc=function(a){return ta(a/this.gm)};h.prototype.update=function(a,e,c){var d,g,v,b,h;if(e)for(d=e.left,g=e.right;d<=g;++d)for(v=e.top,b=e.bottom;v<=b;++v)if(!c||!c.ad(d,v))if(h=this.jf(d,v,!1))h.remove(a),h.ve()&&(h.reset(),1E3>y.length&&y.push(h),this.cells[d][v]=null);if(c)for(d=c.left,g=c.right;d<=g;++d)for(v=c.top,b=c.bottom;v<=b;++v)e&&e.ad(d,v)||this.jf(d,v,!0).Sm(a)};h.prototype.rr=function(a,e,c,d,g){var v,b;a=this.pc(a);e=this.qc(e);c=this.pc(c);for(v=this.qc(d);a<=c;++a)for(d= +e;d<=v;++d)(b=this.jf(a,d,!1))&&b.dump(g)};h.prototype.Kw=function(a){var e,c,d,g,v;e=a.left;d=a.top;c=a.right;for(g=a.bottom;e<=c;++e)for(a=d;a<=g;++a)if(v=this.jf(e,a,!1))v.Sg=!1};hb=h;var x=[];a.prototype.ve=function(){return this.Cb.ve()};a.prototype.Sm=function(a){this.Cb.add(a)};a.prototype.remove=function(a){this.Cb.remove(a)};a.prototype.dump=function(a){Ea(a,this.Cb.Bf())};ca=a;var y=[];l.prototype.ve=function(){if(!this.Cb.length)return!0;if(this.Cb.length>this.Xd.count())return!1;this.ym(); +return!0};l.prototype.Sm=function(a){this.Xd.contains(a)?(this.Xd.remove(a),this.Xd.ve()&&(this.Dh=!1)):this.Cb.length?(this.Cb[this.Cb.length-1].Rd()>a.Rd()&&(this.Sg=!1),this.Cb.push(a)):(this.Cb.push(a),this.Sg=!0)};l.prototype.remove=function(a){this.Xd.add(a);this.Dh=!0;30<=this.Xd.count()&&this.ym()};l.prototype.ym=function(){this.Dh&&(this.Xd.count()===this.Cb.length?this.reset():(ab(this.Cb,this.Xd),this.Xd.clear(),this.Dh=!1))};l.prototype.Vu=function(){this.Sg||(this.Cb.sort(g),this.Sg= +!0)};l.prototype.reset=function(){N(this.Cb);this.Sg=!0;this.Xd.clear();this.Dh=!1};l.prototype.dump=function(a){this.ym();this.Vu();this.Cb.length&&a.push(this.Cb)};ea=l;var F="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");ib=function(a){return 0>=a||11<=a?"source-over":F[a-1]};jb=function(a,e,c){if(c)switch(a.fc=c.ONE,a.$b=c.ONE_MINUS_SRC_ALPHA,e){case 1:a.fc=c.ONE;a.$b=c.ONE;break;case 3:a.fc=c.ONE;a.$b=c.ZERO;break; +case 4:a.fc=c.ONE_MINUS_DST_ALPHA;a.$b=c.ONE;break;case 5:a.fc=c.DST_ALPHA;a.$b=c.ZERO;break;case 6:a.fc=c.ZERO;a.$b=c.SRC_ALPHA;break;case 7:a.fc=c.ONE_MINUS_DST_ALPHA;a.$b=c.ZERO;break;case 8:a.fc=c.ZERO;a.$b=c.ONE_MINUS_SRC_ALPHA;break;case 9:a.fc=c.DST_ALPHA;a.$b=c.ONE_MINUS_SRC_ALPHA;break;case 10:a.fc=c.ONE_MINUS_DST_ALPHA,a.$b=c.SRC_ALPHA}};kb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,e){return"string"!==typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()=== +e.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?!0:!1}})();var lc="undefined"!==typeof Float32Array?Float32Array:Array;function mc(f){var q=new lc(3);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2]);return q} +function nc(f){var q=new lc(16);f&&(q[0]=f[0],q[1]=f[1],q[2]=f[2],q[3]=f[3],q[4]=f[4],q[5]=f[5],q[6]=f[6],q[7]=f[7],q[8]=f[8],q[9]=f[9],q[10]=f[10],q[11]=f[11],q[12]=f[12],q[13]=f[13],q[14]=f[14],q[15]=f[15]);return q}function oc(f,q){q[0]=f[0];q[1]=f[1];q[2]=f[2];q[3]=f[3];q[4]=f[4];q[5]=f[5];q[6]=f[6];q[7]=f[7];q[8]=f[8];q[9]=f[9];q[10]=f[10];q[11]=f[11];q[12]=f[12];q[13]=f[13];q[14]=f[14];q[15]=f[15]} +function pc(f,q){var r=q[0],t=q[1];q=q[2];f[0]*=r;f[1]*=r;f[2]*=r;f[3]*=r;f[4]*=t;f[5]*=t;f[6]*=t;f[7]*=t;f[8]*=q;f[9]*=q;f[10]*=q;f[11]*=q} +function qc(f,q,r,t){t||(t=nc());var b,p,k,d,h,c,a,e,l=f[0],g=f[1];f=f[2];p=r[0];k=r[1];b=r[2];r=q[1];c=q[2];l===q[0]&&g===r&&f===c?(f=t,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(r=l-q[0],c=g-q[1],a=f-q[2],e=1/Math.sqrt(r*r+c*c+a*a),r*=e,c*=e,a*=e,q=k*a-b*c,b=b*r-p*a,p=p*c-k*r,(e=Math.sqrt(q*q+b*b+p*p))?(e=1/e,q*=e,b*=e,p*=e):p=b=q=0,k=c*p-a*b,d=a*q-r*p,h=r*b-c*q,(e=Math.sqrt(k*k+d*d+h*h))?(e=1/e,k*=e,d*=e,h*=e):h=d=k=0, +t[0]=q,t[1]=k,t[2]=r,t[3]=0,t[4]=b,t[5]=d,t[6]=c,t[7]=0,t[8]=p,t[9]=h,t[10]=a,t[11]=0,t[12]=-(q*l+b*g+p*f),t[13]=-(k*l+d*g+h*f),t[14]=-(r*l+c*g+a*f),t[15]=1)} +(function(){function f(d,b,c){this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Pa=!!c;this.ik=this.fi=!1;this.pm=0;this.Il=1;this.yo=1E3;this.ey=(this.yo-this.Il)/32768;this.em=mc([0,0,100]);this.qq=mc([0,0,0]);this.gs=mc([0,1,0]);this.lj=mc([1,1,1]);this.vp=!0;this.Dk=nc();this.Sc=nc();this.gn=nc();this.om=nc();this.G=d;this.version=0===this.G.getParameter(this.G.VERSION).indexOf("WebGL 2")?2:1;this.Qp()}function q(d,b,c){this.G=d;this.Zi= +b;this.name=c;this.fd=d.getAttribLocation(b,"aPos");this.tf=d.getAttribLocation(b,"aTex");this.oq=d.getUniformLocation(b,"matP");this.yk=d.getUniformLocation(b,"matMV");this.Zg=d.getUniformLocation(b,"opacity");this.mn=d.getUniformLocation(b,"colorFill");this.pq=d.getUniformLocation(b,"samplerFront");this.yi=d.getUniformLocation(b,"samplerBack");this.eg=d.getUniformLocation(b,"destStart");this.dg=d.getUniformLocation(b,"destEnd");this.Bi=d.getUniformLocation(b,"seconds");this.pn=d.getUniformLocation(b, +"pixelWidth");this.nn=d.getUniformLocation(b,"pixelHeight");this.xi=d.getUniformLocation(b,"layerScale");this.wi=d.getUniformLocation(b,"layerAngle");this.Ci=d.getUniformLocation(b,"viewOrigin");this.Ai=d.getUniformLocation(b,"scrollPos");this.mw=!!(this.pn||this.nn||this.Bi||this.yi||this.eg||this.dg||this.xi||this.wi||this.Ci||this.Ai);this.yq=this.zq=-999;this.Ck=1;this.uq=this.tq=0;this.wq=this.sq=this.rq=1;this.Cq=this.Bq=this.Aq=this.Eq=this.Dq=this.vq=0;this.dn=[];this.xq=nc();this.Zg&&d.uniform1f(this.Zg, +1);this.mn&&d.uniform4f(this.mn,1,1,1,1);this.pq&&d.uniform1i(this.pq,0);this.yi&&d.uniform1i(this.yi,1);this.eg&&d.uniform2f(this.eg,0,0);this.dg&&d.uniform2f(this.dg,1,1);this.xi&&d.uniform1f(this.xi,1);this.wi&&d.uniform1f(this.wi,0);this.Ci&&d.uniform2f(this.Ci,0,0);this.Ai&&d.uniform2f(this.Ai,0,0);this.Bi&&d.uniform1f(this.Bi,0);this.Rf=!1}function r(d,b){return d[0]===b[0]&&d[1]===b[1]&&d[2]===b[2]&&d[3]===b[3]&&d[4]===b[4]&&d[5]===b[5]&&d[6]===b[6]&&d[7]===b[7]&&d[8]===b[8]&&d[9]===b[9]&& +d[10]===b[10]&&d[11]===b[11]&&d[12]===b[12]&&d[13]===b[13]&&d[14]===b[14]&&d[15]===b[15]}function t(d,b){this.type=d;this.C=b;this.G=b.G;this.Sd=this.nc=this.cr=0;this.ca=this.od=null;this.Lr=[]}var b=nc();f.prototype.Qp=function(){var d=this.G,b;this.fq=1;this.Yf=this.qf=null;this.Hj=1;d.clearColor(0,0,0,0);d.clear(d.COLOR_BUFFER_BIT);d.enable(d.BLEND);d.blendFunc(d.ONE,d.ONE_MINUS_SRC_ALPHA);d.disable(d.CULL_FACE);d.disable(d.STENCIL_TEST);d.disable(d.DITHER);this.Pa?(d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL)): +d.disable(d.DEPTH_TEST);this.hq=d.ONE;this.cq=d.ONE_MINUS_SRC_ALPHA;this.Cl=new Float32Array(8E3*(this.Pa?3:2));this.ql=new Float32Array(16E3);this.mr=new Float32Array(32E3);this.In=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,this.In);d.bufferData(d.ARRAY_BUFFER,this.mr.byteLength,d.DYNAMIC_DRAW);this.jj=Array(4);this.dj=Array(4);for(b=0;4>b;b++)this.jj[b]=d.createBuffer(),d.bindBuffer(d.ARRAY_BUFFER,this.jj[b]),d.bufferData(d.ARRAY_BUFFER,this.Cl.byteLength,d.DYNAMIC_DRAW),this.dj[b]=d.createBuffer(), +d.bindBuffer(d.ARRAY_BUFFER,this.dj[b]),d.bufferData(d.ARRAY_BUFFER,this.ql.byteLength,d.DYNAMIC_DRAW);this.ne=0;this.qw=d.createBuffer();d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,this.qw);for(var c=new Uint16Array(12E3),a=b=0;12E3>b;)c[b++]=a,c[b++]=a+1,c[b++]=a+2,c[b++]=a,c[b++]=a+2,c[b++]=a+3,a+=4;d.bufferData(d.ELEMENT_ARRAY_BUFFER,c,d.STATIC_DRAW);this.Jn=this.uh=this.Ne=0;this.bb=[];b=this.Pa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}": +"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.Lh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"");this.bb.push(c);c=this.Lh({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"}, +"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","");this.bb.push(c);c=this.Lh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"");this.bb.push(c);c=this.Lh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +b,"");this.bb.push(c);for(var e in rc)rc.hasOwnProperty(e)&&this.bb.push(this.Lh(rc[e],b,e));d.activeTexture(d.TEXTURE0);d.bindTexture(d.TEXTURE_2D,null);this.We=[];this.me=0;this.ac=!1;this.sp=this.ri=-1;this.Gg=null;this.wm=d.createFramebuffer();this.Mj=this.$k=null;this.dp=!1;this.Pa&&(this.Mj=d.createRenderbuffer());this.yf=mc([0,0,0]);this.Fq=d.getParameter(d.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&d.vertexAttribPointer(b.fd,4,d.FLOAT,!1,0,0));if(0"!==b.name&& +d.vertexAttribPointer(b.fd,this.Pa?3:2,d.FLOAT,!1,0,0);d.bindBuffer(d.ARRAY_BUFFER,this.dj[this.ne]);d.bufferSubData(d.ARRAY_BUFFER,0,this.ql.subarray(0,this.uh));b&&0<=b.tf&&""!==b.name&&d.vertexAttribPointer(b.tf,2,d.FLOAT,!1,0,0)}for(var c,d=0,b=this.me;dc||0>a)){var e=this.Jc();e.type=7;e.nc=1;e.ca||(e.ca=nc());e.ca[0]=d;e.ca[1]=b;e.ca[2]=c;e.ca[3]=a;this.ac=!1}};f.prototype.Gr=function(d){if(this.Pa&&(d=!!d,this.fi!==d)){var b=this.Jc();b.type=14;b.nc=d?1:0;this.ac=!1;this.fi=d;this.$k=null;this.fi? +this.zc(2):this.zc(0)}};f.prototype.Fr=function(d){if(this.Pa){var b=this.Jc();b.type=13;b.nc=d?1:0;this.ac=!1}};f.prototype.Dp=function(){oc(this.gn,b);this.kd();this.Xc();var d=this.width/2,k=this.height/2;this.Ti(-d,k,d,k,d,-k,-d,-k);oc(b,this.Sc);this.Xc()};f.prototype.Er=function(d,b,c){this.zc(3);var a=this.Jc();a.type=12;a.ca||(a.ca=nc());a.ca[0]=d;a.ca[1]=b;a.ca[2]=c;a.ca[3]=1;this.ac=!1};f.prototype.Kx=function(){this.zc(0)};f.prototype.wx=function(){this.zc(2)};f.prototype.kx=function(){this.gf(); +this.G.flush()};var p=[],k={};f.prototype.ku=function(){N(p);k={}};f.prototype.vi=function(d,b,c){var a;a=!1;b=!!b;var e=d.src+","+a+","+b+(a?",undefined":""),l=null;if("undefined"!==typeof d.src&&k.hasOwnProperty(e))return l=k[e],l.yj++,l;this.gf();var g=this.G,n=ma(d.width)&&ma(d.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var f=g.RGBA,w=g.RGBA,m=g.UNSIGNED_BYTE;if(c&&!this.we)switch(c){case 1:w=f=g.RGB;break;case 2:m=g.UNSIGNED_SHORT_4_4_4_4; +break;case 3:m=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:w=f=g.RGB,m=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!n&&a){c=document.createElement("canvas");c.width=na(d.width);c.height=na(d.height);var u=c.getContext("2d");"undefined"!==typeof u.imageSmoothingEnabled?u.imageSmoothingEnabled=b:(u.webkitImageSmoothingEnabled=b,u.mozImageSmoothingEnabled=b,u.msImageSmoothingEnabled=b);u.drawImage(d,0,0,d.width,d.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,f,w,m,c)}else g.texImage2D(g.TEXTURE_2D, +0,f,w,m,d);a?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));b?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(n||2<=this.version)&&this.vp?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER, +g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.qf=null;l.Gf=d.width;l.Ff=d.height;l.yj=1;l.lp=e;p.push(l);return k[e]=l};f.prototype.Mc=function(b,k,c,a){this.gf();var e=this.G;this.we&&(a=!1);var l=e.createTexture();e.bindTexture(e.TEXTURE_2D,l);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,b,k,0,e.RGBA,a?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S, +e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.qf=null;l.Gf=b;l.Ff=k;p.push(l);return l};f.prototype.by=function(b,k,c){this.gf();var a=this.G;this.we&&(c=!1);a.bindTexture(a.TEXTURE_2D,k);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA, +c?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}a.bindTexture(a.TEXTURE_2D,null);this.qf=null};f.prototype.deleteTexture=function(b){b&&("undefined"!==typeof b.yj&&1=e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function r(){try{return!!window.indexedDB}catch(a){return!1}} +function t(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function b(a,e,c,b){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=t;d.onerror=b;d.onsuccess=function(d){d=d.target.result;d.onerror=b;d.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=c}}catch(g){b(g)}}function p(a,e,c){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=t;b.onerror=c;b.onsuccess=function(b){b=b.target.result;b.onerror=c;var d=b.transaction(["saves"]).objectStore("saves").get(a); +d.onsuccess=function(){d.result?e(d.result.data):e(null)}}}catch(d){c(d)}}function k(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1g?(g*=e,5===m?(l=g*c/this.Xa,1l&&(l=1/Math.ceil(1/l)),g=this.Xa* +l/c,l=this.Wa*l/c,b=(a-g)/2,d=(e-l)/2,a=g,e=l):(b=(a-g)/2,a=g)):(l=a/g,5===m?(l=l*c/this.Wa,1l&&(l=1/Math.ceil(1/l)),g=this.Xa*l/c,l=this.Wa*l/c,b=(a-g)/2,d=(e-l)/2,a=g):d=(e-l)/2,e=l)):g&&0===m&&(b=Math.floor((a-this.Xa)/2),d=Math.floor((e-this.Wa)/2),a=this.Xa,e=this.Wa),2>m&&(this.Fh=c),this.Gj=Math.round(a),this.Nh=Math.round(e),this.width=Math.round(a*c),this.height=Math.round(e*c),this.Y=!0,this.ns?(this.M=this.width,this.L=this.height,this.Nc=!0):this.widthg&&(this.L=this.M/m)):3===m&&(g=this.Xa/this.Wa,m=this.Xg/this.Wg,m>g?this.M=this.L*m:me;)e++,a=l.shift(),this.Xn(a[0],a[1])};f.prototype.cy=function(e,c){e.cocoonLazyLoad=!0;e.onerror=function(c){a=e.kp=!0;console&&console.error&&console.error("Error loading image '"+e.src+"': ",c)};this.Bd?e.src=c:e.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(a){e.src=a},function(b){a=e.kp=!0;console&& +console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",b)}):(e.crossOrigin="anonymous",this.ox(e,c)));this.wg.push(e)};f.prototype.Fv=function(a){var e,c;e=0;for(c=this.wg.length;e=l)l=5E4;a+=l;m.src&&(m.complete||m.loaded)&& +!m.kp?e+=l:b=!1}b&&this.ix&&this.Cg&&(n||(this.Cg.Ox(),n=!0),c=this.Cg.Sv(),e+=c,cthis.sf&&(this.ed||500<=b&& +this.lq!=this.Fd)){e.clearRect(0,0,g,m);var b=g/2,m=m/2,g=0===this.sf&&this.rf.Ak.complete,l=40*c,n=0,u=80*c,k;if(g){var w=this.rf.Ak,u=w.width*c;k=w.height*c;l=u/2;n=k/2;e.drawImage(w,ta(b-l),ta(m-n),u,k)}1>=this.sf?(b=ta(b-l)+.5,m=ta(m+(n+(g?12*c:0)))+.5,e.fillStyle=a?"red":"DodgerBlue",e.fillRect(b,m,Math.floor(u*this.Fd),6*c),e.strokeStyle="black",e.strokeRect(b,m,u,6*c),e.strokeStyle="white",e.strokeRect(b-1*c,m-1*c,u+2*c,8*c)):2===this.sf&&(e.font=this.Bd?"12pt ArialMT":"12pt Arial",e.fillStyle= +a?"#f00":"#999",e.Wz="middle",c=Math.round(100*this.Fd)+"%",g=e.measureText?e.measureText(c):null,e.fillText(c,b-(g?g.width:0)/2,m));this.lq=this.Fd}else if(4===this.sf){this.Qu(e);h?h(function(){d.go()}):setTimeout(function(){d.go()},16);return}}setTimeout(function(){d.go()},this.ed?10:100)}}};var w=-1,m="undefined"===typeof cr_is_preview?200:0,u=!0,fa=!1,ha=0,W=0,E="undefined"===typeof cr_is_preview?3E3:0,x=null,y=null,F=0;f.prototype.Qu=function(e){if(!L){for(var c=Math.ceil(this.width),b=Math.ceil(this.height), +d=this.rf.Ak,g=this.rf.hx,l=this.rf.dy,n=0;4>n;++n)if(!d[n].complete||!g[n].complete||!l[n].complete)return;0===F&&(w=Date.now());var n=Date.now(),k=!1,f=e,h,p;u||fa?(e.clearRect(0,0,c,b),x&&x.width===c&&x.height===b||(x=document.createElement("canvas"),x.width=c,x.height=b,y=x.getContext("2d")),f=y,k=!0,u&&1===F&&(w=Date.now())):e.globalAlpha=1;f.fillStyle="#333333";f.fillRect(0,0,c,b);256=E&&!fa&&1<=this.Fd&&(fa=!0,W=n);if(fa&&n-W>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.Fd&&500>Date.now()-w)L=!0,fa=u=!1,this.rf=y=x=null;++F}};f.prototype.kw=function(){this.Pb&&(this.canvas.parentNode.removeChild(this.Pb),this.Pb=this.Gn=null);this.ll=Date.now();this.$f=$a();var a,e,c;if(this.uo)for(a=0,e=this.D.length;aa||2===this.rc&&ee&&(e=0),this.Kf=e/=1E3,.51/this.Iq&&(this.Kf=1/this.Iq));this.pk=a;this.Jf=this.Kf*this.vh;this.Nb.add(this.Jf);this.Oe.add(e);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.kk)&&!this.Qc;2<=this.rc||a&&0e||2===b&&ca++;)this.up(this.Hh);a=0;for(e=this.re.length;ae.Kj.length&&e.Kj.push(a)};f.prototype.rp=function(a,e,c,b){if(a.V){var d=ta(Math.random()*a.Ek.length);return this.rp(a.Ek[d],e,c,b)}return a.bd?this.df(a.bd,e,!1,c,b,!1):null};var K=[];f.prototype.df= +function(a,e,c,b,d,g){var m,l,n,u;if(!a)return null;var k=this.D[a[1]],w=k.Ga.pf;if(this.ni&&w&&!k.Zm||w&&!this.C&&11===a[0][11])return null;var f=e;w||(e=null);var h;k.Kj.length?(h=k.Kj.pop(),h.Eb=!0,k.Ga.da.call(h,k)):(h=new k.Ga.da(k),h.Eb=!1);!c||g||this.Ae.hasOwnProperty(a[2].toString())?h.uid=this.Gi++:h.uid=a[2];this.Ae[h.uid.toString()]=h;h.qr=this.Pq++;h.Tf=k.e.length;m=0;for(l=this.Nd.length;ma&&(a=0);a>=this.Da.X.length&&(a=this.Da.X.length-1);return this.Da.X[a]};f.prototype.km=function(a){var e,c;e=0;for(c=a.length;e=this.qn.length&&this.qn.push([])};f.prototype.bx=function(){this.zk--};f.prototype.Gp=function(){return this.qn[this.zk]};f.prototype.Yk=function(a){this.Pj++;this.Pj>=this.um.length&&this.um.push(new Vb);var e=this.Mb();e.reset(a);return e};f.prototype.Sk= +function(){this.Pj--};f.prototype.Mb=function(){return this.um[this.Pj]};f.prototype.nx=function(){this.Bk++;this.Bk>=this.sn.length&&this.sn.push(aa({name:void 0,index:0,Gb:!1}));var a=this.Mv();a.name=void 0;a.index=0;a.Gb=!1;return a};f.prototype.cx=function(){this.Bk--};f.prototype.Mv=function(){return this.sn[this.Bk]};f.prototype.Hp=function(a,e){for(var c,b,d,g,m,l;e;){c=0;for(b=e.nd.length;cg||g>=a.sb.length||(m=d[b],null===m&&(m=NaN),a.sb[g]=m));if(n.pf){g=e.w;a.k.fa!==g.l&&(d=a.k,a.k=this.Da.ck(g.l),a.k?(d.ph(a,!0),a.k.Eh(a,!0),a.ta(),a.k.Xi(0)):(a.k=d,c||this.ie(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Jd=g.zi;a.j=g.hasOwnProperty("a")? +g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.tc=g.hasOwnProperty("hX")?g.hX:.5;a.uc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Ih=g.hasOwnProperty("ce")?g.ce:!0;a.Fi=g.hasOwnProperty("mts")?g.mts:-1;a.Ub=g.hasOwnProperty("bm")?g.bm:0;a.Jh=ib(a.Ub);this.G&&jb(a,a.Ub,this.G);a.ta();if(g.hasOwnProperty("fx"))for(c=0,d=g.fx.length;cm||(a.Se[m]=g.fx[c].active,a.$a[m]=g.fx[c].params);a.Id()}if(l=e.behs)for(b in l)l.hasOwnProperty(b)&&(c=this.Kv(a, +parseInt(b,10)),0>c||a.S[c].ub(l[b]));e.data&&a.ub(e.data)};f.prototype.zp=function(a,e,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(e,c)},c)};f.prototype.Dv=function(a,e){this.zp("data.js",function(c){var b=new FileReader;b.onload=function(e){a(e.target.result)};b.onerror=e;b.readAsText(c)},e)};var T=[],M=0;f.prototype.tn=function(){if(T.length&&!(8<=M)){M++;var a=T.shift();this.wu(a.filename,a.Qx,a.Wu)}};f.prototype.Ap=function(a,e,c){var b=this; +T.push({filename:a,Qx:function(a){M--;b.tn();e(a)},Wu:function(a){M--;b.tn();c(a)}});this.tn()};f.prototype.wu=function(a,e,c){this.zp(a,function(a){var c=new FileReader;c.onload=function(a){e(a.target.result)};c.readAsArrayBuffer(a)},c)};f.prototype.Ev=function(a,e,c){var b="",d=a.toLowerCase(),g=d.substr(d.length-4),d=d.substr(d.length-5);".mp4"===g?b="video/mp4":".webm"===d?b="video/webm":".m4a"===g?b="audio/mp4":".mp3"===g&&(b="audio/mpeg");this.Ap(a,function(a){a=URL.createObjectURL(new Blob([a], +{type:b}));e(a)},c)};f.prototype.sw=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Xn=function(a,e){this.lk&&!this.sw(e)?this.Ev(e,function(e){a.src=e},function(a){alert("Failed to load image: "+a)}):a.src=e};f.prototype.gl=function(a,e){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=e:(a.webkitImageSmoothingEnabled=e,a.mozImageSmoothingEnabled=e,a.msImageSmoothingEnabled=e)};Xb=function(a){return new f(document.getElementById(a))}; +Yb=function(a,e){return new f({dc:!0,width:a,height:e})};window.cr_createRuntime=Xb;window.cr_createDCRuntime=Yb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Gh=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight); +return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,q){var r=window.cr_getC2Runtime();r&&r.ru(f,q)}; +window.cr_sizeCanvas=function(f,q){if(0!==f&&0!==q){var r=window.cr_getC2Runtime();r&&r.setSize(f,q)}};window.cr_setSuspended=function(f){var q=window.cr_getC2Runtime();q&&q.setSuspended(f)}; +(function(){function f(a,e){this.b=a;this.Nf=null;this.scrollX=this.b.Xa/2;this.scrollY=this.b.Wa/2;this.scale=1;this.j=0;this.Lg=!0;this.name=e[0];this.Yw=e[1];this.Xw=e[2];this.width=e[1];this.height=e[2];this.es=e[3];this.Mr=e[4];this.fa=e[5];var c=e[6],b,d;this.X=[];this.di=[];b=0;for(d=c.length;b=this.X.length&&(m=this.X.length-1);h.k=this.X[m];-1===h.k.e.indexOf(h)&&h.k.e.push(h);h.k.xg=!0}if(!k)for(a=0,c=this.X.length;ac?h.siblings.push(w.e[c]):w.bd&&(d=this.b.df(w.bd,h.k,!0,h.x,h.y,!0),this.b.Tb(),w.zl(),h.siblings.push(d),p.push(d)));a=0;for(c= +this.mf.length;athis.width-e&&(a=this.width-e);athis.height-e&&(a=this.height-e);aH&&(H=0);0>J&&(J=0);O>M&&(O=M);P>v&&(P=v);0>z&&(z=0);0>B&&(B=0);ja>M&&(ja=M);ba>v&&(ba=v);I.left=H/M;I.top=1-J/v;I.right=O/M;I.bottom=1-P/v}else I.left=D.left=0,I.top=D.top=0,I.right=D.right=1,I.bottom=D.bottom=1;U=c&&(a.Qi(d[0].nb)||0!==y||0!==U|| +1!==c.opacity||c.type.Ga.Kq)||e&&!c&&1!==e.opacity;a.Dr();if(U){q[G]||(q[G]=a.Mc(M,v,this.b.Ra));if(q[G].Gf!==M||q[G].Ff!==v)a.deleteTexture(q[G]),q[G]=a.Mc(M,v,this.b.Ra);a.zc(0);a.ld(q[G]);T=ba-B;a.clearRect(z,v-B-T,ja-z,T);c?c.Ec(a):(a.Kc(this.b.tb),a.pg(e.opacity),a.kd(),a.translate(-C,-S),a.Xc(),a.Fe(H,P,O,P,O,J,H,J,I));D.left=D.top=0;D.right=D.bottom=1;c&&(F=I.top,I.top=I.bottom,I.bottom=F);G=1;K=0}a.pg(1);y=d.length-1;var ya=a.Mn(d[y].nb)||!e&&!c&&!this.b.Nc;t=F=0;for(r=d.length;tc||(e&&this.Yc&&a.xc&&a.xc.right>=a.xc.left&&(a.Ha(),this.Rb.update(a,a.xc,null),a.xc.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(Ba(this.e,c),this.Xi(c)),this.Gd=!0)}; +r.prototype.Eh=function(a,c){a.Jd=this.e.length;this.e.push(a);c&&this.Yc&&a.xc&&a.ta();this.Gd=!0};r.prototype.jx=function(a){this.e.unshift(a);this.Xi(0)};r.prototype.Nw=function(a,c,b){var d=a.Rd();c=c.Rd();Ba(this.e,d);dthis.Ja||b.top>this.Ia||(c.globalCompositeOperation=a.Jh,a.zd(c))}};r.prototype.Bl=function(){this.qe=!0;var a=this.ic(0,0,!0,!0),c=this.ic(0,0,!1,!0);this.qe=!1;this.b.Ed&&(a=Math.round(a), +c=Math.round(c));this.bl(a,c,null)};r.prototype.bl=function(a,c,b){var d=this.sc();this.Ea=a;this.Fa=c;this.Ja=a+1/d*this.b.M;this.Ia=c+1/d*this.b.L;this.Ea>this.Ja&&(a=this.Ea,this.Ea=this.Ja,this.Ja=a);this.Fa>this.Ia&&(a=this.Fa,this.Fa=this.Ia,this.Ia=a);a=this.rb();0!==a&&(b&&(b.translate(this.b.M/2,this.b.L/2),b.rotate(-a),b.translate(this.b.M/-2,this.b.L/-2)),this.Le.set(this.Ea,this.Fa,this.Ja,this.Ia),this.Le.offset((this.Ea+this.Ja)/-2,(this.Fa+this.Ia)/-2),this.Zr.Kr(this.Le,a),this.Zr.jp(this.Le), +this.Le.offset((this.Ea+this.Ja)/2,(this.Fa+this.Ia)/2),this.Ea=this.Le.left,this.Fa=this.Le.top,this.Ja=this.Le.right,this.Ia=this.Le.bottom)};r.prototype.Hg=function(a){if(this.Zd=this.Zj){this.b.tb||(this.b.tb=a.Mc(this.b.M,this.b.L,this.b.Ra));if(this.b.tb.Gf!==this.b.M||this.b.tb.Ff!==this.b.L)a.deleteTexture(this.b.tb),this.b.tb=a.Mc(this.b.M,this.b.L,this.b.Ra);a.ld(this.b.tb)}this.qe=!0;var c=this.ic(0,0,!0,!0),d=this.ic(0,0,!1,!0);this.qe=!1;this.b.Ed&&(c=Math.round(c),d=Math.round(d));this.bl(c, +d,null);c=this.sc();a.kd();a.scale(c,c);a.cl(-this.rb());a.translate((this.Ea+this.Ja)/-2,(this.Fa+this.Ia)/-2);a.Xc();this.Yc?(this.Jb.left=this.Rb.pc(this.Ea),this.Jb.top=this.Rb.qc(this.Fa),this.Jb.right=this.Rb.pc(this.Ja),this.Jb.bottom=this.Rb.qc(this.Ia),this.Gd||!this.Jb.Ph(this.Yg)?(b(this.ye),c=this.Km(),this.Gd=!1,this.Yg.Kh(this.Jb)):c=this.ye):c=this.e;for(var g,n=null,d=c.length-1;0<=d;--d)g=c[d],g!==n&&(this.Ou(c[d],a),n=g);this.Yc&&(this.ye=c);this.Hd||(this.lm=this.b.Lf++,a.hl(this.lm), +a.Er(1,1,1),a.Dp(),a.wx())};r.prototype.Ec=function(a){var c=0,d=0;if(this.Zd=this.Zj||1!==this.opacity||0this.Ja||b.top>this.Ia||(c.hl(a.Lf),a.ks?this.Pu(a,c):(c.zc(0),c.wf(a.fc,a.$b),a.Ec(c)))}};r.prototype.Ou=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.Ha();var b=a.xa;b.rightthis.Ja||b.top>this.Ia|| +(a.Lf=this.b.Lf++,0===a.Ub&&1===a.opacity&&a.He&&a.Hg&&(c.hl(a.Lf),a.Hg(c)))}};r.prototype.Pu=function(a,c){var b=a.wa[0].nb,d=a.wa[0].index,n=this.sc();if(1!==a.wa.length||c.Mn(b)||c.lx(b)||(a.j||a.k.rb())&&c.Qi(b)||1!==a.opacity||a.type.Ga.Kq)this.Bb.Qn(c,this,a,this.Zd?this.b.tb:this.Bb.Yh()),c.kd(),c.scale(n,n),c.cl(-this.rb()),c.translate((this.Ea+this.Ja)/-2,(this.Fa+this.Ia)/-2),c.Xc();else{c.zc(b);c.wf(a.fc,a.$b);c.Vk(b)&&(this.b.Y=!0);var k=0,h=0,m=0,u=0;c.Qi(b)&&(u=a.xa,k=this.Va(u.left, +u.top,!0,!0),h=this.Va(u.left,u.top,!1,!0),m=this.Va(u.right,u.bottom,!0,!0),u=this.Va(u.right,u.bottom,!1,!0),k=k/windowWidth,h=1-h/windowHeight,m=m/windowWidth,u=1-u/windowHeight);var f;a.hb&&a.hb.ua?(f=a.hb.ua,b=1/f.width,f=1/f.height):(b=1/a.width,f=1/a.height);c.rh(this.Zd?this.b.tb:this.Bb.Yh(),b,f,k,h,m,u,n,this.rb(),this.Ea,this.Fa,(this.Ea+this.Ja)/2,(this.Fa+this.Ia)/2,this.b.Nb.Z,a.$a[d]);a.Ec(c)}};r.prototype.ic=function(a,c,b,d){var n=this.b.devicePixelRatio;this.b.Xf&&(a*=n,c*=n);var n= +this.b.jr,k=this.b.kr,n=(this.Bb.scrollX-n)*this.Be+n,k=(this.Bb.scrollY-k)*this.Ce+k,h=n,m=k,u=1/this.sc(!d);d?(h-=this.b.M*u/2,m-=this.b.L*u/2):(h-=this.b.width*u/2,m-=this.b.height*u/2);h+=a*u;m+=c*u;c=this.rb();0!==c&&(h-=n,m-=k,a=Math.cos(c),c=Math.sin(c),d=h*a-m*c,m=m*a+h*c,h=d+n,m+=k);return b?h:m};r.prototype.Va=function(a,c,b,d){var n=this.b.jr,k=this.b.kr,h=(this.Bb.scrollX-n)*this.Be+n,m=(this.Bb.scrollY-k)*this.Ce+k,k=h,n=m,u=this.rb();if(0!==u){a-=h;c-=m;var f=Math.cos(-u),u=Math.sin(-u), +p=a*f-c*u;c=c*f+a*u;a=p+h;c+=m}h=1/this.sc(!d);d?(k-=this.b.M*h/2,n-=this.b.L*h/2):(k-=this.b.width*h/2,n-=this.b.height*h/2);k=(a-k)/h;n=(c-n)/h;a=this.b.devicePixelRatio;this.b.Xf&&!d&&(k/=a,n/=a);return b?k:n};r.prototype.eb=function(){var a,c,b,d={s:this.scale,a:this.j,vl:this.Ea,vt:this.Fa,vr:this.Ja,vb:this.Ia,v:this.visible,bc:this.ud,t:this.Hd,px:this.Be,py:this.Ce,o:this.opacity,zr:this.Qe,fx:[],cg:this.Mh,instances:[]};a=0;for(c=this.T.length;aa[1].index&&(c=a[0],a[0]=a[1],a[1]=c):2=n.length&&(n.length=a.length+1);n[a.length]||(n[a.length]=[]);d=n[a.length];c=0;for(b=d.length;c=c.length&&(c.length=this.fg+1),c[this.fg]=a):this.data=a};e.prototype.Wv=function(){var a=this.b.Gp();return!this.parent||this.mi||!a||this.nk?this.data:this.fg>=a.length||"undefined"===typeof a[this.fg]?this.u:a[this.fg]};e.prototype.mb=function(){!this.parent||this.mi||this.nk||this.Lx(this.u)};Wb=e; +l.prototype.toString=function(){return"include:"+this.ci.toString()};l.prototype.cb=function(){this.ci=this.b.vm[this.pw];this.sheet.Pp.add(this);this.Ka=r(this.Ka);for(var a=this.parent;a;)a.group&&a.Ej.push(this),a=a.parent;this.hs()};l.prototype.mb=function(){this.parent&&this.b.Si(this.b.D);this.ci.Pm||this.ci.mb(!0);this.parent&&this.b.mg(this.b.D)};l.prototype.hs=function(){for(var a=this.parent;a;){if(a.group&&!a.$h){this.B=!1;return}a=a.parent}this.B=!0};fc=l;g.prototype.reset=function(a){this.Kb= +a;this.Bc=this.ob=0;N(this.Ur);this.tm=this.Zf=!1};g.prototype.yw=function(){return this.Kb.bo?!0:this.ob=this.type&&(this.first= +new dc(b,d[1]),this.second=new dc(b,d[2]));if(h){var c,a;c=0;for(a=h.length;c=d||l<=-d)l%=d;0>l&&(l+=d);e.apply(n[l],h)};f.prototype.cv=function(b){var d=this.ze,h=this.ab,c=this.aa,a=this.Ad,e=this.vd,l=this.Lb,g=this.hd.Ie,n=d.qa(),f=n.dd();if(!f.length)if(n.ga.length)f=n.ga;else{this.qh?b.Fb(""):b.Na(0);return}h[0]=b;b.ig=d;b=q();r(c,h,b);a&&(a.get(b),b.zb()&&(g=b.data,f=d.e));--p;c=f.length;if(g>=c||g<=-c)g%=c;0>g&&(g+=c);g=f[g];f=0;d.V&&(f=g.type.Kg[d.se]);l.apply(g.S[e+f],h)};f.prototype.ov=function(b){var d=this.Ad,h=this.ze,c=this.ls,a=this.hd.Ie,e=h.qa(),l=e.dd(); +if(!l.length)if(e.ga.length)l=e.ga;else{this.qh?b.Fb(""):b.Na(0);return}if(d){e=q();d.get(e);if(e.zb()){a=e.data;l=h.e;0!==l.length&&(a%=l.length,0>a&&(a+=l.length));a=h.Hm(a);h=a.sb[c];A(h)?b.Fb(h):b.H(h);--p;return}--p}d=l.length;if(a>=d||a<=-d)a%=d;0>a&&(a+=d);a=l[a];l=0;h.V&&(l=a.type.Uj[h.se]);h=a.sb[c+l];A(h)?b.Fb(h):b.H(h)};f.prototype.pv=function(b){b.type=gc.zg;b.data=this.value};f.prototype.kv=function(b){b.type=gc.yg;b.data=this.value};f.prototype.yv=function(b){b.type=gc.String;b.data= +this.value};f.prototype.Bv=function(b){this.first.get(b);b.zb()&&(b.data=-b.data)};f.prototype.Xu=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data+=d.data,d.Qg()&&b.$g());--p};f.prototype.zv=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data-=d.data,d.Qg()&&b.$g());--p};f.prototype.tv=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data*=d.data,d.Qg()&&b.$g());--p};f.prototype.gv=function(b){this.first.get(b); +var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data/=d.data,b.$g());--p};f.prototype.sv=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data%=d.data,d.Qg()&&b.$g());--p};f.prototype.xv=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data=Math.pow(b.data,d.data),d.Qg()&&b.$g());--p};f.prototype.Yu=function(b){this.first.get(b);var d=q();this.second.get(d);d.Tg()||b.Tg()?this.$u(b,d):this.Zu(b,d);--p};f.prototype.$u=function(b,d){b.Tg()&& +d.Tg()?this.bv(b,d):this.av(b,d)};f.prototype.bv=function(b,d){b.data+=d.data};f.prototype.av=function(b,d){b.Tg()?b.data+=(Math.round(1E10*d.data)/1E10).toString():b.Fb(b.data.toString()+d.data)};f.prototype.Zu=function(b,d){b.Na(b.data&&d.data?1:0)};f.prototype.wv=function(b){this.first.get(b);var d=q();this.second.get(d);b.zb()&&d.zb()&&(b.data||d.data?b.Na(1):b.Na(0));--p};f.prototype.dv=function(b){this.first.get(b);b.data?this.second.get(b):this.sl.get(b)};f.prototype.hv=function(b){this.first.get(b); +var d=q();this.second.get(d);b.Na(b.data===d.data?1:0);--p};f.prototype.uv=function(b){this.first.get(b);var d=q();this.second.get(d);b.Na(b.data!==d.data?1:0);--p};f.prototype.qv=function(b){this.first.get(b);var d=q();this.second.get(d);b.Na(b.datad.data?1:0);--p};f.prototype.nv=function(b){this.first.get(b); +var d=q();this.second.get(d);b.Na(b.data>=d.data?1:0);--p};f.prototype.jv=function(b){var d=this.Of.Wv();la(d)?b.H(d):b.Fb(d)};dc=f;t.prototype.Qg=function(){return this.type===gc.yg};t.prototype.zb=function(){return this.type===gc.zg||this.type===gc.yg};t.prototype.Tg=function(){return this.type===gc.String};t.prototype.$g=function(){this.Qg()||(this.Tg()&&(this.data=parseFloat(this.data)),this.type=gc.yg)};t.prototype.Na=function(b){this.type=gc.zg;this.data=Math.floor(b)};t.prototype.H=function(b){this.type= +gc.yg;this.data=b};t.prototype.Fb=function(b){this.type=gc.String;this.data=b};t.prototype.rg=function(b){la(b)?(this.type=gc.yg,this.data=b):A(b)?(this.type=gc.String,this.data=b.toString()):(this.type=gc.zg,this.data=0)};cc=t;gc={zg:0,yg:1,String:2}})();function X(f){this.b=f;this.Ac=[]} +X.prototype.eb=function(){var f={},q,r,t,b,p,k,d,h;f.waits=[];var c=f.waits,a;q=0;for(r=this.Ac.length;qb)){var c,a,e,l=this.b.Mb(),g;k.length?g=k.pop():g={mc:{},Ka:[]};g.rm=!1;g.time=this.b.Nb.Z+b;g.Pr="";g.ao=!1;g.Ig=l.Kb;g.Bc=l.Bc+1;b=0;for(c=this.b.D.length;bd&&(c=d);b.H(c)};r.prototype.Jf=function(b){b.H(this.b.Jf)};r.prototype.vh=function(b){b.H(this.b.vh)};r.prototype.time=function(b){b.H(this.b.Nb.Z)};r.prototype.ee=function(b){b.Na(this.b.ee)};r.prototype.Gk=function(b){b.Na(this.b.Gk)};r.prototype.Am=function(b){b.Na(this.b.Am)};r.prototype.j=function(b,c,a,e,d){b.H(Ia(Oa(c,a,e,d)))};r.prototype.left=function(b,c,a){b.Fb(A(c)?c.substr(0,a):"")};r.prototype.right= +function(b,c,a){b.Fb(A(c)?c.substr(c.length-a):"")};r.prototype.replace=function(b,c,a,e){A(c)&&A(a)&&A(e)?b.Fb(c.replace(new RegExp(eb(a),"gi"),e)):b.Fb(A(c)?c:"")};r.prototype.trim=function(b,c){b.Fb(A(c)?c.trim():"")};r.prototype.ju=function(b){var c=ta(Math.random()*(arguments.length-1));b.rg(arguments[c+1])};r.prototype.mm=function(b){b.H(this.b.mm/1E3)};r.prototype.xk=function(b){b.H(this.b.xk)};t.Ma=new r;t.zx=function(){var b,c,a,e,l,g,n=this.b.Mb();b=0;for(a=this.Ac.length;bthis.b.Nb.Z)continue;n.Kb=e.Ig;n.Bc=e.Bc;n.ob=0;for(c in e.mc)e.mc.hasOwnProperty(c)&&(l=this.b.D[parseInt(c,10)].qa(),g=e.mc[c],l.Aa=g.el,Da(l.e,g.ue),l=g,N(l.ue),d.push(l));e.Ig.yx();this.b.km(e.Ka);e.rm=!0}c=b=0;for(a=this.Ac.length;ba.Ja||b.top>a.Ia)},a.Cy=function(){this.Ha();var a=this.xa,b=this.b.Da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Oy=function(a,b,c){var e=this.qa(), +d=e.dd();if(!d.length)return!1;var l=d[0],f=l,h=Ua(l.x,l.y,b,c),k,p,q;k=1;for(p=d.length;kh)h=q,f=l;e.Oi(f);return!0},e.rz=function(a){this.x!==a&&(this.x=a,this.ta())},e.sz=function(a){this.y!==a&&(this.y=a,this.ta())},e.iz=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.ta()},e.jz=function(a,b){var c=a.Rv(this);if(c){var e;c.Gm?(e=c.Gm(b,!0),c=c.Gm(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.ta()}}, +e.Gy=function(a){0!==a&&(this.x+=Math.cos(this.j)*a,this.y+=Math.sin(this.j)*a,this.ta())},e.Fy=function(a,b){0!==b&&(this.x+=Math.cos(Q(a))*b,this.y+=Math.sin(Q(a))*b,this.ta())},l.No=function(a){a.H(this.x)},l.Oo=function(a){a.H(this.y)},l.Jf=function(a){a.H(this.b.Pf(this))});p&&(a.qy=function(a,b){return hc(this.width,a,b)},a.my=function(a,b){return hc(this.height,a,b)},e.Mt=function(a){this.width!==a&&(this.width=a,this.ta())},e.cz=function(a){this.height!==a&&(this.height=a,this.ta())},e.kz= +function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.ta()},l.zz=function(a){a.H(this.width)},l.wy=function(a){a.H(this.height)},l.iy=function(a){this.Ha();a.H(this.xa.left)},l.ky=function(a){this.Ha();a.H(this.xa.top)},l.jy=function(a){this.Ha();a.H(this.xa.right)},l.hy=function(a){this.Ha();a.H(this.xa.bottom)});k&&(a.os=function(a,b){return Pa(this.j,Q(b))<=Q(a)},a.Hs=function(a){return Sa(this.j,Q(a))},a.Gs=function(a,b){var c=Na(a),e=Na(b),d=La(this.j);return Sa(e, +c)?Sa(d,c)&&!Sa(d,e):!(!Sa(d,c)&&Sa(d,e))},e.Zy=function(a){a=Q(Ja(a));isNaN(a)||this.j===a||(this.j=a,this.ta())},e.Vy=function(a){0===a||isNaN(a)||(this.j+=Q(a),this.j=La(this.j),this.ta())},e.Wy=function(a){0===a||isNaN(a)||(this.j-=Q(a),this.j=La(this.j),this.ta())},e.Xy=function(a,b){var c=Ra(this.j,Q(b),Q(a));isNaN(c)||this.j===c||(this.j=c,this.ta())},e.Yy=function(a,b,c){a=Ra(this.j,Math.atan2(c-this.y,b-this.x),Q(a));isNaN(a)||this.j===a||(this.j=a,this.ta())},e.oz=function(a,b){var c=Math.atan2(b- +this.y,a-this.x);isNaN(c)||this.j===c||(this.j=c,this.ta())},l.gy=function(a){a.H(Ma(this.j))});t||(a.vs=function(a,b,c){return hc(this.sb[a],b,c)},a.zy=function(a){return this.sb[a]},a.Py=function(a,b){var c=this.qa(),e=c.dd();if(!e.length)return!1;var d=e[0],l=d,f=d.sb[b],h,k,p;h=1;for(k=e.length;hf)f=p,l=d;c.Oi(l);return!0},a.Ny=function(a){var b,c,e,d,l;if(this.b.Lv().Um){l=this.qa();if(l.Aa)for(l.Aa=!1,N(l.e),N(l.ga),e=this.e,b=0,c=e.length;ba?a=0:1d.k.index||e.k.index===d.k.index&&e.Rd()>d.Rd())d=e}else if(e.k.indexc)){var e=1===a;this.Se[c]!==e&&(this.Se[c]=e,this.Id(),this.b.Y=!0)}}},e.bz=function(a,b,c){if(this.b.C){var e=this.type.Em(a);0>e||(a=this.type.T[e],e=this.$a[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.C.Vv(a.nb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.B&&(this.b.Y=!0))))}})};Nb=function(){this.fm=this.Zl=!0;this.type.$o=!0;this.b.Y=!0;var f,r,t=this.$l;f=0;for(r=t.length;ft;case 5:return f>=t;default:return!1}}})(); +var rc={inverse:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float intensity;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec3 inverse = vec3(front.a - front.rgb);\ngl_FragColor = vec4(mix(front.rgb, inverse, intensity), front.a);\n}",Qj:0,Rj:0,nm:!1,jd:!0,Xl:!1,aa:[["intensity",0,1]]}};function vc(f){this.b=f} +(function(){function f(a){-1===lb.indexOf(a)&&lb.push(a)}function q(a){var b=a.n,c;try{c=b.play()}catch(e){f(a);return}c?c.catch(function(){f(a)}):Fc&&!C.ec&&f(a)}function r(){var a,b,c,e;Gc||Eb||!z||(t(),"running"===z.state&&(Gc=!0));var d=lb.slice(0);N(lb);if(!ba)for(a=0,b=d.length;aa&&(a=0);1a&&(a=.01);this.Uk.gain.value=a;this.Tk.gain.value=Math.pow(1/a,.6)*b}; +fa.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=ag;++g)d=g/32768,d=this.shape(d,c,e),this.Ij[32768+g]=d,this.Ij[32768-g-1]=-d};fa.prototype.$c=function(a){this.R.disconnect();this.R.connect(a);this.P.disconnect();this.P.connect(a)};fa.prototype.remove=function(){this.ka.disconnect();this.Uk.disconnect();this.Dl.disconnect();this.Tk.disconnect(); +this.R.disconnect();this.P.disconnect()};fa.prototype.Oc=function(){return this.ka};ha.prototype.$c=function(a){this.ra.disconnect();this.ra.connect(a)};ha.prototype.remove=function(){this.ra.disconnect()};ha.prototype.Oc=function(){return this.ra};W.prototype.Sa=function(){this.ra.getFloatFrequencyData(this.Gv);this.ra.getByteTimeDomainData(this.Nr);for(var a=this.ra.fftSize,c=0,e=this.Ni=0,d=0;cd&&(d=-d),this.Nib&&(c=b);return c};y.prototype.Wf=function(){return!this.Fc&&!this.Qd&&!this.Gb&&!this.Sf()};y.prototype.Mx=function(){return!this.Qd&&!this.Gb&&!this.Sf()};y.prototype.Wx=function(){var a=this.volume*U;isFinite(a)||(a=0);switch(this.ea){case 0:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a);break;case 1:1===this.buffer.ea?this.qb.gain.value=a*this.dh:"undefined"!==typeof this.n.volume&&this.n.volume!==a&&(this.n.volume=a)}};y.prototype.Oj=function(a){switch(this.ea){case 0:this.n.muted!== +!!a&&(this.n.muted=!!a);break;case 1:1===this.buffer.ea?(this.dh=a?0:1,this.qb.gain.value=U*this.volume*this.dh):this.n.muted!==!!a&&(this.n.muted=!!a)}};y.prototype.Hx=function(){this.Rg=!0;this.Oj(this.Rg||this.li)};y.prototype.Ir=function(a){this.li=!!a;this.Oj(this.Rg||this.li)};y.prototype.Al=function(){var a=this.playbackRate;this.Pg&&(a*=C.vh);switch(this.ea){case 0:this.n.playbackRate!==a&&(this.n.playbackRate=a);break;case 1:1===this.buffer.ea?this.n.playbackRate.value!==a&&(this.n.playbackRate.value= +a):this.n.playbackRate!==a&&(this.n.playbackRate=a)}};y.prototype.Jx=function(b){switch(this.ea){case 0:b?this.Wf()?(this.Tc=!0,this.n.pause()):this.Tc=!1:this.Tc&&(this.n.play(),this.Tc=!1);break;case 1:b?this.Wf()?(this.Tc=!0,1===this.buffer.ea?(this.yc=this.Jm(!0),this.Ud&&(this.yc=this.yc%this.kf()),a(this.n)):this.n.pause()):this.Tc=!1:this.Tc&&(1===this.buffer.ea?(this.n=z.createBufferSource(),this.n.buffer=this.buffer.na,this.n.connect(this.qb),this.n.onended=this.En,this.vj=this.n,this.n.loop= +this.Ud,this.qb.gain.value=U*this.volume*this.dh,this.Al(),this.startTime=(this.Pg?C.Nb.Z:C.Oe.Z)-this.yc/(this.playbackRate||.001),c(this.n,this.yc,this.kf())):this.n.play(),this.Tc=!1);break;case 2:b?this.Wf()?(this.n.pause(),this.Tc=!0):this.Tc=!1:this.Tc&&(this.Tc=!1,this.n.play())}};v.da=function(a){this.type=a;C=this.b=a.b;S=this;this.Gc=null;this.si=-600;this.b.lk&&(mb=!0);!(this.b.Ug||this.b.ei&&(this.b.Vm||this.b.hk))||this.b.jk||this.b.Ca||this.b.Up||mb||(Fc=!0);z=null;"undefined"!==typeof AudioContext? +(H=1,z=new AudioContext):"undefined"!==typeof webkitAudioContext&&(H=1,z=new webkitAudioContext);this.b.Ug&&z&&(z.close&&z.close(),"undefined"!==typeof AudioContext?z=new AudioContext:"undefined"!==typeof webkitAudioContext&&(z=new webkitAudioContext));1!==H&&(this.b.Qc&&"undefined"!==typeof window.Media?H=2:this.b.Vp&&(H=3));2===H&&(D=location.href,a=D.lastIndexOf("/"),-1"!==b&&(a.Qk=b,a.rn=e,a.vo=d),null;l=new y(a,b);B.push(l);return l};var za=[];R.prototype.pj=function(a){return nb(I, +a)};v.g=new R;T.prototype.Play=function(a,b,c,e){!ba&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1d?null:k[d];return c?nb(b,c.name):!1};p.g=new r;t.prototype.CallFunction=function(b,c){var a=q();a.name=b.toLowerCase();a.Ui=0;Da(a.Qb,c);this.b.trigger(uc.prototype.g.qj,this,a.name);d--};p.J=new t;b.prototype.rs=function(b,c){var a=q();a.name=c.toLowerCase();a.Ui=0;N(a.Qb);var e,f;e=2;for(f=arguments.length;eb;++b)if(this.pi[b]){this.pi[b]=!1;this.Me=b;this.b.trigger(wc.prototype.g.Ao,this);var f=this.b.trigger(wc.prototype.g.Do,this),k=this.b.trigger(wc.prototype.g.Co,this);if(f||k)this.gj[b]=!0}};r.eb=function(){return{triggerKey:this.Me}};r.ub=function(b){this.Me=b.triggerKey};f.prototype.Bo=function(b){return b===this.Me};f.prototype.Os=function(){return!0};f.prototype.Ao=function(){return!0};f.prototype.Do= +function(b){return b===this.Me};f.prototype.dt=function(b){return b===this.Me};f.prototype.Co=function(b){return b===this.Me};q.g=new f;q.J=new function(){};q.Ma=new function(){}})();function tc(f){this.b=f} +(function(){function f(){if(0===this.Jj.length){var b=document.createElement("canvas");b.width=this.width;b.height=this.height;var a=b.getContext("2d");this.sg?a.drawImage(this.ua,this.jg,this.kg,this.width,this.height,0,0,this.width,this.height):a.drawImage(this.ua,0,0,this.width,this.height);this.Jj=b.toDataURL("image/png")}return this.Jj}function q(){}function r(){}var t=tc.prototype;t.la=function(b){this.Ga=b;this.b=b.b};var b=t.la.prototype;b.N=function(){if(!this.V){var b,a,e,d,g,n,k,h,m;this.td= +[];this.bi=!1;b=0;for(a=this.Cc.length;bthis.K&&(this.K=0);this.K>=this.Qa.frames.length&&(this.K=this.Qa.frames.length-1);var b=this.Qa.frames[this.K];this.Md.Yi(b.Rk);this.tc=b.tc;this.uc=b.uc;this.Fg=this.Qa.speed;this.ef=this.Qa.Sn;1===this.type.Cc.length&&1===this.type.Cc[0].frames.length||0===this.Fg||this.b.tl(this);this.Eb?this.Ld.reset():this.Ld=new db;this.te=this.Ld.Z; +this.Df=!0;this.ke=0;this.Cf=!0;this.jm=this.Zo="";this.iu=0;this.im=-1;this.type.Iw();var a,e,d,g,f,h,k,b=0;for(a=this.type.Cc.length;bthis.K&&(this.K=0);this.K>=this.Qa.frames.length&&(this.K=this.Qa.frames.length-1);this.Fg=b.cas;this.te=b.fs;this.ke=b.ar;this.Ld.reset();this.Ld.Z=b.at;this.Df=b.hasOwnProperty("ap")?b.ap:!0;this.Cf=b.hasOwnProperty("af")?b.af:!0;b.hasOwnProperty("rt")?this.ef=b.rt:this.ef= +this.Qa.Sn;this.hb=this.Qa.frames[this.K];this.Eg=this.hb.La;this.Md.Yi(this.hb.Rk);this.tc=this.hb.tc;this.uc=this.hb.uc};k.Yl=function(b){this.K=b?0:this.Qa.frames.length-1;this.Df=!1;this.Zo=this.Qa.name;this.b.trigger(tc.prototype.g.Ns,this);this.b.trigger(tc.prototype.g.Ms,this);this.ke=0};k.Gh=function(){return this.Ld.Z};k.Sa=function(){this.Ld.add(this.b.Pf(this));this.jm.length&&this.su();0<=this.im&&this.tu();var b=this.Ld.Z,a=this.Qa,e=a.frames[this.K],d=e.duration/this.Fg;this.Df&&b>= +this.te+d&&(this.Cf?this.K++:this.K--,this.te+=d,this.K>=a.frames.length&&(a.lr?(this.Cf=!1,this.K=a.frames.length-2):a.loop?this.K=this.ef:(this.ke++,this.ke>=a.Rn?this.Yl(!1):this.K=this.ef)),0>this.K&&(a.lr?(this.K=1,this.Cf=!0,a.loop||(this.ke++,this.ke>=a.Rn&&this.Yl(!0))):a.loop?this.K=this.ef:(this.ke++,this.ke>=a.Rn?this.Yl(!0):this.K=this.ef)),0>this.K?this.K=0:this.K>=a.frames.length&&(this.K=a.frames.length-1),b>this.te+a.frames[this.K].duration/this.Fg&&(this.te=b),b=a.frames[this.K], +this.Ag(e,b),this.b.Y=!0)};k.Ep=function(b){var a,e,d;a=0;for(e=this.type.Cc.length;athis.K&&(this.K=0),this.K>=this.Qa.frames.length&&(this.K=this.Qa.frames.length-1), +1===this.iu&&(this.K=0),this.Df=!0,this.te=this.Ld.Z,this.Cf=!0,this.Ag(b,this.Qa.frames[this.K]),this.b.Y=!0)};k.tu=function(){var b=this.Qa.frames[this.K],a=this.K;this.K=ta(this.im);0>this.K&&(this.K=0);this.K>=this.Qa.frames.length&&(this.K=this.Qa.frames.length-1);a!==this.K&&(this.Ag(b,this.Qa.frames[this.K]),this.te=this.Ld.Z,this.b.Y=!0);this.im=-1};k.Ag=function(b,a){var e=b.width,d=b.height,g=a.width,f=a.height;e!=g&&(this.width*=g/e);d!=f&&(this.height*=f/d);this.tc=a.tc;this.uc=a.uc;this.Md.Yi(a.Rk); +this.ta();this.hb=a;this.Eg=a.La;e=0;for(d=this.S.length;eg||g>=d.length)return a?this.x:this.y;var f=(d[g][1]-e.tc)*this.width,d=d[g][2],d=(d-e.uc)*this.height,e=Math.cos(this.j);g=Math.sin(this.j);var h=f*e-d*g,d=d*e+f*g,f=h+this.x,d=d+this.y;return a? +f:d};var d=new da,h=!1;new wa(0,0,0,0);b.finish=function(b){if(h){if(b){var a=this.b.Mb().Kb.gd;b=null.qa();var e=d.Bf(),f,g;if(b.Aa){b.Aa=!1;N(b.e);f=0;for(g=e.length;f=d.length&&d.push(f(h,Object));b=d[b];b.text=c;b.width=a.un(c);a.Ke=pa(a.Ke,b.width)}function t(){}function b(){}var p=xc.prototype;p.N=function(){};p.la=function(a){this.Ga=a;this.b=a.b};var k=p.la.prototype; +k.N=function(){this.V||(this.ua=new Image,this.ua.idtkLoadDisposed=!0,this.ua.src=this.fo,this.b.wg.push(this.ua),this.La=null)};k.Ik=function(){this.V||(this.La=null)};k.Cn=function(){if(!this.V&&this.e.length){this.La||(this.La=this.b.C.vi(this.ua,this.b.Ra,this.ho));var a,b;a=0;for(b=this.e.length;a=d*e);t++){var q=t%d,r=Math.floor(t/d),x=p.charAt(t);if(this.b.C){var y=this.Dj,F=q*k,G=r*l,q=(q+1)*k,r=(r+1)*l;void 0===y[x]&&(y[x]=f(a,wa));y[x].left=F;y[x].top=G;y[x].right=q;y[x].bottom=r}else y=this.Cj,q=q*b,r=r*h,F=b,G=h,void 0===y[x]&&(y[x]=f(c,Object)),y[x].x=q,y[x].y=r,y[x].ms=F,y[x].Lp=G}};var e=[];p.Rl= +function(a){e.length=0;for(var b="",c,d=0;d=d)q(h,c,!0);else{var e=a.$e,k=a.Dg;if(b.length*(a.Bj*e+k)-k<=d&&-1===b.indexOf("\n")&&(k=a.un(b),k<=d)){q(h,c,!0);c.push(f(h, +Object));c[0].text=b;c[0].width=k;a.Ke=k;a.de=a.Ze*e+a.lineHeight;return}this.Tl(a);a.de=c.length*(a.Ze*e+a.lineHeight)}}else q(h,c,!0)};p.Tl=function(a){var b=a.mj,c=a.text,f=a.kc,k=a.width;b&&(this.Rl(c),c=e);var l="",p,t,q,E=0,x=!1;for(q=0;qk&&(""===p?(r(a,E,l),l="",x=!0):(r(a,E,p),l=c[q]),E++,b||" "!==l||(l="")));l.replace(/\s\s*$/,"").length&&(r(a,E,l),E++);for(q=E;qthis.width+1E-5)break;void 0!==K&&a.drawImage(this.ua,K.x,K.y,K.ms,K.Lp,Math.round(k),Math.round(p),K.ms*c,K.Lp*c); +k+=this.Vh(G)*c+f}p+=d;if(p+d+e>this.height)break}a.restore()}};var l=new xa;k.Ec=function(a){a.Kc(this.La);a.pg(this.opacity);if(""!==this.text&&(this.sr(),!(this.heightthis.width+1E-5)break;if(void 0!==v){var C=this.Bj*k,S=this.Ze*k;l.Hb=R;l.Ib=h;l.gc=R+C;l.hc=h;l.Vb=R;l.Wb=h+S;l.Xb=R+C;l.Yb=h+S;if(0!==e){var C=l,S=G,I=K,D=void 0,D=C.Hb*S-C.Ib*I;C.Ib=C.Ib*S+C.Hb*I;C.Hb=D;D=C.gc*S-C.hc*I;C.hc=C.hc*S+C.gc*I;C.gc=D;D=C.Vb*S-C.Wb*I;C.Wb=C.Wb*S+C.Vb*I;C.Vb=D;D=C.Xb*S-C.Yb*I;C.Yb=C.Yb*S+C.Xb*I;C.Xb=D}l.offset(c,b);a.Fe(l.Hb,l.Ib,l.gc,l.hc,l.Xb, +l.Yb,l.Vb,l.Wb,v)}R+=this.Vh(M)*k+q}h+=p;if(h+p+t>this.height)break}}};p.g=new function(){};t.prototype.sj=function(a){la(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Uc=!0,this.b.Y=!0)};k.Gh=function(a,b){var c=parseInt(b,10);this.wd[a]!==c&&(this.wd[a]=c,this.Uc=!0,this.b.Y=!0)};p.J=new t;b.prototype.Text=function(a){a.Fb(this.text)};p.Ma=new b})();function yc(f){this.b=f} +(function(){function f(){return h.length?h.pop():{}}function q(b){var a,d;a=0;for(d=b.length;ab.Ja||a.top>b.Ia)this.b.C.deleteTexture(this.Hc),this.Vd=this.hg=this.Hc=null}};k.lg=function(){this.Vd= +this.hg=null;this.b.C&&this.Hc&&this.b.C.deleteTexture(this.Hc);this.Hc=null};k.Gh=function(){this.font=this.Yj+" "+this.Ri.toString()+"pt "+this.Jg;this.Uc=!0;this.b.Y=!0};k.zd=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var d=1;a&&(d=Math.abs(this.k.sc()),b.save(),b.scale(d,d));if(this.Uc||this.width!==this.bg)this.type.Ga.Sl(this.text,this.kc,b,this.width,this.mj),this.Uc=!1,this.bg=this.width;this.Ha();var d=a?0:this.Xe.Hb,f=a?0:this.Xe.Ib; +this.b.Ed&&(d=d+.5|0,f=f+.5|0);0===this.j||a||(b.save(),b.translate(d,f),b.rotate(this.j),f=d=0);var g=f+this.height,h=this.Nn,h=h+this.ln,k,p;1===this.ug?f+=Math.max(this.height/2-this.kc.length*h/2,0):2===this.ug&&(f+=Math.max(this.height-this.kc.length*h-2,0));for(p=0;p=g-h);p++);(0!==this.j||a)&&b.restore();this.ag=this.b.ee};k.Ec=function(b){if(!(1> +this.width||1>this.height)){var a=this.Uc||this.Nq;this.Nq=!1;var d=this.k.sc(),f=this.k.rb(),g=this.oh,h=d*this.width,k=d*this.height,p=Math.ceil(h),m=Math.ceil(k),t=Math.abs(p),q=Math.abs(m),r=this.b.M/2,W=this.b.L/2;this.hg||(this.Vd=document.createElement("canvas"),this.Vd.width=t,this.Vd.height=q,this.rk=t,this.qk=q,a=!0,this.hg=this.Vd.getContext("2d"));if(t!==this.rk||q!==this.qk)this.Vd.width=t,this.Vd.height=q,this.Hc&&(b.deleteTexture(this.Hc),this.Hc=null),a=!0;a&&(this.hg.clearRect(0, +0,t,q),this.zd(this.hg,!0),this.Hc||(this.Hc=b.Mc(t,q,this.b.Ra,this.b.nf)),b.by(this.Vd,this.Hc,this.b.nf));this.rk=t;this.qk=q;b.Kc(this.Hc);b.pg(this.opacity);b.kd();b.translate(-r,-W);b.Xc();var E=this.Xe,a=this.k.Va(E.Hb,E.Ib,!0,!0),t=this.k.Va(E.Hb,E.Ib,!1,!0),q=this.k.Va(E.gc,E.hc,!0,!0),r=this.k.Va(E.gc,E.hc,!1,!0),W=this.k.Va(E.Xb,E.Yb,!0,!0),x=this.k.Va(E.Xb,E.Yb,!1,!0),y=this.k.Va(E.Vb,E.Wb,!0,!0),E=this.k.Va(E.Vb,E.Wb,!1,!0);if(this.b.Ed||0===this.j&&0===f)var F=(a+.5|0)-a,G=(t+.5|0)- +t,a=a+F,t=t+G,q=q+F,r=r+G,W=W+F,x=x+G,y=y+F,E=E+G;0===this.j&&0===f?(q=a+p,r=t,W=q,x=t+m,y=a,E=x,g.right=1,g.bottom=1):(g.right=h/p,g.bottom=k/m);b.Fe(a,t,q,r,W,x,y,E,g);b.kd();b.scale(d,d);b.cl(-this.k.rb());b.translate((this.k.Ea+this.k.Ja)/-2,(this.k.Fa+this.k.Ia)/-2);b.Xc();this.ag=this.b.ee}};var d=[];p.Rl=function(b){N(d);for(var a="",e,f=0;f=h)q(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=d.measureText(b).width;if(k<=h){q(a);a.push(f());a[0].text=b;a[0].width=k;return}}this.Tl(b,a,d,h,g)}else q(a)};p.Tl=function(b,a,e,k,g){g&&(this.Rl(b),b=d);var p="",t,q,m,u=0;for(m=0;m=a.length&&a.push(f()),p=r(p),q=a[u],q.text=p,q.width=e.measureText(p).width, +u++,p=""):(t=p,p+=b[m],q=e.measureText(p).width,q>=k&&(u>=a.length&&a.push(f()),t=r(t),q=a[u],q.text=t,q.width=e.measureText(t).width,u++,p=b[m],g||" "!==p||(p="")));p.length&&(u>=a.length&&a.push(f()),p=r(p),q=a[u],q.text=p,q.width=e.measureText(p).width,u++);for(m=u;mb&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.Uc=!0,this.b.Y=!0)};p.J=new t;b.prototype.Text=function(b){b.Fb(this.text)}; +p.Ma=new b})();function zc(f){this.b=f} +(function(){function f(){}function q(){}function r(){}var t=zc.prototype;t.la=function(b){this.Ga=b;this.b=b.b};t.la.prototype.N=function(){};t.da=function(b){this.type=b;this.b=b.b};var b=t.da.prototype,p="text password email number tel url".split(" ");-1=c||0>=a||d>=e||f>=l?(this.Mf||jQuery(this.I).hide(),this.Mf=!0):(1>d&&(d=1),1>f&&(f=1),c>=e&&(c=e-1),a>=l&&(a=l-1),e=window.innerWidth,l=window.innerHeight,b||this.dq!==d||this.iq!==f||this.gq!==c||this.bq!==a||this.kq!==e||this.jq!==l?(this.dq=d,this.iq=f,this.gq=c,this.bq=a,this.kq=e,this.jq=l,this.Mf&&(jQuery(this.I).show(),this.Mf=!1),b=Math.round(d)+jQuery(this.b.canvas).offset().left, +e=Math.round(f)+jQuery(this.b.canvas).offset().top,jQuery(this.I).css("position","absolute"),jQuery(this.I).offset({left:b,top:e}),jQuery(this.I).width(Math.round(c-d)),jQuery(this.I).height(Math.round(a-f)),this.bu&&jQuery(this.I).css("font-size",this.k.sc(!0)/this.b.devicePixelRatio-.2+"em")):this.Mf&&(jQuery(this.I).show(),this.Mf=!1))}};b.zd=function(){};b.Ec=function(){};f.prototype.tt=function(){return!0};f.prototype.Qs=function(){return!0};f.prototype.Ts=function(){return!0};t.g=new f;q.prototype.sj= +function(b){this.b.Ca||(this.I.value=b)};q.prototype.tj=function(b){this.b.Ca||(this.visible=0!==b)};q.prototype.Ol=function(b){this.b.Ca||(this.I.disabled=0===b)};q.prototype.Ht=function(){this.b.Ca||this.I.focus()};q.prototype.Ft=function(b,d){this.b.Ca||jQuery(this.I).css(b,d)};t.J=new q;r.prototype.Text=function(b){this.b.Ca?b.Fb(""):b.Fb(this.I.value)};t.Ma=new r})();function Z(f){this.b=f} +(function(){function f(b){c=b.x;a=b.y;e=b.z}function q(a,b,c,d){var e;e=l.length?l.pop():new r;e.init(a,b,c,d);return e}function r(){this.aj=this.id=this.y=this.x=this.nl=this.ml=this.jn=this.time=this.eo=0;this.fj=this.wl=!1}function t(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function b(){}function p(){}var k=Z.prototype;k.la=function(a){this.Ga=a;this.b=a.b};k.la.prototype.N= +function(){};k.da=function(a){this.type=a;this.b=a.b;this.touches=[];this.vn=!1};var d=k.da.prototype,h={left:0,top:0};d.Uh=function(a){var b,c;b=0;for(c=this.touches.length;bUa(this.ml,this.nl,this.x,this.y)&&(this.wl=!0,a.ge=this.aj,a.wh=this.id,a.Ng=b,a.b.trigger(Z.prototype.g.bt,a),a.oe=this.x,a.pe=this.y,a.b.trigger(Z.prototype.g.ct,a),a.Ng=0)};var g=-1E3,n=-1E3,L=-1E4;r.prototype.Hq=function(a,b){if(!this.wl){var c=$a();333>=c-this.eo&&!this.fj&&15>Ua(this.ml,this.nl,this.x, +this.y)&&(a.ge=this.aj,a.wh=this.id,a.Ng=b,666>=c-L&&25>Ua(g,n,this.x,this.y)?(a.b.trigger(Z.prototype.g.Us,a),a.oe=this.x,a.pe=this.y,a.b.trigger(Z.prototype.g.Vs,a),n=g=-1E3,L=-1E4):(a.b.trigger(Z.prototype.g.pt,a),a.oe=this.x,a.pe=this.y,a.b.trigger(Z.prototype.g.qt,a),g=this.x,n=this.y,L=c),a.Ng=0)}};d.N=function(){this.Bw=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ng=this.wh=this.ge=this.pe=this.oe=this.Ro=this.Qo=this.Po=this.Wt=this.Vt=this.Ut=this.Nk=this.Mk=this.Lk= +0;this.$x=0!==this.q[0];var a=0c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};d.Yq=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.Ca?h:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;$a();this.ge=this.touches.length; +this.wh=a.pointerId;this.touches.push(q(c,b,a.pointerId,this.ge));this.b.ec=!0;this.b.trigger(Z.prototype.g.Io,this);this.b.trigger(Z.prototype.g.Lo,this);this.oe=c;this.pe=b;this.b.trigger(Z.prototype.g.Ll,this);this.b.ec=!1}};d.Jk=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&ob(a)&&a.preventDefault();var c=this.Uh(a.pointerId);this.ge=0<=c?this.touches[c].aj:-1;this.wh=0<=c?this.touches[c].id:-1;this.b.ec=!0;this.b.trigger(Z.prototype.g.Ho, +this);this.b.trigger(Z.prototype.g.Ko,this);0<=c&&(b||this.touches[c].Hq(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.ec=!1}};d.$q=function(a){a.preventDefault&&a.preventDefault();var b=$a(),c,d,e,f;c=0;for(d=a.changedTouches.length;cb-f.time||f.update(b,e.pageX-g.left,e.pageY-g.top,2*(e.Sz||e.$z||e.Lz||e.Oz||0),2*(e.Tz||e.aA||e.Mz||e.Pz|| +0),e.Gz||e.Zz||e.Kz||e.Nz||0)}};d.br=function(a){a.preventDefault&&ob(a)&&a.preventDefault();var b=this.b.Ca?h:jQuery(this.b.canvas).offset();$a();this.b.ec=!0;var c,d,e,f;c=0;for(d=a.changedTouches.length;cl.length&&l.push(this.touches[e]),this.touches.splice(e,1));this.b.ec=!1};d.Gh=function(){return this.b.Qc&&0===this.Lk&&0!==e?90*e:this.Lk}; +d.Ez=function(){return this.b.Qc&&0===this.Mk&&0!==a?90*a:this.Mk};d.Fz=function(){return this.b.Qc&&0===this.Nk&&0!==c?90*c:this.Nk};d.Sw=function(a){t(a)||(this.br({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.vn=!0)};d.Tw=function(a){this.vn&&!t(a)&&this.$q({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};d.Uw=function(a){a.preventDefault&&this.b.Mp&&!this.b.nf&&a.preventDefault();this.b.Mp=!0;t(a)||(this.Dn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), +this.vn=!1)};d.ej=function(){var a,b,c,d=$a();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ka(b)?(d=this.b.Wh(0),e=d.scale,f=d.Qe,g=d.Be,h=d.j,d.scale=1,d.Qe=1,d.Be=1,d.j=0,a.H(d.ic(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Qe=f,d.Be=g,d.j=h): +(d=la(b)?this.b.Wh(b):this.b.Im(b))?a.H(d.ic(this.touches[c].x,this.touches[c].y,!0)):a.H(0)}};p.prototype.Oo=function(a,b){var c=this.Ng;if(0>c||c>=this.touches.length)a.H(0);else{var d,e,f,g,h;ka(b)?(d=this.b.Wh(0),e=d.scale,f=d.Qe,g=d.Ce,h=d.j,d.scale=1,d.Qe=1,d.Ce=1,d.j=0,a.H(d.ic(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Qe=f,d.Ce=g,d.j=h):(d=la(b)?this.b.Wh(b):this.b.Im(b))?a.H(d.ic(this.touches[c].x,this.touches[c].y,!1)):a.H(0)}};k.Ma=new p})();function Ac(f){this.b=f} +(function(){function f(){}var q=Ac.prototype;q.la=function(f){this.behavior=f;this.b=f.b};q.la.prototype.N=function(){};q.da=function(f,b){this.type=f;this.behavior=f.behavior;this.d=b;this.b=f.b};var r=q.da.prototype;r.N=function(){this.Xo=this.q[0];this.Yo=this.q[1];this.$t=this.q[2];this.Zt=this.q[3];this.d.Ha();this.El=this.d.xa.left;this.Hl=this.d.xa.top;this.Fl=this.b.Xa-this.d.xa.left;this.Gl=this.b.Wa-this.d.xa.top;this.Zk=this.b.Xa-this.d.xa.right;this.xj=this.b.Wa-this.d.xa.bottom;this.enabled= +0!==this.q[4]};r.eb=function(){return{xleft:this.El,ytop:this.Hl,xright:this.Fl,ybottom:this.Gl,rdiff:this.Zk,bdiff:this.xj,enabled:this.enabled}};r.ub=function(f){this.El=f.xleft;this.Hl=f.ytop;this.Fl=f.xright;this.Gl=f.ybottom;this.Zk=f.rdiff;this.xj=f.bdiff;this.enabled=f.enabled};r.Sa=function(){if(this.enabled){var f,b=this.d.k,p=this.d,k=this.d.xa;0===this.Xo?(p.Ha(),f=b.Ea+this.El-k.left,0!==f&&(p.x+=f,p.ta())):1===this.Xo&&(p.Ha(),f=b.Ja-this.Fl-k.left,0!==f&&(p.x+=f,p.ta()));0===this.Yo? +(p.Ha(),f=b.Fa+this.Hl-k.top,0!==f&&(p.y+=f,p.ta())):1===this.Yo&&(p.Ha(),f=b.Ia-this.Gl-k.top,0!==f&&(p.y+=f,p.ta()));1===this.$t&&(p.Ha(),f=b.Ja-this.Zk-k.right,0!==f&&(p.width+=f,0>p.width&&(p.width=0),p.ta()));1===this.Zt&&(p.Ha(),f=b.Ia-this.xj-k.bottom,0!==f&&(p.height+=f,0>p.height&&(p.height=0),p.ta()))}};q.g=new function(){};f.prototype.Ol=function(f){this.enabled&&0===f?this.enabled=!1:this.enabled||0===f||(this.d.Ha(),this.El=this.d.xa.left,this.Hl=this.d.xa.top,this.Fl=this.b.Xa-this.d.xa.left, +this.Gl=this.b.Wa-this.d.xa.top,this.Zk=this.b.Xa-this.d.xa.right,this.xj=this.b.Wa-this.d.xa.bottom,this.enabled=!0)};q.J=new f;q.Ma=new function(){}})();function Bc(f){this.b=f} +(function(){function f(){}function q(){}var r=Bc.prototype;r.la=function(b){this.behavior=b;this.b=b.b};r.la.prototype.N=function(){};r.da=function(b,f){this.type=b;this.behavior=b.behavior;this.d=f;this.b=b.b};var t=r.da.prototype;t.N=function(){this.So=1===this.q[0];this.Sh=this.q[1];this.kj=this.q[2];this.Sj=this.q[3];this.qu=this.q[4];this.yb=this.So?0:3;this.Eb?this.md.reset():this.md=new db;this.gg=this.d.opacity?this.d.opacity:1;this.So&&(0===this.Sh?(this.yb=1,0===this.kj&&(this.yb=2)):(this.d.opacity= +0,this.b.Y=!0))};t.eb=function(){return{fit:this.Sh,wt:this.kj,fot:this.Sj,s:this.yb,st:this.md.Z,mo:this.gg}};t.ub=function(b){this.Sh=b.fit;this.kj=b.wt;this.Sj=b.fot;this.yb=b.s;this.md.reset();this.md.Z=b.st;this.gg=b.mo};t.Sa=function(){this.md.add(this.b.Pf(this.d));0===this.yb&&(this.d.opacity=this.md.Z/this.Sh*this.gg,this.b.Y=!0,this.d.opacity>=this.gg&&(this.d.opacity=this.gg,this.yb=1,this.md.reset(),this.b.trigger(Bc.prototype.g.Xs,this.d)));1===this.yb&&this.md.Z>=this.kj&&(this.yb=2, +this.md.reset(),this.b.trigger(Bc.prototype.g.Nl,this.d));2===this.yb&&0!==this.Sj&&(this.d.opacity=this.gg-this.md.Z/this.Sj*this.gg,this.b.Y=!0,0>this.d.opacity&&(this.d.opacity=0,this.yb=3,this.md.reset(),this.b.trigger(Bc.prototype.g.Ys,this.d),1===this.qu&&this.b.ie(this.d)))};t.Ju=function(){this.yb=0;this.md.reset();0===this.Sh?(this.yb=1,0===this.kj&&(this.yb=2)):(this.d.opacity=0,this.b.Y=!0)};f.prototype.Ys=function(){return!0};f.prototype.Xs=function(){return!0};f.prototype.Nl=function(){return!0}; +r.g=new f;q.prototype.At=function(){this.Ju()};r.J=new q;r.Ma=new function(){}})();function Cc(f){this.b=f} +(function(){function f(){}function q(){}var r=Cc.prototype;r.la=function(b){this.behavior=b;this.b=b.b};r.la.prototype.N=function(){};r.da=function(b,f){this.type=b;this.behavior=b.behavior;this.d=f;this.b=b.b};var t=r.da.prototype;t.N=function(){this.fe=this.ae=this.yb=this.Hk=this.Kk=0};t.eb=function(){return{ontime:this.Kk,offtime:this.Hk,stage:this.yb,stagetimeleft:this.ae,timeleft:this.fe}};t.ub=function(b){this.Kk=b.ontime;this.Hk=b.offtime;this.yb=b.stage;this.ae=b.stagetimeleft;this.fe=b.timeleft; +null===this.fe&&(this.fe=Infinity)};t.Sa=function(){if(!(0>=this.fe)){var b=this.b.Pf(this.d);this.fe-=b;0>=this.fe?(this.fe=0,this.d.visible=!0,this.b.Y=!0,this.b.trigger(Cc.prototype.g.Zs,this.d)):(this.ae-=b,0>=this.ae&&(0===this.yb?(this.d.visible=!1,this.yb=1,this.ae+=this.Hk):(this.d.visible=!0,this.yb=0,this.ae+=this.Kk),this.b.Y=!0))}};f.prototype.Zs=function(){return!0};r.g=new f;q.prototype.Bs=function(b,f,k){this.Kk=b;this.Hk=f;this.yb=1;this.ae=f;this.fe=k;this.d.visible=!1;this.b.Y=!0}; +r.J=new q;r.Ma=new function(){}})();function Dc(f){this.b=f} +(function(){function f(){}var q=Dc.prototype;q.la=function(f){this.behavior=f;this.b=f.b};q.la.prototype.N=function(){};q.da=function(f,b){this.type=f;this.behavior=f.behavior;this.d=b;this.b=f.b};var r=q.da.prototype;r.N=function(){this.xb=null;this.Pk=-1;this.mode=this.Vg=this.rl=this.eh=this.Ee=this.Pi=0;var f=this;this.Eb||(this.Lq=function(b){f.Bn(b)});this.b.Uo(this.Lq)};r.eb=function(){return{uid:this.xb?this.xb.uid:-1,pa:this.Pi,pd:this.Ee,msa:this.eh,tsa:this.rl,lka:this.Vg,m:this.mode}}; +r.ub=function(f){this.Pk=f.uid;this.Pi=f.pa;this.Ee=f.pd;this.eh=f.msa;this.rl=f.tsa;this.Vg=f.lka;this.mode=f.m};r.je=function(){-1===this.Pk?this.xb=null:this.xb=this.b.Xh(this.Pk);this.Pk=-1};r.Bn=function(f){this.xb==f&&(this.xb=null)};r.lg=function(){this.xb=null;this.b.ux(this.Lq)};r.Sa=function(){};r.ej=function(){if(this.xb){this.Vg!==this.d.j&&(this.eh=La(this.eh+(this.d.j-this.Vg)));var f=this.d.x,b=this.d.y;if(3===this.mode||4===this.mode){var p=Ua(this.d.x,this.d.y,this.xb.x,this.xb.y); +if(p>this.Ee||4===this.mode&&p=this.ng);f=f?-this.move.dec:this.move.acc;0!=f&&this.Bg(this.ff+ +f*b);b=this.ff*b;this.ng-=b;0>=this.ng||0>=this.ff?(this.of=!1,this.d.x=this.target.x,this.d.y=this.target.y,this.Bg(0),this.Jq(),this.ki=!0):(f=this.target.a,this.d.x+=b*Math.cos(f),this.d.y+=b*Math.sin(f));this.d.ta();this.Kd.x=this.d.x;this.Kd.y=this.d.y}}};t.ej=function(){this.Zc.x=this.d.x;this.Zc.y=this.d.y};t.Bg=function(b){null!=b?this.ff=b>this.move.max?this.move.max:b:0==this.move.acc&&(this.ff=this.move.max)};t.Ul=function(){var b=this.target.x-this.d.x,f=this.target.y-this.d.y;this.target.a= +Math.atan2(f,b);this.ng=Math.sqrt(b*b+f*f);this.Kd.x=this.d.x;this.Kd.y=this.d.y};t.Pl=function(b,f){this.of=!0;this.target.x=b;this.target.y=f;this.Ul();this.Bg(null);this.Zc.x=this.d.x;this.Zc.y=this.d.y};t.Jl=function(b,f){this.target.x=b;this.target.y=f;this.Ul();this.of=!1;this.d.x=this.target.x;this.d.y=this.target.y;this.Bg(0);this.Jq();this.of=!0};t.Ew=function(){var b=this.b.ee,f=this.uj!=b;this.uj=b;return f};t.Jq=function(){if(this.Ew()){var b=this.d.x-this.Zc.x,f=this.d.y-this.Zc.y;if(0!= +b||0!=f)this.Zc.a=Ma(Math.atan2(f,b))}};t.eb=function(){return{en:this.enabled,v:this.move,t:this.target,is_m:this.of,c_spd:this.ff,rd:this.ng,is_ht:this.ki,pp:this.Kd,ma:this.Zc,lt:this.uj}};t.ub=function(b){this.enabled=b.en;this.move=b.v;this.target=b.t;this.of=b.is_m;this.ff=b.c_spd;this.ng=b.rd;this.ki=b.is_ht;this.Kd=b.pp;this.Zc=b.ma;this.uj=b.lt};r.g=new f;f.prototype.$s=function(){return this.cn};r.J=new q;q.prototype.Ol=function(b){this.enabled=1===b};q.prototype.Pl=function(b,f){this.Pl(b, +f)};q.prototype.Jl=function(b,f){this.Jl(b,f)};q.prototype.Bg=function(b){this.Bg(b)};q.prototype.Ql=function(){this.of=!1};r.Ma=new function(){}})();function Kc(f){this.b=f} +(function(){function f(){}function q(){}function r(){}var t=Kc.prototype;t.la=function(b){this.behavior=b;this.b=b.b};t.la.prototype.N=function(){};t.da=function(b,c){this.type=b;this.behavior=b.behavior;this.d=c;this.b=b.b;this.A=0};var b=t.da.prototype,p=2*Math.PI,k=Math.PI/2,d=3*Math.PI/2;b.N=function(){this.B=1===this.q[0];this.bh=this.q[1];this.xo=this.q[2];this.De=this.q[3];this.De+=Math.random()*this.q[4];0===this.De?this.A=0:(this.A=this.q[5]/this.De*p,this.A+=Math.random()*this.q[6]/this.De* +p);this.lc=this.q[7];this.lc+=Math.random()*this.q[8];this.Yd=this.Uf=this.ja=0;5===this.bh&&(this.lc=Q(this.lc));this.init()};b.eb=function(){return{i:this.A,a:this.B,mv:this.bh,w:this.xo,p:this.De,mag:this.lc,iv:this.ja,iv2:this.Uf,r:this.Yd,lkv:this.Ab,lkv2:this.qi}};b.ub=function(b){this.A=b.i;this.B=b.a;this.bh=b.mv;this.xo=b.w;this.De=b.p;this.lc=b.mag;this.ja=b.iv;this.Uf=b.iv2||0;this.Yd=b.r;this.Ab=b.lkv;this.qi=b.lkv2||0};b.init=function(){switch(this.bh){case 0:this.ja=this.d.x;break;case 1:this.ja= +this.d.y;break;case 2:this.ja=this.d.width;this.Yd=this.d.height/this.d.width;break;case 3:this.ja=this.d.width;break;case 4:this.ja=this.d.height;break;case 5:this.ja=this.d.j;break;case 6:this.ja=this.d.opacity;break;case 7:this.ja=0;break;case 8:this.ja=this.d.x,this.Uf=this.d.y}this.Ab=this.ja;this.qi=this.Uf};b.he=function(b){b=b%p;switch(this.xo){case 0:return Math.sin(b);case 1:return b<=k?b/k:b<=d?1-2*(b-k)/Math.PI:(b-d)/k-1;case 2:return 2*b/p-1;case 3:return-2*b/p+1;case 4:return bthis.d.opacity?this.d.opacity=0:1=b&&(ic[this.group]=b)};r.Kp=function(){""!= +this.group&&("undefined"===typeof jc&&(jc={},ic={}),"undefined"===typeof jc[this.group]&&(jc[this.group]=[],ic[this.group]=-1),-1==jc[this.group].indexOf(this)&&jc[this.group].push(this))};r.vf=function(){this.Wc=this.d.width;this.Vc=this.d.height;this.xh=this.d.j;this.cs=this.d.opacity;this.zf=this.d.x;this.Af=this.d.y;this.yl=this.value};r.N=function(){this.B=1===this.q[0];this.F=this.q[1];this.Oh=this.q[2];this.u=this.q[3];this.target=this.q[4];this.duration=this.q[5];this.vg=this.q[6];this.O= +this.q[7];this.value=this.q[8];this.Zb=this.q[9];this.zm=1===this.q[10];this.group=this.q[11];this.oc=null;this.wc=0;5==this.O&&(this.wc=1);this.Kp();this.Vf=!1;this.U=this.d.x;this.jb=this.d.y;this.W=parseFloat(this.target.split(",")[0]);this.fb=parseFloat(this.target.split(",")[1]);this.vf();this.yh=this.Sb=this.Ba=this.gb=this.ba=0;this.Yd=this.d.height/this.d.width;this.al=this.reverse=!1;this.yd=this.xd=!0;this.loop=!1;this.Oa=this.ya=0;this.hn=this.O;this.vc=this.Ab=this.ba;this.Rc=this.gb; +this.zm&&this.init();""==this.u&&(this.u="current");this.Ii=this.fh=this.Ji=this.gh=this.Mi=this.ih=this.Li=this.hh=!1;this.B&&this.init()};r.init=function(){this.hh=!1;""===this.u&&(this.u="current");""===this.target&&(this.target="current");var b="current"===this.u,f="current"===this.target,k="OBJ"===this.target;"OBJ"===this.target&&null!=this.oc&&(0==this.F?this.target=1==this.Zb?this.oc.x-this.d.x+","+(this.oc.y-this.d.y):this.oc.x+","+this.oc.y:1==this.F||2==this.F||3==this.F||7==this.F?this.target= +1==this.Zb?(2==this.F?1:this.oc.width)+","+(3==this.F?1:this.oc.height):(2==this.F?1:this.oc.width/this.Wc)+","+(3==this.F?1:this.oc.height/this.Vc):4==this.F?this.target=1==this.Zb?Ia(this.oc.j-this.d.j)+"":Ia(this.oc.j)+"":5==this.F&&(this.target=1==this.Zb?100*(this.oc.opacity-this.d.opacity)+"":100*this.oc.opacity+""));if(0==this.F)f&&(this.target=this.d.x+","+this.d.y),b?this.u=1==this.Zb?this.d.x+","+this.d.y:this.zf+","+this.Af:this.reverse||1==this.O||(this.d.x=parseFloat(this.u.split(",")[0]), +this.d.y=parseFloat(this.u.split(",")[1])),1==this.Zb?(this.loop&&(this.d.x=this.zf,this.d.y=this.Af),this.U=this.d.x,this.jb=this.d.y,this.reverse?(this.W=-parseFloat(this.target.split(",")[0]),this.fb=-parseFloat(this.target.split(",")[1])):(this.W=parseFloat(this.target.split(",")[0]),this.fb=parseFloat(this.target.split(",")[1])),this.ba=this.U,this.gb=this.jb,this.Ba=this.ba+this.W,this.Sb=this.gb+this.fb):(this.reverse?(this.d.x=parseFloat(this.target.split(",")[0]),this.d.y=parseFloat(this.target.split(",")[1]), +this.W=this.zf,this.fb=this.Af):(this.d.x=this.zf,this.d.y=this.Af,this.W=parseFloat(this.target.split(",")[0]),this.fb=parseFloat(this.target.split(",")[1])),this.U=this.d.x,this.jb=this.d.y,this.ba=this.U,this.gb=this.jb,this.Ba=this.W,this.Sb=this.fb,-6==this.O&&(this.Ba=this.zf,this.Sb=this.Af));else if(1==this.F||2==this.F||3==this.F){f&&(this.target="1,1");"current"==this.u&&(this.u="1,1");this.u=""+this.u;this.target=""+this.target;2==this.F?(-1==this.u.indexOf(",")&&(this.u=parseFloat(this.u)+ +",1"),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+",1")):3==this.F?(-1==this.u.indexOf(",")&&(this.u="1,"+parseFloat(this.u)),-1==this.target.indexOf(",")&&(this.target="1,"+parseFloat(this.target))):(-1==this.u.indexOf(",")&&(this.u=parseFloat(this.u)+","+parseFloat(this.u)),-1==this.target.indexOf(",")&&(this.target=parseFloat(this.target)+","+parseFloat(this.target)));var d=parseFloat(this.u.split(",")[0]),h=parseFloat(this.u.split(",")[1]);this.xd=!0;var c=parseFloat(this.target.split(",")[0]); +if(0==c||isNaN(c))this.xd=!1;3==this.F&&(this.xd=!1);this.yd=!0;var a=parseFloat(this.target.split(",")[1]);if(0==a||isNaN(a))this.yd=!1;2==this.F&&(this.yd=!1);1==this.Zb?(this.loop&&(this.d.width=this.Wc,this.d.height=this.Vc),b||(this.reverse?(this.d.width=this.d.width*c,this.d.height=this.d.height*a):(this.d.width=this.d.width*d,this.d.height=this.d.height*h)),this.U=this.d.width,this.jb=this.d.height,this.ba=this.U,this.gb=this.jb,this.reverse?(this.W=this.U*d/c,this.fb=this.jb*h/a):(this.W= +this.U*c,this.fb=this.jb*a)):(b||(this.reverse?(this.d.width=this.Wc*c,this.d.height=this.Vc*a):(this.d.width=this.Wc*d,this.d.height=this.Vc*h)),this.U=this.d.width,this.jb=this.d.height,this.ba=this.U,this.gb=this.jb,this.reverse?(this.W=this.Wc*d,this.fb=this.Vc*h):(this.W=this.Wc*c,this.fb=this.Vc*a));this.Ba=this.W;this.Sb=this.fb;-6==this.O&&(this.Ba=this.Wc*d,this.Sb=this.Vc*h)}else if(4==this.F)f&&(this.target=Ia(this.d.j)),"current"==this.u||this.reverse||1==this.O||(this.d.j=Q(parseFloat(this.u.split(",")[0]))), +1==this.Zb?(this.loop&&(this.d.j=this.xh),this.U=this.d.j,this.reverse?this.W=this.d.j-Q(parseFloat(this.target.split(",")[0])):this.W=this.d.j+Q(parseFloat(this.target.split(",")[0]))):this.reverse?(this.d.j=Q(parseFloat(this.target.split(",")[0])),this.U=this.d.j,this.W=this.xh):(this.d.j=this.xh,this.U=this.d.j,this.W=Q(parseFloat(this.target.split(",")[0]))),this.ba=this.U,this.Ba=Ia(this.W),-6==this.O&&(this.Ba=Ia(this.xh)),this.yh=Q(this.Ba);else if(5==this.F)"current"==this.u&&(this.u=this.d.opacity), +f&&(this.target=""+this.d.opacity),b||this.reverse||1==this.O||(this.d.opacity=parseFloat(this.u.split(",")[0])/100),1==this.Zb?(this.loop&&(this.d.opacity=this.cs),this.ba=this.U=this.d.opacity,this.W=this.reverse?-parseFloat(this.target.split(",")[0])/100:parseFloat(this.target.split(",")[0])/100,this.Ba=this.ba+this.W):(this.U=this.d.opacity,this.reverse?(this.ba=parseFloat(this.target.split(",")[0])/100,this.W=parseFloat(this.u.split(",")[0])/100):(this.ba=this.U,this.W=parseFloat(this.target.split(",")[0])/ +100),this.Ba=this.W),-6==this.O&&(this.Ba=this.cs);else if(6==this.F)isNaN(this.value)&&(this.value=0),"current"==this.u&&(this.u=""+this.value),f&&(this.target=""+this.value),b||this.reverse||1==this.O||(this.value=parseFloat(this.u.split(",")[0])),1==this.Zb?(this.loop&&(this.value=this.yl),b||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.u.split(",")[0])),this.U=this.value,this.reverse?this.W=this.U-parseFloat(this.target.split(",")[0]):this.W=this.U+parseFloat(this.target.split(",")[0]), +this.ba=this.U,this.Ba=this.W):(b||(this.value=this.reverse?parseFloat(this.target.split(",")[0]):parseFloat(this.u.split(",")[0])),this.U=this.value,this.W=this.reverse?parseFloat(this.u.split(",")[0]):parseFloat(this.target.split(",")[0]),this.ba=this.U,this.Ba=this.W),-6==this.O&&(this.Ba=this.yl);else if(7==this.F){f&&(this.target=this.d.width+","+this.d.height);"current"==this.u||this.reverse||1==this.O||(this.d.width=parseFloat(this.u.split(",")[0]),this.d.height=parseFloat(this.u.split(",")[1])); +this.xd=!0;c=parseFloat(this.target.split(",")[0]);if(0>c||isNaN(c))this.xd=!1;this.yd=!0;a=parseFloat(this.target.split(",")[1]);if(0>a||isNaN(a))this.yd=!1;1==this.Zb?(this.loop&&(this.d.width=this.Wc,this.d.height=this.Vc),this.U=this.d.width,this.jb=this.d.height,this.reverse?(this.W=this.U-parseFloat(this.target.split(",")[0]),this.fb=this.jb-parseFloat(this.target.split(",")[1])):(this.W=this.U+parseFloat(this.target.split(",")[0]),this.fb=this.jb+parseFloat(this.target.split(",")[1]))):(b|| +(this.reverse?(this.d.width=parseFloat(this.target.split(",")[0]),this.d.height=parseFloat(this.target.split(",")[1])):(this.d.width=this.Wc,this.d.height=this.Vc)),this.U=this.d.width,this.jb=this.d.height,this.reverse?(this.W=this.Wc,this.fb=this.Vc):(this.W=parseFloat(this.target.split(",")[0]),this.fb=parseFloat(this.target.split(",")[1])));this.ba=this.U;this.gb=this.jb;this.Ba=this.W;this.Sb=this.fb;-6==this.O&&(this.Ba=this.Wc,this.Sb=this.Vc)}this.vc=this.Ab=this.ba;this.Rc=this.gb;this.ya= +parseFloat(this.vg.split(",")[0]);this.Oa=parseFloat(this.vg.split(",")[1]);if(0>this.ya||isNaN(this.ya))this.ya=0;if(0>this.Oa||isNaN(this.Oa))this.Oa=0;b&&(this.u="current");f&&(this.target="current");k&&(this.target="OBJ")};r.Ru=function(b,p){switch(this.Oh){case 0:return 1*b/p+0;case 1:return 1*(b/=p)*b+0;case 2:return-1*(b/=p)*(b-2)+0;case 3:return 1>(b/=p/2)?.5*b*b+0:-.5*(--b*(b-2)-1)+0;case 4:return 1*(b/=p)*b*b+0;case 5:return 1*((b=b/p-1)*b*b+1)+0;case 6:return 1>(b/=p/2)?.5*b*b*b+0:.5*((b-= +2)*b*b+2)+0;case 7:return 1*(b/=p)*b*b*b+0;case 8:return-1*((b=b/p-1)*b*b*b-1)+0;case 9:return 1>(b/=p/2)?.5*b*b*b*b+0:-.5*((b-=2)*b*b*b-2)+0;case 10:return 1*(b/=p)*b*b*b*b+0;case 11:return 1*((b=b/p-1)*b*b*b*b+1)+0;case 12:return 1>(b/=p/2)?.5*b*b*b*b*b+0:.5*((b-=2)*b*b*b*b+2)+0;case 13:return-1*(Math.sqrt(1-(b/=p)*b)-1)+0;case 14:return 1*Math.sqrt(1-(b=b/p-1)*b)+0;case 15:return 1>(b/=p/2)?-.5*(Math.sqrt(1-b*b)-1)+0:.5*(Math.sqrt(1-(b-=2)*b)+1)+0;case 16:var k=0;0==k&&(k=1.70158);return 1*(b/= +p)*b*((k+1)*b-k)+0;case 17:return k=0,0==k&&(k=1.70158),1*((b=b/p-1)*b*((k+1)*b+k)+1)+0;case 18:return k=0,0==k&&(k=1.70158),1>(b/=p/2)?.5*b*b*(((k*=1.525)+1)*b-k)+0:.5*((b-=2)*b*(((k*=1.525)+1)*b+k)+2)+0;case 19:var d=0,h=0;if(0==b)break;if(1==(b/=p))return 1;0==h&&(h=.3*p);0==d||db?-.5*d*Math.pow(2,10*--b)*Math.sin(2*(b*p-k)*Math.PI/h)+0:d*Math.pow(2,-10*--b)*Math.sin(2*(b*p-k)*Math.PI/h)*.5+1;case 22:return 1-f(p-b,p)+0;case 23:return f(b,p);case 24:return b

=this.duration+this.ya&&(b=this.yh),this.d.j=La(b)):5==this.F?(1==this.Zb&&this.d.opacity!==this.vc&&(this.ba=this.d.opacity),this.d.opacity=this.ba+(this.Ba-this.ba)*b,this.vc=this.d.opacity):6==this.F?this.value=this.ba+(this.Ba-this.ba)* +b:7==this.F&&(1==this.Zb&&(this.d.width!==this.vc&&(this.ba=this.d.width),this.d.height!==this.Rc&&(this.gb=this.d.height)),this.xd&&(this.d.width=this.ba+(this.Ba-this.ba)*b),this.yd&&(this.d.height=this.gb+(this.Sb-this.gb)*b),this.vc=this.d.width,this.Rc=this.d.height),this.d.ta()),this.A>=this.duration+this.ya&&(this.vu(f),this.d.ta(),0==this.gh&&(this.gh=!0,this.b.trigger(Lc.prototype.g.Ws,this.d),this.Ji=!0))))};r.vu=function(b){switch(this.F){case 0:this.d.x=this.Ba;this.d.y=this.Sb;break; +case 1:this.xd&&(this.d.width=this.Ba);this.yd?this.d.height=this.Sb:this.d.height=this.d.width*this.Yd;break;case 2:this.d.width=this.Ba;break;case 3:this.d.height=this.Sb;break;case 4:this.d.j=La(this.yh);this.Ab=this.d.j;break;case 5:this.d.opacity=this.Ba;break;case 6:this.value=this.Ba;break;case 7:this.xd&&(this.d.width=this.Ba),this.yd&&(this.d.height=this.Sb)}this.A>=this.duration+this.ya+this.Oa&&(0==this.O?(this.reverse=this.B=!1,this.A=this.duration+this.ya+this.Oa):1==this.O?(this.A=0, +this.init(),this.B=!0):2==this.O?b?(this.reverse=!1,this.init()):(this.reverse=!this.reverse,this.A=0,this.init(),this.B=!0):3==this.O?this.b.ie(this.d):4==this.O?(this.loop=!0,this.A=0,this.init(),this.B=!0):5==this.O?b?(this.reverse=!1,this.init()):0>=this.wc?(this.A=this.duration+this.ya+this.Oa,this.B=!1):(this.reverse?(--this.wc,this.reverse=!1):(--this.wc,this.reverse=!0),this.A=0,this.init(),this.B=!0):-6==this.O?(this.O=this.hn,this.reverse=!1,this.A=0,this.B=!1):6==this.O&&(this.reverse= +!1,this.A=this.duration+this.ya+this.Oa,this.B=!1));0==this.fh&&(this.fh=!0,this.b.trigger(Lc.prototype.g.Rs,this.d),this.Ii=!0)};q.g={};r=q.g;r.Fs=function(){return this.B};r.ly=function(b,f){var k=[];jc[this.group].forEach(function(b){k.push(b.A/(b.duration+b.ya+b.Oa))});return hc(Math.min.apply(null,k),b,f)};r.oy=function(b,f){return hc(this.A/(this.duration+this.ya+this.Oa),b,f)};r.ot=function(){if(!1===this.Li)return this.hh};r.Nl=function(){if(!1===this.Mi)return this.ih};r.Ws=function(){if(!1=== +this.Ji)return this.gh};r.Rs=function(){if(!1===this.Ii)return this.fh};q.J={};var t=q.J;t.Mo=function(b){this.B=1===b};t.Pt=function(b,f){""===f&&(f=this.group);(1===b||jc[f].every(function(b){return!b.B}))&&jc[f].forEach(function(f){1===b?t.Ds.apply(f):t.Ot.apply(f)})};t.uz=function(b,f){""===f&&(f=this.group);jc[f].forEach(function(f){t.Ql.apply(f,[b])})};t.Dt=function(b,f,k){""===k&&(k=this.group);(1===b||jc[k].every(function(b){return!b.B}))&&jc[k].forEach(function(d){1===b?t.Es.apply(d,[f]): +t.Ct.apply(d,[f])})};t.Ds=function(){this.loop=4===this.O;5==this.O&&(this.wc=1);6==this.O||-6==this.O?this.A=this.duration+this.Oa+this.ya&&(this.reverse=!0,this.A=0,this.wc=2,this.init(), +this.B=!0):(this.reverse=!0,this.A=0,this.init(),this.B=!0)};t.Ot=function(){this.B||(this.loop=4===this.O,5==this.O&&(this.wc=1),6==this.O||-6==this.O?this.A=this.duration+this.Oa+this.ya&&(this.reverse=!0,this.A=0,this.wc=2,this.init(),this.B=!0):(this.reverse=!0,this.A=0,this.init(),this.B=!0))};t.Gt=function(b){this.duration=b};t.Lt=function(b){this.vg= +b;this.ya=parseFloat(this.vg.split(",")[0]);this.Oa=parseFloat(this.vg.split(",")[1]);if(0>this.ya||isNaN(this.ya))this.ya=0;if(0>this.Oa||isNaN(this.Oa))this.Oa=0};t.Kt=function(b){"string"==typeof b?(this.target=b,this.W=parseFloat(b.split(",")[0]),this.fb=parseFloat(b.split(",")[1])):this.W=this.target=b;this.B||this.init()};t.lz=function(b){b&&(b=b.Fm())&&(this.oc=b,this.target="OBJ")};t.mz=function(b){2==this.F||3==this.F||4==this.F||5==this.F||6==this.F?("string"==typeof b?this.target=parseFloat(b.split(",")[0]): +this.target=""+b+","+this.fb,this.W=this.target):(this.target=String(b)+","+this.target.split(",")[1],this.W=parseFloat(this.target.split(",")[0]),this.fb=parseFloat(this.target.split(",")[1]));this.B||(this.vf(),this.init())};t.nz=function(b){2==this.F||3==this.F||4==this.F||5==this.F||6==this.F?this.W=this.target="string"==typeof b?parseFloat(b)+"":this.W+","+b:(this.target=this.target.split(",")[0]+","+String(b),this.W=parseFloat(this.target.split(",")[0]),this.fb=parseFloat(this.target.split(",")[1])); +this.B||(this.vf(),this.init())};t.It=function(b){"string"==typeof b?(this.u=b,this.U=parseFloat(b.split(",")[0]),this.jb=parseFloat(b.split(",")[1])):(this.u=""+b,this.U=b);6==this.F&&(this.value=this.U);this.B||(this.vf(),this.init())};t.dz=function(b){2==this.F||3==this.F||4==this.F||5==this.F||6==this.F?("string"==typeof b?this.u=parseFloat(b):this.u=""+b+","+this.jb,this.U=this.u):(""==this.u&&(this.u="current"),this.u=String(b)+","+("current"==this.u?this.Af:this.u.split(",")[1]),this.U=parseFloat(this.u.split(",")[0]), +this.jb=parseFloat(this.u.split(",")[1]));6==this.F&&(this.value=this.U);this.B||(this.vf(),this.init())};t.ez=function(b){2==this.F||3==this.F||4==this.F||5==this.F||6==this.F?("string"==typeof b?this.u=parseFloat(b):this.u=""+this.U+","+b,this.U=this.u):(""==this.u&&(this.u="current"),this.u=("current"==this.u?this.zf:this.u.split(",")[0])+","+String(b),this.U=parseFloat(this.u.split(",")[0]),this.jb=parseFloat(this.u.split(",")[1]));this.B||(this.vf(),this.init())};t.qz=function(b){this.value= +b};t.pz=function(b){this.F=b};t.$y=function(b){this.Oh=b};t.hz=function(b){this.O=b};t.gz=function(b,f,k,d,h,c,a,e){this.F=b;this.O=f;this.Oh=k;t.It.apply(this,[d]);t.Kt.apply(this,[h]);t.Gt.apply(this,[c]);t.Lt.apply(this,[a]);this.Zb=e;this.vf()};q.Ma={};q=q.Ma;q.Sy=function(b){b.H(this.A/(this.duration+this.ya+this.Oa))};q.Ty=function(b){b.H(this.A)};q.ys=function(b){b.H(this.duration)};q.yy=function(b){b.H(this.ya)};q.uy=function(b){b.H(this.Oa)};q.wz=function(b){b.Fb(this.target)};q.Rt=function(b){b.H(this.value)}; +q.Vf=function(b){b.Na(this.Vf?1:0)}})(); +function sc(){return[vc,Y,wc,uc,xc,tc,yc,zc,Z,Kc,Ec,Lc,Bc,Dc,Cc,Ac,X.prototype.g.Eo,X.prototype.J.ws,tc.prototype.Ma.No,tc.prototype.Ma.Oo,Dc.prototype.J.yt,uc.prototype.J.CallFunction,tc.prototype.J.xs,X.prototype.J.St,Y.prototype.J.As,uc.prototype.g.qj,zc.prototype.J.tj,tc.prototype.J.tj,zc.prototype.J.sj,zc.prototype.J.Ht,xc.prototype.J.sj,Y.prototype.Ma.zs,X.prototype.g.Cs,tc.prototype.J.Ls,Ec.prototype.J.Pl,tc.prototype.J.Jt,Ec.prototype.J.Jl,Z.prototype.g.Ll,tc.prototype.g.Is,vc.prototype.J.Play, +Kc.prototype.J.Mo,Cc.prototype.J.Bs,X.prototype.J.zt,X.prototype.J.Bt,xc.prototype.J.tj,zc.prototype.J.Ol,tc.prototype.g.vs,Lc.prototype.J.Pt,Lc.prototype.J.Dt,X.prototype.g.us,zc.prototype.J.Ft,Bc.prototype.J.At,vc.prototype.J.Qt,tc.prototype.J.Et,X.prototype.g.zo,zc.prototype.Ma.Text,wc.prototype.g.Bo]}; diff --git a/GameQuiz-InputKeyBoard/data.js b/GameQuiz-InputKeyBoard/data.js new file mode 100644 index 0000000..44cd61c --- /dev/null +++ b/GameQuiz-InputKeyBoard/data.js @@ -0,0 +1 @@ +{"project": [null,"Layout 1",[[0,true,false,false,false,false,false,false,false,false],[1,true,false,false,false,false,false,false,false,false],[2,true,false,false,false,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,false,true,true,true,true,true,true,true,true],[5,false,true,true,true,true,true,true,true,false],[6,false,true,true,true,true,true,true,true,false],[7,false,true,true,true,false,false,false,false,false],[8,true,false,false,false,false,false,false,false,false]],[["t0",5,false,[770417277422711,256833611577389,586457774324287],2,0,null,[["A",0,false,0,0,false,748157171187077,[["images/answers-sheet0.png",2381920,1,693,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,944,693,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,1,1036,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,1,1,941,344,1,0.5005313754081726,0.5,[],[],0],["images/answers-sheet0.png",2381920,944,1036,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,1,1379,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0]]],["B",0,false,0,0,false,668271709538924,[["images/answers-sheet0.png",2381920,944,1379,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,1,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,944,1,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,944,1,941,344,1,0.5005313754081726,0.5,[],[],0]]],["C",0,false,0,0,false,388600034989460,[["images/answers-sheet1.png",2313663,1,344,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,944,344,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,1,687,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,1,347,941,344,1,0.5005313754081726,0.5,[],[],0]]],["D",0,false,0,0,false,476706157200565,[["images/answers-sheet1.png",2313663,944,687,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,1,1030,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet1.png",2313663,944,1030,941,341,1,0.5005313754081726,0.5014662742614746,[],[],0],["images/answers-sheet0.png",2381920,944,347,941,344,1,0.5005313754081726,0.5,[],[],0]]]],[["Sine",9,116184630432626],["MoveTo",10,726850180192807]],false,false,300293938303058,[],null],["t1",5,false,[369147834923613,758248579777711],1,0,null,[["Default",0,false,0,0,false,658058777157378,[["images/question-sheet0.png",1790744,0,0,1860,961,1,0.5,0.5005202889442444,[],[],0]]]],[["MoveTo",10,898001184129010]],false,true,340397430590729,[],null],["t2",5,false,[832645631551847],3,0,null,[["Default",0,false,1,0,false,890718070517948,[["images/bg-sheet0.png",140211,0,0,300,300,1,0.5,0.5,[],[],1],["images/bg-sheet0.png",140211,0,0,300,300,1,0.5,0.5,[],[],1]]]],[["MoveTo",10,343516988249523],["EaseTween",11,178153162357639],["Fade",12,109612043121071]],false,true,189668074067921,[],null],["t3",4,false,[854257624747160,569213956419030],2,1,["images/txt_scenario.png",94531,0],null,[["Pin",13,518508562953789],["Fade",12,939984916527482]],false,true,418589280886193,[["inverse","Inverse"]],null],["t4",4,false,[908121258761751,877946885296837],3,1,["images/txt_scenario.png",94531,0],null,[["Pin",13,423927474470478],["Fade",12,337645130864799],["MoveTo",10,116224087479634]],false,false,201547934681975,[["inverse","Inverse"]],null],["t5",3,false,[],0,0,null,null,[],false,false,446899036715176,[],null,[]],["t6",1,false,[],0,0,null,null,[],false,false,279951028294032,[],null,[]],["t7",5,false,[],1,0,null,[["Default",5,false,1,0,false,624912942412250,[["images/wrong-sheet0.png",11271,0,0,100,100,1,0.5,0.6000000238418579,[],[-0.4399999976158142,-0.5400000214576721,0,-0.5900000333786011,0.4399999976158142,-0.5400000214576721,0.5,-0.1000000238418579,0.449999988079071,0.3499999642372131,0,0.3999999761581421,-0.4399999976158142,0.3399999737739563,-0.4900000095367432,-0.1000000238418579],0]]]],[["Fade",12,338036157128424]],false,true,489405091795122,[],null],["t8",5,false,[],3,0,null,[["Default",0,false,1,0,false,393340551233090,[["images/replay-sheet0.png",75003,0,0,358,149,1,0.5,0.5033556818962097,[],[],0]]]],[["Pin",13,997335910721006],["Flash",14,355884611151483],["Sine",9,267613772617883]],false,true,763551446308522,[],null],["t9",5,false,[],3,0,null,[["Default",0,false,1,0,false,325405368941043,[["images/next-sheet1.png",101496,1,1,263,261,1,0.5019011497497559,0.5019156932830811,[],[],0],["images/next-sheet1.png",101496,266,1,140,144,1,0.5,0.5,[],[],0],["images/next-sheet0.png",30606,0,0,387,410,1,0.5012919902801514,0.5,[],[],0]]]],[["Pin",13,926007585885324],["Flash",14,987314135847444],["Fade",12,667937161022099]],false,true,540124981309855,[],null],["t10",5,false,[],2,0,null,[["Default",0,false,1,0,false,504122953641039,[["images/sound-sheet0.png",125890,1,1,272,272,1,0.5,0.5,[],[],0],["images/sound-sheet0.png",125890,275,1,166,166,1,0.5,0.5,[],[],0]]]],[["Sine",9,874245813047170],["Fade",12,338506275307331]],false,true,211306298507646,[],null],["t11",8,false,[],0,0,null,null,[],false,false,638675311149895,[],null,[1]],["t12",0,false,[],0,0,null,null,[],false,false,323812348975738,[],null,[0,0,0,1,1,600,600,10000,1]],["t13",5,false,[],1,0,null,[["Default",5,false,1,0,false,603224529360234,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[["MoveTo",10,322958347596443]],false,true,766178524824789,[],null],["t14",5,false,[],2,0,null,[["Default",5,false,1,0,false,424523015814364,[["images/quiz-sheet0.png",333242,0,0,530,483,1,0.5,0.501035213470459,[],[],0]]]],[["Fade",12,428554181912784],["Anchor",15,742502450927142]],false,true,552570555626384,[],null],["t15",5,false,[],0,0,null,[["Default",0,false,1,0,false,512646691113404,[["images/complete-sheet0.png",134526,0,0,629,169,1,0.5007948875427246,0.5029585957527161,[],[],0]]]],[],false,true,578186237731488,[],null],["t16",5,false,[],1,0,null,[["Default",0,false,1,0,false,778903494461838,[["images/nextqs-sheet0.png",25945,1,1,196,56,1,0.5,0.5,[],[-0.4591836929321289,-0.357142984867096,0,-0.4821428954601288,0.4234690070152283,-0.2321430146694183,0.489795982837677,0,0.4132649898529053,0.1964290142059326,0,0.4464290142059326,-0.4489796161651611,0.3214290142059326,-0.5,0],0],["images/nextqs-sheet0.png",25945,1,59,196,56,1,0.5,0.5,[],[-0.4591836929321289,-0.357142984867096,0,-0.4821428954601288,0.4234690070152283,-0.2321430146694183,0.489795982837677,0,0.4132649898529053,0.1964290142059326,0,0.4464290142059326,-0.4489796161651611,0.3214290142059326,-0.5,0],0]]]],[["Pin",13,892556617094292]],false,false,436157163345756,[],null],["t17",5,false,[164695409314838,202642862134142],1,0,null,[["Default",0,false,1,0,false,591644632664454,[["images/answers2-sheet0.png",23102,1,1,701,227,1,0.5021398067474365,-0.933920681476593,[],[-0.4863294959068298,0.933920681476593,0.4780972003936768,0.933920681476593,0.4939072132110596,0.933920681476593,0.4820501804351807,1.882637739181519,-0.4902821183204651,1.895457744598389],0],["images/answers2-sheet0.png",23102,704,1,251,301,1,0.5019920468330383,0.5016611218452454,[],[-0.4900398552417755,-0.4916943311691284,0.4820719361305237,-0.4883721172809601,0.4980079531669617,-0.003322124481201172,0.4860559701919556,0.4883718490600586,-0.4940239191055298,0.4916938543319702],0]]]],[["Sine",9,985918852575117]],false,false,194765095769908,[],null],["t18",5,false,[],3,0,null,[["Default",0,false,1,0,false,827796241670572,[["images/khunganh-sheet0.png",294828,0,0,488,464,1,0.5,0.5,[],[],0],["images/khunganh-sheet1.png",81603,0,0,350,377,1,0.5,0.5013262629508972,[],[],0]]]],[["Pin",13,176666003666071],["MoveTo",10,150827432659523],["EaseTween",11,717002762336390]],false,true,310143570995707,[],null],["t19",6,false,[374688973006347,740796279735673],0,0,null,null,[],false,false,530011070527885,[],null],["t20",5,false,[],0,0,null,[["Default",5,false,1,0,false,652126218465288,[["images/dim-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],2]]]],[],false,true,110156613665136,[],null],["t21",5,false,[],0,0,null,[["Default",5,false,1,0,false,938803049783705,[["images/greenborder-sheet0.png",80993,0,0,1920,1080,1,0.5,0.5,[],[-0.2161459922790527,0.004630029201507568,0,-0.3962959945201874,0.215624988079071,0.005555987358093262,0.215624988079071,-0.005555987358093262,0,0.3962960243225098,-0.2161459922790527,-0.004629999399185181],0]]]],[],false,false,493296304328480,[],null],["t22",5,false,[],1,0,null,[["Default",5,false,1,0,false,440690737178961,[["images/button-sheet0.png",29987,0,0,280,152,1,0.5,0.5,[],[-0.4428570866584778,-0.3947370052337647,0,-0.4605262875556946,0.3714290261268616,-0.263157993555069,0.375,0,0.3428570032119751,0.2105259895324707,0,0.2697370052337647,-0.3714289963245392,0.2631580233573914,-0.4749999940395355,0],0]]]],[["Flash",14,675034220786211]],false,true,883193808852414,[],null],["t23",5,false,[989750015166942],1,0,null,[["Default",0,false,1,0,false,923654630293980,[["images/zoom-sheet0.png",17004,0,0,500,500,1,0.5,0.5,[],[-0.2380000054836273,-0.2380000054836273,0,-0.2680000066757202,0.1320000290870667,-0.1319999992847443,0.1420000195503235,0,0.3040000200271606,0.3040000200271606,0,0.1579999923706055,-0.2339999973773956,0.234000027179718,-0.300000011920929,0],0],["images/zoom-sheet1.png",39596,0,0,140,142,1,0.5,0.5,[],[],0]]]],[["Sine",9,896510295839425]],false,true,449577089767782,[],null],["t24",5,false,[],1,0,null,[["Default",0,false,1,0,false,464162675559766,[["images/back-sheet0.png",59126,0,0,263,261,1,0.4980988502502441,0.5019156932830811,[],[0.5019011497497559,0.498084306716919,-0.4980988502502441,0.498084306716919,-0.4980988502502441,-0.5019156932830811,0.5019011497497559,-0.5019156932830811],0]]]],[["Anchor",15,539951882494161]],false,true,462078427699126,[],null],["t25",5,false,[874243244969898],3,0,null,[["Default",0,false,1,0,false,407598299457050,[["images/bgm-sheet0.png",684080,0,0,1024,1024,1,0.5,0.5,[],[-0.3369140028953552,-0.3369140028953552,0,-0.4707030951976776,0.3242189884185791,-0.3242189884185791,0.4443359971046448,0,0.3076170086860657,0.3076170086860657,0,0.4355469942092896,-0.3203119933605194,0.3203129768371582,-0.4707030951976776,0],0],["images/bgm-sheet1.png",618977,0,0,1024,1024,1,0.5,0.5,[],[],0]]]],[["Sine",9,264685771416962],["Flash",14,327076101457835],["Anchor",15,482587245275702]],false,false,490274028858184,[],null],["t26",5,false,[],1,0,null,[["Default",5,false,1,0,false,181068051744548,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],3]]]],[["MoveTo",10,834021423810490]],false,true,650853825853731,[],null],["t27",5,false,[],1,0,null,[["Default",5,false,1,0,false,511988049795577,[["images/submit-sheet0.png",73374,0,0,421,176,1,0.5011876225471497,0.5,[],[-0.4465558230876923,-0.3693180084228516,-0.002375632524490356,-0.4943181872367859,0.4465553760528565,-0.375,0.4964373707771301,0,0.4441803693771362,0.3693180084228516,-0.002375632524490356,0.4886360168457031,-0.4465558230876923,0.3693180084228516,-0.4988123178482056,0],0]]]],[["Fade",12,977943089166028]],false,true,976006182557892,[],null],["t28",5,false,[189203123712347,658400700573350],1,0,null,[["Default",5,false,1,0,false,795402661799692,[["images/inputframe-sheet0.png",195044,0,0,1029,266,1,0.500485897064209,0.5,[],[-0.4859085977077484,-0.4436089992523193,-0.0009718835353851318,-0.4962405860424042,0.4839650988578796,-0.4398496150970459,0.4975700974464417,0,0.4829931259155273,0.4360899925231934,-0.0009718835353851318,0.492480993270874,-0.4849368035793304,0.4398499727249146,-0.4995140731334686,0],0]]]],[["MoveTo",10,210239889141832]],false,true,186435246542931,[],null],["t29",6,false,[],0,0,null,null,[],false,false,894913196771499,[],null],["t30",7,false,[],1,0,null,null,[["Pin",13,820121375956546]],false,true,338715255620894,[],null],["t31",2,false,[],0,0,null,null,[],false,false,509450732432588,[],null,[]],["t32",5,false,[],1,0,null,[["Default",5,false,1,0,false,906347950219785,[["images/correct-sheet0.png",152193,0,0,389,380,1,0.5012853741645813,0.5,[],[-0.4241645634174347,-0.4210526049137116,-0.002570360898971558,-0.4789474010467529,0.3933166265487671,-0.392104983329773,0.4344476461410523,0,0.3830336332321167,0.3815789818763733,-0.002570360898971558,0.434211015701294,-0.393316388130188,0.3894739747047424,-0.4755784869194031,0],0]]]],[["Fade",12,255333311260044]],false,true,463752070516483,[],null],["t33",5,true,[],1,0,null,null,[["Pin",13,613555469553139]],false,false,679965430658239,[],null]],[[33,0,17,2,1,10]],[["Layout 1",1400,900,false,"Event sheet 1",844875475670604,[["Layer 0",0,884568816551023,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[714,170,0,1006.336181640625,333.47900390625,0,0,1,0.5,0.5005202889442444,0,0,[]],1,2,[[0],[0]],[[],[1,2000,0,0]],[0,"Default",0,1]],[[1222,786,0,150,150,0,0,1,0.5019011497497559,0.5019156932830811,0,0,[]],9,14,[],[[],[],[1,0.5,0,0,0]],[0,"Default",0,1]],[[2354,200,0,250,250,0,0,1,0.5,0.5,0,0,[]],13,19,[],[[1,1200,0,0]],[0,"Default",0,1]],[[1307,173,0,150,150,0,0,1,0.5,0.5,0,0,[]],10,24,[],[[],[0,2,0,1,0,0,0,15,0],[1,1,0,0,0]],[0,"Default",0,1]],[[109.2545776367188,101.468864440918,0,177.4020080566406,160.1842041015625,0,0,1,0.5,0.501035213470459,0,0,[]],14,26,[],[[1,1,0,0,0],[0,0,0,0,1]],[0,"Default",0,1]],[[-3780,-188,0,1213.531860351563,300.2937316894531,0,0,1,0.5007948875427246,0.5029585957527161,0,0,[]],15,21,[],[],[0,"Default",0,1]],[[-2495,1670,0,862,210,0,0,1,0.5,0.5,0,0,[[1]]],3,3,[["A"],[0]],[[],[1,0.5,0,0,0]],[51,61,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`/@°+=*$£€<>%ÁÀẢẠÃĂẰẮẶẲẴÂẦẤẬẨẪĐÉÈẺẸẼÊỀẾỆỂỄÍÌỊỈĨÓÒỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÚÙỤỦŨƯỪỨỰỬỮÝỲỴỶỸáàảạãăằắặẳẵâầấậẩẫđéèẻẹẽêềếệểễíìịỉĩóòọỏõôồốộổỗơờớợởỡúùụủũưừứựửữýỳỵỷỹ","What activity does the museum have?",1.8,0,1,1,1,0,3,0,"{\"\"c2array\"\":true,\"\"size\"\":[2,32,1],\"\"data\"\":[[[8],[9],[10],[12],[13],[14],[15],[16],[17],[18],[19],[20],[25],[26],[27],[28],[29],[30],[31],[32],[33],[34],[35],[36],[37],[38],[39],[40],[41],[42],[43],[49]],[[\"\"il.|ị\"\"],[\"\"I,:!Ị\"\"],[\"\";'\"\"],[\"\"Ỉì\"\"],[\"\"`ÍÌíỉ\"\"],[\"\"j()[]\"\"],[\"\"-\"\"],[\"\"/\"\"],[\"\"t\"\"],[\"\"1°\"\"],[\"\"fr*Ĩĩ\"\"],[\"\"\\\"\"\"\"],[\"\"Jhnuz09úùụủũ\"\"],[\"\"Faceks235678$áàảạãăằắặẳẵâầấậẩẫéèẻẹẽêềếệểễ\"\"],[\"\"Ldgq?+=<>\"\"],[\"\"bpy4~#ýỳỵỷỹ\"\"],[\"\"EPovx£€ÉÈẺẸẼÊỀẾỆỂỄóòọỏõôồốộổỗ\"\"],[\"\"HNTU_ÚÙỤỦŨđ\"\"],[\"\"SZ\"\"],[\"\"BD\"\"],[\"\"C\"\"],[\"\"KRưừứựửữ\"\"],[\"\"GVXY&ÝỲỴỶỸ\"\"],[\"\"MĐơờớợởỡ\"\"],[\"\"OÓÒỌỎÕÔỒỐỘỔỖ\"\"],[\"\"AQÁÀẢẠÃĂẰẮẶẲẴÂẦẤẬẨẪ\"\"],[\"\"ƯỪỨỰỬỮ\"\"],[\"\"m\"\"],[\"\"w\"\"],[\"\"%\"\"],[\"\"ƠỜỚỢỞỠ\"\"],[\"\"W@\"\"]]]}",12]],[[-3863,105,0,383.5714416503906,157.3943634033203,0,0,1,0.5,0.5033556818962097,0,0,[]],8,15,[],[[],[],[1,2,0,2,0,0,0,15,0]],[0,"Default",0,1]],[[676,3072,0,2130.47998046875,1358.167236328125,0,0,1,0.5,0.5,0,0,[]],20,9,[],[],[0,"Default",0,1]],[[100,100,0,150,150,0,0,1,0.4980988502502441,0.5019156932830811,0,0,[]],24,23,[],[[0,0,0,0,1]],[1,"Default",0,1]],[[702,1346,0,250,250,0,0,1,0.5,0.5,0,0,[]],26,25,[],[[1,1200,0,0]],[0,"Default",0,1]],[[913,776,0,338.9188842773438,141.6858062744141,0,0,1,0.5011876225471497,0.5,0,0,[]],27,27,[],[[0,1,0,0,1]],[0,"Default",0,1]],[[918,540,0,863.3114624023438,289.5849304199219,0,0,1,0.500485897064209,0.5,0,0,[]],28,28,[[0],[0]],[[1,2000,0,0]],[0,"Default",0,1]],[[529,441,0,777,199,0,0,1,0,0,0,0,[]],30,5,[],[[]],["","Type here...","",1,1,0,0,0,1,""]],[[-4119,391,0,200,200,0,0,1,0.5,0.6000000238418579,0,0,[]],7,13,[],[[1,0.5,0,0.5,1]],[0,"Default",0,1]],[[-3663,1595,0,200,200,0,0,1,0.5012853741645813,0.5,0,0,[]],32,1,[],[[1,0.5,0,0.5,1]],[0,"Default",0,1]],[[248,619,0,349,349,0,0,1,0.5,0.5,0,0,[]],2,7,[[0]],[[],[1,1200,0,0],[0,7,0,"current","450, 450",0.5,"0,0",0,0,1,0,"zoom"],[1,1.25,0,0,0]],[0,"Default",0,1]],[[248,618,0,400,388,0,0,1,0.5,0.5,0,0,[]],18,4,[],[[],[1,1200,0,0],[0,7,0,"current","520, 520",0.5,"0,0",0,0,1,0,"zoom"]],[0,"Default",0,1]],[[265,808,0,220,120,0,0,1,0.5,0.5,0,0,[]],22,20,[],[[]],[0,"Default",0,1]],[[253,791,0,100,100,0,0,1,0.5,0.5,0,0,[]],23,22,[[0]],[[0,2,0,1,0,0,0,10,0]],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 1",[[0,null,false,null,735973858432743,[[-1,16,null,1,false,false,false,678751856976844,false]],[[-1,17,null,611363670349636,false,[[4,3],[5,[0,0]],[0,[20,1,18,false,null]],[0,[20,1,19,false,null]]]],[30,20,"Pin",317260315285646,false,[[4,28],[3,0]]],[3,20,"Pin",186768022767644,false,[[4,1],[3,0]]],[5,21,null,737654169068359,false,[[1,[2,"FontSetup"]],[13]]],[5,21,null,322175836469844,false,[[1,[2,"InitQuestion"]],[13]]],[9,22,null,534400534220442,false],[-1,23,null,753476942197273,false,[[0,[1,0.5]]]],[6,24,null,767320030811198,false,[[1,[2,"tdv_sdk.start();"]]]],[-1,23,null,613100022109486,false,[[0,[1,0.5]]]],[5,21,null,349100146579837,false,[[1,[2,"LoadQuestion"]],[13]]]]],[0,null,false,null,595558665441997,[[5,25,null,2,false,false,false,704627240028410,false,[[1,[2,"LoadQuestion"]]]]],[[6,24,null,135176661428489,false,[[1,[2,"tdv_sdk.getQuestions();"]]]],[30,26,null,655018044470992,false,[[3,1]]],[10,27,null,652912742199946,false,[[3,1]]],[2,27,null,247550447097005,false,[[3,1]]],[18,27,null,296290223831575,false,[[3,1]]],[22,27,null,666979382475443,false,[[3,1]]],[23,27,null,327126959704329,false,[[3,1]]],[27,27,null,912783862962953,false,[[3,1]]],[30,28,null,544888558952415,false,[[1,[2,""]]]],[30,29,null,540058809399388,false],[-1,23,null,500460189771405,false,[[0,[1,0.1]]]],[3,30,null,627789518417786,false,[[7,[20,6,31,false,null,[[2,"tdv_sdk.getQuestionsInfo('question')"]]]]]],[6,24,null,765001094672912,false,[[1,[2,"tdv_sdk.tempOptionIndex = 0;"]]]],[6,24,null,504393575910316,false,[[1,[2,"tdv_sdk.getOptionsImage()"]]]]],[[0,null,false,null,593097114262327,[[-1,32,null,0,true,false,false,142800647701289,false,[[4,2]]]],[[2,33,null,833088746542140,false,[[1,[20,6,31,false,null,[[2,"tdv_sdk.getCorrectAnswerImage()"]]]],[3,1],[3,0]]]]],[0,null,false,null,927425103490344,[],[[28,34,"MoveTo",457870198259260,false,[[0,[21,28,false,null,0]],[0,[21,28,false,null,1]]]],[1,34,"MoveTo",138994811256409,false,[[0,[21,1,false,null,0]],[0,[21,1,false,null,1]]]]]]]],[0,null,false,null,924369999552048,[[5,25,null,2,false,false,false,577452100332598,false,[[1,[2,"hideQuestion"]]]]],[[28,34,"MoveTo",230307287419088,false,[[0,[0,2500]],[0,[20,28,19,false,null]]]],[1,34,"MoveTo",104123739863847,false,[[0,[20,1,18,false,null]],[0,[0,-1500]]]]]],[0,null,false,null,221402592260820,[[5,25,null,2,false,false,false,917047723206564,false,[[1,[2,"InitQuestion"]]]]],[[28,35,null,632834948211001,false,[[10,0],[7,[20,28,18,false,null]]]],[28,35,null,268169695922626,false,[[10,1],[7,[20,28,19,false,null]]]],[1,35,null,898411016759066,false,[[10,0],[7,[20,1,18,false,null]]]],[1,35,null,232755246685080,false,[[10,1],[7,[20,1,19,false,null]]]],[-1,23,null,585619932010210,false,[[0,[1,0.01]]]],[28,36,"MoveTo",315568839656126,false,[[0,[0,2500]],[0,[20,28,19,false,null]]]],[1,36,"MoveTo",733621553864235,false,[[0,[20,1,18,false,null]],[0,[0,-1500]]]]]],[0,null,false,null,193489767858303,[[11,37,null,1,false,false,false,915162646906181,false,[[4,10]]],[10,38,null,0,false,false,false,810604995682680,false]],[[12,39,null,986337956721232,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[6,24,null,150197435293596,false,[[1,[2,"tdv_sdk.playSoundQuestion();"]]]],[10,40,"Sine",908353592218000,false,[[3,1]]],[-1,23,null,199211375649296,false,[[0,[0,2]]]],[10,40,"Sine",685001896962036,false,[[3,0]]]]],[0,null,false,null,200696350279752,[[11,37,null,1,false,false,false,983805767333692,false,[[4,8]]]],[[8,41,"Flash",140315931338638,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[12,39,null,234604129993227,false,[[2,["sample_input_typing01_kofi_by_miraclei-363634",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,23,null,687337313859254,false,[[0,[1,0.5]]]],[-1,42,null,649017074227609,false],[-1,43,null,364074185337459,false]]],[0,null,false,null,785186706292714,[[5,25,null,2,false,false,false,296304972218732,false,[[1,[2,"SetInvis"]]]]],[[14,27,null,411686350722266,false,[[3,0]]],[1,27,null,457202683756227,false,[[3,0]]],[0,27,null,372437396812693,false,[[3,0]]],[10,27,null,409243296692976,false,[[3,0]]],[3,44,null,251105289880659,false,[[3,0]]],[4,44,null,462602653390345,false,[[3,0]]],[9,27,null,593797442569736,false,[[3,0]]],[22,27,null,403357343333302,false,[[3,0]]],[23,27,null,452327764603399,false,[[3,0]]],[28,27,null,667227342317750,false,[[3,0]]],[27,27,null,278061184823079,false,[[3,0]]],[30,26,null,245318796787248,false,[[3,0]]],[30,45,null,229731202436892,false,[[3,0]]]]],[0,null,false,null,418920321754431,[[5,25,null,2,false,false,false,464075040785397,false,[[1,[2,"SetVis"]]]]],[[14,27,null,471845608446902,false,[[3,1]]],[1,27,null,517748876381210,false,[[3,1]]],[0,27,null,593952186000380,false,[[3,1]]],[10,27,null,243763739920298,false,[[3,1]]],[3,44,null,244097811480486,false,[[3,1]]],[4,44,null,424746869194404,false,[[3,1]]],[9,27,null,705200572791032,false,[[3,1]]],[22,27,null,433875105641173,false,[[3,1]]],[23,27,null,471876076706862,false,[[3,1]]],[28,27,null,496182345776205,false,[[3,1]]],[27,27,null,285148349854230,false,[[3,1]]],[30,26,null,694145421847597,false,[[3,1]]],[30,45,null,418052533277418,false,[[3,1]]]]],[0,null,false,null,442858679774201,[[11,37,null,1,false,false,false,721627917362188,false,[[4,23]]],[23,46,null,0,false,false,false,451584595820933,false,[[10,0],[8,0],[7,[0,0]]]]],[[23,35,null,326488416446610,false,[[10,0],[7,[0,1]]]],[12,39,null,332681668971053,false,[[2,["click-234708",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[23,40,"Sine",455008050861907,false,[[3,1]]],[-1,23,null,431404254262882,false,[[0,[1,1]]]],[23,40,"Sine",942765224987963,false,[[3,0]]],[5,21,null,605603305210227,false,[[1,[2,"SetInvis"]],[13]]],[2,34,"MoveTo",391396864885939,false,[[0,[0,700]],[0,[0,450]]]],[18,34,"MoveTo",722586585482033,false,[[0,[0,700]],[0,[0,450]]]],[2,47,"EaseTween",549446022666906,false,[[3,0],[1,[2,"zoom"]]]],[-1,23,null,864608427333650,false,[[0,[1,1]]]],[24,27,null,166956684852519,false,[[3,1]]]]],[0,null,false,null,792377008905582,[[11,37,null,1,false,false,false,869179235964996,false,[[4,24]]],[23,46,null,0,false,false,false,801993619000476,false,[[10,0],[8,0],[7,[0,1]]]]],[[23,35,null,742612788864066,false,[[10,0],[7,[0,0]]]],[12,39,null,383676239373004,false,[[2,["bubble-pop-389501",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[2,34,"MoveTo",327456050869754,false,[[0,[0,248]],[0,[0,619]]]],[18,34,"MoveTo",573541139763118,false,[[0,[0,248]],[0,[0,618]]]],[2,48,"EaseTween",499901053927488,false,[[3,0],[3,0],[1,[2,"zoom"]]]],[-1,23,null,472631329970991,false,[[0,[1,1]]]],[5,21,null,558493801785094,false,[[1,[2,"SetVis"]],[13]]],[24,27,null,164829537205618,false,[[3,0]]]]],[0,null,false,null,495842096007601,[[11,37,null,1,false,false,false,507746893252336,false,[[4,22]]],[23,46,null,0,false,false,false,722960480526236,false,[[10,0],[8,0],[7,[0,0]]]]],[[23,35,null,151026408717865,false,[[10,0],[7,[0,1]]]],[12,39,null,686265967716352,false,[[2,["click-234708",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[23,40,"Sine",273845285405614,false,[[3,1]]],[-1,23,null,589427660271670,false,[[0,[1,1]]]],[23,40,"Sine",698317814459524,false,[[3,0]]],[5,21,null,728874678030625,false,[[1,[2,"SetInvis"]],[13]]],[2,34,"MoveTo",866326428111921,false,[[0,[0,700]],[0,[0,450]]]],[18,34,"MoveTo",512050435631666,false,[[0,[0,700]],[0,[0,450]]]],[2,47,"EaseTween",659867881046693,false,[[3,0],[1,[2,"zoom"]]]],[-1,23,null,434899956232506,false,[[0,[1,1]]]],[24,27,null,968037092482400,false,[[3,1]]]]],[0,null,false,null,546637032064237,[[11,37,null,1,false,false,false,988303391990441,false,[[4,9]]],[-1,49,null,0,false,false,false,471990699085870,false,[[7,[20,6,31,false,null,[[2,"tdv_sdk.getCurrentLevel()"]]]],[8,1],[7,[20,6,31,false,null,[[2,"tdv_sdk.getTotalQuestion()"]]]]]]],[[12,39,null,517797530862458,false,[[2,["button-124476",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[9,41,"Flash",292980048208733,false,[[0,[1,0.1]],[0,[1,0.1]],[0,[1,0.4]]]],[5,21,null,542782032084712,false,[[1,[2,"hideQuestion"]],[13]]],[30,26,null,139515847465340,false,[[3,0]]],[2,27,null,436837380853207,false,[[3,0]]],[18,27,null,347991661001103,false,[[3,0]]],[22,27,null,280052932004621,false,[[3,0]]],[23,27,null,408678976972008,false,[[3,0]]],[10,27,null,690709291552465,false,[[3,0]]],[27,27,null,343591414770621,false,[[3,0]]],[9,22,null,541576366974741,false],[-1,23,null,246664286771808,false,[[0,[0,1]]]],[6,24,null,600242195867791,false,[[1,[2,"tdv_sdk.nextLevel();"]]]],[30,50,null,919491708851569,false,[[1,[2,"color"]],[1,[2,"black"]]]],[30,45,null,263140269256793,false,[[3,1]]],[-1,23,null,788053865116839,false,[[0,[1,1.5]]]],[14,51,"Fade",152730803505497,false],[10,51,"Fade",415085972846712,false],[2,51,"Fade",915878594746156,false],[27,51,"Fade",188697465410511,false],[12,39,null,564100218089708,false,[[2,["alert-234711",false]],[3,0],[0,[0,0]],[1,[2,""]]]]],[[0,null,false,null,306999063381999,[[-1,49,null,0,false,false,false,338629185106646,false,[[7,[20,6,31,false,null,[[2,"tdv_sdk.getCurrentLevel()"]]]],[8,0],[7,[20,6,31,false,null,[[2,"tdv_sdk.getTotalQuestion()"]]]]]]],[[12,52,null,723643415021154,false],[0,53,null,925990240503257,false,[[10,2],[3,0]]],[-1,23,null,176942394927690,false,[[0,[1,1]]]],[12,39,null,121749289042843,false,[[2,["material-buy-success-394517",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[-1,17,null,758074571059127,false,[[4,20],[5,[0,0]],[0,[0,726]],[0,[0,404]]]],[-1,17,null,200385761158285,false,[[4,15],[5,[0,0]],[0,[0,706]],[0,[0,400]]]],[-1,17,null,118108846591144,false,[[4,8],[5,[0,0]],[0,[0,710]],[0,[0,650]]]]]],[0,null,false,null,510975876115416,[[-1,54,null,0,false,false,false,866198126906359,false]],[[26,34,"MoveTo",889710127107589,false,[[0,[20,26,18,false,null]],[0,[4,[20,26,19,false,null],[0,300]]]]],[5,21,null,471413273405052,false,[[1,[2,"LoadQuestion"]],[13]]]],[[0,null,false,null,276646335933764,[[-1,32,null,0,true,false,false,987685171156449,false,[[4,4]]]],[[4,20,"Pin",577434524369355,false,[[4,26],[3,0]]]]],[0,null,false,null,424522789278109,[[-1,32,null,0,true,false,false,510122368604632,false,[[4,0]]]],[[0,20,"Pin",378252903570216,false,[[4,26],[3,0]]]]]]]]],[0,null,false,null,500572983562892,[[11,37,null,1,false,false,false,380966060413617,false,[[4,27]]],[27,38,null,0,false,false,false,841362456341138,false]],[],[[0,null,false,null,275272981241787,[[-1,49,null,0,false,false,false,410631493173204,false,[[7,[20,6,31,false,null,[[10,[10,[2,"tdv_sdk.checkAnswer('"],[20,30,55,true,null]],[2,"')"]]]]],[8,0],[7,[0,1]]]]],[[12,39,null,700133139392580,false,[[2,["collect-5930",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[30,50,null,981393055257953,false,[[1,[2,"color"]],[1,[2,"green"]]]],[-1,17,null,437578272329391,false,[[4,9],[5,[0,0]],[0,[0,1222]],[0,[0,786]]]],[30,45,null,809197902830425,false,[[3,0]]]]],[0,null,false,null,244275099279545,[[-1,54,null,0,false,false,false,241955217239873,false]],[[12,39,null,928385516490410,false,[[2,["error-010-206498",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[30,50,null,872376676504372,false,[[1,[2,"color"]],[1,[2,"red"]]]],[-1,23,null,934921588517003,false,[[0,[1,1]]]],[30,50,null,299519074390023,false,[[1,[2,"color"]],[1,[2,"black"]]]]]]]],[0,null,false,null,679070702627462,[[31,56,null,1,false,false,false,294848699400080,false,[[9,13]]],[27,38,null,0,false,false,false,613542447956810,false]],[],[[0,null,false,null,448697894770140,[[-1,49,null,0,false,false,false,887423333872225,false,[[7,[20,6,31,false,null,[[10,[10,[2,"tdv_sdk.checkAnswer('"],[20,30,55,true,null]],[2,"')"]]]]],[8,0],[7,[0,1]]]]],[[12,39,null,482110982733845,false,[[2,["collect-5930",false]],[3,0],[0,[0,20]],[1,[2,""]]]],[30,50,null,606975552110607,false,[[1,[2,"color"]],[1,[2,"green"]]]],[30,45,null,229721497055050,false,[[3,0]]],[-1,23,null,512704894048179,false,[[0,[1,0.2]]]],[-1,17,null,132257642605377,false,[[4,9],[5,[0,0]],[0,[0,1222]],[0,[0,786]]]]]],[0,null,false,null,238217913930932,[[-1,54,null,0,false,false,false,668575551480883,false]],[[12,39,null,365860780965245,false,[[2,["error-010-206498",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[30,50,null,495229221589657,false,[[1,[2,"color"]],[1,[2,"red"]]]],[-1,23,null,425895127448590,false,[[0,[1,1]]]],[30,50,null,687274195410320,false,[[1,[2,"color"]],[1,[2,"black"]]]]]]]],[0,null,false,null,992596069303023,[[5,25,null,2,false,false,false,463202130657401,false,[[1,[2,"FontSetup"]]]]],[[30,50,null,383785029415471,false,[[1,[2,"outline"]],[1,[2,"none"]]]],[30,50,null,405489793958201,false,[[1,[2,"border"]],[1,[2,"none"]]]],[30,50,null,151716260933248,false,[[1,[2,"font-size"]],[1,[2,"72px"]]]],[30,50,null,646327282709547,false,[[1,[2,"text-align"]],[1,[2,"center"]]]],[30,50,null,968280430534349,false,[[1,[2,"font-family"]],[1,[2,"'Arial Black', Gadget, sans-serif"]]]],[30,50,null,599735391251872,false,[[1,[2,"background-color"]],[1,[2,"transparent"]]]]]]]]],[["click.m4a",2444],["click.ogg",5621],["correct.m4a",10198],["correct.ogg",12421],["fail.m4a",29104],["fail.ogg",24343],["applause-383901.ogg",358326],["correct-156911.ogg",7703],["error-04-199275.ogg",11946],["pop-402324-1.m4a",14038],["pop-402324.m4a",14038],["pop-402324.ogg",11710],["successed-295058.ogg",22120],["wrong-answer-129254.ogg",16900],["alert-234711.ogg",23907],["bubble-pop-389501.ogg",18257],["button-124476.ogg",13157],["christmas-background-music-436117.ogg",1507509],["christmas-happy-background-442036.ogg",1555527],["christmas-holiday-background-431002.ogg",1153659],["happy-christmas-music-412753.ogg",826963],["collect-5930.ogg",10731],["error-010-206498.ogg",11425],["error-08-206492.ogg",15621],["material-buy-success-394517.ogg",21008],["sample_input_typing01_kofi_by_miraclei-363634.ogg",24117],["click-234708.ogg",6353]],"media/",false,1400,900,3,true,true,true,"1.0.0.0",true,true,3,0,29,false,true,1,true,"GameQuiz-InputKeyBoard",0,[[10,1],[4,0],[30,28]]]} \ No newline at end of file diff --git a/GameQuiz-InputKeyBoard/icon-114.png b/GameQuiz-InputKeyBoard/icon-114.png new file mode 100644 index 0000000..bf56364 Binary files /dev/null and b/GameQuiz-InputKeyBoard/icon-114.png differ diff --git a/GameQuiz-InputKeyBoard/icon-128.png b/GameQuiz-InputKeyBoard/icon-128.png new file mode 100644 index 0000000..523ffd0 Binary files /dev/null and b/GameQuiz-InputKeyBoard/icon-128.png differ diff --git a/GameQuiz-InputKeyBoard/icon-16.png b/GameQuiz-InputKeyBoard/icon-16.png new file mode 100644 index 0000000..e1b785c Binary files /dev/null and b/GameQuiz-InputKeyBoard/icon-16.png differ diff --git a/GameQuiz-InputKeyBoard/icon-256.png b/GameQuiz-InputKeyBoard/icon-256.png new file mode 100644 index 0000000..0916f57 Binary files /dev/null and b/GameQuiz-InputKeyBoard/icon-256.png differ diff --git a/GameQuiz-InputKeyBoard/icon-32.png b/GameQuiz-InputKeyBoard/icon-32.png new file mode 100644 index 0000000..02edf8c Binary files /dev/null and b/GameQuiz-InputKeyBoard/icon-32.png differ diff --git a/GameQuiz-InputKeyBoard/images/answers-sheet0.png b/GameQuiz-InputKeyBoard/images/answers-sheet0.png new file mode 100644 index 0000000..ad619b3 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/answers-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/answers-sheet1.png b/GameQuiz-InputKeyBoard/images/answers-sheet1.png new file mode 100644 index 0000000..3dbbba5 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/answers-sheet1.png differ diff --git a/GameQuiz-InputKeyBoard/images/answers2-sheet0.png b/GameQuiz-InputKeyBoard/images/answers2-sheet0.png new file mode 100644 index 0000000..2c0e023 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/answers2-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/back-sheet0.png b/GameQuiz-InputKeyBoard/images/back-sheet0.png new file mode 100644 index 0000000..5c22b74 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/back-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/bg-sheet0.png b/GameQuiz-InputKeyBoard/images/bg-sheet0.png new file mode 100644 index 0000000..3d3693f Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/bg-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/bgm-sheet0.png b/GameQuiz-InputKeyBoard/images/bgm-sheet0.png new file mode 100644 index 0000000..c417bee Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/bgm-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/bgm-sheet1.png b/GameQuiz-InputKeyBoard/images/bgm-sheet1.png new file mode 100644 index 0000000..517f4a5 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/bgm-sheet1.png differ diff --git a/GameQuiz-InputKeyBoard/images/button-sheet0.png b/GameQuiz-InputKeyBoard/images/button-sheet0.png new file mode 100644 index 0000000..c1ed491 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/button-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/complete-sheet0.png b/GameQuiz-InputKeyBoard/images/complete-sheet0.png new file mode 100644 index 0000000..fbcf9b2 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/complete-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/correct-sheet0.png b/GameQuiz-InputKeyBoard/images/correct-sheet0.png new file mode 100644 index 0000000..dae8a4e Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/correct-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/dim-sheet0.png b/GameQuiz-InputKeyBoard/images/dim-sheet0.png new file mode 100644 index 0000000..4901461 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/dim-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/greenborder-sheet0.png b/GameQuiz-InputKeyBoard/images/greenborder-sheet0.png new file mode 100644 index 0000000..13f6468 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/greenborder-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/inputframe-sheet0.png b/GameQuiz-InputKeyBoard/images/inputframe-sheet0.png new file mode 100644 index 0000000..a648596 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/inputframe-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/khunganh-sheet0.png b/GameQuiz-InputKeyBoard/images/khunganh-sheet0.png new file mode 100644 index 0000000..cd682af Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/khunganh-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/khunganh-sheet1.png b/GameQuiz-InputKeyBoard/images/khunganh-sheet1.png new file mode 100644 index 0000000..61066d8 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/khunganh-sheet1.png differ diff --git a/GameQuiz-InputKeyBoard/images/next-sheet0.png b/GameQuiz-InputKeyBoard/images/next-sheet0.png new file mode 100644 index 0000000..95e4687 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/next-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/next-sheet1.png b/GameQuiz-InputKeyBoard/images/next-sheet1.png new file mode 100644 index 0000000..cf188e9 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/next-sheet1.png differ diff --git a/GameQuiz-InputKeyBoard/images/nextqs-sheet0.png b/GameQuiz-InputKeyBoard/images/nextqs-sheet0.png new file mode 100644 index 0000000..c5e7d3d Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/nextqs-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/question-sheet0.png b/GameQuiz-InputKeyBoard/images/question-sheet0.png new file mode 100644 index 0000000..026177e Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/question-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/quiz-sheet0.png b/GameQuiz-InputKeyBoard/images/quiz-sheet0.png new file mode 100644 index 0000000..b62375a Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/quiz-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/replay-sheet0.png b/GameQuiz-InputKeyBoard/images/replay-sheet0.png new file mode 100644 index 0000000..9ebfe43 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/replay-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/sound-sheet0.png b/GameQuiz-InputKeyBoard/images/sound-sheet0.png new file mode 100644 index 0000000..bee2135 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/sound-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/sprite-sheet0.png b/GameQuiz-InputKeyBoard/images/sprite-sheet0.png new file mode 100644 index 0000000..84a6275 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/sprite-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/submit-sheet0.png b/GameQuiz-InputKeyBoard/images/submit-sheet0.png new file mode 100644 index 0000000..d53ee65 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/submit-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/txt_scenario.png b/GameQuiz-InputKeyBoard/images/txt_scenario.png new file mode 100644 index 0000000..c4f063d Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/txt_scenario.png differ diff --git a/GameQuiz-InputKeyBoard/images/wrong-sheet0.png b/GameQuiz-InputKeyBoard/images/wrong-sheet0.png new file mode 100644 index 0000000..45c4b60 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/wrong-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/zoom-sheet0.png b/GameQuiz-InputKeyBoard/images/zoom-sheet0.png new file mode 100644 index 0000000..7f8b9a5 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/zoom-sheet0.png differ diff --git a/GameQuiz-InputKeyBoard/images/zoom-sheet1.png b/GameQuiz-InputKeyBoard/images/zoom-sheet1.png new file mode 100644 index 0000000..2ac65d3 Binary files /dev/null and b/GameQuiz-InputKeyBoard/images/zoom-sheet1.png differ diff --git a/GameQuiz-InputKeyBoard/index.html b/GameQuiz-InputKeyBoard/index.html new file mode 100644 index 0000000..d5727f7 --- /dev/null +++ b/GameQuiz-InputKeyBoard/index.html @@ -0,0 +1,139 @@ + + + + + + GameQuiz-InputKeyBoard + + + + + + + + + + + + + + + + + + + + + + +

+
+ + +
+ + + +
+ + + + +

Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. What is a browser? +

Microsoft Internet Explorer
+ Mozilla Firefox
+ Google Chrome
+ Apple Safari

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/GameQuiz-InputKeyBoard/jquery-3.4.1.min.js b/GameQuiz-InputKeyBoard/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/GameQuiz-InputKeyBoard/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0 this._OnBroadcastChannelMessage(e)); + } + + _OnBroadcastChannelMessage(e) + { + // Have a message callback set: just forward the call. + if (this._onMessageCallback) + { + this._onMessageCallback(e); + return; + } + + // Otherwise the app hasn't loaded far enough to set a message callback. + // Buffer the incoming messages to replay when the app sets a callback. + this._queuedMessages.push(e); + } + + SetMessageCallback(f) + { + this._onMessageCallback = f; + + // Replay any queued messages through the handler, then clear the queue. + for (let e of this._queuedMessages) + this._onMessageCallback(e); + + this._queuedMessages.length = 0; + } + }; + + // Create the offline client ASAP so we receive and start queueing any messages the SW broadcasts. + window.OfflineClientInfo = new OfflineClient(); + +}()); + diff --git a/GameQuiz-InputKeyBoard/sw.js b/GameQuiz-InputKeyBoard/sw.js new file mode 100644 index 0000000..32ced4d --- /dev/null +++ b/GameQuiz-InputKeyBoard/sw.js @@ -0,0 +1,403 @@ +"use strict"; + +const OFFLINE_DATA_FILE = "offline.js"; +const CACHE_NAME_PREFIX = "c2offline"; +const BROADCASTCHANNEL_NAME = "offline"; +const CONSOLE_PREFIX = "[SW] "; +const LAZYLOAD_KEYNAME = ""; + +// Create a BroadcastChannel if supported. +const broadcastChannel = (typeof BroadcastChannel === "undefined" ? null : new BroadcastChannel(BROADCASTCHANNEL_NAME)); + +////////////////////////////////////// +// Utility methods +function PostBroadcastMessage(o) +{ + if (!broadcastChannel) + return; // not supported + + // Impose artificial (and arbitrary!) delay of 3 seconds to make sure client is listening by the time the message is sent. + // Note we could remove the delay on some messages, but then we create a race condition where sometimes messages can arrive + // in the wrong order (e.g. "update ready" arrives before "started downloading update"). So to keep the consistent ordering, + // delay all messages by the same amount. + setTimeout(() => broadcastChannel.postMessage(o), 3000); +}; + +function Broadcast(type) +{ + PostBroadcastMessage({ + "type": type + }); +}; + +function BroadcastDownloadingUpdate(version) +{ + PostBroadcastMessage({ + "type": "downloading-update", + "version": version + }); +} + +function BroadcastUpdateReady(version) +{ + PostBroadcastMessage({ + "type": "update-ready", + "version": version + }); +} + +function IsUrlInLazyLoadList(url, lazyLoadList) +{ + if (!lazyLoadList) + return false; // presumably lazy load list failed to load + + try { + for (const lazyLoadRegex of lazyLoadList) + { + if (new RegExp(lazyLoadRegex).test(url)) + return true; + } + } + catch (err) + { + console.error(CONSOLE_PREFIX + "Error matching in lazy-load list: ", err); + } + + return false; +}; + +function WriteLazyLoadListToStorage(lazyLoadList) +{ + if (typeof localforage === "undefined") + return Promise.resolve(); // bypass if localforage not imported + else + return localforage.setItem(LAZYLOAD_KEYNAME, lazyLoadList) +}; + +function ReadLazyLoadListFromStorage() +{ + if (typeof localforage === "undefined") + return Promise.resolve([]); // bypass if localforage not imported + else + return localforage.getItem(LAZYLOAD_KEYNAME); +}; + +function GetCacheBaseName() +{ + // Include the scope to avoid name collisions with any other SWs on the same origin. + // e.g. "c2offline-https://example.com/foo/" (won't collide with anything under bar/) + return CACHE_NAME_PREFIX + "-" + self.registration.scope; +}; + +function GetCacheVersionName(version) +{ + // Append the version number to the cache name. + // e.g. "c2offline-https://example.com/foo/-v2" + return GetCacheBaseName() + "-v" + version; +}; + +// Return caches.keys() filtered down to just caches we're interested in (with the right base name). +// This filters out caches from unrelated scopes. +async function GetAvailableCacheNames() +{ + const cacheNames = await caches.keys(); + const cacheBaseName = GetCacheBaseName(); + return cacheNames.filter(n => n.startsWith(cacheBaseName)); +}; + +// Identify if an update is pending, which is the case when we have 2 or more available caches. +// One must be an update that is waiting, since the next navigate that does an upgrade will +// delete all the old caches leaving just one currently-in-use cache. +async function IsUpdatePending() +{ + const availableCacheNames = await GetAvailableCacheNames(); + return (availableCacheNames.length >= 2); +}; + +// Automatically deduce the main page URL (e.g. index.html or main.aspx) from the available browser windows. +// This prevents having to hard-code an index page in the file list, implicitly caching it like AppCache did. +async function GetMainPageUrl() +{ + const allClients = await clients.matchAll({ + includeUncontrolled: true, + type: "window" + }); + + for (const c of allClients) + { + // Parse off the scope from the full client URL, e.g. https://example.com/index.html -> index.html + let url = c.url; + if (url.startsWith(self.registration.scope)) + url = url.substring(self.registration.scope.length); + + if (url && url !== "/") // ./ is also implicitly cached so don't bother returning that + { + // If the URL is solely a search string, prefix it with / to ensure it caches correctly. + // e.g. https://example.com/?foo=bar needs to cache as /?foo=bar, not just ?foo=bar. + if (url.startsWith("?")) + url = "/" + url; + + return url; + } + } + + return ""; // no main page URL could be identified +}; + +// Hack to fetch optionally bypassing HTTP cache until fetch cache options are supported in Chrome (crbug.com/453190) +function fetchWithBypass(request, bypassCache) +{ + if (typeof request === "string") + request = new Request(request); + + if (bypassCache) + { + // bypass enabled: add a random search parameter to avoid getting a stale HTTP cache result + const url = new URL(request.url); + url.search += Math.floor(Math.random() * 1000000); + + return fetch(url, { + headers: request.headers, + mode: request.mode, + credentials: request.credentials, + redirect: request.redirect, + cache: "no-store" + }); + } + else + { + // bypass disabled: perform normal fetch which is allowed to return from HTTP cache + return fetch(request); + } +}; + +// Effectively a cache.addAll() that only creates the cache on all requests being successful (as a weak attempt at making it atomic) +// and can optionally cache-bypass with fetchWithBypass in every request +async function CreateCacheFromFileList(cacheName, fileList, bypassCache) +{ + // Kick off all requests and wait for them all to complete + const responses = await Promise.all(fileList.map(url => fetchWithBypass(url, bypassCache))); + + // Check if any request failed. If so don't move on to opening the cache. + // This makes sure we only open a cache if all requests succeeded. + let allOk = true; + + for (const response of responses) + { + if (!response.ok) + { + allOk = false; + console.error(CONSOLE_PREFIX + "Error fetching '" + response.url + "' (" + response.status + " " + response.statusText + ")"); + } + } + + if (!allOk) + throw new Error("not all resources were fetched successfully"); + + // Can now assume all responses are OK. Open a cache and write all responses there. + // TODO: ideally we can do this transactionally to ensure a complete cache is written as one atomic operation. + // This needs either new transactional features in the spec, or at the very least a way to rename a cache + // (so we can write to a temporary name that won't be returned by GetAvailableCacheNames() and then rename it when ready). + const cache = await caches.open(cacheName); + + try { + return await Promise.all(responses.map( + (response, i) => cache.put(fileList[i], response) + )); + } + catch (err) + { + // Not sure why cache.put() would fail (maybe if storage quota exceeded?) but in case it does, + // clean up the cache to try to avoid leaving behind an incomplete cache. + console.error(CONSOLE_PREFIX + "Error writing cache entries: ", err); + caches.delete(cacheName); + throw err; + } +}; + +async function UpdateCheck(isFirst) +{ + try { + // Always bypass cache when requesting offline.js to make sure we find out about new versions. + const response = await fetchWithBypass(OFFLINE_DATA_FILE, true); + + if (!response.ok) + throw new Error(OFFLINE_DATA_FILE + " responded with " + response.status + " " + response.statusText); + + const data = await response.json(); + + const version = data.version; + const fileList = data.fileList; + const lazyLoadList = data.lazyLoad; + const currentCacheName = GetCacheVersionName(version); + + const cacheExists = await caches.has(currentCacheName); + + // Don't recache if there is already a cache that exists for this version. Assume it is complete. + if (cacheExists) + { + // Log whether we are up-to-date or pending an update. + const isUpdatePending = await IsUpdatePending(); + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "Update pending"); + Broadcast("update-pending"); + } + else + { + console.log(CONSOLE_PREFIX + "Up to date"); + Broadcast("up-to-date"); + } + return; + } + + // Implicitly add the main page URL to the file list, e.g. "index.html", so we don't have to assume a specific name. + const mainPageUrl = await GetMainPageUrl(); + + // Prepend the main page URL to the file list if we found one and it is not already in the list. + // Also make sure we request the base / which should serve the main page. + fileList.unshift("./"); + + if (mainPageUrl && fileList.indexOf(mainPageUrl) === -1) + fileList.unshift(mainPageUrl); + + console.log(CONSOLE_PREFIX + "Caching " + fileList.length + " files for offline use"); + + if (isFirst) + Broadcast("downloading"); + else + BroadcastDownloadingUpdate(version); + + // Note we don't bypass the cache on the first update check. This is because SW installation and the following + // update check caching will race with the normal page load requests. For any normal loading fetches that have already + // completed or are in-flight, it is pointless and wasteful to cache-bust the request for offline caching, since that + // forces a second network request to be issued when a response from the browser HTTP cache would be fine. + if (lazyLoadList) + await WriteLazyLoadListToStorage(lazyLoadList); // dump lazy load list to local storage# + + await CreateCacheFromFileList(currentCacheName, fileList, !isFirst); + const isUpdatePending = await IsUpdatePending(); + + if (isUpdatePending) + { + console.log(CONSOLE_PREFIX + "All resources saved, update ready"); + BroadcastUpdateReady(version); + } + else + { + console.log(CONSOLE_PREFIX + "All resources saved, offline support ready"); + Broadcast("offline-ready"); + } + } + catch (err) + { + // Update check fetches fail when we're offline, but in case there's any other kind of problem with it, log a warning. + console.warn(CONSOLE_PREFIX + "Update check failed: ", err); + } +}; + +self.addEventListener("install", event => +{ + // On install kick off an update check to cache files on first use. + // If it fails we can still complete the install event and leave the SW running, we'll just + // retry on the next navigate. + event.waitUntil( + UpdateCheck(true) // first update + .catch(() => null) + ); +}); + +async function GetCacheNameToUse(availableCacheNames, doUpdateCheck) +{ + // Prefer the oldest cache available. This avoids mixed-version responses by ensuring that if a new cache + // is created and filled due to an update check while the page is running, we keep returning resources + // from the original (oldest) cache only. + if (availableCacheNames.length === 1 || !doUpdateCheck) + return availableCacheNames[0]; + + // We are making a navigate request with more than one cache available. Check if we can expire any old ones. + const allClients = await clients.matchAll(); + + // If there are other clients open, don't expire anything yet. We don't want to delete any caches they + // might be using, which could cause mixed-version responses. + if (allClients.length > 1) + return availableCacheNames[0]; + + // Identify newest cache to use. Delete all the others. + const latestCacheName = availableCacheNames[availableCacheNames.length - 1]; + console.log(CONSOLE_PREFIX + "Updating to new version"); + + await Promise.all( + availableCacheNames.slice(0, -1) + .map(c => caches.delete(c)) + ); + + return latestCacheName; +}; + +async function HandleFetch(event, doUpdateCheck) +{ + const availableCacheNames = await GetAvailableCacheNames(); + + // No caches available: go to network + if (!availableCacheNames.length) + return fetch(event.request); + + const useCacheName = await GetCacheNameToUse(availableCacheNames, doUpdateCheck); + const cache = await caches.open(useCacheName); + const cachedResponse = await cache.match(event.request); + + if (cachedResponse) + return cachedResponse; // use cached response + + // We need to check if this request is to be lazy-cached. Send the request and load the lazy-load list + // from storage simultaneously. + const result = await Promise.all([fetch(event.request), ReadLazyLoadListFromStorage()]); + const fetchResponse = result[0]; + const lazyLoadList = result[1]; + + if (IsUrlInLazyLoadList(event.request.url, lazyLoadList)) + { + // Handle failure writing to the cache. This can happen if the storage quota is exceeded, which is particularly + // likely in Safari 11.1, which appears to have very tight storage limits. Make sure even in the event of an error + // we continue to return the response from the fetch. + try { + // Note clone response since we also respond with it + await cache.put(event.request, fetchResponse.clone()); + } + catch (err) + { + console.warn(CONSOLE_PREFIX + "Error caching '" + event.request.url + "': ", err); + } + } + + return fetchResponse; +}; + +self.addEventListener("fetch", event => +{ + /** NOTE (iain) + * This check is to prevent a bug with XMLHttpRequest where if its + * proxied with "FetchEvent.prototype.respondWith" no upload progress + * events are triggered. By returning we allow the default action to + * occur instead. Currently all cross-origin requests fall back to default. + */ + if (new URL(event.request.url).origin !== location.origin) + return; + + // Check for an update on navigate requests + const doUpdateCheck = (event.request.mode === "navigate"); + + const responsePromise = HandleFetch(event, doUpdateCheck); + + if (doUpdateCheck) + { + // allow the main request to complete, then check for updates + event.waitUntil( + responsePromise + .then(() => UpdateCheck(false)) // not first check + ); + } + + event.respondWith(responsePromise); +}); \ No newline at end of file diff --git a/GameQuiz-InputKeyBoard/tdv_sdk.js b/GameQuiz-InputKeyBoard/tdv_sdk.js new file mode 100644 index 0000000..436edb7 --- /dev/null +++ b/GameQuiz-InputKeyBoard/tdv_sdk.js @@ -0,0 +1,160 @@ +var tdv_sdk = {}; + +tdv_sdk.list = [ + { + "id": "q1", + "question": "What is this?", + "answer": "Scissors", // Đáp án chuẩn + "image": "https://images.senaai.vn/images/Scissors21.jpg", + "audio": "https://audio.senaai.vn/audio/en_male_1_what_is_this.mp3", + "text": "It is scissors." + }, + { + "id": "q2", + "question": "What is this?", + "answer": "Glue", + "image": "https://images.senaai.vn/images/glue.jpg", + "audio": "https://audio.senaai.vn/audio/en_male_1_what_is_this.mp3", + "text": "It is glue." + }, + { + "id": "q3", + "question": "What is this?", + "answer": "Eraser", // Học sinh cần nhập đủ "An Eraser" + "image": "https://images.senaai.vn/images/eraser52.jpg", + "audio": "https://audio.senaai.vn/audio/en_male_1_what_is_this.mp3", + "text": "It is an eraser." + }, + { + "id": "q4", + "question": "What is this?", + "answer": "Pencil Sharpener", + "image": "https://images.senaai.vn/images/sharpener.jpg", + "audio": "https://audio.senaai.vn/audio/en_male_1_what_is_this.mp3", + "text": "It is a pencil sharpener." + }, + { + "id": "q5", + "question": "What are these?", + "answer": "Pencils", + "image": "https://images.senaai.vn/images/colored_pencils18.jpg", + "audio": "https://audio.senaai.vn/audio/en_male_1_what_are_these.mp3", + "text": "They are colored pencils." + } +]; + + +tdv_sdk.currentTotal = 0; +tdv_sdk.currentLevel = 0; +tdv_sdk.question = {}; + + +tdv_sdk.shuffleArray = function(Array) { + for (let i = Array.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [Array[i], Array[j]] = [Array[j], Array[i]]; + } +}; + +// Bắt đầu game +tdv_sdk.start = function() { + tdv_sdk.currentLevel = 0; + tdv_sdk.currentTotal = tdv_sdk.list.length; + tdv_sdk.shuffleArray(tdv_sdk.list); +}; + +// Lấy câu hỏi hiện tại +tdv_sdk.getQuestions = function(){ + console.log("Current level:", tdv_sdk.currentLevel); + // Clone dữ liệu để tránh tham chiếu sai + var currentItem = tdv_sdk.list[tdv_sdk.currentLevel]; + + tdv_sdk.question = { + id: currentItem.id, + question: currentItem.question, + answer: currentItem.answer, + audio: currentItem.audio, + image: currentItem.image, + text: currentItem.text + }; + console.log("Question Data:", tdv_sdk.question); +}; + +// Lấy thông tin cụ thể (dùng trong Construct 2) +tdv_sdk.getQuestionsInfo = function(attr){ + if (tdv_sdk.question && tdv_sdk.question[attr]) { + return tdv_sdk.question[attr]; + } + return ""; +}; + +// Phát âm thanh +tdv_sdk.playSoundQuestion = function(rate) { + const audioSrc = tdv_sdk.question.audio; + if (!audioSrc) return; + + if ((window.audio) && (!window.audio.paused)) { + window.audio.pause(); + } + + const audio = new Audio(audioSrc); + audio.playbackRate = rate || 1; + window.audio = audio; + audio.play(); +}; + +/* ========================================= + PHẦN 4: LOGIC KIỂM TRA ĐÁP ÁN (NEW) + ========================================= */ + +// Hàm làm sạch chuỗi: Viết thường -> Xóa dấu câu -> Xóa khoảng trắng thừa +tdv_sdk.normalizeString = function(str) { + if (!str) return ""; + str = str.toString().toLowerCase().trim(); + // Xóa dấu chấm, phẩy, chấm than, chấm hỏi + str = str.replace(/[.,!?]/g, ""); + // Gộp nhiều khoảng trắng thành 1 (Ví dụ: "a b" -> "a b") + str = str.replace(/\s\s+/g, ' '); + return str; +}; + +// Hàm chấm điểm: Trả về 1 (Đúng) hoặc 0 (Sai) +// Construct 2 gọi: Browser.ExecJS("tdv_sdk.checkAnswer('" & TextBox.Text & "')") +tdv_sdk.checkAnswer = function(studentInput) { + if (!tdv_sdk.question || !tdv_sdk.question.answer) return 0; + + var inputClean = tdv_sdk.normalizeString(studentInput); + var answerClean = tdv_sdk.normalizeString(tdv_sdk.question.answer); + + console.log("Student input:", inputClean, "| Correct answer:", answerClean); + + if (inputClean === answerClean) { + return 1; + } else { + return 0; + } +}; + + + +tdv_sdk.getCorrectAnswerImage = function() { + // Logic mới: Lấy thẳng ảnh của câu hỏi hiện tại + if (tdv_sdk.question && tdv_sdk.question.image) { + return tdv_sdk.question.image; + } + return ""; +}; + +tdv_sdk.getTotalQuestion = function(){ + return tdv_sdk.currentTotal; +}; + +tdv_sdk.nextLevel = function(){ + if (tdv_sdk.currentLevel < tdv_sdk.list.length) { + tdv_sdk.currentLevel++; + } +}; + +tdv_sdk.getCurrentLevel = function(){ + return tdv_sdk.currentLevel; +}; \ No newline at end of file diff --git a/source/GameQuiz-InputKeyBoard.capx b/source/GameQuiz-InputKeyBoard.capx new file mode 100644 index 0000000..8a624f1 Binary files /dev/null and b/source/GameQuiz-InputKeyBoard.capx differ