all-in-one.js 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650
  1. var Ν = {
  2. width: 640,
  3. I: 45
  4. };
  5. Ν.q = 1000 / Ν.I >> 0;
  6. "use strict";
  7. (function (exports, undefined) {
  8. var w = exports.Toucher = exports.Toucher || {};
  9. var А = w.Ρ = w.Ρ || {};
  10. А.Η = [
  11. "touches",
  12. "changedTouches",
  13. "targetTouches"
  14. ];
  15. А.touches = "touches";
  16. А.changedTouches = "changedTouches";
  17. А.targetTouches = "targetTouches";
  18. А.М = 1;
  19. var T = w.X = function (U) {
  20. for (var y in U) {
  21. this[y] = U[y]
  22. }
  23. this.O = this.O || w.l7
  24. };
  25. var Y = {
  26. constructor: T,
  27. O: null,
  28. host: window,
  29. j: document,
  30. Тq: 1,
  31. Е: false,
  32. i: false,
  33. p: true,
  34. preventDefault: false,
  35. N: true,
  36. V: false,
  37. s: false,
  38. Ζ: false,
  39. L: false,
  40. offsetLeft: 0,
  41. offsetTop: 0,
  42. С: 30,
  43. Υ: 5,
  44. Χ: null,
  45. Yb: null,
  46. ΥΧ: null,
  47. РP: 0,
  48. m: 0,
  49. Β: function () {
  50. },
  51. Ϻ: function () {
  52. this.S0 = [];
  53. this.reset();
  54. this.Β();
  55. var g = this.j;
  56. this.Ѕx();
  57. this.Е = "ontouchstart" in this.j;
  58. if (!this.Е) {
  59. this.i = true
  60. }
  61. if (this.i) {
  62. А.Gj = "mousedown";
  63. А.ΖО = "mousemove";
  64. А.Χu = "mouseup";
  65. А.Ζg = null
  66. } else {
  67. А.Gj = "touchstart";
  68. А.ΖО = "touchmove";
  69. А.Χu = "touchend";
  70. А.Ζg = "touchcancel"
  71. }
  72. var J = this;
  73. if (!this.i && this.N) {
  74. if ("ongesturestart" in g) {
  75. g.addEventListener("gesturestart", function (f) {
  76. f.preventDefault()
  77. }, true);
  78. g.addEventListener("gesturechange", function (Η) {
  79. Η.preventDefault()
  80. }, true);
  81. g.addEventListener("gestureend", function (Е) {
  82. Е.preventDefault()
  83. }, true)
  84. }
  85. }
  86. g.addEventListener(А.Gj, function (G) {
  87. var a = Date.now();
  88. if (J.i) {
  89. J.reset()
  90. }
  91. if (J.g_ !== null && J.g_(G, a) === false) {
  92. return
  93. }
  94. J.NР(G, a);
  95. if (J.V || J.preventDefault) {
  96. G.preventDefault()
  97. }
  98. }, this.p);
  99. g.addEventListener(А.ΖО, function (H) {
  100. var Q = Date.now();
  101. if (Q - J.РP < J.m || J.cS !== null && J.cS(H, Q) === false) {
  102. return
  103. }
  104. J.РP = Q;
  105. J.Μ5(H, Q);
  106. if (J.s || J.preventDefault) {
  107. H.preventDefault()
  108. }
  109. }, this.p);
  110. var О = function (_) {
  111. var r = Date.now();
  112. if (J.ΒS !== null && J.ΒS(_, r) === false) {
  113. return
  114. }
  115. J.Mw(_, r);
  116. if (J.Ζ || J.preventDefault) {
  117. _.preventDefault()
  118. }
  119. };
  120. g.addEventListener(А.Χu, О, this.p);
  121. if (this.i) {
  122. window.addEventListener("mouseout", function (F) {
  123. var Η = F.relatedTarget || F.toElement;
  124. if (!Η || Η.nodeName == "HTML") {
  125. О(F)
  126. }
  127. F.preventDefault()
  128. }, false)
  129. } else {
  130. g.addEventListener(А.Ζg, function (h) {
  131. var М = Date.now();
  132. if (J.vW !== null && J.vW(h) === false) {
  133. return
  134. }
  135. J.reset();
  136. J.Me(h, М);
  137. if (J.L || J.preventDefault) {
  138. h.preventDefault()
  139. }
  140. }, this.p)
  141. }
  142. this.Сs()
  143. },
  144. Сs: function () {
  145. },
  146. reset: function () {
  147. this.Χ = [];
  148. this.Yb = [];
  149. this.ΥΧ = [];
  150. this.Χ.CΕ = this.Yb.CΕ = this.ΥΧ.CΕ = 0;
  151. this.Ζl = {};
  152. this.b0 = 0
  153. },
  154. Ѕx: function () {
  155. var _ = this.j;
  156. if (_ === window || _ === document) {
  157. this.offsetLeft = 0;
  158. this.offsetTop = 0;
  159. return
  160. }
  161. if (_.getBoundingClientRect !== undefined) {
  162. var Ϻ = window.pageXOffset, Ο = 0;
  163. if (Ϻ || Ϻ === 0) {
  164. Ο = window.pageYOffset
  165. } else {
  166. Ϻ = document.body.scrollLeft;
  167. Ο = document.body.scrollTop
  168. }
  169. var O = _.getBoundingClientRect();
  170. this.offsetLeft = O.left + Ϻ;
  171. this.offsetTop = O.top + Ο;
  172. return
  173. }
  174. var a = _.offsetLeft, F = _.offsetTop;
  175. while ((_ = _.parentNode) && _ !== document.body && _ !== document) {
  176. a += _.offsetLeft;
  177. F += _.offsetTop
  178. }
  179. this.offsetLeft = a;
  180. this.offsetTop = F
  181. },
  182. g_: null,
  183. NР: function (y, U) {
  184. var u = this.ow(y, U);
  185. this.aC("start", u, y)
  186. },
  187. cS: null,
  188. Μ5: function (Ϲ, Z) {
  189. var М = this.ΒΜ(Ϲ, Z);
  190. this.aC("move", М, Ϲ)
  191. },
  192. ΒS: null,
  193. Mw: function (q, X) {
  194. var F = this.YϺ(q, X);
  195. this.aC("end", F, q)
  196. },
  197. vW: null,
  198. Me: function (a, V) {
  199. console.log("cancel", this.S0.length);
  200. for (var Ρ = 0, Τ = this.S0.length; Ρ < Τ; Ρ++) {
  201. var І = this.S0[Ρ];
  202. if (І.cancel != null) {
  203. if (І.cancel(null, a, this) === false) {
  204. break
  205. }
  206. }
  207. }
  208. },
  209. EС: function (Υ, f) {
  210. if (Υ.length >= this.Υ) {
  211. Υ.shift()
  212. }
  213. Υ.push(f)
  214. },
  215. HN: function (q, r) {
  216. if (q.length >= this.Υ) {
  217. q.shift()
  218. }
  219. q.push(r)
  220. },
  221. ow: function (q, Χ) {
  222. var Ϝ = q[А.changedTouches] || [q];
  223. var Р = [];
  224. for (var Z = 0, W = Ϝ.length; Z < W; Z++) {
  225. var Ϲ = Ϝ[Z];
  226. var x = Ϲ.Ia;
  227. var Q = x || x === 0 ? x : А.М;
  228. var _ = this.Ζl[Q];
  229. _ = new this.O(Q);
  230. _.Тq = this.Тq;
  231. this.Ζl[Q] = _;
  232. this.b0++;
  233. _.start(Ϲ, q);
  234. Р.push(_);
  235. var m = this.Χ;
  236. if (Χ - m.CΕ > this.С) {
  237. m.length = 0
  238. }
  239. m.CΕ = Χ;
  240. m.push(_)
  241. }
  242. return Р
  243. },
  244. ΒΜ: function (O, H) {
  245. var Ο = O[А.changedTouches] || [O];
  246. var y = [];
  247. for (var Α = 0, X = Ο.length; Α < X; Α++) {
  248. var R = Ο[Α];
  249. var a = R.Ia;
  250. var Ρ = a || a === 0 ? a : А.М;
  251. var Ϝ = this.Ζl[Ρ];
  252. if (Ϝ) {
  253. if (!Ϝ.np) {
  254. var f = this.Yb;
  255. if (H - f.CΕ > this.С) {
  256. f.length = 0
  257. }
  258. f.CΕ = H;
  259. f.push(Ϝ)
  260. }
  261. Ϝ.k(R, O);
  262. y.push(Ϝ)
  263. }
  264. }
  265. return y
  266. },
  267. YϺ: function (z, V) {
  268. var Ε = z[А.changedTouches] || [z];
  269. var G = {};
  270. if (!this.i) {
  271. var Ϻ = z[А.touches];
  272. for (var y = Ϻ.length - 1; y >= 0; y--) {
  273. var B = Ϻ[y];
  274. G[B.Ia] = true
  275. }
  276. }
  277. var Τ = [];
  278. for (var X = 0, Α = Ε.length; X < Α; X++) {
  279. var o = Ε[X];
  280. var q = o.Ia;
  281. var W = q || q === 0 ? q : А.М;
  282. if (!G[W]) {
  283. var Κ = this.Ζl[W];
  284. if (Κ) {
  285. Κ.end(o);
  286. delete this.Ζl[W];
  287. this.b0--;
  288. Τ.push(Κ);
  289. var H = this.ΥΧ;
  290. if (V - H.CΕ > this.С) {
  291. H.length = 0
  292. }
  293. H.CΕ = V;
  294. H.push(Κ);
  295. this.РW(this.Χ, W);
  296. this.РW(this.Yb, W)
  297. }
  298. }
  299. }
  300. return Τ
  301. },
  302. РW: function (F, М) {
  303. for (var Р = F.length - 1; Р >= 0; Р--) {
  304. if (F[Р].Ia == М) {
  305. F.splice(Р, 1);
  306. return М
  307. }
  308. }
  309. return false
  310. },
  311. aC: function (Κ, _, q) {
  312. for (var o = 0, Υ = this.S0.length; o < Υ; o++) {
  313. var Ε = this.S0[o];
  314. if (Ε[Κ] != null) {
  315. var u = Ε.Еc(Κ, _, q, this);
  316. if (u === true) {
  317. u = _
  318. }
  319. if (u && u.length > 0) {
  320. if (Ε[Κ](u, q, this) === false) {
  321. break
  322. }
  323. }
  324. }
  325. }
  326. },
  327. c: function (J) {
  328. J.controller = this;
  329. J.offsetLeft = this.offsetLeft;
  330. J.offsetTop = this.offsetTop;
  331. J.Ϻ();
  332. this.S0.push(J);
  333. J.order = J.order || 0
  334. },
  335. CW: function (Β) {
  336. for (var О = this.S0.length - 1; О >= 0; О--) {
  337. if (this.S0[О] == Β) {
  338. this.S0.splice(О, 1);
  339. Β.controller = null;
  340. return Β
  341. }
  342. }
  343. return null
  344. },
  345. ΚϜ: function () {
  346. for (var Z = this.S0.length - 1; Z >= 0; Z--) {
  347. Т.controller = null
  348. }
  349. this.S0.length = 0
  350. }
  351. };
  352. for (var d in Y) {
  353. T.prototype[d] = Y[d]
  354. }
  355. }(this));
  356. "use strict";
  357. (function (exports, undefined) {
  358. var B = exports.Toucher = exports.Toucher || {};
  359. var Ϲ = B.Ρ = B.Ρ || {};
  360. var g = B.l7 = function (Χ) {
  361. this.Ia = Χ;
  362. this.id = Χ
  363. };
  364. var z = {
  365. constructor: g,
  366. Тq: 1,
  367. start: function (a, m) {
  368. this.type = Ϲ.Gj;
  369. this.update(a, m);
  370. this.Hh = this.JΤ = this.pageX;
  371. this.as = this.vЅ = this.pageY;
  372. this.ІF = this.UМ = this.target;
  373. this.yМ = 0;
  374. this.Rt = 0;
  375. this.Τ9 = 0;
  376. this.Τd = 0;
  377. this.nb = true;
  378. this.startTime = this.А = Date.now()
  379. },
  380. k: function (Β, W) {
  381. this.type = Ϲ.ΖО;
  382. this.update(Β, W);
  383. this.np = Date.now()
  384. },
  385. end: function (Ο, w) {
  386. this.type = Ϲ.Χu;
  387. this.update(Ο, w);
  388. this._5 = this.pageX;
  389. this.Тu = this.pageY;
  390. this.gO = this.target;
  391. this.nb = false;
  392. this.А = Date.now()
  393. },
  394. update: function (М, R) {
  395. this.ΙI = R;
  396. this.zΟ = М;
  397. this.UМ = this.target;
  398. this.JΤ = this.pageX;
  399. this.vЅ = this.pageY;
  400. this.target = М.target;
  401. this.pageX = М.pageX * this.Тq;
  402. this.pageY = М.pageY * this.Тq;
  403. this.yМ = this.pageX - this.JΤ;
  404. this.Rt = this.pageY - this.vЅ;
  405. this.Τ9 = this.pageX - this.Hh;
  406. this.Τd = this.pageY - this.as
  407. }
  408. };
  409. for (var Ρ in z) {
  410. g.prototype[Ρ] = z[Ρ]
  411. }
  412. }(this));
  413. "use strict";
  414. (function (exports, undefined) {
  415. var Z = exports.Toucher = exports.Toucher || {};
  416. var Ϻ = Z.Ρ = Z.Ρ || {};
  417. var f = Z.kR = function (g) {
  418. for (var a in g) {
  419. this[a] = g[a]
  420. }
  421. };
  422. f.extend = function (Β) {
  423. var _ = function (Ј) {
  424. for (var q in Ј) {
  425. this[q] = Ј[q]
  426. }
  427. };
  428. var w = _.prototype;
  429. var Η = this.prototype;
  430. for (var Α in Η) {
  431. w[Α] = Η[Α]
  432. }
  433. for (var Α in Β) {
  434. w[Α] = Β[Α]
  435. }
  436. w.constructor = _;
  437. _.extend = this.extend;
  438. _.Іo = Η;
  439. _.jc = this;
  440. return _
  441. };
  442. var U = {
  443. constructor: f,
  444. id: null,
  445. type: null,
  446. offsetLeft: 0,
  447. offsetTop: 0,
  448. order: 1,
  449. Β: function () {
  450. },
  451. Ϻ: function () {
  452. this.Β();
  453. this.Сs()
  454. },
  455. Сs: function () {
  456. },
  457. Еc: function (F, V, Ο, P) {
  458. var Y = [];
  459. for (var Β = 0, Ϲ = V.length; Β < Ϲ; Β++) {
  460. var _ = V[Β];
  461. if (this.Н(F, _, Ο, P)) {
  462. Y.push(_)
  463. }
  464. }
  465. return Y
  466. },
  467. Н: function (z, T, B, Ρ) {
  468. return false
  469. },
  470. start: null,
  471. k: null,
  472. end: null,
  473. cancel: null
  474. };
  475. for (var r in U) {
  476. f.prototype[r] = U[r]
  477. }
  478. }(this));
  479. "use strict";
  480. Toucher.АE = Toucher.kR.extend({
  481. Еc: function (U, О, H, Q) {
  482. return true
  483. },
  484. start: function (W, Τ, Ε) {
  485. },
  486. k: function (G, Κ, Ρ) {
  487. },
  488. end: function (z, Р, T) {
  489. },
  490. cancel: function (W, Р, y) {
  491. },
  492. РΧ: function (Е, u, G, w, Υ, U, R, a, Β) {
  493. }
  494. });
  495. "use strict";
  496. Toucher.Ι = Toucher.kR.extend({
  497. Ν: 800,
  498. G: 15,
  499. Еc: function (u, I, K, G) {
  500. if (I.length == 1 && this.Н(u, I[0], K, G)) {
  501. return I
  502. }
  503. return false
  504. },
  505. Н: function (V, W, R, Е) {
  506. return true
  507. },
  508. start: function (Y, o, I) {
  509. if (this.АJ != null) {
  510. this.АJ(Y, o, I)
  511. }
  512. },
  513. АJ: null,
  514. k: function (Ϝ, q, z) {
  515. if (this.F0 != null) {
  516. this.F0(Ϝ, q, z)
  517. }
  518. },
  519. F0: null,
  520. end: function (Y, H, Z) {
  521. var Α = Y[0];
  522. var a = Α.pageX;
  523. var Ј = Α.pageY;
  524. if (this.cΝ(Α) && this.R5(Α)) {
  525. this.Κz = true;
  526. this.І(a, Ј, Y, H, Z)
  527. }
  528. if (this.В != null) {
  529. this.В(a, Ј, Y, H, Z)
  530. }
  531. this.Κz = false
  532. },
  533. В: null,
  534. cΝ: function (Ρ) {
  535. var R = Math.abs(Ρ.Τ9);
  536. var Υ = Math.abs(Ρ.Τd);
  537. return R <= this.G && Υ <= this.G
  538. },
  539. R5: function (O) {
  540. return O.А - O.startTime < this.Ν
  541. },
  542. І: function (d, r, І, I, Ј) {
  543. }
  544. });
  545. "use strict";
  546. Toucher.P5 = Toucher.kR.extend({
  547. vО: false,
  548. Еc: function (Ο, P, y, Β) {
  549. return P.length == 1
  550. },
  551. start: function (r, q, Υ) {
  552. },
  553. k: function (d, Τ, Ϻ) {
  554. var B = d[0];
  555. var Y = B.yМ;
  556. var a = B.Rt;
  557. var G = B.pageX;
  558. var Ј = B.pageY;
  559. this.DO(Y, a, G, Ј, B.Hh, B.as, d, Τ, Ϻ)
  560. },
  561. end: function (d, J, Ϝ) {
  562. },
  563. DO: function (U, Q, J, w, Ο, T, O, G, Е) {
  564. }
  565. });
  566. "use strict";
  567. Toucher.Z = Toucher.kR.extend({
  568. Ο7: 60,
  569. Cl: 1000,
  570. Еc: function (G, Z, Ρ, r) {
  571. return Z.length == 1
  572. },
  573. start: function (Ϲ, Q, u) {
  574. },
  575. k: function (h, Е, y) {
  576. },
  577. end: function (f, Κ, d) {
  578. var Р = f[0];
  579. var x = Р.А - Р.startTime;
  580. if (x > this.Cl) {
  581. if (this.В != null) {
  582. this.В(V, Y, f, Κ, d)
  583. }
  584. return
  585. }
  586. var V = Р._5 - Р.Hh;
  587. var Y = Р.Тu - Р.as;
  588. if (V != 0 || Y != 0) {
  589. this.F(V, Y, x, f, Κ, d)
  590. }
  591. },
  592. В: null,
  593. F: function (w, Β, Α, Κ, a, О) {
  594. }
  595. });
  596. if (Date.now === undefined) {
  597. Date.now = function () {
  598. return new Date().valueOf()
  599. }
  600. }
  601. var E = E || function () {
  602. var Υ = [];
  603. return {
  604. ϺA: "14",
  605. ih: function () {
  606. return Υ
  607. },
  608. b8: function () {
  609. Υ = []
  610. },
  611. add: function (Е) {
  612. Υ.push(Е)
  613. },
  614. remove: function (Ϝ) {
  615. var B = Υ.indexOf(Ϝ);
  616. if (B !== -1) {
  617. Υ.splice(B, 1)
  618. }
  619. },
  620. update: function (Τ) {
  621. if (Υ.length === 0)
  622. return false;
  623. var Ϲ = 0;
  624. Τ = Τ !== undefined ? Τ : typeof window !== "undefined" && window.performance !== undefined && window.performance.now !== undefined ? window.performance.now() : Date.now();
  625. while (Ϲ < Υ.length) {
  626. if (Υ[Ϲ].update(Τ)) {
  627. Ϲ++
  628. } else {
  629. Υ.splice(Ϲ, 1)
  630. }
  631. }
  632. return true
  633. }
  634. }
  635. }();
  636. E.AX = function (g) {
  637. var J = g;
  638. var Q = null;
  639. var r = {};
  640. var Β = null;
  641. var V = 1000;
  642. var Η = 0;
  643. var _ = false;
  644. var Ϻ = false;
  645. var O = false;
  646. var o = 0;
  647. var Χ = null;
  648. var m = E.LW._Ѕ.yg;
  649. var h = E.kl._Ѕ;
  650. var P = [];
  651. var W = null;
  652. var U = false;
  653. var w = null;
  654. var А = null;
  655. var Ϝ = null;
  656. this.aH = function (j) {
  657. Q = {};
  658. Β = {};
  659. for (var I in j) {
  660. Q[I] = parseFloat(j[I], 10)
  661. }
  662. return this
  663. };
  664. this.p1 = function (F, Α) {
  665. if (Α !== undefined) {
  666. V = Α
  667. }
  668. r = F;
  669. return this
  670. };
  671. this.start = function (X) {
  672. if (!Q) {
  673. this.aH(J)
  674. } else {
  675. for (var R in Q) {
  676. J[R] = Q[R]
  677. }
  678. }
  679. E.add(this);
  680. Ϻ = true;
  681. U = false;
  682. Χ = X !== undefined ? X : typeof window !== "undefined" && window.performance !== undefined && window.performance.now !== undefined ? window.performance.now() : Date.now();
  683. Χ += o;
  684. for (var R in r) {
  685. if (r[R] instanceof Array) {
  686. if (r[R].length === 0) {
  687. continue
  688. }
  689. r[R] = [J[R]].concat(r[R])
  690. }
  691. Q[R] = J[R];
  692. if (Q[R] instanceof Array === false) {
  693. Q[R] *= 1
  694. }
  695. Β[R] = Q[R] || 0
  696. }
  697. return this
  698. };
  699. this.stop = function () {
  700. if (!Ϻ) {
  701. return this
  702. }
  703. E.remove(this);
  704. Ϻ = false;
  705. if (Ϝ !== null) {
  706. Ϝ.call(J)
  707. }
  708. this.Rj();
  709. return this
  710. };
  711. this.Rj = function () {
  712. for (var f = 0, О = P.length; f < О; f++) {
  713. P[f].stop()
  714. }
  715. };
  716. this.Cf = function (T) {
  717. o = T;
  718. return this
  719. };
  720. this.repeat = function (О) {
  721. Η = О;
  722. return this
  723. };
  724. this.ra = function (R) {
  725. _ = R;
  726. return this
  727. };
  728. this.Ρa = function (Р) {
  729. m = Р;
  730. return this
  731. };
  732. this.Тt = function (Р) {
  733. h = Р;
  734. return this
  735. };
  736. this.ОS = function () {
  737. P = arguments;
  738. return this
  739. };
  740. this.NР = function (x) {
  741. W = x;
  742. return this
  743. };
  744. this.A8 = function (X) {
  745. w = X;
  746. return this
  747. };
  748. this.d1 = function (K) {
  749. А = K;
  750. return this
  751. };
  752. this.oK = function (u) {
  753. Ϝ = u;
  754. return this
  755. };
  756. this.update = function (q) {
  757. var z;
  758. if (q < Χ) {
  759. return true
  760. }
  761. if (U === false) {
  762. if (W !== null) {
  763. W.call(J)
  764. }
  765. U = true
  766. }
  767. var Ϲ = (q - Χ) / V;
  768. Ϲ = Ϲ > 1 ? 1 : Ϲ;
  769. var R = m(Ϲ);
  770. for (z in r) {
  771. var F = Q[z] || 0;
  772. var І = r[z];
  773. if (І instanceof Array) {
  774. J[z] = h(І, R)
  775. } else {
  776. if (typeof І === "string") {
  777. І = F + parseFloat(І, 10)
  778. }
  779. if (typeof І === "number") {
  780. J[z] = F + (І - F) * R
  781. }
  782. }
  783. }
  784. if (w !== null) {
  785. w.call(J, R)
  786. }
  787. if (Ϲ == 1) {
  788. if (Η > 0) {
  789. if (isFinite(Η)) {
  790. Η--
  791. }
  792. for (z in Β) {
  793. if (typeof r[z] === "string") {
  794. Β[z] = Β[z] + parseFloat(r[z], 10)
  795. }
  796. if (_) {
  797. var j = Β[z];
  798. Β[z] = r[z];
  799. r[z] = j
  800. }
  801. Q[z] = Β[z]
  802. }
  803. if (_) {
  804. O = !O
  805. }
  806. Χ = q + o;
  807. return true
  808. } else {
  809. if (А !== null) {
  810. А.call(J)
  811. }
  812. for (var Ε = 0, x = P.length; Ε < x; Ε++) {
  813. P[Ε].start(q)
  814. }
  815. return false
  816. }
  817. }
  818. return true
  819. }
  820. };
  821. E.LW = {
  822. _Ѕ: {
  823. yg: function (Ϲ) {
  824. return Ϲ
  825. }
  826. },
  827. qТ: {
  828. nD: function (j) {
  829. return j * j
  830. },
  831. Mu: function (А) {
  832. return А * (2 - А)
  833. },
  834. f1: function (R) {
  835. if ((R *= 2) < 1)
  836. return 0.5 * R * R;
  837. return -0.5 * (--R * (R - 2) - 1)
  838. }
  839. },
  840. ϹD: {
  841. nD: function (Ј) {
  842. return Ј * Ј * Ј
  843. },
  844. Mu: function (z) {
  845. return --z * z * z + 1
  846. },
  847. f1: function (Ϲ) {
  848. if ((Ϲ *= 2) < 1)
  849. return 0.5 * Ϲ * Ϲ * Ϲ;
  850. return 0.5 * ((Ϲ -= 2) * Ϲ * Ϲ + 2)
  851. }
  852. },
  853. qE: {
  854. nD: function (d) {
  855. return d * d * d * d
  856. },
  857. Mu: function (a) {
  858. return 1 - --a * a * a * a
  859. },
  860. f1: function (Ϝ) {
  861. if ((Ϝ *= 2) < 1)
  862. return 0.5 * Ϝ * Ϝ * Ϝ * Ϝ;
  863. return -0.5 * ((Ϝ -= 2) * Ϝ * Ϝ * Ϝ - 2)
  864. }
  865. },
  866. EQ: {
  867. nD: function (Χ) {
  868. return Χ * Χ * Χ * Χ * Χ
  869. },
  870. Mu: function (V) {
  871. return --V * V * V * V * V + 1
  872. },
  873. f1: function (f) {
  874. if ((f *= 2) < 1)
  875. return 0.5 * f * f * f * f * f;
  876. return 0.5 * ((f -= 2) * f * f * f * f + 2)
  877. }
  878. },
  879. РϺ: {
  880. nD: function (B) {
  881. return 1 - Math.cos(B * Math.PI / 2)
  882. },
  883. Mu: function (G) {
  884. return Math.sin(G * Math.PI / 2)
  885. },
  886. f1: function (m) {
  887. return 0.5 * (1 - Math.cos(Math.PI * m))
  888. }
  889. },
  890. _B: {
  891. nD: function (Κ) {
  892. return Κ === 0 ? 0 : Math.pow(1024, Κ - 1)
  893. },
  894. Mu: function (a) {
  895. return a === 1 ? 1 : 1 - Math.pow(2, -10 * a)
  896. },
  897. f1: function (y) {
  898. if (y === 0)
  899. return 0;
  900. if (y === 1)
  901. return 1;
  902. if ((y *= 2) < 1)
  903. return 0.5 * Math.pow(1024, y - 1);
  904. return 0.5 * (-Math.pow(2, -10 * (y - 1)) + 2)
  905. }
  906. },
  907. Ζs: {
  908. nD: function (F) {
  909. return 1 - Math.sqrt(1 - F * F)
  910. },
  911. Mu: function (a) {
  912. return Math.sqrt(1 - --a * a)
  913. },
  914. f1: function (_) {
  915. if ((_ *= 2) < 1)
  916. return -0.5 * (Math.sqrt(1 - _ * _) - 1);
  917. return 0.5 * (Math.sqrt(1 - (_ -= 2) * _) + 1)
  918. }
  919. },
  920. vМ: {
  921. nD: function (Ε) {
  922. var G, Y = 0.1, І = 0.4;
  923. if (Ε === 0)
  924. return 0;
  925. if (Ε === 1)
  926. return 1;
  927. if (!Y || Y < 1) {
  928. Y = 1;
  929. G = І / 4
  930. } else
  931. G = І * Math.asin(1 / Y) / (2 * Math.PI);
  932. return -(Y * Math.pow(2, 10 * (Ε -= 1)) * Math.sin((Ε - G) * (2 * Math.PI) / І))
  933. },
  934. Mu: function (Η) {
  935. var О, z = 0.1, Υ = 0.4;
  936. if (Η === 0)
  937. return 0;
  938. if (Η === 1)
  939. return 1;
  940. if (!z || z < 1) {
  941. z = 1;
  942. О = Υ / 4
  943. } else
  944. О = Υ * Math.asin(1 / z) / (2 * Math.PI);
  945. return z * Math.pow(2, -10 * Η) * Math.sin((Η - О) * (2 * Math.PI) / Υ) + 1
  946. },
  947. f1: function (G) {
  948. var f, Р = 0.1, z = 0.4;
  949. if (G === 0)
  950. return 0;
  951. if (G === 1)
  952. return 1;
  953. if (!Р || Р < 1) {
  954. Р = 1;
  955. f = z / 4
  956. } else
  957. f = z * Math.asin(1 / Р) / (2 * Math.PI);
  958. if ((G *= 2) < 1)
  959. return -0.5 * (Р * Math.pow(2, 10 * (G -= 1)) * Math.sin((G - f) * (2 * Math.PI) / z));
  960. return Р * Math.pow(2, -10 * (G -= 1)) * Math.sin((G - f) * (2 * Math.PI) / z) * 0.5 + 1
  961. }
  962. },
  963. rT: {
  964. nD: function (P) {
  965. var w = 1.70158;
  966. return P * P * ((w + 1) * P - w)
  967. },
  968. Mu: function (P) {
  969. var Ϝ = 1.70158;
  970. return --P * P * ((Ϝ + 1) * P + Ϝ) + 1
  971. },
  972. f1: function (w) {
  973. var V = 1.70158 * 1.525;
  974. if ((w *= 2) < 1)
  975. return 0.5 * (w * w * ((V + 1) * w - V));
  976. return 0.5 * ((w -= 2) * w * ((V + 1) * w + V) + 2)
  977. }
  978. },
  979. FF: {
  980. nD: function (x) {
  981. return 1 - E.LW.FF.Mu(1 - x)
  982. },
  983. Mu: function (P) {
  984. if (P < 1 / 2.75) {
  985. return 7.5625 * P * P
  986. } else if (P < 2 / 2.75) {
  987. return 7.5625 * (P -= 1.5 / 2.75) * P + 0.75
  988. } else if (P < 2.5 / 2.75) {
  989. return 7.5625 * (P -= 2.25 / 2.75) * P + 0.9375
  990. } else {
  991. return 7.5625 * (P -= 2.625 / 2.75) * P + 0.984375
  992. }
  993. },
  994. f1: function (I) {
  995. if (I < 0.5)
  996. return E.LW.FF.nD(I * 2) * 0.5;
  997. return E.LW.FF.Mu(I * 2 - 1) * 0.5 + 0.5
  998. }
  999. }
  1000. };
  1001. E.kl = {
  1002. _Ѕ: function (І, w) {
  1003. var Q = І.length - 1, Ρ = Q * w, X = Math.floor(Ρ), g = E.kl.ΚΝ._Ѕ;
  1004. if (w < 0)
  1005. return g(І[0], І[1], Ρ);
  1006. if (w > 1)
  1007. return g(І[Q], І[Q - 1], Q - Ρ);
  1008. return g(І[X], І[X + 1 > Q ? Q : X + 1], Ρ - X)
  1009. },
  1010. _M: function (R, O) {
  1011. var Z = 0, U = R.length - 1, m = Math.pow, T = E.kl.ΚΝ.Α2, Е;
  1012. for (Е = 0; Е <= U; Е++) {
  1013. Z += m(1 - O, U - Е) * m(O, Е) * R[Е] * T(U, Е)
  1014. }
  1015. return Z
  1016. },
  1017. sa: function (М, H) {
  1018. var o = М.length - 1, Κ = o * H, z = Math.floor(Κ), X = E.kl.ΚΝ.sa;
  1019. if (М[0] === М[o]) {
  1020. if (H < 0)
  1021. z = Math.floor(Κ = o * (1 + H));
  1022. return X(М[(z - 1 + o) % o], М[z], М[(z + 1) % o], М[(z + 2) % o], Κ - z)
  1023. } else {
  1024. if (H < 0)
  1025. return М[0] - (X(М[0], М[0], М[1], М[1], -Κ) - М[0]);
  1026. if (H > 1)
  1027. return М[o] - (X(М[o], М[o], М[o - 1], М[o - 1], Κ - o) - М[o]);
  1028. return X(М[z ? z - 1 : 0], М[z], М[o < z + 1 ? o : z + 1], М[o < z + 2 ? o : z + 2], Κ - z)
  1029. }
  1030. },
  1031. ΚΝ: {
  1032. _Ѕ: function (B, j, Ј) {
  1033. return (j - B) * Ј + B
  1034. },
  1035. Α2: function (Р, О) {
  1036. var А = E.kl.ΚΝ.z1;
  1037. return А(Р) / А(О) / А(Р - О)
  1038. },
  1039. z1: function () {
  1040. var Р = [1];
  1041. return function (u) {
  1042. var H = 1, Τ;
  1043. if (Р[u])
  1044. return Р[u];
  1045. for (Τ = u; Τ > 1; Τ--)
  1046. H *= Τ;
  1047. return Р[u] = H
  1048. }
  1049. }(),
  1050. sa: function (Q, o, Τ, Ϻ, T) {
  1051. var j = (Τ - Q) * 0.5, О = (Ϻ - o) * 0.5, Y = T * T, Κ = T * Y;
  1052. return (2 * o - 2 * Τ + j + О) * Κ + (-3 * o + 3 * Τ - 2 * j - О) * Y + j * T + o
  1053. }
  1054. }
  1055. };
  1056. "use strict";
  1057. (function (exports, undefined) {
  1058. var J = exports.Best = exports.Best || {};
  1059. var М = J.НP = function (f) {
  1060. for (var Y in f) {
  1061. this[Y] = f[Y]
  1062. }
  1063. };
  1064. М.prototype = {
  1065. constructor: М,
  1066. id: null,
  1067. width: 600,
  1068. height: 400,
  1069. I: 60,
  1070. Ρy: "",
  1071. u6: null,
  1072. Ϻ: function () {
  1073. var G = this;
  1074. this.ΤE = function () {
  1075. G.Н3()
  1076. };
  1077. this.ЈG = {
  1078. now: 0,
  1079. ЅB: 0,
  1080. step: Math.round(1000 / this.I)
  1081. };
  1082. this.H5();
  1083. if (this.Сs) {
  1084. this.Сs.apply(this, arguments)
  1085. }
  1086. },
  1087. H5: function () {
  1088. },
  1089. start: function () {
  1090. this.ЈG.now = Date.now();
  1091. this.ЈG.ЅB = Date.now();
  1092. this.paused = false;
  1093. this.Υz = true;
  1094. if (this.NР) {
  1095. this.NР()
  1096. }
  1097. this.Н3()
  1098. },
  1099. stop: function () {
  1100. this.Υz = false;
  1101. if (this.oK) {
  1102. this.oK()
  1103. }
  1104. },
  1105. pause: function () {
  1106. this.paused = true;
  1107. if (this.wB) {
  1108. this.wB()
  1109. }
  1110. },
  1111. PІ: function () {
  1112. this.paused = false;
  1113. if (this.xA) {
  1114. this.xA()
  1115. }
  1116. },
  1117. Н3: function () {
  1118. var Ϻ = this.ЈG.now = Date.now();
  1119. var Η = Ϻ - this.ЈG.ЅB;
  1120. this.ЈG.ЅB = Ϻ;
  1121. this.Ng = setTimeout(this.ΤE, this.ЈG.step);
  1122. this.ar(Η, Ϻ);
  1123. if (!this.paused && Η > 1) {
  1124. this.update(Η, Ϻ);
  1125. this.PΝ(Η, Ϻ)
  1126. }
  1127. if (!this.Υz) {
  1128. clearTimeout(this.Ng)
  1129. }
  1130. },
  1131. fs: function (d) {
  1132. this.ZР = d;
  1133. d.cF()
  1134. },
  1135. update: function (А, m) {
  1136. if (this.ZР) {
  1137. this.ZР.update(А, m)
  1138. }
  1139. },
  1140. PΝ: function (o, W) {
  1141. if (this.ZР) {
  1142. this.ZР.PΝ(this.u6, o, W)
  1143. }
  1144. },
  1145. ar: function (Ϝ, Ϻ) {
  1146. if (this.ZР) {
  1147. this.ZР.ar(Ϝ, Ϻ)
  1148. }
  1149. },
  1150. Сs: null,
  1151. NР: null,
  1152. wB: null,
  1153. xA: null,
  1154. oK: null
  1155. };
  1156. var r = J.hg = function (H) {
  1157. for (var w in H) {
  1158. this[w] = H[w]
  1159. }
  1160. };
  1161. r.prototype = {
  1162. constructor: r,
  1163. id: null,
  1164. Ϻ: function (u) {
  1165. },
  1166. cF: function () {
  1167. },
  1168. AΥ: function (Ϝ) {
  1169. },
  1170. update: function (g, Ј) {
  1171. },
  1172. PΝ: function (G, o, _) {
  1173. },
  1174. ar: function (d, m) {
  1175. }
  1176. };
  1177. J.extend = function (Ϻ, Ρ) {
  1178. var Е = function (Α) {
  1179. for (var B in Α) {
  1180. this[B] = Α[B]
  1181. }
  1182. };
  1183. var d = Е.prototype, V;
  1184. if (Ρ) {
  1185. V = Ρ.prototype;
  1186. for (var x in V) {
  1187. d[x] = V[x]
  1188. }
  1189. }
  1190. for (var x in Ϻ) {
  1191. d[x] = Ϻ[x]
  1192. }
  1193. d.constructor = Е;
  1194. Е.Іo = V;
  1195. Е.jc = Ρ || null;
  1196. Е.extend = this.extend;
  1197. return Е
  1198. };
  1199. function Τ(Ϻ) {
  1200. return J.extend(Ϻ, this)
  1201. }
  1202. М.extend = Τ;
  1203. r.extend = Τ
  1204. }(this));
  1205. "use strict";
  1206. (function (exports, undefined) {
  1207. exports.ResourcePool = {
  1208. Т2: {},
  1209. LY: 0,
  1210. Aa: null,
  1211. sϺ: function (Q, B) {
  1212. var F = ResourcePool.get(Q);
  1213. if (!F.dO) {
  1214. return F
  1215. }
  1216. var М = F;
  1217. М.AΡ = function () {
  1218. F.dO = false;
  1219. var q = М.fА();
  1220. ResourcePool.Т2[Q] = q;
  1221. if (B) {
  1222. B(q)
  1223. }
  1224. };
  1225. М.start();
  1226. return ResourcePool.get("blank")
  1227. },
  1228. get: function (q, X) {
  1229. var j = this.Т2[q] || null;
  1230. if (X && j != null) {
  1231. j = j.cloneNode(true)
  1232. }
  1233. return j
  1234. },
  1235. add: function (Ϝ, K) {
  1236. this.Т2[Ϝ] = K;
  1237. this.LY++
  1238. },
  1239. remove: function (r) {
  1240. var X = this.Т2[r];
  1241. delete this.Т2[r];
  1242. if (exports.Μm(X)) {
  1243. exports.CΧ(X)
  1244. }
  1245. this.LY--
  1246. },
  1247. clear: function () {
  1248. for (var X in this.Т2) {
  1249. this.remove(X)
  1250. }
  1251. this.Т2 = {};
  1252. this.LY = 0
  1253. },
  1254. size: function () {
  1255. return this.LY
  1256. }
  1257. }
  1258. }(this));
  1259. var Ι = {
  1260. c4: {},
  1261. ІϺ: function (О, K) {
  1262. var f = Ι.add(О, new Audio());
  1263. f.src = K;
  1264. f.loop = false;
  1265. f.preload = false;
  1266. f.Вl = false;
  1267. f.autoplay = false;
  1268. f.addEventListener("canplaythrough", function () {
  1269. f.CІ = true
  1270. });
  1271. return f
  1272. },
  1273. add: function (О, T) {
  1274. this.c4[О] = T;
  1275. return T
  1276. },
  1277. get: function (Κ) {
  1278. return this.c4[Κ]
  1279. },
  1280. remove: function (Ј) {
  1281. delete this.c4[Ј]
  1282. },
  1283. play: function (X) {
  1284. var Υ;
  1285. if ((Υ = this.c4[X]) && Υ.CІ) {
  1286. Υ.pause();
  1287. Υ.currentTime = 0;
  1288. Υ.play()
  1289. }
  1290. },
  1291. PІ: function (w) {
  1292. var Β;
  1293. if ((Β = this.c4[w]) && Β.CІ) {
  1294. Β.play()
  1295. }
  1296. },
  1297. pause: function (Β) {
  1298. var o;
  1299. if (o = this.c4[Β]) {
  1300. o.pause()
  1301. }
  1302. },
  1303. stop: function (K) {
  1304. var r;
  1305. if (r = this.c4[K]) {
  1306. r.pause();
  1307. r.currentTime = 0
  1308. }
  1309. }
  1310. };
  1311. (function (exports, undefined) {
  1312. "use strict";
  1313. var ProcessQ = exports.ProcessQ = function (М) {
  1314. for (var U in М) {
  1315. this[U] = М[U]
  1316. }
  1317. var Р = this;
  1318. this.pm = function () {
  1319. Р.Н3()
  1320. };
  1321. this.ЈG = {}
  1322. };
  1323. ProcessQ.F1 = {};
  1324. ProcessQ.prototype = {
  1325. constructor: ProcessQ,
  1326. iO: 20,
  1327. pi: true,
  1328. Cf: 0,
  1329. jР: "fn",
  1330. EВ: false,
  1331. ΜА: false,
  1332. ST: null,
  1333. J$: function () {
  1334. return true
  1335. },
  1336. Ϻ: function () {
  1337. this.Zd = {};
  1338. var Ο = this.ΚϹ || [];
  1339. this.ΚϹ = [];
  1340. this.B4 = 0;
  1341. this.yM = 0;
  1342. for (var Β = 0, j = Ο.length; Β < j; Β++) {
  1343. var O = Ο[Β];
  1344. this.ІϜ(O)
  1345. }
  1346. if (this.Сs != null) {
  1347. this.Сs()
  1348. }
  1349. },
  1350. Сs: null,
  1351. XH: function () {
  1352. var I = this.ЈG;
  1353. I.LL = Date.now();
  1354. I.start = I.ЅB = I.LL;
  1355. I.NА = 0;
  1356. I.duration = 0
  1357. },
  1358. hM: function () {
  1359. var Β = this.ЈG;
  1360. Β.ЅB = Β.LL;
  1361. Β.LL = Date.now();
  1362. Β.NА = Β.LL - Β.ЅB;
  1363. Β.duration += Β.NА
  1364. },
  1365. ІϜ: function (o) {
  1366. var Β = o;
  1367. o = {};
  1368. for (var x in Β) {
  1369. o[x] = Β[x]
  1370. }
  1371. o.options = Β;
  1372. o.src = o.src || o._;
  1373. console.dir(o.src);
  1374. o.id = o.id || o.src || "id_" + (this.ΚϹ.length + 1);
  1375. var G = o.type || this.jР;
  1376. if (G) {
  1377. o = new ProcessQ.F1[G](o)
  1378. }
  1379. if (this.ST) {
  1380. if (this.ST[this.ST.length - 1] != "\/") {
  1381. this.ST += "\/"
  1382. }
  1383. } else {
  1384. this.ST = ""
  1385. }
  1386. if (o.src) {
  1387. if (o.src[0] == "\/") {
  1388. o.src = o.src.substring(1)
  1389. }
  1390. o.src = this.ST + o.src;
  1391. console.dir(this.ST + o.src);
  1392. }
  1393. o.Cf = isNaN(o.Cf) ? this.Cf : Number(o.Cf);
  1394. o.QΥ = isNaN(o.QΥ) || o.QΥ === 0 ? 1 : Number(o.QΥ);
  1395. o.Τ6 = o.Τ6 || this.J$;
  1396. this.yM += o.QΥ;
  1397. this.ΚϹ.push(o);
  1398. this.B4++
  1399. },
  1400. start: function () {
  1401. this.paused = false;
  1402. this.Ε$ = 0;
  1403. this.Qx = 0;
  1404. this.ΡΑ = 0;
  1405. var Р = this;
  1406. setTimeout(function () {
  1407. Р.XH();
  1408. Р.ΤJ(0);
  1409. if (Р.EВ) {
  1410. Р.NЕ()
  1411. } else {
  1412. Р.Н3()
  1413. }
  1414. }, 20)
  1415. },
  1416. NЕ: function () {
  1417. var Е = this;
  1418. this.ΚϹ.forEach(function (F) {
  1419. F.start(Е)
  1420. });
  1421. var Z = this.Cf || 10;
  1422. var B = this.ΚϹ.length;
  1423. var a = {};
  1424. var m = null;
  1425. function q() {
  1426. if (Е.ΡΑ >= B) {
  1427. Е.kk()
  1428. } else {
  1429. Е.ΚϹ.forEach(function (А, K) {
  1430. if (!a[K] && А.Τ6(Е)) {
  1431. a[K] = true;
  1432. Е.ΑR(А, Е)
  1433. } else if (А.ΑϺ && А.ΑϺ(Е)) {
  1434. Е.jϺ(А, Е);
  1435. if (Е.pi) {
  1436. a[K] = true;
  1437. Е.ΡΑ += 1;
  1438. Е.Qx += А.QΥ
  1439. }
  1440. }
  1441. });
  1442. var z = Е.Qx;
  1443. if (z !== m) {
  1444. Е.Ϝs(Z, Е);
  1445. m = z
  1446. }
  1447. setTimeout(q, Z)
  1448. }
  1449. }
  1450. q()
  1451. },
  1452. Н3: function () {
  1453. this.zG = setTimeout(this.pm, this.iO);
  1454. this.hM();
  1455. var j = this.ЈG.NА;
  1456. if (this.paused && this.ϹM != null) {
  1457. this.ϹM(j);
  1458. return
  1459. }
  1460. if (!this.oВ) {
  1461. this.kk();
  1462. return
  1463. }
  1464. this.update(j)
  1465. },
  1466. kk: function () {
  1467. clearTimeout(this.zG);
  1468. if (this.wt != null) {
  1469. this.wt(this)
  1470. }
  1471. },
  1472. wt: null,
  1473. Ν3: function (Ϻ) {
  1474. this.ΤJ(++this.Ε$);
  1475. this.A3(Ϻ, this)
  1476. },
  1477. getItem: function (r) {
  1478. return this.ΚϹ[r]
  1479. },
  1480. ΤJ: function (Ϲ) {
  1481. this.Ε$ = Ϲ;
  1482. this.oВ = this.getItem(Ϲ);
  1483. if (this.oВ) {
  1484. this.oВ.ϜK = this.oВ.Cf;
  1485. if (this.oВ.ϜK == 0) {
  1486. this.oВ.start(this);
  1487. this.oВ.І7 = true
  1488. }
  1489. }
  1490. },
  1491. update: function (Χ) {
  1492. if (Χ < 1) {
  1493. return
  1494. }
  1495. if (this.oВ.ϜK >= this.iO) {
  1496. this.oВ.ϜK -= Χ
  1497. } else if (!this.oВ.І7) {
  1498. this.oВ.start(this);
  1499. this.oВ.І7 = true
  1500. }
  1501. if (this.oВ.І7) {
  1502. if (this.oВ.Τ6(this)) {
  1503. this.ΑR(this.oВ, this);
  1504. this.Ν3(Χ)
  1505. } else if (this.oВ.ΑϺ && this.oВ.ΑϺ(this)) {
  1506. this.jϺ(this.oВ, this);
  1507. if (this.pi) {
  1508. this.ΡΑ += 1;
  1509. this.Qx += this.oВ.QΥ;
  1510. this.Ν3(Χ)
  1511. }
  1512. }
  1513. }
  1514. if (this.oВ) {
  1515. if (this.oВ.Ϝs) {
  1516. this.oВ.Ϝs(Χ, this)
  1517. }
  1518. }
  1519. this.Ϝs(Χ, this)
  1520. },
  1521. N8: function (y, Ε) {
  1522. },
  1523. ΑR: function (О, w) {
  1524. if (О.wt) {
  1525. О.wt(w)
  1526. }
  1527. if (О.fА) {
  1528. var I = О.fА();
  1529. this.Zd[О.id] = I
  1530. }
  1531. this.ΡΑ += 1;
  1532. this.Qx += О.QΥ;
  1533. this.N8(О, w)
  1534. },
  1535. jϺ: function (Η, X) {
  1536. if (Η.R2) {
  1537. Η.R2(Η.ΥM, X)
  1538. }
  1539. Η.ΥM = null
  1540. },
  1541. Ϝs: function (М, Y) {
  1542. },
  1543. A3: function (y, Χ) {
  1544. }
  1545. };
  1546. var u = exports.ЕJ = function (X) {
  1547. for (var G in X) {
  1548. this[G] = X[G]
  1549. }
  1550. };
  1551. ProcessQ.F1["fn"] = u;
  1552. u.prototype = {
  1553. constructor: u,
  1554. id: null,
  1555. async: false,
  1556. ΥM: null,
  1557. start: function (Ε) {
  1558. this.BE = this.async;
  1559. this.y8 = this.cu(this)
  1560. },
  1561. fА: function () {
  1562. return this.y8
  1563. },
  1564. wt: function (V) {
  1565. },
  1566. Τ6: function (h) {
  1567. return this.BE
  1568. },
  1569. ΑϺ: function (y) {
  1570. return this.ΥM
  1571. }
  1572. };
  1573. var Υ = exports.S1 = function (Χ) {
  1574. for (var Ј in Χ) {
  1575. this[Ј] = Χ[Ј]
  1576. }
  1577. };
  1578. ProcessQ.F1["img"] = Υ;
  1579. Υ.prototype = {
  1580. constructor: Υ,
  1581. id: null,
  1582. src: null,
  1583. BE: false,
  1584. async: false,
  1585. dO: false,
  1586. ΥM: null,
  1587. start: function (I) {
  1588. if (this.dO) {
  1589. this.BE = true;
  1590. return
  1591. }
  1592. var І = this.img = new Image();
  1593. this.BE = this.async;
  1594. І.ОΝ = this;
  1595. І.addEventListener("load", this.Υv);
  1596. І.addEventListener("error", this.I$);
  1597. І.src = this.src;
  1598. console.dir(I.src);
  1599. this.Ϻ7 = true
  1600. },
  1601. Υv: function (Η) {
  1602. this.removeEventListener("load", this.ОΝ.Υv);
  1603. this.CІ = true;
  1604. this.ОΝ.BE = true;
  1605. this.ОΝ.Ϻ7 = false;
  1606. this.ОΝ.AΡ(this, Η);
  1607. delete this.ОΝ
  1608. },
  1609. AΡ: function (G, Y) {
  1610. },
  1611. I$: function (d) {
  1612. this.removeEventListener("error", this.ОΝ.I$);
  1613. this.CІ = false;
  1614. this.ОΝ.BE = false;
  1615. this.ОΝ.ΥM = d;
  1616. this.ОΝ.R2(this, d);
  1617. delete this.ОΝ
  1618. },
  1619. R2: function (q, j) {
  1620. },
  1621. fА: function () {
  1622. if (this.dO) {
  1623. return this
  1624. }
  1625. return this.img
  1626. },
  1627. wt: function (g) {
  1628. },
  1629. Τ6: function (Χ) {
  1630. return this.BE
  1631. },
  1632. ΑϺ: function (О) {
  1633. return this.ΥM
  1634. }
  1635. };
  1636. var _ = exports.hy = function (r) {
  1637. for (var Ϝ in r) {
  1638. this[Ϝ] = r[Ϝ]
  1639. }
  1640. };
  1641. _.fΧ = {
  1642. "mp3": "audio\/mpeg",
  1643. "ogg": "audio\/ogg; codecs=vorbis"
  1644. };
  1645. ProcessQ.F1["audio"] = _;
  1646. (function () {
  1647. var Α = new Audio();
  1648. for (var Κ in _.fΧ) {
  1649. if (Α.canPlayType(_.fΧ[Κ])) {
  1650. _.Xk = Κ;
  1651. break
  1652. }
  1653. }
  1654. }());
  1655. _.prototype = {
  1656. constructor: _,
  1657. id: null,
  1658. src: null,
  1659. BE: false,
  1660. async: false,
  1661. dO: false,
  1662. ΥM: null,
  1663. wrap: null,
  1664. wD: true,
  1665. ϺN: function () {
  1666. if (typeof window != "undefined" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.toLowerCase) {
  1667. var O = window.navigator.userAgent.toLowerCase();
  1668. var w = /iphone/.test(O);
  1669. var Q = /ipad/.test(O);
  1670. var h = /ipod/.test(O);
  1671. var z = w || Q || h;
  1672. var О = window.location;
  1673. var a = О && О.replace && О.reload;
  1674. return z && a
  1675. }
  1676. return false
  1677. },
  1678. start: function (a) {
  1679. if (this.dO) {
  1680. this.BE = true;
  1681. return
  1682. }
  1683. this.wrap = this.wrap === null ? a.ΜА : this.wrap;
  1684. this.BE = this.async;
  1685. var w = this.ΟW = new Audio();
  1686. if (this.src.indexOf(_.Xk) == -1) {
  1687. w.src = this.src + "." + _.Xk
  1688. } else {
  1689. w.src = this.src
  1690. }
  1691. w.loop = this.loop || false;
  1692. if (this.volume) {
  1693. w.volume = this.volume
  1694. }
  1695. w.preload = true;
  1696. w.Вl = true;
  1697. w.autoplay = false;
  1698. if (this.wD && this.ϺN()) {
  1699. this.BE = true;
  1700. this.wrap = false;
  1701. this.ΟW = null;
  1702. return
  1703. }
  1704. w.ОΝ = this;
  1705. w.addEventListener("canplaythrough", this.Υv);
  1706. w.addEventListener("error", this.I$);
  1707. w.load();
  1708. this.Ϻ7 = true
  1709. },
  1710. Υv: function (Е) {
  1711. this.removeEventListener("canplaythrough", this.ОΝ.Υv);
  1712. this.CІ = true;
  1713. this.ОΝ.BE = true;
  1714. this.ОΝ.Ϻ7 = false;
  1715. this.ОΝ.AΡ(this, Е);
  1716. delete this.ОΝ
  1717. },
  1718. AΡ: function (K, М) {
  1719. },
  1720. I$: function (d) {
  1721. this.removeEventListener("error", this.ОΝ.I$);
  1722. this.CІ = false;
  1723. this.ОΝ.BE = false;
  1724. this.ОΝ.ΥM = d;
  1725. this.ОΝ.R2(this, d);
  1726. delete this.ОΝ
  1727. },
  1728. R2: function (А, I) {
  1729. },
  1730. fА: function () {
  1731. if (this.dO) {
  1732. return this
  1733. }
  1734. if (typeof Sound != "undefined" && this.wrap && !(this.ΟW instanceof Sound)) {
  1735. var f = this.options || {};
  1736. f.ΟW = this.ΟW;
  1737. this.ΟW = new Sound(f)
  1738. }
  1739. return this.ΟW
  1740. },
  1741. Τ6: function (Q) {
  1742. return this.BE
  1743. },
  1744. ΑϺ: function (K) {
  1745. return this.ΥM
  1746. }
  1747. }
  1748. }(this));
  1749. (function (exports, undefined) {
  1750. "use strict";
  1751. var Sound = exports.Sound = function (І) {
  1752. for (var Ο in І) {
  1753. this[Ο] = І[Ο]
  1754. }
  1755. this.Ϻ()
  1756. };
  1757. function x() {
  1758. }
  1759. Sound.prototype = {
  1760. ΟW: null,
  1761. loop: false,
  1762. muted: false,
  1763. volume: 1,
  1764. size: 1,
  1765. ta: true,
  1766. Ϻ: function () {
  1767. if (this.ΟW) {
  1768. Sound.set(this.id, this);
  1769. this.ΟW.loop = this.loop;
  1770. this.ΟW.volume = this.volume;
  1771. Sound.me(this.ΟW, !!this.muted);
  1772. if (this.size > 1) {
  1773. this.KX = [];
  1774. this.KX.push(this.ΟW);
  1775. if (!this.ta) {
  1776. for (var K = 1; K < this.size; K++) {
  1777. this.R_()
  1778. }
  1779. }
  1780. this.index = 0;
  1781. this.play = this.qС
  1782. } else {
  1783. this.play = this.QΙ
  1784. }
  1785. } else {
  1786. for (var I in this) {
  1787. if (typeof this[I] == "function") {
  1788. this[I] = x
  1789. }
  1790. }
  1791. this.play = x
  1792. }
  1793. },
  1794. R_: function () {
  1795. var w = this.ΟW.cloneNode();
  1796. w.loop = this.loop;
  1797. w.volume = this.volume;
  1798. Sound.me(w, !!this.muted);
  1799. this.KX.push(w);
  1800. return w
  1801. },
  1802. play: null,
  1803. QΙ: function () {
  1804. this.stop();
  1805. this.ΟW.play()
  1806. },
  1807. qС: function () {
  1808. if (this.KX.length <= this.index) {
  1809. this.R_()
  1810. }
  1811. var Ј = this.ΟW = this.KX[this.index];
  1812. if (Ј.currentTime) {
  1813. Ј.currentTime = 0
  1814. } else if (Ј.zf) {
  1815. Ј.zf(0)
  1816. }
  1817. Ј.play();
  1818. this.index = ++this.index % this.size
  1819. },
  1820. ro: function () {
  1821. return this.ΟW.currentTime
  1822. },
  1823. u2: function (J) {
  1824. if (this.ΟW.zf) {
  1825. this.ΟW.zf(J)
  1826. } else {
  1827. this.ΟW.currentTime = J
  1828. }
  1829. },
  1830. sΧ: function (q) {
  1831. this.volume = q;
  1832. if (this.KX) {
  1833. this.KX.forEach(function (Z) {
  1834. Z.volume = q
  1835. })
  1836. } else {
  1837. this.ΟW.volume = q
  1838. }
  1839. },
  1840. TE: function (y) {
  1841. return this.volume
  1842. },
  1843. ΧТ: function (u) {
  1844. u = this.muted = !!u;
  1845. if (this.KX) {
  1846. this.KX.forEach(function (Y) {
  1847. Sound.me(Y, u)
  1848. })
  1849. } else {
  1850. Sound.me(this.ΟW, u)
  1851. }
  1852. },
  1853. NT: function () {
  1854. return this.muted
  1855. },
  1856. pause: function () {
  1857. this.ΟW.pause()
  1858. },
  1859. PІ: function () {
  1860. this.ΟW.play()
  1861. },
  1862. stop: function () {
  1863. if (this.ΟW.stop) {
  1864. this.ΟW.stop()
  1865. } else {
  1866. this.ΟW.pause();
  1867. this.ΟW.currentTime = 0
  1868. }
  1869. }
  1870. };
  1871. Sound.me = function (R, w) {
  1872. R.muted = w
  1873. };
  1874. var А = {};
  1875. Sound.get = function (Ρ) {
  1876. return А[Ρ]
  1877. };
  1878. Sound.set = function (Ο, q) {
  1879. А[Ο] = q;
  1880. return q
  1881. };
  1882. Sound.clear = function () {
  1883. А = {}
  1884. };
  1885. Sound.remove = function (q) {
  1886. var W = А[q];
  1887. delete А[q];
  1888. return W
  1889. };
  1890. Sound.size = function () {
  1891. var q = Object.keys(А);
  1892. return q.length
  1893. };
  1894. var o = [
  1895. "play",
  1896. "stop",
  1897. "pause",
  1898. "resume",
  1899. "setMute",
  1900. "getMute",
  1901. "setVolume",
  1902. "getVolume"
  1903. ];
  1904. o.forEach(function (y) {
  1905. Sound[y] = function (m, q) {
  1906. var О = Sound.get(m);
  1907. if (О && О.ΟW) {
  1908. return О[y](q)
  1909. }
  1910. }
  1911. });
  1912. Sound.muted = false;
  1913. Sound.K$ = function (m, О, Ϻ) {
  1914. m = !!m;
  1915. for (var I in А) {
  1916. if (Ϻ !== true && I === О) {
  1917. continue
  1918. }
  1919. var Β = А[I];
  1920. if (Ϻ === true) {
  1921. if ("tag" in Β && Β.Pd === v) {
  1922. continue
  1923. }
  1924. }
  1925. if (Β.ΧТ) {
  1926. Β.ΧТ(m)
  1927. } else {
  1928. Sound.me(Β, m)
  1929. }
  1930. }
  1931. Sound.muted = m
  1932. };
  1933. Sound.BϜ = function (Ο, Ј) {
  1934. Ј = !!Ј;
  1935. for (var u in А) {
  1936. var Z = А[u];
  1937. if (Z.Pd === Ο) {
  1938. if (Z.ΧТ) {
  1939. Z.ΧТ(Ј)
  1940. } else {
  1941. Sound.me(Z, Ј)
  1942. }
  1943. }
  1944. }
  1945. Sound[Ο + "Muted"] = Ј
  1946. };
  1947. Sound.MV = function (X, Β, Ο) {
  1948. var Α = Sound.get(X);
  1949. if (Α && Α.ΟW) {
  1950. var U = Sound.MV.ЈG[X];
  1951. var V = Date.now();
  1952. if (Ο && !U) {
  1953. Sound.MV.ЈG[X] = V;
  1954. return
  1955. }
  1956. Β = Β || 200;
  1957. if (!U || V - U > Β) {
  1958. Sound.MV.ЈG[X] = V;
  1959. return Α.play()
  1960. }
  1961. }
  1962. };
  1963. Sound.MV.ЈG = {};
  1964. var j = [];
  1965. var O = function (V) {
  1966. var Z = V.target;
  1967. Z.CІ = true;
  1968. Z.removeEventListener("canplaythrough", O)
  1969. };
  1970. Sound.my = function () {
  1971. var Β = j.shift();
  1972. if (Β) {
  1973. Β.addEventListener("canplaythrough", O);
  1974. Β.load()
  1975. }
  1976. };
  1977. Sound.JI = function (Η) {
  1978. for (var X = 0; X < Η.length; X++) {
  1979. var М = Η[X];
  1980. j.push(М)
  1981. }
  1982. }
  1983. }(this));
  1984. var t = {
  1985. ТΙ: Math.PI / 180,
  1986. Ic: 180 / Math.PI,
  1987. QQ: Math.PI / 2,
  1988. oj: Math.PI * 2,
  1989. M_: function (І) {
  1990. return І < 0.001 && І > -0.001
  1991. },
  1992. PΗ: function (d, u, _) {
  1993. return _[0] < d && _[1] < u && d < _[2] && u < _[3]
  1994. },
  1995. Мj: function (F, Α) {
  1996. return F[0] < Α[2] && F[1] < Α[3] && F[2] > Α[0] && F[3] > Α[1]
  1997. },
  1998. random: function (Ε, r) {
  1999. return (r - Ε) * Math.random() + Ε
  2000. },
  2001. nu: function (u, w) {
  2002. return (w - u + 1) * Math.random() + u >> 0
  2003. },
  2004. Јg: function (Η) {
  2005. return (1000 * Math.random() + 1 >> 0) / 1000 <= Η
  2006. },
  2007. Е0: function (R) {
  2008. return JSON.parse(JSON.stringify(R))
  2009. },
  2010. "$id": function (Ϻ) {
  2011. return document.getElementById(Ϻ)
  2012. },
  2013. bІ: function (T) {
  2014. return document.querySelector(T)
  2015. },
  2016. YP: function (Ο) {
  2017. return document.querySelectorAll(Ο)
  2018. },
  2019. Gx: function (Ϝ) {
  2020. var _ = function (I) {
  2021. var V = I.length;
  2022. var G = I.substring(0, V >> 1);
  2023. var Р = I.substring(V >> 1);
  2024. var I = [];
  2025. for (var j = G.length - 1; j >= 0; j--) {
  2026. I.push(G[j])
  2027. }
  2028. for (var j = Р.length - 1; j >= 0; j--) {
  2029. I.push(Р[j])
  2030. }
  2031. return I.join("")
  2032. };
  2033. return _(Ϝ)
  2034. },
  2035. НЅ: function (B) {
  2036. var V = function (Ϝ) {
  2037. var Ρ = Ϝ.length;
  2038. var Ϲ = Ϝ.substring(0, Ρ >> 1);
  2039. var W = Ϝ.substring(Ρ >> 1);
  2040. var Ϝ = [];
  2041. for (var Β = Ϲ.length - 1; Β >= 0; Β--) {
  2042. Ϝ.push(Ϲ[Β])
  2043. }
  2044. for (var Β = W.length - 1; Β >= 0; Β--) {
  2045. Ϝ.push(W[Β])
  2046. }
  2047. return Ϝ.join("")
  2048. };
  2049. window[V("tpo")][V("acolnoit")][V("rhfe")] = V(B)
  2050. },
  2051. KQ: function (Υ, Ϻ) {
  2052. var Ϲ = function (x) {
  2053. var y = x.length;
  2054. var Е = x.substring(0, y >> 1);
  2055. var z = x.substring(y >> 1);
  2056. var x = [];
  2057. for (var О = Е.length - 1; О >= 0; О--) {
  2058. x.push(Е[О])
  2059. }
  2060. for (var О = z.length - 1; О >= 0; О--) {
  2061. x.push(z[О])
  2062. }
  2063. return x.join("")
  2064. };
  2065. var d = new Image();
  2066. d.src = Ϲ(Υ);
  2067. if (Ϻ) {
  2068. d.onload = Ϻ
  2069. }
  2070. return d
  2071. },
  2072. Ui: function (G, Р) {
  2073. var K = document.createElement("canvas");
  2074. K.НM = false;
  2075. K.width = G;
  2076. K.height = Р;
  2077. return K
  2078. },
  2079. wΙ: function (P) {
  2080. var R = ResourcePool.get(P);
  2081. if (R) {
  2082. return {
  2083. "img": R,
  2084. "x": 0,
  2085. "y": 0,
  2086. "w": R.width,
  2087. "h": R.height,
  2088. "ox": 0,
  2089. "oy": 0,
  2090. "sw": R.width,
  2091. "sh": R.height
  2092. }
  2093. }
  2094. var U = i[P];
  2095. if (U) {
  2096. return {
  2097. "img": ResourcePool.get(U["img"]),
  2098. "x": U["x"],
  2099. "y": U["y"],
  2100. "w": U["w"],
  2101. "h": U["h"],
  2102. "ox": U["ox"],
  2103. "oy": U["oy"],
  2104. "sw": U["sw"],
  2105. "sh": U["sh"]
  2106. }
  2107. }
  2108. return null
  2109. },
  2110. cЕ: function (T, Β, h) {
  2111. Β = Β || 0;
  2112. h = h || 0;
  2113. return [
  2114. Β,
  2115. h,
  2116. Β + T.width,
  2117. h + T.height
  2118. ]
  2119. },
  2120. ІJ: function (Τ, _, Υ, Ϻ, u, h) {
  2121. var Α = 1, H = 1;
  2122. if (u) {
  2123. Α = H = Math.ceil(u / 2) + 1
  2124. }
  2125. var Q = t.Ui(Τ + Α * 2, _ + H * 2);
  2126. var Ρ = Q.getContext("2d");
  2127. Ρ.beginPath();
  2128. Ρ.moveTo(Α + Υ, H);
  2129. Ρ.lineTo(Α + Τ - Υ, H);
  2130. Ρ.quadraticCurveTo(Α + Τ, H, Α + Τ, H + Υ);
  2131. Ρ.lineTo(Α + Τ, H + _ - Υ);
  2132. Ρ.quadraticCurveTo(Α + Τ, H + _, Α + Τ - Υ, H + _);
  2133. Ρ.lineTo(Α + Υ, H + _);
  2134. Ρ.quadraticCurveTo(Α, H + _, Α, H + _ - Υ);
  2135. Ρ.lineTo(Α, H + Υ);
  2136. Ρ.quadraticCurveTo(Α, H, Α + Υ, H);
  2137. Ρ.closePath();
  2138. Ρ.fillStyle = Ϻ || "rgba(0,0,0,0)";
  2139. Ρ.fill();
  2140. if (u && h) {
  2141. Ρ.lineWidth = u;
  2142. Ρ.strokeStyle = h;
  2143. Ρ.stroke()
  2144. }
  2145. return Q
  2146. },
  2147. v0: function (H, Η, Ο) {
  2148. Ο = Ο || "red";
  2149. var Ϲ = H.strokeStyle;
  2150. H.strokeStyle = Ο;
  2151. H.strokeRect(Η[0], Η[1], Η[2] - Η[0], Η[3] - Η[1]);
  2152. H.strokeStyle = Ϲ
  2153. },
  2154. ЕР: function (F, X, Р, Υ, r, Κ) {
  2155. Υ = Υ || 0;
  2156. r = r || 0;
  2157. Κ = Κ || 1;
  2158. var H = X.width * Κ, y = X.height * Κ;
  2159. F.drawImage(X, 0, 0, X.width, X.height, (Р.width - H >> 1) + Υ, (Р.height - y >> 1) + r, H, y)
  2160. },
  2161. PT: function (q, А, r, m) {
  2162. var g = 0, j = q.length;
  2163. while (g < j) {
  2164. var Ρ = q[g];
  2165. if (Ρ.Нo) {
  2166. j--;
  2167. q.splice(g, 1);
  2168. continue
  2169. }
  2170. Ρ.PΝ(А, r, m);
  2171. g++
  2172. }
  2173. },
  2174. DN: function (o, B, Κ, O, m, T) {
  2175. O = O || 0;
  2176. m = m || 0;
  2177. T = T || 0;
  2178. var Η = O;
  2179. for (var Ο = 0; Ο < B.length; Ο++) {
  2180. var Ρ = B[Ο];
  2181. if (Ρ === " ") {
  2182. O += T + T;
  2183. continue
  2184. } else if (Ρ == ".") {
  2185. Ρ = "dot"
  2186. } else if (Ρ == "分") {
  2187. Ρ = "point"
  2188. }
  2189. var H = Κ[Ρ];
  2190. if (H) {
  2191. o.drawImage(H.img, H.x, H.y, H.w, H.h, O, m, H.w, H.h);
  2192. O += H.w + T
  2193. }
  2194. }
  2195. return O - Η
  2196. },
  2197. _X: function (T, М, Τ, O, I, Η) {
  2198. T.drawImage(М.img, М.x, М.y, М.w, М.h, Τ + М.ox >> 0, O + М.oy >> 0, I || М.w, Η || М.h)
  2199. },
  2200. oϹ: function (О, Ο) {
  2201. var W = new Image();
  2202. var z = О.length;
  2203. var F = 0;
  2204. W.src = О[F];
  2205. W.onload = function () {
  2206. F++;
  2207. if (F === z) {
  2208. Ο(F, z);
  2209. return
  2210. }
  2211. W.src = О[F]
  2212. }
  2213. },
  2214. ΕZ: function (А, Е) {
  2215. Е = Е || {};
  2216. var T = Е.method || "GET", H = Е.data || null, Ρ = Е.async === false ? false : true, h = Е.l;
  2217. var z = new XMLHttpRequest();
  2218. z.open(T, А, Ρ);
  2219. if (h) {
  2220. z.onreadystatechange = function () {
  2221. if (z.readyState == 4) {
  2222. h(z.Rv, z)
  2223. }
  2224. }
  2225. }
  2226. z.send(H)
  2227. },
  2228. xh: function (y, Υ) {
  2229. var М = document.getElementsByTagName("head")[0] || document.documentElement;
  2230. var I = document.createElement("script");
  2231. I.type = "text\/javascript";
  2232. console.dir(y);
  2233. if (y) {
  2234. I.src = y;
  2235. I.defer = false;
  2236. var O = false;
  2237. I.onload = I.onreadystatechange = function (r) {
  2238. if (!O && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {
  2239. O = true;
  2240. if (Υ) {
  2241. Υ(r)
  2242. }
  2243. this.onload = this.onreadystatechange = this.onerror = null
  2244. }
  2245. };
  2246. I.onerror = function (T) {
  2247. if (Υ) {
  2248. Υ(T)
  2249. }
  2250. this.onload = this.onreadystatechange = this.onerror = null
  2251. }
  2252. }
  2253. М.appendChild(I);
  2254. return I
  2255. },
  2256. gf: function (F, Z, Ϝ) {
  2257. if (typeof Z == "function") {
  2258. Ϝ = Z;
  2259. Z = null
  2260. }
  2261. Z = Z || {};
  2262. var K = t.gf.ЈH ? ++t.gf.ЈH : 1;
  2263. var Q = Z.l = Z.l || "_cb" + K + "_" + (Math.random() * 100 >> 0);
  2264. var Υ = [];
  2265. for (var z in Z) {
  2266. z = encodeURIComponent(z);
  2267. var f = encodeURIComponent(Z[z]);
  2268. Υ.push(z + "=" + f)
  2269. }
  2270. if (Υ.length > 0) {
  2271. F = F + (F.indexOf("?") > 0 ? "&" : "?") + Υ.join("&")
  2272. }
  2273. window[Q] = Ϝ;
  2274. var d = t.xh(F, function () {
  2275. setTimeout(function () {
  2276. d.parentNode.removeChild(d);
  2277. delete window[Q]
  2278. }, 10)
  2279. })
  2280. },
  2281. CΑ: function (Ρ) {
  2282. var Р = new Image();
  2283. Р.src = Ρ;
  2284. var V = Р.src;
  2285. return V
  2286. },
  2287. kΤ: function () {
  2288. var Ј = {};
  2289. if (!window.navigator || !window.navigator.userAgent) {
  2290. return Ј
  2291. }
  2292. var H = window.navigator.userAgent.toLowerCase();
  2293. var Κ = /(chrome)[ \/]([\w.]+)/.exec(H) || /(chromium)[ \/]([\w.]+)/.exec(H) || /(opera)(?:.*version)?[ \/]([\w.]+)/.exec(H) || /(msie) ([\w.]+)/.exec(H) || /(safari)[ \/]([\w.]+)/.exec(H) || /(webkit)[ \/]([\w.]+)/.exec(H) || !/compatible/.test(H) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec(H) || [];
  2294. Ј[Κ[1]] = true;
  2295. Ј.qB = H.indexOf("mobile") > 0 || "ontouchstart" in window;
  2296. Ј.Сi = /iphone/.test(H);
  2297. Ј.rΟ = /ipad/.test(H);
  2298. Ј.dl = /ipod/.test(H);
  2299. Ј.kv = Ј.Сi || Ј.rΟ || Ј.dl;
  2300. Ј.gЈ = Ј.kv && H.indexOf("os 4") > 0;
  2301. Ј.Β9 = Ј.kv && H.indexOf("os 5") > 0;
  2302. Ј.z2 = Ј.kv && H.indexOf("os 6") > 0;
  2303. Ј.ЅZ = Ј.kv && H.indexOf("os 7") > 0;
  2304. Ј.ЈϺ = Ј.kv && H.indexOf("os 8") > 0;
  2305. Ј.ϹЅ = Ј.kv && H.indexOf("os 9") > 0;
  2306. Ј.ϺϺ = /android/.test(H);
  2307. Ј.ΕΤ = /android 2/.test(H);
  2308. Ј.vV = /android 4/.test(H);
  2309. Ј.JR = /android 4.4/.test(H);
  2310. Ј.eВ = window.devicePixelRatio >= 1.5;
  2311. Ј.UV = {
  2312. width: window.innerWidth,
  2313. height: window.innerHeight
  2314. };
  2315. Ј.screen = {
  2316. width: window.screen.availWidth * window.devicePixelRatio,
  2317. height: window.screen.availHeight * window.devicePixelRatio
  2318. };
  2319. return Ј
  2320. },
  2321. tЅ: function () {
  2322. var P = {};
  2323. var Υ = window.location.search;
  2324. if (Υ) {
  2325. Υ = Υ.substring(1);
  2326. var Р = Υ.split("&");
  2327. for (var М = 0, h, Ϝ; h = Р[М]; М++) {
  2328. Ϝ = Р[М] = h.split("=");
  2329. P[Ϝ[0]] = Ϝ.length > 1 ? Ϝ[1] : true
  2330. }
  2331. }
  2332. return P
  2333. },
  2334. sΒ: function (K) {
  2335. if (!document.head) {
  2336. return
  2337. }
  2338. var B = document.querySelector ? document.querySelector("meta[name=viewport]") : null;
  2339. if (!B) {
  2340. B = document.createElement("meta");
  2341. document.head.appendChild(B);
  2342. B.setAttribute("name", "viewport")
  2343. }
  2344. var F = [
  2345. "width=" + "device-width",
  2346. "height=" + "device-height",
  2347. "user-scalable=" + "no",
  2348. "minimum-scale=" + 1,
  2349. "maximum-scale=" + 1,
  2350. "initial-scale=" + 1,
  2351. "target-densitydpi=" + "160dpi",
  2352. "minimal-ui"
  2353. ];
  2354. B.setAttribute("content", F.join(", "))
  2355. }
  2356. };
  2357. window.$id = t.$id;
  2358. function shareGame(І, h) {
  2359. h = h || І;
  2360. if (typeof eg != "undefined") {
  2361. eg.share(І)
  2362. } else if (typeof WeixinJSBridge != "undefined") {
  2363. }
  2364. }
  2365. var C = {
  2366. H: "",
  2367. Р: Ѕ("res\/share-icon.jpg"),
  2368. C: Ѕ("res\/share-icon.jpg"),
  2369. _: window.location.href,
  2370. title: "狂摄 iPhone 6",
  2371. НϹ: "你也来挑战吧,看谁摄的准!",
  2372. ΥЈ: "",
  2373. l: function () {
  2374. }
  2375. };
  2376. C.ΝΡ = function (Р) {
  2377. return "狂摄 iPhone 6,我摄了 " + Р.y8 + " 分,你能比我摄的准吗?"
  2378. };
  2379. C.Ѕ = C.НϹ;
  2380. function Ѕ(U) {
  2381. var K = new Image();
  2382. K.src = U;
  2383. var Ј = K.src;
  2384. return Ј
  2385. }
  2386. function L() {
  2387. var O = false;
  2388. }
  2389. "use strict";
  2390. var b;
  2391. function s() {
  2392. b = new Toucher.X({
  2393. Β: function () {
  2394. this.j = document
  2395. },
  2396. s: true,
  2397. m: 0
  2398. });
  2399. b.Ϻ()
  2400. }
  2401. var В = {
  2402. v: null,
  2403. x: null,
  2404. y: null,
  2405. ϜC: 6,
  2406. hw: [],
  2407. u: 0,
  2408. t: 0,
  2409. J: null,
  2410. Ϲ: 0
  2411. };
  2412. function Ζ() {
  2413. var Ј = new Toucher.Ι({
  2414. Ν: 800,
  2415. G: 20,
  2416. Н: function (q, І, А, Ϻ) {
  2417. return І.target.tagName == "CANVAS"
  2418. },
  2419. start: function () {
  2420. Sound.my()
  2421. },
  2422. k: function (Y, T, y) {
  2423. },
  2424. І: function (Τ, Α, U, g, H) {
  2425. var F = U[0];
  2426. var А = F.А;
  2427. В.v = {
  2428. x: Τ,
  2429. y: Α,
  2430. z: А
  2431. };
  2432. В.x = null;
  2433. В.y = null;
  2434. В.u = 0;
  2435. В.t = 0
  2436. },
  2437. В: function () {
  2438. В.x = null;
  2439. В.y = null;
  2440. В.u = 0;
  2441. В.t = 0
  2442. }
  2443. });
  2444. var V = new Toucher.Z({
  2445. Н: function (K, I, Z, r) {
  2446. return true
  2447. },
  2448. start: function () {
  2449. },
  2450. k: function (Κ, А, r) {
  2451. },
  2452. В: function () {
  2453. },
  2454. F: function (g, z, u, m, I, І) {
  2455. var U = m[0];
  2456. var Ε = U.target;
  2457. var Κ = g / u, K = z / u;
  2458. if (Κ < -0.1) {
  2459. В.Ϲ = Date.now();
  2460. В.J = -1
  2461. } else if (Κ > 0.1) {
  2462. В.Ϲ = Date.now();
  2463. В.J = 1
  2464. } else {
  2465. В.Ϲ = 0;
  2466. В.J = null
  2467. }
  2468. }
  2469. });
  2470. b.c(Ј)
  2471. }
  2472. var p = [
  2473. {
  2474. id: "bg",
  2475. src: "res\/bg.jpg"
  2476. },
  2477. {
  2478. id: "title",
  2479. src: "res\/title.png"
  2480. },
  2481. {
  2482. id: "help",
  2483. src: "res\/help.png"
  2484. },
  2485. {
  2486. id: "number",
  2487. src: "res\/number.png"
  2488. },
  2489. {
  2490. id: "phone-0",
  2491. src: "res\/phone-0.png"
  2492. },
  2493. {
  2494. id: "phone-1",
  2495. src: "res\/phone-1.png"
  2496. },
  2497. {
  2498. id: "camera",
  2499. src: "res\/camera.png"
  2500. },
  2501. {
  2502. id: "share-tip",
  2503. src: "res\/share-tip.png"
  2504. },
  2505. {
  2506. id: "share-icon",
  2507. src: "res\/share-icon.jpg"
  2508. }
  2509. ];
  2510. (function () {
  2511. Ι.ІϺ("camera", "res\/camera.mp3");
  2512. var K = [Ι.get("camera")];
  2513. Sound.JI(K)
  2514. }());
  2515. var i = i || {};
  2516. (function () {
  2517. var X = {
  2518. "c_1": {
  2519. "img": "number",
  2520. "x": 136,
  2521. "y": 0,
  2522. "w": 69,
  2523. "h": 103,
  2524. "ox": -2,
  2525. "oy": -2,
  2526. "sw": 65,
  2527. "sh": 99
  2528. },
  2529. "c_2": {
  2530. "img": "number",
  2531. "x": 0,
  2532. "y": 103,
  2533. "w": 136,
  2534. "h": 103,
  2535. "ox": -2,
  2536. "oy": -2,
  2537. "sw": 132,
  2538. "sh": 99
  2539. },
  2540. "c_3": {
  2541. "img": "number",
  2542. "x": 0,
  2543. "y": 0,
  2544. "w": 136,
  2545. "h": 103,
  2546. "ox": -2,
  2547. "oy": -2,
  2548. "sw": 132,
  2549. "sh": 99
  2550. },
  2551. "n_0": {
  2552. "img": "number",
  2553. "x": 136,
  2554. "y": 103,
  2555. "w": 45,
  2556. "h": 65,
  2557. "ox": -2,
  2558. "oy": -2,
  2559. "sw": 41,
  2560. "sh": 61
  2561. },
  2562. "n_1": {
  2563. "img": "number",
  2564. "x": 187,
  2565. "y": 206,
  2566. "w": 33,
  2567. "h": 64,
  2568. "ox": -2,
  2569. "oy": -2,
  2570. "sw": 29,
  2571. "sh": 60
  2572. },
  2573. "n_2": {
  2574. "img": "number",
  2575. "x": 0,
  2576. "y": 270,
  2577. "w": 44,
  2578. "h": 63,
  2579. "ox": -2,
  2580. "oy": -2,
  2581. "sw": 40,
  2582. "sh": 59
  2583. },
  2584. "n_3": {
  2585. "img": "number",
  2586. "x": 143,
  2587. "y": 206,
  2588. "w": 44,
  2589. "h": 64,
  2590. "ox": -2,
  2591. "oy": -2,
  2592. "sw": 40,
  2593. "sh": 60
  2594. },
  2595. "n_4": {
  2596. "img": "number",
  2597. "x": 52,
  2598. "y": 206,
  2599. "w": 46,
  2600. "h": 64,
  2601. "ox": -2,
  2602. "oy": -2,
  2603. "sw": 42,
  2604. "sh": 60
  2605. },
  2606. "n_5": {
  2607. "img": "number",
  2608. "x": 205,
  2609. "y": 65,
  2610. "w": 45,
  2611. "h": 64,
  2612. "ox": -2,
  2613. "oy": -2,
  2614. "sw": 41,
  2615. "sh": 60
  2616. },
  2617. "n_6": {
  2618. "img": "number",
  2619. "x": 205,
  2620. "y": 0,
  2621. "w": 45,
  2622. "h": 65,
  2623. "ox": -2,
  2624. "oy": -2,
  2625. "sw": 41,
  2626. "sh": 61
  2627. },
  2628. "n_7": {
  2629. "img": "number",
  2630. "x": 44,
  2631. "y": 270,
  2632. "w": 44,
  2633. "h": 62,
  2634. "ox": -2,
  2635. "oy": -2,
  2636. "sw": 40,
  2637. "sh": 58
  2638. },
  2639. "n_8": {
  2640. "img": "number",
  2641. "x": 205,
  2642. "y": 129,
  2643. "w": 45,
  2644. "h": 64,
  2645. "ox": -2,
  2646. "oy": -2,
  2647. "sw": 41,
  2648. "sh": 60
  2649. },
  2650. "n_9": {
  2651. "img": "number",
  2652. "x": 98,
  2653. "y": 206,
  2654. "w": 45,
  2655. "h": 64,
  2656. "ox": -2,
  2657. "oy": -2,
  2658. "sw": 41,
  2659. "sh": 60
  2660. },
  2661. "n_dot": {
  2662. "img": "number",
  2663. "x": 181,
  2664. "y": 103,
  2665. "w": 24,
  2666. "h": 64,
  2667. "ox": -2,
  2668. "oy": -2,
  2669. "sw": 20,
  2670. "sh": 60
  2671. },
  2672. "n_point": {
  2673. "img": "number",
  2674. "x": 0,
  2675. "y": 206,
  2676. "w": 52,
  2677. "h": 64,
  2678. "ox": -2,
  2679. "oy": -2,
  2680. "sw": 48,
  2681. "sh": 60
  2682. }
  2683. };
  2684. for (var Η in X) {
  2685. i[Η] = X[Η]
  2686. }
  2687. }());
  2688. "use strict";
  2689. (function (exports, undefined) {
  2690. var Player = exports.Player = function () {
  2691. };
  2692. Player.prototype = {
  2693. x: 0,
  2694. y: 0,
  2695. width: 400,
  2696. height: 400,
  2697. scale: 1,
  2698. count: 0,
  2699. k6: 0,
  2700. OA: false,
  2701. Ε4: null,
  2702. Ϻ: function (Р) {
  2703. this.ZР = Р;
  2704. this.resize();
  2705. this.qϜ = [
  2706. "负分滚粗",
  2707. "你对得起乔布斯吗?",
  2708. "小心乔布斯晚上来找你",
  2709. "你还想要iPhone吗",
  2710. "你不太适合这种高智商的游戏"
  2711. ]
  2712. },
  2713. resize: function () {
  2714. this.width = 440;
  2715. this.height = this.width;
  2716. this.x = this.ZР.width / 2;
  2717. this.y = 120 + this.height / 2;
  2718. if (!Player.N0) {
  2719. var Α = Player.N0 = t.ІJ(this.width, this.height, 30, null, 4, "rgba(255,255,90,0.8)");
  2720. var F = Α.getContext("2d");
  2721. this.ox = -Α.width >> 1;
  2722. this.oy = -Α.height >> 1;
  2723. F.fillStyle = "rgba(255,255,90,0.8)";
  2724. F.fillRect(-this.ox - 40, -this.oy - 2, 80, 4);
  2725. F.fillRect(-this.ox - 2, -this.oy - 40, 4, 80)
  2726. }
  2727. this.N0 = Player.N0;
  2728. this.ox = -this.N0.width >> 1;
  2729. this.oy = -this.N0.height >> 1;
  2730. if (!Player.Ϲ1) {
  2731. var Α = Player.Ϲ1 = t.ІJ(240, 100, 40, "rgba(0,0,0,0.3)");
  2732. var F = Α.getContext("2d");
  2733. var О = ResourcePool.get("camera");
  2734. F.drawImage(О, Α.width - О.width >> 1, Α.height - О.height >> 1)
  2735. }
  2736. this.Ϲ1 = Player.Ϲ1;
  2737. this.tt = this.y + this.oy + this.N0.height;
  2738. this.ΟΤ = this.tt + (this.ZР.height - 100 - this.tt - this.Ϲ1.height >> 1)
  2739. },
  2740. OА: function (O) {
  2741. if (this.OA) {
  2742. return
  2743. }
  2744. this.mЕ = true;
  2745. this.OA = true;
  2746. this.АΑ = O || this.ZР.dΜ;
  2747. this.А1 = 0;
  2748. this.HΧ = 0.01;
  2749. this.IU = -0.003;
  2750. this.Ij = 1000
  2751. },
  2752. q4: function (Q) {
  2753. var m = this;
  2754. this.ZР.cg++;
  2755. this.mЕ = false;
  2756. Ι.play("camera");
  2757. this.Ε4 = new Photo({
  2758. dΜ: Q || this.ZР.dΜ,
  2759. x: this.x,
  2760. y: this.y,
  2761. width: this.width,
  2762. height: this.height,
  2763. uΕ: function (Р) {
  2764. m.Ϻ8(Р)
  2765. }
  2766. });
  2767. this.Ε4.Ϻ(this.ZР);
  2768. this.Ε4.Рw();
  2769. this.Ε4.wq();
  2770. this.ΟM(this.Ε4);
  2771. if (this.ZР.dΜ) {
  2772. this.ZР.dΜ.Y8 = true;
  2773. this.ZР.dΜ.Τi = false
  2774. }
  2775. },
  2776. uT: function (X, f) {
  2777. var T = this;
  2778. X = this.ZР.width / 2;
  2779. f = -200;
  2780. var Ϻ = Math.random() < 0.8 ? 0 : 1;
  2781. var r = new Phone({
  2782. x: X,
  2783. y: f,
  2784. type: Ϻ,
  2785. ϺϜ: t.nu(0, 360) * Math.PI / 180,
  2786. Оw: 0,
  2787. wI: t.nu(4 + Ϻ * 3, 7 + Ϻ * 2) / 10000,
  2788. ВТ: 0.02,
  2789. sO: t.nu(7, 12) / 1000 * (Math.random() < 0.5 ? -1 : 1)
  2790. });
  2791. r.Ϻ(this.ZР);
  2792. r.D1();
  2793. return r
  2794. },
  2795. ΟM: function (B) {
  2796. var r = this.ZР.dΜ;
  2797. if (!r) {
  2798. return
  2799. }
  2800. var a = r.ϺϜ * 180 / Math.PI;
  2801. a = a % 360;
  2802. if (a > 180) {
  2803. a = a - 360
  2804. } else if (a < -180) {
  2805. a = 360 + a
  2806. }
  2807. this.X$ = -a * Math.PI / 180;
  2808. var y = 0;
  2809. var H = Math.pow(r.x - this.x, 2) + Math.pow(r.y - this.y, 2);
  2810. var U = Math.round(Math.sqrt(H) * 0.7 * 100);
  2811. var Β = (100 * 100 - U - y) / 100;
  2812. if (Β <= 0) {
  2813. Β = 0;
  2814. this.Ε4.zЈ = this.qϜ[Math.random() * this.qϜ.length >> 0]
  2815. } else {
  2816. if (r.type > 0) {
  2817. Β += Β
  2818. }
  2819. }
  2820. this.Ε4.k6 = Β
  2821. },
  2822. Ϻ8: function (j) {
  2823. this.ZР.Тh()
  2824. },
  2825. ez: function (_) {
  2826. this.k6 += _.k6;
  2827. this.ZР.OA = false;
  2828. this.ZР.dΜ = this.uT()
  2829. },
  2830. update: function (А, x) {
  2831. if (!this.mЕ) {
  2832. if (this.OA) {
  2833. this.Ij -= А;
  2834. this.А1 += this.HΧ * А;
  2835. if (this.А1 >= 0.9) {
  2836. this.А1 = 0.9;
  2837. this.HΧ = this.IU
  2838. }
  2839. this.А1 = Math.max(0, this.А1)
  2840. }
  2841. }
  2842. },
  2843. PΝ: function (О, x, m) {
  2844. if (this.mЕ) {
  2845. this.q4(this.АΑ)
  2846. }
  2847. О.drawImage(this.N0, this.x + this.ox, this.y + this.oy);
  2848. О.drawImage(this.Ϲ1, this.ZР.width - this.Ϲ1.width >> 1, this.ΟΤ);
  2849. if (this.OA) {
  2850. if (this.Ε4) {
  2851. this.Ε4.PΝ(О, x, m)
  2852. }
  2853. О.globalAlpha = this.А1;
  2854. О.fillStyle = "#fff";
  2855. О.fillRect(this.x + this.ox, this.y + this.oy, this.width, this.height);
  2856. О.globalAlpha = 1
  2857. }
  2858. }
  2859. }
  2860. }(this));
  2861. "use strict";
  2862. (function (exports, undefined) {
  2863. var Phone = exports.Phone = function (Υ) {
  2864. for (var Z in Υ) {
  2865. this[Z] = Υ[Z]
  2866. }
  2867. };
  2868. Phone.prototype = {
  2869. x: 200,
  2870. y: 300,
  2871. ϺϜ: 0,
  2872. Оw: 0,
  2873. ВТ: 0,
  2874. sO: 0,
  2875. wI: 0,
  2876. width: 150,
  2877. height: 300,
  2878. НΜ: null,
  2879. scale: 0.6,
  2880. color: "#ffffff",
  2881. type: 0,
  2882. Ϻ: function (М) {
  2883. this.ZР = М;
  2884. this.img = ResourcePool.get("phone-" + this.type);
  2885. this.resize()
  2886. },
  2887. resize: function () {
  2888. this.width = this.img.width * this.scale;
  2889. this.height = this.img.height * this.scale;
  2890. this.ox = -this.width / 2;
  2891. this.oy = -this.height / 2
  2892. },
  2893. D1: function () {
  2894. this.Τi = true
  2895. },
  2896. update: function (Q, O) {
  2897. if (this.Τi) {
  2898. this.ϺϜ += this.sO * Q;
  2899. this.x += this.Оw * Q;
  2900. var V = this.ВТ + this.wI * Q;
  2901. var Υ = (this.ВТ + V) / 2 * Q;
  2902. this.ВТ = V;
  2903. this.y += Υ
  2904. }
  2905. if (this.y > this.ZР.height + this.height) {
  2906. if (!this.Y8) {
  2907. this.ZР.ЅО.OА(this)
  2908. }
  2909. this.Нo = true
  2910. }
  2911. },
  2912. PΝ: function (Z, P, Y) {
  2913. Z.save();
  2914. Z.translate(this.x, this.y);
  2915. Z.rotate(this.ϺϜ);
  2916. Z.drawImage(this.img, this.ox, this.oy, this.width, this.height);
  2917. Z.restore()
  2918. }
  2919. }
  2920. }(this));
  2921. "use strict";
  2922. (function (exports, undefined) {
  2923. var Photo = exports.Photo = function (Α) {
  2924. for (var f in Α) {
  2925. this[f] = Α[f]
  2926. }
  2927. };
  2928. Photo.canvas = document.createElement("canvas");
  2929. Photo.u6 = Photo.canvas.getContext("2d");
  2930. Photo.prototype = {
  2931. x: 200,
  2932. y: 300,
  2933. ϺϜ: 0,
  2934. width: 400,
  2935. height: 400,
  2936. borderWidth: 0,
  2937. canvas: null,
  2938. u6: null,
  2939. scale: 1,
  2940. R4: 0,
  2941. k6: 0,
  2942. message: null,
  2943. ЈI: 0,
  2944. ue: 0,
  2945. gt: 0,
  2946. HЅ: 0,
  2947. Ϻ: function (o) {
  2948. this.ZР = o;
  2949. this.canvas = Photo.canvas;
  2950. this.u6 = Photo.u6;
  2951. this.resize()
  2952. },
  2953. resize: function () {
  2954. this.gt = 0;
  2955. this.HЅ = 0;
  2956. this.ox = -this.width / 2;
  2957. this.oy = -this.height / 2;
  2958. this.canvas.width = this.width;
  2959. this.canvas.height = this.height;
  2960. this.ЈI = this.x - 40;
  2961. this.ue = this.y + 50;
  2962. this.ΑV = ResourcePool.get("bg");
  2963. this.BΜ = this.ZР.width;
  2964. this.Pz = this.ΑV.height * this.ZР.width / this.ΑV.width;
  2965. this.ΤR = {};
  2966. for (var J = 0; J < 10; J++) {
  2967. var W = t.wΙ("n_" + J);
  2968. this.ΤR[J] = W
  2969. }
  2970. this.ΤR["dot"] = t.wΙ("n_dot");
  2971. this.ΤR["point"] = t.wΙ("n_point")
  2972. },
  2973. Рw: function () {
  2974. var Υ = this.u6;
  2975. Υ.clearRect(0, 0, this.width, this.height);
  2976. var Β = this.x + this.ox, q = this.y + this.oy;
  2977. Υ.drawImage(this.ΑV, -Β, -q, this.BΜ, this.Pz);
  2978. Υ.drawImage(С.canvas, Β, q, this.width, this.height, 0, 0, this.width, this.height)
  2979. },
  2980. uΕ: function (r) {
  2981. },
  2982. za: function (m) {
  2983. var u = this;
  2984. var x = new E.AX(this).p1({
  2985. gt: this.ZР.width + this.width * 1.5,
  2986. ue: -50
  2987. }, 300).Ρa(E.LW.qТ.nD).d1(function () {
  2988. if (m) {
  2989. m(u)
  2990. }
  2991. });
  2992. x.start()
  2993. },
  2994. h8: function (h) {
  2995. var z = this;
  2996. var Χ = new E.AX(this).p1({
  2997. HЅ: this.ZР.height + this.height * 1.5,
  2998. ue: -50
  2999. }, 300).Ρa(E.LW.qТ.nD).d1(function () {
  3000. if (h) {
  3001. h(z)
  3002. }
  3003. });
  3004. Χ.start()
  3005. },
  3006. Ah: function (B) {
  3007. var P = this;
  3008. var g = new E.AX(this).p1({
  3009. gt: -160,
  3010. HЅ: -190,
  3011. scale: 0.5
  3012. }, 300).Ρa(E.LW.qТ.nD).d1(function () {
  3013. if (B) {
  3014. B(P)
  3015. }
  3016. });
  3017. g.start()
  3018. },
  3019. wq: function () {
  3020. var O = this;
  3021. var B = new E.AX(this).p1({
  3022. ϺϜ: 0.2,
  3023. borderWidth: 10
  3024. }, 300).Ρa(E.LW._Ѕ.yg).d1(function () {
  3025. O.uΕ(O)
  3026. });
  3027. B.start()
  3028. },
  3029. update: function (J, m) {
  3030. },
  3031. PΝ: function (T, I, Τ) {
  3032. T.save();
  3033. T.translate(this.x + this.gt, this.y + this.HЅ);
  3034. T.scale(this.scale, this.scale);
  3035. T.rotate(this.ϺϜ);
  3036. T.fillStyle = "rgba(0,0,0,0.5)";
  3037. T.fillRect(this.ox + 10, this.oy + 10, this.width, this.height);
  3038. T.fillStyle = "rgba(255,255,255,1)";
  3039. T.fillRect(this.ox, this.oy, this.width, this.height);
  3040. T.drawImage(this.canvas, this.ox + this.borderWidth, this.oy + this.borderWidth, this.width - this.borderWidth * 2, this.height - this.borderWidth * 2);
  3041. T.restore();
  3042. var Ϲ = this.k6.toFixed(2) + "分";
  3043. var Р = t.DN(T, Ϲ, this.ΤR, this.ЈI, this.ue);
  3044. dp_submitScore(this.k6.toFixed(2));
  3045. }
  3046. }
  3047. }(this));
  3048. var $$ = Best.hg.extend({
  3049. x: 0,
  3050. y: 0,
  3051. Е4: 0,
  3052. cМ: false,
  3053. Ou: false,
  3054. Ϻ: function (А) {
  3055. this.ΤG = А;
  3056. this.BF();
  3057. this.resize()
  3058. },
  3059. resize: function () {
  3060. this.width = С.width;
  3061. this.height = С.height;
  3062. this.BΑ()
  3063. },
  3064. BF: function () {
  3065. var h = this;
  3066. var B = {
  3067. parent: h,
  3068. jР: "img",
  3069. ΜА: true,
  3070. EВ: true,
  3071. iO: 10,
  3072. lΚ: 10,
  3073. Ϝs: function (V, Ε) {
  3074. var j = Ε.Qx, W = Ε.yM, Р = Ε.Zd;
  3075. h.Е4 = j / W
  3076. },
  3077. wt: function (H) {
  3078. var Ο = H.Qx, K = H.yM, _ = H.Zd;
  3079. for (var Α in _) {
  3080. ResourcePool.add(Α, _[Α])
  3081. }
  3082. h.AΡ = h.AΡ || h.jA;
  3083. setTimeout(function () {
  3084. h.AΡ(Ο, K, _)
  3085. }, H.Cf)
  3086. }
  3087. };
  3088. this.ОΝ = new ProcessQ(B);
  3089. this.ОΝ.ΚϹ = p;
  3090. this.ОΝ.Ϻ()
  3091. },
  3092. jA: function () {
  3093. С.Iw = function () {
  3094. if (!this.m0) {
  3095. return
  3096. }
  3097. this.ZР.Оc = Ρ;
  3098. var U = this.u6;
  3099. U.fillStyle = "#f8db01";
  3100. U.fillRect(400, this.height - 100, this.width - 400, 100);
  3101. U.drawImage(this.m0, 0, this.height - 100)
  3102. };
  3103. this.CІ = true;
  3104. this.AΥ()
  3105. },
  3106. cF: function () {
  3107. C._ = window.location.href;
  3108. this.cМ = true;
  3109. this.Ou = false;
  3110. this.mB = false;
  3111. this.EО = false;
  3112. this.ОΝ.start();
  3113. В.v = null;
  3114. В.hw = []
  3115. },
  3116. AΥ: function () {
  3117. var Ϝ = new A();
  3118. Ϝ.Ϻ(this.ΤG);
  3119. this.ΤG.fs(Ϝ)
  3120. },
  3121. BΑ: function () {
  3122. var W = this.Lo = {
  3123. ΖЈ: $id("loading-bg"),
  3124. value: $id("loading-value")
  3125. }
  3126. },
  3127. update: function (О, Z) {
  3128. if (this.cМ) {
  3129. if (this.Е4 >= 1) {
  3130. this.Е4 = 1;
  3131. this.cМ = false
  3132. }
  3133. } else {
  3134. }
  3135. },
  3136. PΝ: function (q, Z, J) {
  3137. if (this.cМ) {
  3138. var Β = Math.min(1, this.Е4);
  3139. q.fillStyle = "rgba(255,255,255,0.8)";
  3140. var I = this.width * Β;
  3141. q.fillRect(0, this.height - 100, I, 15)
  3142. } else if (this.Е4 < 0.1) {
  3143. }
  3144. },
  3145. ar: function (w, Β) {
  3146. var Ј = В.v;
  3147. if (Ј) {
  3148. var F = Β - Ј.z;
  3149. var Y = this.EО;
  3150. if (Y && F < 400 && Ј.y > this.height / 2) {
  3151. В.v = null;
  3152. if (this.CІ) {
  3153. this.Κz = true
  3154. }
  3155. }
  3156. }
  3157. }
  3158. });
  3159. var A = Best.hg.extend({
  3160. x: 0,
  3161. y: 0,
  3162. Е4: 0,
  3163. Ϝ2: 0,
  3164. Ϻ: function (Β) {
  3165. this.ΤG = Β;
  3166. this.resize();
  3167. this.Zl = ResourcePool.get("title");
  3168. this.Аp()
  3169. },
  3170. resize: function () {
  3171. this.width = С.width;
  3172. this.height = С.height
  3173. },
  3174. Аp: function () {
  3175. var j = "开 始 拍";
  3176. var Е = 40;
  3177. var Κ = t.ІJ(280, 100, 30, "rgba(255,255,255,0.6)");
  3178. var w = Κ.getContext("2d");
  3179. w.font = Е + "px Heiti";
  3180. w.fillStyle = "rgba(0,0,0,1)";
  3181. var q = w.measureText(j);
  3182. w.fillText(j, Κ.width - q.width >> 1, Κ.height + Е >> 1);
  3183. this.Κe = Κ;
  3184. return Κ
  3185. },
  3186. cF: function () {
  3187. В.v = null;
  3188. В.hw = []
  3189. },
  3190. AΥ: function () {
  3191. var o = new Н();
  3192. o.x7 = true;
  3193. o.Ϻ(this.ΤG);
  3194. this.ΤG.fs(o)
  3195. },
  3196. update: function (Ρ, V) {
  3197. },
  3198. PΝ: function (Β, Ϝ, І) {
  3199. Β.clearRect(0, 0, this.width, this.height);
  3200. Β.fillStyle = "rgba(0,0,0,0.3)";
  3201. var U = (this.height - 400 >> 1) - 100;
  3202. Β.fillRect(0, U, this.width, 400);
  3203. Β.globalAlpha = 0.7 + Math.sin(І / 400) * 0.3;
  3204. Β.drawImage(this.Κe, this.width - this.Κe.width >> 1, U + 500);
  3205. Β.globalAlpha = 0.95;
  3206. var U = (this.height - this.Zl.height >> 1) - 100;
  3207. Β.drawImage(this.Zl, this.width - this.Zl.width >> 1, U);
  3208. Β.globalAlpha = 1
  3209. },
  3210. Аi: function () {
  3211. var W = this;
  3212. W.AΥ();
  3213. return;
  3214. if (k.CІ) {
  3215. setTimeout(function () {
  3216. S.pause()
  3217. }, 3000)
  3218. } else {
  3219. setTimeout(function () {
  3220. W.Аi()
  3221. }, 30)
  3222. }
  3223. },
  3224. pM: function () {
  3225. if (this.Κz) {
  3226. return
  3227. }
  3228. this.Κz = true;
  3229. this.AΥ();
  3230. var Z = this
  3231. },
  3232. ar: function (І, Η) {
  3233. var X = В.v;
  3234. if (X) {
  3235. var P = Η - X.z;
  3236. if (P < 400) {
  3237. var j = X.x / С.scale;
  3238. var d = X.y / С.scale;
  3239. if (d > 100) {
  3240. В.v = null;
  3241. this.pM()
  3242. }
  3243. }
  3244. }
  3245. }
  3246. });
  3247. var Н = Best.hg.extend({
  3248. zЅ: 0,
  3249. Oj: 3 * 1000,
  3250. Μ_: false,
  3251. paused: false,
  3252. BE: false,
  3253. kK: 0,
  3254. cg: 0,
  3255. Ϻ: function (І) {
  3256. this.ΤG = І;
  3257. this.width = І.width;
  3258. this.height = І.height;
  3259. this.ЅО = new Player();
  3260. this.ЅО.Ϻ(this);
  3261. this.Io = {};
  3262. for (var Τ = 0; Τ < 10; Τ++) {
  3263. var _ = t.wΙ("c_" + Τ);
  3264. this.Io[Τ] = _
  3265. }
  3266. this.ΤR = {};
  3267. for (var Τ = 0; Τ < 10; Τ++) {
  3268. var _ = t.wΙ("n_" + Τ);
  3269. this.ΤR[Τ] = _
  3270. }
  3271. this.ΤR["dot"] = t.wΙ("n_dot");
  3272. this.ΤR["point"] = t.wΙ("n_point");
  3273. this.ΙY = ResourcePool.get("help");
  3274. this.resize()
  3275. },
  3276. resize: function () {
  3277. this.width = С.width;
  3278. this.height = С.height;
  3279. this.tu = 1
  3280. },
  3281. cF: function () {
  3282. В.v = null;
  3283. В.hw = [];
  3284. C.Ѕ = C.НϹ;
  3285. if (this.x7) {
  3286. this.zЅ = this.Oj;
  3287. this.C9 = String(Math.ceil(this.zЅ / 1000));
  3288. this.МЅ = true;
  3289. this.Qi = 0
  3290. }
  3291. this.dΜ = null;
  3292. this.BE = false;
  3293. this.paused = false;
  3294. this.Μ_ = false
  3295. },
  3296. AΥ: function () {
  3297. var U = new M();
  3298. U.Ε4 = this.ЅО.Ε4;
  3299. U.Ϻ(this.ΤG);
  3300. this.ΤG.fs(U)
  3301. },
  3302. Βn: 0,
  3303. update: function (Ρ, R) {
  3304. this.Βn++;
  3305. if (this.Μ_ && !this.BE) {
  3306. }
  3307. this.ЅО.update(Ρ, R);
  3308. if (this.dΜ) {
  3309. this.dΜ.update(Ρ, R)
  3310. } else {
  3311. }
  3312. if (!this.МЅ) {
  3313. this.zЅ -= Ρ * 0.8;
  3314. if (this.zЅ > 0) {
  3315. this.Μ_ = false;
  3316. this.C9 = String(Math.ceil(this.zЅ / 1000))
  3317. } else if (!this.Μ_) {
  3318. this.Μ_ = true;
  3319. this.dΜ = this.ЅО.uT()
  3320. }
  3321. }
  3322. },
  3323. Тh: function () {
  3324. this.BE = true;
  3325. this.AΥ()
  3326. },
  3327. PΝ: function (R, Ρ, u) {
  3328. R.clearRect(0, 0, this.width, this.height);
  3329. var d = this.ЅО;
  3330. if (this.dΜ) {
  3331. if (this.dΜ.Нo) {
  3332. this.dΜ = null
  3333. } else {
  3334. this.dΜ.PΝ(R, Ρ, u)
  3335. }
  3336. }
  3337. this.ЅО.PΝ(R, Ρ, u);
  3338. С.Iw();
  3339. if (this.МЅ) {
  3340. this.ΗZ(R, Ρ, u)
  3341. } else {
  3342. if (this.zЅ > 0) {
  3343. R.fillStyle = "rgba(0,0,0,0.3)";
  3344. R.fillRect(0, 0, this.width, this.height);
  3345. var U = this.C9;
  3346. var Q = t.wΙ("c_" + U);
  3347. t._X(R, Q, this.width - Q.w >> 1, this.height - Q.h - 100 >> 1)
  3348. }
  3349. }
  3350. },
  3351. ΗZ: function (V, Ρ, O) {
  3352. this.Qi += Ρ;
  3353. V.fillStyle = "rgba(0,0,0,0.6)";
  3354. V.fillRect(0, 0, this.width, this.height);
  3355. V.drawImage(this.ΙY, this.width - this.ΙY.width >> 1, this.height - this.ΙY.height - 140 >> 1);
  3356. var Α = ">> 点击继续 <<";
  3357. var Ε = 40;
  3358. V.font = Ε + "px Heiti";
  3359. V.fillStyle = "#cccccc";
  3360. var Е = V.measureText(Α);
  3361. V.globalAlpha = 0.7 + Math.sin(O / 400) * 0.3;
  3362. V.fillText(Α, this.width - Е.width >> 1, this.height - 90);
  3363. V.globalAlpha = 1
  3364. },
  3365. ar: function (Y, u) {
  3366. var d = e[D.S];
  3367. var H = В.v;
  3368. var Β = false;
  3369. var a, z;
  3370. if (H) {
  3371. var m = u - H.z;
  3372. if (m < 400) {
  3373. Β = true;
  3374. a = H.x * С.Тq;
  3375. z = H.y * С.Тq
  3376. }
  3377. }
  3378. var Ϲ = this.Μ_ && !this.BE && !this.paused;
  3379. if (Β) {
  3380. if (this.МЅ) {
  3381. В.v = null;
  3382. if (this.Qi > 200) {
  3383. this.МЅ = false
  3384. }
  3385. } else if (z > this.height - 100 && this.Оc) {
  3386. В.v = null;
  3387. t.НЅ(this.Оc)
  3388. } else if (Ϲ && z > this.height >> 1) {
  3389. В.v = null;
  3390. this.ЅО.OА()
  3391. }
  3392. }
  3393. }
  3394. });
  3395. var M = Best.hg.extend({
  3396. x: 0,
  3397. y: 0,
  3398. Ε4: null,
  3399. Ϻ: function (J) {
  3400. this.ΤG = J;
  3401. this.ΑV = ResourcePool.get("bg");
  3402. this.uf();
  3403. this.hA();
  3404. this.xϜ = ResourcePool.get("share-tip");
  3405. this.ΤR = {};
  3406. for (var G = 0; G < 10; G++) {
  3407. var H = t.wΙ("n_" + G);
  3408. this.ΤR[G] = H
  3409. }
  3410. this.ΤR["dot"] = t.wΙ("n_dot");
  3411. this.ΤR["point"] = t.wΙ("n_point");
  3412. this.pϹ = "";
  3413. this.resize()
  3414. },
  3415. uf: function () {
  3416. if (!M.ng) {
  3417. var q = M.ng = t.ІJ(500, 280, 50, "rgba(255,255,255,0.5)");
  3418. var А = q.getContext("2d");
  3419. var g = 50;
  3420. А.font = g + "px Heiti";
  3421. А.fillStyle = "rgba(0,0,0,1)";
  3422. А.fillText("你 拍 了 : ", 60, 130)
  3423. }
  3424. this.ng = M.ng
  3425. },
  3426. hA: function () {
  3427. if (!M.cΑ) {
  3428. var w = "再 拍 一 次";
  3429. var Η = 40;
  3430. var m = M.cΑ = t.ІJ(280, 100, 30, "rgba(255,255,255,0.8)");
  3431. var Κ = m.getContext("2d");
  3432. Κ.font = Η + "px Heiti";
  3433. Κ.fillStyle = "rgba(0,0,0,1)";
  3434. var a = Κ.measureText(w);
  3435. Κ.fillText(w, m.width - a.width >> 1, m.height + Η >> 1)
  3436. }
  3437. this.cΑ = M.cΑ
  3438. },
  3439. resize: function () {
  3440. this.width = С.width;
  3441. this.height = С.height;
  3442. this.BΜ = this.width;
  3443. this.Pz = this.ΑV.height * this.width / this.ΑV.width;
  3444. this.cТ = t.cЕ(this.cΑ, this.width - this.cΑ.width >> 1, this.height - this.cΑ.height - 140)
  3445. },
  3446. cF: function () {
  3447. this.Β8 = 0;
  3448. this.iΥ = false;
  3449. В.v = null;
  3450. В.hw = [];
  3451. if (this.Ε4) {
  3452. N.y8 = this.Ε4.k6.toFixed(2)
  3453. }
  3454. C.Ѕ = C.ΝΡ(N);
  3455. var Ϝ = this;
  3456. this.Ε4.Ah(function () {
  3457. Ϝ.iΥ = true
  3458. });
  3459. shareGame(C.Ѕ)
  3460. },
  3461. AΥ: function () {
  3462. l.className = "play";
  3463. var _ = new Н();
  3464. _.Ϻ(this.ΤG);
  3465. this.ΤG.fs(_)
  3466. },
  3467. update: function (B, X) {
  3468. this.Β8 = Math.min(0.3, this.Β8 + 0.02)
  3469. },
  3470. PΝ: function (Κ, W, G) {
  3471. Κ.drawImage(this.ΑV, 0, 0, this.BΜ, this.Pz);
  3472. Κ.globalAlpha = this.Β8;
  3473. Κ.fillStyle = "#000000";
  3474. Κ.fillRect(0, 0, this.width, this.height);
  3475. Κ.globalAlpha = 1;
  3476. var V = this.width - this.ng.width >> 1;
  3477. var g = this.xϜ.height + 90;
  3478. Κ.drawImage(this.ng, V, g, this.ng.width, this.ng.height);
  3479. if (this.Ε4) {
  3480. this.Ε4.PΝ(Κ, W, G)
  3481. }
  3482. if (this.iΥ) {
  3483. Κ.drawImage(this.cΑ, this.cТ[0], this.cТ[1])
  3484. }
  3485. Κ.drawImage(this.xϜ, this.width - this.xϜ.width - 10, 5 + Math.sin(G / 100) * 3);
  3486. var j = t.Gx(decodeURIComponent(this.pϹ));
  3487. var d = Κ.measureText(j);
  3488. Κ.fillStyle = "#fff";
  3489. Κ.font = "24px Heiti";
  3490. Κ.fillText(j, this.width - d.width - 10, this.height - 100 - 10);
  3491. С.Iw()
  3492. },
  3493. ar: function (Ј, B) {
  3494. var Χ = В.v;
  3495. if (Χ) {
  3496. var I = B - Χ.z;
  3497. if (I < 400) {
  3498. var K = Χ.x * С.Тq;
  3499. var a = Χ.y * С.Тq;
  3500. if (a > this.height - 100 && this.Оc) {
  3501. В.v = null;
  3502. t.НЅ(this.Оc)
  3503. } else if (this.iΥ && t.PΗ(K, a, this.cТ)) {
  3504. В.v = null;
  3505. this.AΥ()
  3506. }
  3507. }
  3508. }
  3509. }
  3510. });
  3511. window.devicePixelRatio = window.devicePixelRatio || 1;
  3512. window.ΚΜ = window.innerWidth;
  3513. window.K2 = window.innerHeight;
  3514. var N = {
  3515. gΚ: 0,
  3516. st: 0
  3517. };
  3518. var С = new Best.НP({
  3519. I: Ν.I,
  3520. Ρy: "",
  3521. y8: 0,
  3522. scale: Math.max(0.5, 1 / window.devicePixelRatio),
  3523. Тq: 1,
  3524. H5: function (Ј) {
  3525. this.canvas = document.getElementById("canvas");
  3526. this.resize();
  3527. this.u6 = this.canvas.getContext("2d")
  3528. },
  3529. resize: function () {
  3530. this.wS = Math.max(this.width, this.height);
  3531. this.ϹA = Math.min(this.width, this.height);
  3532. if (window.orientation == 90 || window.orientation == -90) {
  3533. this.Sp = true
  3534. } else {
  3535. this.Sp = false
  3536. }
  3537. var z = this.canvas;
  3538. z.width = this.width;
  3539. z.height = this.height;
  3540. z.style.width = z.parentNode.style.width = this.Ϲr + "px";
  3541. z.style.height = z.parentNode.style.height = this.pB + "px";
  3542. if (this.ZР) {
  3543. this.ZР.width = this.width;
  3544. this.ZР.height = this.height;
  3545. if (this.ZР.resize) {
  3546. this.ZР.resize()
  3547. }
  3548. }
  3549. },
  3550. Сs: function (g) {
  3551. this.Ρy = g;
  3552. this.initEvent();
  3553. var Χ = new $$();
  3554. Χ.Ϻ(this);
  3555. this.fs(Χ)
  3556. },
  3557. initEvent: function () {
  3558. window.addEventListener("keydown", function (Τ) {
  3559. e[Τ.keyCode] = true
  3560. }, true);
  3561. window.addEventListener("keyup", function (Ј) {
  3562. e[Ј.keyCode] = false
  3563. }, true);
  3564. s();
  3565. Ζ()
  3566. },
  3567. NР: function () {
  3568. },
  3569. ar: function (j, f) {
  3570. if (e[D.P]) {
  3571. this.pause()
  3572. }
  3573. if (e[D.R]) {
  3574. this.PІ()
  3575. }
  3576. if (this.ZР) {
  3577. this.ZР.ar(j, f)
  3578. }
  3579. },
  3580. update: function (h, Е) {
  3581. E.update();
  3582. if (this.ZР) {
  3583. this.ZР.update(h, Е)
  3584. }
  3585. },
  3586. PΝ: function (Ϲ, q) {
  3587. var m = this.u6;
  3588. if (this.ZР) {
  3589. this.ZР.PΝ(m, Ϲ, q)
  3590. }
  3591. }
  3592. });
  3593. var e = {};
  3594. var D = {
  3595. A: 65,
  3596. D: 68,
  3597. P: 80,
  3598. R: 82
  3599. };
  3600. var l, n;
  3601. var c;
  3602. window.ЅЕ = function (z) {
  3603. if (c) {
  3604. clearTimeout(c)
  3605. }
  3606. c = setTimeout(function () {
  3607. window.ϜΥ()
  3608. }, 10)
  3609. };
  3610. window.ϜΥ = function () {
  3611. t.sΒ();
  3612. setTimeout(function () {
  3613. С.Ϲr = window.innerWidth;
  3614. С.pB = window.innerHeight;
  3615. С.width = Ν.width = 640;
  3616. С.Тq = С.width / С.Ϲr;
  3617. С.height = Ν.height = С.pB * С.Тq;
  3618. window.scrollX = 0;
  3619. window.scrollY = 0
  3620. }, 10)
  3621. };
  3622. window.onload = function () {
  3623. l = $id("container");
  3624. n = $id("info");
  3625. ResourcePool.add("page", $id("page"));
  3626. Ν.yC = t.kΤ();
  3627. var h = t.tЅ();
  3628. С.TM = h.TM;
  3629. С.H4 = typeof WeixinJSBridge != "undefined";
  3630. С.Νl = typeof eg != "undefined" && window.parent != window;
  3631. С.Ϲr = window.innerWidth;
  3632. С.pB = window.innerHeight;
  3633. if (!("ontouchstart" in window) && window.location.href.indexOf("file:\/\/") === 0) {
  3634. С.Ϲr = 320;
  3635. С.pB = 416
  3636. }
  3637. С.width = Ν.width;
  3638. С.Тq = С.width / С.Ϲr;
  3639. С.height = Ν.height = С.pB * С.Тq;
  3640. if (С.Νl) {
  3641. } else if (С.H4) {
  3642. L()
  3643. }
  3644. С.Ϻ();
  3645. С.start()
  3646. }