-
Notifications
You must be signed in to change notification settings - Fork 0
/
forca.js
211 lines (184 loc) · 30.6 KB
/
forca.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
anim=[
/*0*/ "<path d=\"m 79.35654,64.596386 c -21.90579,0.992711 -22.25,42.593754 -22.25,42.593754 -2.40152,5.74051 -11.27761,7.27252 -16.34375,17.71875 -6.63426,13.67964 -5.54542,8.59916 -11.21875,22.625 -2.01827,6.10008 -0.41279,19.62961 -1.09375,27.875 -1.32203,11.45629 0.28945,25.64821 -1.90625,36.71875 -0.40232,2.02848 -0.0762,7.26406 -0.65625,9.15625 -2.45842,13.58187 -2.13538,24.05291 -0.90625,31.59375 3.24265,19.00188 13.27096,31.077 19.34375,46.65625 22.49821,28.74559 -2.7763,28.84777 -11.4375,36.6875 -4.01832,5.93821 -25.44179,1.00825 -21.21875,17.9375 8.10892,9.59748 13.91459,23.75626 20.375,29.625 0.0622,1.17019 -0.67347,2.29732 -0.6875,3.375 -0.0155,1.18866 4.17265,2.13963 3.375,2.875 -8.00646,7.38133 -13.80674,18.27668 -12.625,21.34375 1.20269,3.12148 12.27199,6.41809 38.75,7.3125 1.80066,0.0727 32.08082,5.50132 27.8125,-4.625 -3.76732,-2.25833 -12.56678,-5.26075 -18.15625,-6.5 -6.42443,-1.42437 -9.14452,-8.48171 -14.5625,-15.59375 6.09074,0.10514 13.66478,1.60905 14.96875,-1.0625 5.52261,-12.56207 3.55686,-38.61979 11.71875,-51.5 7.89582,-12.46033 20.22831,-15.93125 27.125,-24.53125 6.27771,-5.50841 7.76438,-16.99936 3.375,-24.625 -5.65148,-9.32504 -11.30265,-16.96272 -16.46875,-23.1875 5.31061,-2.22854 8.45039,2.09007 7.34375,-19.4375 -5.0399,-7.7567 -9.51441,-12.71506 -12.4375,-19.09375 -8.72189,-19.03268 -13.48736,-18.8425 -11.875,-33 0.99071,-8.69905 5.14189,-23.92721 4.9375,-49.375 -1.29297,-7.89418 -6.07888,-8.9942 -7.34375,-16.125 -1.35909,-7.66198 -0.63143,-13.2627 4.5625,-13.28125 4.00482,-0.0143 5.08808,6.63801 10.9375,2.53125 3.64027,-2.55576 4.3587,-3.02202 7.09375,-10.21875 0.28749,-0.75647 3.95268,-0.45478 4.1875,-1.25 0.86548,-2.93086 0.11759,-8.61968 0.125,-12 0.0191,-8.74261 4.64165,-19.771694 -12.25,-28.062504 -4.83207,-2.371691 -9.00917,-3.318694 -12.59375,-3.15625 z m 3.09375,180.218754 c 14.82143,4.91071 11.4375,17.125 11.4375,17.125 l -11.4375,-17.125 z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />",
/*1*/ "<path d=\"M 78.69131,54.938743 C 53.66923,55.643475 59.78506,87.15749 59.78506,87.15749 l -9.28125,16.4375 c 1.66551,-0.83276 -15.35738,12.47868 -22.3125,33.5 -4.97622,15.04026 0.76447,35.7629 -3.40625,50.0625 -10,34.28572 -8.5625,57.875 -8.5625,57.875 0,0 33.58928,79.97767 22.875,86.40625 -10.71429,6.42857 -7.15625,21.4375 -7.15625,21.4375 0,0 -2.38037,17.49115 -6.35786,37.87797 -0.25206,1.29193 4.40483,-0.81429 1.46909,4.03164 -0.54572,0.90079 -2.22038,1.81112 -2.45625,2.8488 -2.60163,4.35218 -3.81458,10.48579 -3.18623,12.11659 1.20269,3.12148 12.27199,6.41809 38.75,7.3125 1.80066,0.0727 32.08082,5.50132 27.8125,-4.625 -3.76732,-2.25833 -12.56678,-5.26075 -18.15625,-6.5 -5.30064,-1.17521 -8.11562,-6.19489 -11.96875,-11.90625 l 1.3125,-29.1875 c 8.67565,6.98044 49.93291,9.50796 23.125,-7.125 -8.39599,-6.46912 -15,-17.34375 -15,-17.34375 l 3.125,-5.1875 c 4.51864,3.92495 8.59353,4.72914 11.6875,-0.84375 l 38.6875,-53.3125 c 2.79615,-1.79235 4.19622,-4.51482 2.71875,-9.15625 l -2.96875,-8.9375 c -1.52407,-5.48087 -2.98977,-7.98286 -8.5,-10.5 l -20.8125,-13.125 c 0,0 -11.88116,-11.6312 -19.8125,-17.875 -4.41463,-3.47534 -1.27367,-14.01508 0.96875,-19.375 1.71916,2.94936 18.46781,10.16539 32.28125,23 3.82836,3.55707 2.52796,13.69377 6.1875,18.46875 2.66583,3.47838 8.8637,7.55893 11.8125,6.125 7.59085,-8.4687 10.21618,-18.24656 0.15625,-25.1875 -18.54164,-11.65791 -28.89154,-32.4795 -42.3125,-49.4375 0,0 6.50137,-17.09972 3.96875,-32.5625 -2.68225,-16.3764 -11.47422,-27.95526 -2.875,-27.8125 4.00429,0.0665 9.34744,0.80648 11.15625,-1.40625 2.81505,-3.44368 4.63995,-6.36576 7.375,-13.5625 0.28749,-0.75647 3.95268,-0.45478 4.1875,-1.25 0.86548,-2.93086 0.0863,-8.61968 0.0937,-12 0.0191,-8.742603 2.53179,-25.032143 -10.78125,-29.093747 -5.92634,-1.808036 -10.84298,-2.52157 -14.9375,-2.40625 z m -6.40625,219.906247 10.5625,3.375 -7.875,8.59375 -2.6875,-11.96875 z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />",
/*2*/ "<path d=\"m 66.46186,96.11733 c 6.67042,-8.68886 9.07961,-12.851921 9.82142,-19.464268 0,0 -9.73214,-41.071433 32.41072,-28.21429 13.31304,4.061604 11.51841,18.579562 11.49926,27.322168 -0.007,3.380317 0.74999,9.0662 -0.11549,11.99705 -0.23482,0.79522 -3.88996,0.50025 -4.17745,1.25672 -2.73505,7.19673 -3.66884,11.00962 -6.48389,14.4533 -1.80881,2.21273 -7.16456,1.46579 -11.16885,1.39931 -8.59922,-0.14276 -0.49806,13.74308 2.18419,30.11948 2.53262,15.46278 -2.54134,27.20195 -2.54134,27.20195 18.59953,15.35085 28.23598,35.10412 46.77762,46.76203 10.05993,6.94094 8.84895,14.41213 1.2581,22.88083 -1.32429,0.64397 -8.46141,0.51022 -10.46215,-3.45607 -2.96222,-5.87234 -10.06002,-10.05379 -11.52864,-11.97005 -3.65954,-4.77498 1.02323,-3.30366 -2.80513,-6.86073 -13.81344,-12.83461 -31.43135,-17.88879 -33.15051,-20.83815 -2.24242,5.35992 -5.40501,15.9037 -0.99038,19.37904 l 14.86295,14.99873 20.13629,16.8671 c 10.27161,8.27833 18.86185,16.99415 18.2653,31.00465 -7.58758,19.71718 -15.87353,39.74765 -18.72775,61.15306 -2.74208,4.42924 -4.48274,2.27323 -9.93755,1.39083 -2.29874,2.86542 -1.88942,7.08487 -0.85216,11.61829 0,0 13.03503,5.43405 21.43102,11.90317 27.20645,15.39258 -49.01155,13.42909 -55.14523,-1.62437 -0.7557,-1.85465 23.1347,-67.88319 23.39504,-84.81455 -4.16373,-4.1682 -19.11723,-9.26685 -19.51485,-9.42271 -1.62568,-0.63724 -0.0981,26.75207 -3.7774,49.85651 -3.44959,21.66199 -12.14829,39.12975 -12.71672,38.67239 l -6.1607,36.96428 c 14.34154,22.9305 31.53953,20.59375 29.82143,26.78572 -7.1231,3.78718 -42.16624,-1.53363 -47.94644,-1.42857 -4.6631,-1.33448 -18.45467,5.25409 -13.48214,-16.42857 4.77369,-21.23635 7.96662,-43.21924 9.47476,-65.35023 0.76832,-11.27452 4.63491,-20.18836 4.51495,-31.46064 -0.21156,-19.8798 -5.36142,-42.03216 -8.45399,-61.22485 -0.83758,-0.32573 -6.85517,-16.5483 7.81381,-49.01831 2.18471,-4.83588 -0.70287,-13.05624 -0.71159,-20.69019 -0.006,-5.10362 3.16055,-9.24681 3.01903,-14.52304 -0.241,-8.98506 -0.18803,-17.59413 1.83024,-23.69421 6.95512,-21.02132 23.99973,-34.33557 22.33422,-33.50281 z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />",
/*3*/ "<path d=\"m 81.44499,92.07673 c 6.67042,-8.688865 9.07961,-12.851931 9.82142,-19.464278 0,0 -9.73214,-41.071433 32.41072,-28.21429 13.31304,4.061604 11.51841,18.579562 11.49926,27.322168 -0.007,3.380317 0.74999,9.066197 -0.11549,11.997053 -0.23482,0.795217 -3.88996,0.500247 -4.17745,1.256717 -2.73505,7.19674 -3.66884,9.40248 -6.48389,12.84616 -1.80881,2.21273 -7.16456,1.46579 -11.16885,1.39931 -8.59922,-0.14276 -1.92663,14.27879 0.75562,30.65519 2.53262,15.46278 -2.36277,31.30909 -2.36277,31.30909 18.59953,15.35085 22.52169,31.88984 41.06333,43.54775 10.05993,6.94094 8.84895,14.41213 1.2581,22.88083 -1.32429,0.64397 -8.46141,0.51022 -10.46215,-3.45607 -3.60006,-11.84136 -10.28673,-17.00126 -14.33377,-18.83078 -13.81344,-12.83461 -22.14563,-12.88879 -23.86479,-15.83815 -3.24806,6.20469 -2.71163,21.825 -0.48642,28.02188 21.32379,28.93059 39.95057,53.05704 37.15273,66.49838 -8.71259,24.09772 -20.37563,50.75662 -24.10205,65.48946 -1.30397,2.67155 -2.68609,1.3174 -8.77683,1.21226 -1.35044,3.01131 -0.36874,1.15124 -1.38788,5.36829 0,0 12.05289,12.84476 25.53816,16.63531 7.01674,3.96986 7.60264,9.86189 3.17673,9.8632 l -22.80869,0.007 c -2.20608,6.5e-4 -19.7268,-4.68049 -30.19823,-6.15131 -3.9228,-0.551 -6.1636,-3.66803 -7.10075,-5.96801 -1.80912,-7.15259 2.92355,-12.76612 6.90984,-18.88552 0.30541,-0.46884 1.73827,0.72797 2.51516,-0.16672 0.83735,-0.96433 1.01371,-4.02629 1.11117,-4.64052 0.18708,-1.17906 -2.24084,-0.89282 -2.07176,-2.07439 3.43218,-23.98468 17.40681,-46.45952 20.96395,-61.11954 -3.86807,-10.24793 -10.87778,-13.12307 -10.87778,-13.12307 0,0 -0.71756,23.86265 -2.7335,36.52187 -11.63466,21.46357 -22.652,43.40727 -25.86477,71.4212 l -5.79309,0.19572 -0.43385,5.62689 c 4.69869,32.9305 24.75382,23.62947 21.25001,31.96429 -8.10881,0.25642 -19.13006,1.44144 -28.38127,-1.30006 -12.18534,-3.61101 -22.77933,-13.19312 -26.55491,-23.00979 -1.11432,-2.89726 3.21215,-12.3978 7.50828,-15.40511 2.12947,0.055 2.46566,-2.22228 2.30271,-2.69677 -0.15495,-0.45118 -2.09089,-1.14644 -1.96405,-1.59663 8.80706,-31.25841 21.22029,-56.8292 23.27437,-73.74921 -0.87513,-21.99213 -6.27778,-43.23923 -10.29228,-64.921 -0.78411,-0.30494 -6.10798,-14.54185 5.25067,-42.99838 0.58008,-1.89219 3.4589,-2.47311 3.86122,-4.50159 2.1957,-11.07054 -0.31267,-25.27528 1.00936,-36.73157 4.43096,-6.45968 -0.18803,-17.59413 1.83024,-23.69421 6.95512,-21.02132 23.99973,-34.33556 22.33422,-33.5028 z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />",
/*4*/ "<path d=\"m 110.2884,71.515975 c 0,0 -10.08929,-38.035719 32.05357,-25.178576 13.31304,4.061604 11.51841,18.579562 11.49926,27.322168 -0.007,3.380317 0.74999,9.066197 -0.11549,11.997053 -0.23482,0.79522 -3.88996,0.50025 -4.17745,1.25672 -2.73505,7.19674 -3.66884,9.40248 -6.48389,12.84616 -1.80881,2.21273 -7.16403,1.38501 -11.16885,1.39931 -10.02779,0.0358 -1.92662,14.27879 0.75562,30.65519 2.53262,15.46278 -3.96991,39.3448 -3.96991,39.3448 4.67096,10.35085 15.20026,27.7827 27.49191,43.19061 5.23405,3.61129 7.45179,15.30515 4.90739,19.17656 -2.34597,3.5695 -9.29358,1.96316 -12.75643,3.34713 -1.32429,0.64397 -2.03285,-2.70407 -4.03359,-6.67036 -1.27589,-2.33423 -2.36243,-4.38807 -3.29416,-6.20437 -1.20862,-2.35607 0.34327,-2.52672 -0.41971,-4.17695 -5.4593,-8.87365 -10.72037,-16.73238 -18.05612,-24.46618 -3.24806,6.20469 -1.28306,17.89643 0.94215,24.09331 15.96665,33.57345 28.34343,68.41418 25.54559,81.85552 -8.71259,24.09772 -15.37563,43.61377 -19.10205,58.34661 -1.30397,2.67155 -5.7218,0.42454 -11.81254,0.3194 -2.98983,9.63439 1.49491,15.24069 7.50133,18.99539 15.9406,9.9647 34.14679,18.00085 -10.68124,13.51256 -3.9228,-0.55099 -30.80646,-7.23946 -31.74361,-9.53944 2.3734,-10.69688 9.2539,-21.36952 10.69673,-25.54743 0.55429,-1.60501 -2.59084,2.2318 -6.28013,9.55217 l -5.79309,-3.91142 c -1.15291,0.65452 -2.07854,3.12731 -2.75528,7.59118 4.69869,32.9305 11.18239,27.20089 7.67858,35.53571 -10.63809,4.49561 -26.68717,-25.11724 -38.15047,-38.68485 -5.17682,-7.13833 9.86394,-13.42458 14.16007,-16.43189 2.12947,0.0551 2.46566,-2.22228 2.30271,-2.69677 -0.15495,-0.45118 -0.8382,-1.13581 -0.62477,-1.55199 4.89272,-9.54013 30.8428,-34.50777 34.0333,-51.42778 -0.87513,-21.99213 -25.15341,-46.19509 -29.70362,-58.234 -0.78411,-0.30494 -6.69664,-11.58599 4.66201,-40.04252 0.58008,-1.89219 0.24462,-7.11597 0.64694,-9.14445 2.1957,-11.07054 0.58018,-25.27528 1.90221,-36.73157 0.68096,-8.24539 -0.54517,-19.73699 1.4731,-25.83707 4.48301,-15.16442 13.85216,-18.4714 22.34189,-30.70049 2.95152,-4.25152 9.13666,-17.797744 10.52804,-23.159445 z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />",
/*5*/ "<path d=\"m 124.48292,17.603424 c 18.813,0.371136 16.751,13.522407 17.9008,22.189092 0.4446,3.350962 1.9554,8.884546 1.4895,11.904799 -0.1264,0.819474 -3.9145,0.258195 -4.0982,1.046309 -1.7484,7.49778 -3.4574,7.893529 -5.5622,11.811851 -2.6064,4.851905 -6.5464,0.775865 -10.902,1.325445 -2.5146,0.31727 -4.1303,5.9093 -1.1509,6.21645 1.1388,2.44225 2.9309,5.39377 4.145,9.18871 2.2068,6.89769 10.0464,14.51347 12.3832,22.16393 3.6046,25.19203 1.5145,46.84822 1.6957,55.60164 3.8489,6.91315 1.8018,19.173 1.0561,27.68598 -3.3346,38.0661 -2.974,64.01056 -4.1431,84.92771 -0.3463,6.19451 0.5129,12.28406 0.0602,16.89573 -2.0604,20.98825 -6.6523,28.96655 -12.9043,64.63507 -0.7895,2.38242 -1.152,1.22002 -7.7918,2.57352 -1.2249,0.24968 -0.3235,3.40849 -1.2657,3.51909 7.1945,8.29424 16.6325,13.44398 30.3432,16.20848 5.5838,9.46478 -14.4058,5.05257 -16.2,5.22121 -26.3599,2.65348 -37.750201,0.86893 -39.359401,-2.06374 -1.5812,-2.88155 -3.3565,-12.75719 4.1556,-19.38338 2.5466,-2.24621 1.8931,-4.68352 1.7495,-5.86358 -6.8532,-1.39971 -1.8429,-38.5316 6.765201,-65.72177 -4.470701,-20.79696 -0.2797,-59.81708 -6.220501,-77.89726 -2.2262,-7.30882 -4.9651,-14.44985 -4.3445,-28.23846 0.3219,-1.95275 2.3094,-8.7533 2.4369,-10.81734 0.696,-11.26471 -2.7325,-24.59506 -2.9539,-36.12525 -0.4275,-8.26242 -3.8244,-21.43845 -2.6398,-27.75361 3.7473,-14.6584 0.4103,-16.64387 5.1561,-31.08764 0.9762,-2.97088 2.649,-5.56217 3.8345,-6.73315 1.6424,-1.62244 3.119401,-4.376595 3.583401,-5.478225 0.4697,-1.115356 -0.0274,-3.467943 -1.0125,-5.360996 C 98.142119,54.001661 98.962919,46.365845 99.960719,41.168048 102.35352,23.183396 105.72662,16.839103 124.48292,17.603424 Z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />"
];
v= /*-1*/ "<path d=\"m 66.513815,54.719324 c 18.813,0.371136 16.751,13.522407 17.9008,22.189092 0.4446,3.350962 1.9554,8.884546 1.4895,11.904799 -0.1264,0.819474 -3.9145,0.258195 -4.0982,1.046309 -1.7484,7.49778 -3.4574,7.893529 -5.5622,11.811846 -2.6064,4.85191 -6.5464,0.77587 -10.902,1.32545 -2.5146,0.31727 -4.1303,5.9093 -1.1509,6.21645 1.1388,2.44225 2.9309,5.39377 4.145,9.18871 2.2068,6.89769 10.0464,14.51347 12.3832,22.16393 3.6046,25.19203 1.5145,46.84822 1.6957,55.60164 3.8489,6.91315 1.8018,19.173 1.0561,27.68598 -3.3346,38.0661 -2.974,64.01056 -4.1431,84.92771 -0.3463,6.19451 0.5129,12.28406 0.0602,16.89573 -2.0604,20.98825 -6.6523,28.96655 -12.9043,64.63507 -0.7895,2.38242 -1.152,1.22002 -7.7918,2.57352 -1.2249,0.24968 -0.3235,3.40849 -1.2657,3.51909 7.1945,8.29424 16.6325,13.44398 30.3432,16.20848 5.5838,9.46478 -14.4058,5.05257 -16.2,5.22121 -26.3599,2.65348 -37.750201,0.86893 -39.359401,-2.06374 -1.5812,-2.88155 -3.3565,-12.75719 4.1556,-19.38338 2.5466,-2.24621 1.8931,-4.68352 1.7495,-5.86358 -6.8532,-1.39971 -1.8429,-38.5316 6.765201,-65.72177 -4.470701,-20.79696 -0.2797,-59.81708 -6.220501,-77.89726 -2.2262,-7.30882 -4.9651,-14.44985 -4.3445,-28.23846 0.3219,-1.95275 2.3094,-8.7533 2.4369,-10.81734 0.696,-11.26471 -2.7325,-24.59506 -2.9539,-36.12525 -0.4275,-8.26242 -3.8244,-21.43845 -2.6398,-27.75361 3.7473,-14.6584 0.4103,-16.64387 5.1561,-31.08764 0.9762,-2.97088 2.649,-5.56217 3.8345,-6.73315 1.6424,-1.62244 3.119401,-4.37659 3.583401,-5.47822 0.4697,-1.115361 -0.0274,-3.467948 -1.0125,-5.361001 C 40.173014,91.117561 40.993814,83.481745 41.991614,78.283948 44.384415,60.299296 47.757515,53.955003 66.513815,54.719324 Z\" id=\"homi\" style=\"fill:#000000;stroke:none\" />"
i=0;
ne=0;
na=0;
meta=0;
m= [
/*0*/ "<path id=\"homi\" d=\"m 302.9111,-316.86385 1.97851,339.888662 c -0.073,3.09542 -1.94431,4.06361 -2.61328,5.13672 -0.99968,1.87347 -0.91599,6.97064 -0.76562,10.0293 -5.55845,11.69699 -5.95326,18.89249 -9.41993,32.453118 -1.1846,6.31516 -1.78687,19.49149 -1.35937,27.75391 0.2214,11.53019 5.64912,24.86029 4.95312,36.125 -0.1275,2.06404 -2.1156,8.86561 -2.4375,10.81836 -0.6206,13.78861 1.38904,23.2947 3.61524,30.60352 3.58545,12.10335 4.27749,23.54291 4.55469,35.83593 0.80371,35.64241 -2.98226,70.24266 -0.36914,105.41797 1.59687,7.08722 -6.80556,11.06118 -4.66602,23.11719 1.36564,3.0537 12.57222,5.75915 39.06055,5.25586 1.80197,-0.0223 21.36871,5.99844 16.57226,-3.88867 -13.4408,-3.86919 -22.43081,-9.76785 -28.92773,-18.61914 0.94807,-0.0337 0.3077,-3.25691 1.54883,-3.40625 6.72781,-0.80963 3.98979,-0.28946 4.77929,-2.67188 7.61735,-42.67348 19.57268,-108.48017 16.98828,-166.45703 0.7457,-8.51298 2.79226,-20.77435 -1.05664,-27.6875 -0.1812,-8.75342 1.90929,-30.40953 -1.69531,-55.60156 -2.3368,-7.650458 -5.05296,-16.053478 -7.25976,-22.951168 -1.2141,-3.79494 -4.59227,-5.6407 -5.33008,-8.23243 -2.89321,-0.77494 -0.41203,-6.04183 2.12109,-5.95703 4.38768,0.14688 7.63103,4.79608 10.97266,0.41797 2.69856,-3.5357 4.44996,-3.65675 7.36328,-10.7832 0.30614,-0.74909 3.9564,0.40436 4.21094,-0.38477 0.93815,-2.90841 0.32256,-8.61115 0.41406,-11.99023 0.23671,-8.73943 4.3549,-21.39747 -14.16211,-24.74219 -18.39878,-3.72396 -22.73361,2.00571 -27.94336,19.38477 -1.80807,4.97429 -3.82766,12.38307 -1.97656,16.92578 0.67299,2.02513 0.79268,4.42814 0.15234,5.45508 -0.11383,0.18253 -0.30993,0.4542 -0.49805,0.71679 -0.15945,-0.15057 -0.34956,-0.29721 -0.5957,-0.43359 l -0.34375,-341.529292 -7.86523,0 z\" style=\"fill:#000000;stroke:none\" />",
/*1*/ "<path id=\"homi\" d=\"m 315.57615,-246.62805 1.97851,339.88671 c -0.073,3.09541 -1.94431,4.06556 -2.61328,5.13867 -0.66924,1.25421 0.11453,4.09564 1.14258,6.81055 -0.39929,0.60088 -0.78375,1.23943 -1.12891,1.90821 -6.97253,13.51033 -11.11794,20.7205 -14.86524,35.3789 -1.1846,6.31516 -1.78687,19.49149 -1.35937,27.75391 0.2214,11.53019 5.64912,24.86029 4.95312,36.125 -0.1275,2.06404 -2.11364,8.86561 -2.43554,10.81836 -0.6206,13.78861 1.38903,23.29469 3.61523,30.60351 0.58716,1.98207 7.20394,3.94524 7.82617,5.89844 3.17738,9.97392 0.49475,19.65956 0.72656,29.93946 0.77167,34.22094 -2.68799,67.48013 -0.65234,101.21093 0.0846,1.4011 3.9679,2.26864 3.7754,3.66211 0.074,7.26452 -5.76935,1.53896 -8.07423,13.56446 0.18564,3.34 9.69032,9.86651 34.61329,18.85156 1.69121,0.62238 17.81838,13.23108 16.86718,2.2832 -3.80646,-2.9184 -26.52734,-24.69532 -23.31054,-31.69531 6.72781,-0.80963 3.99175,-0.28946 4.78125,-2.67188 7.61734,-42.67348 19.57072,-108.48212 16.98632,-166.45898 0.7457,-8.51298 2.79421,-20.7724 -1.05469,-27.68555 -0.1812,-8.75342 1.90733,-30.40953 -1.69727,-55.60156 -2.3368,-7.65046 -5.05101,-16.05544 -7.2578,-22.95313 -1.2141,-3.79494 -4.59422,-5.64069 -5.33203,-8.23242 -2.89321,-0.77494 -0.41203,-6.04183 2.12109,-5.95703 4.38767,0.14688 7.63297,4.79608 10.9746,0.41797 2.69856,-3.5357 4.44801,-3.65675 7.36133,-10.7832 0.30614,-0.74909 3.95835,0.40631 4.21289,-0.38282 0.93815,-2.90841 0.32256,-8.61311 0.41406,-11.99219 0.23671,-8.73943 4.3549,-21.397465 -14.1621,-24.742185 -18.39877,-3.72396 -22.7336,2.00571 -27.94335,19.384755 -0.85703,2.35783 -1.75033,5.26295 -2.26758,8.15041 l -0.33008,-328.63086 -7.86523,0 z m 8.20312,336.58398 c 0.0824,0.28301 0.17538,0.55961 0.2832,0.82422 0.5376,1.61771 0.7137,3.46436 0.43946,4.66992 -0.17602,-0.19267 -0.40701,-0.37719 -0.7168,-0.54883 l -0.006,-4.94531 z\" style=\"fill:#000000;stroke:none\" />",
/*2*/ "<path style=\"fill:#000000;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" d=\"m 316.29899,-166.33645 1.97876,336.62687 c -0.073,3.06572 -1.9442,4.02555 -2.61317,5.08837 -1.45954,2.70905 -0.81227,3.55035 -0.81227,3.55035 -7.86786,3.00662 -20.8845,12.40774 -23.31513,18.40041 -10.4328,28.7515 -13.81155,78.49579 -9.63406,109.65719 0.21816,1.62436 1.24922,5.06545 1.28023,10.49375 0.0204,3.54288 -2.67969,14.90829 -1.89248,17.27754 2.44959,7.37238 9.74513,16.59853 17.20721,11.54935 0.79115,-0.28141 6.90011,-1.39641 5.10325,-10.58789 -0.44016,-2.25165 -0.23074,-4.54181 0.13001,-6.58267 0.47644,-2.69547 0.24432,-10.87672 0.10046,-12.03929 -0.44001,-3.55561 -2.23141,-1.71772 -2.46604,-6.53041 -1.11503,-22.8723 3.38859,-43.05501 3.4495,-52.79883 0.0255,1.78548 0.0274,26.36146 0.007,28.9649 -0.0126,3.94793 -2.56558,15.01915 -3.24776,19.31282 -1.74952,11.36189 4.94719,25.17312 8.33765,37.28354 0.6501,2.32188 -0.6332,6.97038 -0.1875,8.4375 -3.8323,31.16313 0.55425,49.20461 4.90625,74.9375 0.6465,3.82258 -1.28758,30.92263 -0.875,35 0.0744,0.73505 4.06443,1.42787 3.98871,2.08785 -0.61462,5.35699 -5.56287,8.55023 -4.92621,14.59965 1.8363,5.95922 29.05275,42.47223 31.71875,34.90625 0.37703,-1.06988 1.40739,-2.27746 1.45745,-3.46968 0.0788,-1.87508 -2.42879,-4.09354 -1.51995,-5.90532 3.8361,3.50367 6.8124,5.12583 7.5,2.84375 0.26414,-0.87676 1.7287,-2.50976 1.7661,-3.49603 0.40977,-10.80744 -12.91519,-26.92439 -10.98485,-37.28522 7.4555,-54.56702 9.1259,-94.44234 7.5,-116.53125 3.4861,-28.76758 9.79525,-54.96417 -0.22834,-76.86162 -7.0977,-15.50558 8.28369,-35.65477 -7.11541,-68.38838 0.77436,-2.25072 -1.22424,-5.04858 -3.4707,-7.99023 -0.44672,-0.58496 -0.9032,-1.17652 -1.34961,-1.76953 -0.79597,-1.05736 -1.56047,-2.12309 -2.17969,-3.17774 0.47265,-0.40503 1.04599,-0.74377 1.63477,-0.96679 0.91615,-0.34701 1.87098,-0.41265 2.55273,-0.002 3.71209,2.23584 4.1503,7.86062 9.25,5.625 4.118,-1.8055 5.6916,-1.05424 11.8125,-5.90625 0.6434,-0.51005 3.1936,2.25746 3.8125,1.6875 2.2817,-2.10062 4.6486,-7.39244 6.4375,-10.3125 4.6275,-7.55217 14.5993,-16.67421 0.3125,-28.5 -6.1218,-5.2945 -10.86365,-7.71343 -15.34375,-7.6875 -5.7602,0.0333 -11.11725,4.0824 -18.59375,11.25 -4.078,3.49498 -9.57975,9.03269 -10.28125,13.90625 0.10867,1.07526 -1.78892,3.68777 -1.78892,3.68777 0.0541,-0.65862 -0.0443,-1.49384 -1.20801,-2.13242 l -0.34487,-338.2526 z\" id=\"homi\" />",
/*3*/ "<path id=\"homi\" d=\"m 316.26051,-79.669372 1.97851,337.984382 c -0.073,3.0781 -1.94431,4.04226 -2.61328,5.10937 -1.33234,2.48294 -0.92374,3.36236 -0.83984,3.50391 -0.9402,1.14026 -1.83166,2.38363 -2.41993,3.52344 -6.97253,13.51033 -13.11793,20.7205 -16.86523,35.3789 -1.1846,6.31516 -1.78688,19.49149 -1.35938,27.75391 0.2214,11.53019 7.64913,24.86029 6.95313,36.125 -0.1275,2.06404 -2.11365,8.86561 -2.43555,10.81836 -0.6206,13.78861 -0.61096,29.29469 1.61524,36.60351 0.58716,1.98207 7.20394,3.94524 7.82617,5.89844 3.17737,9.97392 2.49475,13.65956 2.72656,23.93946 0.77166,34.22094 -2.68799,67.48013 -0.65234,101.21093 0.0846,1.4011 3.96789,2.26864 3.77539,3.66211 -3.27617,4.70262 -2.837,2.89423 -4.79883,7.71289 -0.57117,6.76461 26.78868,23.26061 33.75586,31.33008 4.29022,4.19195 10.06463,8.59791 11.17187,1.50781 -0.89217,-1.11436 -2.95829,-4.27048 -5.33593,-8.33984 0,0 2.28436,-0.0635 0.68554,-3.74414 -4.97454,-9.15425 -13.29541,-21.30093 -11.38281,-25.46289 0,0 -0.008,-0.28946 0.78125,-2.67188 7.61735,-42.67348 19.57073,-108.48212 16.98633,-166.45898 0.7457,-8.51298 2.79421,-20.7724 -1.05469,-27.68555 -6.13804,-5.17931 1.23621,-30.00685 -1.69726,-55.60156 -2.3368,-7.65046 -5.05102,-16.05544 -7.25782,-22.95313 -1.2141,-3.79494 -4.59422,-5.64069 -5.33203,-8.23242 -2.89321,-0.77494 0.076,-4.24373 2.42383,-3.28906 4.06679,1.6536 5.50791,7.13777 10.15625,4.18359 3.75387,-2.38577 5.5611,-2.83636 10.17188,-9.00195 0.48457,-0.64811 4.03539,3.17215 4.54687,2.51953 1.88513,-2.40526 3.27805,-7.96994 4.53125,-11.10937 3.24125,-8.1196 11.47739,-18.57565 -4.74414,-28.11133 -15.97956,-9.85071 -22.02716,-5.97028 -32.91992,8.53906 -3.41518,4.04342 -7.86898,10.29866 -7.70117,15.20117 -0.058,1.81744 -1.49754,5.42014 -2.4668,6.9668 l -0.34375,-336.810552 -7.86523,0 z\" style=\"fill:#000000;stroke:none\" />",
/*4*/ "<path id=\"homi\" d=\"m 327.34711,-13.621938 1.97876,344.423848 c -0.073,3.13672 -1.9442,4.11879 -2.61317,5.20622 -1.45954,2.7718 -0.81227,3.63259 -0.81227,3.63259 -7.86786,3.07626 -20.8845,12.69513 -23.31513,18.8266 -10.4328,29.41744 -11.41545,78.85872 -12.34375,111.01308 -0.048,1.67618 0.4117,5.32141 -0.4375,10.80715 -0.5541,3.58039 -5.06056,14.60753 -4.66776,17.13016 1.2223,7.84961 6.92603,18.37448 15.10781,14.5141 0.8263,-0.15292 7.0352,-0.2656 6.75183,-9.84361 -0.0694,-2.34633 0.50844,-4.62383 1.19519,-6.62452 0.90702,-2.64243 2.00397,-10.94099 2.05043,-12.13862 0.1421,-3.66283 -1.9235,-2.10431 -1.375,-7.00227 2.6068,-23.27756 2.11003,-49.64266 6.99683,-61.43475 2.0495,2.16081 2.19513,31.90297 0.56443,35.05369 -1.00788,4.77784 -3.12298,15.36702 -3.80516,19.76014 -1.74952,11.62506 4.94719,25.75618 8.33765,38.14711 0.6501,2.37565 -0.6332,7.13182 -0.1875,8.63292 -3.8323,31.88494 0.55425,50.34429 4.90625,76.67321 0.6465,3.91112 -1.28758,31.63886 -0.875,35.81067 0.0744,0.75208 4.06443,1.46094 3.98871,2.13621 -0.61462,5.48107 -5.56287,8.74827 -4.92621,14.93781 1.8363,6.09725 29.05275,43.45597 31.71875,35.71475 0.36902,-1.07143 1.8171,-2.06694 1.87212,-3.25857 0.0896,-1.94063 -1.44343,-4.1658 -1.93462,-6.33358 3.8361,3.58483 6.8124,5.24456 7.5,2.90962 0.56077,-1.9045 1.95892,-2.80018 1.59905,-5.16068 -1.66709,-10.93485 -12.55031,-27.05077 -10.8178,-36.56515 7.4555,-55.8309 9.1259,-96.62981 7.5,-119.23035 3.4861,-29.43389 9.79525,-60.3299 -0.22834,-82.73454 -7.0977,-15.86472 8.28369,-32.38796 -7.11541,-65.87974 0.77436,-2.30285 -1.22424,-5.16552 -3.4707,-8.1753 -0.44672,-0.59851 -0.9032,-1.20377 -1.34961,-1.81052 -0.79597,-1.08185 -1.56047,-2.17226 -2.17969,-3.25134 0.47265,-0.41441 1.04599,-0.761 1.63477,-0.98918 0.91615,-0.35505 1.87098,-0.42221 2.55273,-0.002 3.71209,2.28763 4.1503,8.04269 9.25,5.75529 4.118,-1.84732 5.6916,-1.07866 11.8125,-6.04306 0.6434,-0.52186 3.1936,2.30975 3.8125,1.72659 2.2817,-2.14927 4.6486,-7.56366 6.4375,-10.55136 4.6275,-7.72709 14.5993,-17.06042 0.3125,-29.16012 -6.1218,-5.41713 -10.86365,-7.89208 -15.34375,-7.86555 -5.7602,0.0341 -11.11725,4.17695 -18.59375,11.51057 -4.078,3.57593 -9.57975,9.2419 -10.28125,14.22835 0.10867,1.10016 -1.78892,3.77318 -1.78892,3.77318 0.0541,-0.67387 -0.0443,-1.52844 -1.20801,-2.18181 l -0.34487,-346.087229 z\" style=\"fill:#000000;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />"
]
nomes = [
"Afeganistão", "África do Sul", "Akrotiri", "Albânia", "Alemanha", "Andorra", "Angola", "Anguila", "Antárctida", "Antíguae Barbuda", "Antilhas Neerlandesas", "Arábia Saudita", "Argélia", "Argentina", "Arménia", "Aruba", "Ashmoreand CartierIslands", "Austrália", "Áustria", "Azerbaijão", "Baamas", "Bangladeche", "Barbados", "Barém", "Bélgica", "Belize", "Benim", "Bermudas", "Bielorrússia", "Birmânia", "Bolívia", "Bósnia e Herzegovina", "Botsuana", "Brasil", "Brunei", "Bulgária", "Burquina Faso", "Burúndi", "Butão", "Cabo Verde", "Camarões", "Camboja", "Canadá", "Catar", "Cazaquistão", "Chade", "Chile", "China", "Chipre", "Clipperton Island", "Colômbia", "Comores", "Congo-Brazzaville", "Congo-Kinshasa", "Coral Sea Islands", "Coreia do Norte", "Coreia do Sul", "Costa do Marfim", "Costa Rica", "Croácia", "Cuba", "Dhekelia", "Dinamarca", "Domínica", "Egipto", "Emiratos Árabes Unidos", "Equador", "Eritreia", "Eslováquia", "Eslovénia", "Espanha", "Estados Unidos", "Estónia", "Etiópia", "Faroé", "Fiji", "Filipinas", "Finlândia", "França", "Gabão", "Gâmbia", "Gana", "Geórgia", "Geórgia do Sul e Sandwich do Sul", "Gibraltar", "Granada", "Grécia", "Gronelândia", "Guame", "Guatemala", "Guernsey", "Guiana", "Guiné", "Guiné Equatorial", "Guiné-Bissau", "Haiti", "Honduras", "Hong Kong", "Hungria", "Iémen", "Ilha Bouvet", "Ilha do Natal", "Ilha Norfolk", "Ilhas Caimão", "Ilhas Cook", "Ilhas dos Cocos", "Ilhas Falkland", "Ilhas Hearde Mc Donald", "Ilhas Marshall", "Ilhas Salomão", "Ilhas Turcase Caicos", "Ilhas Virgens Americanas", "Ilhas Virgens Britânicas", "Índia", "Indonésia", "Irão", "Iraque", "Irlanda", "Islândia", "Israel", "Itália", "Jamaica", "Jan Mayen", "Japão", "Jersey", "Jibuti", "Jordânia", "Kuwait", "Laos", "Lesoto", "Letónia", "Líbano", "Libéria", "Líbia", "Listenstaine", "Lituânia", "Luxemburgo", "Macau", "Macedónia", "Madagáscar", "Malásia", "Malávi", "Maldivas", "Mali", "Malta", "Marianas do Norte", "Marrocos", "Maurícia", "Mauritânia", "Mayotte", "México", "Micronésia", "Moçambique", "Moldávia", "Mónaco", "Mongólia", "Monserrate", "Montenegro", "Mundo", "Namíbia", "Nauru", "Navassa Island", "Nepal", "Nicarágua", "Níger", "Nigéria", "Niue", "Noruega", "Nova Caledónia", "Nova Zelândia", "Omã", "Países Baixos", "Palau", "Panamá", "Papua-Nova Guiné", "Paquistão", "Paracel Islands", "Paraguai", "Peru", "Pitcairn", "Polinésia Francesa", "Polónia", "PortoRico", "Portugal", "Quénia", "Quirguizistão", "Quiribáti", "Reino Unido", "República Centro-Africana", "República Checa", "República Dominicana", "Roménia", "Ruanda", "Rússia", "Salvador", "Samoa", "Samoa Americana", "Santa Helena", "Santa Lúcia", "São Cristóvão e Neves", "São Marinho", "São Pedro e Miquelon", "São Tomé e Príncipe", "São Vicente e Granadinas", "Sara Ocidental", "Seicheles", "Senegal", "Serra Leoa", "Sérvia", "Singapura", "Síria", "Somália", "Spratly Islands", "Sri Lanca", "Suazilândia", "Sudão", "Suécia", "Suíça", "Suriname", "Svalbarde Jan Mayen", "Tailândia", "Taiwan", "Tajiquistão", "Tanzânia", "Timor Leste", "Togo", "Tokelau", "Tonga", "Trindade e Tobago", "Tunísia", "Turquemenistão", "Turquia", "Tuvalu", "Ucrânia", "Uganda", "Uruguai", "Uzbequistão", "Vanuatu", "Vaticano", "Venezuela", "Vietnã", "Wake Island", "Wallise Futuna", "Zâmbia", "Zimbabué"
]
function move(id, tx, ty){
var img = document.getElementById(id);
//console.log(img.getBBox().x, img.getBBox().y, (0|tx));
img.setAttribute("transform", "translate(-"+(img.getBBox().x-(0|tx))+",-"+(img.getBBox().y-(0|ty))+")")
};
function up(){
disable(true);
if(ne<4){
vAnimate = setInterval(animate,100);
}
else{
ne++;
if(ne==5){
endGame(true);
vAnimate = setInterval(animateM,80);
console.log("perdeu");
}
}
}
function animate(){
if(i>5){
clearInterval(vAnimate);
disable(false);
i=0;
ne++;
console.log(ne);
return;
}
document.getElementById("homi").outerHTML = anim[i];
document.getElementById("homi").setAttribute("transform", "translate("+(61*ne)+","+(-36*ne)+")");
i++;
}
function animateM(){
if(i>4){
clearInterval(vAnimate);
i=0;
console.log(ne);
return;
}
document.getElementById("homi").outerHTML = m[i];
i++;
}
function replaceAt(str, index, letter){
console.log(str.substring(0,index<0?0:index*7),str.substring((index<1?1:index*7),str.length) )
return str.substring(0,index<0?0:index*7)+letter+str.substring((index<0?1:index*7+1),str.length)
}
function includ(L){
if (pl.includes(L)){
for (var i=0; i<pl.length; i++ ){
if(pl.charAt(i).localeCompare(L)==0){
console.log(i);
x=replaceAt(x, i, L);
na++;
}
}
return true;
} else return false;
}
function push(bt, L){
bt.disabled = true;
pl=pl.toLocaleUpperCase();
document.getElementById("letter").innerHTML += "\t"+L;
if (L.localeCompare("A")==0){
console.log("aqui")
a1 = includ("A");
a2 = includ("Â");
a3 = includ("Á");
console.log (a1,a2,a3)
if (a1|a2|a3){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
} else
if (L.localeCompare("E")==0){
e1 = includ("E");
e2 = includ("É");
if (e1|e2){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
} else
if (L.localeCompare("I")==0){
i1 = includ("I");
i2 = includ("Í");
if (i1|i2){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
} else
if (L.localeCompare("O")==0){
o1 = includ("O");
o2 = includ("Õ");
o3 = includ("Ó");
if (o1|o2|o3){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
} else
if (L.localeCompare("U")==0){
u1 = includ("U");
u2 = includ("Ú");
if (u1|u2){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
}else
if(L.localeCompare("C")==0){
c1 = includ("C");
c2 = includ("Ç");
if (c1|c2){
bt.style.background="darkgreen"
}
else{
bt.style.background= "red";
up();
}
}else{
l=includ(L);
if (l){
bt.style.background="darkgreen"
}else{
bt.style.background= "red";
up();
}
}
if (meta==na){
console.log("venceu");
endGame(true);
}
document.getElementById("p").innerHTML = "<p>"+x+"</p>";
}
function sort(){
pl=(nomes[Math.floor(Math.random() * nomes.length)]);
x="";
x=pl.replace(/([A-ZÀ-ÿ])/ig,"_ ");
x=x.replace(/(\s)/g," ");
x=x.replace(/[\-]/g,"- ");
meta=pl.replace(/(\s|\-)/g,"").length;
document.getElementById("p").innerHTML = "<p>"+x+"</p>";
}
function endGame(st){
x=pl;
disable(true);
}
function disable(value){
var el =document.querySelectorAll('.button');
for(var i in el){
//console.log(el);
el[i].disabled=value;
}
}