game.min.js 828 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953
  1. function b(a) {
  2. throw a;
  3. }
  4. var k = void 0,
  5. p = !0,
  6. q = null,
  7. r = !1;
  8. function aa() {
  9. return function(a) {
  10. return a
  11. }
  12. }
  13. function t() {
  14. return function() {}
  15. }
  16. function y(a) {
  17. return function(c) {
  18. this[a] = c
  19. }
  20. }
  21. function A(a) {
  22. return function() {
  23. return this[a]
  24. }
  25. }
  26. function E(a) {
  27. return function() {
  28. return a
  29. }
  30. }
  31. var F = F || {};
  32. F.C = F.C || {};
  33. F.i = {};
  34. M = window;
  35. M = Object.prototype;
  36. delete window._p;
  37. F.Nb = function(a) {
  38. return document.createElement(a)
  39. };
  40. F.Ja = function(a, c, d, e) {
  41. a.addEventListener(c, d, e)
  42. };
  43. F.kK = "undefined" !== typeof require && require("fs");
  44. F.BM = function(a, c) {
  45. if (a)
  46. if (a instanceof Array)
  47. for (var d = 0, e = a.length; d < e && c.call(k, a[d], d) !== r; d++);
  48. else
  49. for (d in a)
  50. if (c.call(k, a[d], d) === r) break
  51. };
  52. F.bF = function(a) {
  53. if (!a) return F.log("invalid URL"), r;
  54. var c = a.indexOf("://");
  55. if (-1 == c) return r;
  56. c = a.indexOf("/", c + 3);
  57. return (-1 == c ? a : a.substring(0, c)) != location.origin
  58. };
  59. F.async = {
  60. XI: function(a) {
  61. var c = this.gM;
  62. if (!c.vE) {
  63. var d = c.length,
  64. e = c.AO,
  65. f = c.dO,
  66. g = f.Xd,
  67. h = f.aM,
  68. m = f.mG,
  69. f = f.xka;
  70. if (a) {
  71. if (c.vE = a, g) return g.call(h, a)
  72. } else {
  73. var n = Array.apply(q, arguments).slice(1),
  74. s = n.length;
  75. 0 == s ? n = q : 1 == s && (n = n[0]);
  76. e[this.index] = n;
  77. c.count--;
  78. m && m.call(f, n, d - c.count, d);
  79. 0 == c.count && g && g.apply(h, [q, e])
  80. }
  81. }
  82. },
  83. KJ: t(),
  84. Aga: function(a, c, d) {
  85. var e = F.async;
  86. d !== k ? ("function" == typeof c && (c = {
  87. mG: c
  88. }), c.Xd = d || c.Xd) : c !== k ? "function" == typeof c && (c = {
  89. Xd: c
  90. }) : a !== k ? c = {} : b("arguments error!");
  91. var f = (d = a instanceof Array) ?
  92. a.length : Object.keys(a).length;
  93. if (0 == f) c.Xd && c.Xd.call(c.aM, q);
  94. else {
  95. var g = {
  96. length: f,
  97. count: f,
  98. dO: c,
  99. AO: d ? [] : {}
  100. };
  101. F.BM(a, function(a, d) {
  102. if (g.vE) return r;
  103. var f = !c.Xd && !c.mG ? e.KJ : e.XI.bind({
  104. gM: g,
  105. index: d
  106. });
  107. a(f, d)
  108. })
  109. }
  110. },
  111. map: function(a, c, d) {
  112. var e = this,
  113. f = arguments.length;
  114. "function" == typeof c && (c = {
  115. gF: c
  116. });
  117. 3 === f ? c.Xd = d || c.Xd : 2 > f && b("arguments error!");
  118. "function" == typeof c && (c = {
  119. gF: c
  120. });
  121. d !== k ? c.Xd = d || c.Xd : a === k && b("arguments error!");
  122. var g = (f = a instanceof Array) ? a.length : Object.keys(a).length;
  123. if (0 === g) c.Xd && c.Xd.call(c.aM,
  124. q);
  125. else {
  126. var h = {
  127. length: g,
  128. count: g,
  129. dO: c,
  130. AO: f ? [] : {}
  131. };
  132. F.BM(a, function(a, d) {
  133. if (h.vE) return r;
  134. var f = !c.Xd ? e.KJ : e.XI.bind({
  135. gM: h,
  136. index: d
  137. });
  138. c.gF.call(c.Z0, a, d, f)
  139. })
  140. }
  141. }
  142. };
  143. F.path = {
  144. join: function() {
  145. for (var a = arguments.length, c = "", d = 0; d < a; d++) c = (c + ("" == c ? "" : "/") + arguments[d]).replace(/(\/|\\\\)$/, "");
  146. return c
  147. },
  148. Rk: function(a) {
  149. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : q
  150. },
  151. Hfa: function(a) {
  152. if (a) {
  153. var c = a.lastIndexOf(".");
  154. if (-1 !== c) return a.substring(0, c)
  155. }
  156. return a
  157. },
  158. $Y: function(a, c) {
  159. var d = a.indexOf("?");
  160. 0 < d && (a = a.substring(0, d));
  161. d = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, ""));
  162. if (!d) return q;
  163. d = d[2];
  164. return c && a.substring(a.length - c.length).toLowerCase() ==
  165. c.toLowerCase() ? d.substring(0, d.length - c.length) : d
  166. },
  167. dirname: function(a) {
  168. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  169. },
  170. bM: function(a, c) {
  171. c = c || "";
  172. var d = a.indexOf("?"),
  173. e = "";
  174. 0 < d && (e = a.substring(d), a = a.substring(0, d));
  175. d = a.lastIndexOf(".");
  176. return 0 > d ? a + c + e : a.substring(0, d) + c + e
  177. },
  178. Co: function(a, c, d) {
  179. if (0 == c.indexOf(".")) return this.bM(a, c);
  180. var e = a.indexOf("?"),
  181. f = "";
  182. d = d ? this.Rk(a) : "";
  183. 0 < e && (f = a.substring(e), a = a.substring(0, e));
  184. e = a.lastIndexOf("/");
  185. return a.substring(0, 0 >= e ? 0 : e + 1) + c + d + f
  186. }
  187. };
  188. F.V = {
  189. qK: {},
  190. $v: {},
  191. wW: {},
  192. zl: {},
  193. $x: "",
  194. XY: "",
  195. Tf: {},
  196. dx: function() {
  197. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  198. },
  199. WJ: function(a) {
  200. var c = a[0],
  201. d = a[1],
  202. e = a[2],
  203. f = ["", q, q];
  204. 1 === a.length ? f[1] = c instanceof Array ? c : [c] : 2 === a.length ? "function" == typeof d ? (f[1] = c instanceof Array ? c : [c], f[2] = d) : (f[0] = c || "", f[1] = d instanceof Array ? d : [d]) : 3 === a.length ? (f[0] = c || "", f[1] = d instanceof Array ? d : [d], f[2] = e) : b("arguments error to load js!");
  205. return f
  206. },
  207. F1: function(a, c, d) {
  208. var e = this,
  209. f =
  210. e.qK,
  211. g = e.WJ(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? e.wK(g[0], g[1], 0, g[2]) : F.async.map(g[1], function(a, c, d) {
  212. a = F.path.join(g[0], a);
  213. if (f[a]) return d(q);
  214. e.YI(a, r, d)
  215. }, g[2])
  216. },
  217. XN: function(a, c, d) {
  218. var e = this.zW(),
  219. f = this.WJ(arguments);
  220. this.F1(f[0], f[1], function(a) {
  221. a && b(a);
  222. e.parentNode.removeChild(e);
  223. if (f[2]) f[2]()
  224. })
  225. },
  226. YI: function(a, c, d) {
  227. var e = document,
  228. f = F.Nb("script");
  229. f.async = c;
  230. f.src = a;
  231. this.qK[a] = p;
  232. F.Ja(f, "load", function() {
  233. this.removeEventListener("load", arguments.callee, r);
  234. d()
  235. }, r);
  236. F.Ja(f, "error",
  237. function() {
  238. d("Load " + a + " failed!")
  239. }, r);
  240. e.body.appendChild(f)
  241. },
  242. wK: function(a, c, d, e) {
  243. if (d >= c.length) e && e();
  244. else {
  245. var f = this;
  246. f.YI(F.path.join(a, c[d]), r, function(g) {
  247. if (g) return e(g);
  248. f.wK(a, c, d + 1, e)
  249. })
  250. }
  251. },
  252. zW: function() {
  253. var a = document,
  254. c = a.getElementById("cocos2d_loadJsImg");
  255. if (!c) {
  256. c = F.Nb("img");
  257. F.BW && (c.src = F.BW);
  258. a = a.getElementById(F.Ic.Oe.id);
  259. a.style.backgroundColor = "black";
  260. a.parentNode.appendChild(c);
  261. var d = getComputedStyle ? getComputedStyle(a) : a.currentStyle;
  262. d || (d = {
  263. width: a.width,
  264. height: a.height
  265. });
  266. c.style.left =
  267. a.offsetLeft + (parseFloat(d.width) - c.width) / 2 + "px";
  268. c.style.top = a.offsetTop + (parseFloat(d.height) - c.height) / 2 + "px";
  269. c.style.position = "absolute"
  270. }
  271. return c
  272. },
  273. Ix: function(a, c) {
  274. if (F.kK) require("fs").Sga(a, function(a, d) {
  275. a ? c(a) : c(q, d.toString())
  276. });
  277. else {
  278. var d = this.dx(),
  279. e = "load " + a + " failed!";
  280. d.open("GET", a, p);
  281. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "utf-8"), d.onreadystatechange = function() {
  282. 4 == d.readyState && 200 == d.status ? c(q, d.responseText) : c(e)
  283. }) :
  284. (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"), d.onload = function() {
  285. 4 == d.readyState && 200 == d.status ? c(q, d.responseText) : c(e)
  286. });
  287. d.send(q)
  288. }
  289. },
  290. xK: function(a) {
  291. if (F.kK) return require("fs").Tga(a).toString();
  292. var c = this.dx();
  293. c.open("GET", a, r);
  294. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? c.setRequestHeader("Accept-Charset", "utf-8") : c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8");
  295. c.send(q);
  296. return 4 == !c.readyState || 200 != c.status ? q : c.responseText
  297. },
  298. YN: function(a, c) {
  299. this.Ix(a, function(d, e) {
  300. try {
  301. d ? c(d) : c(q, JSON.parse(e))
  302. } catch (f) {
  303. b("load json [" + a + "] failed : " + f)
  304. }
  305. })
  306. },
  307. TI: function(a) {
  308. return /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a) != q
  309. },
  310. Ts: function(a, c, d) {
  311. var e = p;
  312. d !== k ? e = c.bF == q ? e : c.bF : c !== k && (d = c);
  313. var f = new Image;
  314. e && "file://" != location.origin && (f.crossOrigin = "Anonymous");
  315. F.Ja(f, "load", function() {
  316. this.removeEventListener("load", arguments.callee, r);
  317. this.removeEventListener("error", arguments.callee, r);
  318. d && d(q, f)
  319. });
  320. F.Ja(f, "error", function() {
  321. this.removeEventListener("error",
  322. arguments.callee, r);
  323. d && d("load image failed")
  324. });
  325. f.src = a;
  326. return f
  327. },
  328. AW: function(a, c, d) {
  329. var e = this,
  330. f = q;
  331. (c = a.type) ? (c = "." + c.toLowerCase(), f = a.src ? a.src : a.name + c) : (f = a, c = F.path.Rk(f));
  332. var g = e.Tf[f];
  333. if (g) return d(q, g);
  334. g = e.$v[c.toLowerCase()];
  335. if (!g) return F.error("loader for [" + c + "] not exists!"), d();
  336. c = e.l0(g.Vw ? g.Vw() : e.$x, f);
  337. g.load(c, f, a, function(a, c) {
  338. a ? (F.log(a), e.Tf[f] = q, delete e.Tf[f], d()) : (e.Tf[f] = c, d(q, c))
  339. })
  340. },
  341. l0: function(a, c) {
  342. var d = this.wW,
  343. e = F.path;
  344. if (a !== k && c === k) {
  345. c = a;
  346. var f = e.Rk(c),
  347. f = f ? f.toLowerCase() :
  348. "";
  349. a = (f = this.$v[f]) ? f.Vw ? f.Vw() : this.$x : this.$x
  350. }
  351. c = F.path.join(a || "", c);
  352. if (c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  353. if (d[c]) return d[c];
  354. e = e.Rk(c) || "";
  355. c = d[c] = c.substring(0, c.length - e.length) + "_" + F.Cb.language + e
  356. }
  357. return c
  358. },
  359. load: function(a, c, d) {
  360. d !== k ? "function" == typeof c && (c = {
  361. mG: c
  362. }) : c !== k ? "function" == typeof c && (d = c, c = {}) : a !== k ? c = {} : b("arguments error!");
  363. c.Xd = function(a, c) {
  364. a && F.log(a);
  365. d && d(c)
  366. };
  367. a instanceof Array || (a = [a]);
  368. c.gF = this.AW;
  369. c.Z0 = this;
  370. F.async.map(a, c)
  371. },
  372. dK: function(a, c) {
  373. var d = this.zl,
  374. e = [],
  375. f;
  376. for (f in a) {
  377. var g =
  378. a[f];
  379. d[f] = g;
  380. e.push(g)
  381. }
  382. this.load(e, c)
  383. },
  384. Dfa: function(a, c) {
  385. var d = this,
  386. e = d.Dd(a);
  387. e ? d.dK(e.filenames, c) : d.load(a, function(a) {
  388. d.dK(a[0].filenames, c)
  389. })
  390. },
  391. Hj: function(a, c) {
  392. if (a && c) {
  393. if ("string" == typeof a) return this.$v[a.trim().toLowerCase()] = c;
  394. for (var d = 0, e = a.length; d < e; d++) this.$v["." + a[d].trim().toLowerCase()] = c
  395. }
  396. },
  397. Dd: function(a) {
  398. return this.Tf[a] || this.Tf[this.zl[a]]
  399. },
  400. Ei: function(a) {
  401. var c = this.Tf,
  402. d = this.zl;
  403. delete c[a];
  404. delete c[d[a]];
  405. delete d[a]
  406. },
  407. cha: function() {
  408. var a = this.Tf,
  409. c = this.zl,
  410. d;
  411. for (d in a) delete a[d];
  412. for (d in c) delete c[d]
  413. }
  414. };
  415. (function() {
  416. function a() {
  417. F.ua && F.Ic.nk && F.ua.dispatchEvent(F.Ic.nk)
  418. }
  419. function c() {
  420. F.ua && F.Ic.mk && F.ua.dispatchEvent(F.Ic.mk)
  421. }
  422. var d = window,
  423. e, f;
  424. "undefined" !== typeof document.hidden ? (e = "hidden", f = "visibilitychange") : "undefined" !== typeof document.Lfa ? (e = "mozHidden", f = "mozvisibilitychange") : "undefined" !== typeof document.Mfa ? (e = "msHidden", f = "msvisibilitychange") : "undefined" !== typeof document.Lka && (e = "webkitHidden", f = "webkitvisibilitychange");
  425. e ? F.Ja(document, f, function() {
  426. document[e] ? c() : a()
  427. }, r) : (F.Ja(d, "blur",
  428. c, r), F.Ja(d, "focus", a, r));
  429. "onpageshow" in window && "onpagehide" in window && (F.Ja(d, "pagehide", c, r), F.Ja(d, "pageshow", a, r));
  430. f = d = q
  431. })();
  432. F.log = F.warn = F.error = F.assert = t();
  433. F.kM = function(a, c) {
  434. for (var d = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], e = q, f = 0; f < d.length; ++f) {
  435. try {
  436. e = a.getContext(d[f], c)
  437. } catch (g) {}
  438. if (e) break
  439. }
  440. return e
  441. };
  442. F.iW = function(a, c) {
  443. F.Ca = 0;
  444. F.$ = 1;
  445. var d = F.Cb = {};
  446. d.mR = "en";
  447. d.i6 = "zh";
  448. d.j6 = "fr";
  449. d.m6 = "it";
  450. d.k6 = "de";
  451. d.t6 = "es";
  452. d.s6 = "ru";
  453. d.o6 = "ko";
  454. d.n6 = "ja";
  455. d.l6 = "hu";
  456. d.r6 = "pt";
  457. d.h6 = "ar";
  458. d.p6 = "no";
  459. d.q6 = "pl";
  460. d.UR = "Windows";
  461. d.cH = "iOS";
  462. d.dH = "OS X";
  463. d.SR = "UNIX";
  464. d.RR = "Linux";
  465. d.QR = "Android";
  466. d.TR = "Unknown";
  467. d.YP = "wechat";
  468. d.VP = "androidbrowser";
  469. d.Cy = "ie";
  470. d.WP = "qqbrowser";
  471. d.AG = "mqqbrowser";
  472. d.BG = "ucbrowser";
  473. d.q5 = "360browser";
  474. d.r5 = "baiduboxapp";
  475. d.zG = "baidubrowser";
  476. d.s5 = "maxthon";
  477. d.Dy = "opera";
  478. d.t5 = "miuibrowser";
  479. d.Hp = "firefox";
  480. d.Ey =
  481. "safari";
  482. d.By = "chrome";
  483. d.XP = "unknown";
  484. d.uda = r;
  485. var e = [d.zG, d.Dy, d.Hp, d.By, d.Ey],
  486. f = [d.zG, d.Dy, d.Hp, d.By, d.Ey, d.BG, d.WP, d.AG, d.Cy],
  487. g = window,
  488. h = g.navigator,
  489. m = document.documentElement,
  490. n = h.userAgent.toLowerCase();
  491. d.xi = -1 != n.indexOf("mobile") || -1 != n.indexOf("android");
  492. var s = h.language,
  493. s = (s = s ? s : h.browserLanguage) ? s.split("-")[0] : d.mR;
  494. d.language = s;
  495. var s = d.XP,
  496. u = n.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || n.match(/chrome|safari/i);
  497. u && 0 < u.length && (s = u[0].toLowerCase(), "micromessenger" == s ? s = d.YP : "safari" === s && n.match(/android.*applewebkit/) ? s = d.VP : "trident" == s && (s = d.Cy));
  498. d.Pk = s;
  499. d.mY = -1 < f.indexOf(d.Pk);
  500. f = parseInt(a[c.Zx]);
  501. s = F.$;
  502. u = F.Nb("Canvas");
  503. F.$r = p;
  504. e = -1 == e.indexOf(d.Pk);
  505. if (1 === f || 0 === f && (d.xi || e)) s = F.Ca;
  506. if (s == F.$ && (!g.WebGLRenderingContext || !F.kM(u, {
  507. stencil: p,
  508. preserveDrawingBuffer: p
  509. }))) 0 == f ? s = F.Ca : F.$r = r;
  510. if (s == F.Ca) try {
  511. u.getContext("2d")
  512. } catch (v) {
  513. F.$r = r
  514. }
  515. F.B = s;
  516. try {
  517. d.qw = !!new(g.AudioContext || g.webkitAudioContext || g.mozAudioContext)
  518. } catch (x) {
  519. d.qw =
  520. r
  521. }
  522. try {
  523. var w = d.localStorage = g.localStorage;
  524. w.setItem("storage", "");
  525. w.removeItem("storage");
  526. w = q
  527. } catch (z) {
  528. ("SECURITY_ERR" === z.name || "QuotaExceededError" === z.name) && F.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), d.localStorage = t()
  529. }
  530. w = d.aE = {
  531. canvas: p
  532. };
  533. F.B == F.$ && (w.opengl = p);
  534. m.ontouchstart !== k || h.msPointerEnabled ? w.touches = p : m.onmouseup !== k && (w.mouse = p);
  535. m.onkeyup !== k && (w.keyboard = p);
  536. if (g.DeviceMotionEvent || g.DeviceOrientationEvent) w.accelerometer = p;
  537. g = n.match(/(iPad|iPhone|iPod)/i) ?
  538. p : r;
  539. n = n.match(/android/i) || h.platform.match(/android/i) ? p : r;
  540. m = d.TR; - 1 != h.appVersion.indexOf("Win") ? m = d.UR : g ? m = d.cH : -1 != h.appVersion.indexOf("Mac") ? m = d.dH : -1 != h.appVersion.indexOf("X11") ? m = d.SR : -1 != h.appVersion.indexOf("Linux") ? m = d.RR : n && (m = d.QR);
  541. d.tF = m;
  542. d.haa = t();
  543. d.e$ = t();
  544. d.xha = t();
  545. d.c$ = function() {
  546. var a;
  547. a = "" + ("isMobile : " + this.xi + "\r\n");
  548. a += "language : " + this.language + "\r\n";
  549. a += "browserType : " + this.Pk + "\r\n";
  550. a += "capabilities : " + JSON.stringify(this.aE) + "\r\n";
  551. a += "os : " + this.tF + "\r\n";
  552. F.log(a)
  553. }
  554. };
  555. F.F6 = 0;
  556. F.G6 = 1;
  557. F.D6 = 2;
  558. F.E6 = 3;
  559. F.Ce = q;
  560. F.m = q;
  561. F.Za = q;
  562. F.pV = q;
  563. F.aw = r;
  564. F.nL = r;
  565. F.mL = function(a) {
  566. var c, d;
  567. if (!F.nL) {
  568. F.nL = p;
  569. var e = window;
  570. e.EF = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame;
  571. var f = F.sb(a) || F.sb("#" + a),
  572. g;
  573. "CANVAS" == f.tagName ? (c = c || f.width, d = d || f.height, g = F.nm = F.Nb("DIV"), a = F.Za = f, a.parentNode.insertBefore(g, a), a.SL(g), g.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != f.tagName && F.log("Warning: target element is not a DIV or CANVAS"), c = c || f.clientWidth, d = d || f.clientHeight, g =
  574. F.nm = f, a = F.Za = F.sb(F.Nb("CANVAS")), f.appendChild(a));
  575. a.PL("gameCanvas");
  576. a.setAttribute("width", c || 480);
  577. a.setAttribute("height", d || 320);
  578. a.setAttribute("tabindex", 99);
  579. a.style.outline = "none";
  580. f = g.style;
  581. f.width = (c || 480) + "px";
  582. f.height = (d || 320) + "px";
  583. f.margin = "0 auto";
  584. f.position = "relative";
  585. f.overflow = "hidden";
  586. g.top = "100%";
  587. F.B == F.$ && (F.m = F.Kka = F.kM(a, {
  588. stencil: p,
  589. preserveDrawingBuffer: p,
  590. antialias: !F.Cb.xi,
  591. alpha: r
  592. }));
  593. F.m ? (e.gl = F.m, F.Ce = new F.BQ(F.m), F.aw = p, F.Fa.nW(), F.Jd.tr()) : (F.m = a.getContext("2d"), F.EW = F.m,
  594. F.m.translate(0, a.height), F.Ce = F.LG ? new F.LG(F.m) : q);
  595. F.pV = g;
  596. F.log(F.Oy);
  597. F.CX();
  598. F.Cb.xi && (c = F.Nb("style"), c.type = "text/css", document.body.appendChild(c), c.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");
  599. F.view = F.My.qB();
  600. F.FN.q2(F.Za);
  601. F.I = F.Xa.qB();
  602. F.I.TF && F.I.TF(F.view);
  603. F.Gt = F.I.T;
  604. F.Gha = new F.pu;
  605. F.d2 = new F.fS
  606. }
  607. };
  608. F.NA = function() {
  609. F.B !== F.$ && b("This feature supports WebGL render mode only.")
  610. };
  611. F.jK = r;
  612. F.CX = function() {
  613. F.jK = r;
  614. F.Za.oncontextmenu = function() {
  615. if (!F.jK) return r
  616. }
  617. };
  618. F.Ic = {
  619. EG: 0,
  620. qQ: 1,
  621. G5: 2,
  622. pQ: 3,
  623. Hy: 4,
  624. FG: 5,
  625. DG: 6,
  626. Nt: "game_on_hide",
  627. Mp: "game_on_show",
  628. mk: q,
  629. nk: q,
  630. j8: [],
  631. Ug: {
  632. uE: "engineDir",
  633. N9: "dependencies",
  634. xs: "debugMode",
  635. X3: "showFPS",
  636. Sw: "frameRate",
  637. id: "id",
  638. Zx: "renderMode",
  639. $0: "jsList",
  640. iZ: "classReleaseMode"
  641. },
  642. KK: r,
  643. oC: r,
  644. mc: p,
  645. EB: q,
  646. Oe: q,
  647. sF: q,
  648. dga: q,
  649. qia: function(a) {
  650. this.Oe[this.Ug.Sw] = a;
  651. this.EB && clearInterval(this.EB);
  652. this.mc = p;
  653. this.FC()
  654. },
  655. FC: function() {
  656. var a = this,
  657. c, d = a.Oe,
  658. e = a.Ug,
  659. f = window,
  660. g = d[e.Sw],
  661. h = F.I;
  662. h.b3(d[e.X3]);
  663. f.EF && 60 == g ? (c = function() {
  664. a.mc || (h.ZN(), f.EF(c))
  665. }, f.EF(c)) : (c =
  666. function() {
  667. h.ZN()
  668. }, a.EB = setInterval(c, 1E3 / g));
  669. a.mc = r
  670. },
  671. K2: function(a) {
  672. function c() {
  673. a && (d.Oe[d.Ug.id] = a);
  674. d.KK ? F.$r && (d.KU = setInterval(function() {
  675. d.oC && (F.mL(d.Oe[d.Ug.id]), d.FC(), d.mk = d.mk || new F.Ji(d.Nt), d.mk.setUserData(d), d.nk = d.nk || new F.Ji(d.Mp), d.nk.setUserData(d), d.sF(), clearInterval(d.KU))
  676. }, 10)) : d.h2(function() {
  677. F.$r && (F.mL(d.Oe[d.Ug.id]), d.FC(), d.mk = d.mk || new F.Ji(d.Nt), d.mk.setUserData(d), d.nk = d.nk || new F.Ji(d.Mp), d.nk.setUserData(d), d.sF())
  678. })
  679. }
  680. var d = this;
  681. document.body ? c() : F.Ja(window, "load",
  682. function() {
  683. this.removeEventListener("load", arguments.callee, r);
  684. c()
  685. }, r)
  686. },
  687. dW: function() {
  688. function a(a) {
  689. a[c.uE] = a[c.uE] || "frameworks/cocos2d-html5";
  690. a[c.xs] == q && (a[c.xs] = 0);
  691. a[c.Sw] = a[c.Sw] || 60;
  692. a[c.Zx] == q && (a[c.Zx] = 1);
  693. return a
  694. }
  695. var c = this.Ug;
  696. if (document.ccConfig) this.Oe = a(document.ccConfig);
  697. else try {
  698. for (var d = document.getElementsByTagName("script"), e = 0; e < d.length; e++) {
  699. var f = d[e].getAttribute("cocos");
  700. if ("" == f || f) break
  701. }
  702. var g, h, m;
  703. if (e < d.length) {
  704. if (g = d[e].src) m = /(.*)\//.exec(g)[0], F.V.$x = m, g = F.path.join(m,
  705. "project.json");
  706. h = F.V.xK(g)
  707. }
  708. h || (h = F.V.xK("project.json"));
  709. var n = JSON.parse(h);
  710. this.Oe = a(n || {})
  711. } catch (s) {
  712. F.log("Failed to read or parse project.json"), this.Oe = a({})
  713. }
  714. F.iW(this.Oe, c)
  715. },
  716. uW: {},
  717. YJ: function(a, c, d) {
  718. var e = this.uW;
  719. if (e[c]) return q;
  720. d = d || "";
  721. var f = [],
  722. g = a[c];
  723. g || b("can not find module [" + c + "]");
  724. c = F.path;
  725. for (var h = 0, m = g.length; h < m; h++) {
  726. var n = g[h];
  727. if (!e[n]) {
  728. var s = c.Rk(n);
  729. s ? ".js" == s.toLowerCase() && f.push(c.join(d, n)) : (s = this.YJ(a, n, d)) && (f = f.concat(s));
  730. e[n] = 1
  731. }
  732. }
  733. return f
  734. },
  735. h2: function(a) {
  736. var c = this,
  737. d =
  738. c.Oe,
  739. e = c.Ug,
  740. f = d[e.uE],
  741. g = F.V;
  742. if (F.$r) {
  743. c.KK = p;
  744. var h = d[e.$0] || [];
  745. F.ma ? g.XN("", h, function(d) {
  746. d && b(d);
  747. c.oC = p;
  748. a && a()
  749. }) : (e = F.path.join(f, "moduleConfig.json"), g.YN(e, function(e, g) {
  750. e && b(e);
  751. var s = d.modules || [],
  752. u = g.module,
  753. v = [];
  754. F.B == F.$ ? s.splice(0, 0, "shaders") : 0 > s.indexOf("core") && s.splice(0, 0, "core");
  755. for (var x = 0, w = s.length; x < w; x++) {
  756. var z = c.YJ(u, s[x], f);
  757. z && (v = v.concat(z))
  758. }
  759. v = v.concat(h);
  760. F.V.XN(v, function(d) {
  761. d && b(d);
  762. c.oC = p;
  763. a && a()
  764. })
  765. }))
  766. } else F.error("Can not support render!")
  767. }
  768. };
  769. F.Ic.dW();
  770. F.i = {
  771. tG: "cc.ActionManager.addAction(): action must be non-null",
  772. RP: "cocos2d: removeAction: Target not found",
  773. d5: "cc.ActionManager.removeActionByTag(): an invalid tag",
  774. e5: "cc.ActionManager.removeActionByTag(): target must be non-null",
  775. PP: "cc.ActionManager.getActionByTag(): an invalid tag",
  776. QP: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  777. lZ: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  778. mZ: "Expected 'data' dict, but not found. Config file: %s",
  779. nZ: "Please load the resource first : %s",
  780. wQ: "cocos2d: Director: Error in gettimeofday",
  781. xQ: "cocos2d: Director: unrecognized projection",
  782. R5: "cocos2d: Director: unrecognized projection",
  783. vQ: "cocos2d: Director: Error in gettimeofday",
  784. uQ: "running scene should not null",
  785. KG: "the scene should not null",
  786. zo: "element type is wrong!",
  787. CS: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  788. DS: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  789. ES: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  790. AS: "cc.Scheduler.pauseTarget():target should be non-null",
  791. BS: "cc.Scheduler.resumeTarget():target should be non-null",
  792. zS: "cc.Scheduler.isTargetPaused():target should be non-null",
  793. CR: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  794. NR: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  795. AR: "RotationX !\x3d RotationY. Don't know which one to return",
  796. BR: "ScaleX !\x3d ScaleY. Don't know which one to return",
  797. wR: "An Node can't be added as a child of itself.",
  798. xR: "child already added. It can't be added again",
  799. yR: "child must be non-null",
  800. HR: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  801. FR: "argument tag is an invalid tag",
  802. GR: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  803. ER: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  804. OR: "cc.Node.stopActionBy(): argument tag an invalid tag",
  805. zR: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  806. JR: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  807. DR: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  808. vR: "Unknown callback function",
  809. IR: "child must be non-null",
  810. KR: "cc.Node.runAction(): action must be non-null",
  811. LR: "callback function must be non-null",
  812. MR: "interval must be positive",
  813. x6: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  814. TP: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  815. n5: "",
  816. vG: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  817. fU: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  818. hU: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  819. gU: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  820. eU: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  821. JQ: "Invalid parameter.",
  822. Gu: "Don't call this method if the event is for touch.",
  823. UZ: "Invalid scene graph priority!",
  824. VZ: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  825. ZZ: "Invalid listener type!",
  826. $Z: "Can't set fixed priority with scene graph based listener.",
  827. WZ: "Invalid parameters.",
  828. XZ: "listener must be a cc.EventListener object when adding a fixed priority listener",
  829. YZ: "The listener has been registered, please don't register it again.",
  830. pR: "parameters should not be ending with null in Javascript",
  831. qR: "Invalid index in MultiplexLayer switchTo message",
  832. rR: "Invalid index in MultiplexLayer switchTo message",
  833. oR: "cc.Layer.addLayer(): layer should be non-null",
  834. CQ: "Resolution not valid",
  835. DQ: "should set resolutionPolicy",
  836. M0: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  837. rP: "cc.swap is being modified from original macro, please check usage",
  838. Eo: "WebGL error %s",
  839. LY: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  840. MY: "cc.AnimationCache. Invalid animation format",
  841. TY: "cc.AnimationCache.addAnimations(): File could not be found",
  842. NY: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  843. OY: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  844. PY: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",
  845. QY: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",
  846. RY: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  847. SY: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  848. UY: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  849. aT: "cc.Sprite.reorderChild(): this child is not in children list",
  850. TS: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  851. dT: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  852. eT: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  853. cT: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  854. MS: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  855. VS: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  856. WS: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  857. XS: " is null, please check.",
  858. US: "cc.Sprite.initWithFile(): filename should be non-null",
  859. fT: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  860. bT: "cc.Sprite.reorderChild(): child should be non-null",
  861. NS: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  862. OS: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  863. PS: "cc.Sprite.addChild(): child should be non-null",
  864. hT: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  865. T6: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  866. ZS: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  867. QS: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  868. RS: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  869. YS: "Sprite.initWithTexture(): Argument must be non-nil ",
  870. gT: "Invalid spriteFrameName",
  871. iT: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  872. U6: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  873. $S: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  874. SS: "cc.SpriteBatchNode.addChild(): child should be non-null",
  875. FS: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  876. HS: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  877. IS: "cocos2d: WARNING: Not enough memory to resize the atlas",
  878. KS: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  879. JS: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  880. GS: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  881. LS: "cc.SpriteBatchNode.addChild():child should be non-null",
  882. b4: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  883. d4: "cocos2d: WARNING: an alias with name %s already exists",
  884. a4: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  885. g4: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  886. c4: "Please load the resource first : %s",
  887. e4: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  888. f4: "Argument must be non-nil",
  889. Gy: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  890. fQ: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  891. bQ: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  892. eQ: "Sprite.initWithTexture(): Argument must be non-nil ",
  893. cQ: "cc.Sprite.addChild(): child should be non-null",
  894. hQ: "Invalid spriteFrameName",
  895. iQ: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  896. jQ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  897. gQ: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  898. dQ: "cc.SpriteBatchNode.addChild(): child should be non-null",
  899. DT: "cocos2d: Could not open file: %s",
  900. OH: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  901. ET: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  902. OT: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  903. PT: "cc.TextureAtlas.updateQuad(): Invalid index",
  904. HT: "cc.TextureAtlas.insertQuad(): Invalid index",
  905. IT: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  906. FT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  907. GT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  908. MT: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  909. NT: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  910. JT: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  911. KT: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  912. LT: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  913. r4: "TextureCache:addPVRTCImage does not support on HTML5",
  914. p4: "TextureCache:addPVRTCImage does not support on HTML5",
  915. q4: "addPVRImage does not support on HTML5",
  916. s4: "cocos2d: Couldn't add UIImage in TextureCache",
  917. u4: "cocos2d: '%s' id\x3d%s %s x %s",
  918. tP: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  919. v4: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  920. t4: "cc.Texture.addUIImage(): image should be non-null",
  921. uT: "initWithETCFile does not support on HTML5",
  922. yT: "initWithPVRFile does not support on HTML5",
  923. AT: "initWithPVRTCData does not support on HTML5",
  924. qT: "cc.Texture.addImage(): path should be non-null",
  925. wT: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  926. xT: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  927. CT: "initWithString isn't supported on cocos2d-html5",
  928. vT: "initWithETCFile does not support on HTML5",
  929. zT: "initWithPVRFile does not support on HTML5",
  930. BT: "initWithPVRTCData does not support on HTML5",
  931. sT: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  932. pT: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  933. rT: "cc.Texture.addImage(): path should be non-null",
  934. tT: "NSInternalInconsistencyException",
  935. Qc: "Missing file: %s",
  936. nO: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  937. Cz: "Rect width exceeds maximum margin: %s",
  938. Bz: "Rect height exceeds maximum margin: %s",
  939. KQ: "If program goes here, there should be event in dispatch.",
  940. LQ: "_inDispatch should be 1 here."
  941. };
  942. F.Iv = function(a) {
  943. if (F.Za) {
  944. var c = F.DW,
  945. d = document;
  946. if (!c) {
  947. var e = d.createElement("Div"),
  948. c = e.style;
  949. e.setAttribute("id", "logInfoDiv");
  950. F.Za.parentNode.appendChild(e);
  951. e.setAttribute("width", "200");
  952. e.setAttribute("height", F.Za.height);
  953. c.zIndex = "99999";
  954. c.position = "absolute";
  955. c.top = "0";
  956. c.left = "0";
  957. c = F.DW = d.createElement("textarea");
  958. d = c.style;
  959. c.setAttribute("rows", "20");
  960. c.setAttribute("cols", "30");
  961. c.setAttribute("disabled", p);
  962. e.appendChild(c);
  963. d.backgroundColor = "transparent";
  964. d.borderBottom = "1px solid #cccccc";
  965. d.borderRightWidth =
  966. "0px";
  967. d.borderLeftWidth = "0px";
  968. d.borderTopWidth = "0px";
  969. d.borderTopStyle = "none";
  970. d.borderRightStyle = "none";
  971. d.borderLeftStyle = "none";
  972. d.padding = "0px";
  973. d.margin = 0
  974. }
  975. a = "string" == typeof a ? a : JSON.stringify(a);
  976. c.value = c.value + a + "\r\n";
  977. c.scrollTop = c.scrollHeight
  978. }
  979. };
  980. F.uv = function(a) {
  981. if ("object" === typeof a) try {
  982. return JSON.stringify(a)
  983. } catch (c) {
  984. return ""
  985. } else return a
  986. };
  987. console.log && (F.log = function(a) {
  988. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, F.uv(arguments[c]));
  989. console.log(a)
  990. }, F.warn = console.warn ? function(a) {
  991. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, F.uv(arguments[c]));
  992. console.warn(a)
  993. } : F.log, F.error = console.error ? function(a) {
  994. for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, F.uv(arguments[c]));
  995. console.error(a)
  996. } : F.log, F.assert = function(a, c) {
  997. if (!a && c) {
  998. for (var d = 2; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, F.uv(arguments[d]));
  999. b(c)
  1000. }
  1001. });
  1002. var S = F.Ic.Oe[F.Ic.Ug.xs],
  1003. V = F.Ic;
  1004. console.log && S === V.qQ || (F.log = S == V.Hy ? F.Iv.bind(F) : t());
  1005. if (!S || S == V.EG || S == V.pQ || S == V.DG) F.warn = t();
  1006. if (S == V.Hy || S == V.FG || !console.warn) F.warn = F.Iv.bind(F);
  1007. if (!S || S == V.EG) F.error = t(), F.assert = t();
  1008. else if (S == V.Hy || S == V.FG || S == V.DG || !console.error) F.error = F.Iv.bind(F), F.assert = function(a, c) {
  1009. if (!a && c) {
  1010. for (var d = 2; d < arguments.length; d++) c = c.replace("%s", arguments[d]);
  1011. F.Iv(c)
  1012. }
  1013. };
  1014. F.V.D1 = function(a, c) {
  1015. var d = this,
  1016. e = this.dx(),
  1017. f = "load " + a + " failed!";
  1018. e.open("GET", a, p);
  1019. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "x-user-defined"), e.onreadystatechange = function() {
  1020. if (4 == e.readyState && 200 == e.status) {
  1021. var a = F.VI(e.responseBody);
  1022. c(q, d.mw(a))
  1023. } else c(f)
  1024. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dx-user-defined"), e.onload = function() {
  1025. 4 == e.readyState && 200 == e.status ? c(q, d.mw(e.responseText)) : c(f)
  1026. });
  1027. e.send(q)
  1028. };
  1029. F.V.mw = function(a) {
  1030. if (!a) return q;
  1031. for (var c = new Uint8Array(a.length), d = 0; d < a.length; d++) c[d] = a.charCodeAt(d) & 255;
  1032. return c
  1033. };
  1034. F.V.Efa = function(a) {
  1035. var c = this.dx(),
  1036. d = "load " + a + " failed!";
  1037. c.open("GET", a, r);
  1038. a = q;
  1039. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1040. c.setRequestHeader("Accept-Charset", "x-user-defined");
  1041. c.send(q);
  1042. if (200 != c.status) return F.log(d), q;
  1043. (c = F.VI(c.responseBody)) && (a = this.mw(c))
  1044. } else {
  1045. c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1046. c.send(q);
  1047. if (200 != c.status) return F.log(d), q;
  1048. a = this.mw(c.responseText)
  1049. }
  1050. return a
  1051. };
  1052. var Uint8Array = Uint8Array || Array;
  1053. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1054. var ca = F.Nb("script");
  1055. ca.type = "text/vbscript";
  1056. ca.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
  1057. document.body.appendChild(ca);
  1058. F.VI = function(a) {
  1059. for (var c = {}, d = 0; 256 > d; d++)
  1060. for (var e = 0; 256 > e; e++) c[String.fromCharCode(d + 256 * e)] = String.fromCharCode(d) + String.fromCharCode(e);
  1061. d = IEBinaryToArray_ByteStr(a);
  1062. a = IEBinaryToArray_ByteStr_Last(a);
  1063. return d.replace(/[\s\S]/g, function(a) {
  1064. return c[a]
  1065. }) + a
  1066. }
  1067. };
  1068. F = F || {};
  1069. F.Ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
  1070. F.MB = "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAJIAAACbCAYAAACJdMJGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVDREJDMEY5MEQ1QTExRTRBMjQwQzdEMUMwMUEwRTc4IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVDREJDMEZBMEQ1QTExRTRBMjQwQzdEMUMwMUEwRTc4Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUNEQkMwRjcwRDVBMTFFNEEyNDBDN0QxQzAxQTBFNzgiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUNEQkMwRjgwRDVBMTFFNEEyNDBDN0QxQzAxQTBFNzgiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5F4068AABRT0lEQVR42uxdBXxT1xc+TVJ3d3doKVJa3HXYYLDB2JgCU2AKzO0/Z24wYwYbQwYb7l6coi0tdXd3+Z/vJunSNm1TA8q4+921pMnLe+9+75zv6CXqxKGtI6k3W/vZ1gwtLSKJRKsjTlvK07wz7odES6tDrluT41zrIaFbQzmG89zOa1RsaqSTw7+X8tzJc+KtW6PBg9zZEkl1VFbUtOqzrXk/HlIt/l9NTW1bTvUlZxujN5bM7qU1PsSZ9HVlVFxWRWGX8+ijNeF0OjL5DX7Pqx0hkWpqa9t93Zoc5xaQrj2Q7vGwN/nln3fHk5WNM2mbeJHUwI6kuqzdtCRUVpRGk+cupcNno+/k9/55C0i3gKRumGpLJbHbPpxgHhTYh/Tsh1JNRT7VlGVRVWkaVRUlU21VMZ2NzqLJS7dlVVbXBPBn0m8BST2x7LyDS+vjtKa6tlWfbc37lUBq4v7q8HRScMIyldefnjHcY+K9Y3yopjyXKrLPUmXeZQZQPIMpm0+4UrzJzsKAKqprDMIupbvzP9e0+anF+XXAdWtynFtku2NHKM/NMqlWoYOVYZyCRKfwXMEzmOccgEiTsWh6ILnaGt/Bv064Ra3/W6ptoaWJ3rIld/eUTh3iQYZ6MvFiUmYxbTgYS7/tjKLyymo6/e100tSa3nM6mWa/tTuafw1sINlucaSbFEhz3e2NV6x9fQy5evUmPetgKs8Op4qcC0L1lVZUUTW/Ly61kAI9LFp1TQ9/sJ82H42HBfdGC2/FgcGpXHja4JIUAADHAhhP8Cy/BaQbF0jdWPqc2rFsop5/0EjSMfOjyoJYKs84RrXMeUrK2ay/lE5FpZUU5Gkp+A9uAoBVxdwEpr9U4dgE4CqrakhXWyomviMlq5iGLNhYVlxW1Y3fEqtyHyGlxvAcxrOntZmeo4eDCVmb6pOZsS6ZGeoICVhQUkEXY3MpIiG3hL9vJb/3FZ7ZXR1Isi6mivGUT1NwH0esP88snlE8I3ie5fnRwuk99NikZ/CcELPhk1PKYDpwLpWikvIpwN2CZFKJAFhxWSWN7OVI1mb6YtEvxObQ5YRcBoEu2Zrrk5G+NhnyfHCCv97n685/xYdawvM+nncxaByG9XSgwT3sqbePFdnwMbQkOkycK6miqopKyqr4Zw1JJBIy0JUCUAYrNl16bMXflycwKAC+uK7MkboKkGB1LdWWSZ4bGuRgOKK3IzlYGZCurh4Vl0vpXHQK7T8TT7GpBWTOT/+8yf5NHkhXR0oDutuRhYkeHb2YRttPJlJ2fpmQREymqTygWqg/TEij9JxSIUEgSSC1ACh8h5O14biaGhp31whPmj7UgyB9ZEbOpG3qQ1J9W5LI9OV+qOIcykqKpvDoc3QpMoKlSS35ORnRgAA7evX+YADTddkf4e8BjK0NC91Sba1TbWY8N43s7Tj4vUf6kbO9HelYdCeZsRtJtI3r3l9YkEUHj4WRrPgKdXPSJSMD7WZjUlBjuYVlVMSSokpICi1ByC0YJNoyaZ1qyyuqoDL+CQlVWFJJOYXllFNQTuZGujQkyI4/o/0v2i0C+ZwMqaKsgJJSUml3WDgdu5ggAGlnoU8G/F49BnKAmwX1727LkkkmJJXfnN8r+D1mfM2lmtynWxyp9UAygLH08AT/0Dce7Eu6loGkZxMinvSmRmVlJV08t58o/zxLDz3SkUmEb6YjAp1YPICivKKajylhKSZtdNwKBtx5Vomr90SL9w4OtCd/VzMyZY6koy1/P8BkwKBVfjZ43jpKySnpJpNpJfI/i/m69fhnX579eUK8wkdhqnDXZPLnDvO5fMu/x9wCUsuflVZV1vx6W6jLzG+eGUoGlv4kM3GnyrwIqi7PZeIrJamhE+mYd2MpYNTo8wmJsXTyyAbS0yoiMyNIGYl8MgCwfjIBBJlQYXgd/BoLLW1HBgGAFpGQRz9tjyRjloiTB7gRuJoqaNQNz7tXMX+qXsKa06umutaHzzE0yMtSt4+vNfk6m5GXowmZMBBlzK9Sc0po/9kU+nn7lVJWtw/zx1f914E0kOc9uI94kBWkOUvhMCzj+z7WxsJg8rTBbjRvYjeyt7ag2mo1rhstGUupvqxWAhr9qaKinL795Ufaf+SQ+LeVqZ5QYdosoYwNdMjSRFfO4I31BHeCWtPXkQlJA1JtyEADuHS0JRpJtMy8UvpzfwwsMrp/nB/18LAUwGzuo4kZRRT66Hoy4O/rwyR9zhgfGhnsRYYmlnKexUtUW838rDyHaqtK6j4HQ2HyC9sq8orKIbVO/1eBtNjF1uiduRP9tTwczcnAwITyi6voanwiZfBiIPLuYKlPydklwlR/8Z7eNLqPk5AiTVoNzJn0HYax1tNu9Lf8nCSKijxJyYlXKDUji7lRuXAVgDxnF5SxVKrl7y0TLgG8Zs2Ag1vA2dqQrNj6wk9LJufgNOA5TYEjhsn+Vxsv0phgJxrSw0G4DKqqayiLvwNANGEpBf6Fz9fyf0XMuQ5eSKO/DsWSFR+fVbiQYPq2IaTNkrbuWmprqKYij0pTD1B1aWbd963aFU3PfHVkF/86+r8IpJ4+Ljandy1/UsvE0o20dMyopoolDd+osvSjfNOq6sjwpiNx9Nn684JnPDktQC5Rmnm8JboWZOA8ph4JbziqK4upvDiTKjBLs6kgN51/8ndXVNYj1Om5pcJnlMASQ8YSDAvsYGVI3VzNGeQGwhUAKaZ6PudjcujDNWdp0fQewkeFv6Xww/A1gwvkP9DdgtWsjvhsUWkVXUnKo3Mx2QKgU1gN4jOQgHWLI9VV4KhSgEmdwdB3/jpKyynxUPFp3fzmv4JAP3rvGC8t7dIoyoy6RIf5iYSk6dfNti6MIU6MFy/U34aCmSeciMygS/G5/JTbN89RWPwXx20kA8dRIhVE3ZCyVWVghukm/m0jVqpa8K7qsiwqz4uh0vwE4VMqr6xhSVnOEqyCIhPz6HhEBu0PTxG8BaDw4Z+QXnqsDpUZmpXCGixn0l0jSDWuyZ/Bl5hZJK41Nq1QeN/hy7Ix16e+vjY0vKcDudoa1QOR/LTKm188vkcAJgPJ8L/kR4J4gjUyOMRXnslaxtYPnkjwlV7eVvWAhAF/DaTRofOpQjp5O5oKldMcIa6tYtWYsFlwJl02x7VkBg3fwA83/Ji18iddvFQiPkf8ukxHXwAAEwPSB09+dzdzPhc7LBodvphOa/ZdJSdrIwphsEOSwION8/VmYnzqSia52RmzSjQSpHtSf1cqYmDCooP6FKBnAQMSjs+Y8PXLpK1XDjjW1eSCMkXI5eYFkiq5ZmkEEIVoSbQ8wDtgLcHTCxGPJ1OmBhwgvpBIvX2s6Sgv3skemTSa+QdUQbOD1UBF9jkx62txzX0v2qbepGvdl9WkgSC7JuXZZJUXSW45UeThYEpxaQWCv+04mci/F1KIn40Az5hgZ9p6PIG2HU8UEtXFxkiABYBqjfWHhwxSCzwLvip1Gn3XqWSWgDU7qA0B5I4e0mv0Pbq1NbUP8v15x8RQ23raYHdhkoNUI2kMT393N4s6KVC39HzzABoA6ggDiS0U8nMxE87ADkr0b1p8ssWkbeIuwhxaEpngXdrG7qRj7EL6NRlkby4jd3tTQcIvxecItQV3AtQYgHP2ahZfWzbFpxcJFQlQwPlZzFIEP+HkhDOytLxa4X6QXw9UKoB5MjKTVWkmFZZWkL2lofCHNRz/++U0CD4CyBf/C0Cayfdo8/BejjPnT+5mYWuhLywZhCMkEpi/xcJTDCAZ6suENVVvQRkwCGfAywyOAqsKhFdfwUs6Y+A70jLSKTriKF2NOEQ5qZeoqjyPdPV4QQ1tGGBuVFOcQIY6tbzIBkLqgBdtZSmEGFsflqB+LuaCO4FbHTqfJtQdeN45JuSI4cHCU8byQOThbgDZP3QhlbadSBQAhAoX1iMfvyGQCooraPHysCLmW/Mg/G9m1QYe+xurplGvPRAsbi50+na+SfuYsIJX4AZ62BvT+dhsymArycaMrTI1XAFqYUI/F4pOzqcNh+LEzb0t1EX4f9oDJgAG3mehyuABV0g58CB4ppG7pDTVtShM8KWR/XtTcMho0nMcScWxfwkp6smqbtpgmQA9yLiTtSH5MREHyIJ9rFiqVIqHBRIV1mA+gwAPDDzuyvMHD4MVt3L7FeHqGBhgy9adDhkzwODXaji2HkvEuf8NIXYjOCQ7SyIhrfXggjsCgz9bMIicbIwFP4EPRSbTotNRWSKG5e1kKoj2xbhcyuWb7OlgItRDI6nE/8YNhcrAkw3JBA5hZqwjiKpUImkToGBZQSpgAYUDkskvgIXjbzmWQFMGuolFRYaAqZEeZeRV0oHTkRR+7jhJKjNJWlsuOAy+Hya9JQMbEicrv4y8+NrgjTY11BVE3NHKUEhhTzYYIFGRB+XPahqSGGq+oKSS+VYSlZRX0tRB7uTF70NYRZ6+0vjivtxwAV70D/jXczcrkCDltj97V1Dgi/OnkYH9AKosSmQ+UCYWCQuP24KbBjUA8MD833kqSfzN1tygHmeoO1F+jxUviD1LI5jQJ5g/XE7IEyoFkiM+vZCuphRQFEst/BuZAKk5pWKBYG5DcjTkVTif6OQCWn8ollKzSxTqVovBmiXU7rgQZ/JwNCOf/o9SUJ9R1K9XAJnUJgo/087j0QIweBAAGKgePAQIAB+9nE7uTLxxPdraEgEEXI8yLAPQgfuBROMnvjOXHyxIanjD+zJxb8gXG473Vp3FebygiAbclEC6n03ix5a/uYj07AZQWfZ5io6JFBYORDueTAAI4v3s1WxhAbmzeoNBFXY5Q6gSgEW5AKoDiwU+Av8NrD4Q0l2nk2k3T6iU3Sq/72Jg7jmTLN4DFwMkIEguvgeSB4sH1YKwCBYZEshAkUoCUGXll4uQBaQCVZeRzNiVqnPPka1hqQA/nJPgPydZQgby4oPfaUvlXuszbECAA0HKgsuBVAPM4gFpwkiARx/ni2PBzSGVNp9S8uEf4ZDKr9wIFltncaSFS+7tR7qWQeIfkVcu0E/bIsWNQhBT7h/SI+QUreTXsegT+7vSqD5O4m9HGXAQ694GpmoPDqcdfDpY8BG9HCk5q0gsfK1CwoDI48nPZGmRW1RJadlFdIwBCoDBM44nHp8DRwOXgbocGmQvpMshtrzAdwCe9NwSwWdgMVXkRVBNZRFVlaQIfw+Og3AHnIgAKJyCSisTKhKJcGEslRAPA8HG+eAB6uVlJaxOdUFcgAySClZbtQYlVbpy5yWcZLk3I5C625rr9xjQ01ukelRXltL2o5cFn0EwMtDdss4LDKINwrzxSBxtDounsX2daXSwM3VjzgCJ1bxHVyIWD34acHqABzcfUgq/Y1FA7B0C7qZaPo/U5Cg6c/Y4rdt1XHCsY7zI8E2N5e+DnwrkHV5zmPEJGYWCw0BlwXISFiJUVnFSI0ADHJgNY044B8TvcAwAs7qmRqhdGAtDgxyEJ1uvgdWpz6oM1wTgDQywF9/Z3ABvY6NgALWzaPNGVG3I5Xh91kjv3pA2yB3KzYqnnzZsEyBBCARPnPLmgaAipRWqBXwJMS6oLaRM4InVIi2NCTTUBcCFiQXGT6gprco80rcKJHNLJ/LvHkK3DR9IQS46bMoXCHV35GKasJaQaKbHlpFcilUIwENSYQo1K9MscxHHSs4uFmoSY3hPR+HVBqEGsYYDFg8NpKk1W6iq6gv3Ay6O/eGp5MmqHqqzOV8ZgMrf48y//nAzAeltmVS6TldHO+SF2b3I0VJH5AqdPXOIImLixJMP0KhyHvwKziNSN3jRYbml8CKAgIK8YvHa6yeCOkK0XGbkIpyK2jqG5OYZRD1dpORmWSPOB+CFExELCRUJv1ZPL0vy5YUHiJSSA2oTjsLLClUlktpUFhp/h/reeyZFWIHIzQZZB9/BA2TKlhmsM3wHJB2sN2M275XXiGNCXUUm5opMBKVvqakgNc7v4Lk0p5SsYqzh3psBSH7W5sa/b/3sWe1dxy/S5IGOQlXkpl2k4+ejhIUD9QHeoc6MhUsA70eYBKb4/nMp4mkDB5EKKaOl9nOag6mAKvOjhGdaqmsmlI+sKoMcjMsET/J3MRcLhjgYLD4YAXgdHmtVMMM6RCbC91sjhIUIVQoHItR2GluHUFv/hCUIjgdpCJWHcA4eFKULQ5mWe/B8KqtMC/FwqYIRn4O1Fs5GCNQ07ok6d4jyeGP6OiEUM4TPDcUP57s6kO4f2z9wzPiBQZSdV0iRccmEagrwAkS88fT18rYW+l/dDcFLeBLBiyDyC4orBTFG+gUWSSn2ZVK5FdcmTNVUUlVhjCDNlXmRgu9gAbFwSAXBcWFhHb2UIRa+BwOpoeccoIJXPiu/VHiqQaYRAgHngtkOcCB7UU+RWnLXME+RJVDOkgrAExJHRyrUH/xo8IuZKEqUYNVpCfeAlpBaANGOE0lUXFolwKa0MhsOnP+gQDuoyyl8DFTQXOnKQFp55+hQy+4ejmRjYUrv/7KTHp7YTdw4WDS4aXjC4YVuTufjb6YMNoh0OCohGeAygJTCIsN5CBILniEHlFbr420MKHVZlnJ/Ur4oUcLCIPjakBfBrEfKCB4KLwdT4W0vLKkQ1h58VQAdQAAueNdwT1aXFkItIrj73u/hdZ5slD1BfUYk5ol8J5BruBFwHEhvXCNUKoj67jPJAoQANRybOjJpowcJFmSgh6Xkz31XkSL6dVe12vqzavK2MpPnTLs5WJGjrS3tPJnI/MBFXKSejoQ5Q77gIuAKzZJmvktQKZBe8NXE+RQKfwychuBQeNphskN64WYjBIEbjidWJm1bKQ8kRHRKviD8jlYGwvXQ1LHwOr4X4RpYeciuBOCV5jhScgEmBJVlitxwO3MDkTEJ18Kes8kiExLAU5r4ABj+ncnSDRKtmoEEztbb24puH+gmvOxI3y1l6dyfQarOUTkwwA7xuMDEjKLA66Xi2iuRvrK3NPGdNKQP2VnK/T4Gejr005bjNGuklyKFtVQkxGOBlHyhuaFMEIPYBmDcbE2E78WHpRSsKDy18GrjBgNkcBwqfUeCGDdh7SH6jvfhb1jDMlYpAAJ40VpeKJwnJAkArwRBc9IT3AXBZAdLQzHxO6QNJAgeBl3FgsOxKneimgoQAnCQZjDfbxvgQ6G9elC/Xj1pQO9A6t/Dk69ZRjHJWSyx8sVxABJwJcT58GCqc1QqK4BPRmZm8D/3dTUgORnq63zlamuuFRroTfZWZuJFdwdrWv7XYerlZSZUBJ44eSDTiJyYgEpbITmwYLjxCDVYmckXDbwDTkX8xN8uxuUIFQDnIdQnpFnDxDcsMIAHiwvggXUIcB9gXgNuA+vp3tHe5OtkJtwHbeFh4DpI+1h/MFYYFnBkKnkdQGVloq9wb5hScM/eFDJwKtl6Didjaz8ysnDn6UaW9r7kHzCA+gZ4UllBIm06HCMkMPxlIpWkmXPDPVq1KwqOta+6GpAeHBvqO17Getve2pK8nG3rFt/YQI9++PsYzRzhTZb8FIEjwQzW19Vus0mPBdFWxLMg2aDWQM4BKBBS5P+cisoUlbB4klXVkwDS5QwBptPRWRSVVCAqaLHgyMCE38vFxlhYkG09P/AfABtqGLFA+I2gdpXHw0+pgnDrG9uy3Kyi2soi5mylItWXJFJRYgWrUs/ImmmCNZXkxtLJK1mCMwq/UzOcEJbvthOJ1pl5pX4Kd0BpVwHSh09OH+SCpPn80koK6e5R9wdvBtXKf46z3tYTcTGoJLl11HEnDj6FJxQkVMmbkKh/gbmUJxN2NG5QWongLi4MOlhjIX7WIk8aKbI9vazkxJoXGFmJOk0ASapnJU/FbQHohooKk2MMWEgfLK46voWmXtUlqWxJxlFlfjRV5F6iiuxwqiyMFbXi+D4dAwuSFFwQZBzcEsdTNQCUWZSVrK6VBaAzhnnAMAkIv5o9h99yjGfCjQ4kI77pXyy+Z7gET9C2sEiaMqx3PZXkYm9Jb3y/i+4d69MiEYa5ixgT8na0FJ/X1LON9+AGw6KCBED4A4BwY+AogYFFhiQDCYa0ggrE4oA3QcUdY5UEC9POUr0X28h9qvDUS3RMRImQlhab4zIDseDaJp7ya2DpIlF0UkOMDQ+Op72pMiam0YBFWVWcSFVFCSQzdKSy3Ai6mpwnyLiPkzxGpxwAEYLecJKC4IMf4tzhu+ruZm68LzxldnlF9VG6RtUlbQXSkEBP+/umDg1kk9+IPvljP90xIpgXS6fuDc62lnQ6Moki4lJpSJBDswdDaACpqvDPJDFpxMKjfKcl0ltftUiERED6Lp7ibm7mwk+jzncFiykps4j+CYsXIQmkvcozHY3rMhGVT7wg8joMMCNnkupbM3A8SMfcj6c/A8lS9FyqLk2rAzVcCTEpBeJh8ObFbylmphZQLP0qci9TOZ8X1CSyJrozOVfN+8Z5xaQWiowBgBVkXHm/oArZipP9czQepTS/XgsgtbX9xYCe3o5ytcFP/cg+XrRm1/FGb3rhgUm0eneccNq1JJEwYUojNxslz/AhgcC2SkyylEHCGDgR/DJN9VlAiRHSWeG/QRwQAWV0KFHNRER9/4nITNp/LpUy449QWfoxUe2KZqWQGKXJe6kodj2DKL2RdQgyDyC1r99ArbxcoVaeS6XdIHMUEg/XCmsQ9wvSSbWxBFQhyRt9jSJF1dWNCKTevq7Wdf+4c0QQrdp6hG9+/dRhC1Mjem3+VHrs44OiLUxTA6Y+zNx7R/vQ/WN9BbHceDhOSI2GKRW61sFNSyVePKgvWDAw55We8YbORzg5z8dkC6I9sLvwwYinveHCIy8aeU1Xk/OpMP0MFUSvpaKra6gkcTtVFkTXK1rEIgLAkBJwOEK1Gug2L/CVUg9SVF3qCHxHsEZFT4IG9ADnCncAKnrB//Dg5RT862x1ZN7I73GwtzTeydY10H6V58dw991IQPL2YA70L7m2oiAve/qNwdRwDA/uRoN6BdLCzw43KSGwfpAmiE/Bv4J8Ieh7+HiUOdXKgXo1NI5o6ji6inQMxMYaflYpMWBZIRMTTj+jJgKj4Bw9FB3dth1PEPGvwhL1uUJ4LZ85FqzCvaxqYKUi+R8AqFD4qwAISEl8PwCEe1FdLW86AfcIwiSq9we/w3OOMBOki7oSLJw3rNRgH2txHPjYlMe4zEaHv7sDTRnel5xsLPl9Rh4h3VwWGehqw2E5/UbgSPxwSJYtumuIVDVE4ediQ69+v5nG9gskE6P6+UT9Ar1o9c6zFJ+WLTqatWSNYRFx8+FwhNWnmggm07chHcsAFgYVdXXwUl0L5ivmVFNZWPc+CxO5NdeQPKMOH7E8F1sj6ulpJVwSTYESOUJwLeA8oJ6VzbbgzITqAzCyC8oF4UW8bd/ZFJHtOWWguyhkQEoK1ONefh253FClMCjAaZC2UsXHgkqCawKtb1Q5XWVVtYgIhEdn08je8kC4upAQeBEoAL4bUh3+NhwDzVbdnd3p0ekj6c7RoWRqbEjHL0TTRwsm6+w8EXV7eWXVP/zxtOsJJDcrM8On7x3bp96LSI5HvvKfu8/QxME965FcBF2H9fGjd3/Zx7q+VpjdzQ1loyssAEqjkautvInVpRkkM/ZQkF5/eUWtVRBJDewF8UXg006ETwzr+hHV40eQHLy48GuBDJs4DmiUtKZK4CHd4CJAjA8FiSC36DYCCQDj4MC5FNrB6g/Xi+ZZI3s7CQ92HqvFdQdjRYkSuBfIPFQYUnPhpsAxoU6hgpHBCVCL61ScLz6P64fEDPW3rcvCVCcNAeRzrK4BJFilsHiXrjhGc+8YxcCS90H4dcthGhjoQoOC3BmwetKD4bF4on+/nrE2R2tT9aXm99/Wlx75YB39+PdBenDykHp/MzcxpO9ffpjmvLJc6PYJ/V2bPilFOiscj0g280F9s1SqiLsWUjGTXKTyIo8aJnlNRYHo1PGvRJM2Q2FJEFe4G9ASBxW1ZelhzZyLRCSZTQh1FSoEpUpZLIUgkWBtgpMp/VgwwwEO8J4zUVnC6444G2Jk4G2QHAgO/300XlipE0JdRFk3HKMAA9oHQoUBHAAbpBiMAYAJ/AuBa/BA5UNVwteAFBbE8ZD2K0/VIXFsdHjxdbVXPDyltP9UBC24Y47495hQX3r31z3jampqIY4rrxeQrGHyNxXSeGveOHr43T9FqGR4cP1ejraWpvTF4jk0738/iCf4tn4uTX4JnuonpgaQkZ52nYRS9beUZRwjwmzlgHkPNwE4S1m1NmlJ9cRU23tJRd0CIMYGKFQwEYBQpvXieA27kiDVBFUxqG0DGca1yGN88gIAqCwAB2oOzlrwQoALDwBMd9yb01eyRL8lAA/SCBwK1TFwriIFBceCaoW6xLmgdAoPHqTRp2vP0b23Da07n993hLEkcuPz11UYN9pkaWqom5lbBOIddb2AZGlhbNDkH23Mjejt+ePpmc/XkeWS+6iHl3N9lu5iR18tvZ8efftHYWXc00TnfaglLEBHDzgtkc4LTpFdWEnYE0JLZtQskBpahi31HoBEAsebMdRTOEqVGAPYIDVAxFGqDneHtbC87AVRhhqE+wMNwJIVBQ0g+VcYLFCzcAWoOjgBMDTf6O1lTZ6O8ppAFKBmF0lo3MAeCuOiglZvD6Ovn7m9/n3QZ2mfW6R9PVWbjZFB81H8AA87enPuWFrw/s/09dIHhPWgOvzdHOj7V+bSIwwmkNWF0wOvWUwITz2yE6EOthyNouBhvPBV8ra5HTVQzw+JBxXdcD8W8EVzYx2hvuCGgKWKYPT0IR7CSk3JKhFFkuYMkt7MJUHeweei2NIEP7Mx0xGJg1CnIi0ZaTT6cmMEjssXvj1OHyyaUychf9l8mIJ9HcjN3qKBL02EfLKvJ5CMDXRbBjKbmvTSfSPp8Xd/og+fmkW9/eq7LzydbOi3tx6lx/jvaH/39tyQRv2BOsWVzxIFi4dg7+rdl+m+e2KZbJSQtg51WCxQmQajzlWA75C7HqxF3T+kEcAAMIEXgntVKdJ4ZYp0FVixOF/woF2nk4QFiYICmP6qpPvxTw7RpKGh1MNbrgUycgvot62H6YcX7qp3DoUl6MxbUkQdWFzZFj+SRF9XM4k4sIc7S6Yx9MzHq2jnsQuNRZuFCf38xnzKLNKjqS9vp+Ssa1PGDncCKkVAYp98YSmdvRwtFq66pmNaDsNKA1gFj1LjywJwenhYCB6EcE4Fm/rKlGO4ACwU1StwPeAcIdnwOvxeaCiPvHC4JFTP98XvjlOtxIQemz7i36j6z1to2tBANhZM6n3/xdg0nBtCEdXXE0jGrZEcvX2d6Jvn7qDPVm+j5ev2CD1ff1F16MNFM2lkv1Aa+9wW7PNxzVQc1ANM7vUHY4SlA4tMSaTbK/VAimHaV6rZMku0EmQLDSoK+VD4Xk2+E9IJXmzU2qHpBhyu+Nxbv5yi8JhSeueJO0X1CgYe3Ii4JGFJNxyHz8Xhx+7r7ZCcMLSnZ18/V83DN/Axje/vR6u2H6dtYRdpYJAP6alINVgpQT4uFNzNk175bh8dv5xC/brZNerg1lEDHmrsdAQpgLozlFOjzBoqFpaYMmYlnJmK7IGWYoWQKlhY+VYUVaKfJMAKlaTOHSETJeMS4ZuCFSZvXdN8qg3OC5wSZeiQeC78ICz59hiFx5bTV2zYGBnoifelZefTUx/+Ru88chvZWhg38DvV0Ns/74br4PGO5EhtAdLtI/p49/ZxthbSRdNSIR1tGY0J8aXYlCx6Z+VW8nG1Iycbi0aqbtrwYLZoMuilFfsEB0AUX+MwZ63cI4zKDXWZA/g7FhpOQbTum9DPVeQmYbHhyINJjmKFS/HycAOsL6RwoGoXpjpCFugfgKCv2AGApzL8cSkuly6ymgqPyRY5Uij5hnTorqjUVefshGsDZj2834jewxuvDFRrSRqXYQGgOD9YcnBgLl5+nC1OM/rk2XuEZBfB5soqwUtnjw4S1KLh2H/mKm08ePEw//pBRz6cbXnkK8sUwdmysjK+WAnp6elq9EGQ0Edu70+hTMRf/vpPGtjTj56+exwZG+r9q3JYUi2+byJNGNST3ljxF/2y8wq9PKeP6K/U4okxiCIT80X0HbV05ooGERhI8keI42RkBm0OSxANIhATEx1BWPL15ffDR5ScWSQqPMBBoHYAJmVrZPkDIe+jhC5sSD+Bx7tY2VbZTE+0sJE3jJCKRP7mtnoA74F6Azf863CccL5CqiEdFznqEplWPZeCKH06m0KmzLGe+fIo3TNhCD0weUgd4GpY2jz3yWpytzOlyYO7q33Qvv9bZGl82poFnzs5lL7ddKzDgVRPJRUVFZNM9D3S/FC9fBxp9Wuz6ct1R2jqs5/Q0gcm0ciQ+hce4OlEv7/7OP1z8CzNW7aTgn3MaMndveSdS5oU/SRKpnezZYNEtQB3c0FskUWIjWvORGeLlFwURUKlYdFF4hvJsy0hFSAFIaEAOkgAHAdecEge1NzJ032ldVwISf+oDFFaano68t7aEkUAuTmJjc8jIHvnME9RCgWLDNma8CPV1NYnyJBw326+LJySZRUy+ujZ+9BnWgUktfTm95uosKiI3np4itrvO3D2Kl1JzESbwHUdTRfaAqRiRLDFh2Xa4gIKCgrJ3NysVRWxEMXPzR4muNNHv++mtbtP0FOzx5GPi109j/LkIb1obL8A+nXLEZq4ZDuNCranRyZ3EyU7DQesHoQxICHgc8FEzniJoi8jPMjKftYg2eo6yWJxISkwlZIMTzokD6ZUkWekzLzU1ZbUywCFBLrMqhEhDpj2+i30OcJn4SCFNMsrchTHRbhFNdgM/9CPWyPpxOUsunN0P5o/bThLbp163/neyn8oisn1JwunNIoEYBSVltMnaw7i10X4iCZrZGakz9+tWep3WzjSsD5+ToOR2AYOgE1kqlil4Gbr6rberQdP+ORBAfz5Knpt+Sa6mpzB0siZDPV1VW62VPihZowOZTVQRq/+cJD2n00S0gNZjaoJ9oiqoygAJUxIqbW3kL8HLXWGs+mMmnlTNZUmzaljqaI5hb5C4shr2KQiPIK/K1OFwZkSMopp79lkkW6L+jdbRO2becBUy68sFI0rdBRd2mD1fbbuAi347DDZWTvT+wtn0qjQAKEBlAOcaMlnayg5PQORfb5vOmpV/gP/+4MS0nPBi5Zrct3Hv1tIv2w7JdR3H7a8T0cmd7hEyoNDq84k1ddnMBUyXyoXQNLR0WmDiiS6rb8/DevtRb9sPUkzFn9GEwf3EoFfJMcphxGD6/5Jg2n2+AG05XA4vfzjYSovD6M7h3uKCUsGiwbfC9QTkstqBXeoFU69tvSy1siTrWiUCiKMZDxIMQAXgG7tJjmQLsgq+GN3NO05m0aTBvem1W8/SU62jbdMzckvoqc+WiXKvD5ddHuTufEXYtIoJiUbOyA+rymIroVqqwckHR1t8URhscCXzM2129z0AR7z+UzGZ43uRb/vOkvTGVCjQgLo3gmDyFnlRkJ0TxnaW8zwKwm0bs8JGvHUFrZkzGjqEHfR6xoWUFvypdvjzVbyK3At/FTdy60laxNtdrawEbD+QAxLVeZNo0Po+Yfm1JPMquPQ2Sv06vL1NGN4IN03PrjZ4+cUis1wOrUIoN1AAmgghSCRYKUUF5eQkVH7djQwYStu3pR+NHtMb1qzJ5zueelr4We6exxbfAGe9YCK1zFffGgKHTgdQdvDLtCrP26kbq6mrMocaChbRQgndJY0Ujo30bAdsTEZqzv4g1r6Pjghj1xIE8UH2DbLyNCYxvQLpC+WjBTho6ZGWXklffr7dtp97AK9+fAYYbi0NPKLREA6p7OkUVuBlKMKJHEj2fwHkJQuAW1tGas53XYvEPT9AxP60uyxvWnXiSjhHYcfaNqIvjRxUFA9tafL3zma+QNmBfOGk5dj6TA/tU9+fopSMrMFwe7XTb63SQ9F25oOk0ZaioyAJi4Z1t+FmBzRBhodTJARWVUjo77d3Cmkey966I5p5GDdsr9s9/GL9MEvWynU35FWsdWrjg+pl3jCBVF7o0mk5IzconovaGtrC/BUVsrzjgsLi6iiolKACcRQ6bZv68ATfhtbd5hsvtLavedp4trdFNzNg9VbLxrUy1cASdX5OaCHt5gKEUpnIuPoXFQSfbohjiLijogwE3w1qBdDK2OY4chiRHYl1GJr6tHkednlwkRPyy4VedbwkiM3HPlEhaX8XS72ohq5Z7de9PAd7mo5T1Mj7Hw0fbNuL1VWlNG7j4xjg8G6VfdPXe56R0qjtgIpJSuvcXDV0NCQ8vPz60qLIKGUUkqU5kiwJShbPvp6AnhtHfCovzBnBD1112A6GB5L63eH0WsrNoi88NGh3Wkwg0q/gfVoZmwgihAw61RLdj5dTcqghLRsik7NooMXMyidX8vMK6R8Bh4MIyPRLF1W5woQ7gA4IMvke9yCZJeVwxOtJZL2kNaKZhpW5vhpQzODbAR4bMxNWn2dsIL3nLxM3/+1nx/QcpbMITScjZG29SUQ7prCG00iFRSVlheXlFcaqqaTQCKZmJgIwl1dXV0vFCCXWNoKYt4xO0kjA2FMiI+YRaUVtO/0VVq784gAVU8fV7lECvIiD0f1fAMLjjkwyFvt30vKKuAwE/u4FRaX1rseQz35Bsr6ejpCEurqdFh+GCWm59Bf+07RRp6O1sb00IQ+NCDQvSNSXGo6Sxq1x7OdyOrNz82uvl4HUCwszIRfSXnTtbQ6d/MZuVtAhyYO9BcTfo9TkUl09Hwcrdp6iCrYFO/HBB1e4J6+ruTBRFaTwkU4TJXxq84ekfGptI+lz16eadl5NGGAP331zFS2VM2oq4y2Aom1Ql4jINUdVCa9bhcEf9HAQDcxMZIy80Xp+NmIaPp1y0HKyCuhAE9HkaWJtF+oHlhJ2tfonOEcjE5Mp7OR8XQqIo5O89RlS29oL09aOGMA9fCy75AdwVszWpBGMMHBUao6A0jRCel5XeJJcbI2FXPyIHksr5jVIBK74KTbc+ws/bgxl5IzC8jawlhkI2DCgnK0MSd0ojM1MiBz5ljgWZqqZTgKcwqLKTuviC3GPErKyKFE5mJRDKDE9GxytjGj7u521L+bIz0xtW+jVI8baLzPhs5T3/99PI5/R1lQakcD6QpLJOqKAyYz0oAxVb3JqVkFFJfKC57BhDs7gyJiYikrv4RgWGQyIODyMDGUp7YiZ10VVPDtwOWARHs4ZuEHQyoJgIjsRDtLYwaNPd0zOpDc7M07TfrhHMOjUyg2JYcNggoRfurr59xWaST94cW7njPla7kUm+7Vzd12McnjdB0KpKiuIpE09QM5stTCbG4gql/KoIF6ws/6nEpeNmWkr3vNzx/g+W3HaTodlU4DBg6igIB+ZGtmRjExMfTIJ5vIXF9LqaIajZCHP20KTNVp2QVVjlamstDuLkjcmzTokS+aBFJblbGdubF+6vaP591QgEjLKaQDZ2LobHQyq5A8Yc2BiDtZm1EvX0caF+orpMXNMhJZK3y0ej+llUjpueeeo1mzZgnLWXWUlpbS888/T1988QWyIX1JTVakarZrRHyG6p+yd34y3wIZrsMe/wrVLSZNuRHaKpHScgtL0zPzim2tza77Bs9ClH/91xE6H59LU6bcTvcteIj8/PzYgrSg4uJiunjxIq1fv55mvLKKZo4IoPvG9+30rUw7e2w4cIGWbzpJL7z0Mj355JNNBssRVP/888/hw7P89NNP0T75zpasVbg+FCO3oLhMAAlqmoUH6soi1QKpHQZCeFRi5pjrCSQ4Pn/dfopW771Ei5cspX8efVQ4RhuOwMBAmjlzJiUnJ9NDDz1Ez3y+id5/fOI1s9Q6+po/WXOAzqdW0tFjx8nHx0ejz7377ru0cePG6XFxcSGgRhp+XXZBSZloSYfUFlahTfpDJEpPdBvm2eT0nOt2Q0Fq3/hxBx1PrKRTp8/Qs88+qxZEqsPR0ZE2b95MFm6B9OW6w11SEn27KYxiCnTowIEDGoNIuEX09GjhwoUQG481pdaU458PHqJ+3V0xC6QKowLEXckj1U1ZO0T88eTMfBHtNzQ0uOY39EPmBqV69rTn77/JwEDz70eY5qeffiJ/P1+6Y3ieMMW7yjgblUybT8ZTePg5Mjc3b/Xnp0+fTk899dSEZt6CjrjoFZT92VOixLtA+QdkXvIoaviBKUt+pN4+jiSraXtR4OED5+Jo9qgeIrrc3tSR1oztxyLpYloFHT26vlUgUg4swtx582nTwW30+B0DuwyQvlh7mD744EOytrZu0+ednJzI1dXVKj4+Hrssil4+MSn1uHeYsYEuwhK38Tx2KjKpAA8apFFKFgoya4oefmeNsF6V7gZ7RfFlewJfaclZBVcLyyrZMiijvLwCEWjs7JFTUELLfj9AK1euJFNT0zYfZ9KkSXT0QnyXARGs0MwSorvuuqtdx/Hy8sIPT+W/EQhWmdV/vHGvBQNnE7TZok835u84Lt8n565XfqE7XvgJN1xtKxpZO93xRyISsj37+tiJ3O3c3HwhmdqSu63pALd5eP5jFBIS0q7jgIDDAdlVxrmrqTR8+PBG1Trbtm+j+fMeFr8vX/EdjRs7rkVpzKPOlf7m3Hrvh0XWPzopy+aJjzf8VllVXQoXw76zV4XvjK23KJZCOfq62qgLD68HpJr21SfvPXwh4d5BgS5ULry6NaKiBIlu4E0dFelX9ZuEXcmgX7e83O5jwSxGt320INbVuXYpuaABoBPypH/N7w8ksa1idwXVARClpqXW/R4fn9TscQoLhRuobtF3n6rXHinGw96yv4sdtmLVHZVXWFrmai8Pwt9/WzCN7ONDyZl5Fob6Ou8/vmzD2I7wI9XRleOXE0ifeQoS2ZR1/chDqqioYP6iL1+wDhrr9p6juXPnNXK6JSYm0Pz5cynsWBj1C+1Hy5d/S87OLs0eq7y8nGqqrw2IcG/wfZDa1dX/qn9IbhMTzeJs8OXEpKe3CNKWRlaWaEBSR4yWfr1F9c/J4IzIAf/5pVmUnlOop2yHMypYbiGeiU4my5pa9H0EUbNVcK289oqMlPyisvNRSVmNyLa8GKCEcnJyRfptbW37Mz13nrhCc+bMafT6PH4Sd+3exd9XJH4++OD9LR4rMzNTLE5zi9LecwZo8vMLxFTmtNfzvbRCIvm62NDp06cbvf4NPzR2tnbk4OAoVFtLQIuJicFFRShfQ/apyszIzpcnLSLfq2FPpYy8IsotLKHXf9xhyRIrw8XW/DyvP1zhD3TE47j9yPm4wG5uoSwCqwTxbngzCwuLqbi4VGRHYrYlRwnpIDJ9E/L19W30t2PH65cTHw072uLxzp8/T+4qLZ6VAwsOl4bScBCb6Shy0CFBND13qHoAu6aJHkmQ1K1xmyAztDgnjQ4fPkwDB/5raY4fN54SEpI1OgaAmJubexkSpE4q1pfIhQ3z8VXHT1tP0PRhQSJLdGyIL3k5WcGS05ZKJCM7gsT8g+xEDEilpvoAYGGwQNnZuSKnG2K+VaKPgeTm5qb2b6EhofX+3b9f/5Z9F7wggZ52jV5Hcp5qPhWeYqgmnHNubl5d+nBzTz2yRMEV1YEIxzczM2u17w3ge2hiCD399NPigW3LWL16NX6sVX1tQICb6iwEYFVHanaBmBjPzRouOKW5iT65KnLRvtt0jP45fOlQR0ikg1cSM9NYYtgh78fY2EiI7JKS0iZvtDKfW2w7JZ50XY2S4ZryXK9gkQ71psqRWrQS9u6lmaGNS3lw7qamJoJgQiUrjYh/pWuRkLoAgk6DFFvwQnmqcWM3CKQafF467UjLHd/fn3ac2EgLFiygr75q3bZsSUlJ9M0330BdfKP6+pvz6lltVeqsRSQL2luaoFKXft5+kp6/e7iofj7Pf/th8/FUXtKfOwJINYIHn4p+/N5xfRQLbiCAgZvanMMTNxyAw8T74caHRFOnPpDTc+XKKbXHAbHeunWH5tZfYiJdPHeG+sx5qMn34HwgYTEhPSGVUCUDaYAJ3oP3yIGhJd5TWVmlxpMuEfejI8qzcFvQNfjxZeuZB5bR119/rdFxYanNmDEDAezXqUFy2t7T0ar/NGHeQ56O/6p8xNjggDx4LkZU8CyePYKQo4SU5jd+3IlQ2QJ+W0lHRS2LmYTdf8ewHioLIROgwNOsWgzQJBpr5CpE3iqHGlWaIKls1bYwGjR0hPDQtstD/MUXZFCWRkN6emj0foRVABhcDzgefsdrADwkFwBUU1NdV8ePVj8AGd4LCd2aTi0tDZRajQ3xob937KP3P10u1D2cjOoePkj/rVu3itBIeHj4l/zSi/WkL39m98ko1TnSSF93TF//f5PhUOBxIiJRJMpN6N+NlB2NkWW6fv/5lZVV1e8IkHfQ9YFrxf326mxn7EvScOBGl5SUCKBoOoyMDBq5DlDGfSpVrpbaWlQAaeLl6UnvPjSk3pPXFcfhc7G0gjlKhdRIeOr9/f2FwxGpM5cuXaJNmzZRaV46q6Q8uKcbWSkNE9r6zf3suxfuG/mQMi25zrmUkk3bjkXQnHHBooIGHUrMjfVh4QwnxU6VHeUxhHr7/u/DF9X+EfwAvMPc3FRh+WhmOjccM0b0oLzkKFq8eHGbT3TVqlXkbCbt8iDCQEe2n16aSe/cP4BqU07Rzt+/pOXvv0hrv32fSmOO0NIZvUQ9HMl3k6wbm95/UF0+FtpEjejh2XivGA8HSxoZ7EOfrztEL3yzhea/9yfM4nGkst1pq2UuiNeIYG8a1tOT3l+1l3LyS+ihSSHo6PXDrhNRrwzv7SVhFk+X4tKFyf7SfaNobKgvvfrdDmb/+eTtZE1I3QxwtaRqNdYHJI3SM95IxTARRh7Rok9/pvj4eJDHVkXB4RR866236LlpwXQzDfh7Gvp86jzXJ4Xn+qKqFEImqbB2537K66lN+798DB7uEWy1uTd1nMzcIjp6Lp4ycotW1tTWPkYN9sztKOVt9NL9o74d1MNdC+DxdbVh6REk8lSU2xY8M2sIRKywAv7cE059kVjGRBQWkDJcAF4BbtSc2mKRSsufny5ibn6+PrRw0VP0wAMPkL1987suZWRkiKQ2T0sp9fR2uKGBoXSG1neKarWpTvDMFeFjEputNFMnZzCyj/dnPOXqhb/zSkKmINcmBno0rLcn1i6MAfga86rtao2TDrjux//cc+5jJmjakwZ2JwsTA1InHpErjR0BMO8e3Uu8hsaYa/edo//NG1/XkVVTqfjMrKF058g8+nnranr/nbcosGcfGjx4MHXv3p1sbW2FqY1wACy0PXv20J7dO2nKAF+a/8DoDltwGBLtiScCJOBsSmsQRglUenMedYAJ1i3CTy0NdGljzQBXdXMe2h4P/O+P7758Zmo3pNmij8G89/7E5y4yaML9XG1OM5C28vsuNfdd7QXSOlMj/WkvPzCKBqnpoNrSGMLqMSYlhx58ew39+OJdddJL04FcmRfvGylaCJ6JTKZLEfto5a61lFtQKqLVZiy9rMwMRcexx964u8MT/+HegASFddaaAaMDkhgug+ZAo5TQSrACuJjyz7UcIdgrdxQb8tvS+WsQE0PeTC7MdZJnAHQ30NMOHN/fT0vZLwFSiNXXX/zr1NZcU3uAtH/F4hlDoJ7aWuCH+4C2NagdW7/vPN13W9u4C+JE4F2Y13LAx4Q8LDhXDQ31W+xWBxAAfHByNndPcBxYrNrabV8e9P1eueUEffn0NIQyzLLyi81YQgUotcPrD40V3ml4spXEGy4Y1hiFW5Y9vFBhxXU6kLYY6usMcbI27ZAFgZrqilUdkBSwRJUhEYlEKqxSSBG5n+lf9VWOIsqK8iY7/OP65Q5ZvUb717Zl/Lz1JHkwce7jJ/e5qQao4RuCAaQ6TlxOpHd+3l314ZOT7mErLaG139cWIL1+JiJp/GNTBzTtq2E9j4w+pGGCz0QlZhHTRrI1N24UcYcKgn8IUg2dRbragHqB0xFWJiQN1A6sQ3Xui4YghOqSOzt1mgydxKXlUhyrf3j2Nd1tIZ4/8+fucPrl1btbfG9BcRl989dR2rD/QnZ1Tc09/NK2ttyH1gKpZ2VVzctvzh8v8njrE0fkUkfQ5iOX6UxUMkhb7RfPTNMK8XemLUcvC+dZOpuQMOE/fGIS9fZ1pKXfbKGwi/Eiefy52cO7tAkOYCizG5qzvAA8iZqu/g0HChU/+n0/RSdlk525CWXkFYpW0pDezRN4ond+2U0PTwlttEZ1PjpWsTguGnYlZ+ZX8Jr9Ymth9GJKVkF6W69f9t3SOzV+c9iF+M1G+jpa6qwy3JeLsen5LHFWMoje45f8Xv9hx541b9xLC+8cLKbyCdBTpC48Pm2A8DOptrBDhB03ub0BzhtBUrXV+7565xn67u9j1N/fg4aN9RHHgeReuesY3T4koFln6ob954XlBQs6O7+ECtlys2dpj3QRcCa0/LkUm15bVlF1Zucn89b5u9mu5I+ltPd6WyORnps3pV8jBwzyns9fTYPq+pH/+aDKn1Izc4t+//bvYzMXKUCkJHrK4aSmFAgAQoRdGRSFmdsRAU9NBur5j11MELX0aG8If4ohm8RwacAH4+1kJbaml3ZwCnEdQWYA/O+nXXTychLNGNybTFVcIijmdLWxEBH3poCEVOTlrKZsWQ0OeezLCjbfC/kacllYpPLDH38wPPYKfx651kf5eJkdee6yF5dv1eiNHg4Wry25Z0Rd+YmSCz3/5T+UnFXw9eJ7hj+m5mML/9h1dszYEB8LRr5G3wOyKpGYiIg1AqIFBUUMqNJOBRQAs3LzCdGg3NbMmBwsTclIT5d04DAtqaYrOdl07EKiUC+lbLp3d7cV4YnBPDuqGRbKfaDqa6pqaebQ3iJNo5H6bEbCweJ6/fsdlFtUupCB9Nm1lsCaSqTF6TlFBnaW9XOltzAfSs7KZ2RrPdaUQ5n18RMvrdi26pdXZmncAQ1mL7akQCIcsgHqA8qgw6tU/rdyF52JTKFZQ/uQcQuOUfRjTMrKoz3Ho0VSF6QVtkAf1MONsBuCrJUWFxLF/tx7jn7cfJx6ezpTb6+m29DkFJWwFFdvKf/EVtq5q6k7+dfPGzSCuDZA0qRD6qFzsYvm3juyUbB1a1gEdigUWxJEJTYpKVezyL3t3V/33vPGw2NbxTGUGZcwr+Xe32phZstVXscA6sj5OLER3uzhwWqlQCOJySD3tLcScyTJ85hj2SrdfSKa+UgZ+bNl1cPLgS0sa+EwRX5Pw40ScwtL6XJcuqirQx66pbEhTR/Ui8wMm/ZWo5dlHj9YAR6N+SkqcJdvPIraqgeok9sgt0ci+Tpam9qN6tu4aeeUwd2hu39o+LqyqE5lzN8WFhEQ7OfUs2GKQosnKJORmZmpcPohFQVm9b+AkmnkCGxugJwG+7hqBCJ1w8bMSMxQPzchrVJzCujy1Qw6eCZWJMrnFZcKIKF/EsLrCFvgIbE2MWKgmdPt/YPqcaGmxoX4VNEeUK9B1Qu+g+lJLas2mO7JdJ2GbEhQi8ldz8JcVzfG9fNDdFmTrQngkp/69s+7j5sZ6VtrmlCmOiCZIIEQWkDPH3ACeaZioVCF8OO0tu0yvL9no1IoyN2JTkYlCNMZi67LAIXkwe5ApszNNHWW4jNuthZiNlSH+C6xRanYFUDayvOsojPRSbRiyfRGvOiVb7dTZl7xW1AQ19NKlZmZtBj8G4l+Oer4zRet6+gRxxc+86UVW7d+9ewdOgjetsWkBukGqOSAkpc5Qe0hVAGgQeVpkv+NLdGnLvmR3C3MyEzs5qhD2hIpFVdUCJM5nSXLkYu5lF1UKiSOo6UZudtZ8k/TJrMRQdrVWXSihXI7wh2HL8XSSNYIqNpQHZ+tPUTHLiUgx/j16+3uaFEiTVn8g+MnC28ndwcLtW74Vo49ZRVVMxZ+8tdaBpO2kp/B1Fc69DRJS8V7IYHwflVAwbOMBHxYdy1V+iJMgIStKX5eND7Aq2nPL4MqKiOHTsal0EGWWttOFVOgmz319HCqA8eO0xEUmZguOCQ81XAgejlYka+TrZBA7Rnx6TmUkpNHyxZOrPf6poMXadUOkXANlVZ93YHU0t/Tsgt1Orjf86bCkvLpj3ywds0Hj0/UDfZzrldZAiekvHig9YCChQdxj+MAVPJK36aj5I9M7U8vfrWFhni7kmETW9Cb6OtSH1d7MeezVRfNoPrt2AX6adcxGhroTdlsTWrzd+59dg7pMbBS84voYkoGbTkfTT9sP0q92AoL9nZuk+8pq6CYdpyJEJEA1cyI45cS6P3f9sK6GU/yNjTXfchGLvimub/bG+jrtNqk1QRMxaUVYxd8/Nf6hXcOtrhjaIBQTVhvebVGvgheAiSaeIeVgAJwACKACrk9cvdBORmzVaSOPwWxdWVuZkBvbT5Ab08bqVECu5eNBb06aQjNTOtOL/21V9ybL+8eL0AkbpipkZij/D0oMbeAPmQw/bbnJE0I6U6WJpq3/gEp33AknJ64Y6AIJ9WR7pg0evaLvyuYcyHNI/pG8eTLmqushNWJNI+mxhMt9BZqgUPtr6qu6bts9f4/Tl5ODF5yz3CyMDUU5BmBT4ABasrIyEjjUAlAp4x3QSIBRJWVFUJ1Qt3BndAQmG/MHUezXvmVPtkVRotG9dO4GsKX+dLKB6YI8Bs0cX7OrOI+nTmW/jkXRR/z8QexCvV1stEIROsPhxPKu6YNC6x7PTopixZ9urGK6cFMUCe6gYZ4jODrmDDAT/yEdxUmJvrljOjjtQYmZ1NjTgsbzuHvaL/bzIjhOWj/2ZhXzkanPD9/Sn/Z7UO6U3FRsZBMMPULCgpEbg6kTWtiVyDemMgBUja1yMvLF45O1eFub0F3juxJf+47RznFZbR0/MAmgdFwNKUOG46JPbwF8Bas3iYssEC3plN9Y9Oyae+5K0LtqpZ3XU3Opic/3lBdUFx2L7wWdION5ojIXiN93WFN/RFxKdbTdDkuQ/g3sPXB7pNX6J/Dl1t7DhCJL+YXlf3Ox3v/911nxz3EUrBfNweqUmzbhQJKAKEtNWJQewBhc6mpC2YMoqv8tB+MTqAL32XQE8P70gh/d+rIDClvVokr5kykR37dLOJ3Hnb1LTCU+By4EE3VtdX0wRMThZdcOeCpBoj4Hs3lf/5ON+BoivzsjUzIHObRTJQ5NjUHKSMoA+moeMV5kMeE9Nxhr/6wY++8DzdShCKPCQNOSEgU1Gx1dGc48JyPF02hwT09KLekjP639RA9uHITbeOFLa2s6rDvgar7aMYY2nPmiig4xEjOzqctJy7SxrBzNGGQP/322ux6IILX+vFl6ysYRLP5nz/SDTrUPd57HaxMh3393B3ojyNusrpcapjuod1cZDGpOVBPoR3oVd3Pc0R8Wu7g57/Z/tq4vp4jxgZ7kTuDWsIyoqQE5n55neqChOqIhl4w0xHCETtV/nmQ0gpL6JO9J+idrYdpsLcL9XS2pSAnO/K0MW/XpjNQcbOYeG88ek4EgG0sjETFzYT+/o1CKQhB/W/lrmIm1tPgZaAbeDQE0l6+mcNCu7uKBLXfdpyusbMwliAxH/kwSGUAEfzgt321rA4qlz05WWfZ6n2O8Wk5cazaELj9tgPPDZvUj9x24uqg7PySj7q5WvVFBoGPs5XwDNffWFCebSif8n3h2poLhFDQkF4etO1oBP118AJdScii8JRMMYv2nRIcR2mZWbM1aCG4GwmHZp3ar6gSmRHlbDnCuVnA51nIEgg/4ZfCdLE3p8/mqffPwYWxYlMYArlJrNphnZ2kG3yoAmnvoB7uw3ADkGjWx9fx8g//HF9bW1v7MrIY2eQUW6rPGB6EJ6VcR1sW52Jr5rd0zkjwJRk/TSuYI6Eb6tQOPsdDPENSc4puK6+oeoPN317uDpaSIC9H0tWWKFrp1TCHqlGUhP/bOwAxOHlaiqTV0mny4O5iYrMbBFfZGBCBVqR75DIQihgsMayW0CMD31ctmmXUCgDhdzx4VXxeZoa65GhtRq7OFuTvbkshfs4ibbapTnFIRnvp2610KiIJVtkdPNOpCwzl1ezdfuzKMOz6882Go3T74IA/pFLJTJY+GbiZ2O+Cb9B7fq42i9NyCtDNK58tu6Urt5zYgIYDyCVG+iZf/O0KqTS3E84VPeq27AuP976UlP/bsrVhfZEPdOfw7mRnZlAvRxoEHaDCBKeC6a+p17yRI83KRJjgSjMcAEHKMCpPC0rKBXeDC0VfTxtNy8XOSdj/xMbcmCxNDFpV1HD4fBy9+eNO9ItEQSMaflZQFxm4s3v5xIfBe/3x7wf4PtU8ya8hNWTyhAH+1rgZrKMRdF0yvLfXc/8cviRh8CA186+i0oqPmQgu3PnJfAmqEFidlHs7W4Vr8sUoCGjjiDpxOaHv7s8eoY0HL9ILK3aQhYkh3TsmiHp42kIv1Gulo9xfFwn5re2Spm5AvSv3gOuogbSSj/84IDYohGpdszv8dFcCkQCStZmRZMm9w9OYZO4e2cfr8S/WHc6HagvwsPsAe5ptOnSRRvbx3mBpakhbj0aUMck2YNDBwqI1e8KfHt/ff+kfu8+GmhjqpXS2p/W3vf8We8IAuGdsb7prVBBufPXib7bt5HMYMy7UVzJxYDfBpSCllEWFtbWQWDdWyROk+Ib9F9A3gYYxL8MW7Gghw9dj0xHHr6mtvaYSqV5ZwiO3i7Z5zgfOxvgASGNCfGsz84qeh8jlkWVuou+SlVf8RwM/0IHOPMmwiKZz05Fh+Omag9jaYHxBcZkng/s+nnO8nKxcASj0OrQ0NbihAIQF3nsqmr5af0SUZ328cDJ1U6QiK5LbrKiLjUak4XyMaOi1CE8vzM+EtNzI2wb4p8SlotKXNqzacfohBteWa3Fy3s4tZ2+WlImeS8o9xFCj/ArPV6OTsgZ/8seBB9iUn9bL29FkRLAXDe3p2WSJzrUY6HK2+cglWrXjjOgau+DOwYTsC1UDUwF6u478Xmz70Ny+tXAuozkHxsxXfm3Td2ixaiNWbcJ/AuAoxjK+oKeZRNZKJRKQvn3KlIm8olI9YRopBsILjkxIUR2CnXtUS4vaypE02Dq8TmajEHP6Sz9BpXo3Iclxh8bwnMQLNsnH2doGifswElBW1dlbbUH6oCMI0wLacyq6BmVtrz88lgY2sQU7+NLYp1Ygom9zI0oe+NBwTQ3XqCkz5hljA72DeUVlGVIJHWn4YHXWSf788izxU5PkdWXVKcqbAz3s63r1oG1OwweO50ZMvn5JZEJmP56Tf/jn+HC2PHsHetrLAKhubJpDAtp1wEbFcBEAPMcuJYjyptzCkgv88nqe263NDA8313ADqo4tPSs2GIDw6hsNSEre1TCG2pw9/Ne1Psk5b67W+L3KJwKbD3+39M581b81EygG4z6imFA1hmxthvBE4R3IYU8m8XYI5Cr3IUOVCNQN4mPIElWm1MDkh3WYXVAiIgCog0ONH7p58N8yFbwREyXQyiR2SVZ+MVJAdJpKeMMTb2qor8Xgs+oqPqSWgNQlBoKdSRn5pW38OHoH7VVMJUBMWKp5Y/I/0YzAUUF+UYtlrHLPChUmOsRnGsm3UkDEGt3Rkpt5oBNSswq8lH2q1Q3wFQaSzS0gdZ4PqdEIj06l5774u7QDTw/dyU8pZmeM2NTs5oEEKRiTkm3TlR7o6wIkTbtqaGQJybdNL+pC9zwhLbuw2TeYGet1ORfANQfSb6/O7tDjKdIxuhKQ4pRbMjQ1FCm5treA1MzoqHJipVRDCKebm22Tqg3ddW80IMGqa24oekjdkkjNcaPWWGaaWG3IzuTZLEdqId332kukFoAEjnRLIl3jgVYu2fkl+c29Z8XiGaJTa1dRbQovc6slktJZeFMDqSMtNdWBnt2/7zpb1oWwn9KSL0kBJI0tEnjnW2o1eNMAqSMtNdWBoC016EJ/g48WfUnm8o1jbpn/nW2pqY6S8npB264ymvUlKSRSsxFrVO5W19T8t4DUGY2flBIOPYj83WyLW/PZy9ffkotvznJDAFwmlZhXVdcgAt4lEtw6HUhfPXOHxu8dvWi50Pfo1t+SZaO02uZN6YfZatV2nS25hPSc5l1faKnDXArt267+54HUGhA1HGErFoi0lF93nBY8aMcn88TrYxataCRdqmtqS1p7/B9euIsefPuP62Zspuc2r43vGtUTG/esI3niYf5/FkjtAVEL41HVPkFvrtyFmviCrua1SM9pHkj3jQ/G1hpBf+w+u4v/ieqczBv5giRdDESTAjzsPseebXVWW2WXs9oEkDJyWo7qPD1zKDbuQ4MFlGT5/Wck0k8vzerMc+3DvOEXVknSLm7+KzhSy4YmMigfndqf7C2NfT5cte94RVU1dnP+86YGUlu22WrF6Dn7td92/PHmvaZG+vXLx9FF1sLEoN3m/zVuKVzGoMjMLSyxVviMmh3o9u/rYm38wvKta5Iz8wEk7GyddlMBae6k0M4+x35syf3zzKxhFqogwoa9f+45R688OAalScUd8UXX2JJjnlSkEZDEA+NmKxpMfLX+8Ix1e89j90Lsbv35jSKN28WRdn4yv7PPb6ZUItnzweMTLUf0kfd5RMUDiglnv7Yqfd2+c89vPnLZlV+uoq43Utm8b9UH0Pfy2VnDUP9mNjrE5z2+N9gO622e3bqsROpkEKEb1rJ5U/o/iH4Dqj0sv1h7uHbDgfPLHaxMFidm5BVQ1x1pqBhpy0DjCXROeXTqACu26pbuPHFlaXZecSTJU4bPkLxQFS4DuEWQ3IQdEdExDZu3odRJqrACoxVE/ji1s9G77AYE0e1MRL88fSXJAY1KlSBCrb21uVHxghmDHmQgraGuP1LzCtunlZiEEzYMQqOwyPgM3zNRKb5Q+UkZeaLeD3V0kGLWZobiPqIjHxydCPblFJQIenAyIglFC3B6fq9QlUWdCqQ/35pzLW7u61Zmhq+8xrynl8+/zaYOnYulJV9vzv/g8Unje/s4HqWbY+SiAqVD+Ambd+BQmm4cpMbQ8Px528m3d5+MepIxdh9kRadwpE3vPXgtbuy904YGvvLD0rvqgQgdyxZ/tTmfbxYI5s0CIowUFHfeCANxy7fn30ZfPjPNni1g7CAwr1Mkkr7uNdmA7/nn7xlerxtacWkFmqNWVFZVT5PqyE7QzTV2H7+cUHLmSrKB6oNzPQeoxLdLZkgfenvNV3lFpZcU/KljgAQradCjX1yL64gK8nIIwE7Z0OPoK8QSit6aO/7JRz9ct4duvpFZXlE1+ZEP1q5wsjbzwJ6+2PimrKK+AYogtoWxvtg+Ylgvz3r75XXGQDbFkzMGSd/8cSd6KIy5Zn6kDhx3hken3MYzBFabsYFuFgNp+02mzhpJJeYkXmx9YjorLKyGDBwWFvopB3+65uDUYb097Z+ZNUwQ6M4a2HuO5H1BqSsCCY/iJsX8Lw2Y3VGK2dz4ka2tp/acil56KjLppY8XTJG1ZWMgjfwS8rq7ViVtSejW6EoDSW6v5xeV3f7EsvUV2E6iowd6Grz3615w1Y/BVzWet9amS47NJeWVs5/5fFM1Gld0iFhkubjv9FW6783VFJmQ+QFLv29qFFuHaTJlt9aky461uYWlDz6+bP0Py56cLG1LcQXAE5mQgb5NtPtUFByZZ7Sl0qX8p+2dYv7fGjfs+Dkzr7h87nt/fn/niCDD8f386vbQxWaNaNOMLeBLyiuI1aHYtjSV+U98ai5FJWXxzKTSssoolijwHf3OGqrNhs0tIHX98Ud5RdXRX7adepon9m9DEFuZJlGksAILGCQoLMzU0tJK0CItbB973sbCKJyB1CFE6/8CDAB4GlyD/r1wrAAAAABJRU5ErkJggg\x3d\x3d";
  1071. F.d8 = F.MB;
  1072. var F = F || {},
  1073. da = {
  1074. id: 0 | 998 * Math.random(),
  1075. N0: 0 | 998 * Math.random(),
  1076. dM: function(a, c, d) {
  1077. a = a.toString();
  1078. var e = a.substring(a.indexOf("(") + 1, a.indexOf(")")),
  1079. e = e.trim();
  1080. for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 != a.indexOf("this._super");) {
  1081. var f = a.indexOf("this._super"),
  1082. g = a.indexOf("(", f),
  1083. h = a.substring(g + 1, a.indexOf(")", g)),
  1084. h = h.trim();
  1085. a = a.substring(0, f) + "ClassManager[" + d + "]." + c + ".call(this" + (h ? "," : "") + a.substring(g + 1)
  1086. }
  1087. return Function(e, a)
  1088. },
  1089. P_: function() {
  1090. return this.id++
  1091. },
  1092. Q_: function() {
  1093. return this.N0++
  1094. }
  1095. };
  1096. da.dM.F5 = da;
  1097. (function() {
  1098. var a = /\b_super\b/,
  1099. c = F.Ic.Oe[F.Ic.Ug.iZ];
  1100. c && console.log("release Mode");
  1101. F.ma = t();
  1102. F.ma.extend = function(d) {
  1103. function e() {
  1104. this.xa = da.Q_();
  1105. this.ctor && this.ctor.apply(this, arguments)
  1106. }
  1107. var f = this.prototype,
  1108. g = Object.create(f),
  1109. h = da.P_();
  1110. da[h] = f;
  1111. var m = {
  1112. writable: p,
  1113. enumerable: r,
  1114. configurable: p
  1115. };
  1116. g.xa = q;
  1117. e.id = h;
  1118. m.value = h;
  1119. Object.defineProperty(g, "__pid", m);
  1120. e.prototype = g;
  1121. m.value = e;
  1122. Object.defineProperty(e.prototype, "constructor", m);
  1123. this.Th && (e.Th = F.l(this.Th));
  1124. this.Uh && (e.Uh = F.l(this.Uh));
  1125. for (var n = 0, s = arguments.length; n <
  1126. s; ++n) {
  1127. var u = arguments[n],
  1128. v;
  1129. for (v in u) {
  1130. var x = "function" === typeof u[v],
  1131. w = "function" === typeof f[v],
  1132. z = a.test(u[v]);
  1133. c && x && w && z ? (m.value = da.dM(u[v], v, h), Object.defineProperty(g, v, m)) : x && w && z ? (m.value = function(a, c) {
  1134. return function() {
  1135. var d = this._super;
  1136. this._super = f[a];
  1137. var e = c.apply(this, arguments);
  1138. this._super = d;
  1139. return e
  1140. }
  1141. }(v, u[v]), Object.defineProperty(g, v, m)) : x ? (m.value = u[v], Object.defineProperty(g, v, m)) : g[v] = u[v];
  1142. if (x) {
  1143. var B, C;
  1144. if (this.Th && this.Th[v]) {
  1145. var x = this.Th[v],
  1146. D;
  1147. for (D in this.Uh)
  1148. if (this.Uh[D] ==
  1149. x) {
  1150. C = D;
  1151. break
  1152. }
  1153. F.j(g, x, u[v], u[C] ? u[C] : g[C], v, C)
  1154. }
  1155. if (this.Uh && this.Uh[v]) {
  1156. x = this.Uh[v];
  1157. for (D in this.Th)
  1158. if (this.Th[D] == x) {
  1159. B = D;
  1160. break
  1161. }
  1162. F.j(g, x, u[B] ? u[B] : g[B], u[v], B, v)
  1163. }
  1164. }
  1165. }
  1166. }
  1167. e.extend = F.ma.extend;
  1168. e.cda = function(a) {
  1169. for (var c in a) g[c] = a[c]
  1170. };
  1171. return e
  1172. };
  1173. Function.prototype.bind = Function.prototype.bind || function(a) {
  1174. var c = this;
  1175. return function() {
  1176. var f = Array.prototype.slice.call(arguments);
  1177. return c.apply(a || q, f)
  1178. }
  1179. }
  1180. })();
  1181. F.j = function(a, c, d, e, f, g) {
  1182. if (a.__defineGetter__) d && a.__defineGetter__(c, d), e && a.__defineSetter__(c, e);
  1183. else if (Object.defineProperty) {
  1184. var h = {
  1185. enumerable: r,
  1186. configurable: p
  1187. };
  1188. d && (h.get = d);
  1189. e && (h.set = e);
  1190. Object.defineProperty(a, c, h)
  1191. } else b(Error("browser does not support getters")); if (!f && !g)
  1192. for (var h = d != q, m = e != k, n = Object.getOwnPropertyNames(a), s = 0; s < n.length; s++) {
  1193. var u = n[s];
  1194. if (!((a.__lookupGetter__ ? a.__lookupGetter__(u) : Object.getOwnPropertyDescriptor(a, u)) || "function" !== typeof a[u])) {
  1195. var v = a[u];
  1196. if (h && v ===
  1197. d && (f = u, !m || g)) break;
  1198. if (m && v === e && (g = u, !h || f)) break
  1199. }
  1200. }
  1201. a = a.constructor;
  1202. f && (a.Th || (a.Th = {}), a.Th[f] = c);
  1203. g && (a.Uh || (a.Uh = {}), a.Uh[g] = c)
  1204. };
  1205. F.l = function(a) {
  1206. var c = a.constructor ? new a.constructor : {},
  1207. d;
  1208. for (d in a) {
  1209. var e = a[d];
  1210. c[d] = "object" == typeof e && e && !(e instanceof F.t) && !(e instanceof HTMLElement) ? F.l(e) : e
  1211. }
  1212. return c
  1213. };
  1214. F = F || {};
  1215. F.C = F.C || {};
  1216. F.e9 = t();
  1217. F.gq = {
  1218. WL: 8,
  1219. o4: 9,
  1220. CM: 13,
  1221. shift: 16,
  1222. J9: 17,
  1223. alt: 18,
  1224. pause: 19,
  1225. o9: 20,
  1226. escape: 27,
  1227. zga: 33,
  1228. yga: 34,
  1229. end: 35,
  1230. home: 36,
  1231. left: 37,
  1232. zka: 38,
  1233. right: 39,
  1234. a$: 40,
  1235. gda: 45,
  1236. P5: 46,
  1237. "0": 48,
  1238. 1: 49,
  1239. 2: 50,
  1240. 3: 51,
  1241. 4: 52,
  1242. 5: 53,
  1243. 6: 54,
  1244. 7: 55,
  1245. 8: 56,
  1246. 9: 57,
  1247. a: 65,
  1248. b: 66,
  1249. D: 67,
  1250. J: 68,
  1251. Fg: 69,
  1252. zh: 70,
  1253. g: 71,
  1254. Uo: 72,
  1255. Ks: 73,
  1256. ux: 74,
  1257. vx: 75,
  1258. Fx: 76,
  1259. Jx: 77,
  1260. Xk: 78,
  1261. Mx: 79,
  1262. d: 80,
  1263. Wx: 81,
  1264. r: 82,
  1265. JF: 83,
  1266. kG: 84,
  1267. fa: 85,
  1268. ga: 86,
  1269. H: 87,
  1270. x: 88,
  1271. y: 89,
  1272. e: 90,
  1273. Pfa: 96,
  1274. Qfa: 97,
  1275. Rfa: 98,
  1276. Sfa: 99,
  1277. Tfa: 100,
  1278. Ufa: 101,
  1279. Vfa: 102,
  1280. Wfa: 103,
  1281. Xfa: 104,
  1282. Yfa: 105,
  1283. "*": 106,
  1284. "+": 107,
  1285. "-": 109,
  1286. numdel: 110,
  1287. "/": 111,
  1288. K$: 112,
  1289. O$: 113,
  1290. P$: 114,
  1291. Q$: 115,
  1292. R$: 116,
  1293. S$: 117,
  1294. T$: 118,
  1295. U$: 119,
  1296. V$: 120,
  1297. L$: 121,
  1298. M$: 122,
  1299. N$: 123,
  1300. aga: 144,
  1301. Jha: 145,
  1302. Lha: 186,
  1303. ",": 186,
  1304. I$: 187,
  1305. "\x3d": 187,
  1306. ";": 188,
  1307. D9: 188,
  1308. K9: 189,
  1309. ".": 190,
  1310. Fga: 190,
  1311. faa: 191,
  1312. Zca: 192,
  1313. "[": 219,
  1314. iga: 219,
  1315. "]": 221,
  1316. z9: 221,
  1317. f9: 220,
  1318. quote: 222,
  1319. Yja: 32
  1320. };
  1321. F.U5 = 0;
  1322. F.Ry = 1;
  1323. F.NG = 2;
  1324. F.V5 = 3;
  1325. F.W5 = 4;
  1326. F.OQ = 5;
  1327. F.D_ = function(a) {
  1328. return 8 < a.length && 137 == a[0] && 80 == a[1] && 78 == a[2] && 71 == a[3] && 13 == a[4] && 10 == a[5] && 26 == a[6] && 10 == a[7] ? F.Ry : 2 < a.length && (73 == a[0] && 73 == a[1] || 77 == a[0] && 77 == a[1] || 255 == a[0] && 216 == a[1]) ? F.NG : F.OQ
  1329. };
  1330. F.dda = function(a, c) {
  1331. function d() {}
  1332. d.prototype = c.prototype;
  1333. a.ry = c.prototype;
  1334. a.prototype = new d;
  1335. a.prototype.constructor = a
  1336. };
  1337. F.g9 = function(a, c, d) {
  1338. var e = arguments.callee.caller;
  1339. if (e.ry) return ret = e.ry.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
  1340. for (var f = Array.prototype.slice.call(arguments, 2), g = r, h = a.constructor; h; h = h.ry && h.ry.constructor)
  1341. if (h.prototype[c] === e) g = p;
  1342. else if (g) return h.prototype[c].apply(a, f);
  1343. if (a[c] === e) return a.constructor.prototype[c].apply(a, f);
  1344. b(Error("cc.base called from a method of one name to a method of a different name"))
  1345. };
  1346. F.L6 = function(a, c) {
  1347. this.x = a || 0;
  1348. this.y = c || 0
  1349. };
  1350. F.d = function(a, c) {
  1351. return a == k ? {
  1352. x: 0,
  1353. y: 0
  1354. } : c == k ? {
  1355. x: a.x,
  1356. y: a.y
  1357. } : {
  1358. x: a,
  1359. y: c
  1360. }
  1361. };
  1362. F.yF = function(a, c) {
  1363. return a && c && a.x === c.x && a.y === c.y
  1364. };
  1365. F.R6 = function(a, c) {
  1366. this.width = a || 0;
  1367. this.height = c || 0
  1368. };
  1369. F.size = function(a, c) {
  1370. return a === k ? {
  1371. width: 0,
  1372. height: 0
  1373. } : c === k ? {
  1374. width: a.width,
  1375. height: a.height
  1376. } : {
  1377. width: a,
  1378. height: c
  1379. }
  1380. };
  1381. F.Vja = function(a, c) {
  1382. return a && c && a.width == c.width && a.height == c.height
  1383. };
  1384. F.wH = function(a, c, d, e) {
  1385. this.x = a || 0;
  1386. this.y = c || 0;
  1387. this.width = d || 0;
  1388. this.height = e || 0
  1389. };
  1390. F.rect = function(a, c, d, e) {
  1391. return a === k ? {
  1392. x: 0,
  1393. y: 0,
  1394. width: 0,
  1395. height: 0
  1396. } : c === k ? {
  1397. x: a.x,
  1398. y: a.y,
  1399. width: a.width,
  1400. height: a.height
  1401. } : {
  1402. x: a,
  1403. y: c,
  1404. width: d,
  1405. height: e
  1406. }
  1407. };
  1408. F.rO = function(a, c) {
  1409. return a && c && a.x === c.x && a.y === c.y && a.width === c.width && a.height === c.height
  1410. };
  1411. F.wC = function(a) {
  1412. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1413. };
  1414. F.Xga = function(a, c) {
  1415. return !a || !c ? r : !(a.x >= c.x || a.y >= c.y || a.x + a.width <= c.x + c.width || a.y + a.height <= c.y + c.height)
  1416. };
  1417. F.jt = function(a) {
  1418. return a.x + a.width
  1419. };
  1420. F.Yga = function(a) {
  1421. return a.x + a.width / 2
  1422. };
  1423. F.jp = function(a) {
  1424. return a.x
  1425. };
  1426. F.kt = function(a) {
  1427. return a.y + a.height
  1428. };
  1429. F.Zga = function(a) {
  1430. return a.y + a.height / 2
  1431. };
  1432. F.kp = function(a) {
  1433. return a.y
  1434. };
  1435. F.qO = function(a, c) {
  1436. return c.x >= F.jp(a) && c.x <= F.jt(a) && c.y >= F.kp(a) && c.y <= F.kt(a)
  1437. };
  1438. F.aha = function(a, c) {
  1439. var d = a.y + a.height,
  1440. e = c.x + c.width,
  1441. f = c.y + c.height;
  1442. return !(a.x + a.width < c.x || e < a.x || d < c.y || f < a.y)
  1443. };
  1444. F.bha = function(a, c) {
  1445. return !(a.x + a.width < c.x || c.x + c.width < a.x || a.y + a.height < c.y || c.y + c.height < a.y)
  1446. };
  1447. F.Xx = function(a, c) {
  1448. var d = F.rect(0, 0, 0, 0);
  1449. d.x = Math.min(a.x, c.x);
  1450. d.y = Math.min(a.y, c.y);
  1451. d.width = Math.max(a.x + a.width, c.x + c.width) - d.x;
  1452. d.height = Math.max(a.y + a.height, c.y + c.height) - d.y;
  1453. return d
  1454. };
  1455. F.$ga = function(a, c) {
  1456. var d = F.rect(Math.max(F.jp(a), F.jp(c)), Math.max(F.kp(a), F.kp(c)), 0, 0);
  1457. d.width = Math.min(F.jt(a), F.jt(c)) - F.jp(d);
  1458. d.height = Math.min(F.kt(a), F.kt(c)) - F.kp(d);
  1459. return d
  1460. };
  1461. F.pu = F.ma.extend({
  1462. FK: q,
  1463. GB: q,
  1464. ctor: function() {
  1465. window.DOMParser ? (this.GB = p, this.FK = new DOMParser) : this.GB = r
  1466. },
  1467. parse: function(a) {
  1468. return this.cC(a)
  1469. },
  1470. cC: function(a) {
  1471. var c;
  1472. this.GB ? c = this.FK.parseFromString(a, "text/xml") : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(a));
  1473. return c
  1474. }
  1475. });
  1476. F.fS = F.pu.extend({
  1477. parse: function(a) {
  1478. a = this.cC(a).documentElement;
  1479. "plist" != a.tagName && b("Not a plist file!");
  1480. for (var c = q, d = 0, e = a.childNodes.length; d < e && !(c = a.childNodes[d], 1 == c.nodeType); d++);
  1481. return this.bC(c)
  1482. },
  1483. bC: function(a) {
  1484. var c = q,
  1485. d = a.tagName;
  1486. if ("dict" == d) c = this.ZW(a);
  1487. else if ("array" == d) c = this.YW(a);
  1488. else if ("string" == d)
  1489. if (1 == a.childNodes.length) c = a.firstChild.nodeValue;
  1490. else {
  1491. c = "";
  1492. for (d = 0; d < a.childNodes.length; d++) c += a.childNodes[d].nodeValue
  1493. } else "false" == d ? c = r : "true" == d ? c = p : "real" == d ? c = parseFloat(a.firstChild.nodeValue) :
  1494. "integer" == d && (c = parseInt(a.firstChild.nodeValue, 10));
  1495. return c
  1496. },
  1497. YW: function(a) {
  1498. for (var c = [], d = 0, e = a.childNodes.length; d < e; d++) {
  1499. var f = a.childNodes[d];
  1500. 1 == f.nodeType && c.push(this.bC(f))
  1501. }
  1502. return c
  1503. },
  1504. ZW: function(a) {
  1505. for (var c = {}, d = q, e = 0, f = a.childNodes.length; e < f; e++) {
  1506. var g = a.childNodes[e];
  1507. 1 == g.nodeType && ("key" == g.tagName ? d = g.firstChild.nodeValue : c[d] = this.bC(g))
  1508. }
  1509. return c
  1510. }
  1511. });
  1512. F.CL = {
  1513. load: function(a, c, d, e) {
  1514. F.V.Ix(a, e)
  1515. }
  1516. };
  1517. F.V.Hj(["txt", "xml", "vsh", "fsh", "atlas"], F.CL);
  1518. F.vW = {
  1519. load: function(a, c, d, e) {
  1520. F.V.YN(a, e)
  1521. }
  1522. };
  1523. F.V.Hj(["json", "ExportJson"], F.vW);
  1524. F.bW = {
  1525. load: function(a, c, d, e) {
  1526. F.V.Tf[c] = F.V.Ts(a, function(a, d) {
  1527. if (a) return e(a);
  1528. F.Fa.Wb(c);
  1529. e(q, d)
  1530. })
  1531. }
  1532. };
  1533. F.V.Hj("png jpg bmp jpeg gif ico".split(" "), F.bW);
  1534. F.tX = {
  1535. load: function(a, c, d, e) {
  1536. F.V.Tf[c] = F.V.Ts(d.src, function(a, d) {
  1537. if (a) return e(a);
  1538. F.Fa.Wb(c);
  1539. e(q, d)
  1540. })
  1541. }
  1542. };
  1543. F.V.Hj(["serverImg"], F.tX);
  1544. F.dX = {
  1545. load: function(a, c, d, e) {
  1546. F.V.Ix(a, function(a, c) {
  1547. if (a) return e(a);
  1548. e(q, F.d2.parse(c))
  1549. })
  1550. }
  1551. };
  1552. F.V.Hj(["plist"], F.dX);
  1553. F.nV = {
  1554. nT: {
  1555. ".eot": "embedded-opentype",
  1556. ".ttf": "truetype",
  1557. ".woff": "woff",
  1558. ".svg": "svg"
  1559. },
  1560. vK: function(a, c, d) {
  1561. var e = document,
  1562. f = F.path,
  1563. g = this.nT,
  1564. h = F.Nb("style");
  1565. h.type = "text/css";
  1566. e.body.appendChild(h);
  1567. var m = "@font-face { font-family:" + a + "; src:";
  1568. if (c instanceof Array)
  1569. for (var n = 0, s = c.length; n < s; n++) d = f.Rk(c[n]).toLowerCase(), m += "url('" + c[n] + "') format('" + g[d] + "')", m += n == s - 1 ? ";" : ",";
  1570. else m += "url('" + c + "') format('" + g[d] + "');";
  1571. h.textContent += m + "};";
  1572. c = F.Nb("div");
  1573. d = c.style;
  1574. d.fontFamily = a;
  1575. c.innerHTML = ".";
  1576. d.position =
  1577. "absolute";
  1578. d.left = "-100px";
  1579. d.top = "-100px";
  1580. e.body.appendChild(c)
  1581. },
  1582. load: function(a, c, d, e) {
  1583. c = d.type;
  1584. a = d.name;
  1585. c = d.$ja;
  1586. "string" == typeof d ? (c = F.path.Rk(d), a = F.path.$Y(d, c), this.vK(a, d, c)) : this.vK(a, c);
  1587. e(q, p)
  1588. }
  1589. };
  1590. F.V.Hj(["font", "eot", "ttf", "woff", "svg"], F.nV);
  1591. F.G7 = {
  1592. load: function(a, c, d, e) {
  1593. F.V.D1(a, e)
  1594. }
  1595. };
  1596. window.CocosEngine = F.Oy = "Cocos2d-html5 v3.0 RC0";
  1597. F.Wm = 0;
  1598. F.Jy = F.d(0, 0);
  1599. F.rQ = 0.5;
  1600. F.E5 = 1;
  1601. F.Hz = 1;
  1602. F.PR = 0;
  1603. F.GH = 0;
  1604. F.Kz = 0;
  1605. F.W6 = 0;
  1606. F.N6 = 1;
  1607. F.M6 = "-hd";
  1608. F.bU = 1;
  1609. F.Rj = 0;
  1610. F.P6 = 0;
  1611. F.lR = 0;
  1612. F.kR = 0;
  1613. F.Zy = 1;
  1614. F.H5 = F.Oy + "-canvas";
  1615. F.Lt = 1;
  1616. F.Wg = 1;
  1617. F.sb = function(a) {
  1618. var c = this == F ? document : this;
  1619. if (a = a instanceof HTMLElement ? a : c.querySelector(a)) a.find = a.find || F.sb, a.RE = a.RE || function(a) {
  1620. return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)"))
  1621. }, a.PL = a.PL || function(a) {
  1622. this.RE(a) || (this.className && (this.className += " "), this.className += a);
  1623. return this
  1624. }, a.v2 = a.v2 || function(a) {
  1625. this.RE(a) && (this.className = this.className.replace(a, ""));
  1626. return this
  1627. }, a.remove = a.remove || function() {
  1628. this.parentNode && this.parentNode.removeChild(this);
  1629. return this
  1630. }, a.SL = a.SL ||
  1631. function(a) {
  1632. a.appendChild(this);
  1633. return this
  1634. }, a.i2 = a.i2 || function(a) {
  1635. a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this);
  1636. return this
  1637. }, a.At = a.At || function() {
  1638. this.style[F.sb.x4] = F.sb.translate(this.position) + F.sb.rotate(this.rotation) + F.sb.scale(this.scale) + F.sb.tp(this.tp);
  1639. return this
  1640. }, a.position = a.position || {
  1641. x: 0,
  1642. y: 0
  1643. }, a.rotation = a.rotation || 0, a.scale = a.scale || {
  1644. x: 1,
  1645. y: 1
  1646. }, a.tp = a.tp || {
  1647. x: 0,
  1648. y: 0
  1649. }, a.zP = function(a, c) {
  1650. this.position.x = a;
  1651. this.position.y = c;
  1652. this.At()
  1653. }, a.rotate = function(a) {
  1654. this.rotation =
  1655. a;
  1656. this.At();
  1657. return this
  1658. }, a.mt = function(a, c) {
  1659. this.scale.x = a;
  1660. this.scale.y = c;
  1661. this.At();
  1662. return this
  1663. }, a.jja = function(a, c) {
  1664. this.tp.x = a;
  1665. this.tp.y = c;
  1666. this.At();
  1667. return this
  1668. };
  1669. return a
  1670. };
  1671. switch (F.Cb.Pk) {
  1672. case F.Cb.Hp:
  1673. F.sb.ft = "Moz";
  1674. F.sb.Vo = p;
  1675. break;
  1676. case F.Cb.By:
  1677. case F.Cb.Ey:
  1678. F.sb.ft = "webkit";
  1679. F.sb.Vo = p;
  1680. break;
  1681. case F.Cb.Dy:
  1682. F.sb.ft = "O";
  1683. F.sb.Vo = r;
  1684. break;
  1685. case F.Cb.Cy:
  1686. F.sb.ft = "ms";
  1687. F.sb.Vo = r;
  1688. break;
  1689. default:
  1690. F.sb.ft = "webkit", F.sb.Vo = p
  1691. }
  1692. F.sb.x4 = F.sb.ft + "Transform";
  1693. F.sb.translate = F.sb.Vo ? function(a) {
  1694. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  1695. } : function(a) {
  1696. return "translate(" + a.x + "px, " + a.y + "px) "
  1697. };
  1698. F.sb.rotate = F.sb.Vo ? function(a) {
  1699. return "rotateZ(" + a + "deg) "
  1700. } : function(a) {
  1701. return "rotate(" + a + "deg) "
  1702. };
  1703. F.sb.scale = function(a) {
  1704. return "scale(" + a.x + ", " + a.y + ") "
  1705. };
  1706. F.sb.tp = function(a) {
  1707. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  1708. };
  1709. F.NP = function() {
  1710. return F.sb(document.createElement("input"))
  1711. };
  1712. F.sb.aaa = function(a) {
  1713. var c = 0,
  1714. d = 0;
  1715. do c += a.offsetLeft, d += a.offsetTop; while (a = a.offsetParent);
  1716. return {
  1717. x: c,
  1718. y: d
  1719. }
  1720. };
  1721. F.f6 = -1;
  1722. F.PI = Math.PI;
  1723. F.NQ = parseFloat("3.402823466e+38F");
  1724. F.T5 = parseFloat("1.175494351e-38F");
  1725. F.gS = F.PI / 180;
  1726. F.HG = 180 / F.PI;
  1727. F.aA = 4294967295;
  1728. F.rP = function(a, c, d) {
  1729. if ("object" == typeof d && "undefined" != typeof d.x && "undefined" != typeof d.y) {
  1730. var e = d[a];
  1731. d[a] = d[c];
  1732. d[c] = e
  1733. } else F.log(F.i.rP)
  1734. };
  1735. F.zfa = function(a, c, d) {
  1736. return a + (c - a) * d
  1737. };
  1738. F.Bb = function() {
  1739. return 16777215 * Math.random()
  1740. };
  1741. F.n2 = function() {
  1742. return 2 * (Math.random() - 0.5)
  1743. };
  1744. F.Qga = Math.random;
  1745. F.Uf = function(a) {
  1746. return a * F.gS
  1747. };
  1748. F.BF = function(a) {
  1749. return a * F.HG
  1750. };
  1751. F.nO = function(a) {
  1752. F.log(F.i.nO);
  1753. return a * F.HG
  1754. };
  1755. F.oq = Number.MAX_VALUE - 1;
  1756. F.hc = F.PR ? 1 : 770;
  1757. F.gc = 771;
  1758. F.Ws = function(a) {
  1759. a.Ib && (a.Ib.Nc(), a.Ib.Ze())
  1760. };
  1761. F.H$ = t();
  1762. F.R9 = t();
  1763. F.Xf = function() {
  1764. F.Wf += 1
  1765. };
  1766. F.eu = 1.192092896E-7;
  1767. F.rb = F.Zy ? function() {
  1768. return F.I.Zg
  1769. } : E(1);
  1770. F.e2 = function(a) {
  1771. var c = F.rb();
  1772. return F.d(a.x * c, a.y * c)
  1773. };
  1774. F.zF = function(a) {
  1775. var c = F.rb();
  1776. return F.d(a.x / c, a.y / c)
  1777. };
  1778. F.gC = function(a, c) {
  1779. var d = F.rb();
  1780. c.x = a.x / d;
  1781. c.y = a.y / d
  1782. };
  1783. F.Y3 = function(a) {
  1784. var c = F.rb();
  1785. return F.size(a.width * c, a.height * c)
  1786. };
  1787. F.mP = function(a) {
  1788. var c = F.rb();
  1789. return F.size(a.width / c, a.height / c)
  1790. };
  1791. F.sL = function(a, c) {
  1792. var d = F.rb();
  1793. c.width = a.width / d;
  1794. c.height = a.height / d
  1795. };
  1796. F.Gj = F.Zy ? function(a) {
  1797. var c = F.rb();
  1798. return F.rect(a.x / c, a.y / c, a.width / c, a.height / c)
  1799. } : aa();
  1800. F.lt = F.Zy ? function(a) {
  1801. var c = F.rb();
  1802. return F.rect(a.x * c, a.y * c, a.width * c, a.height * c)
  1803. } : aa();
  1804. F.ONE = 1;
  1805. F.ZERO = 0;
  1806. F.SRC_ALPHA = 770;
  1807. F.SRC_ALPHA_SATURATE = 776;
  1808. F.SRC_COLOR = 768;
  1809. F.DST_ALPHA = 772;
  1810. F.DST_COLOR = 774;
  1811. F.ONE_MINUS_SRC_ALPHA = 771;
  1812. F.ONE_MINUS_SRC_COLOR = 769;
  1813. F.ONE_MINUS_DST_ALPHA = 773;
  1814. F.ONE_MINUS_DST_COLOR = 775;
  1815. F.ONE_MINUS_CONSTANT_ALPHA = 32772;
  1816. F.ONE_MINUS_CONSTANT_COLOR = 32770;
  1817. F.Eo = function() {
  1818. if (F.Zx == F.$) {
  1819. var a = F.m.getError();
  1820. a && F.log(CC.yb.Eo, a)
  1821. }
  1822. };
  1823. F.L5 = 0;
  1824. F.J5 = 1;
  1825. F.M5 = 2;
  1826. F.K5 = 3;
  1827. F.I5 = 2;
  1828. F.w7 = 0;
  1829. F.Md = 1;
  1830. F.Cu = 2;
  1831. F.hn = 4;
  1832. F.xl = F.Md | F.Cu | F.hn;
  1833. F.Y5 = 0;
  1834. F.qb = 0;
  1835. F.ye = 1;
  1836. F.ud = 2;
  1837. F.x7 = 3;
  1838. F.dA = 0;
  1839. F.cA = 1;
  1840. F.Jq = 2;
  1841. F.hA = 3;
  1842. F.gA = 4;
  1843. F.bA = 5;
  1844. F.eA = 6;
  1845. F.fA = 7;
  1846. F.t7 = 8;
  1847. F.Pi = "ShaderPositionTextureColor";
  1848. F.ru = "ShaderPositionTextureColorAlphaTest";
  1849. F.qu = "ShaderPositionColor";
  1850. F.tq = "ShaderPositionTexture";
  1851. F.Fz = "ShaderPositionTexture_uColor";
  1852. F.Ez = "ShaderPositionTextureA8Color";
  1853. F.Gz = "ShaderPosition_uColor";
  1854. F.AH = "ShaderPositionLengthTextureColor";
  1855. F.WT = "CC_PMatrix";
  1856. F.UT = "CC_MVMatrix";
  1857. F.VT = "CC_MVPMatrix";
  1858. F.$T = "CC_Time";
  1859. F.ZT = "CC_SinTime";
  1860. F.TT = "CC_CosTime";
  1861. F.XT = "CC_Random01";
  1862. F.YT = "CC_Texture0";
  1863. F.tI = "CC_alpha_value";
  1864. F.Ep = "a_color";
  1865. F.fl = "a_position";
  1866. F.Tm = "a_texCoord";
  1867. F.ZQ = 32;
  1868. F.CG = 3233828865;
  1869. F.Du = 3233828866;
  1870. F.uR = 8801;
  1871. F.hS = 8802;
  1872. F.sQ = 8803;
  1873. F = F || {};
  1874. F.C = F.C || {};
  1875. F.C.lA = function() {
  1876. F.color = function(a, d, e, f, g, h) {
  1877. return a === k ? new W(0, 0, 0, 255, g, h) : "string" === typeof a ? (a = F.sN(a), new W(a.r, a.g, a.b, a.a)) : "object" === typeof a ? new W(a.r, a.g, a.b, a.a, a.Fw, a.offset) : new W(a, d, e, f, g, h)
  1878. };
  1879. W = function(a, d, e, f, g, h) {
  1880. this.Yc = g || new ArrayBuffer(W.BYTES_PER_ELEMENT);
  1881. this.la = h || 0;
  1882. g = this.Yc;
  1883. h = this.la;
  1884. var m = Uint8Array.BYTES_PER_ELEMENT;
  1885. this.uC = new Uint8Array(g, h, 1);
  1886. this.lB = new Uint8Array(g, h + m, 1);
  1887. this.BA = new Uint8Array(g, h + 2 * m, 1);
  1888. this.uA = new Uint8Array(g, h + 3 * m, 1);
  1889. this.uC[0] = a || 0;
  1890. this.lB[0] =
  1891. d || 0;
  1892. this.BA[0] = e || 0;
  1893. this.uA[0] = f || 255;
  1894. f === k && (this.os = p)
  1895. };
  1896. W.BYTES_PER_ELEMENT = 4;
  1897. var a = W.prototype;
  1898. a.PV = function() {
  1899. return this.uC[0]
  1900. };
  1901. a.JX = function(a) {
  1902. this.uC[0] = 0 > a ? 0 : a
  1903. };
  1904. a.EV = function() {
  1905. return this.lB[0]
  1906. };
  1907. a.EX = function(a) {
  1908. this.lB[0] = 0 > a ? 0 : a
  1909. };
  1910. a.wV = function() {
  1911. return this.BA[0]
  1912. };
  1913. a.vX = function(a) {
  1914. this.BA[0] = 0 > a ? 0 : a
  1915. };
  1916. a.sV = function() {
  1917. return this.uA[0]
  1918. };
  1919. a.uX = function(a) {
  1920. this.uA[0] = 0 > a ? 0 : a
  1921. };
  1922. F.j(a, "r", a.PV, a.JX);
  1923. F.j(a, "g", a.EV, a.EX);
  1924. F.j(a, "b", a.wV, a.vX);
  1925. F.j(a, "a", a.sV, a.uX);
  1926. F.Cc = function(a, d, e, f) {
  1927. this.Yc =
  1928. e || new ArrayBuffer(F.Cc.BYTES_PER_ELEMENT);
  1929. this.la = f || 0;
  1930. this.hm = new Float32Array(this.Yc, this.la, 1);
  1931. this.im = new Float32Array(this.Yc, this.la + 4, 1);
  1932. this.hm[0] = a || 0;
  1933. this.im[0] = d || 0
  1934. };
  1935. F.Cc.BYTES_PER_ELEMENT = 8;
  1936. Object.defineProperties(F.Cc.prototype, {
  1937. x: {
  1938. get: function() {
  1939. return this.hm[0]
  1940. },
  1941. set: function(a) {
  1942. this.hm[0] = a
  1943. },
  1944. enumerable: p
  1945. },
  1946. y: {
  1947. get: function() {
  1948. return this.im[0]
  1949. },
  1950. set: function(a) {
  1951. this.im[0] = a
  1952. },
  1953. enumerable: p
  1954. }
  1955. });
  1956. F.jc = function(a, d, e, f, g) {
  1957. this.Yc = f || new ArrayBuffer(F.jc.BYTES_PER_ELEMENT);
  1958. this.la = g || 0;
  1959. f = this.Yc;
  1960. g = this.la;
  1961. this.hm = new Float32Array(f, g, 1);
  1962. this.hm[0] = a || 0;
  1963. this.im = new Float32Array(f, g + Float32Array.BYTES_PER_ELEMENT, 1);
  1964. this.im[0] = d || 0;
  1965. this.ND = new Float32Array(f, g + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  1966. this.ND[0] = e || 0
  1967. };
  1968. F.jc.BYTES_PER_ELEMENT = 12;
  1969. Object.defineProperties(F.jc.prototype, {
  1970. x: {
  1971. get: function() {
  1972. return this.hm[0]
  1973. },
  1974. set: function(a) {
  1975. this.hm[0] = a
  1976. },
  1977. enumerable: p
  1978. },
  1979. y: {
  1980. get: function() {
  1981. return this.im[0]
  1982. },
  1983. set: function(a) {
  1984. this.im[0] = a
  1985. },
  1986. enumerable: p
  1987. },
  1988. e: {
  1989. get: function() {
  1990. return this.ND[0]
  1991. },
  1992. set: function(a) {
  1993. this.ND[0] =
  1994. a
  1995. },
  1996. enumerable: p
  1997. }
  1998. });
  1999. F.Qi = function(a, d, e, f) {
  2000. this.Yc = e || new ArrayBuffer(F.Qi.BYTES_PER_ELEMENT);
  2001. this.la = f || 0;
  2002. this.uD = new Float32Array(this.Yc, this.la, 1);
  2003. this.AD = new Float32Array(this.Yc, this.la + 4, 1);
  2004. this.uD[0] = a || 0;
  2005. this.AD[0] = d || 0
  2006. };
  2007. F.Qi.BYTES_PER_ELEMENT = 8;
  2008. Object.defineProperties(F.Qi.prototype, {
  2009. fa: {
  2010. get: function() {
  2011. return this.uD[0]
  2012. },
  2013. set: function(a) {
  2014. this.uD[0] = a
  2015. },
  2016. enumerable: p
  2017. },
  2018. ga: {
  2019. get: function() {
  2020. return this.AD[0]
  2021. },
  2022. set: function(a) {
  2023. this.AD[0] = a
  2024. },
  2025. enumerable: p
  2026. }
  2027. });
  2028. F.zz = function(a, d, e, f, g, h) {
  2029. this.Yc = g || new ArrayBuffer(F.zz.BYTES_PER_ELEMENT);
  2030. this.la = h || 0;
  2031. g = this.Yc;
  2032. h = F.Cc.BYTES_PER_ELEMENT;
  2033. this.so = a ? new F.Cc(a.x, a.y, g, 0) : new F.Cc(0, 0, g, 0);
  2034. this.vo = d ? new F.Cc(d.x, d.y, g, h) : new F.Cc(0, 0, g, h);
  2035. this.nn = e ? new F.Cc(e.x, e.y, g, 2 * h) : new F.Cc(0, 0, g, 2 * h);
  2036. this.rn = f ? new F.Cc(f.x, f.y, g, 3 * h) : new F.Cc(0, 0, g, 3 * h)
  2037. };
  2038. F.zz.BYTES_PER_ELEMENT = 32;
  2039. F.nu = function(a, d, e, f) {
  2040. this.F = a || new F.jc(0, 0, 0);
  2041. this.O = d || new F.jc(0, 0, 0);
  2042. this.N = e || new F.jc(0, 0, 0);
  2043. this.K = f || new F.jc(0, 0, 0)
  2044. };
  2045. Object.defineProperties(F.zz.prototype, {
  2046. N: {
  2047. get: A("so"),
  2048. set: function(a) {
  2049. this.so.x = a.x;
  2050. this.so.y =
  2051. a.y
  2052. },
  2053. enumerable: p
  2054. },
  2055. K: {
  2056. get: A("vo"),
  2057. set: function(a) {
  2058. this.vo.x = a.x;
  2059. this.vo.y = a.y
  2060. },
  2061. enumerable: p
  2062. },
  2063. F: {
  2064. get: A("nn"),
  2065. set: function(a) {
  2066. this.nn.x = a.x;
  2067. this.nn.y = a.y
  2068. },
  2069. enumerable: p
  2070. },
  2071. O: {
  2072. get: A("rn"),
  2073. set: function(a) {
  2074. this.rn.x = a.x;
  2075. this.rn.y = a.y
  2076. },
  2077. enumerable: p
  2078. }
  2079. });
  2080. F.pg = function(a, d, e, f, g) {
  2081. this.Yc = f || new ArrayBuffer(F.pg.BYTES_PER_ELEMENT);
  2082. this.la = g || 0;
  2083. f = this.Yc;
  2084. g = this.la;
  2085. var h = F.jc.BYTES_PER_ELEMENT;
  2086. this.Sa = a ? new F.jc(a.x, a.y, a.e, f, g) : new F.jc(0, 0, 0, f, g);
  2087. this.Yq = d ? F.color(d.r, d.g, d.b, d.a, f, g + h) : F.color(0, 0, 0, 0, f, g + h);
  2088. this.Rf = e ? new F.Qi(e.fa, e.ga, f, g + h + W.BYTES_PER_ELEMENT) : new F.Qi(0, 0, f, g + h + W.BYTES_PER_ELEMENT)
  2089. };
  2090. F.pg.BYTES_PER_ELEMENT = 24;
  2091. Object.defineProperties(F.pg.prototype, {
  2092. k: {
  2093. get: A("Sa"),
  2094. set: function(a) {
  2095. var d = this.Sa;
  2096. d.x = a.x;
  2097. d.y = a.y;
  2098. d.e = a.e
  2099. },
  2100. enumerable: p
  2101. },
  2102. v: {
  2103. get: A("Yq"),
  2104. set: function(a) {
  2105. var d = this.Yq;
  2106. d.r = a.r;
  2107. d.g = a.g;
  2108. d.b = a.b;
  2109. d.a = a.a
  2110. },
  2111. enumerable: p
  2112. },
  2113. n: {
  2114. get: A("Rf"),
  2115. set: function(a) {
  2116. this.Rf.fa = a.fa;
  2117. this.Rf.ga = a.ga
  2118. },
  2119. enumerable: p
  2120. }
  2121. });
  2122. F.Db = function(a, d, e, f, g, h) {
  2123. this.Yc = g || new ArrayBuffer(F.Db.BYTES_PER_ELEMENT);
  2124. this.la =
  2125. h || 0;
  2126. g = this.Yc;
  2127. h = this.la;
  2128. var m = F.pg.BYTES_PER_ELEMENT;
  2129. this.so = a ? new F.pg(a.k, a.v, a.n, g, h) : new F.pg(q, q, q, g, h);
  2130. this.nn = d ? new F.pg(d.k, d.v, d.n, g, h + m) : new F.pg(q, q, q, g, h + m);
  2131. this.vo = e ? new F.pg(e.k, e.v, e.n, g, h + 2 * m) : new F.pg(q, q, q, g, h + 2 * m);
  2132. this.rn = f ? new F.pg(f.k, f.v, f.n, g, h + 3 * m) : new F.pg(q, q, q, g, h + 3 * m)
  2133. };
  2134. F.Db.BYTES_PER_ELEMENT = 96;
  2135. Object.defineProperties(F.Db.prototype, {
  2136. N: {
  2137. get: A("so"),
  2138. set: function(a) {
  2139. var d = this.so;
  2140. d.k = a.k;
  2141. d.v = a.v;
  2142. d.n = a.n
  2143. },
  2144. enumerable: p
  2145. },
  2146. F: {
  2147. get: A("nn"),
  2148. set: function(a) {
  2149. var d = this.nn;
  2150. d.k = a.k;
  2151. d.v = a.v;
  2152. d.n = a.n
  2153. },
  2154. enumerable: p
  2155. },
  2156. K: {
  2157. get: A("vo"),
  2158. set: function(a) {
  2159. var d = this.vo;
  2160. d.k = a.k;
  2161. d.v = a.v;
  2162. d.n = a.n
  2163. },
  2164. enumerable: p
  2165. },
  2166. O: {
  2167. get: A("rn"),
  2168. set: function(a) {
  2169. var d = this.rn;
  2170. d.k = a.k;
  2171. d.v = a.v;
  2172. d.n = a.n
  2173. },
  2174. enumerable: p
  2175. },
  2176. Fw: {
  2177. get: A("Yc"),
  2178. enumerable: p
  2179. }
  2180. });
  2181. F.vI = function() {
  2182. return new F.Db
  2183. };
  2184. F.uI = function(a) {
  2185. if (!a) return F.vI();
  2186. var d = a.N,
  2187. e = a.F,
  2188. f = a.K;
  2189. a = a.O;
  2190. return {
  2191. N: {
  2192. k: {
  2193. x: d.k.x,
  2194. y: d.k.y,
  2195. e: d.k.e
  2196. },
  2197. v: {
  2198. r: d.v.r,
  2199. g: d.v.g,
  2200. b: d.v.b,
  2201. a: d.v.a
  2202. },
  2203. n: {
  2204. fa: d.n.fa,
  2205. ga: d.n.ga
  2206. }
  2207. },
  2208. F: {
  2209. k: {
  2210. x: e.k.x,
  2211. y: e.k.y,
  2212. e: e.k.e
  2213. },
  2214. v: {
  2215. r: e.v.r,
  2216. g: e.v.g,
  2217. b: e.v.b,
  2218. a: e.v.a
  2219. },
  2220. n: {
  2221. fa: e.n.fa,
  2222. ga: e.n.ga
  2223. }
  2224. },
  2225. K: {
  2226. k: {
  2227. x: f.k.x,
  2228. y: f.k.y,
  2229. e: f.k.e
  2230. },
  2231. v: {
  2232. r: f.v.r,
  2233. g: f.v.g,
  2234. b: f.v.b,
  2235. a: f.v.a
  2236. },
  2237. n: {
  2238. fa: f.n.fa,
  2239. ga: f.n.ga
  2240. }
  2241. },
  2242. O: {
  2243. k: {
  2244. x: a.k.x,
  2245. y: a.k.y,
  2246. e: a.k.e
  2247. },
  2248. v: {
  2249. r: a.v.r,
  2250. g: a.v.g,
  2251. b: a.v.b,
  2252. a: a.v.a
  2253. },
  2254. n: {
  2255. fa: a.n.fa,
  2256. ga: a.n.ga
  2257. }
  2258. }
  2259. }
  2260. };
  2261. F.v7 = function(a) {
  2262. if (!a) return [];
  2263. for (var d = [], e = 0; e < a.length; e++) d.push(F.uI(a[e]));
  2264. return d
  2265. };
  2266. F.td = function(a, d, e, f, g) {
  2267. this.Yc = f || new ArrayBuffer(F.td.BYTES_PER_ELEMENT);
  2268. this.la = g || 0;
  2269. f = this.Yc;
  2270. g = this.la;
  2271. var h = F.Cc.BYTES_PER_ELEMENT;
  2272. this.Sa = a ? new F.Cc(a.x, a.y, f, g) : new F.Cc(0, 0, f, g);
  2273. this.Yq = d ? F.color(d.r,
  2274. d.g, d.b, d.a, f, g + h) : F.color(0, 0, 0, 0, f, g + h);
  2275. this.Rf = e ? new F.Qi(e.fa, e.ga, f, g + h + W.BYTES_PER_ELEMENT) : new F.Qi(0, 0, f, g + h + W.BYTES_PER_ELEMENT)
  2276. };
  2277. F.td.BYTES_PER_ELEMENT = 20;
  2278. Object.defineProperties(F.td.prototype, {
  2279. k: {
  2280. get: A("Sa"),
  2281. set: function(a) {
  2282. this.Sa.x = a.x;
  2283. this.Sa.y = a.y
  2284. },
  2285. enumerable: p
  2286. },
  2287. v: {
  2288. get: A("Yq"),
  2289. set: function(a) {
  2290. var d = this.Yq;
  2291. d.r = a.r;
  2292. d.g = a.g;
  2293. d.b = a.b;
  2294. d.a = a.a
  2295. },
  2296. enumerable: p
  2297. },
  2298. n: {
  2299. get: A("Rf"),
  2300. set: function(a) {
  2301. this.Rf.fa = a.fa;
  2302. this.Rf.ga = a.ga
  2303. },
  2304. enumerable: p
  2305. }
  2306. });
  2307. F.Zb = function(a, d, e, f, g) {
  2308. this.Yc = f || new ArrayBuffer(F.Zb.BYTES_PER_ELEMENT);
  2309. this.la = g || 0;
  2310. f = this.Yc;
  2311. g = this.la;
  2312. var h = F.td.BYTES_PER_ELEMENT;
  2313. this.FI = a ? new F.td(a.k, a.v, a.n, f, g) : new F.td(q, q, q, f, g);
  2314. this.NI = d ? new F.td(d.k, d.v, d.n, f, g + h) : new F.td(q, q, q, f, g + h);
  2315. this.SI = e ? new F.td(e.k, e.v, e.n, f, g + 2 * h) : new F.td(q, q, q, f, g + 2 * h)
  2316. };
  2317. F.Zb.BYTES_PER_ELEMENT = 60;
  2318. Object.defineProperties(F.Zb.prototype, {
  2319. a: {
  2320. get: A("FI"),
  2321. set: function(a) {
  2322. var d = this.FI;
  2323. d.k = a.k;
  2324. d.v = a.v;
  2325. d.n = a.n
  2326. },
  2327. enumerable: p
  2328. },
  2329. b: {
  2330. get: A("NI"),
  2331. set: function(a) {
  2332. var d = this.NI;
  2333. d.k = a.k;
  2334. d.v = a.v;
  2335. d.n = a.n
  2336. },
  2337. enumerable: p
  2338. },
  2339. D: {
  2340. get: A("SI"),
  2341. set: function(a) {
  2342. var d =
  2343. this.SI;
  2344. d.k = a.k;
  2345. d.v = a.v;
  2346. d.n = a.n
  2347. },
  2348. enumerable: p
  2349. }
  2350. })
  2351. };
  2352. F.C.rz = function() {
  2353. var a = F.color;
  2354. a.$V = function() {
  2355. return a(255, 255, 255)
  2356. };
  2357. a.aW = function() {
  2358. return a(255, 255, 0)
  2359. };
  2360. a.yV = function() {
  2361. return a(0, 0, 255)
  2362. };
  2363. a.GV = function() {
  2364. return a(0, 255, 0)
  2365. };
  2366. a.QV = function() {
  2367. return a(255, 0, 0)
  2368. };
  2369. a.LV = function() {
  2370. return a(255, 0, 255)
  2371. };
  2372. a.xV = function() {
  2373. return a(0, 0, 0)
  2374. };
  2375. a.OV = function() {
  2376. return a(255, 127, 0)
  2377. };
  2378. a.FV = function() {
  2379. return a(166, 166, 166)
  2380. };
  2381. F.j(a, "WHITE", a.$V);
  2382. F.j(a, "YELLOW", a.aW);
  2383. F.j(a, "BLUE", a.yV);
  2384. F.j(a, "GREEN", a.GV);
  2385. F.j(a, "RED", a.QV);
  2386. F.j(a, "MAGENTA", a.LV);
  2387. F.j(a, "BLACK", a.xV);
  2388. F.j(a,
  2389. "ORANGE", a.OV);
  2390. F.j(a, "GRAY", a.FV)
  2391. };
  2392. function W(a, c, d, e) {
  2393. this.r = a || 0;
  2394. this.g = c || 0;
  2395. this.b = d || 0;
  2396. this.a = e || 255
  2397. }
  2398. F.color = function(a, c, d, e) {
  2399. return a === k ? {
  2400. r: 0,
  2401. g: 0,
  2402. b: 0,
  2403. a: 255
  2404. } : "string" === typeof a ? F.sN(a) : "object" === typeof a ? {
  2405. r: a.r,
  2406. g: a.g,
  2407. b: a.b,
  2408. a: a.a || 255
  2409. } : {
  2410. r: a,
  2411. g: c,
  2412. b: d,
  2413. a: e || 255
  2414. }
  2415. };
  2416. F.A9 = function(a, c) {
  2417. return a.r === c.r && a.g === c.g && a.b === c.b
  2418. };
  2419. F.OP = function() {
  2420. this.timestamp = this.e = this.y = this.x = 0
  2421. };
  2422. F.Cc = function(a, c) {
  2423. this.x = a || 0;
  2424. this.y = c || 0
  2425. };
  2426. F.yy = function(a, c) {
  2427. return new F.Cc(a, c)
  2428. };
  2429. F.jc = function(a, c, d) {
  2430. this.x = a || 0;
  2431. this.y = c || 0;
  2432. this.e = d || 0
  2433. };
  2434. F.Hka = function(a, c, d) {
  2435. return new F.jc(a, c, d)
  2436. };
  2437. F.Qi = function(a, c) {
  2438. this.fa = a || 0;
  2439. this.ga = c || 0
  2440. };
  2441. F.mka = function(a, c) {
  2442. return new F.Qi(a, c)
  2443. };
  2444. F.Nj = function(a, c) {
  2445. this.src = a;
  2446. this.U = c
  2447. };
  2448. F.k9 = function() {
  2449. return new F.Nj(F.ONE, F.ZERO)
  2450. };
  2451. F.sN = function(a) {
  2452. a = a.replace(/^#?/, "0x");
  2453. a = parseInt(a);
  2454. return F.color(a >> 16, (a >> 8) % 256, a % 256)
  2455. };
  2456. F.C9 = function(a) {
  2457. var c = a.r.toString(16),
  2458. d = a.g.toString(16),
  2459. e = a.b.toString(16);
  2460. return "#" + (16 > a.r ? "0" + c : c) + (16 > a.g ? "0" + d : d) + (16 > a.b ? "0" + e : e)
  2461. };
  2462. F.tu = 0;
  2463. F.xq = 1;
  2464. F.JH = 2;
  2465. F.Kq = 0;
  2466. F.cU = 1;
  2467. F.wI = 2;
  2468. F.A7 = F.ma.extend({
  2469. $n: q,
  2470. is: q,
  2471. tA: 0,
  2472. ctor: function() {
  2473. this.$n = {};
  2474. this.is = {};
  2475. this.tA = 2 << (0 | 10 * Math.random())
  2476. },
  2477. nU: function() {
  2478. this.tA++;
  2479. return "key_" + this.tA
  2480. },
  2481. Nia: function(a, c) {
  2482. if (c != q) {
  2483. var d = this.nU();
  2484. this.$n[d] = c;
  2485. this.is[d] = a
  2486. }
  2487. },
  2488. L1: function(a) {
  2489. if (a == q) return q;
  2490. var c = this.$n,
  2491. d;
  2492. for (d in c)
  2493. if (c[d] === a) return this.is[d];
  2494. return q
  2495. },
  2496. Gka: function(a) {
  2497. return this.L1(a)
  2498. },
  2499. x2: function(a) {
  2500. if (a != q) {
  2501. var c = this.$n,
  2502. d;
  2503. for (d in c)
  2504. if (c[d] === a) {
  2505. delete this.is[d];
  2506. delete c[d];
  2507. break
  2508. }
  2509. }
  2510. },
  2511. pha: function(a) {
  2512. if (a != q)
  2513. for (var c = 0; c < a.length; c++) this.x2(a[c])
  2514. },
  2515. KY: function() {
  2516. var a = [],
  2517. c = this.$n,
  2518. d;
  2519. for (d in c) a.push(c[d]);
  2520. return a
  2521. },
  2522. jha: function() {
  2523. this.$n = {};
  2524. this.is = {}
  2525. },
  2526. count: function() {
  2527. return this.KY().length
  2528. }
  2529. });
  2530. F.PG = function() {
  2531. this.fontName = "Arial";
  2532. this.fontSize = 12;
  2533. this.textAlign = F.xq;
  2534. this.verticalAlign = F.Kq;
  2535. this.fillStyle = F.color(255, 255, 255, 255);
  2536. this.boundingHeight = this.boundingWidth = 0;
  2537. this.jG = r;
  2538. this.strokeStyle = F.color(255, 255, 255, 255);
  2539. this.lineWidth = 1;
  2540. this.kP = r;
  2541. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2542. this.shadowOpacity = 1
  2543. };
  2544. F.B === F.$ && (F.assert("function" === typeof F.C.lA, F.i.Qc, "CCTypesWebGL.js"), F.C.lA(), delete F.C.lA);
  2545. F.assert("function" === typeof F.C.rz, F.i.Qc, "CCTypesPropertyDefine.js");
  2546. F.C.rz();
  2547. delete F.C.rz;
  2548. F.p7 = [];
  2549. F.q7 = {};
  2550. F.My = F.ma.extend({
  2551. M7: q,
  2552. ge: q,
  2553. Cn: q,
  2554. xk: q,
  2555. pe: q,
  2556. qi: q,
  2557. CC: r,
  2558. AA: p,
  2559. Cl: 1,
  2560. HD: "",
  2561. zC: q,
  2562. qa: 1,
  2563. BK: 1,
  2564. Ra: 1,
  2565. CK: 1,
  2566. Sn: 0,
  2567. SB: 5,
  2568. lh: q,
  2569. $K: q,
  2570. dL: q,
  2571. cL: q,
  2572. aL: q,
  2573. bL: q,
  2574. ur: r,
  2575. H7: r,
  2576. F8: q,
  2577. bK: q,
  2578. cK: q,
  2579. y8: r,
  2580. QA: q,
  2581. qk: q,
  2582. kB: 1,
  2583. Iu: r,
  2584. iK: p,
  2585. ctor: function() {
  2586. var a = document,
  2587. c = F.Oj,
  2588. d = F.lg;
  2589. this.qk = F.nm.parentNode === a.body ? a.documentElement : F.nm.parentNode;
  2590. this.ge = F.size(0, 0);
  2591. this.zB();
  2592. var a = F.Za.width,
  2593. e = F.Za.height;
  2594. this.Cn = F.size(a, e);
  2595. this.xk = F.size(a, e);
  2596. this.pe = F.rect(0, 0, a, e);
  2597. this.qi = F.rect(0, 0, a, e);
  2598. this.QA = {
  2599. left: 0,
  2600. top: 0
  2601. };
  2602. this.HD = "Cocos2dHTML5";
  2603. a = F.Cb;
  2604. this.RZ(a.tF == a.cH || a.tF == a.dH);
  2605. F.Qm && F.Qm.M(this.qi);
  2606. this.$K = new F.we(c.Mt, d.Py);
  2607. this.dL = new F.we(c.dS, d.su);
  2608. this.cL = new F.we(c.Mt, d.hz);
  2609. this.aL = new F.we(c.Mt, d.Qy);
  2610. this.bL = new F.we(c.Mt, d.du);
  2611. this.bK = F.Za;
  2612. this.cK = F.m
  2613. },
  2614. AC: function() {
  2615. var a = this.xk.width,
  2616. c = this.xk.height;
  2617. this.zC && (this.zB(), this.zC.call());
  2618. 0 < a && this.OF(a, c, this.lh)
  2619. },
  2620. E2: function(a) {
  2621. a ? this.Iu || (this.Iu = p, a = this.AC.bind(this), F.Ja(window, "resize", a, r)) : this.Iu && (this.Iu = p, a = this.AC.bind(this), window.removeEventListener("resize", a, r))
  2622. },
  2623. eja: function(a) {
  2624. if ("function" == typeof a || a == q) this.zC = a
  2625. },
  2626. zB: function() {
  2627. var a = this.ge;
  2628. a.width = this.qk.clientWidth;
  2629. a.height = this.qk.clientHeight
  2630. },
  2631. B7: function() {
  2632. var a = this.xk.width,
  2633. c = this.xk.height;
  2634. 0 < a && this.OF(a, c, this.lh)
  2635. },
  2636. bY: function() {
  2637. if (this.iK) {
  2638. var a = {
  2639. "user-scalable": "no",
  2640. "maximum-scale": "1.0",
  2641. "initial-scale": "1.0"
  2642. },
  2643. c = document.getElementsByName("viewport"),
  2644. d;
  2645. 0 == c.length ? (c = F.Nb("meta"), c.name = "viewport", c.content = "", document.head.appendChild(c)) : c = c[0];
  2646. if (F.Cb.xi && F.Cb.Pk == F.Cb.Hp) c.content = "initial-scale:1";
  2647. else {
  2648. d = c.content;
  2649. for (var e in a) RegExp(e).test(d) || (d += ("" == d ? "" : ",") + e + "\x3d" + a[e]);
  2650. c.content = d
  2651. }
  2652. }
  2653. },
  2654. jL: function() {
  2655. var a = F.rb();
  2656. this.Ra = this.qa = a
  2657. },
  2658. XK: function() {
  2659. this.qa = this.BK;
  2660. this.Ra = this.CK
  2661. },
  2662. C7: t(),
  2663. L0: function() {
  2664. this.ur = p
  2665. },
  2666. U8: y("iK"),
  2667. RZ: function(a) {
  2668. this.CC = a ? p : r
  2669. },
  2670. zda: A("CC"),
  2671. G$: function(a) {
  2672. this.AA = a ? p : r
  2673. },
  2674. lda: A("AA"),
  2675. end: t(),
  2676. wda: function() {
  2677. return this.bK != q && this.cK != q
  2678. },
  2679. sia: function(a) {
  2680. this.kB = a;
  2681. F.I.Mm(F.I.ki)
  2682. },
  2683. ika: t(),
  2684. xia: t(),
  2685. dia: function(a, c) {
  2686. this.QA = {
  2687. left: a,
  2688. top: c
  2689. }
  2690. },
  2691. Eaa: A("QA"),
  2692. dba: function() {
  2693. return F.size(this.ge.width,
  2694. this.ge.height)
  2695. },
  2696. ria: function(a, c) {
  2697. this.ge.width = a;
  2698. this.ge.height = c;
  2699. this.qk.style.width = a + "px";
  2700. this.qk.style.height = c + "px";
  2701. this.AC();
  2702. F.I.Mm(F.I.ki)
  2703. },
  2704. t9: t(),
  2705. Gs: function() {
  2706. return F.size(this.qi.width, this.qi.height)
  2707. },
  2708. ME: function() {
  2709. return F.d(this.qi.x, this.qi.y)
  2710. },
  2711. m9: E(p),
  2712. cca: A("lh"),
  2713. x3: function(a) {
  2714. if (a instanceof F.we) this.lh = a;
  2715. else {
  2716. var c = F.we;
  2717. a === c.Py && (this.lh = this.$K);
  2718. a === c.su && (this.lh = this.dL);
  2719. a === c.hz && (this.lh = this.cL);
  2720. a === c.Qy && (this.lh = this.aL);
  2721. a === c.du && (this.lh = this.bL)
  2722. }
  2723. },
  2724. OF: function(a, c,
  2725. d) {
  2726. if (isNaN(a) || 0 == a || isNaN(c) || 0 == c) F.log(F.i.CQ);
  2727. else {
  2728. this.x3(d);
  2729. var e = this.lh;
  2730. if (e) {
  2731. e.Hm(this);
  2732. var f = this.ge.width,
  2733. g = this.ge.height;
  2734. F.Cb.xi && this.bY(this.ge.width, this.ge.height);
  2735. this.zB();
  2736. d == this.lh && a == this.xk.width && c == this.xk.height && f == this.ge.width && g == this.ge.height || (this.Cn = F.size(a, c), this.xk = F.size(a, c), a = e.apply(this, this.Cn), a.scale && 2 == a.scale.length && (this.qa = a.scale[0], this.Ra = a.scale[1]), a.viewport && (a = this.pe = a.viewport, c = this.qi, c.width = F.Za.width / this.qa, c.height = F.Za.height /
  2737. this.Ra, c.x = -a.x / this.qa, c.y = -a.y / this.Ra), a = F.I, F.Gt.width = a.T.width = this.qi.width, F.Gt.height = a.T.height = this.qi.height, e.Gm(this), F.B == F.$ && (a.zn(), a.QO()), this.BK = this.qa, this.CK = this.Ra, F.tQ && F.tQ.p8(), F.Qm && F.Qm.M(this.qi))
  2738. } else F.log(F.i.DQ)
  2739. }
  2740. },
  2741. AE: function() {
  2742. return F.size(this.Cn.width, this.Cn.height)
  2743. },
  2744. R3: function(a, c, d, e) {
  2745. var f = this.kB,
  2746. g = this.qa,
  2747. h = this.Ra;
  2748. F.m.viewport(a * g * f + this.pe.x * f, c * h * f + this.pe.y * f, d * g * f, e * h * f)
  2749. },
  2750. gja: function(a, c, d, e) {
  2751. var f = this.kB,
  2752. g = this.qa,
  2753. h = this.Ra;
  2754. F.m.scissor(a * g * f +
  2755. this.pe.x * f, c * h * f + this.pe.y * f, d * g * f, e * h * f)
  2756. },
  2757. Bda: function() {
  2758. var a = F.m;
  2759. return a.isEnabled(a.SCISSOR_TEST)
  2760. },
  2761. hca: function() {
  2762. var a = F.m,
  2763. c = this.qa,
  2764. d = this.Ra,
  2765. a = a.getParameter(a.SCISSOR_BOX);
  2766. return F.rect((a[0] - this.pe.x) / c, (a[1] - this.pe.y) / d, a[2] / c, a[3] / d)
  2767. },
  2768. Qja: function(a) {
  2769. a != q && 0 < a.length && (this.HD = a)
  2770. },
  2771. Pca: A("HD"),
  2772. Qca: A("pe"),
  2773. cN: A("qa"),
  2774. dN: A("Ra"),
  2775. Maa: A("Cl"),
  2776. hE: function(a, c, d) {
  2777. return {
  2778. x: this.Cl * (a - d.left),
  2779. y: this.Cl * (d.top + d.height - c)
  2780. }
  2781. },
  2782. YU: function(a, c) {
  2783. var d = this.pe;
  2784. a.x = (this.Cl * (a.x - c.left) - d.x) / this.qa;
  2785. a.y = (this.Cl * (c.top + c.height - a.y) - d.y) / this.Ra
  2786. },
  2787. av: function(a) {
  2788. for (var c = this.pe, d = this.qa, e = this.Ra, f, g, h, m = 0; m < a.length; m++) f = a[m], g = f.zd, h = f.ji, f.TC((g.x - c.x) / d, (g.y - c.y) / e), f.io((h.x - c.x) / d, (h.y - c.y) / e)
  2789. }
  2790. });
  2791. F.My.qB = function() {
  2792. this.Bv || (this.Bv = this.Bv || new F.My, this.Bv.L0());
  2793. return this.Bv
  2794. };
  2795. F.Oj = F.ma.extend({
  2796. Hm: t(),
  2797. apply: t(),
  2798. Gm: t(),
  2799. XC: function(a, c, d) {
  2800. var e = a.qk;
  2801. F.view.AA && (F.Cb.xi && e == document.documentElement) && F.screen.ZY(e);
  2802. var e = F.Za,
  2803. f = F.nm;
  2804. f.style.width = e.style.width = c + "px";
  2805. f.style.height = e.style.height = d + "px";
  2806. f = a.Cl = 1;
  2807. a.CC && (f = a.Cl = window.devicePixelRatio || 1);
  2808. e.width = c * f;
  2809. e.height = d * f;
  2810. a = document.body;
  2811. var g;
  2812. if (a && (g = a.style)) g.paddingTop = g.paddingTop || "0px", g.paddingRight = g.paddingRight || "0px", g.paddingBottom = g.paddingBottom || "0px", g.paddingLeft = g.paddingLeft || "0px", g.borderTop = g.borderTop ||
  2813. "0px", g.borderRight = g.borderRight || "0px", g.borderBottom = g.borderBottom || "0px", g.borderLeft = g.borderLeft || "0px", g.marginTop = g.marginTop || "0px", g.marginRight = g.marginRight || "0px", g.marginBottom = g.marginBottom || "0px", g.marginLeft = g.marginLeft || "0px"
  2814. },
  2815. PJ: function() {
  2816. document.body.insertBefore(F.nm, document.body.firstChild);
  2817. var a = document.body.style;
  2818. a.width = window.innerWidth + "px";
  2819. a.height = window.innerHeight + "px";
  2820. a.overflow = "hidden";
  2821. a = F.nm.style;
  2822. a.position = "fixed";
  2823. a.left = a.top = "0px";
  2824. document.body.scrollTop =
  2825. 0
  2826. }
  2827. });
  2828. F.lg = F.ma.extend({
  2829. BC: {
  2830. scale: [1, 1],
  2831. viewport: q
  2832. },
  2833. Uq: function(a, c, d, e, f, g) {
  2834. 2 > Math.abs(a - d) && (d = a);
  2835. 2 > Math.abs(c - e) && (e = c);
  2836. a = F.rect(Math.round((a - d) / 2), Math.round((c - e) / 2), d, e);
  2837. F.B == F.Ca && F.m.translate(a.x, a.y + e);
  2838. this.BC.scale = [f, g];
  2839. this.BC.viewport = a;
  2840. return this.BC
  2841. },
  2842. Hm: t(),
  2843. apply: function() {
  2844. return {
  2845. scale: [1, 1]
  2846. }
  2847. },
  2848. Gm: t()
  2849. });
  2850. (function() {
  2851. var a = F.Oj.extend({
  2852. apply: function(a) {
  2853. this.XC(a, a.ge.width, a.ge.height)
  2854. }
  2855. }),
  2856. c = F.Oj.extend({
  2857. apply: function(a, c) {
  2858. var d = a.ge.width,
  2859. e = a.ge.height,
  2860. f = F.nm.style,
  2861. u = c.width,
  2862. v = c.height,
  2863. x = d / u,
  2864. w = e / v,
  2865. z, B;
  2866. x < w ? (z = d, B = v * x) : (z = u * w, B = e);
  2867. u = Math.round((d - z) / 2);
  2868. B = Math.round((e - B) / 2);
  2869. this.XC(a, d - 2 * u, e - 2 * B);
  2870. f.marginLeft = u + "px";
  2871. f.marginRight = u + "px";
  2872. f.marginTop = B + "px";
  2873. f.marginBottom = B + "px"
  2874. }
  2875. });
  2876. a.extend({
  2877. Hm: function(a) {
  2878. this._super(a);
  2879. a.qk = document.documentElement
  2880. },
  2881. apply: function(a) {
  2882. this._super(a);
  2883. this.PJ()
  2884. }
  2885. });
  2886. c.extend({
  2887. Hm: function(a) {
  2888. this._super(a);
  2889. a.qk = document.documentElement
  2890. },
  2891. apply: function(a, c) {
  2892. this._super(a, c);
  2893. this.PJ()
  2894. }
  2895. });
  2896. var d = F.Oj.extend({
  2897. apply: function(a) {
  2898. this.XC(a, F.Za.width, F.Za.height)
  2899. }
  2900. });
  2901. F.Oj.Mt = new a;
  2902. F.Oj.dS = new c;
  2903. F.Oj.H6 = new d;
  2904. var a = F.lg.extend({
  2905. apply: function(a, c) {
  2906. var d = F.Za.width,
  2907. e = F.Za.height;
  2908. return this.Uq(d, e, d, e, d / c.width, e / c.height)
  2909. }
  2910. }),
  2911. c = F.lg.extend({
  2912. apply: function(a, c) {
  2913. var d = F.Za.width,
  2914. e = F.Za.height,
  2915. f = c.width,
  2916. u = c.height,
  2917. v = d / f,
  2918. x = e / u,
  2919. w = 0,
  2920. z, B;
  2921. v < x ? (w = v, z = d, B = u * w) : (w = x, z = f * w, B = e);
  2922. return this.Uq(d, e, z, B, w, w)
  2923. }
  2924. }),
  2925. d = F.lg.extend({
  2926. apply: function(a,
  2927. c) {
  2928. var d = F.Za.width,
  2929. e = F.Za.height,
  2930. f = c.width,
  2931. u = c.height,
  2932. v = d / f,
  2933. x = e / u,
  2934. w, z, B;
  2935. v < x ? (w = x, z = f * w, B = e) : (w = v, z = d, B = u * w);
  2936. return this.Uq(d, e, z, B, w, w)
  2937. }
  2938. }),
  2939. e = F.lg.extend({
  2940. apply: function(a, c) {
  2941. var d = F.Za.width,
  2942. e = F.Za.height,
  2943. f = e / c.height;
  2944. return this.Uq(d, e, d, e, f, f)
  2945. },
  2946. Gm: function(a) {
  2947. F.I.T = a.Gs()
  2948. }
  2949. }),
  2950. f = F.lg.extend({
  2951. apply: function(a, c) {
  2952. var d = F.Za.width,
  2953. e = F.Za.height,
  2954. f = d / c.width;
  2955. return this.Uq(d, e, d, e, f, f)
  2956. },
  2957. Gm: function(a) {
  2958. F.I.T = a.Gs()
  2959. }
  2960. });
  2961. F.lg.Py = new a;
  2962. F.lg.su = new c;
  2963. F.lg.hz = new d;
  2964. F.lg.Qy = new e;
  2965. F.lg.du = new f
  2966. })();
  2967. F.we = F.ma.extend({
  2968. Zu: q,
  2969. $u: q,
  2970. ctor: function(a, c) {
  2971. this.W2(a);
  2972. this.X2(c)
  2973. },
  2974. Hm: function(a) {
  2975. this.Zu.Hm(a);
  2976. this.$u.Hm(a)
  2977. },
  2978. apply: function(a, c) {
  2979. this.Zu.apply(a, c);
  2980. return this.$u.apply(a, c)
  2981. },
  2982. Gm: function(a) {
  2983. this.Zu.Gm(a);
  2984. this.$u.Gm(a)
  2985. },
  2986. W2: function(a) {
  2987. a instanceof F.Oj && (this.Zu = a)
  2988. },
  2989. X2: function(a) {
  2990. a instanceof F.lg && (this.$u = a)
  2991. }
  2992. });
  2993. F.we.Py = 0;
  2994. F.we.hz = 1;
  2995. F.we.su = 2;
  2996. F.we.Qy = 3;
  2997. F.we.du = 4;
  2998. F.we.aU = 5;
  2999. F.screen = {
  3000. sw: r,
  3001. mC: q,
  3002. rD: "",
  3003. pk: q,
  3004. lV: [
  3005. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3006. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3007. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3008. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3009. ["msRequestFullscreen", "msExitFullscreen",
  3010. "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"
  3011. ]
  3012. ],
  3013. M: function() {
  3014. this.pk = {};
  3015. var a, c, d = this.lV,
  3016. e;
  3017. a = 0;
  3018. for (l = d.length; a < l; a++)
  3019. if ((c = d[a]) && c[1] in document) {
  3020. a = 0;
  3021. for (e = c.length; a < e; a++) this.pk[d[0][a]] = c[a];
  3022. break
  3023. }
  3024. this.sw = this.pk.requestFullscreen != k;
  3025. this.rD = "ontouchstart" in window ? "touchstart" : "mousedown"
  3026. },
  3027. fullScreen: function() {
  3028. return this.sw && document[this.pk.fullscreenEnabled]
  3029. },
  3030. yO: function(a, c) {
  3031. if (this.sw) {
  3032. a = a || document.documentElement;
  3033. a[this.pk.requestFullscreen]();
  3034. if (c) {
  3035. var d = this.pk.gaa;
  3036. this.mC && document.removeEventListener(d, this.mC);
  3037. this.mC = c;
  3038. F.Ja(document, d, c, r)
  3039. }
  3040. return a[this.pk.requestFullscreen]()
  3041. }
  3042. },
  3043. J$: function() {
  3044. return this.sw ? document[this.pk.exitFullscreen]() : p
  3045. },
  3046. ZY: function(a, c) {
  3047. function d() {
  3048. f.yO(a, c);
  3049. e.removeEventListener(f.rD, d)
  3050. }
  3051. a = a || document.body;
  3052. var e = F.Za || a,
  3053. f = this;
  3054. this.yO(a, c);
  3055. F.Ja(e, this.rD, d)
  3056. }
  3057. };
  3058. F.screen.M();
  3059. F.Qm = {
  3060. vP: F.d(0, 0),
  3061. wP: F.d(0, 0),
  3062. top: F.d(0, 0),
  3063. TD: F.d(0, 0),
  3064. ZL: F.d(0, 0),
  3065. bottom: F.d(0, 0),
  3066. Kw: F.d(0, 0),
  3067. left: F.d(0, 0),
  3068. right: F.d(0, 0),
  3069. width: 0,
  3070. height: 0,
  3071. M: function(a) {
  3072. var c = this.width = a.width,
  3073. d = this.height = a.height,
  3074. e = a.x;
  3075. a = a.y;
  3076. var f = a + d,
  3077. g = e + c;
  3078. this.vP.x = e;
  3079. this.vP.y = f;
  3080. this.wP.x = g;
  3081. this.wP.y = f;
  3082. this.top.x = e + c / 2;
  3083. this.top.y = f;
  3084. this.TD.x = e;
  3085. this.TD.y = a;
  3086. this.ZL.x = g;
  3087. this.ZL.y = a;
  3088. this.bottom.x = e + c / 2;
  3089. this.bottom.y = a;
  3090. this.Kw.x = e + c / 2;
  3091. this.Kw.y = a + d / 2;
  3092. this.left.x = e;
  3093. this.left.y = a + d / 2;
  3094. this.right.x = g;
  3095. this.right.y = a + d / 2
  3096. }
  3097. };
  3098. F.QT = -90;
  3099. F.RT = 90;
  3100. F.ST = 180;
  3101. F.s7 = 0;
  3102. F.FN = {
  3103. bo: r,
  3104. mK: r,
  3105. IK: F.d(0, 0),
  3106. iX: F.d(0, 0),
  3107. JK: [],
  3108. nC: 0,
  3109. Mk: [],
  3110. sD: {},
  3111. Sn: 0,
  3112. SB: 5,
  3113. Ku: r,
  3114. Lu: 1 / 30,
  3115. HI: 1,
  3116. yl: 0,
  3117. vA: q,
  3118. Ju: q,
  3119. YV: function() {
  3120. for (var a = this.Sn, c = 0; c < this.SB; c++) {
  3121. if (!(a & 1)) return this.Sn |= 1 << c, c;
  3122. a >>= 1
  3123. }
  3124. return -1
  3125. },
  3126. oX: function(a) {
  3127. 0 > a || a >= this.SB || (a = ~(1 << a), this.Sn &= a)
  3128. },
  3129. sk: q,
  3130. PE: function(a) {
  3131. for (var c, d, e, f = [], g = this.sD, h = 0, m = a.length; h < m; h++) c = a[h], e = c.eh, d = g[e], d == q && (d = this.YV(), -1 == d ? F.log(F.i.M0, d) : (c = this.Mk[d] = c, g[e] = d, f.push(c)));
  3132. 0 < f.length && (this.sk.av(f), a = new F.mg(f), a.lk = F.mg.Vm.Ay, F.ua.dispatchEvent(a))
  3133. },
  3134. QE: function(a) {
  3135. for (var c, d, e = [], f = this.Mk, g = 0, h = a.length; g < h; g++) c = a[g], d = c.eh, d = this.sD[d], d != q && f[d] && (f[d].TC(c.zd), f[d].io(c.ji), e.push(f[d]));
  3136. 0 < e.length && (this.sk.av(e), a = new F.mg(e), a.lk = F.mg.Vm.dz, F.ua.dispatchEvent(a))
  3137. },
  3138. fx: function(a) {
  3139. a = this.eN(a);
  3140. 0 < a.length && (this.sk.av(a), a = new F.mg(a), a.lk = F.mg.Vm.Ny, F.ua.dispatchEvent(a))
  3141. },
  3142. qN: function(a) {
  3143. a = this.eN(a);
  3144. 0 < a.length && (this.sk.av(a), a = new F.mg(a), a.lk = F.mg.Vm.Fy, F.ua.dispatchEvent(a))
  3145. },
  3146. eN: function(a) {
  3147. for (var c, d, e, f = [], g = this.Mk, h = this.sD, m =
  3148. 0, n = a.length; m < n; m++) c = a[m], e = c.eh, d = h[e], d != q && g[d] && (g[d].TC(c.zd), g[d].io(c.ji), f.push(g[d]), this.oX(d), delete h[e]);
  3149. return f
  3150. },
  3151. Ch: function(a) {
  3152. var c = document.documentElement,
  3153. d = window,
  3154. e = q,
  3155. e = "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? {
  3156. left: 0,
  3157. top: 0,
  3158. width: a.width,
  3159. height: a.height
  3160. } : {
  3161. left: 0,
  3162. top: 0,
  3163. width: parseInt(a.style.width),
  3164. height: parseInt(a.style.height)
  3165. };
  3166. return {
  3167. left: e.left + d.pageXOffset - c.clientLeft,
  3168. top: e.top + d.pageYOffset - c.clientTop,
  3169. width: e.width,
  3170. height: e.height
  3171. }
  3172. },
  3173. U_: function(a) {
  3174. for (var c = q, d = this.JK, e = a.eh, f = d.length - 1; 0 <= f; f--)
  3175. if (d[f].eh == e) {
  3176. c = d[f];
  3177. break
  3178. }
  3179. c || (c = a);
  3180. return c
  3181. },
  3182. w3: function(a) {
  3183. for (var c = r, d = this.JK, e = a.eh, f = d.length - 1; 0 <= f; f--)
  3184. if (d[f].eh == e) {
  3185. d[f] = a;
  3186. c = p;
  3187. break
  3188. }
  3189. c || (50 >= d.length ? d.push(a) : (d[this.nC] = a, this.nC = (this.nC + 1) % 50))
  3190. },
  3191. Fs: function(a, c, d) {
  3192. var e = this.IK;
  3193. a = this.sk.hE(a, c, d);
  3194. c = new F.Yz(a.x, a.y);
  3195. c.io(e.x, e.y);
  3196. e.x = a.x;
  3197. e.y = a.y;
  3198. return c
  3199. },
  3200. Ro: function(a, c, d) {
  3201. var e = this.iX;
  3202. this.sk.YU(a, c);
  3203. c = new F.Pc(d);
  3204. c.l3(a.x, a.y);
  3205. c.IX(e.x, e.y);
  3206. e.x =
  3207. a.x;
  3208. e.y = a.y;
  3209. return c
  3210. },
  3211. So: function(a, c) {
  3212. if (a.pageX != q) return {
  3213. x: a.pageX,
  3214. y: a.pageY
  3215. };
  3216. c.left -= document.body.scrollLeft;
  3217. c.top -= document.body.scrollTop;
  3218. return {
  3219. x: a.clientX,
  3220. y: a.clientY
  3221. }
  3222. },
  3223. cx: function(a, c) {
  3224. for (var d = [], e = this.sk, f, g, h = this.IK, m = a.changedTouches.length, n = 0; n < m; n++)
  3225. if (f = a.changedTouches[n]) {
  3226. var s;
  3227. s = F.Cb.Hp === F.Cb.Pk ? e.hE(f.pageX, f.pageY, c) : e.hE(f.clientX, f.clientY, c);
  3228. f.identifier != q ? (f = new F.Yz(s.x, s.y, f.identifier), g = this.U_(f).Ds(), f.io(g.x, g.y), this.w3(f)) : (f = new F.Yz(s.x, s.y), f.io(h.x, h.y));
  3229. h.x = s.x;
  3230. h.y = s.y;
  3231. d.push(f)
  3232. }
  3233. return d
  3234. },
  3235. q2: function(a) {
  3236. if (!this.mK) {
  3237. var c = this.sk = F.view,
  3238. d = this,
  3239. e = "touches" in F.Cb.aE;
  3240. "mouse" in F.Cb.aE && (F.Ja(window, "mousedown", function() {
  3241. d.bo = p
  3242. }, r), F.Ja(window, "mouseup", function(c) {
  3243. var f = d.bo;
  3244. d.bo = r;
  3245. if (f) {
  3246. var f = d.Ch(a),
  3247. g = d.So(c, f);
  3248. F.qO(new F.wH(f.left, f.top, f.width, f.height), g) || (e || d.fx([d.Fs(g.x, g.y, f)]), f = d.Ro(g, f, F.Pc.iA), f.Lm(c.button), F.ua.dispatchEvent(f))
  3249. }
  3250. }, r), F.Ja(a, "mousedown", function(c) {
  3251. d.bo = p;
  3252. var f = d.Ch(a),
  3253. g = d.So(c, f);
  3254. e || d.PE([d.Fs(g.x, g.y, f)]);
  3255. f = d.Ro(g,
  3256. f, F.Pc.IG);
  3257. f.Lm(c.button);
  3258. F.ua.dispatchEvent(f);
  3259. c.stopPropagation();
  3260. c.preventDefault();
  3261. a.focus()
  3262. }, r), F.Ja(a, "mouseup", function(c) {
  3263. d.bo = r;
  3264. var f = d.Ch(a),
  3265. g = d.So(c, f);
  3266. e || d.fx([d.Fs(g.x, g.y, f)]);
  3267. f = d.Ro(g, f, F.Pc.iA);
  3268. f.Lm(c.button);
  3269. F.ua.dispatchEvent(f);
  3270. c.stopPropagation();
  3271. c.preventDefault()
  3272. }, r), F.Ja(a, "mousemove", function(c) {
  3273. var f = d.Ch(a),
  3274. g = d.So(c, f);
  3275. e || d.QE([d.Fs(g.x, g.y, f)]);
  3276. f = d.Ro(g, f, F.Pc.XG);
  3277. d.bo ? f.Lm(c.button) : f.Lm(q);
  3278. F.ua.dispatchEvent(f);
  3279. c.stopPropagation();
  3280. c.preventDefault()
  3281. }, r), F.Ja(a, "mousewheel",
  3282. function(c) {
  3283. var e = d.Ch(a),
  3284. f = d.So(c, e),
  3285. e = d.Ro(f, e, F.Pc.Dz);
  3286. e.Lm(c.button);
  3287. e.dP(0, c.wheelDelta);
  3288. F.ua.dispatchEvent(e);
  3289. c.stopPropagation();
  3290. c.preventDefault()
  3291. }, r), F.Ja(a, "DOMMouseScroll", function(c) {
  3292. var e = d.Ch(a),
  3293. f = d.So(c, e),
  3294. e = d.Ro(f, e, F.Pc.Dz);
  3295. e.Lm(c.button);
  3296. e.dP(0, -120 * c.detail);
  3297. F.ua.dispatchEvent(e);
  3298. c.stopPropagation();
  3299. c.preventDefault()
  3300. }, r));
  3301. if (window.navigator.msPointerEnabled) {
  3302. var f = {
  3303. MSPointerDown: d.PE,
  3304. MSPointerMove: d.QE,
  3305. MSPointerUp: d.fx,
  3306. MSPointerCancel: d.qN
  3307. },
  3308. g;
  3309. for (g in f)(function(c, e) {
  3310. F.Ja(a,
  3311. c, function(c) {
  3312. var f = d.Ch(a);
  3313. f.left -= document.documentElement.scrollLeft;
  3314. f.top -= document.documentElement.scrollTop;
  3315. e.call(d, [d.Fs(c.clientX, c.clientY, f)]);
  3316. c.stopPropagation()
  3317. }, r)
  3318. })(g, f[g])
  3319. }
  3320. e && (F.Ja(a, "touchstart", function(c) {
  3321. if (c.changedTouches) {
  3322. var e = d.Ch(a);
  3323. e.left -= document.body.scrollLeft;
  3324. e.top -= document.body.scrollTop;
  3325. d.PE(d.cx(c, e));
  3326. c.stopPropagation();
  3327. c.preventDefault();
  3328. a.focus()
  3329. }
  3330. }, r), F.Ja(a, "touchmove", function(c) {
  3331. if (c.changedTouches) {
  3332. var e = d.Ch(a);
  3333. e.left -= document.body.scrollLeft;
  3334. e.top -= document.body.scrollTop;
  3335. d.QE(d.cx(c, e));
  3336. c.stopPropagation();
  3337. c.preventDefault()
  3338. }
  3339. }, r), F.Ja(a, "touchend", function(c) {
  3340. if (c.changedTouches) {
  3341. var e = d.Ch(a);
  3342. e.left -= document.body.scrollLeft;
  3343. e.top -= document.body.scrollTop;
  3344. d.fx(d.cx(c, e));
  3345. c.stopPropagation();
  3346. c.preventDefault()
  3347. }
  3348. }, r), F.Ja(a, "touchcancel", function(e) {
  3349. if (e.changedTouches) {
  3350. var f = d.Ch(a);
  3351. f.left -= document.body.scrollLeft;
  3352. f.top -= document.body.scrollTop;
  3353. c.qN(d.cx(e, f));
  3354. e.stopPropagation();
  3355. e.preventDefault()
  3356. }
  3357. }, r));
  3358. this.TK();
  3359. this.SK();
  3360. this.mK = p
  3361. }
  3362. },
  3363. TK: t(),
  3364. SK: t(),
  3365. update: function(a) {
  3366. this.yl >
  3367. this.Lu && (this.yl -= this.Lu, F.ua.dispatchEvent(new F.IQ(this.vA)));
  3368. this.yl += a
  3369. }
  3370. };
  3371. var M = F.FN;
  3372. M.Mha = function(a) {
  3373. this.Ku !== a && (this.Ku = a, a = F.I.Sk(), this.Ku ? (this.yl = 0, a.KF(this)) : (this.yl = 0, a.Dt(this)))
  3374. };
  3375. M.Nha = function(a) {
  3376. this.Lu !== a && (this.Lu = a)
  3377. };
  3378. M.TK = function() {
  3379. F.Ja(F.Za, "keydown", function(a) {
  3380. F.ua.dispatchEvent(new F.MG(a.keyCode, p));
  3381. a.stopPropagation();
  3382. a.preventDefault()
  3383. }, r);
  3384. F.Ja(F.Za, "keyup", function(a) {
  3385. F.ua.dispatchEvent(new F.MG(a.keyCode, r));
  3386. a.stopPropagation();
  3387. a.preventDefault()
  3388. }, r)
  3389. };
  3390. M.SK = function() {
  3391. var a = window;
  3392. this.vA = new F.OP;
  3393. this.Ju = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3394. F.Cb.Pk == F.Cb.AG && (this.Ju = window.DeviceOrientationEvent);
  3395. var c = this.Ju == a.DeviceMotionEvent ? "devicemotion" : "deviceorientation",
  3396. d = navigator.userAgent;
  3397. if (/Android/.test(d) || /Adr/.test(d) && F.Cb.Pk == F.BG) this.i8 = -1;
  3398. F.Ja(a, c, this.vZ.bind(this), r)
  3399. };
  3400. M.vZ = function(a) {
  3401. var c = window;
  3402. if (this.Ku) {
  3403. var d = this.vA;
  3404. if (this.Ju == window.DeviceMotionEvent) {
  3405. var e = a.accelerationIncludingGravity;
  3406. d.x = 0.1 * this.HI * e.x;
  3407. d.y = 0.1 * this.HI * e.y;
  3408. d.e = 0.1 * e.e
  3409. } else d.x = 0.981 * (a.gamma / 90), d.y = 0.981 * -(a.beta / 90), d.e = 0.981 * (a.alpha / 90);
  3410. d.timestamp = a.timeStamp || Date.now();
  3411. a = d.x;
  3412. c.orientation === F.RT ? (d.x = -d.y, d.y = a) : c.orientation === F.QT ? (d.x = d.y, d.y = -a) : c.orientation === F.ST && (d.x = -d.x, d.y = -d.y)
  3413. }
  3414. };
  3415. delete M;
  3416. F.g5 = function(a, c, d, e, f, g) {
  3417. this.a = a;
  3418. this.b = c;
  3419. this.D = d;
  3420. this.J = e;
  3421. this.La = f;
  3422. this.Ma = g
  3423. };
  3424. F.j5 = function(a, c, d, e, f, g) {
  3425. return {
  3426. a: a,
  3427. b: c,
  3428. D: d,
  3429. J: e,
  3430. La: f,
  3431. Ma: g
  3432. }
  3433. };
  3434. F.vH = function(a, c) {
  3435. return {
  3436. x: c.a * a.x + c.D * a.y + c.La,
  3437. y: c.b * a.x + c.J * a.y + c.Ma
  3438. }
  3439. };
  3440. F.bk = function(a, c, d) {
  3441. return {
  3442. x: d.a * a + d.D * c + d.La,
  3443. y: d.b * a + d.J * c + d.Ma
  3444. }
  3445. };
  3446. F.S6 = function(a, c) {
  3447. return {
  3448. width: c.a * a.width + c.D * a.height,
  3449. height: c.b * a.width + c.J * a.height
  3450. }
  3451. };
  3452. F.k5 = function() {
  3453. return {
  3454. a: 1,
  3455. b: 0,
  3456. D: 0,
  3457. J: 1,
  3458. La: 0,
  3459. Ma: 0
  3460. }
  3461. };
  3462. F.i5 = function() {
  3463. return {
  3464. a: 1,
  3465. b: 0,
  3466. D: 0,
  3467. J: 1,
  3468. La: 0,
  3469. Ma: 0
  3470. }
  3471. };
  3472. F.Az = function(a, c) {
  3473. var d = F.kp(a),
  3474. e = F.jp(a),
  3475. f = F.jt(a),
  3476. g = F.kt(a),
  3477. h = F.bk(e, d, c),
  3478. d = F.bk(f, d, c),
  3479. e = F.bk(e, g, c),
  3480. m = F.bk(f, g, c),
  3481. f = Math.min(h.x, d.x, e.x, m.x),
  3482. g = Math.max(h.x, d.x, e.x, m.x),
  3483. n = Math.min(h.y, d.y, e.y, m.y),
  3484. h = Math.max(h.y, d.y, e.y, m.y);
  3485. return F.rect(f, n, g - f, h - n)
  3486. };
  3487. F.lU = function(a, c) {
  3488. var d = F.kp(a),
  3489. e = F.jp(a),
  3490. f = F.jt(a),
  3491. g = F.kt(a),
  3492. h = F.bk(e, d, c),
  3493. d = F.bk(f, d, c),
  3494. e = F.bk(e, g, c),
  3495. m = F.bk(f, g, c),
  3496. f = Math.min(h.x, d.x, e.x, m.x),
  3497. g = Math.max(h.x, d.x, e.x, m.x),
  3498. n = Math.min(h.y, d.y, e.y, m.y),
  3499. h = Math.max(h.y, d.y, e.y, m.y);
  3500. a.x = f;
  3501. a.y = n;
  3502. a.width = g - f;
  3503. a.height = h - n;
  3504. return a
  3505. };
  3506. F.SP = function(a, c, d) {
  3507. return {
  3508. a: a.a,
  3509. b: a.b,
  3510. D: a.D,
  3511. J: a.J,
  3512. La: a.La + a.a * c + a.D * d,
  3513. Ma: a.Ma + a.b * c + a.J * d
  3514. }
  3515. };
  3516. F.m5 = function(a, c, d) {
  3517. return {
  3518. a: a.a * c,
  3519. b: a.b * c,
  3520. D: a.D * d,
  3521. J: a.J * d,
  3522. La: a.La,
  3523. Ma: a.Ma
  3524. }
  3525. };
  3526. F.l5 = function(a, c) {
  3527. var d = Math.sin(c),
  3528. e = Math.cos(c);
  3529. return {
  3530. a: a.a * e + a.D * d,
  3531. b: a.b * e + a.J * d,
  3532. D: a.D * e - a.a * d,
  3533. J: a.J * e - a.b * d,
  3534. La: a.La,
  3535. Ma: a.Ma
  3536. }
  3537. };
  3538. F.hl = function(a, c) {
  3539. return {
  3540. a: a.a * c.a + a.b * c.D,
  3541. b: a.a * c.b + a.b * c.J,
  3542. D: a.D * c.a + a.J * c.D,
  3543. J: a.D * c.b + a.J * c.J,
  3544. La: a.La * c.a + a.Ma * c.D + c.La,
  3545. Ma: a.La * c.b + a.Ma * c.J + c.Ma
  3546. }
  3547. };
  3548. F.h5 = function(a, c) {
  3549. return a.a === c.a && a.b === c.b && a.D === c.D && a.J === c.J && a.La === c.La && a.Ma === c.Ma
  3550. };
  3551. F.uG = function(a) {
  3552. var c = 1 / (a.a * a.J - a.b * a.D);
  3553. return {
  3554. a: c * a.J,
  3555. b: -c * a.b,
  3556. D: -c * a.D,
  3557. J: c * a.a,
  3558. La: c * (a.D * a.Ma - a.J * a.La),
  3559. Ma: c * (a.b * a.La - a.a * a.Ma)
  3560. }
  3561. };
  3562. F.hH = parseFloat("1.192092896e-07F");
  3563. F.vF = function(a) {
  3564. return F.d(-a.x, -a.y)
  3565. };
  3566. F.Dj = function(a, c) {
  3567. return F.d(a.x + c.x, a.y + c.y)
  3568. };
  3569. F.Gd = function(a, c) {
  3570. return F.d(a.x - c.x, a.y - c.y)
  3571. };
  3572. F.Ci = function(a, c) {
  3573. return F.d(a.x * c, a.y * c)
  3574. };
  3575. F.jO = function(a, c) {
  3576. return F.Ci(F.Dj(a, c), 0.5)
  3577. };
  3578. F.gp = function(a, c) {
  3579. return a.x * c.x + a.y * c.y
  3580. };
  3581. F.P1 = function(a, c) {
  3582. return a.x * c.y - a.y * c.x
  3583. };
  3584. F.Tx = function(a) {
  3585. return F.d(-a.y, a.x)
  3586. };
  3587. F.tga = function(a) {
  3588. return F.d(a.y, -a.x)
  3589. };
  3590. F.sga = function(a, c) {
  3591. return F.Ci(c, F.gp(a, c) / F.gp(c, c))
  3592. };
  3593. F.uga = function(a, c) {
  3594. return F.d(a.x * c.x - a.y * c.y, a.x * c.y + a.y * c.x)
  3595. };
  3596. F.xga = function(a, c) {
  3597. return F.d(a.x * c.x + a.y * c.y, a.y * c.x - a.x * c.y)
  3598. };
  3599. F.hO = function(a) {
  3600. return F.gp(a, a)
  3601. };
  3602. F.gO = function(a, c) {
  3603. return F.hO(F.Gd(a, c))
  3604. };
  3605. F.Yk = function(a) {
  3606. return Math.sqrt(F.hO(a))
  3607. };
  3608. F.oga = function(a, c) {
  3609. return F.Yk(F.Gd(a, c))
  3610. };
  3611. F.Ig = function(a) {
  3612. return F.Ci(a, 1 / F.Yk(a))
  3613. };
  3614. F.pga = function(a) {
  3615. return F.d(Math.cos(a), Math.sin(a))
  3616. };
  3617. F.T1 = function(a) {
  3618. return Math.atan2(a.y, a.x)
  3619. };
  3620. F.Vc = function(a, c, d) {
  3621. if (c > d) {
  3622. var e = c;
  3623. c = d;
  3624. d = e
  3625. }
  3626. return a < c ? c : a < d ? a : d
  3627. };
  3628. F.fO = function(a) {
  3629. var c = F.d(0, 0),
  3630. d = F.d(1, 1);
  3631. return F.d(F.Vc(a.x, c.x, d.x), F.Vc(a.y, c.y, d.y))
  3632. };
  3633. F.Q1 = function() {
  3634. var a = F.I.T;
  3635. return F.d(a.width, a.height)
  3636. };
  3637. F.nga = function(a, c) {
  3638. return F.d(c(a.x), c(a.y))
  3639. };
  3640. F.iO = function(a, c, d) {
  3641. return F.Dj(F.Ci(a, 1 - d), F.Ci(c, d))
  3642. };
  3643. F.qga = function(a, c, d) {
  3644. return a.x - d <= c.x && c.x <= a.x + d && a.y - d <= c.y && c.y <= a.y + d ? p : r
  3645. };
  3646. F.mga = function(a, c) {
  3647. return F.d(a.x * c.x, a.y * c.y)
  3648. };
  3649. F.lga = function(a, c) {
  3650. var d = F.Ig(a),
  3651. e = F.Ig(c),
  3652. d = Math.atan2(d.x * e.y - d.y * e.x, F.gp(d, e));
  3653. return Math.abs(d) < F.hH ? 0 : d
  3654. };
  3655. F.kga = function(a, c) {
  3656. var d = Math.acos(F.gp(F.Ig(a), F.Ig(c)));
  3657. return Math.abs(d) < F.hH ? 0 : d
  3658. };
  3659. F.S1 = function(a, c, d) {
  3660. a = F.Gd(a, c);
  3661. var e = Math.cos(d);
  3662. d = Math.sin(d);
  3663. var f = a.x;
  3664. a.x = f * e - a.y * d + c.x;
  3665. a.y = f * d + a.y * e + c.y;
  3666. return a
  3667. };
  3668. F.uF = function(a, c, d, e, f) {
  3669. if (a.x == c.x && a.y == c.y || d.x == e.x && d.y == e.y) return r;
  3670. var g = c.x - a.x;
  3671. c = c.y - a.y;
  3672. var h = e.x - d.x;
  3673. e = e.y - d.y;
  3674. var m = a.x - d.x;
  3675. a = a.y - d.y;
  3676. d = e * g - h * c;
  3677. f.x = h * a - e * m;
  3678. f.y = g * a - c * m;
  3679. if (0 == d) return 0 == f.x || 0 == f.y ? p : r;
  3680. f.x /= d;
  3681. f.y /= d;
  3682. return p
  3683. };
  3684. F.wga = function(a, c, d, e) {
  3685. var f = F.d(0, 0);
  3686. return F.uF(a, c, d, e, f) && 0 <= f.x && 1 >= f.x && 0 <= f.y && 1 >= f.y ? p : r
  3687. };
  3688. F.rga = function(a, c, d, e) {
  3689. var f = F.d(0, 0);
  3690. return F.uF(a, c, d, e, f) ? (d = F.d(0, 0), d.x = a.x + f.x * (c.x - a.x), d.y = a.y + f.x * (c.y - a.y), d) : F.d(0, 0)
  3691. };
  3692. F.vga = function(a, c) {
  3693. return a != q && c != q ? a.x == c.x && a.y == c.y : r
  3694. };
  3695. F.Ux = function(a) {
  3696. a.x = 0;
  3697. a.y = 0
  3698. };
  3699. F.Ej = function(a, c) {
  3700. a.x = c.x;
  3701. a.y = c.y
  3702. };
  3703. F.hp = function(a, c) {
  3704. a.x *= c;
  3705. a.y *= c
  3706. };
  3707. F.kO = function(a, c) {
  3708. a.x -= c.x;
  3709. a.y -= c.y
  3710. };
  3711. F.Sx = function(a, c) {
  3712. a.x += c.x;
  3713. a.y += c.y
  3714. };
  3715. F.R1 = function(a) {
  3716. F.hp(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  3717. };
  3718. F.pG = function(a, c, d, e, f) {
  3719. f += e;
  3720. if (!(1 >= f)) {
  3721. c *= 0.5;
  3722. for (var g, h = f - 1, m = e; m < f; m++) {
  3723. g = 2 * m;
  3724. var n = F.d(a[2 * m], a[2 * m + 1]),
  3725. s;
  3726. if (0 === m) s = F.Tx(F.Ig(F.Gd(n, F.d(a[2 * (m + 1)], a[2 * (m + 1) + 1]))));
  3727. else if (m === h) s = F.Tx(F.Ig(F.Gd(F.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]), n)));
  3728. else {
  3729. s = F.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]);
  3730. var u = F.d(a[2 * (m + 1)], a[2 * (m + 1) + 1]),
  3731. v = F.Ig(F.Gd(u, n)),
  3732. x = F.Ig(F.Gd(s, n)),
  3733. w = Math.acos(F.gp(v, x));
  3734. s = w < F.Uf(70) ? F.Tx(F.Ig(F.jO(v, x))) : w < F.Uf(170) ? F.Ig(F.jO(v, x)) : F.Tx(F.Ig(F.Gd(u, s)))
  3735. }
  3736. s = F.Ci(s, c);
  3737. d[2 * g] = n.x + s.x;
  3738. d[2 * g + 1] = n.y + s.y;
  3739. d[2 *
  3740. (g + 1)] = n.x - s.x;
  3741. d[2 * (g + 1) + 1] = n.y - s.y
  3742. }
  3743. for (m = 0 == e ? 0 : e - 1; m < h; m++) {
  3744. g = 2 * m;
  3745. a = g + 2;
  3746. c = F.yy(d[2 * g], d[2 * g + 1]);
  3747. f = F.yy(d[2 * (g + 1)], d[2 * (g + 1) + 1]);
  3748. g = F.yy(d[2 * a], d[2 * a]);
  3749. e = F.yy(d[2 * (a + 1)], d[2 * (a + 1) + 1]);
  3750. c = !F.J4(c.x, c.y, e.x, e.y, f.x, f.y, g.x, g.y);
  3751. if (!c.Ps && (0 > c.value || 1 < c.value)) c.Ps = p;
  3752. c.Ps && (d[2 * a] = e.x, d[2 * a + 1] = e.y, d[2 * (a + 1)] = g.x, d[2 * (a + 1) + 1] = g.y)
  3753. }
  3754. }
  3755. };
  3756. F.J4 = function(a, c, d, e, f, g, h, m) {
  3757. if (a == d && c == e || f == h && g == m) return {
  3758. Ps: r,
  3759. value: 0
  3760. };
  3761. d -= a;
  3762. e -= c;
  3763. f -= a;
  3764. g -= c;
  3765. h -= a;
  3766. m -= c;
  3767. a = Math.sqrt(d * d + e * e);
  3768. d /= a;
  3769. e /= a;
  3770. c = f * d + g * e;
  3771. g = g * d - f * e;
  3772. f = c;
  3773. c = h * d + m * e;
  3774. m = m * d - h * e;
  3775. h = c;
  3776. return g == m ? {
  3777. Ps: r,
  3778. value: 0
  3779. } : {
  3780. Ps: p,
  3781. value: (h + (f - h) * m / (m - g)) / a
  3782. }
  3783. };
  3784. F.Ika = function(a) {
  3785. for (var c = 0, d = a.length; c < d; c++) {
  3786. var e = a[(c + 1) % d],
  3787. f = a[(c + 2) % d];
  3788. if (0 < F.P1(F.Gd(e, a[c]), F.Gd(f, e))) return r
  3789. }
  3790. return p
  3791. };
  3792. F.D5 = function(a, c) {
  3793. c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0;
  3794. c[10] = c[15] = 1;
  3795. c[0] = a.a;
  3796. c[4] = a.D;
  3797. c[12] = a.La;
  3798. c[1] = a.b;
  3799. c[5] = a.J;
  3800. c[13] = a.Ma
  3801. };
  3802. F.X5 = function(a, c) {
  3803. c.a = a[0];
  3804. c.D = a[4];
  3805. c.La = a[12];
  3806. c.b = a[1];
  3807. c.J = a[5];
  3808. c.Ma = a[13]
  3809. };
  3810. F.Yz = F.ma.extend({
  3811. zd: q,
  3812. ji: q,
  3813. eh: 0,
  3814. wL: r,
  3815. Vr: q,
  3816. ctor: function(a, c, d) {
  3817. this.zd = F.d(a || 0, c || 0);
  3818. this.eh = d || 0
  3819. },
  3820. Ds: function() {
  3821. return {
  3822. x: this.zd.x,
  3823. y: this.zd.y
  3824. }
  3825. },
  3826. J_: function() {
  3827. return this.zd.x
  3828. },
  3829. K_: function() {
  3830. return this.zd.y
  3831. },
  3832. Wba: function() {
  3833. return {
  3834. x: this.ji.x,
  3835. y: this.ji.y
  3836. }
  3837. },
  3838. mca: function() {
  3839. return {
  3840. x: this.Vr.x,
  3841. y: this.Vr.y
  3842. }
  3843. },
  3844. zE: function() {
  3845. return F.Gd(this.zd, this.ji)
  3846. },
  3847. I_: function() {
  3848. return {
  3849. x: this.zd.x,
  3850. y: this.zd.y
  3851. }
  3852. },
  3853. Xba: function() {
  3854. return {
  3855. x: this.ji.x,
  3856. y: this.ji.y
  3857. }
  3858. },
  3859. nca: function() {
  3860. return {
  3861. x: this.Vr.x,
  3862. y: this.Vr.y
  3863. }
  3864. },
  3865. hba: A("eh"),
  3866. iba: A("eh"),
  3867. yja: function(a, c, d) {
  3868. this.ji = this.zd;
  3869. this.zd = F.d(c || 0, d || 0);
  3870. this.eh = a;
  3871. this.wL || (this.Vr = F.d(this.zd), this.wL = p)
  3872. },
  3873. TC: function(a, c) {
  3874. c === k ? (this.zd.x = a.x, this.zd.y = a.y) : (this.zd.x = a, this.zd.y = c)
  3875. },
  3876. io: function(a, c) {
  3877. this.ji = c === k ? F.d(a.x, a.y) : F.d(a || 0, c || 0)
  3878. }
  3879. });
  3880. F.qc = F.ma.extend({
  3881. nc: 0,
  3882. Il: r,
  3883. xd: q,
  3884. LC: y("xd"),
  3885. ctor: y("nc"),
  3886. LE: A("nc"),
  3887. stopPropagation: function() {
  3888. this.Il = p
  3889. },
  3890. Fda: A("Il"),
  3891. Gaa: A("xd")
  3892. });
  3893. F.qc.xu = 0;
  3894. F.qc.an = 1;
  3895. F.qc.Rm = 2;
  3896. F.qc.dn = 3;
  3897. F.qc.Jp = 4;
  3898. F.Ji = F.qc.extend({
  3899. gB: q,
  3900. KL: q,
  3901. ctor: function(a) {
  3902. F.qc.prototype.ctor.call(this, F.qc.Jp);
  3903. this.gB = a
  3904. },
  3905. setUserData: y("KL"),
  3906. getUserData: A("KL"),
  3907. Yaa: A("gB")
  3908. });
  3909. F.Pc = F.qc.extend({
  3910. LJ: 0,
  3911. RI: 0,
  3912. vh: 0,
  3913. Le: 0,
  3914. pC: 0,
  3915. qC: 0,
  3916. fL: 0,
  3917. gL: 0,
  3918. ctor: function(a) {
  3919. F.qc.prototype.ctor.call(this, F.qc.dn);
  3920. this.LJ = a
  3921. },
  3922. dP: function(a, c) {
  3923. this.fL = a;
  3924. this.gL = c
  3925. },
  3926. ica: A("fL"),
  3927. jca: A("gL"),
  3928. l3: function(a, c) {
  3929. this.vh = a;
  3930. this.Le = c
  3931. },
  3932. Ds: function() {
  3933. return {
  3934. x: this.vh,
  3935. y: this.Le
  3936. }
  3937. },
  3938. I_: function() {
  3939. return {
  3940. x: this.vh,
  3941. y: F.view.Cn.height - this.Le
  3942. }
  3943. },
  3944. IX: function(a, c) {
  3945. this.pC = a;
  3946. this.qC = c
  3947. },
  3948. zE: function() {
  3949. return {
  3950. x: this.vh - this.pC,
  3951. y: this.Le - this.qC
  3952. }
  3953. },
  3954. Kaa: function() {
  3955. return this.vh - this.pC
  3956. },
  3957. Laa: function() {
  3958. return this.Le - this.qC
  3959. },
  3960. Lm: y("RI"),
  3961. saa: A("RI"),
  3962. J_: A("vh"),
  3963. K_: A("Le")
  3964. });
  3965. F.Pc.NONE = 0;
  3966. F.Pc.IG = 1;
  3967. F.Pc.iA = 2;
  3968. F.Pc.XG = 3;
  3969. F.Pc.Dz = 4;
  3970. F.Pc.z5 = 0;
  3971. F.Pc.B5 = 2;
  3972. F.Pc.A5 = 1;
  3973. F.Pc.u5 = 3;
  3974. F.Pc.v5 = 4;
  3975. F.Pc.w5 = 5;
  3976. F.Pc.x5 = 6;
  3977. F.Pc.y5 = 7;
  3978. F.mg = F.qc.extend({
  3979. lk: 0,
  3980. Mk: q,
  3981. ctor: function(a) {
  3982. F.qc.prototype.ctor.call(this, F.qc.xu);
  3983. this.Mk = a || []
  3984. },
  3985. Xaa: A("lk"),
  3986. Gca: A("Mk"),
  3987. t8: y("lk"),
  3988. v8: y("Mk")
  3989. });
  3990. F.mg.u6 = 5;
  3991. F.mg.Vm = {
  3992. Ay: 0,
  3993. dz: 1,
  3994. Ny: 2,
  3995. Fy: 3
  3996. };
  3997. F.ta = F.ma.extend({
  3998. WB: q,
  3999. nc: 0,
  4000. ci: q,
  4001. lf: r,
  4002. ok: 0,
  4003. hf: q,
  4004. mc: r,
  4005. Wn: p,
  4006. ctor: function(a, c, d) {
  4007. this.WB = d;
  4008. this.nc = a || 0;
  4009. this.ci = c || ""
  4010. },
  4011. SC: y("mc"),
  4012. Z7: A("mc"),
  4013. Or: y("lf"),
  4014. tW: A("lf"),
  4015. X7: A("nc"),
  4016. U7: A("ci"),
  4017. MC: y("ok"),
  4018. T7: A("ok"),
  4019. Pr: y("hf"),
  4020. V7: A("hf"),
  4021. Qk: function() {
  4022. return this.WB != q
  4023. },
  4024. l: E(q),
  4025. se: y("Wn"),
  4026. isEnabled: A("Wn"),
  4027. ay: t(),
  4028. Ei: t()
  4029. });
  4030. F.ta.aU = 0;
  4031. F.ta.Cq = 1;
  4032. F.ta.Nz = 2;
  4033. F.ta.an = 3;
  4034. F.ta.dn = 4;
  4035. F.ta.Rm = 5;
  4036. F.ta.Jp = 6;
  4037. F.Lq = F.ta.extend({
  4038. Fr: q,
  4039. ctor: function(a, c) {
  4040. this.Fr = c;
  4041. var d = this;
  4042. F.ta.prototype.ctor.call(this, F.ta.Jp, a, function(a) {
  4043. d.Fr != q && d.Fr(a)
  4044. })
  4045. },
  4046. Qk: function() {
  4047. return F.ta.prototype.Qk.call(this) && this.Fr != q
  4048. },
  4049. l: function() {
  4050. return new F.Lq(this.ci, this.Fr)
  4051. }
  4052. });
  4053. F.Lq.create = function(a, c) {
  4054. return new F.Lq(a, c)
  4055. };
  4056. F.ak = F.ta.extend({
  4057. Nx: q,
  4058. Qx: q,
  4059. Ox: q,
  4060. Px: q,
  4061. ctor: function() {
  4062. var a = this;
  4063. F.ta.prototype.ctor.call(this, F.ta.dn, F.ak.rc, function(c) {
  4064. var d = F.Pc;
  4065. switch (c.LJ) {
  4066. case d.IG:
  4067. a.Nx && a.Nx(c);
  4068. break;
  4069. case d.iA:
  4070. a.Qx && a.Qx(c);
  4071. break;
  4072. case d.XG:
  4073. a.Ox && a.Ox(c);
  4074. break;
  4075. case d.Dz:
  4076. a.Px && a.Px(c)
  4077. }
  4078. })
  4079. },
  4080. l: function() {
  4081. var a = new F.ak;
  4082. a.Nx = this.Nx;
  4083. a.Qx = this.Qx;
  4084. a.Ox = this.Ox;
  4085. a.Px = this.Px;
  4086. return a
  4087. },
  4088. Qk: E(p)
  4089. });
  4090. F.ak.rc = "__cc_mouse";
  4091. F.ak.create = function() {
  4092. return new F.ak
  4093. };
  4094. F.Sh = F.ta.extend({
  4095. wn: q,
  4096. yp: r,
  4097. Em: q,
  4098. $s: q,
  4099. fp: q,
  4100. Zs: q,
  4101. ctor: function() {
  4102. F.ta.prototype.ctor.call(this, F.ta.Cq, F.Sh.rc, q);
  4103. this.wn = []
  4104. },
  4105. oja: y("yp"),
  4106. l: function() {
  4107. var a = new F.Sh;
  4108. a.Em = this.Em;
  4109. a.$s = this.$s;
  4110. a.fp = this.fp;
  4111. a.Zs = this.Zs;
  4112. a.yp = this.yp;
  4113. return a
  4114. },
  4115. Qk: function() {
  4116. return !this.Em ? (F.log(F.i.hU), r) : p
  4117. }
  4118. });
  4119. F.Sh.rc = "__cc_touch_one_by_one";
  4120. F.Sh.create = function() {
  4121. return new F.Sh
  4122. };
  4123. F.Rh = F.ta.extend({
  4124. at: q,
  4125. dt: q,
  4126. ct: q,
  4127. bt: q,
  4128. ctor: function() {
  4129. F.ta.prototype.ctor.call(this, F.ta.Nz, F.Rh.rc, q)
  4130. },
  4131. l: function() {
  4132. var a = new F.Rh;
  4133. a.at = this.at;
  4134. a.dt = this.dt;
  4135. a.ct = this.ct;
  4136. a.bt = this.bt;
  4137. return a
  4138. },
  4139. Qk: function() {
  4140. return this.at == q && this.dt == q && this.ct == q && this.bt == q ? (F.log(F.i.gU), r) : p
  4141. }
  4142. });
  4143. F.Rh.rc = "__cc_touch_all_at_once";
  4144. F.Rh.create = function() {
  4145. return new F.Rh
  4146. };
  4147. F.ta.create = function(a) {
  4148. F.assert(a && a.event, F.i.JQ);
  4149. var c = a.event;
  4150. delete a.event;
  4151. var d = q;
  4152. c === F.ta.Cq ? d = new F.Sh : c === F.ta.Nz ? d = new F.Rh : c === F.ta.dn ? d = new F.ak : c === F.ta.Jp ? (d = new F.Lq(a.a_, a.YD), delete a.a_, delete a.YD) : c === F.ta.an ? d = new F.$j : c === F.ta.Rm && (d = new F.Zj(a.YD), delete a.YD);
  4153. for (var e in a) d[e] = a[e];
  4154. return d
  4155. };
  4156. F.eM = function(a) {
  4157. var c, d = a.length,
  4158. e = Array(d);
  4159. for (c = 0; c < d; c += 1) e[c] = a[c];
  4160. return e
  4161. };
  4162. F.iU = F.ma.extend({
  4163. Hf: q,
  4164. Of: q,
  4165. pN: 0,
  4166. ctor: function() {
  4167. this.Hf = [];
  4168. this.Of = []
  4169. },
  4170. size: function() {
  4171. return this.Hf.length + this.Of.length
  4172. },
  4173. empty: function() {
  4174. return 0 === this.Hf.length && 0 === this.Of.length
  4175. },
  4176. push: function(a) {
  4177. 0 == a.ok ? this.Of.push(a) : this.Hf.push(a)
  4178. },
  4179. kZ: function() {
  4180. this.Of.length = 0
  4181. },
  4182. jZ: function() {
  4183. this.Hf.length = 0
  4184. },
  4185. clear: function() {
  4186. this.Of.length = 0;
  4187. this.Hf.length = 0
  4188. },
  4189. $aa: A("Hf"),
  4190. gca: A("Of")
  4191. });
  4192. F.Gu = function(a) {
  4193. var c = F.qc,
  4194. d = a.nc;
  4195. if (d === c.Rm) return F.Zj.rc;
  4196. if (d === c.Jp) return a.gB;
  4197. if (d === c.an) return F.$j.rc;
  4198. if (d === c.dn) return F.ak.rc;
  4199. d === c.xu && F.log(F.i.Gu);
  4200. return ""
  4201. };
  4202. F.ua = {
  4203. Ky: 0,
  4204. Kt: 1,
  4205. Lp: 2,
  4206. N5: 3,
  4207. xg: {},
  4208. Lr: {},
  4209. ei: {},
  4210. Mv: {},
  4211. $J: {},
  4212. to: [],
  4213. dr: [],
  4214. Gl: 0,
  4215. Wn: r,
  4216. zK: 0,
  4217. sW: [F.Ic.Nt, F.Ic.Mp],
  4218. ew: function(a) {
  4219. this.ei[a.xa] != q && this.dr.push(a);
  4220. a = a.u;
  4221. for (var c = 0, d = a.length; c < d; c++) this.ew(a[c])
  4222. },
  4223. ip: function(a, c) {
  4224. var d = this.ei[a.xa],
  4225. e, f;
  4226. if (d) {
  4227. e = 0;
  4228. for (f = d.length; e < f; e++) d[e].SC(p)
  4229. }
  4230. if (c === p) {
  4231. d = a.u;
  4232. e = 0;
  4233. for (f = d.length; e < f; e++) this.ip(d[e], p)
  4234. }
  4235. },
  4236. Ij: function(a, c) {
  4237. var d = this.ei[a.xa],
  4238. e, f;
  4239. if (d) {
  4240. e = 0;
  4241. for (f = d.length; e < f; e++) d[e].SC(r)
  4242. }
  4243. this.ew(a);
  4244. if (c === p) {
  4245. d = a.u;
  4246. e = 0;
  4247. for (f = d.length; e < f; e++) this.Ij(d[e],
  4248. p)
  4249. }
  4250. },
  4251. KI: function(a) {
  4252. 0 === this.Gl ? this.RJ(a) : this.to.push(a)
  4253. },
  4254. RJ: function(a) {
  4255. var c = a.ci,
  4256. d = this.xg[c];
  4257. d || (d = new F.iU, this.xg[c] = d);
  4258. d.push(a);
  4259. 0 == a.ok ? (this.Dk(c, this.Lp), c = a.hf, c == q && F.log(F.i.UZ), this.xU(c, a), c.nh && this.Ij(c)) : this.Dk(c, this.Kt)
  4260. },
  4261. tB: function(a) {
  4262. return this.xg[a]
  4263. },
  4264. vY: function() {
  4265. if (0 != this.dr.length) {
  4266. for (var a = this.dr, c, d, e = this.ei, f = 0, g = a.length; f < g; f++)
  4267. if (c = e[a[f].xa])
  4268. for (var h = 0, m = c.length; h < m; h++)(d = c[h]) && this.Dk(d.ci, this.Lp);
  4269. this.dr.length = 0
  4270. }
  4271. },
  4272. UK: function(a) {
  4273. if (a)
  4274. for (var c, d = 0; d <
  4275. a.length;) c = a[d], c.Or(r), c.hf != q && (this.fJ(c.hf, c), c.Pr(q)), 0 === this.Gl ? F.Me(a, c) : ++d
  4276. },
  4277. Tl: function(a) {
  4278. var c = this.xg[a];
  4279. if (c) {
  4280. var d = c.Hf;
  4281. this.UK(c.Of);
  4282. this.UK(d);
  4283. delete this.Lr[a];
  4284. this.Gl || (c.clear(), delete this.xg[a])
  4285. }
  4286. for (var d = this.to, e, c = 0; c < d.length;)(e = d[c]) && e.ci == a ? F.Me(d, e) : ++c
  4287. },
  4288. $C: function(a) {
  4289. var c = this.Ky,
  4290. d = this.Lr;
  4291. d[a] && (c = d[a]);
  4292. c != this.Ky && (d[a] = this.Ky, c & this.Kt && this.hY(a), c & this.Lp && ((c = F.I.Ec) ? this.jY(a, c) : d[a] = this.Lp))
  4293. },
  4294. jY: function(a, c) {
  4295. var d = this.tB(a);
  4296. if (d) {
  4297. var e = d.Of;
  4298. e && 0 !== e.length &&
  4299. (this.zK = 0, this.Mv = {}, this.ID(c, p), d.Of.sort(this.gY))
  4300. }
  4301. },
  4302. gY: function(a, c) {
  4303. var d = F.ua.Mv;
  4304. return d[c.hf.xa] - d[a.hf.xa]
  4305. },
  4306. hY: function(a) {
  4307. if (a = this.xg[a]) {
  4308. var c = a.Hf;
  4309. if (c && 0 !== c.length) {
  4310. c.sort(this.iY);
  4311. for (var d = 0, e = c.length; d < e && !(0 <= c[d].ok);)++d;
  4312. a.pN = d
  4313. }
  4314. }
  4315. },
  4316. iY: function(a, c) {
  4317. return a.ok - c.ok
  4318. },
  4319. XB: function(a) {
  4320. if (a = this.xg[a]) {
  4321. var c = a.Hf,
  4322. d = a.Of,
  4323. e, f;
  4324. if (d)
  4325. for (e = 0; e < d.length;) f = d[e], f.lf ? ++e : F.Me(d, f);
  4326. if (c)
  4327. for (e = 0; e < c.length;) f = c[e], f.lf ? ++e : F.Me(c, f);
  4328. d && 0 === d.length && a.kZ();
  4329. c && 0 === c.length && a.jZ()
  4330. }
  4331. },
  4332. zw: function(a) {
  4333. var c =
  4334. this.Gl;
  4335. F.assert(0 < c, F.i.KQ);
  4336. a.nc == F.qc.xu ? (this.XB(F.Sh.rc), this.XB(F.Rh.rc)) : this.XB(F.Gu(a));
  4337. if (!(1 < c)) {
  4338. F.assert(1 == c, F.i.LQ);
  4339. a = this.xg;
  4340. var c = this.Lr,
  4341. d;
  4342. for (d in a) a[d].empty() && (delete c[d], delete a[d]);
  4343. d = this.to;
  4344. if (0 !== d.length) {
  4345. a = 0;
  4346. for (c = d.length; a < c; a++) this.RJ(d[a]);
  4347. this.to.length = 0
  4348. }
  4349. }
  4350. },
  4351. RW: function(a, c) {
  4352. if (!a.tW) return r;
  4353. var d = c.event,
  4354. e = c.FO;
  4355. d.LC(a.hf);
  4356. var f = r,
  4357. g, h = d.lk,
  4358. m = F.mg.Vm;
  4359. if (h == m.Ay) a.Em && (f = a.Em(e, d)) && a.lf && a.wn.push(e);
  4360. else if (0 < a.wn.length && -1 != (g = a.wn.indexOf(e))) f = p, h === m.dz && a.$s ?
  4361. a.$s(e, d) : h === m.Ny ? (a.fp && a.fp(e, d), a.lf && a.wn.splice(g, 1)) : h === m.Fy && (a.Zs && a.Zs(e, d), a.lf && a.wn.splice(g, 1));
  4362. return d.Il ? (F.ua.zw(d), p) : f && a.lf && a.yp ? (c.I1 && c.touches.splice(e, 1), p) : r
  4363. },
  4364. dV: function(a) {
  4365. this.$C(F.Sh.rc);
  4366. this.$C(F.Rh.rc);
  4367. var c = this.tB(F.Sh.rc),
  4368. d = this.tB(F.Rh.rc);
  4369. if (!(q == c && q == d)) {
  4370. var e = a.Mk,
  4371. f = F.eM(e),
  4372. g = {
  4373. event: a,
  4374. I1: c && d,
  4375. touches: f,
  4376. FO: q
  4377. };
  4378. if (c)
  4379. for (var h = 0; h < e.length; h++)
  4380. if (g.FO = e[h], this.YA(c, this.RW, g), a.Il) return;
  4381. if (d && 0 < f.length && (this.YA(d, this.TW, {
  4382. event: a,
  4383. touches: f
  4384. }), a.Il)) return;
  4385. this.zw(a)
  4386. }
  4387. },
  4388. TW: function(a, c) {
  4389. if (!a.lf) return r;
  4390. var d = F.mg.Vm,
  4391. e = c.event,
  4392. f = c.touches,
  4393. g = e.lk;
  4394. e.LC(a.hf);
  4395. g == d.Ay && a.at ? a.at(f, e) : g == d.dz && a.dt ? a.dt(f, e) : g == d.Ny && a.ct ? a.ct(f, e) : g == d.Fy && a.bt && a.bt(f, e);
  4396. return e.Il ? (F.ua.zw(e), p) : r
  4397. },
  4398. xU: function(a, c) {
  4399. var d = this.ei[a.xa];
  4400. d || (d = [], this.ei[a.xa] = d);
  4401. d.push(c)
  4402. },
  4403. fJ: function(a, c) {
  4404. var d = this.ei[a.xa];
  4405. d && (F.Me(d, c), 0 === d.length && delete this.ei[a.xa])
  4406. },
  4407. YA: function(a, c, d) {
  4408. var e = r,
  4409. f = a.Hf,
  4410. g = a.Of,
  4411. h = 0,
  4412. m;
  4413. if (f && 0 !== f.length)
  4414. for (; h < a.pN; ++h)
  4415. if (m = f[h], m.isEnabled() && !m.mc &&
  4416. m.lf && c(m, d)) {
  4417. e = p;
  4418. break
  4419. }
  4420. if (g && !e)
  4421. for (a = 0; a < g.length; a++)
  4422. if (m = g[a], m.isEnabled() && !m.mc && m.lf && c(m, d)) {
  4423. e = p;
  4424. break
  4425. }
  4426. if (f && !e)
  4427. for (; h < f.length && !(m = f[h], m.isEnabled() && !m.mc && m.lf && c(m, d)); ++h);
  4428. },
  4429. Dk: function(a, c) {
  4430. var d = this.Lr;
  4431. d[a] = d[a] == q ? c : c | d[a]
  4432. },
  4433. ID: function(a, c) {
  4434. var d = a.u,
  4435. e = 0,
  4436. f = d.length,
  4437. g = this.$J,
  4438. h = this.ei;
  4439. if (0 < f) {
  4440. for (var m; e < f; e++)
  4441. if ((m = d[e]) && 0 > m.yb) this.ID(m, r);
  4442. else break;
  4443. h[a.xa] != q && (g[a.Xi] || (g[a.Xi] = []), g[a.Xi].push(a.xa));
  4444. for (; e < f; e++)(m = d[e]) && this.ID(m, r)
  4445. } else h[a.xa] != q && (g[a.Xi] || (g[a.Xi] = []), g[a.Xi].push(a.xa)); if (c) {
  4446. var d = [],
  4447. n;
  4448. for (n in g) d.push(n);
  4449. d.sort(this.kY);
  4450. n = d.length;
  4451. m = this.Mv;
  4452. for (e = 0; e < n; e++) {
  4453. f = g[d[e]];
  4454. for (h = 0; h < f.length; h++) m[f[h]] = ++this.zK
  4455. }
  4456. this.$J = {}
  4457. }
  4458. },
  4459. kY: function(a, c) {
  4460. return a - c
  4461. },
  4462. addListener: function(a, c) {
  4463. F.assert(a && c, F.i.WZ);
  4464. if (a instanceof F.ta) {
  4465. if (a.lf) {
  4466. F.log(F.i.YZ);
  4467. return
  4468. }
  4469. } else F.assert("number" !== typeof c, F.i.XZ), a = F.ta.create(a);
  4470. a.Qk() && ("number" == typeof c ? 0 == c ? F.log(F.i.VZ) : (a.Pr(q), a.MC(c), a.Or(p), a.SC(r), this.KI(a)) : (a.Pr(c), a.MC(0), a.Or(p), this.KI(a)))
  4471. },
  4472. OD: function(a,
  4473. c) {
  4474. var d = F.Lq.create(a, c);
  4475. this.addListener(d, 1);
  4476. return d
  4477. },
  4478. removeListener: function(a) {
  4479. if (a != q) {
  4480. var c, d = this.xg,
  4481. e;
  4482. for (e in d) {
  4483. var f = d[e],
  4484. g = f.Hf;
  4485. (c = this.VK(f.Of, a)) ? this.Dk(a.ci, this.Lp): (c = this.VK(g, a)) && this.Dk(a.ci, this.Kt);
  4486. f.empty() && (delete this.Lr[a.ci], delete d[e]);
  4487. if (c) break
  4488. }
  4489. if (!c) {
  4490. c = this.to;
  4491. d = 0;
  4492. for (e = c.length; d < e; d++)
  4493. if (f = c[d], f == a) {
  4494. F.Me(c, f);
  4495. break
  4496. }
  4497. }
  4498. }
  4499. },
  4500. VK: function(a, c) {
  4501. if (a == q) return r;
  4502. for (var d = 0, e = a.length; d < e; d++) {
  4503. var f = a[d];
  4504. if (f == c) return f.Or(r), f.hf != q && (this.fJ(f.hf, f), f.Pr(q)), 0 == this.Gl &&
  4505. F.Me(a, f), p
  4506. }
  4507. return r
  4508. },
  4509. vO: function(a, c) {
  4510. if (a instanceof F.t) {
  4511. delete this.Mv[a.xa];
  4512. F.Me(this.dr, a);
  4513. var d = this.ei[a.xa];
  4514. if (d) {
  4515. for (var e = F.eM(d), d = 0; d < e.length; d++) this.removeListener(e[d]);
  4516. e.length = 0;
  4517. e = this.to;
  4518. for (d = 0; d < e.length;) {
  4519. var f = e[d];
  4520. f.hf == a ? (f.Pr(q), f.Or(r), e.splice(d, 1)) : ++d
  4521. }
  4522. if (c === p) {
  4523. e = a.u;
  4524. d = 0;
  4525. for (f = e.length; d < f; d++) this.vO(e[d], p)
  4526. }
  4527. }
  4528. } else a == F.ta.Cq ? this.Tl(F.Sh.rc) : a == F.ta.Nz ? this.Tl(F.Rh.rc) : a == F.ta.dn ? this.Tl(F.ak.rc) : a == F.ta.Rm ? this.Tl(F.Zj.rc) : a == F.ta.an ? this.Tl(F.$j.rc) : F.log(F.i.ZZ)
  4529. },
  4530. nha: function(a) {
  4531. this.Tl(a)
  4532. },
  4533. iha: function() {
  4534. var a = this.xg,
  4535. c = this.sW,
  4536. d;
  4537. for (d in a) - 1 === c.indexOf(d) && this.Tl(d)
  4538. },
  4539. $ia: function(a, c) {
  4540. if (a != q) {
  4541. var d = this.xg,
  4542. e;
  4543. for (e in d) {
  4544. var f = d[e].Hf;
  4545. if (f && -1 != f.indexOf(a)) {
  4546. a.hf != q && F.log(F.i.$Z);
  4547. a.ok !== c && (a.MC(c), this.Dk(a.ci, this.Kt));
  4548. break
  4549. }
  4550. }
  4551. }
  4552. },
  4553. se: y("Wn"),
  4554. isEnabled: A("Wn"),
  4555. dispatchEvent: function(a) {
  4556. if (this.Wn) {
  4557. this.vY();
  4558. this.Gl++;
  4559. (!a || !a.LE) && b("event is undefined");
  4560. if (a.nc == F.qc.xu) this.dV(a);
  4561. else {
  4562. var c = F.Gu(a);
  4563. this.$C(c);
  4564. c = this.xg[c];
  4565. c != q && this.YA(c, this.LW, a);
  4566. this.zw(a)
  4567. }
  4568. this.Gl--
  4569. }
  4570. },
  4571. LW: function(a, c) {
  4572. c.LC(a.hf);
  4573. a.WB(c);
  4574. return c.Il
  4575. },
  4576. U9: function(a, c) {
  4577. var d = new F.Ji(a);
  4578. d.setUserData(c);
  4579. this.dispatchEvent(d)
  4580. }
  4581. };
  4582. F.IQ = F.qc.extend({
  4583. GI: q,
  4584. ctor: function(a) {
  4585. F.qc.prototype.ctor.call(this, F.qc.Rm);
  4586. this.GI = a
  4587. }
  4588. });
  4589. F.MG = F.qc.extend({
  4590. JB: 0,
  4591. lK: r,
  4592. ctor: function(a, c) {
  4593. F.qc.prototype.ctor.call(this, F.qc.an);
  4594. this.JB = a;
  4595. this.lK = c
  4596. }
  4597. });
  4598. F.Zj = F.ta.extend({
  4599. Pv: q,
  4600. ctor: function(a) {
  4601. this.Pv = a;
  4602. var c = this;
  4603. F.ta.prototype.ctor.call(this, F.ta.Rm, F.Zj.rc, function(a) {
  4604. c.Pv(a.GI, a)
  4605. })
  4606. },
  4607. Qk: function() {
  4608. F.assert(this.Pv, F.i.eU);
  4609. return p
  4610. },
  4611. l: function() {
  4612. return new F.Zj(this.Pv)
  4613. }
  4614. });
  4615. F.Zj.rc = "__cc_acceleration";
  4616. F.Zj.create = function(a) {
  4617. return new F.Zj(a)
  4618. };
  4619. F.$j = F.ta.extend({
  4620. Xs: q,
  4621. Ys: q,
  4622. ctor: function() {
  4623. var a = this;
  4624. F.ta.prototype.ctor.call(this, F.ta.an, F.$j.rc, function(c) {
  4625. c.lK ? a.Xs && a.Xs(c.JB, c) : a.Ys && a.Ys(c.JB, c)
  4626. })
  4627. },
  4628. l: function() {
  4629. var a = new F.$j;
  4630. a.Xs = this.Xs;
  4631. a.Ys = this.Ys;
  4632. return a
  4633. },
  4634. Qk: function() {
  4635. return this.Xs == q && this.Ys == q ? (F.log(F.i.fU), r) : p
  4636. }
  4637. });
  4638. F.$j.rc = "__cc_keyboard";
  4639. F.$j.create = function() {
  4640. return new F.$j
  4641. };
  4642. F.C.kA = function() {
  4643. var a = F.t.prototype;
  4644. a.tD = q;
  4645. a.gD = q;
  4646. a.xB = q;
  4647. a.Ti = q;
  4648. a.ctor = function() {
  4649. this.AB();
  4650. var a = new F.ca;
  4651. a.c[2] = a.c[3] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[14] = 0;
  4652. a.c[10] = a.c[15] = 1;
  4653. this.tD = a;
  4654. this.xB = 0;
  4655. this.gD = new F.ca
  4656. };
  4657. a.Ka = function() {
  4658. this.sj === r && (this.sj = this.Cv = p)
  4659. };
  4660. a.S = function() {
  4661. if (this.yc) {
  4662. var a = F.m,
  4663. d, e = F.Vb;
  4664. e.stack.push(e.top);
  4665. F.zj(this.gD, e.top);
  4666. e.top = this.gD;
  4667. var f = this.grid;
  4668. f && f.dk && f.ts();
  4669. this.transform();
  4670. var g = this.u;
  4671. if (g && 0 < g.length) {
  4672. var h = g.length;
  4673. this.Wc();
  4674. for (d = 0; d < h; d++)
  4675. if (g[d] &&
  4676. 0 > g[d].yb) g[d].S();
  4677. else break;
  4678. for (this.Y(a); d < h; d++) g[d] && g[d].S()
  4679. } else this.Y(a);
  4680. this.arrivalOrder = 0;
  4681. f && f.dk && f.qs(this);
  4682. e.top = e.stack.pop()
  4683. }
  4684. };
  4685. a.transform = function() {
  4686. var a = this.tD,
  4687. d = F.Vb.top,
  4688. e = this.Te(),
  4689. f = a.c;
  4690. f[0] = e.a;
  4691. f[4] = e.D;
  4692. f[12] = e.La;
  4693. f[1] = e.b;
  4694. f[5] = e.J;
  4695. f[13] = e.Ma;
  4696. f[14] = this.ks;
  4697. F.zi(d, d, a);
  4698. this.Ti != q && !(this.grid != q && this.grid.tf()) && (a = this.eb.x, d = this.eb.y, 0 !== a || 0 !== d ? (F.Hz || (a |= 0, d |= 0), F.Zo(a, d), this.Ti.Vs(), F.Zo(-a, -d)) : this.Ti.Vs())
  4699. };
  4700. a.Te = a.IW
  4701. };
  4702. F.C.pz = function() {
  4703. var a = F.t.prototype;
  4704. F.j(a, "x", a.Re, a.VO);
  4705. F.j(a, "y", a.Gg, a.UF);
  4706. F.j(a, "width", a.ah, a.lj);
  4707. F.j(a, "height", a.rk, a.kj);
  4708. F.j(a, "anchorX", a.uV, a.IC);
  4709. F.j(a, "anchorY", a.vV, a.JC);
  4710. F.j(a, "skewX", a.d0, a.C3);
  4711. F.j(a, "skewY", a.e0, a.D3);
  4712. F.j(a, "zIndex", a.H_, a.SO);
  4713. F.j(a, "vertexZ", a.n0, a.P3);
  4714. F.j(a, "rotation", a.X_, a.WF);
  4715. F.j(a, "rotationX", a.Z_, a.A3);
  4716. F.j(a, "rotationY", a.$_, a.B3);
  4717. F.j(a, "scale", a.a0, a.rp);
  4718. F.j(a, "scaleX", a.cN, a.pt);
  4719. F.j(a, "scaleY", a.dN, a.qt);
  4720. F.j(a, "children", a.k_);
  4721. F.j(a, "childrenCount", a.l_);
  4722. F.j(a, "parent", a.getParent, a.r3);
  4723. F.j(a, "visible", a.X0, a.jP);
  4724. F.j(a, "running", a.V0);
  4725. F.j(a, "ignoreAnchor", a.S0, a.jx);
  4726. F.j(a, "actionManager", a.Uw, a.HO);
  4727. F.j(a, "scheduler", a.Sk, a.cP);
  4728. F.j(a, "shaderProgram", a.HE, a.YF);
  4729. F.j(a, "glServerState", a.y_, a.h3)
  4730. };
  4731. F.C.qz = function() {
  4732. var a = F.ja.prototype;
  4733. F.j(a, "opacity", a.Qe, a.va);
  4734. F.j(a, "opacityModifyRGB", a.re, a.Hd);
  4735. F.j(a, "cascadeOpacity", a.Os, a.pp);
  4736. F.j(a, "color", a.Pe, a.Wa);
  4737. F.j(a, "cascadeColor", a.Ns, a.op)
  4738. };
  4739. F.bH = -1;
  4740. F.CO = 1;
  4741. F.t = F.ma.extend({
  4742. yb: 0,
  4743. Xi: 0,
  4744. ks: 0,
  4745. ij: 0,
  4746. Vl: 0,
  4747. qa: 1,
  4748. Ra: 1,
  4749. za: q,
  4750. ph: 0,
  4751. qh: 0,
  4752. u: q,
  4753. yc: p,
  4754. Rc: q,
  4755. eb: q,
  4756. P: q,
  4757. nh: r,
  4758. Tb: q,
  4759. $i: r,
  4760. tag: F.bH,
  4761. userData: q,
  4762. userObject: q,
  4763. sj: p,
  4764. Cv: p,
  4765. sg: p,
  4766. Si: q,
  4767. D8: q,
  4768. cm: q,
  4769. hK: q,
  4770. Ud: r,
  4771. Ib: q,
  4772. arrivalOrder: 0,
  4773. qg: q,
  4774. Pf: q,
  4775. Q7: q,
  4776. fK: r,
  4777. Oq: r,
  4778. Mu: q,
  4779. Xh: q,
  4780. HB: r,
  4781. ho: 0,
  4782. cw: 0,
  4783. tb: "Node",
  4784. YC: r,
  4785. Cr: "",
  4786. AB: function() {
  4787. this.Rc = F.d(0, 0);
  4788. this.eb = F.d(0, 0);
  4789. this.P = F.size(0, 0);
  4790. this.za = F.d(0, 0);
  4791. this.u = [];
  4792. this.cm = {
  4793. a: 1,
  4794. b: 0,
  4795. D: 0,
  4796. J: 1,
  4797. La: 0,
  4798. Ma: 0
  4799. };
  4800. var a = F.I;
  4801. this.qg = a.Uw();
  4802. this.Pf = a.Sk();
  4803. this.fK = p;
  4804. this.Mu = {
  4805. a: 1,
  4806. b: 0,
  4807. D: 0,
  4808. J: 1,
  4809. La: 0,
  4810. Ma: 0
  4811. };
  4812. F.nQ && (this.Xh = new F.nQ(this))
  4813. },
  4814. M: function() {
  4815. this.fK === r && this.AB();
  4816. return p
  4817. },
  4818. rg: function(a, c) {
  4819. if (a && 0 !== a.length) {
  4820. var d, e = a.length,
  4821. f;
  4822. d = F.t.Af;
  4823. switch (c) {
  4824. case d.da:
  4825. for (d = 0; d < e; d++)(f = a[d]) && f.da();
  4826. break;
  4827. case d.Ab:
  4828. for (d = 0; d < e; d++)(f = a[d]) && f.Ab();
  4829. break;
  4830. case d.Ih:
  4831. for (d = 0; d < e; d++)(f = a[d]) && f.Ih();
  4832. break;
  4833. case d.Ne:
  4834. for (d = 0; d < e; d++)(f = a[d]) && f.Ne();
  4835. break;
  4836. case d.$e:
  4837. for (d = 0; d < e; d++)(f = a[d]) && f.$e();
  4838. break;
  4839. case d.Yf:
  4840. for (d = 0; d < e; d++)(f = a[d]) && f.Yf();
  4841. break;
  4842. case d.Wc:
  4843. for (d = 0; d < e; d++)(f = a[d]) && f.Wc();
  4844. break;
  4845. default:
  4846. F.assert(0, F.i.vR)
  4847. }
  4848. }
  4849. },
  4850. Ka: q,
  4851. ri: function(a) {
  4852. for (var c in a) this[c] =
  4853. a[c]
  4854. },
  4855. d0: A("ph"),
  4856. C3: function(a) {
  4857. this.ph = a;
  4858. this.Ka()
  4859. },
  4860. e0: A("qh"),
  4861. D3: function(a) {
  4862. this.qh = a;
  4863. this.Ka()
  4864. },
  4865. SO: function(a) {
  4866. this.yb = a;
  4867. this.Tb && this.Tb.lp(this, a);
  4868. F.ua.ew(this)
  4869. },
  4870. fw: y("yb"),
  4871. H_: A("yb"),
  4872. Sca: function() {
  4873. F.log(F.i.CR);
  4874. return this.yb
  4875. },
  4876. Rja: function(a) {
  4877. F.log(F.i.NR);
  4878. this.SO(a)
  4879. },
  4880. uia: function(a) {
  4881. this.Xi != a && (this.Xi = a, F.ua.ew(this))
  4882. },
  4883. fba: A("Xi"),
  4884. n0: A("ks"),
  4885. P3: y("ks"),
  4886. X_: function() {
  4887. this.ij !== this.Vl && F.log(F.i.AR);
  4888. return this.ij
  4889. },
  4890. WF: function(a) {
  4891. this.ij = this.Vl = a;
  4892. this.ho = 0.017453292519943295 * this.ij;
  4893. this.cw =
  4894. 0.017453292519943295 * this.Vl;
  4895. this.Ka()
  4896. },
  4897. Z_: A("ij"),
  4898. A3: function(a) {
  4899. this.ij = a;
  4900. this.ho = 0.017453292519943295 * this.ij;
  4901. this.Ka()
  4902. },
  4903. $_: A("Vl"),
  4904. B3: function(a) {
  4905. this.Vl = a;
  4906. this.cw = 0.017453292519943295 * this.Vl;
  4907. this.Ka()
  4908. },
  4909. a0: function() {
  4910. this.qa !== this.Ra && F.log(F.i.BR);
  4911. return this.qa
  4912. },
  4913. rp: function(a, c) {
  4914. this.qa = a;
  4915. this.Ra = c || 0 === c ? c : a;
  4916. this.Ka()
  4917. },
  4918. cN: A("qa"),
  4919. pt: function(a) {
  4920. this.qa = a;
  4921. this.Ka()
  4922. },
  4923. dN: A("Ra"),
  4924. qt: function(a) {
  4925. this.Ra = a;
  4926. this.Ka()
  4927. },
  4928. G: function(a, c) {
  4929. var d = this.za;
  4930. c === k ? (d.x = a.x, d.y = a.y) : (d.x = a, d.y = c);
  4931. this.Ka()
  4932. },
  4933. Xw: function() {
  4934. return F.d(this.za)
  4935. },
  4936. Re: function() {
  4937. return this.za.x
  4938. },
  4939. VO: function(a) {
  4940. this.za.x = a;
  4941. this.Ka()
  4942. },
  4943. Gg: function() {
  4944. return this.za.y
  4945. },
  4946. UF: function(a) {
  4947. this.za.y = a;
  4948. this.Ka()
  4949. },
  4950. l_: function() {
  4951. return this.u.length
  4952. },
  4953. k_: A("u"),
  4954. X0: A("yc"),
  4955. jP: function(a) {
  4956. this.yc = a;
  4957. this.Ka()
  4958. },
  4959. kaa: A("Rc"),
  4960. Fi: function(a, c) {
  4961. var d = this.Rc;
  4962. if (c === k) {
  4963. if (a.x === d.x && a.y === d.y) return;
  4964. d.x = a.x;
  4965. d.y = a.y
  4966. } else {
  4967. if (a === d.x && c === d.y) return;
  4968. d.x = a;
  4969. d.y = c
  4970. }
  4971. var e = this.eb,
  4972. f = this.P;
  4973. e.x = f.width * d.x;
  4974. e.y = f.height * d.y;
  4975. this.Ka()
  4976. },
  4977. S7: A("Rc"),
  4978. hL: function(a) {
  4979. var c =
  4980. a.x;
  4981. a = a.y;
  4982. this.Rc.x !== c && (this.Rc.x = c, this.eb.x = this.P.width * c);
  4983. this.Rc.y !== a && (this.Rc.y = a, this.eb.y = this.P.height * a);
  4984. this.Ka()
  4985. },
  4986. uV: function() {
  4987. return this.Rc.x
  4988. },
  4989. IC: function(a) {
  4990. this.Rc.x !== a && (this.Rc.x = a, this.eb.x = this.P.width * a, this.Ka())
  4991. },
  4992. vV: function() {
  4993. return this.Rc.y
  4994. },
  4995. JC: function(a) {
  4996. this.Rc.y !== a && (this.Rc.y = a, this.eb.y = this.P.height * a, this.Ka())
  4997. },
  4998. laa: A("eb"),
  4999. ah: function() {
  5000. return this.P.width
  5001. },
  5002. lj: function(a) {
  5003. this.P.width = a;
  5004. this.eb.x = a * this.Rc.x;
  5005. this.Ka()
  5006. },
  5007. rk: function() {
  5008. return this.P.height
  5009. },
  5010. kj: function(a) {
  5011. this.P.height = a;
  5012. this.eb.y = a * this.Rc.y;
  5013. this.Ka()
  5014. },
  5015. fc: A("P"),
  5016. Zd: function(a, c) {
  5017. var d = this.P;
  5018. if (c === k) {
  5019. if (a.width === d.width && a.height === d.height) return;
  5020. d.width = a.width;
  5021. d.height = a.height
  5022. } else {
  5023. if (a === d.width && c === d.height) return;
  5024. d.width = a;
  5025. d.height = c
  5026. }
  5027. var e = this.eb,
  5028. f = this.Rc;
  5029. e.x = d.width * f.x;
  5030. e.y = d.height * f.y;
  5031. this.Ka()
  5032. },
  5033. V0: A("nh"),
  5034. getParent: A("Tb"),
  5035. r3: y("Tb"),
  5036. S0: A("$i"),
  5037. jx: function(a) {
  5038. a != this.$i && (this.$i = a, this.Ka())
  5039. },
  5040. Es: A("tag"),
  5041. oy: y("tag"),
  5042. Jia: function() {
  5043. this.Cr
  5044. },
  5045. getName: A("Cr"),
  5046. getUserData: A("userData"),
  5047. setUserData: y("userData"),
  5048. Mca: A("userObject"),
  5049. Oja: function(a) {
  5050. this.userObject != a && (this.userObject = a)
  5051. },
  5052. Jba: A("arrivalOrder"),
  5053. Pia: y("arrivalOrder"),
  5054. Uw: function() {
  5055. this.qg || (this.qg = F.I.Uw());
  5056. return this.qg
  5057. },
  5058. HO: function(a) {
  5059. this.qg != a && (this.gG(), this.qg = a)
  5060. },
  5061. Sk: function() {
  5062. this.Pf || (this.Pf = F.I.Sk());
  5063. return this.Pf
  5064. },
  5065. cP: function(a) {
  5066. this.Pf != a && (this.Ct(), this.Pf = a)
  5067. },
  5068. raa: function() {
  5069. var a = F.rect(0, 0, this.P.width, this.P.height);
  5070. return F.lU(a, this.Te())
  5071. },
  5072. Ne: function() {
  5073. this.gG();
  5074. this.Ct();
  5075. F.ua.vO(this);
  5076. this.rg(this.u,
  5077. F.t.Af.Ne)
  5078. },
  5079. Bh: function(a) {
  5080. var c = this.u;
  5081. if (c != q)
  5082. for (var d = 0; d < c.length; d++) {
  5083. var e = c[d];
  5084. if (e && e.tag == a) return e
  5085. }
  5086. return q
  5087. },
  5088. yaa: function(a) {
  5089. if (!a) return F.log("Invalid name"), q;
  5090. for (var c = this.u, d = 0, e = c.length; d < e; d++)
  5091. if (c[d].Cr == a) return c[d];
  5092. return q
  5093. },
  5094. Q: function(a, c, d) {
  5095. F.assert(a, F.i.yR);
  5096. a === this ? F.log(F.i.wR) : a.Tb !== q ? F.log(F.i.xR) : (c = c != q ? c : a.yb, a.tag = d != q ? d : a.tag, this.oW(a, c), a.Tb = this, this.Si && (a.Si = this.Si), this.nh && (a.da(), this.HB && a.Ih()))
  5097. },
  5098. $k: function(a) {
  5099. this.Tb && (a == q && (a = p), this.Tb.removeChild(this,
  5100. a))
  5101. },
  5102. oha: function(a) {
  5103. F.log(F.i.HR);
  5104. this.$k(a)
  5105. },
  5106. removeChild: function(a, c) {
  5107. 0 !== this.u.length && (c == q && (c = p), -1 < this.u.indexOf(a) && this.cV(a, c), this.Ka())
  5108. },
  5109. DF: function(a, c) {
  5110. a === F.bH && F.log(F.i.FR);
  5111. var d = this.Bh(a);
  5112. d == q ? F.log(F.i.GR, a) : this.removeChild(d, c)
  5113. },
  5114. gha: function(a) {
  5115. F.log(F.i.ER);
  5116. this.Jg(a)
  5117. },
  5118. Jg: function(a) {
  5119. var c = this.u;
  5120. if (c != q) {
  5121. a == q && (a = p);
  5122. for (var d = 0; d < c.length; d++) {
  5123. var e = c[d];
  5124. e && (this.nh && (e.Yf(), e.Ab()), a && e.Ne(), e.parent = q)
  5125. }
  5126. this.u.length = 0
  5127. }
  5128. },
  5129. cV: function(a, c) {
  5130. this.nh && (a.Yf(), a.Ab());
  5131. c && a.Ne();
  5132. a.parent = q;
  5133. F.Me(this.u, a)
  5134. },
  5135. oW: function(a, c) {
  5136. this.Ud = p;
  5137. this.u.push(a);
  5138. a.fw(c)
  5139. },
  5140. lp: function(a, c) {
  5141. F.assert(a, F.i.IR);
  5142. this.Ud = p;
  5143. a.arrivalOrder = F.CO;
  5144. F.CO++;
  5145. a.fw(c);
  5146. this.Ka()
  5147. },
  5148. Wc: function() {
  5149. if (this.Ud) {
  5150. var a = this.u,
  5151. c = a.length,
  5152. d, e, f;
  5153. for (d = 1; d < c; d++) {
  5154. f = a[d];
  5155. for (e = d - 1; 0 <= e;) {
  5156. if (f.yb < a[e].yb) a[e + 1] = a[e];
  5157. else if (f.yb === a[e].yb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  5158. else break;
  5159. e--
  5160. }
  5161. a[e + 1] = f
  5162. }
  5163. this.Ud = r
  5164. }
  5165. },
  5166. Y: t(),
  5167. uy: function() {
  5168. this.Tb != q && (this.Tb.uy(), this.Tb.transform())
  5169. },
  5170. da: function() {
  5171. this.HB = r;
  5172. this.nh = p;
  5173. this.rg(this.u, F.t.Af.da);
  5174. this.mp()
  5175. },
  5176. Ih: function() {
  5177. this.HB = p;
  5178. this.rg(this.u, F.t.Af.Ih)
  5179. },
  5180. Yf: function() {
  5181. this.rg(this.u, F.t.Af.Yf)
  5182. },
  5183. Ab: function() {
  5184. this.nh = r;
  5185. this.pause();
  5186. this.rg(this.u, F.t.Af.Ab);
  5187. this.Xh && this.Xh.t2()
  5188. },
  5189. ib: function(a) {
  5190. F.assert(a, F.i.KR);
  5191. this.actionManager.DY(a, this, !this.nh);
  5192. return a
  5193. },
  5194. gG: function() {
  5195. this.actionManager && this.actionManager.tO(this)
  5196. },
  5197. i4: function(a) {
  5198. this.actionManager.sO(a)
  5199. },
  5200. j4: function(a) {
  5201. a === F.Sm ? F.log(F.i.OR) : this.actionManager.s2(a, this)
  5202. },
  5203. wE: function(a) {
  5204. return a === F.Sm ?
  5205. (F.log(F.i.zR), q) : this.actionManager.wE(a, this)
  5206. },
  5207. Dba: function() {
  5208. return this.actionManager.K1(this)
  5209. },
  5210. M2: function() {
  5211. this.EO(0)
  5212. },
  5213. EO: function(a) {
  5214. this.scheduler.KF(this, a, !this.nh)
  5215. },
  5216. DP: function() {
  5217. this.scheduler.Dt(this)
  5218. },
  5219. nt: function(a, c, d, e) {
  5220. c = c || 0;
  5221. F.assert(a, F.i.LR);
  5222. F.assert(0 <= c, F.i.MR);
  5223. d = d == q ? F.oq : d;
  5224. this.scheduler.L2(this, a, c, d, e || 0, !this.nh)
  5225. },
  5226. Iha: function(a, c) {
  5227. this.nt(a, 0, 0, c)
  5228. },
  5229. vy: function(a) {
  5230. a && this.scheduler.CP(this, a)
  5231. },
  5232. Ct: function() {
  5233. this.scheduler.BP(this)
  5234. },
  5235. yha: function() {
  5236. F.log(F.i.JR);
  5237. this.mp()
  5238. },
  5239. mp: function() {
  5240. this.scheduler.Ij(this);
  5241. this.actionManager && this.actionManager.Ij(this);
  5242. F.ua.Ij(this)
  5243. },
  5244. Ega: function() {
  5245. F.log(F.i.DR);
  5246. this.pause()
  5247. },
  5248. pause: function() {
  5249. this.scheduler.ip(this);
  5250. this.actionManager && this.actionManager.ip(this);
  5251. F.ua.ip(this)
  5252. },
  5253. Oha: function(a) {
  5254. this.Mu = a;
  5255. this.Oq = this.sj = p
  5256. },
  5257. Bga: function() {
  5258. this.Cv && (this.hK = F.uG(this.Te()), this.Cv = r);
  5259. return this.hK
  5260. },
  5261. dp: function() {
  5262. for (var a = this.Te(), c = this.Tb; c != q; c = c.parent) a = F.hl(a, c.Te());
  5263. return a
  5264. },
  5265. L4: function() {
  5266. return F.uG(this.dp())
  5267. },
  5268. iE: function(a) {
  5269. return F.vH(a,
  5270. this.L4())
  5271. },
  5272. Nw: function(a) {
  5273. a = a || F.d(0, 0);
  5274. return F.vH(a, this.dp())
  5275. },
  5276. pZ: function(a) {
  5277. return F.Gd(this.iE(a), this.eb)
  5278. },
  5279. G9: function(a) {
  5280. a = a || F.d(0, 0);
  5281. a = F.Dj(a, this.eb);
  5282. return this.Nw(a)
  5283. },
  5284. K7: function(a) {
  5285. a = this.Nw(a);
  5286. return F.I.qZ(a)
  5287. },
  5288. H9: function(a) {
  5289. return this.iE(a.Ds())
  5290. },
  5291. I9: function(a) {
  5292. a = a.Ds();
  5293. a = F.I.oZ(a);
  5294. return this.pZ(a)
  5295. },
  5296. update: function(a) {
  5297. this.Xh && !this.Xh.rda() && this.Xh.S(a)
  5298. },
  5299. $e: function() {
  5300. this.rg(this.u, F.t.Af.$e)
  5301. },
  5302. ay: t(),
  5303. Ei: t(),
  5304. n_: function(a) {
  5305. return this.Xh.n_(a)
  5306. },
  5307. K8: function(a) {
  5308. this.Xh.add(a)
  5309. },
  5310. mha: function(a) {
  5311. return this.Xh.remove(a)
  5312. },
  5313. hha: function() {
  5314. this.Xh.t2()
  5315. },
  5316. grid: q,
  5317. ctor: q,
  5318. S: q,
  5319. transform: q,
  5320. Te: q,
  5321. oh: function() {
  5322. if (this.sg === r) {
  5323. this.sg = p;
  5324. var a = this.Si;
  5325. a && a != this && a.oh()
  5326. }
  5327. },
  5328. KC: function(a) {
  5329. if (this.Si != a) {
  5330. this.Si = a;
  5331. for (var c = this.u, d = 0, e = c.length; d < e; d++) c[d].KC(a)
  5332. }
  5333. },
  5334. wm: function() {
  5335. this.Ti || (this.Ti = new F.Kp);
  5336. return this.Ti
  5337. },
  5338. Cs: A("grid"),
  5339. i3: y("grid"),
  5340. HE: A("Ib"),
  5341. YF: y("Ib"),
  5342. y_: A("xB"),
  5343. h3: y("xB"),
  5344. i_: function() {
  5345. var a = F.rect(0, 0, this.P.width, this.P.height),
  5346. c = this.dp(),
  5347. a = F.Az(a, this.dp());
  5348. if (!this.u) return a;
  5349. for (var d = this.u, e = 0; e < d.length; e++) {
  5350. var f = d[e];
  5351. f && f.yc && (f = f.nr(c)) && (a = F.Xx(a, f))
  5352. }
  5353. return a
  5354. },
  5355. nr: function(a) {
  5356. var c = F.rect(0, 0, this.P.width, this.P.height);
  5357. a = a == q ? this.Te() : F.hl(this.Te(), a);
  5358. c = F.Az(c, a);
  5359. if (!this.u) return c;
  5360. for (var d = this.u, e = 0; e < d.length; e++) {
  5361. var f = d[e];
  5362. f && f.yc && (f = f.nr(a)) && (c = F.Xx(c, f))
  5363. }
  5364. return c
  5365. },
  5366. IW: function() {
  5367. if (this.sj) {
  5368. var a = this.za.x,
  5369. c = this.za.y,
  5370. d = this.eb.x,
  5371. e = -d,
  5372. f = this.eb.y,
  5373. g = -f,
  5374. h = this.qa,
  5375. m = this.Ra;
  5376. this.$i && (a += d, c += f);
  5377. var n = 1,
  5378. s = 0,
  5379. u = 1,
  5380. v = 0;
  5381. if (0 !== this.ij || 0 !== this.Vl) n = Math.cos(-this.ho),
  5382. s = Math.sin(-this.ho), u = Math.cos(-this.cw), v = Math.sin(-this.cw);
  5383. var x = this.ph || this.qh;
  5384. if (!x && (0 !== d || 0 !== f)) a += u * e * h + -s * g * m, c += v * e * h + n * g * m;
  5385. var w = this.cm;
  5386. w.a = u * h;
  5387. w.b = v * h;
  5388. w.D = -s * m;
  5389. w.J = n * m;
  5390. w.La = a;
  5391. w.Ma = c;
  5392. if (x && (w = F.hl({
  5393. a: 1,
  5394. b: Math.tan(F.Uf(this.qh)),
  5395. D: Math.tan(F.Uf(this.ph)),
  5396. J: 1,
  5397. La: 0,
  5398. Ma: 0
  5399. }, w), 0 !== d || 0 !== f)) w = F.SP(w, e, g);
  5400. this.Oq && (w = F.hl(w, this.Mu), this.Oq = r);
  5401. this.cm = w;
  5402. this.sj = r
  5403. }
  5404. return this.cm
  5405. }
  5406. });
  5407. F.t.create = function() {
  5408. return new F.t
  5409. };
  5410. F.t.Af = {
  5411. da: 1,
  5412. Ab: 2,
  5413. Ne: 3,
  5414. Ih: 4,
  5415. $e: 5,
  5416. Yf: 6,
  5417. Wc: 7
  5418. };
  5419. F.B === F.Ca ? (M = F.t.prototype, M.ctor = function() {
  5420. this.AB()
  5421. }, M.Ka = function() {
  5422. this.oh();
  5423. this.sj === r && (this.sj = this.Cv = p)
  5424. }, M.S = function(a) {
  5425. if (this.yc) {
  5426. a = a || F.m;
  5427. var c, d = this.u,
  5428. e;
  5429. a.save();
  5430. this.transform(a);
  5431. var f = d.length;
  5432. if (0 < f) {
  5433. this.Wc();
  5434. for (c = 0; c < f; c++)
  5435. if (e = d[c], 0 > e.yb) e.S(a);
  5436. else break;
  5437. for (this.Y(a); c < f; c++) d[c].S(a)
  5438. } else this.Y(a);
  5439. this.sg = r;
  5440. this.arrivalOrder = 0;
  5441. a.restore()
  5442. }
  5443. }, M.transform = function(a) {
  5444. a = a || F.m;
  5445. var c = F.view,
  5446. d = this.Te();
  5447. a.transform(d.a, d.D, d.b, d.J, d.La * c.qa, -d.Ma * c.Ra)
  5448. }, M.Te = function() {
  5449. if (this.sj) {
  5450. var a =
  5451. this.cm;
  5452. a.La = this.za.x;
  5453. a.Ma = this.za.y;
  5454. var c = 1,
  5455. d = 0;
  5456. this.ij && (c = Math.cos(this.ho), d = Math.sin(this.ho));
  5457. a.a = a.J = c;
  5458. a.b = -d;
  5459. a.D = d;
  5460. var e = this.qa,
  5461. f = this.Ra,
  5462. g = this.eb.x,
  5463. h = this.eb.y,
  5464. m = 1E-6 > e && -1E-6 < e ? 1E-6 : e,
  5465. n = 1E-6 > f && -1E-6 < f ? 1E-6 : f;
  5466. if (this.ph || this.qh) {
  5467. var s = Math.tan(-this.ph * Math.PI / 180),
  5468. u = Math.tan(-this.qh * Math.PI / 180);
  5469. Infinity === s && (s = 99999999);
  5470. Infinity === u && (u = 99999999);
  5471. var v = h * s * m,
  5472. x = g * u * n;
  5473. a.a = c + -d * u;
  5474. a.b = c * s + -d;
  5475. a.D = d + c * u;
  5476. a.J = d * s + c;
  5477. a.La += c * v + -d * x;
  5478. a.Ma += d * v + c * x
  5479. }
  5480. if (1 !== e || 1 !== f) a.a *= m, a.D *= m, a.b *= n, a.J *= n;
  5481. a.La += c * -g * m + -d * h * n;
  5482. a.Ma -= d * -g * m + c * h * n;
  5483. this.$i && (a.La += g, a.Ma += h);
  5484. this.Oq && (this.cm = F.hl(a, this.Mu), this.Oq = r);
  5485. this.sj = r
  5486. }
  5487. return this.cm
  5488. }, M = q) : (F.assert("function" === typeof F.C.kA, F.i.Qc, "BaseNodesWebGL.js"), F.C.kA(), delete F.C.kA);
  5489. F.assert("function" === typeof F.C.pz, F.i.Qc, "BaseNodesPropertyDefine.js");
  5490. F.C.pz();
  5491. delete F.C.pz;
  5492. F.ja = F.t.extend({
  5493. wb: p,
  5494. Ba: 255,
  5495. Td: 255,
  5496. Da: q,
  5497. bc: q,
  5498. wd: r,
  5499. ce: r,
  5500. ctor: function() {
  5501. F.t.prototype.ctor.call(this);
  5502. this.Td = this.Ba = 255;
  5503. this.Da = F.color(255, 255, 255, 255);
  5504. this.bc = F.color(255, 255, 255, 255);
  5505. this.ce = this.wd = r
  5506. },
  5507. ec: t(),
  5508. Qe: A("Td"),
  5509. NM: A("Ba"),
  5510. va: function(a) {
  5511. this.Ba = this.Td = a;
  5512. var c = 255,
  5513. d = this.Tb;
  5514. d && (d.wb && d.cascadeOpacity) && (c = d.Ba);
  5515. this.Mb(c);
  5516. this.Da.a = this.bc.a = a
  5517. },
  5518. Mb: function(a) {
  5519. this.Ba = this.Td * a / 255;
  5520. if (this.ce) {
  5521. a = this.u;
  5522. for (var c = 0; c < a.length; c++) {
  5523. var d = a[c];
  5524. d && d.wb && d.Mb(this.Ba)
  5525. }
  5526. }
  5527. },
  5528. Os: A("ce"),
  5529. pp: function(a) {
  5530. this.ce !==
  5531. a && ((this.ce = a) ? this.gr() : this.XA())
  5532. },
  5533. gr: function() {
  5534. var a = 255,
  5535. c = this.Tb;
  5536. c && (c.wb && c.cascadeOpacity) && (a = c.Ba);
  5537. this.Mb(a)
  5538. },
  5539. XA: function() {
  5540. this.Ba = this.Td;
  5541. for (var a = this.u, c = 0; c < a.length; c++) {
  5542. var d = a[c];
  5543. d && d.wb && d.Mb(255)
  5544. }
  5545. },
  5546. Pe: function() {
  5547. var a = this.bc;
  5548. return F.color(a.r, a.g, a.b, a.a)
  5549. },
  5550. xm: function() {
  5551. var a = this.Da;
  5552. return F.color(a.r, a.g, a.b, a.a)
  5553. },
  5554. Wa: function(a) {
  5555. var c = this.Da,
  5556. d = this.bc;
  5557. c.r = d.r = a.r;
  5558. c.g = d.g = a.g;
  5559. c.b = d.b = a.b;
  5560. c = (c = this.Tb) && c.wb && c.cascadeColor ? c.xm() : F.color.WHITE;
  5561. this.Ob(c);
  5562. a.a !== k && !a.os &&
  5563. this.va(a.a)
  5564. },
  5565. Ob: function(a) {
  5566. var c = this.Da,
  5567. d = this.bc;
  5568. c.r = 0 | d.r * a.r / 255;
  5569. c.g = 0 | d.g * a.g / 255;
  5570. c.b = 0 | d.b * a.b / 255;
  5571. if (this.wd) {
  5572. a = this.u;
  5573. for (d = 0; d < a.length; d++) {
  5574. var e = a[d];
  5575. e && e.wb && e.Ob(c)
  5576. }
  5577. }
  5578. },
  5579. Ns: A("wd"),
  5580. op: function(a) {
  5581. this.wd !== a && ((this.wd = a) ? this.fr() : this.WA())
  5582. },
  5583. fr: function() {
  5584. var a;
  5585. a = (a = this.Tb) && a.wb && a.cascadeColor ? a.xm() : F.color.WHITE;
  5586. this.Ob(a)
  5587. },
  5588. WA: function() {
  5589. var a = this.Da,
  5590. c = this.bc;
  5591. a.r = c.r;
  5592. a.g = c.g;
  5593. a.b = c.b;
  5594. for (var a = this.u, c = F.color.WHITE, d = 0; d < a.length; d++) {
  5595. var e = a[d];
  5596. e && e.wb && e.Ob(c)
  5597. }
  5598. },
  5599. Q: function(a,
  5600. c, d) {
  5601. F.t.prototype.Q.call(this, a, c, d);
  5602. this.wd && this.fr();
  5603. this.ce && this.gr()
  5604. },
  5605. Hd: t(),
  5606. re: E(r)
  5607. });
  5608. F.ja.create = function() {
  5609. var a = new F.ja;
  5610. a.M();
  5611. return a
  5612. };
  5613. F.assert("function" === typeof F.C.qz, F.i.Qc, "BaseNodesPropertyDefine.js");
  5614. F.C.qz();
  5615. delete F.C.qz;
  5616. F.t.z6 = 0;
  5617. F.t.B6 = 1;
  5618. F.t.A6 = 2;
  5619. F.t.C6 = 3;
  5620. F.t.y6 = 4;
  5621. F.Ii = F.ja.extend({
  5622. textureAtlas: q,
  5623. quadsToDraw: 0,
  5624. wb: p,
  5625. Zn: 0,
  5626. pK: 0,
  5627. bi: 0,
  5628. gh: 0,
  5629. Bl: q,
  5630. Qa: r,
  5631. q: q,
  5632. zv: r,
  5633. tb: "AtlasNode",
  5634. ctor: function(a, c, d, e) {
  5635. F.ja.prototype.ctor.call(this);
  5636. this.Bl = F.color.WHITE;
  5637. this.q = {
  5638. src: F.hc,
  5639. U: F.gc
  5640. };
  5641. this.zv = r;
  5642. e !== k && this.H0(a, c, d, e)
  5643. },
  5644. Bp: function() {
  5645. F.log(F.i.TP)
  5646. },
  5647. Pe: function() {
  5648. return this.Qa ? this.Bl : F.ja.prototype.Pe.call(this)
  5649. },
  5650. Hd: function(a) {
  5651. var c = this.color;
  5652. this.Qa = a;
  5653. this.color = c
  5654. },
  5655. re: A("Qa"),
  5656. Ah: A("q"),
  5657. Ue: function(a, c) {
  5658. this.q = c === k ? a : {
  5659. src: a,
  5660. U: c
  5661. }
  5662. },
  5663. aG: y("textureAtlas"),
  5664. JE: A("textureAtlas"),
  5665. $ba: A("quadsToDraw"),
  5666. aja: y("quadsToDraw"),
  5667. Kk: q,
  5668. ie: q,
  5669. vD: q,
  5670. Xq: q,
  5671. H0: function(a, c, d, e) {
  5672. a || b("cc.AtlasNode.initWithTileFile(): title should not be null");
  5673. a = F.Fa.Hc(a);
  5674. return this.sa(a, c, d, e)
  5675. },
  5676. sa: q,
  5677. BB: function(a, c, d, e) {
  5678. this.bi = c;
  5679. this.gh = d;
  5680. this.Qa = p;
  5681. this.ie = a;
  5682. if (!this.ie) return F.log(F.i.vG), r;
  5683. this.Kk = this.ie;
  5684. this.Uu();
  5685. this.quadsToDraw = e;
  5686. return p
  5687. },
  5688. CB: function(a, c, d, e) {
  5689. this.bi = c;
  5690. this.gh = d;
  5691. this.Bl = F.color.WHITE;
  5692. this.Qa = p;
  5693. this.q.src = F.hc;
  5694. this.q.U = F.gc;
  5695. c = this.bc;
  5696. this.Xq = new Float32Array([c.r / 255, c.g / 255, c.b /
  5697. 255, this.Td / 255
  5698. ]);
  5699. this.textureAtlas = new F.Vj;
  5700. this.textureAtlas.sa(a, e);
  5701. if (!this.textureAtlas) return F.log(F.i.vG), r;
  5702. this.Sf();
  5703. this.IL();
  5704. this.Uu();
  5705. this.quadsToDraw = e;
  5706. this.shaderProgram = F.Jd.oc(F.Fz);
  5707. this.vD = F.m.getUniformLocation(this.shaderProgram.ym(), "u_color");
  5708. return p
  5709. },
  5710. Y: q,
  5711. Wi: function(a) {
  5712. a = a || F.m;
  5713. F.Ws(this);
  5714. F.Eh(this.q.src, this.q.U);
  5715. this.vD && this.Xq && (a.uniform4fv(this.vD, this.Xq), this.textureAtlas.yM(this.quadsToDraw))
  5716. },
  5717. Wa: q,
  5718. AX: function(a) {
  5719. var c = this.bc;
  5720. if (!(c.r == a.r && c.g == a.g && c.b == a.b)) {
  5721. c =
  5722. F.color(a.r, a.g, a.b);
  5723. this.Bl = a;
  5724. if (this.Qa) {
  5725. var d = this.Ba;
  5726. c.r = c.r * d / 255;
  5727. c.g = c.g * d / 255;
  5728. c.b = c.b * d / 255
  5729. }
  5730. F.ja.prototype.Wa.call(this, a);
  5731. if (this.texture && (a = this.ie.Eb))
  5732. if (c = F.Fa.bx(a)) d = F.rect(0, 0, a.width, a.height), a = F.No(a, c, this.bc, d), c = new F.ea, c.Ed(a), c.Wb(), this.texture = c
  5733. }
  5734. },
  5735. BX: function(a) {
  5736. var c = F.color(a.r, a.g, a.b);
  5737. this.Bl = a;
  5738. var d = this.Ba;
  5739. this.Qa && (c.r = c.r * d / 255, c.g = c.g * d / 255, c.b = c.b * d / 255);
  5740. F.ja.prototype.Wa.call(this, a);
  5741. a = this.Da;
  5742. this.Xq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, d / 255])
  5743. },
  5744. va: t(),
  5745. QC: function(a) {
  5746. F.ja.prototype.va.call(this,
  5747. a);
  5748. this.Qa && (this.color = this.Bl)
  5749. },
  5750. RC: function(a) {
  5751. F.ja.prototype.va.call(this, a);
  5752. this.Qa ? this.color = this.Bl : (a = this.Da, this.Xq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.Ba / 255]))
  5753. },
  5754. Oa: q,
  5755. or: A("Kk"),
  5756. wB: function() {
  5757. return this.textureAtlas.texture
  5758. },
  5759. pb: q,
  5760. VC: y("Kk"),
  5761. WC: function(a) {
  5762. this.textureAtlas.texture = a;
  5763. this.Sf();
  5764. this.IL()
  5765. },
  5766. Uu: q,
  5767. GU: function() {
  5768. var a = this.texture.fc();
  5769. this.pK = 0 | a.height / this.gh;
  5770. this.Zn = 0 | a.width / this.bi
  5771. },
  5772. HU: function() {
  5773. var a = this.texture,
  5774. c = a.fc();
  5775. this.zv && (c = a.P);
  5776. this.pK = 0 | c.height /
  5777. this.gh;
  5778. this.Zn = 0 | c.width / this.bi
  5779. },
  5780. Sf: function() {
  5781. this.textureAtlas.texture.ti() || (this.q.src = F.SRC_ALPHA, this.q.U = F.ONE_MINUS_SRC_ALPHA)
  5782. },
  5783. IL: function() {
  5784. this.Qa = this.textureAtlas.texture.ti()
  5785. },
  5786. NC: y("zv")
  5787. });
  5788. M = F.Ii.prototype;
  5789. F.B === F.$ ? (M.sa = M.CB, M.Y = M.Wi, M.Wa = M.BX, M.va = M.RC, M.Oa = M.wB, M.pb = M.WC, M.Uu = M.HU) : (M.sa = M.BB, M.Y = F.t.prototype.Y, M.Wa = M.AX, M.va = M.QC, M.Oa = M.or, M.pb = M.VC, M.Uu = M.GU);
  5790. F.j(M, "opacity", M.Qe, M.va);
  5791. F.j(M, "color", M.Pe, M.Wa);
  5792. F.j(M, "texture", M.Oa, M.pb);
  5793. F.Ii.create = function(a, c, d, e) {
  5794. return new F.Ii(a, c, d, e)
  5795. };
  5796. F.C.qA = function() {
  5797. F.ea = F.ma.extend({
  5798. l8: p,
  5799. hi: q,
  5800. gj: 0,
  5801. fj: 0,
  5802. Cr: "",
  5803. P: q,
  5804. Ai: 0,
  5805. Bi: 0,
  5806. yv: r,
  5807. Rn: r,
  5808. shaderProgram: q,
  5809. uc: r,
  5810. Eb: q,
  5811. Vd: q,
  5812. url: q,
  5813. hb: q,
  5814. ctor: function() {
  5815. this.P = F.size(0, 0);
  5816. this.hi = F.ea.pM
  5817. },
  5818. CF: function() {
  5819. this.Vd && F.m.deleteTexture(this.Vd);
  5820. F.V.Ei(this.url)
  5821. },
  5822. VM: A("hi"),
  5823. XM: A("gj"),
  5824. WM: A("fj"),
  5825. getName: A("Vd"),
  5826. fc: function() {
  5827. return F.size(this.P.width / F.rb(), this.P.height / F.rb())
  5828. },
  5829. ah: function() {
  5830. return this.P.width / F.rb()
  5831. },
  5832. rk: function() {
  5833. return this.P.height / F.rb()
  5834. },
  5835. o_: A("P"),
  5836. M_: A("Ai"),
  5837. m3: y("Ai"),
  5838. N_: A("Bi"),
  5839. n3: y("Bi"),
  5840. HE: A("shaderProgram"),
  5841. YF: y("shaderProgram"),
  5842. ti: A("yv"),
  5843. u0: A("Rn"),
  5844. description: function() {
  5845. return "\x3ccc.Texture2D | Name \x3d " + this.Cr + " | Dimensions \x3d " + this.gj + " x " + this.fj + " | Coordinates \x3d (" + this.Ai + ", " + this.Bi + ")\x3e"
  5846. },
  5847. r2: t(),
  5848. b1: aa(),
  5849. Ms: function(a, c, d, e, f) {
  5850. var g = F.ea,
  5851. h = F.m,
  5852. m = h.RGBA,
  5853. n = h.UNSIGNED_BYTE,
  5854. s = d * F.ea.AI[c] / 8;
  5855. 0 === s % 8 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 8) : 0 === s % 4 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 4) : 0 === s % 2 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 2) : h.pixelStorei(h.UNPACK_ALIGNMENT, 1);
  5856. this.Vd =
  5857. h.createTexture();
  5858. F.qe(this);
  5859. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR);
  5860. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR);
  5861. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE);
  5862. h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE);
  5863. switch (c) {
  5864. case g.Oi:
  5865. m = h.RGBA;
  5866. break;
  5867. case g.mq:
  5868. m = h.RGB;
  5869. break;
  5870. case g.ju:
  5871. n = h.UNSIGNED_SHORT_4_4_4_4;
  5872. break;
  5873. case g.iu:
  5874. n = h.UNSIGNED_SHORT_5_5_5_1;
  5875. break;
  5876. case g.lq:
  5877. n = h.UNSIGNED_SHORT_5_6_5;
  5878. break;
  5879. case g.jz:
  5880. m = h.LUMINANCE_ALPHA;
  5881. break;
  5882. case g.kq:
  5883. m =
  5884. h.ALPHA;
  5885. break;
  5886. case g.kz:
  5887. m = h.LUMINANCE;
  5888. break;
  5889. default:
  5890. F.assert(0, F.i.tT)
  5891. }
  5892. h.texImage2D(h.TEXTURE_2D, 0, m, d, e, 0, m, n, a);
  5893. this.P.width = f.width;
  5894. this.P.height = f.height;
  5895. this.gj = d;
  5896. this.fj = e;
  5897. this.hi = c;
  5898. this.Ai = f.width / d;
  5899. this.Bi = f.height / e;
  5900. this.Rn = this.yv = r;
  5901. this.shaderProgram = F.Jd.oc(F.tq);
  5902. return this.uc = p
  5903. },
  5904. AZ: function(a) {
  5905. var c = [0, this.Bi, this.Ai, this.Bi, 0, 0, this.Ai, 0],
  5906. d = this.gj * this.Ai,
  5907. e = this.fj * this.Bi;
  5908. a = [a.x, a.y, 0, d + a.x, a.y, 0, a.x, e + a.y, 0, d + a.x, e + a.y, 0];
  5909. F.Jc(F.Md | F.hn);
  5910. this.Ib.Nc();
  5911. this.Ib.ut();
  5912. F.qe(this);
  5913. d = F.m;
  5914. d.vertexAttribPointer(F.qb, 2, d.FLOAT, r, 0, a);
  5915. d.vertexAttribPointer(F.ud, 2, d.FLOAT, r, 0, c);
  5916. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  5917. },
  5918. DZ: function(a) {
  5919. var c = [0, this.Bi, this.Ai, this.Bi, 0, 0, this.Ai, 0];
  5920. a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height, a.x + a.width, a.y + a.height];
  5921. F.Jc(F.Md | F.hn);
  5922. this.Ib.Nc();
  5923. this.Ib.ut();
  5924. F.qe(this);
  5925. var d = F.m;
  5926. d.vertexAttribPointer(F.qb, 2, d.FLOAT, r, 0, a);
  5927. d.vertexAttribPointer(F.ud, 2, d.FLOAT, r, 0, c);
  5928. d.drawArrays(d.TRIANGLE_STRIP, 0, 4)
  5929. },
  5930. zN: function(a) {
  5931. if (a == q) return F.log(F.i.wT), r;
  5932. var c = a.p0(),
  5933. d = a.A_(),
  5934. e = F.Fo.Ar;
  5935. if (c > e || d > e) return F.log(F.i.xT, c, d, e, e), r;
  5936. this.uc = p;
  5937. return this.gW(a, c, d)
  5938. },
  5939. Ed: function(a) {
  5940. a && (this.Vd = F.m.createTexture(), this.Eb = a)
  5941. },
  5942. C_: A("Eb"),
  5943. T0: A("uc"),
  5944. Wb: function() {
  5945. if (F.aw) {
  5946. if (!this.Eb) {
  5947. var a = F.V.Dd(this.url);
  5948. if (!a) return;
  5949. this.Ed(a)
  5950. }
  5951. this.Eb.width && this.Eb.height && (this.uc = p, a = F.m, F.qe(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.Eb), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D,
  5952. a.TEXTURE_MAG_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), this.shaderProgram = F.Jd.oc(F.tq), F.qe(q), a = this.Eb.height, this.gj = this.P.width = this.Eb.width, this.fj = this.P.height = a, this.hi = F.ea.Oi, this.Bi = this.Ai = 1, this.Rn = this.yv = r, this.Od())
  5953. }
  5954. },
  5955. pd: function() {
  5956. F.log(F.i.CT);
  5957. return q
  5958. },
  5959. A0: function() {
  5960. F.log(F.i.vT);
  5961. return r
  5962. },
  5963. D0: function() {
  5964. F.log(F.i.zT);
  5965. return r
  5966. },
  5967. E0: function() {
  5968. F.log(F.i.BT);
  5969. return r
  5970. },
  5971. I3: function(a) {
  5972. var c =
  5973. F.m;
  5974. F.assert(this.gj == F.Qj(this.gj) && this.fj == F.Qj(this.fj) || a.M4 == c.CLAMP_TO_EDGE && a.N4 == c.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  5975. F.qe(this);
  5976. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, a.Jfa);
  5977. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, a.Gfa);
  5978. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, a.M4);
  5979. c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, a.N4)
  5980. },
  5981. R2: function() {
  5982. var a = F.m;
  5983. F.qe(this);
  5984. this.Rn ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) :
  5985. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  5986. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  5987. },
  5988. LF: function() {
  5989. var a = F.m;
  5990. F.qe(this);
  5991. this.Rn ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  5992. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  5993. },
  5994. generateMipmap: function() {
  5995. F.assert(this.gj == F.Qj(this.gj) && this.fj == F.Qj(this.fj), "Mimpap texture only works in POT textures");
  5996. F.qe(this);
  5997. F.m.generateMipmap(F.m.TEXTURE_2D);
  5998. this.Rn = p
  5999. },
  6000. n4: function() {
  6001. return F.ea.kU[this.hi]
  6002. },
  6003. cZ: function(a) {
  6004. a = a || this.hi;
  6005. var c = F.ea.AI[a];
  6006. if (c != q) return c;
  6007. F.log(F.i.sT, a);
  6008. return -1
  6009. },
  6010. gW: function(a, c, d) {
  6011. var e = F.ea,
  6012. f = a.getData(),
  6013. g = q,
  6014. g = q,
  6015. h = a.ada(),
  6016. m = F.size(a.p0(), a.A_()),
  6017. n = e.pM,
  6018. s = a.qaa();
  6019. h || (8 <= s ? n = e.mq : (F.log(F.i.pT), n = e.lq));
  6020. var u = c * d;
  6021. if (n == e.lq)
  6022. if (h) {
  6023. f = new Uint16Array(c * d);
  6024. g = a.getData();
  6025. for (s = 0; s < u; ++s) f[s] = (g[s] >> 0 & 255) >> 3 << 11 | (g[s] >> 8 & 255) >> 2 << 5 | (g[s] >> 16 & 255) >> 3 << 0
  6026. } else {
  6027. f = new Uint16Array(c * d);
  6028. g = a.getData();
  6029. for (s = 0; s < u; ++s) f[s] = (g[s] & 255) >> 3 << 11 | (g[s] & 255) >> 2 << 5 | (g[s] & 255) >> 3 << 0
  6030. } else if (n == e.ju) {
  6031. f = new Uint16Array(c * d);
  6032. g = a.getData();
  6033. for (s = 0; s < u; ++s) f[s] = (g[s] >> 0 & 255) >> 4 << 12 | (g[s] >> 8 & 255) >> 4 << 8 | (g[s] >> 16 & 255) >> 4 << 4 | (g[s] >> 24 & 255) >> 4 << 0
  6034. } else if (n == e.iu) {
  6035. f = new Uint16Array(c * d);
  6036. g = a.getData();
  6037. for (s = 0; s < u; ++s) f[s] = (g[s] >> 0 & 255) >> 3 << 11 | (g[s] >> 8 & 255) >> 3 << 6 | (g[s] >> 16 & 255) >> 3 << 1 | (g[s] >> 24 & 255) >> 7 << 0
  6038. } else if (n == e.kq) {
  6039. f = new Uint8Array(c * d);
  6040. g = a.getData();
  6041. for (s = 0; s < u; ++s) f[s] = g >> 24 & 255
  6042. }
  6043. if (h && n == e.mq) {
  6044. g = a.getData();
  6045. f = new Uint8Array(3 * c * d);
  6046. for (s = 0; s < u; ++s) f[3 * s] = g >> 0 & 255, f[3 * s + 1] = g >> 8 & 255, f[3 * s + 2] = g >> 16 & 255
  6047. }
  6048. this.Ms(f, n, c, d, m);
  6049. a.getData();
  6050. this.yv = a.yda();
  6051. return p
  6052. },
  6053. Wd: function(a, c) {
  6054. this.hb || (this.hb = []);
  6055. this.hb.push({
  6056. yh: a,
  6057. Vf: c
  6058. })
  6059. },
  6060. w2: function(a) {
  6061. if (this.hb)
  6062. for (var c = this.hb, d = 0; d < c.length; d++) c[d].Vf == a && c.splice(d, 1)
  6063. },
  6064. Od: function() {
  6065. if (this.hb) {
  6066. for (var a = this.hb, c = 0, d = a.length; c < d; c++) {
  6067. var e = a[c];
  6068. e.yh.call(e.Vf, this)
  6069. }
  6070. a.length = 0
  6071. }
  6072. }
  6073. })
  6074. };
  6075. F.C.rA = function() {
  6076. var a = F.Vj.prototype;
  6077. a.Xl = function() {
  6078. var a = F.m;
  6079. this.tc[0] = a.createBuffer();
  6080. this.tc[1] = a.createBuffer();
  6081. this.Sl = a.createBuffer();
  6082. this.Kv()
  6083. };
  6084. a.Kv = function() {
  6085. var a = F.m;
  6086. a.bindBuffer(a.ARRAY_BUFFER, this.Sl);
  6087. a.bufferData(a.ARRAY_BUFFER, this.ad, a.DYNAMIC_DRAW);
  6088. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.tc[1]);
  6089. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  6090. };
  6091. a.yM = function(a) {
  6092. var d;
  6093. d = 0;
  6094. if (!(0 === a || !this.texture || !this.texture.uc)) {
  6095. var e = F.m;
  6096. F.qe(this.texture);
  6097. F.Jc(F.xl);
  6098. e.bindBuffer(e.ARRAY_BUFFER,
  6099. this.Sl);
  6100. this.dirty && e.bufferData(e.ARRAY_BUFFER, this.ad, e.DYNAMIC_DRAW);
  6101. e.vertexAttribPointer(F.qb, 3, e.FLOAT, r, 24, 0);
  6102. e.vertexAttribPointer(F.ye, 4, e.UNSIGNED_BYTE, p, 24, 12);
  6103. e.vertexAttribPointer(F.ud, 2, e.FLOAT, r, 24, 16);
  6104. this.dirty && (this.dirty = r);
  6105. e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.tc[1]);
  6106. F.GH ? e.drawElements(e.TRIANGLE_STRIP, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT) : e.drawElements(e.TRIANGLES, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT);
  6107. F.Wf++
  6108. }
  6109. }
  6110. };
  6111. F.C.sA = function() {
  6112. var a = F.Fa;
  6113. a.Wb = function(a) {
  6114. var d = this.Gc;
  6115. F.aw || (d = this.zr);
  6116. var e = d[a];
  6117. e || (e = d[a] = new F.ea, e.url = a);
  6118. e.Wb()
  6119. };
  6120. a.Hc = function(a, d, e) {
  6121. F.assert(a, F.i.rT);
  6122. var f = this.Gc;
  6123. F.aw || (f = this.zr);
  6124. var g = f[a] || f[F.V.zl[a]];
  6125. if (g) return d && d.call(e), g;
  6126. F.V.Dd(a) || (F.V.TI(a) ? F.V.load(a, function() {
  6127. d && d.call(e)
  6128. }) : F.V.Tf[a] = F.V.Ts(a, function(e, f) {
  6129. if (e) return d ? d(e) : e;
  6130. F.Fa.Wb(a);
  6131. d && d(q, f)
  6132. }));
  6133. g = f[a] = new F.ea;
  6134. g.url = a;
  6135. return g
  6136. };
  6137. delete a
  6138. };
  6139. F.C.xz = function() {
  6140. var a = F.ea;
  6141. a.K6 = function(a) {
  6142. F.eS = a
  6143. };
  6144. a.Oi = 2;
  6145. a.mq = 3;
  6146. a.lq = 4;
  6147. a.kq = 5;
  6148. a.kz = 6;
  6149. a.jz = 7;
  6150. a.ju = 8;
  6151. a.iu = 7;
  6152. a.gH = 9;
  6153. a.fH = 10;
  6154. a.WR = a.Oi;
  6155. var c = F.ea.kU = {};
  6156. c[a.Oi] = "RGBA8888";
  6157. c[a.mq] = "RGB888";
  6158. c[a.lq] = "RGB565";
  6159. c[a.kq] = "A8";
  6160. c[a.kz] = "I8";
  6161. c[a.jz] = "AI88";
  6162. c[a.ju] = "RGBA4444";
  6163. c[a.iu] = "RGB5A1";
  6164. c[a.gH] = "PVRTC4";
  6165. c[a.fH] = "PVRTC2";
  6166. c = F.ea.AI = {};
  6167. c[a.Oi] = 32;
  6168. c[a.mq] = 24;
  6169. c[a.lq] = 16;
  6170. c[a.kq] = 8;
  6171. c[a.kz] = 8;
  6172. c[a.jz] = 16;
  6173. c[a.ju] = 16;
  6174. c[a.iu] = 16;
  6175. c[a.gH] = 4;
  6176. c[a.fH] = 3;
  6177. c = F.ea.prototype;
  6178. F.j(c, "name", c.getName);
  6179. F.j(c, "pixelFormat", c.VM);
  6180. F.j(c, "pixelsWidth", c.XM);
  6181. F.j(c, "pixelsHeight", c.WM);
  6182. F.j(c, "width", c.ah);
  6183. F.j(c, "height", c.rk);
  6184. a.pM = a.WR
  6185. };
  6186. F.C.yz = function() {
  6187. var a = F.Vj.prototype;
  6188. F.j(a, "totalQuads", a.nN);
  6189. F.j(a, "capacity", a.LM);
  6190. F.j(a, "quads", a.YM, a.YO)
  6191. };
  6192. F.U4 = 51;
  6193. F.X4 = 19;
  6194. F.Z4 = 18;
  6195. F.W4 = 50;
  6196. F.T4 = 34;
  6197. F.R4 = 35;
  6198. F.S4 = 33;
  6199. F.V4 = 49;
  6200. F.Y4 = 17;
  6201. F.eS = r;
  6202. F.B === F.Ca ? F.ea = F.ma.extend({
  6203. P: q,
  6204. uc: r,
  6205. Eb: q,
  6206. hb: q,
  6207. url: q,
  6208. ctor: function() {
  6209. this.P = F.size(0, 0);
  6210. this.uc = r;
  6211. this.Eb = q
  6212. },
  6213. XM: function() {
  6214. return this.P.width
  6215. },
  6216. WM: function() {
  6217. return this.P.height
  6218. },
  6219. fc: function() {
  6220. var a = F.rb();
  6221. return F.size(this.P.width / a, this.P.height / a)
  6222. },
  6223. ah: function() {
  6224. return this.P.width / F.rb()
  6225. },
  6226. rk: function() {
  6227. return this.P.height / F.rb()
  6228. },
  6229. o_: A("P"),
  6230. Ed: function(a) {
  6231. a && (this.Eb = a)
  6232. },
  6233. C_: A("Eb"),
  6234. T0: A("uc"),
  6235. Wb: function() {
  6236. if (!this.uc) {
  6237. if (!this.Eb) {
  6238. var a = F.V.Dd(this.url);
  6239. if (!a) return;
  6240. this.Ed(a)
  6241. }
  6242. this.uc = p;
  6243. a =
  6244. this.Eb;
  6245. this.P.width = a.width;
  6246. this.P.height = a.height;
  6247. this.Od()
  6248. }
  6249. },
  6250. description: function() {
  6251. return "\x3ccc.Texture2D | width \x3d " + this.P.width + " height " + this.P.height + "\x3e"
  6252. },
  6253. Ms: E(r),
  6254. zN: E(r),
  6255. pd: E(r),
  6256. CF: t(),
  6257. getName: E(q),
  6258. M_: E(1),
  6259. m3: t(),
  6260. N_: E(1),
  6261. n3: t(),
  6262. VM: E(q),
  6263. HE: E(q),
  6264. YF: t(),
  6265. ti: E(r),
  6266. u0: E(r),
  6267. r2: t(),
  6268. b1: aa(),
  6269. AZ: t(),
  6270. DZ: t(),
  6271. A0: function() {
  6272. F.log(F.i.uT);
  6273. return r
  6274. },
  6275. D0: function() {
  6276. F.log(F.i.yT);
  6277. return r
  6278. },
  6279. E0: function() {
  6280. F.log(F.i.AT);
  6281. return r
  6282. },
  6283. I3: t(),
  6284. R2: t(),
  6285. LF: t(),
  6286. generateMipmap: t(),
  6287. n4: E(""),
  6288. cZ: E(-1),
  6289. Wd: function(a, c) {
  6290. this.hb ||
  6291. (this.hb = []);
  6292. this.hb.push({
  6293. yh: a,
  6294. Vf: c
  6295. })
  6296. },
  6297. w2: function(a) {
  6298. if (this.hb)
  6299. for (var c = this.hb, d = 0; d < c.length; d++) c[d].Vf == a && c.splice(d, 1)
  6300. },
  6301. Od: function() {
  6302. if (this.hb) {
  6303. for (var a = this.hb, c = 0, d = a.length; c < d; c++) {
  6304. var e = a[c];
  6305. e.yh.call(e.Vf, this)
  6306. }
  6307. a.length = 0
  6308. }
  6309. }
  6310. }) : (F.assert("function" === typeof F.C.qA, F.i.Qc, "TexturesWebGL.js"), F.C.qA(), delete F.C.qA);
  6311. F.assert("function" === typeof F.C.xz, F.i.Qc, "TexturesPropertyDefine.js");
  6312. F.C.xz();
  6313. delete F.C.xz;
  6314. F.Fa = {
  6315. Gc: {},
  6316. as: {},
  6317. qD: 0 | 1E3 * Math.random(),
  6318. zr: {},
  6319. nW: function() {
  6320. var a, c = this.zr,
  6321. d = this.Gc;
  6322. for (a in c) {
  6323. var e = c[a];
  6324. e.Wb();
  6325. d[a] = e
  6326. }
  6327. this.zr = {}
  6328. },
  6329. O8: function() {
  6330. F.log(F.i.r4)
  6331. },
  6332. L8: function() {
  6333. F.log(F.i.p4)
  6334. },
  6335. description: function() {
  6336. return "\x3cTextureCache | Number of textures \x3d " + this.Gc.length + "\x3e"
  6337. },
  6338. Nm: function(a) {
  6339. return this.Gc[a] || this.Gc[F.V.zl[a]]
  6340. },
  6341. E_: function(a) {
  6342. for (var c in this.Gc)
  6343. if (this.Gc[c] == a) return c;
  6344. return q
  6345. },
  6346. rV: function() {
  6347. this.qD++;
  6348. return "_textureKey_" + this.qD
  6349. },
  6350. bx: function(a) {
  6351. var c = this.E_(a);
  6352. c || (c = a instanceof HTMLImageElement ? a.src : this.rV());
  6353. this.as[c] || (this.as[c] = F.Mo(a));
  6354. return this.as[c]
  6355. },
  6356. N8: function() {
  6357. F.log(F.i.q4)
  6358. },
  6359. kha: function() {
  6360. var a = this.Gc,
  6361. c;
  6362. for (c in a) a[c] && a[c].CF();
  6363. this.Gc = {}
  6364. },
  6365. vha: function(a) {
  6366. if (a) {
  6367. var c = this.Gc,
  6368. d;
  6369. for (d in c) c[d] == a && (c[d].CF(), delete c[d])
  6370. }
  6371. },
  6372. wha: function(a) {
  6373. a != q && this.Gc[a] && delete this.Gc[a]
  6374. },
  6375. dZ: function(a, c) {
  6376. if (c instanceof F.ea) this.Gc[a] = c;
  6377. else {
  6378. var d = new F.ea;
  6379. d.Ed(c);
  6380. d.Wb();
  6381. this.Gc[a] = d
  6382. }
  6383. },
  6384. T8: function(a, c) {
  6385. F.assert(a, F.i.t4);
  6386. if (c && this.Gc[c]) return this.Gc[c];
  6387. var d = new F.ea;
  6388. d.zN(a);
  6389. c != q && d != q ? this.Gc[c] = d : F.log(F.i.s4);
  6390. return d
  6391. },
  6392. d$: function() {
  6393. var a = 0,
  6394. c = 0,
  6395. d = this.Gc,
  6396. e;
  6397. for (e in d) {
  6398. var f = d[e];
  6399. a++;
  6400. f.Eb instanceof HTMLImageElement ? F.log(F.i.u4, e, f.Eb.src, f.pixelsWidth, f.pixelsHeight) : F.log(F.i.tP, e, f.pixelsWidth, f.pixelsHeight);
  6401. c += 4 * f.pixelsWidth * f.pixelsHeight
  6402. }
  6403. d = this.as;
  6404. for (e in d) {
  6405. var f = d[e],
  6406. g;
  6407. for (g in f) {
  6408. var h = f[g];
  6409. a++;
  6410. F.log(F.i.tP, e, h.width, h.height);
  6411. c += 4 * h.width * h.height
  6412. }
  6413. }
  6414. F.log(F.i.v4, a, c / 1024, (c / 1048576).toFixed(2))
  6415. },
  6416. hk: function() {
  6417. this.Gc = {};
  6418. this.as = {};
  6419. this.qD = 0 | 1E3 * Math.random();
  6420. this.zr = {}
  6421. }
  6422. };
  6423. F.B === F.Ca ? (M = F.Fa, M.Wb = function(a) {
  6424. var c = this.Gc,
  6425. d = c[a];
  6426. d || (d = c[a] = new F.ea, d.url = a);
  6427. d.Wb()
  6428. }, M.Hc = function(a, c, d) {
  6429. F.assert(a, F.i.qT);
  6430. var e = this.Gc,
  6431. f = e[a] || e[F.V.zl[a]];
  6432. if (f) return c && c.call(d), f;
  6433. f = e[a] = new F.ea;
  6434. f.url = a;
  6435. F.V.Dd(a) ? f.Wb() : F.V.TI(a) ? F.V.load(a, function() {
  6436. c && c.call(d)
  6437. }) : F.V.Tf[a] = F.V.Ts(a, function(d, e) {
  6438. if (d) return c ? c(d) : d;
  6439. F.Fa.Wb(a);
  6440. c && c(q, e)
  6441. });
  6442. return f
  6443. }, M = q) : (F.assert("function" === typeof F.C.sA, F.i.Qc, "TexturesWebGL.js"), F.C.sA(), delete F.C.sA);
  6444. F.Vj = F.ma.extend({
  6445. dirty: r,
  6446. texture: q,
  6447. lb: q,
  6448. tc: q,
  6449. vd: 0,
  6450. Dc: q,
  6451. ad: q,
  6452. Sl: q,
  6453. Nf: q,
  6454. ctor: function(a, c) {
  6455. this.tc = [];
  6456. "string" == typeof a ? this.Uk(a, c) : a instanceof F.ea && this.sa(a, c)
  6457. },
  6458. nN: A("Na"),
  6459. LM: A("vd"),
  6460. Oa: A("texture"),
  6461. pb: y("texture"),
  6462. LO: y("dirty"),
  6463. cF: A("dirty"),
  6464. YM: A("Dc"),
  6465. YO: y("Dc"),
  6466. ZU: function(a, c) {
  6467. if (a)
  6468. for (var d = 0; d < a.length; d++) this.gw(a[d], c + d)
  6469. },
  6470. gw: function(a, c) {
  6471. var d = this.Dc;
  6472. d[c] ? (d[c].F = a.F, d[c].O = a.O, d[c].N = a.N, d[c].K = a.K) : d[c] = new F.Db(a.N, a.F, a.K, a.O, this.ad, c * F.Db.BYTES_PER_ELEMENT)
  6473. },
  6474. description: function() {
  6475. return "\x3ccc.TextureAtlas | totalQuads \x3d" +
  6476. this.Na + "\x3e"
  6477. },
  6478. oL: function() {
  6479. if (0 !== this.vd)
  6480. for (var a = this.lb, c = this.vd, d = 0; d < c; d++) F.GH ? (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 0, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 1, a[6 * d + 4] = 4 * d + 3, a[6 * d + 5] = 4 * d + 3) : (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 1, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 3, a[6 * d + 4] = 4 * d + 2, a[6 * d + 5] = 4 * d + 1)
  6481. },
  6482. Xl: function() {
  6483. var a = F.m;
  6484. this.tc[0] = a.createBuffer();
  6485. this.tc[1] = a.createBuffer();
  6486. this.Sl = a.createBuffer();
  6487. this.Kv()
  6488. },
  6489. Kv: function() {
  6490. var a = F.m;
  6491. a.bindBuffer(a.ARRAY_BUFFER, this.Sl);
  6492. a.bufferData(a.ARRAY_BUFFER, this.ad, a.DYNAMIC_DRAW);
  6493. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.tc[1]);
  6494. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  6495. },
  6496. Uk: function(a, c) {
  6497. var d = F.Fa.Hc(a);
  6498. if (d) return this.sa(d, c);
  6499. F.log(F.i.DT, a);
  6500. return r
  6501. },
  6502. sa: function(a, c) {
  6503. F.assert(a, F.i.ET);
  6504. this.vd = c |= 0;
  6505. this.Na = 0;
  6506. this.texture = a;
  6507. this.Dc = [];
  6508. this.lb = new Uint16Array(6 * c);
  6509. var d = F.Db.BYTES_PER_ELEMENT;
  6510. this.ad = new ArrayBuffer(d * c);
  6511. this.Nf = new Uint8Array(this.ad);
  6512. if ((!this.Dc || !this.lb) && 0 < c) return r;
  6513. for (var e = this.Dc, f = 0; f < c; f++) e[f] = new F.Db(q, q, q, q, this.ad, f * d);
  6514. this.oL();
  6515. this.Xl();
  6516. return this.dirty = p
  6517. },
  6518. xy: function(a, c) {
  6519. F.assert(a, F.i.OT);
  6520. F.assert(0 <= c && c < this.vd, F.i.PT);
  6521. this.Na = Math.max(c + 1, this.Na);
  6522. this.gw(a, c);
  6523. this.dirty = p
  6524. },
  6525. aF: function(a, c) {
  6526. F.assert(c < this.vd, F.i.HT);
  6527. this.Na++;
  6528. if (this.Na > this.vd) F.log(F.i.OH);
  6529. else {
  6530. var d = F.Db.BYTES_PER_ELEMENT,
  6531. e = c * d,
  6532. f = (this.Na - 1 - c) * d;
  6533. this.Dc[this.Na - 1] = new F.Db(q, q, q, q, this.ad, (this.Na - 1) * d);
  6534. this.Nf.set(this.Nf.subarray(e, e + f), e + d);
  6535. this.gw(a, c);
  6536. this.dirty = p
  6537. }
  6538. },
  6539. ida: function(a, c, d) {
  6540. d = d || a.length;
  6541. F.assert(c + d <= this.vd, F.i.IT);
  6542. var e = F.Db.BYTES_PER_ELEMENT;
  6543. this.Na += d;
  6544. if (this.Na > this.vd) F.log(F.i.OH);
  6545. else {
  6546. var f = c * e,
  6547. g = (this.Na - 1 - c - d) * e,
  6548. h = this.Na - 1 - d,
  6549. m;
  6550. for (m = 0; m < d; m++) this.Dc[h + m] = new F.Db(q, q, q, q, this.ad, (this.Na - 1) * e);
  6551. this.Nf.set(this.Nf.subarray(f, f + g), f + e * d);
  6552. for (m = 0; m < d; m++) this.gw(a[m], c + m);
  6553. this.dirty = p
  6554. }
  6555. },
  6556. hda: function(a, c) {
  6557. if (a !== c) {
  6558. F.assert(0 <= c || c < this.Na, F.i.FT);
  6559. F.assert(0 <= a || a < this.Na, F.i.GT);
  6560. var d = F.Db.BYTES_PER_ELEMENT,
  6561. e = this.Nf,
  6562. f = e.subarray(a * d, d),
  6563. g;
  6564. a > c ? (g = c * d, e.set(e.subarray(g, g + (a - c) * d), g + d), e.set(f, g)) : (g = (a + 1) * d, e.set(e.subarray(g, g +
  6565. (c - a) * d), g - d), e.set(f, c * d));
  6566. this.dirty = p
  6567. }
  6568. },
  6569. wO: function(a) {
  6570. F.assert(a < this.Na, F.i.MT);
  6571. var c = F.Db.BYTES_PER_ELEMENT;
  6572. this.Na--;
  6573. this.Dc.length = this.Na;
  6574. if (a !== this.Na) {
  6575. var d = (a + 1) * c;
  6576. this.Nf.set(this.Nf.subarray(d, d + (this.Na - a) * c), d - c)
  6577. }
  6578. this.dirty = p
  6579. },
  6580. y2: function(a, c) {
  6581. F.assert(a + c <= this.Na, F.i.NT);
  6582. this.Na -= c;
  6583. if (a !== this.Na) {
  6584. var d = F.Db.BYTES_PER_ELEMENT,
  6585. e = (a + c) * d;
  6586. this.Nf.set(this.Nf.subarray(e, e + (this.Na - a) * d), a * d)
  6587. }
  6588. this.dirty = p
  6589. },
  6590. uO: function() {
  6591. this.Na = this.Dc.length = 0
  6592. },
  6593. Dk: y("dirty"),
  6594. FF: function(a) {
  6595. if (a == this.vd) return p;
  6596. var c = F.Db.BYTES_PER_ELEMENT,
  6597. d = this.vd;
  6598. this.Na = Math.min(this.Na, a);
  6599. var e = this.vd = 0 | a,
  6600. f = this.Na;
  6601. if (this.Dc == q) {
  6602. this.Dc = [];
  6603. this.ad = new ArrayBuffer(c * e);
  6604. this.Nf = new Uint8Array(this.ad);
  6605. for (a = 0; a < e; a++) this.Dc = new F.Db(q, q, q, q, this.ad, a * c)
  6606. } else {
  6607. var g, h, m = this.Dc;
  6608. if (e > d) {
  6609. g = [];
  6610. h = new ArrayBuffer(c * e);
  6611. for (a = 0; a < f; a++) g[a] = new F.Db(m[a].N, m[a].F, m[a].K, m[a].O, h, a * c);
  6612. for (; a < e; a++) g[a] = new F.Db(q, q, q, q, h, a * c)
  6613. } else {
  6614. f = Math.max(f, e);
  6615. g = [];
  6616. h = new ArrayBuffer(c * e);
  6617. for (a = 0; a < f; a++) g[a] = new F.Db(m[a].N, m[a].F, m[a].K,
  6618. m[a].O, h, a * c)
  6619. }
  6620. this.Nf = new Uint8Array(h);
  6621. this.Dc = g;
  6622. this.ad = h
  6623. }
  6624. this.lb == q ? this.lb = new Uint16Array(6 * e) : e > d ? (c = new Uint16Array(6 * e), c.set(this.lb, 0), this.lb = c) : this.lb = this.lb.subarray(0, 6 * e);
  6625. this.oL();
  6626. this.Kv();
  6627. return this.dirty = p
  6628. },
  6629. tN: function(a) {
  6630. this.Na += a
  6631. },
  6632. $N: function(a, c, d) {
  6633. if (d === k) {
  6634. if (d = c, c = this.Na - a, F.assert(d + (this.Na - a) <= this.vd, F.i.JT), 0 === c) return
  6635. } else if (F.assert(d + c <= this.Na, F.i.KT), F.assert(a < this.Na, F.i.LT), a == d) return;
  6636. var e = F.Db.BYTES_PER_ELEMENT,
  6637. f = a * e,
  6638. g = c * e,
  6639. h = this.Nf,
  6640. m = h.subarray(f, f +
  6641. g),
  6642. n = d * e;
  6643. d < a ? (c = d * e, h.set(h.subarray(c, c + (a - d) * e), c + g)) : (c = (a + c) * e, h.set(h.subarray(c, c + (d - a) * e), f));
  6644. h.set(m, n);
  6645. this.dirty = p
  6646. },
  6647. EM: function(a, c) {
  6648. for (var d = c * F.Db.BYTES_PER_ELEMENT, e = new Uint8Array(this.ad, a * F.Db.BYTES_PER_ELEMENT, d), f = 0; f < d; f++) e[f] = 0
  6649. },
  6650. zM: function() {
  6651. this.yM(this.Na)
  6652. },
  6653. o8: function() {
  6654. var a = F.m;
  6655. this.tc && (this.tc[0] && a.deleteBuffer(this.tc[0]), this.tc[1] && a.deleteBuffer(this.tc[1]));
  6656. this.Sl && a.deleteBuffer(this.Sl)
  6657. }
  6658. });
  6659. M = F.Vj.prototype;
  6660. F.j(M, "totalQuads", M.nN);
  6661. F.j(M, "capacity", M.LM);
  6662. F.j(M, "quads", M.YM, M.YO);
  6663. F.Vj.create = function(a, c) {
  6664. return new F.Vj(a, c)
  6665. };
  6666. F.B === F.$ && (F.assert("function" === typeof F.C.rA, F.i.Qc, "TexturesWebGL.js"), F.C.rA(), delete F.C.rA);
  6667. F.assert("function" === typeof F.C.yz, F.i.Qc, "TexturesPropertyDefine.js");
  6668. F.C.yz();
  6669. delete F.C.yz;
  6670. F.tl = F.t.extend({
  6671. tb: "Scene",
  6672. ctor: function() {
  6673. F.t.prototype.ctor.call(this);
  6674. this.$i = p;
  6675. this.Fi(0.5, 0.5);
  6676. this.Zd(F.I.T)
  6677. }
  6678. });
  6679. F.tl.create = function() {
  6680. return new F.tl
  6681. };
  6682. F.cz = F.tl.extend({
  6683. uk: q,
  6684. rK: 0,
  6685. RA: 0,
  6686. xb: q,
  6687. tb: "LoaderScene",
  6688. M: function() {
  6689. var a = this,
  6690. c = 200,
  6691. d = a.DU = F.Ac.create(F.color(32, 32, 32, 255));
  6692. d.G(F.Qm.TD);
  6693. a.Q(d, 0);
  6694. var e = 24,
  6695. f = -c / 2 + 100;
  6696. F.MB && (F.V.Ts(F.MB, {
  6697. bF: r
  6698. }, function(d, e) {
  6699. c = e.height;
  6700. a.hW(e, F.Qm.Kw)
  6701. }), e = 14, f = -c / 2 - 10);
  6702. e = a.xb = F.Z.create("\u6b63\u5728\u52aa\u529b\u52a0\u8f7d... 0%", "Arial", e);
  6703. e.G(F.Dj(F.Qm.Kw, F.d(0, f)));
  6704. e.Wa(F.color(180, 180, 180));
  6705. d.Q(this.xb, 10);
  6706. d = F.Z.create("@wayne5ning", "Arial", 30);
  6707. d.G(F.d(this.fc().width / 2, 50));
  6708. d.Wa(F.color(128, 128, 128, 150));
  6709. this.Q(d);
  6710. return p
  6711. },
  6712. hW: function(a, c) {
  6713. var d = this.B8 = new F.ea;
  6714. d.Ed(a);
  6715. d.Wb();
  6716. d = this.e8 = F.aa.create(d);
  6717. d.rp(F.rb());
  6718. d.x = c.x;
  6719. d.y = c.y;
  6720. this.DU.Q(d, 10)
  6721. },
  6722. da: function() {
  6723. F.t.prototype.da.call(this);
  6724. this.nt(this.vL, 0.3)
  6725. },
  6726. Ab: function() {
  6727. F.t.prototype.Ab.call(this);
  6728. this.xb.Mc("\u6b63\u5728\u52aa\u529b\u52a0\u8f7d... 0%")
  6729. },
  6730. G0: function(a, c) {
  6731. "string" == typeof a && (a = [a]);
  6732. this.F2 = a || [];
  6733. this.Xd = c
  6734. },
  6735. vL: function() {
  6736. var a = this;
  6737. a.vy(a.vL);
  6738. var c = a.F2;
  6739. a.rK = c.length;
  6740. a.RA = 0;
  6741. F.V.load(c, function(c, e) {
  6742. a.RA = e
  6743. }, function() {
  6744. a.Xd && a.Xd()
  6745. });
  6746. a.nt(a.JL)
  6747. },
  6748. JL: function() {
  6749. var a = this.RA,
  6750. c = this.rK,
  6751. d;
  6752. d = Math.min(100 * (a / c) | 0, 100);
  6753. this.xb.Mc("\u6b63\u5728\u52aa\u529b\u52a0\u8f7d... " + d + "%");
  6754. a >= c && this.vy(this.JL)
  6755. }
  6756. });
  6757. F.cz.AF = function(a, c) {
  6758. var d = F;
  6759. d.Us || (d.Us = new F.cz, d.Us.M());
  6760. d.Us.G0(a, c);
  6761. F.I.IF(d.Us);
  6762. return d.Us
  6763. };
  6764. F.C.az = function() {
  6765. var a = F.ve.prototype;
  6766. a.XL = t();
  6767. a.AP = t();
  6768. a.S = F.t.prototype.S
  6769. };
  6770. F.C.nA = function() {
  6771. var a = F.Ac.prototype;
  6772. a.jw = q;
  6773. a.dD = q;
  6774. a.GD = q;
  6775. a.PA = q;
  6776. a.fD = q;
  6777. a.eD = q;
  6778. a.ctor = function(a, d, e) {
  6779. this.fD = new ArrayBuffer(32);
  6780. this.eD = new ArrayBuffer(16);
  6781. var f = this.fD,
  6782. g = this.eD,
  6783. h = F.Cc.BYTES_PER_ELEMENT,
  6784. m = W.BYTES_PER_ELEMENT;
  6785. this.jw = [new F.Cc(0, 0, f, 0), new F.Cc(0, 0, f, h), new F.Cc(0, 0, f, 2 * h), new F.Cc(0, 0, f, 3 * h)];
  6786. this.dD = [F.color(0, 0, 0, 255, g, 0), F.color(0, 0, 0, 255, g, m), F.color(0, 0, 0, 255, g, 2 * m), F.color(0, 0, 0, 255, g, 3 * m)];
  6787. this.GD = F.m.createBuffer();
  6788. this.PA = F.m.createBuffer();
  6789. F.vf.prototype.ctor.call(this);
  6790. this.q = new F.Nj(F.hc, F.gc);
  6791. F.Ac.prototype.M.call(this, a, d, e)
  6792. };
  6793. a.Zd = function(a, d) {
  6794. var e = this.jw;
  6795. d === k ? (e[1].x = a.width, e[2].y = a.height, e[3].x = a.width, e[3].y = a.height) : (e[1].x = a, e[2].y = d, e[3].x = a, e[3].y = d);
  6796. this.FA();
  6797. F.ve.prototype.Zd.call(this, a, d)
  6798. };
  6799. a.lj = function(a) {
  6800. var d = this.jw;
  6801. d[1].x = a;
  6802. d[3].x = a;
  6803. this.FA();
  6804. F.ve.prototype.lj.call(this, a)
  6805. };
  6806. a.kj = function(a) {
  6807. var d = this.jw;
  6808. d[2].y = a;
  6809. d[3].y = a;
  6810. this.FA();
  6811. F.ve.prototype.kj.call(this, a)
  6812. };
  6813. a.ec = function() {
  6814. for (var a = this.Da, d = this.Ba, e = this.dD, f = 0; 4 > f; f++) e[f].r =
  6815. a.r, e[f].g = a.g, e[f].b = a.b, e[f].a = d;
  6816. this.OI()
  6817. };
  6818. a.Y = function(a) {
  6819. a = a || F.m;
  6820. F.Ws(this);
  6821. F.Jc(F.Md | F.Cu);
  6822. a.bindBuffer(a.ARRAY_BUFFER, this.GD);
  6823. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0);
  6824. a.bindBuffer(a.ARRAY_BUFFER, this.PA);
  6825. a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, 0, 0);
  6826. F.Eh(this.q.src, this.q.U);
  6827. a.drawArrays(a.TRIANGLE_STRIP, 0, 4)
  6828. };
  6829. a.FA = function() {
  6830. var a = F.m;
  6831. a.bindBuffer(a.ARRAY_BUFFER, this.GD);
  6832. a.bufferData(a.ARRAY_BUFFER, this.fD, a.STATIC_DRAW)
  6833. };
  6834. a.OI = function() {
  6835. var a = F.m;
  6836. a.bindBuffer(a.ARRAY_BUFFER, this.PA);
  6837. a.bufferData(a.ARRAY_BUFFER, this.eD, a.STATIC_DRAW)
  6838. }
  6839. };
  6840. F.C.oA = function() {
  6841. var a = F.ol.prototype;
  6842. a.Y = F.Ac.prototype.Y;
  6843. a.ec = function() {
  6844. var a = this.ek,
  6845. d = F.Yk(a);
  6846. if (0 !== d) {
  6847. var e = Math.sqrt(2),
  6848. a = F.d(a.x / d, a.y / d);
  6849. this.Yu && (a = F.Ci(a, 1 / (Math.abs(a.x) + Math.abs(a.y)) * e));
  6850. var f = this.Ba / 255,
  6851. d = this.Da,
  6852. g = this.De,
  6853. d = {
  6854. r: d.r,
  6855. g: d.g,
  6856. b: d.b,
  6857. a: this.mo * f
  6858. },
  6859. f = {
  6860. r: g.r,
  6861. g: g.g,
  6862. b: g.b,
  6863. a: this.En * f
  6864. },
  6865. h = this.dD,
  6866. g = h[0],
  6867. m = h[1],
  6868. n = h[2],
  6869. h = h[3];
  6870. g.r = f.r + (d.r - f.r) * ((e + a.x + a.y) / (2 * e));
  6871. g.g = f.g + (d.g - f.g) * ((e + a.x + a.y) / (2 * e));
  6872. g.b = f.b + (d.b - f.b) * ((e + a.x + a.y) / (2 * e));
  6873. g.a = f.a + (d.a - f.a) * ((e + a.x + a.y) / (2 * e));
  6874. m.r =
  6875. f.r + (d.r - f.r) * ((e - a.x + a.y) / (2 * e));
  6876. m.g = f.g + (d.g - f.g) * ((e - a.x + a.y) / (2 * e));
  6877. m.b = f.b + (d.b - f.b) * ((e - a.x + a.y) / (2 * e));
  6878. m.a = f.a + (d.a - f.a) * ((e - a.x + a.y) / (2 * e));
  6879. n.r = f.r + (d.r - f.r) * ((e + a.x - a.y) / (2 * e));
  6880. n.g = f.g + (d.g - f.g) * ((e + a.x - a.y) / (2 * e));
  6881. n.b = f.b + (d.b - f.b) * ((e + a.x - a.y) / (2 * e));
  6882. n.a = f.a + (d.a - f.a) * ((e + a.x - a.y) / (2 * e));
  6883. h.r = f.r + (d.r - f.r) * ((e - a.x - a.y) / (2 * e));
  6884. h.g = f.g + (d.g - f.g) * ((e - a.x - a.y) / (2 * e));
  6885. h.b = f.b + (d.b - f.b) * ((e - a.x - a.y) / (2 * e));
  6886. h.a = f.a + (d.a - f.a) * ((e - a.x - a.y) / (2 * e));
  6887. this.OI()
  6888. }
  6889. }
  6890. };
  6891. F.C.vz = function() {
  6892. var a = F.vf.prototype;
  6893. F.j(a, "opacityModifyRGB", a.re, a.Hd);
  6894. F.j(a, "opacity", a.Qe, a.va);
  6895. F.j(a, "cascadeOpacity", a.Os, a.pp);
  6896. F.j(a, "color", a.Pe, a.Wa);
  6897. F.j(a, "cascadeColor", a.Ns, a.op)
  6898. };
  6899. F.C.tz = function() {
  6900. var a = F.Ac.prototype;
  6901. F.j(a, "width", a.ah, a.lj);
  6902. F.j(a, "height", a.rk, a.kj)
  6903. };
  6904. F.C.uz = function() {
  6905. var a = F.ol.prototype;
  6906. F.j(a, "startColor", a.ax, a.Xe);
  6907. F.j(a, "endColor", a.Ww, a.Ve);
  6908. F.j(a, "startOpacity", a.g0, a.F3);
  6909. F.j(a, "endOpacity", a.t_, a.d3);
  6910. F.j(a, "vector", a.m0, a.O3)
  6911. };
  6912. F.ve = F.t.extend({
  6913. Hl: r,
  6914. Ru: q,
  6915. tb: "Layer",
  6916. ctor: function() {
  6917. var a = F.t.prototype;
  6918. a.ctor.call(this);
  6919. this.$i = p;
  6920. a.Fi.call(this, 0.5, 0.5);
  6921. a.Zd.call(this, F.Gt)
  6922. },
  6923. XL: q,
  6924. AP: q,
  6925. nda: A("Hl"),
  6926. S: q
  6927. });
  6928. F.ve.create = function() {
  6929. return new F.ve
  6930. };
  6931. if (F.B === F.Ca) {
  6932. var ea = F.ve.prototype;
  6933. ea.XL = function() {
  6934. if (!this.Hl) {
  6935. this.Hl = this.sg = p;
  6936. this.Si = this;
  6937. for (var a = this.u, c = 0, d = a.length; c < d; c++) a[c].KC(this);
  6938. this.Ru || (this.Ru = new F.ZP)
  6939. }
  6940. };
  6941. ea.AP = function() {
  6942. if (this.Hl) {
  6943. this.Hl = r;
  6944. this.sg = p;
  6945. this.Si = q;
  6946. for (var a = this.u, c = 0, d = a.length; c < d; c++) a[c].KC(q)
  6947. }
  6948. };
  6949. ea.S = function(a) {
  6950. if (this.Hl) {
  6951. a = a || F.m;
  6952. var c, d = this.u,
  6953. e = d.length;
  6954. if (this.yc && 0 !== e) {
  6955. var f = this.Ru;
  6956. a.save();
  6957. this.transform(a);
  6958. if (this.sg) {
  6959. c = this.nB();
  6960. c.width |= 0;
  6961. c.height |= 0;
  6962. var g = f.Ae;
  6963. f.zO(c.width, c.height);
  6964. g.translate(0 -
  6965. c.x, c.height + c.y);
  6966. var h = f.eb;
  6967. f.G(h.x + c.x, h.y + c.y);
  6968. this.Wc();
  6969. for (c = 0; c < e; c++) d[c].S(g);
  6970. this.sg = r
  6971. }
  6972. f.S(a);
  6973. this.arrivalOrder = 0;
  6974. a.restore()
  6975. }
  6976. } else F.t.prototype.S.call(this, a)
  6977. };
  6978. ea.nB = function() {
  6979. var a = q;
  6980. if (!this.u || 0 === this.u.length) return F.rect(0, 0, 10, 10);
  6981. for (var c = this.u, d = 0; d < c.length; d++) {
  6982. var e = c[d];
  6983. e && e.yc && (a ? (e = e.nr()) && (a = F.Xx(a, e)) : a = e.nr())
  6984. }
  6985. return a
  6986. };
  6987. ea = q
  6988. } else F.assert("function" === typeof F.C.az, F.i.Qc, "CCLayerWebGL.js"), F.C.az(), delete F.C.az;
  6989. F.vf = F.ve.extend({
  6990. wb: p,
  6991. Ba: 255,
  6992. Td: 255,
  6993. Da: q,
  6994. bc: q,
  6995. ce: r,
  6996. wd: r,
  6997. tb: "LayerRGBA",
  6998. ctor: function() {
  6999. F.ve.prototype.ctor.call(this);
  7000. this.Da = F.color(255, 255, 255, 255);
  7001. this.bc = F.color(255, 255, 255, 255)
  7002. },
  7003. M: function() {
  7004. var a = F.ve.prototype;
  7005. this.$i = p;
  7006. a.Fi.call(this, 0.5, 0.5);
  7007. a.Zd.call(this, F.Gt);
  7008. this.cascadeColor = this.cascadeOpacity = r;
  7009. return p
  7010. },
  7011. Qe: A("Td"),
  7012. NM: A("Ba"),
  7013. va: function(a) {
  7014. this.Ba = this.Td = a;
  7015. var c = 255,
  7016. d = this.Tb;
  7017. d && (d.wb && d.cascadeOpacity) && (c = d.Ba);
  7018. this.Mb(c);
  7019. this.Da.a = this.bc.a = a
  7020. },
  7021. Mb: function(a) {
  7022. this.Ba = 0 | this.Td *
  7023. a / 255;
  7024. if (this.ce) {
  7025. a = this.u;
  7026. for (var c, d = 0; d < a.length; d++)(c = a[d]) && c.wb && c.Mb(this.Ba)
  7027. }
  7028. },
  7029. Os: A("ce"),
  7030. pp: function(a) {
  7031. this.ce !== a && ((this.ce = a) ? this.gr() : this.XA())
  7032. },
  7033. gr: function() {
  7034. var a = 255,
  7035. c = this.Tb;
  7036. c && (c.wb && c.cascadeOpacity) && (a = c.Ba);
  7037. this.Mb(a)
  7038. },
  7039. XA: function() {
  7040. this.Ba = this.Td;
  7041. for (var a = this.u, c, d = 0; d < a.length; d++)(c = a[d]) && c.wb && c.Mb(255)
  7042. },
  7043. Pe: function() {
  7044. var a = this.bc;
  7045. return F.color(a.r, a.g, a.b, a.a)
  7046. },
  7047. xm: function() {
  7048. var a = this.Da;
  7049. return F.color(a.r, a.g, a.b)
  7050. },
  7051. Wa: function(a) {
  7052. var c = this.Da,
  7053. d = this.bc;
  7054. c.r =
  7055. d.r = a.r;
  7056. c.g = d.g = a.g;
  7057. c.b = d.b = a.b;
  7058. c = (c = this.Tb) && c.wb && c.cascadeColor ? c.xm() : F.color.WHITE;
  7059. this.Ob(c);
  7060. a.a !== k && !a.os && this.va(a.a)
  7061. },
  7062. Ob: function(a) {
  7063. var c = this.Da,
  7064. d = this.bc;
  7065. c.r = 0 | d.r * a.r / 255;
  7066. c.g = 0 | d.g * a.g / 255;
  7067. c.b = 0 | d.b * a.b / 255;
  7068. if (this.wd) {
  7069. a = this.u;
  7070. for (var e = 0; e < a.length; e++)(d = a[e]) && d.wb && d.Ob(c)
  7071. }
  7072. },
  7073. Ns: A("wd"),
  7074. op: function(a) {
  7075. this.wd !== a && ((this.wd = a) ? this.fr() : this.WA())
  7076. },
  7077. fr: function() {
  7078. var a;
  7079. a = (a = this.Tb) && a.wb && a.cascadeColor ? a.xm() : F.color.WHITE;
  7080. this.Ob(a)
  7081. },
  7082. WA: function() {
  7083. var a = this.Da,
  7084. c = this.bc;
  7085. a.r =
  7086. c.r;
  7087. a.g = c.g;
  7088. a.b = c.b;
  7089. var a = this.u,
  7090. c = F.color.WHITE,
  7091. d, e;
  7092. for (e = 0; e < a.length; e++)(d = a[e]) && d.wb && d.Ob(c)
  7093. },
  7094. Q: function(a, c, d) {
  7095. F.t.prototype.Q.call(this, a, c, d);
  7096. this.wd && this.fr();
  7097. this.ce && this.gr()
  7098. },
  7099. Hd: t(),
  7100. re: E(r)
  7101. });
  7102. F.assert("function" === typeof F.C.vz, F.i.Qc, "CCLayerPropertyDefine.js");
  7103. F.C.vz();
  7104. delete F.C.vz;
  7105. F.Ac = F.vf.extend({
  7106. q: q,
  7107. tb: "LayerColor",
  7108. Ah: A("q"),
  7109. w9: function(a, c) {
  7110. this.width = a;
  7111. this.height = c
  7112. },
  7113. v9: y("width"),
  7114. u9: y("height"),
  7115. Hd: t(),
  7116. re: E(r),
  7117. Wa: function(a) {
  7118. F.vf.prototype.Wa.call(this, a);
  7119. this.ec()
  7120. },
  7121. va: function(a) {
  7122. F.vf.prototype.va.call(this, a);
  7123. this.ec()
  7124. },
  7125. Xn: r,
  7126. ctor: q,
  7127. M: function(a, c, d) {
  7128. F.B !== F.Ca && (this.shaderProgram = F.Jd.oc(F.qu));
  7129. var e = F.I.T;
  7130. a = a || F.color(0, 0, 0, 255);
  7131. c = c === k ? e.width : c;
  7132. d = d === k ? e.height : d;
  7133. e = this.Da;
  7134. e.r = a.r;
  7135. e.g = a.g;
  7136. e.b = a.b;
  7137. e = this.bc;
  7138. e.r = a.r;
  7139. e.g = a.g;
  7140. e.b = a.b;
  7141. this.Td = this.Ba = a.a;
  7142. a = F.Ac.prototype;
  7143. a.Zd.call(this, c, d);
  7144. a.ec.call(this);
  7145. return p
  7146. },
  7147. Ue: function(a, c) {
  7148. this.q = c === k ? a : {
  7149. src: a,
  7150. U: c
  7151. };
  7152. F.B === F.Ca && (this.Xn = this.q && 1 == this.q.src && 771 == this.q.U)
  7153. },
  7154. lj: q,
  7155. kj: q,
  7156. ec: q,
  7157. Ob: function(a) {
  7158. F.vf.prototype.Ob.call(this, a);
  7159. this.ec()
  7160. },
  7161. Mb: function(a) {
  7162. F.vf.prototype.Mb.call(this, a);
  7163. this.ec()
  7164. },
  7165. Y: q
  7166. });
  7167. F.Ac.create = function(a, c, d) {
  7168. return new F.Ac(a, c, d)
  7169. };
  7170. F.B === F.Ca ? (M = F.Ac.prototype, M.ctor = function(a, c, d) {
  7171. F.vf.prototype.ctor.call(this);
  7172. this.q = new F.Nj(F.hc, F.gc);
  7173. F.Ac.prototype.M.call(this, a, c, d)
  7174. }, M.lj = F.vf.prototype.lj, M.kj = F.vf.prototype.kj, M.ec = t(), M.Y = function(a) {
  7175. a = a || F.m;
  7176. var c = F.view,
  7177. d = this.Da;
  7178. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + this.Ba / 255 + ")";
  7179. a.fillRect(0, 0, this.width * c.qa, -this.height * c.Ra);
  7180. F.Wf++
  7181. }, M.S = function(a) {
  7182. if (this.Hl) {
  7183. a = a || F.m;
  7184. var c, d = this.u,
  7185. e = d.length;
  7186. if (this.yc) {
  7187. var f = this.Ru;
  7188. a.save();
  7189. this.transform(a);
  7190. if (this.sg) {
  7191. c =
  7192. this.nB();
  7193. c.width |= 0;
  7194. c.height |= 0;
  7195. var g = f.Ae;
  7196. f.zO(c.width, c.height);
  7197. var h = f.eb,
  7198. m = this.za;
  7199. if (this.$i) g.translate(0 - c.x + m.x, c.height + c.y - m.y), f.G(h.x + c.x - m.x, h.y + c.y - m.y);
  7200. else {
  7201. var n = this.eb,
  7202. s = m.x - n.x,
  7203. m = m.y - n.y;
  7204. g.translate(0 - c.x + s, c.height + c.y - m);
  7205. f.G(h.x + c.x - s, h.y + c.y - m)
  7206. } if (0 < e) {
  7207. this.Wc();
  7208. for (c = 0; c < e; c++)
  7209. if (h = d[c], 0 > h.yb) h.S(g);
  7210. else break;
  7211. for (this.Y(g); c < e; c++) d[c].S(g)
  7212. } else this.Y(g);
  7213. this.sg = r
  7214. }
  7215. f.S(a);
  7216. this.arrivalOrder = 0;
  7217. a.restore()
  7218. }
  7219. } else F.t.prototype.S.call(this, a)
  7220. }, M.nB = function() {
  7221. var a = F.rect(0, 0,
  7222. this.P.width, this.P.height),
  7223. c = this.dp(),
  7224. a = F.Az(a, this.dp());
  7225. if (!this.u || 0 === this.u.length) return a;
  7226. for (var d = this.u, e = 0; e < d.length; e++) {
  7227. var f = d[e];
  7228. f && f.yc && (f = f.nr(c), a = F.Xx(a, f))
  7229. }
  7230. return a
  7231. }, M = q) : (F.assert("function" === typeof F.C.nA, F.i.Qc, "CCLayerWebGL.js"), F.C.nA(), delete F.C.nA);
  7232. F.assert("function" === typeof F.C.tz, F.i.Qc, "CCLayerPropertyDefine.js");
  7233. F.C.tz();
  7234. delete F.C.tz;
  7235. F.ol = F.Ac.extend({
  7236. sh: q,
  7237. De: q,
  7238. mo: 255,
  7239. En: 255,
  7240. ek: q,
  7241. Yu: r,
  7242. Qn: q,
  7243. Pn: q,
  7244. tb: "LayerGradient",
  7245. ctor: function(a, c, d) {
  7246. F.Ac.prototype.ctor.call(this);
  7247. this.sh = F.color(0, 0, 0, 255);
  7248. this.De = F.color(0, 0, 0, 255);
  7249. this.ek = F.d(0, -1);
  7250. this.En = this.mo = 255;
  7251. this.Qn = F.d(0, 0);
  7252. this.Pn = F.d(0, 0);
  7253. F.ol.prototype.M.call(this, a, c, d)
  7254. },
  7255. M: function(a, c, d) {
  7256. a = a || F.color(0, 0, 0, 255);
  7257. c = c || F.color(0, 0, 0, 255);
  7258. d = d || F.d(0, -1);
  7259. var e = this.sh,
  7260. f = this.De;
  7261. e.r = a.r;
  7262. e.g = a.g;
  7263. e.b = a.b;
  7264. this.mo = a.a;
  7265. f.r = c.r;
  7266. f.g = c.g;
  7267. f.b = c.b;
  7268. this.En = c.a;
  7269. this.ek = d;
  7270. this.Yu = p;
  7271. this.Qn = F.d(0,
  7272. 0);
  7273. this.Pn = F.d(0, 0);
  7274. F.Ac.prototype.M.call(this, F.color(a.r, a.g, a.b, 255));
  7275. F.ol.prototype.ec.call(this);
  7276. return p
  7277. },
  7278. Zd: function(a, c) {
  7279. F.Ac.prototype.Zd.call(this, a, c);
  7280. this.ec()
  7281. },
  7282. lj: function(a) {
  7283. F.Ac.prototype.lj.call(this, a);
  7284. this.ec()
  7285. },
  7286. kj: function(a) {
  7287. F.Ac.prototype.kj.call(this, a);
  7288. this.ec()
  7289. },
  7290. ax: A("bc"),
  7291. Xe: y("color"),
  7292. Ve: function(a) {
  7293. this.De = a;
  7294. this.ec()
  7295. },
  7296. Ww: A("De"),
  7297. F3: function(a) {
  7298. this.mo = a;
  7299. this.ec()
  7300. },
  7301. g0: A("mo"),
  7302. d3: function(a) {
  7303. this.En = a;
  7304. this.ec()
  7305. },
  7306. t_: A("En"),
  7307. O3: function(a) {
  7308. this.ek.x = a.x;
  7309. this.ek.y = a.y;
  7310. this.ec()
  7311. },
  7312. m0: function() {
  7313. return F.d(this.ek.x, this.ek.y)
  7314. },
  7315. pda: A("Yu"),
  7316. aia: function(a) {
  7317. this.Yu = a;
  7318. this.ec()
  7319. },
  7320. P7: q,
  7321. ec: q
  7322. });
  7323. F.ol.create = function(a, c, d) {
  7324. return new F.ol(a, c, d)
  7325. };
  7326. F.B === F.Ca ? (M = F.ol.prototype, M.Y = function(a) {
  7327. a = a || F.m;
  7328. this.Xn && (a.globalCompositeOperation = "lighter");
  7329. a.save();
  7330. var c = F.view,
  7331. d = this.Ba / 255,
  7332. e = this.width * c.qa,
  7333. c = this.height * c.Ra,
  7334. f = a.createLinearGradient(this.Qn.x, this.Qn.y, this.Pn.x, this.Pn.y),
  7335. g = this.Da,
  7336. h = this.De;
  7337. f.addColorStop(0, "rgba(" + Math.round(g.r) + "," + Math.round(g.g) + "," + Math.round(g.b) + "," + (d * (this.mo / 255)).toFixed(4) + ")");
  7338. f.addColorStop(1, "rgba(" + Math.round(h.r) + "," + Math.round(h.g) + "," + Math.round(h.b) + "," + (d * (this.En / 255)).toFixed(4) + ")");
  7339. a.fillStyle =
  7340. f;
  7341. a.fillRect(0, 0, e, -c);
  7342. 0 != this.q8 && a.rotate(this.r8);
  7343. a.restore()
  7344. }, M.ec = function() {
  7345. var a = this.ek,
  7346. c = 0.5 * this.width,
  7347. d = 0.5 * this.height;
  7348. this.Qn.x = c * -a.x + c;
  7349. this.Qn.y = d * a.y - d;
  7350. this.Pn.x = c * a.x + c;
  7351. this.Pn.y = d * -a.y - d
  7352. }, M = q) : (F.assert("function" === typeof F.C.oA, F.i.Qc, "CCLayerWebGL.js"), F.C.oA(), delete F.C.oA);
  7353. F.assert("function" === typeof F.C.uz, F.i.Qc, "CCLayerPropertyDefine.js");
  7354. F.C.uz();
  7355. delete F.C.uz;
  7356. F.bz = F.ve.extend({
  7357. Fl: 0,
  7358. he: q,
  7359. tb: "LayerMultiplex",
  7360. ctor: function(a) {
  7361. F.ve.prototype.ctor.call(this);
  7362. a && F.bz.prototype.C0.call(this, a)
  7363. },
  7364. C0: function(a) {
  7365. 0 < a.length && a[a.length - 1] == q && F.log(F.i.pR);
  7366. this.he = a;
  7367. this.Fl = 0;
  7368. this.Q(this.he[this.Fl]);
  7369. return p
  7370. },
  7371. jka: function(a) {
  7372. a >= this.he.length ? F.log(F.i.qR) : (this.removeChild(this.he[this.Fl], p), this.Fl = a, this.Q(this.he[a]))
  7373. },
  7374. kka: function(a) {
  7375. a >= this.he.length ? F.log(F.i.rR) : (this.removeChild(this.he[this.Fl], p), this.he[this.Fl] = q, this.Fl = a, this.Q(this.he[a]))
  7376. },
  7377. M8: function(a) {
  7378. a ?
  7379. this.he.push(a) : F.log(F.i.oR)
  7380. }
  7381. });
  7382. F.bz.create = function() {
  7383. return new F.bz(arguments)
  7384. };
  7385. F.C.pA = function() {
  7386. var a = F.aa.prototype;
  7387. a.cD = function(a) {
  7388. this.Ka(p);
  7389. this.vb(a.Dh(), a.ke, a.jf);
  7390. this.Od()
  7391. };
  7392. a.Hd = function(a) {
  7393. this.Qa !== a && (this.Qa = a, this.Et())
  7394. };
  7395. a.Mb = function(a) {
  7396. F.ja.prototype.Mb.call(this, a);
  7397. this.Et()
  7398. };
  7399. a.ctor = function(a, d, e) {
  7400. F.ja.prototype.ctor.call(this);
  7401. this.Fk = r;
  7402. this.Fb = F.d(0, 0);
  7403. this.uh = F.d(0, 0);
  7404. this.q = {
  7405. src: F.hc,
  7406. U: F.gc
  7407. };
  7408. this.ia = F.rect(0, 0, 0, 0);
  7409. this.Ub = new F.Db;
  7410. this.Yv = F.m.createBuffer();
  7411. this.oa = this.Fe = p;
  7412. this.tL(a, d, e)
  7413. };
  7414. a.Ue = function(a, d) {
  7415. var e = this.q;
  7416. d === k ? (e.src = a.src, e.U = a.U) :
  7417. (e.src = a, e.U = d)
  7418. };
  7419. a.M = function() {
  7420. if (0 < arguments.length) return this.Uk(arguments[0], arguments[1]);
  7421. F.ja.prototype.M.call(this);
  7422. this.dirty = this.kh = r;
  7423. this.Qa = p;
  7424. this.q.src = F.hc;
  7425. this.q.U = F.gc;
  7426. this.texture = q;
  7427. this.oa = p;
  7428. this.Qb = this.Rb = r;
  7429. this.anchorY = this.anchorX = 0.5;
  7430. this.Fb.x = 0;
  7431. this.Fb.y = 0;
  7432. this.ai = r;
  7433. var a = {
  7434. r: 255,
  7435. g: 255,
  7436. b: 255,
  7437. a: 255
  7438. };
  7439. this.Ub.F.v = a;
  7440. this.Ub.O.v = a;
  7441. this.Ub.N.v = a;
  7442. this.Ub.K.v = a;
  7443. this.Fe = p;
  7444. this.vb(F.rect(0, 0, 0, 0), r, F.size(0, 0));
  7445. return p
  7446. };
  7447. a.sa = function(a, d, e) {
  7448. F.assert(0 != arguments.length, F.i.YS);
  7449. e = e ||
  7450. r;
  7451. if (!F.ja.prototype.M.call(this)) return r;
  7452. this.W = q;
  7453. this.dirty = this.kh = r;
  7454. this.Qa = p;
  7455. this.q.src = F.hc;
  7456. this.q.U = F.gc;
  7457. this.Qb = this.Rb = r;
  7458. this.anchorY = this.anchorX = 0.5;
  7459. this.Fb.x = 0;
  7460. this.Fb.y = 0;
  7461. this.ai = r;
  7462. var f = F.color(255, 255, 255, 255),
  7463. g = this.Ub;
  7464. g.F.v = f;
  7465. g.O.v = f;
  7466. g.N.v = f;
  7467. g.K.v = f;
  7468. this.oa = f = a.uc;
  7469. if (!f) return this.bd = e || r, d && (f = this.ia, f.x = d.x, f.y = d.y, f.width = d.width, f.height = d.height), a.Wd(this.uw, this), p;
  7470. d || (d = F.rect(0, 0, a.width, a.height));
  7471. a && (e ? (f = d.x + d.height, g = d.y + d.width) : (f = d.x + d.width, g = d.y + d.height), f >
  7472. a.width && F.error(F.i.Cz, a.url), g > a.height && F.error(F.i.Bz, a.url));
  7473. this.texture = a;
  7474. this.vb(d, e);
  7475. this.batchNode = q;
  7476. return this.Fe = p
  7477. };
  7478. a.uw = function(a) {
  7479. if (!this.oa) {
  7480. this.oa = p;
  7481. var d = this.ia;
  7482. d ? F.wC(d) && (d.width = a.width, d.height = a.height) : d = F.rect(0, 0, a.width, a.height);
  7483. this.texture = a;
  7484. this.vb(d, this.bd);
  7485. this.batchNode = this.W;
  7486. this.Fe = p;
  7487. this.Od()
  7488. }
  7489. };
  7490. a.vb = function(a, d, e) {
  7491. this.bd = d || r;
  7492. this.Zd(e || a);
  7493. this.eG(a);
  7494. this.lL(a);
  7495. a = this.uh;
  7496. this.Qb && (a.x = -a.x);
  7497. this.Rb && (a.y = -a.y);
  7498. var f = this.ia;
  7499. this.Fb.x = a.x + (this.P.width -
  7500. f.width) / 2;
  7501. this.Fb.y = a.y + (this.P.height - f.height) / 2;
  7502. if (this.W) this.dirty = p;
  7503. else {
  7504. a = 0 + this.Fb.x;
  7505. d = 0 + this.Fb.y;
  7506. e = a + f.width;
  7507. var f = d + f.height,
  7508. g = this.Ub;
  7509. g.F.k = {
  7510. x: a,
  7511. y: d,
  7512. e: 0
  7513. };
  7514. g.O.k = {
  7515. x: e,
  7516. y: d,
  7517. e: 0
  7518. };
  7519. g.N.k = {
  7520. x: a,
  7521. y: f,
  7522. e: 0
  7523. };
  7524. g.K.k = {
  7525. x: e,
  7526. y: f,
  7527. e: 0
  7528. };
  7529. this.Fe = p
  7530. }
  7531. };
  7532. a.$e = function() {
  7533. if (this.dirty) {
  7534. var a = this.Ub,
  7535. d = this.Tb;
  7536. if (!this.yc || d && d != this.W && d.Fk) a.O.k = {
  7537. x: 0,
  7538. y: 0,
  7539. e: 0
  7540. }, a.N.k = {
  7541. x: 0,
  7542. y: 0,
  7543. e: 0
  7544. }, a.K.k = {
  7545. x: 0,
  7546. y: 0,
  7547. e: 0
  7548. }, a.F.k = {
  7549. x: 0,
  7550. y: 0,
  7551. e: 0
  7552. }, this.Fk = p;
  7553. else {
  7554. this.Fk = r;
  7555. var e = this.em = !d || d == this.W ? this.Te() : F.hl(this.Te(), d.em),
  7556. f = this.ia,
  7557. d =
  7558. this.Fb.x,
  7559. g = this.Fb.y,
  7560. h = d + f.width,
  7561. m = g + f.height,
  7562. n = e.La,
  7563. s = e.Ma,
  7564. u = e.a,
  7565. v = e.b,
  7566. x = e.J,
  7567. w = -e.D,
  7568. e = d * u - g * w + n,
  7569. f = d * v + g * x + s,
  7570. z = h * u - g * w + n,
  7571. g = h * v + g * x + s,
  7572. B = h * u - m * w + n,
  7573. h = h * v + m * x + s,
  7574. n = d * u - m * w + n,
  7575. d = d * v + m * x + s,
  7576. m = this.ks;
  7577. F.Hz || (e |= 0, f |= 0, z |= 0, g |= 0, B |= 0, h |= 0, n |= 0, d |= 0);
  7578. a.F.k = {
  7579. x: e,
  7580. y: f,
  7581. e: m
  7582. };
  7583. a.O.k = {
  7584. x: z,
  7585. y: g,
  7586. e: m
  7587. };
  7588. a.N.k = {
  7589. x: n,
  7590. y: d,
  7591. e: m
  7592. };
  7593. a.K.k = {
  7594. x: B,
  7595. y: h,
  7596. e: m
  7597. }
  7598. }
  7599. this.textureAtlas.xy(a, this.atlasIndex);
  7600. this.dirty = this.kh = r
  7601. }
  7602. this.ai && this.rg(this.u, F.t.Af.$e);
  7603. F.Rj && (a = [F.d(this.Ub.F.k.x, this.Ub.F.k.y), F.d(this.Ub.O.k.x, this.Ub.O.k.y), F.d(this.Ub.K.k.x,
  7604. this.Ub.K.k.y), F.d(this.Ub.N.k.x, this.Ub.N.k.y)], F.Ce.Yd(a, 4, p))
  7605. };
  7606. a.Q = function(a, d, e) {
  7607. F.assert(a, F.i.PS);
  7608. d == q && (d = a.yb);
  7609. e == q && (e = a.tag);
  7610. if (this.W) {
  7611. if (!(a instanceof F.aa)) {
  7612. F.log(F.i.NS);
  7613. return
  7614. }
  7615. a.texture.Vd !== this.textureAtlas.texture.Vd && F.log(F.i.OS);
  7616. this.W.appendChild(a);
  7617. this.Ud || this.UC()
  7618. }
  7619. F.ja.prototype.Q.call(this, a, d, e);
  7620. this.ai = p
  7621. };
  7622. a.va = function(a) {
  7623. F.ja.prototype.va.call(this, a);
  7624. this.Et()
  7625. };
  7626. a.Wa = function(a) {
  7627. F.ja.prototype.Wa.call(this, a);
  7628. this.Et()
  7629. };
  7630. a.Ob = function(a) {
  7631. F.ja.prototype.Ob.call(this,
  7632. a);
  7633. this.Et()
  7634. };
  7635. a.bl = function(a) {
  7636. var d = this;
  7637. "string" == typeof a && (a = F.cl.wj(a), F.assert(a, F.i.gT));
  7638. d.Ka(p);
  7639. var e = a.la;
  7640. d.uh.x = e.x;
  7641. d.uh.y = e.y;
  7642. e = a.Oa();
  7643. a.oa || (d.oa = r, a.Wd(function(a) {
  7644. d.oa = p;
  7645. var c = a.Oa();
  7646. c != d.L && (d.texture = c);
  7647. d.vb(a.Dh(), a.ke, a.jf);
  7648. d.Od()
  7649. }, d));
  7650. e != d.L && (d.texture = e);
  7651. d.bd = a.ke;
  7652. d.vb(a.Dh(), d.bd, a.jf)
  7653. };
  7654. a.IN = function(a) {
  7655. return F.rO(a.Dh(), this.ia) && a.Oa().getName() == this.L.getName() && F.yF(a.la, this.uh)
  7656. };
  7657. a.al = function(a) {
  7658. if (this.W = a) this.em = {
  7659. a: 1,
  7660. b: 0,
  7661. D: 0,
  7662. J: 1,
  7663. La: 0,
  7664. Ma: 0
  7665. }, this.textureAtlas = this.W.textureAtlas;
  7666. else {
  7667. this.atlasIndex = F.aa.Yy;
  7668. this.textureAtlas = q;
  7669. this.dirty = this.kh = r;
  7670. a = this.Fb.x;
  7671. var d = this.Fb.y,
  7672. e = a + this.ia.width,
  7673. f = d + this.ia.height,
  7674. g = this.Ub;
  7675. g.F.k = {
  7676. x: a,
  7677. y: d,
  7678. e: 0
  7679. };
  7680. g.O.k = {
  7681. x: e,
  7682. y: d,
  7683. e: 0
  7684. };
  7685. g.N.k = {
  7686. x: a,
  7687. y: f,
  7688. e: 0
  7689. };
  7690. g.K.k = {
  7691. x: e,
  7692. y: f,
  7693. e: 0
  7694. };
  7695. this.Fe = p
  7696. }
  7697. };
  7698. a.pb = function(a) {
  7699. a && "string" === typeof a ? (a = F.Fa.Hc(a), this.pb(a), a = a.fc(), this.vb(F.rect(0, 0, a.width, a.height))) : (F.assert(!a || a instanceof F.ea, F.i.iT), this.W && this.W.texture != a ? F.log(F.i.hT) : (this.shaderProgram = a ? F.Jd.oc(F.Pi) : F.Jd.oc(F.qu), !this.W && this.L != a && (this.L =
  7700. a, this.Sf())))
  7701. };
  7702. a.Y = function() {
  7703. if (this.oa) {
  7704. var a = F.m,
  7705. d = this.L;
  7706. d ? d.uc && (this.Ib.Nc(), this.Ib.Ze(), F.Eh(this.q.src, this.q.U), F.NE(0, d), F.Jc(F.xl), a.bindBuffer(a.ARRAY_BUFFER, this.Yv), this.Fe && (a.bufferData(a.ARRAY_BUFFER, this.Ub.Fw, a.DYNAMIC_DRAW), this.Fe = r), a.vertexAttribPointer(0, 3, a.FLOAT, r, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, p, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, r, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.Ib.Nc(), this.Ib.Ze(), F.Eh(this.q.src, this.q.U), F.qe(q), F.Jc(F.Md | F.Cu),
  7707. a.bindBuffer(a.ARRAY_BUFFER, this.Yv), this.Fe && (F.m.bufferData(F.m.ARRAY_BUFFER, this.Ub.Fw, F.m.STATIC_DRAW), this.Fe = r), a.vertexAttribPointer(F.qb, 3, a.FLOAT, r, 24, 0), a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4));
  7708. F.Wf++;
  7709. if (0 !== F.Rj || this.YC) 1 === F.Rj || this.YC ? (a = this.Ub, a = [F.d(a.N.k.x, a.N.k.y), F.d(a.F.k.x, a.F.k.y), F.d(a.O.k.x, a.O.k.y), F.d(a.K.k.x, a.K.k.y)], F.Ce.Yd(a, 4, p)) : 2 === F.Rj && (a = this.mN(), d = this.Fb, a = [F.d(d.x, d.y), F.d(d.x + a.width, d.y), F.d(d.x + a.width, d.y +
  7710. a.height), F.d(d.x, d.y + a.height)], F.Ce.Yd(a, 4, p))
  7711. }
  7712. };
  7713. delete a
  7714. };
  7715. F.C.wz = function() {
  7716. var a = F.aa.prototype;
  7717. F.j(a, "opacityModifyRGB", a.re, a.Hd);
  7718. F.j(a, "opacity", a.Qe, a.va);
  7719. F.j(a, "color", a.Pe, a.Wa);
  7720. F.j(a, "flippedX", a.P0, a.fy);
  7721. F.j(a, "flippedY", a.Q0, a.QF);
  7722. F.j(a, "offsetX", a.MV);
  7723. F.j(a, "offsetY", a.NV);
  7724. F.j(a, "texture", a.Oa, a.pb);
  7725. F.j(a, "textureRectRotated", a.W0);
  7726. F.j(a, "batchNode", a.xE, a.al);
  7727. F.j(a, "quad", a.V_)
  7728. };
  7729. F.Mo = function(a) {
  7730. function c() {
  7731. var c = F.Mo,
  7732. e = a.width,
  7733. h = a.height;
  7734. d[0].width = e;
  7735. d[0].height = h;
  7736. d[1].width = e;
  7737. d[1].height = h;
  7738. d[2].width = e;
  7739. d[2].height = h;
  7740. d[3].width = e;
  7741. d[3].height = h;
  7742. c.canvas.width = e;
  7743. c.canvas.height = h;
  7744. var m = c.canvas.getContext("2d");
  7745. m.drawImage(a, 0, 0);
  7746. c.lG.width = e;
  7747. c.lG.height = h;
  7748. for (var m = m.getImageData(0, 0, e, h).data, n = 0; 4 > n; n++) {
  7749. var s = d[n].getContext("2d");
  7750. s.getImageData(0, 0, e, h).data;
  7751. c.sP.drawImage(a, 0, 0);
  7752. for (var u = c.sP.getImageData(0, 0, e, h), v = u.data, x = 0; x < m.length; x += 4) v[x] = 0 === n ? m[x] : 0, v[x +
  7753. 1] = 1 === n ? m[x + 1] : 0, v[x + 2] = 2 === n ? m[x + 2] : 0, v[x + 3] = m[x + 3];
  7754. s.putImageData(u, 0, 0)
  7755. }
  7756. a.onload = q
  7757. }
  7758. if (a.cM) return a.cM;
  7759. var d = [F.Nb("canvas"), F.Nb("canvas"), F.Nb("canvas"), F.Nb("canvas")];
  7760. try {
  7761. c()
  7762. } catch (e) {
  7763. a.onload = c
  7764. }
  7765. return a.cM = d
  7766. };
  7767. F.Mo.canvas = F.Nb("canvas");
  7768. F.Mo.lG = F.Nb("canvas");
  7769. F.Mo.sP = F.Mo.lG.getContext("2d");
  7770. F.iaa = function(a, c, d) {
  7771. d || (d = F.rect(0, 0, a.width, a.height), d = F.Gj(d));
  7772. var e = F.Nb("canvas"),
  7773. f = e.getContext("2d");
  7774. e.width != d.width && (e.width = d.width);
  7775. e.height != d.height && (e.height = d.height);
  7776. f.save();
  7777. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  7778. f.globalCompositeOperation = "source-in";
  7779. f.globalAlpha = c.a / 255;
  7780. f.fillStyle = "rgb(" + c.r + "," + c.g + "," + c.b + ")";
  7781. f.fillRect(0, 0, d.width, d.height);
  7782. f.restore();
  7783. return e
  7784. };
  7785. F.No = function(a, c, d, e, f) {
  7786. e || (e = F.rect(0, 0, a.width, a.height));
  7787. a = d.r / 255;
  7788. var g = d.g / 255;
  7789. d = d.b / 255;
  7790. var h = Math.min(e.width, c[0].width),
  7791. m = Math.min(e.height, c[0].height),
  7792. n;
  7793. f ? (n = f.getContext("2d"), n.clearRect(0, 0, h, m)) : (f = F.Nb("canvas"), f.width = h, f.height = m, n = f.getContext("2d"));
  7794. n.save();
  7795. n.globalCompositeOperation = "lighter";
  7796. var s = n.globalAlpha;
  7797. 0 < a && (n.globalAlpha = a * s, n.drawImage(c[0], e.x, e.y, h, m, 0, 0, h, m));
  7798. 0 < g && (n.globalAlpha = g * s, n.drawImage(c[1], e.x, e.y, h, m, 0, 0, h, m));
  7799. 0 < d && (n.globalAlpha = d * s, n.drawImage(c[2],
  7800. e.x, e.y, h, m, 0, 0, h, m));
  7801. 1 > a + g + d && (n.globalAlpha = s, n.drawImage(c[3], e.x, e.y, h, m, 0, 0, h, m));
  7802. n.restore();
  7803. return f
  7804. };
  7805. F.kE = function(a, c) {
  7806. if (!a) return q;
  7807. if (!c) return a;
  7808. var d = F.Nb("canvas");
  7809. d.width = c.width;
  7810. d.height = c.height;
  7811. var e = d.getContext("2d");
  7812. e.translate(d.width / 2, d.height / 2);
  7813. e.rotate(-1.5707963267948966);
  7814. e.drawImage(a, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width);
  7815. return d
  7816. };
  7817. F.aa = F.ja.extend({
  7818. wb: p,
  7819. dirty: r,
  7820. atlasIndex: 0,
  7821. textureAtlas: q,
  7822. W: q,
  7823. kh: q,
  7824. ai: q,
  7825. Fk: r,
  7826. em: q,
  7827. q: q,
  7828. L: q,
  7829. ia: q,
  7830. bd: r,
  7831. Fb: q,
  7832. uh: q,
  7833. Qa: r,
  7834. Qb: r,
  7835. Rb: r,
  7836. oa: r,
  7837. hb: q,
  7838. TB: q,
  7839. tb: "Sprite",
  7840. xt: A("oa"),
  7841. Wd: function(a, c) {
  7842. this.hb || (this.hb = []);
  7843. this.hb.push({
  7844. yh: a,
  7845. Vf: c
  7846. })
  7847. },
  7848. Od: function() {
  7849. if (this.hb) {
  7850. for (var a = this.hb, c = 0, d = a.length; c < d; c++) {
  7851. var e = a[c];
  7852. e.yh.call(e.Vf, this)
  7853. }
  7854. a.length = 0
  7855. }
  7856. },
  7857. cF: A("dirty"),
  7858. LO: y("dirty"),
  7859. W0: A("bd"),
  7860. Po: A("atlasIndex"),
  7861. MF: y("atlasIndex"),
  7862. mN: function() {
  7863. return F.rect(this.ia.x, this.ia.y, this.ia.width, this.ia.height)
  7864. },
  7865. JE: A("textureAtlas"),
  7866. aG: y("textureAtlas"),
  7867. Hba: A("Fb"),
  7868. MV: function() {
  7869. return this.Fb.x
  7870. },
  7871. NV: function() {
  7872. return this.Fb.y
  7873. },
  7874. Ah: A("q"),
  7875. vi: function(a) {
  7876. F.assert(a, F.i.VS);
  7877. a.oa || (this.oa = r, a.Wd(this.cD, this));
  7878. var c = F.B === F.Ca ? r : a.ke,
  7879. c = this.sa(a.Oa(), a.Dh(), c);
  7880. this.bl(a);
  7881. return c
  7882. },
  7883. cD: q,
  7884. fda: function(a) {
  7885. F.assert(a, F.i.WS);
  7886. var c = F.cl.wj(a);
  7887. F.assert(c, a + F.i.XS);
  7888. return this.vi(c)
  7889. },
  7890. Dka: function(a) {
  7891. this.textureAtlas = a.textureAtlas;
  7892. this.W = a
  7893. },
  7894. eG: function(a) {
  7895. this.ia.x = a.x;
  7896. this.ia.y = a.y;
  7897. this.ia.width = a.width;
  7898. this.ia.height = a.height
  7899. },
  7900. Wc: function() {
  7901. if (this.Ud) {
  7902. var a =
  7903. this.u,
  7904. c = a.length,
  7905. d, e, f;
  7906. for (d = 1; d < c; d++) {
  7907. f = a[d];
  7908. for (e = d - 1; 0 <= e;) {
  7909. if (f.yb < a[e].yb) a[e + 1] = a[e];
  7910. else if (f.yb === a[e].yb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e];
  7911. else break;
  7912. e--
  7913. }
  7914. a[e + 1] = f
  7915. }
  7916. this.W && this.rg(a, F.t.Af.Wc);
  7917. this.Ud = r
  7918. }
  7919. },
  7920. lp: function(a, c) {
  7921. F.assert(a, F.i.bT); - 1 === this.u.indexOf(a) ? F.log(F.i.aT) : c !== a.zIndex && (this.W && !this.Ud && (this.UC(), this.W.xO(p)), F.t.prototype.lp.call(this, a, c))
  7922. },
  7923. removeChild: function(a, c) {
  7924. this.W && this.W.Im(a);
  7925. F.t.prototype.removeChild.call(this, a, c)
  7926. },
  7927. Jg: function(a) {
  7928. var c =
  7929. this.u,
  7930. d = this.W;
  7931. if (d && c != q)
  7932. for (var e = 0, f = c.length; e < f; e++) d.Im(c[e]);
  7933. F.t.prototype.Jg.call(this, a);
  7934. this.ai = r
  7935. },
  7936. MO: function(a) {
  7937. this.dirty = this.kh = a;
  7938. a = this.u;
  7939. for (var c, d = a ? a.length : 0, e = 0; e < d; e++) c = a[e], c instanceof F.aa && c.MO(p)
  7940. },
  7941. Ka: function(a) {
  7942. F.t.prototype.Ka.call(this);
  7943. !a && (this.W && !this.kh) && (this.ai ? this.MO(p) : this.dirty = this.kh = p)
  7944. },
  7945. jx: function(a) {
  7946. this.W ? F.log(F.i.TS) : F.t.prototype.jx.call(this, a)
  7947. },
  7948. fy: function(a) {
  7949. this.Qb != a && (this.Qb = a, this.vb(this.ia, this.bd, this.P), this.Ka(p))
  7950. },
  7951. QF: function(a) {
  7952. this.Rb !=
  7953. a && (this.Rb = a, this.vb(this.ia, this.bd, this.P), this.Ka(p))
  7954. },
  7955. P0: A("Qb"),
  7956. Q0: A("Rb"),
  7957. Hd: q,
  7958. re: A("Qa"),
  7959. Mb: q,
  7960. kia: function(a, c) {
  7961. F.assert(a, F.i.fT);
  7962. var d = F.Ew.JM(a);
  7963. d ? (d = d.Rd[c]) ? this.bl(d.wj()) : F.log(F.i.eT) : F.log(F.i.dT)
  7964. },
  7965. xE: A("W"),
  7966. UC: function() {
  7967. if (!this.Ud) {
  7968. this.Ud = p;
  7969. for (var a = this.Tb; a && a != this.W;) a.UC(), a = a.parent
  7970. }
  7971. },
  7972. Oa: A("L"),
  7973. Ub: q,
  7974. Yv: q,
  7975. Fe: r,
  7976. Xu: r,
  7977. Xn: r,
  7978. ie: q,
  7979. qo: q,
  7980. $A: q,
  7981. ctor: q,
  7982. tL: function(a, c, d) {
  7983. if (a === k) F.aa.prototype.M.call(this);
  7984. else if ("string" === typeof a) "#" === a[0] ? (a = F.cl.wj(a.substr(1, a.length - 1)),
  7985. this.vi(a)) : F.aa.prototype.M.call(this, a, c);
  7986. else if ("object" === typeof a)
  7987. if (a instanceof F.ea) this.sa(a, c, d);
  7988. else if (a instanceof F.zf) this.vi(a);
  7989. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) c = new F.ea, c.Ed(a), c.Wb(), this.sa(c)
  7990. },
  7991. V_: A("Ub"),
  7992. Ue: q,
  7993. M: q,
  7994. Uk: function(a, c) {
  7995. F.assert(a, F.i.US);
  7996. var d = F.Fa.Nm(a);
  7997. if (d) {
  7998. if (!c) {
  7999. var e = d.fc();
  8000. c = F.rect(0, 0, e.width, e.height)
  8001. }
  8002. return this.sa(d, c)
  8003. }
  8004. d = F.Fa.Hc(a);
  8005. return this.sa(d, c || F.rect(0, 0, d.P.width, d.P.height))
  8006. },
  8007. sa: q,
  8008. uw: q,
  8009. vb: q,
  8010. $e: q,
  8011. Q: q,
  8012. Et: function() {
  8013. var a =
  8014. this.Da,
  8015. c = this.Ba,
  8016. a = {
  8017. r: a.r,
  8018. g: a.g,
  8019. b: a.b,
  8020. a: c
  8021. };
  8022. this.Qa && (a.r *= c / 255, a.g *= c / 255, a.b *= c / 255);
  8023. c = this.Ub;
  8024. c.F.v = a;
  8025. c.O.v = a;
  8026. c.N.v = a;
  8027. c.K.v = a;
  8028. this.W && (this.atlasIndex != F.aa.Yy ? this.textureAtlas.xy(c, this.atlasIndex) : this.dirty = p);
  8029. this.Fe = p
  8030. },
  8031. va: q,
  8032. Wa: q,
  8033. Ob: q,
  8034. bl: q,
  8035. a3: function(a) {
  8036. F.log(F.i.cT);
  8037. this.bl(a)
  8038. },
  8039. IN: q,
  8040. zZ: function() {
  8041. return F.zf.create(this.L, F.lt(this.ia), this.bd, F.e2(this.uh), F.Y3(this.P))
  8042. },
  8043. al: q,
  8044. pb: q,
  8045. Sf: function() {
  8046. this.W ? F.log(F.i.MS) : !this.L || !this.L.ti() ? (this.q.src = F.SRC_ALPHA, this.q.U = F.ONE_MINUS_SRC_ALPHA,
  8047. this.opacityModifyRGB = r) : (this.q.src = F.hc, this.q.U = F.gc, this.opacityModifyRGB = p)
  8048. },
  8049. gk: function() {
  8050. var a, c = this.L,
  8051. d = this.qo;
  8052. if (c && (d.Dp && this.ie) && (a = c.Eb))
  8053. if (c = F.Fa.bx(this.ie.Eb)) this.Xu = p, a instanceof HTMLCanvasElement && !this.bd && !this.TB ? F.No(a, c, this.Da, d, a) : (a = F.No(a, c, this.Da, d), c = new F.ea, c.Ed(a), c.Wb(), this.texture = c)
  8054. },
  8055. lL: function(a) {
  8056. a = F.lt(a);
  8057. var c = this.W ? this.textureAtlas.texture : this.L;
  8058. if (c) {
  8059. var d = c.pixelsWidth,
  8060. e = c.pixelsHeight,
  8061. f, g = this.Ub;
  8062. this.bd ? (F.Wm ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height -
  8063. 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.Qb && (e = f, f = a, a = e), this.Rb && (e = c, c = d, d = e), g.F.n.fa = c, g.F.n.ga = f, g.O.n.fa = c, g.O.n.ga = a, g.N.n.fa = d, g.N.n.ga = f, g.K.n.fa = d, g.K.n.ga = a) : (F.Wm ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Qb && (e = c, c = d, d = e), this.Rb && (e = f, f = a, a = e), g.F.n.fa = c, g.F.n.ga = a, g.O.n.fa = d, g.O.n.ga = a, g.N.n.fa = c, g.N.n.ga = f,
  8064. g.K.n.fa = d, g.K.n.ga = f);
  8065. this.Fe = p
  8066. }
  8067. },
  8068. Y: q
  8069. });
  8070. F.aa.create = function(a, c, d) {
  8071. return new F.aa(a, c, d)
  8072. };
  8073. F.aa.Yy = -1;
  8074. F.B === F.Ca ? (M = F.aa.prototype, M.cD = function(a) {
  8075. this.Ka(p);
  8076. this.vb(a.Dh(), a.ke, a.jf);
  8077. a = this.color;
  8078. (255 !== a.r || 255 !== a.g || 255 !== a.b) && this.gk();
  8079. this.Od()
  8080. }, M.Hd = function(a) {
  8081. this.Qa !== a && (this.Qa = a, this.Ka(p))
  8082. }, M.Mb = function(a) {
  8083. F.ja.prototype.Mb.call(this, a);
  8084. this.oh()
  8085. }, M.ctor = function(a, c, d) {
  8086. F.ja.prototype.ctor.call(this);
  8087. this.Fk = r;
  8088. this.Fb = F.d(0, 0);
  8089. this.uh = F.d(0, 0);
  8090. this.q = {
  8091. src: F.hc,
  8092. U: F.gc
  8093. };
  8094. this.ia = F.rect(0, 0, 0, 0);
  8095. this.TB = r;
  8096. this.oa = p;
  8097. this.qo = {
  8098. x: 0,
  8099. y: 0,
  8100. width: 0,
  8101. height: 0,
  8102. Dp: r
  8103. };
  8104. this.$A = F.size(0, 0);
  8105. this.tL(a,
  8106. c, d)
  8107. }, M.Ue = function(a, c) {
  8108. var d = this.q;
  8109. c === k ? (d.src = a.src, d.U = a.U) : (d.src = a, d.U = c);
  8110. this.Xn = d && (d.src == F.SRC_ALPHA && d.U == F.ONE || d.src == F.ONE && d.U == F.ONE)
  8111. }, M.M = function() {
  8112. if (0 < arguments.length) return this.Uk(arguments[0], arguments[1]);
  8113. F.ja.prototype.M.call(this);
  8114. this.dirty = this.kh = r;
  8115. this.Qa = p;
  8116. this.q.src = F.hc;
  8117. this.q.U = F.gc;
  8118. this.texture = q;
  8119. this.oa = p;
  8120. this.Qb = this.Rb = r;
  8121. this.anchorY = this.anchorX = 0.5;
  8122. this.Fb.x = 0;
  8123. this.Fb.y = 0;
  8124. this.ai = r;
  8125. this.vb(F.rect(0, 0, 0, 0), r, F.size(0, 0));
  8126. return p
  8127. }, M.sa = function(a, c, d) {
  8128. F.assert(0 !=
  8129. arguments.length, F.i.eQ);
  8130. if ((d = d || r) && a.uc) {
  8131. var e = a.Eb,
  8132. e = F.kE(e, c),
  8133. f = new F.ea;
  8134. f.Ed(e);
  8135. f.Wb();
  8136. a = f;
  8137. this.ia = F.rect(0, 0, c.width, c.height)
  8138. }
  8139. if (!F.ja.prototype.M.call(this)) return r;
  8140. this.W = q;
  8141. this.dirty = this.kh = r;
  8142. this.Qa = p;
  8143. this.q.src = F.hc;
  8144. this.q.U = F.gc;
  8145. this.Qb = this.Rb = r;
  8146. this.anchorY = this.anchorX = 0.5;
  8147. this.Fb.x = 0;
  8148. this.Fb.y = 0;
  8149. this.ai = r;
  8150. this.oa = e = a.uc;
  8151. if (!e) return this.bd = d, c && (this.ia.x = c.x, this.ia.y = c.y, this.ia.width = c.width, this.ia.height = c.height), a.Wd(this.uw, this), p;
  8152. c || (c = F.rect(0, 0, a.width, a.height));
  8153. a && (e = c.y + c.height, c.x + c.width > a.width && F.error(F.i.Cz, a.url), e > a.height && F.error(F.i.Bz, a.url));
  8154. this.texture = this.ie = a;
  8155. this.vb(c, d);
  8156. this.batchNode = q;
  8157. return p
  8158. }, M.uw = function(a) {
  8159. if (!this.oa) {
  8160. this.oa = p;
  8161. var c = this.ia;
  8162. c ? F.wC(c) && (c.width = a.width, c.height = a.height) : c = F.rect(0, 0, a.width, a.height);
  8163. this.texture = this.ie = a;
  8164. this.vb(c, this.bd);
  8165. this.batchNode = this.W;
  8166. this.Od()
  8167. }
  8168. }, M.vb = function(a, c, d) {
  8169. this.bd = c || r;
  8170. this.Zd(d || a);
  8171. this.eG(a);
  8172. c = this.qo;
  8173. d = F.rb();
  8174. c.x = 0 | a.x * d;
  8175. c.y = 0 | a.y * d;
  8176. c.width = 0 | a.width * d;
  8177. c.height = 0 |
  8178. a.height * d;
  8179. c.Dp = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  8180. a = this.uh;
  8181. this.Qb && (a.x = -a.x);
  8182. this.Rb && (a.y = -a.y);
  8183. this.Fb.x = a.x + (this.P.width - this.ia.width) / 2;
  8184. this.Fb.y = a.y + (this.P.height - this.ia.height) / 2;
  8185. this.W && (this.dirty = p)
  8186. }, M.$e = function() {
  8187. if (this.dirty) {
  8188. var a = this.Tb;
  8189. !this.yc || a && a != this.W && a.Fk ? this.Fk = p : (this.Fk = r, this.em = !a || a == this.W ? this.Te() : F.hl(this.Te(), a.em));
  8190. this.dirty = this.kh = r
  8191. }
  8192. this.ai && this.rg(this.u, F.t.Af.$e)
  8193. }, M.Q = function(a, c, d) {
  8194. F.assert(a, F.i.cQ);
  8195. c == q && (c = a.yb);
  8196. d == q && (d = a.tag);
  8197. F.ja.prototype.Q.call(this, a, c, d);
  8198. this.ai = p
  8199. }, M.va = function(a) {
  8200. F.ja.prototype.va.call(this, a);
  8201. this.oh()
  8202. }, M.Wa = function(a) {
  8203. var c = this.color;
  8204. c.r === a.r && c.g === a.g && c.b === a.b || (F.ja.prototype.Wa.call(this, a), this.gk(), this.oh())
  8205. }, M.Ob = function(a) {
  8206. var c = this.color;
  8207. F.ja.prototype.Ob.call(this, a);
  8208. a = this.Da;
  8209. c.r === a.r && c.g === a.g && c.b === a.b || (this.gk(), this.oh())
  8210. }, M.bl = function(a) {
  8211. var c = this;
  8212. "string" == typeof a && (a = F.cl.wj(a), F.assert(a, F.i.hQ));
  8213. c.Ka(p);
  8214. var d = a.la;
  8215. c.uh.x = d.x;
  8216. c.uh.y = d.y;
  8217. c.bd = a.ke;
  8218. var d = a.Oa(),
  8219. e = a.oa;
  8220. e || (c.oa = r, a.Wd(function(a) {
  8221. c.oa = p;
  8222. var d = a.Oa();
  8223. d != c.L && (c.texture = d);
  8224. c.vb(a.Dh(), a.ke, a.jf);
  8225. c.Od()
  8226. }, c));
  8227. d != c.L && (c.texture = d);
  8228. c.bd && (c.ie = d);
  8229. c.vb(a.Dh(), c.bd, a.jf);
  8230. c.Xu = r;
  8231. e && (a = c.color, (255 !== a.r || 255 !== a.g || 255 !== a.b) && c.gk())
  8232. }, M.IN = function(a) {
  8233. return a.Oa() != this.L ? r : F.rO(a.Dh(), this.ia)
  8234. }, M.al = function(a) {
  8235. (this.W = a) ? (this.em = {
  8236. a: 1,
  8237. b: 0,
  8238. D: 0,
  8239. J: 1,
  8240. La: 0,
  8241. Ma: 0
  8242. }, this.textureAtlas = this.W.textureAtlas) : (this.atlasIndex = F.aa.Yy, this.textureAtlas = q, this.dirty = this.kh = r)
  8243. }, M.pb = function(a) {
  8244. a && "string" ===
  8245. typeof a ? (a = F.Fa.Hc(a), this.pb(a), a = a.fc(), this.vb(F.rect(0, 0, a.width, a.height))) : (F.assert(!a || a instanceof F.ea, F.i.iQ), this.L != a && (a && a.Eb instanceof HTMLImageElement && (this.ie = a), this.L = a))
  8246. }, M.Y = function(a) {
  8247. if (this.oa) {
  8248. a = a || F.m;
  8249. this.Xn && (a.globalCompositeOperation = "lighter");
  8250. var c = F.view.qa,
  8251. d = F.view.Ra;
  8252. a.globalAlpha = this.Ba / 255;
  8253. var e = this.ia,
  8254. f = this.P,
  8255. g = this.Fb,
  8256. h = this.$A,
  8257. m = 0 | g.x,
  8258. n = -g.y - e.height,
  8259. s = this.qo;
  8260. h.width = e.width * c;
  8261. h.height = e.height * d;
  8262. if (this.Qb || this.Rb) a.save(), this.Qb && (m = -g.x - e.width,
  8263. a.scale(-1, 1)), this.Rb && (n = g.y, a.scale(1, -1));
  8264. m *= c;
  8265. n *= d;
  8266. this.L && s.Dp ? (f = this.L.Eb, this.Xu ? a.drawImage(f, 0, 0, s.width, s.height, m, n, h.width, h.height) : a.drawImage(f, s.x, s.y, s.width, s.height, m, n, h.width, h.height)) : !this.L && s.Dp && (h = this.color, a.fillStyle = "rgba(" + h.r + "," + h.g + "," + h.b + ",1)", a.fillRect(m, n, f.width * c, f.height * d));
  8267. 1 === F.Rj || this.YC ? (a.strokeStyle = "rgba(0,255,0,1)", m /= c, n = -(n / d), m = [F.d(m, n), F.d(m + e.width, n), F.d(m + e.width, n - e.height), F.d(m, n - e.height)], F.Ce.Yd(m, 4, p)) : 2 === F.Rj && (a.strokeStyle =
  8268. "rgba(0,255,0,1)", c = this.ia, n = -n, m = [F.d(m, n), F.d(m + c.width, n), F.d(m + c.width, n - c.height), F.d(m, n - c.height)], F.Ce.Yd(m, 4, p));
  8269. (this.Qb || this.Rb) && a.restore();
  8270. F.Wf++
  8271. }
  8272. }, delete M) : (F.assert("function" === typeof F.C.pA, F.i.Qc, "SpritesWebGL.js"), F.C.pA(), delete F.C.pA);
  8273. F.assert("function" === typeof F.C.wz, F.i.Qc, "SpritesPropertyDefine.js");
  8274. F.C.wz();
  8275. delete F.C.wz;
  8276. F.Iy = 29;
  8277. F.yf = F.t.extend({
  8278. textureAtlas: q,
  8279. q: q,
  8280. yd: q,
  8281. tb: "SpriteBatchNode",
  8282. GY: function(a, c, d) {
  8283. F.assert(a, F.i.GS);
  8284. if (!(a instanceof F.aa)) return F.log(F.i.FS), q;
  8285. a.atlasIndex = c;
  8286. var e = 0,
  8287. f = this.yd;
  8288. if (f && 0 < f.length)
  8289. for (var g = 0; g < f.length; g++) {
  8290. var h = f[g];
  8291. h && h.atlasIndex >= c && ++e
  8292. }
  8293. f.splice(e, 0, a);
  8294. F.t.prototype.Q.call(this, a, c, d);
  8295. this.xO(r);
  8296. return this
  8297. },
  8298. JE: A("textureAtlas"),
  8299. aG: function(a) {
  8300. a != this.textureAtlas && (this.textureAtlas = a)
  8301. },
  8302. q_: A("yd"),
  8303. Uk: function(a, c) {
  8304. var d = F.Fa.Nm(a);
  8305. d || (d = F.Fa.Hc(a));
  8306. return this.sa(d, c)
  8307. },
  8308. oh: function() {
  8309. this.sg =
  8310. p
  8311. },
  8312. M: function(a, c) {
  8313. var d = F.Fa.Nm(a);
  8314. d || (d = F.Fa.Hc(a));
  8315. return this.sa(d, c)
  8316. },
  8317. mx: function() {
  8318. var a = this.textureAtlas.capacity,
  8319. c = Math.floor(4 * (a + 1) / 3);
  8320. F.log(F.i.HS, a, c);
  8321. this.textureAtlas.FF(c) || F.log(F.i.IS)
  8322. },
  8323. u2: function(a, c) {
  8324. this.removeChild(this.u[a], c)
  8325. },
  8326. pO: function(a, c) {
  8327. var d = a.children;
  8328. if (d && 0 < d.length)
  8329. for (var e = 0; e < d.length; e++) {
  8330. var f = d[e];
  8331. f && 0 > f.zIndex && (c = this.pO(f, c))
  8332. }!a == this && (a.atlasIndex = c, c++);
  8333. if (d && 0 < d.length)
  8334. for (e = 0; e < d.length; e++)(f = d[e]) && 0 <= f.zIndex && (c = this.pO(f, c));
  8335. return c
  8336. },
  8337. SE: function(a) {
  8338. var c =
  8339. a.children;
  8340. return !c || 0 == c.length ? a.atlasIndex : this.SE(c[c.length - 1])
  8341. },
  8342. G1: function(a) {
  8343. var c = a.children;
  8344. return !c || 0 == c.length ? a.atlasIndex : this.G1(c[c.length - 1])
  8345. },
  8346. VY: function(a, c) {
  8347. var d = a.parent,
  8348. e = d.children,
  8349. f = e.indexOf(a),
  8350. g = q;
  8351. 0 < f && f < F.aA && (g = e[f - 1]);
  8352. return d == this ? 0 == f ? 0 : this.SE(g) + 1 : 0 == f ? 0 > c ? d.atlasIndex : d.atlasIndex + 1 : 0 > g.zIndex && 0 > c || 0 <= g.zIndex && 0 <= c ? this.SE(g) + 1 : d.atlasIndex + 1
  8353. },
  8354. xO: y("Ud"),
  8355. Ue: function(a, c) {
  8356. this.q = c === k ? a : {
  8357. src: a,
  8358. U: c
  8359. }
  8360. },
  8361. Ah: A("q"),
  8362. lp: function(a, c) {
  8363. F.assert(a, F.i.LS); - 1 === this.u.indexOf(a) ?
  8364. F.log(F.i.KS) : c !== a.zIndex && (F.t.prototype.lp.call(this, a, c), this.Ka())
  8365. },
  8366. removeChild: function(a, c) {
  8367. a != q && (-1 === this.u.indexOf(a) ? F.log(F.i.JS) : (this.Im(a), F.t.prototype.removeChild.call(this, a, c)))
  8368. },
  8369. HW: q,
  8370. Kk: q,
  8371. E8: r,
  8372. ie: q,
  8373. ctor: q,
  8374. Zq: function(a, c) {
  8375. F.t.prototype.ctor.call(this);
  8376. var d;
  8377. c = c || F.Iy;
  8378. "string" == typeof a ? (d = F.Fa.Nm(a)) || (d = F.Fa.Hc(a)) : a instanceof F.ea && (d = a);
  8379. d && this.sa(d, c)
  8380. },
  8381. $q: function(a, c) {
  8382. F.t.prototype.ctor.call(this);
  8383. this.HW = new F.ca;
  8384. var d;
  8385. c = c || F.Iy;
  8386. "string" == typeof a ? (d = F.Fa.Nm(a)) || (d = F.Fa.Hc(a)) :
  8387. a instanceof F.ea && (d = a);
  8388. d && this.sa(d, c)
  8389. },
  8390. GP: q,
  8391. yY: function(a, c) {
  8392. F.assert(a, F.i.jQ);
  8393. a instanceof F.aa ? (a.batchNode = this, a.atlasIndex = c, a.dirty = p, a.$e()) : F.log(F.i.Gy)
  8394. },
  8395. zY: function(a, c) {
  8396. F.assert(a, F.i.Gy);
  8397. if (a instanceof F.aa) {
  8398. for (var d = this.textureAtlas.capacity; c >= d || d == this.textureAtlas.totalQuads;) this.mx();
  8399. a.batchNode = this;
  8400. a.atlasIndex = c;
  8401. a.dirty = p;
  8402. a.$e()
  8403. } else F.log(F.i.Gy)
  8404. },
  8405. Jk: function(a, c) {
  8406. var d = this.yd,
  8407. e = this.textureAtlas,
  8408. f = e.quads,
  8409. g = d[a],
  8410. h = F.uI(f[a]);
  8411. d[c].atlasIndex = a;
  8412. d[a] = d[c];
  8413. e.xy(f[c], a);
  8414. d[c] = g;
  8415. e.xy(h, c)
  8416. },
  8417. rx: q,
  8418. pW: function(a, c) {
  8419. F.assert(a, F.i.gQ);
  8420. a instanceof F.aa ? (a.batchNode = this, a.atlasIndex = c, a.dirty = p, a.$e(), this.u.splice(c, 0, a)) : F.log(F.i.fQ)
  8421. },
  8422. qW: function(a, c) {
  8423. F.assert(a, F.i.$S);
  8424. if (a instanceof F.aa) {
  8425. for (var d = this.textureAtlas; c >= d.capacity || d.capacity === d.totalQuads;) this.mx();
  8426. a.batchNode = this;
  8427. a.atlasIndex = c;
  8428. d.aF(a.quad, c);
  8429. a.dirty = p;
  8430. a.$e()
  8431. } else F.log(F.i.ZS)
  8432. },
  8433. HL: function(a, c) {
  8434. var d = 0,
  8435. e = a.children;
  8436. e && (d = e.length);
  8437. var f = 0;
  8438. if (0 === d) f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder =
  8439. 0, f != c && this.Jk(f, c), c++;
  8440. else {
  8441. f = p;
  8442. 0 <= e[0].zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Jk(f, c), c++, f = r);
  8443. for (d = 0; d < e.length; d++) {
  8444. var g = e[d];
  8445. f && 0 <= g.zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Jk(f, c), c++, f = r);
  8446. c = this.HL(g, c)
  8447. }
  8448. f && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Jk(f, c), c++)
  8449. }
  8450. return c
  8451. },
  8452. Sf: function() {
  8453. this.textureAtlas.texture.ti() || (this.q.src = F.SRC_ALPHA, this.q.U = F.ONE_MINUS_SRC_ALPHA)
  8454. },
  8455. sa: q,
  8456. BB: function(a) {
  8457. this.u = [];
  8458. this.yd = [];
  8459. this.q =
  8460. new F.Nj(F.hc, F.gc);
  8461. this.Kk = this.ie = a;
  8462. return p
  8463. },
  8464. CB: function(a, c) {
  8465. this.u = [];
  8466. this.yd = [];
  8467. this.q = new F.Nj(F.hc, F.gc);
  8468. c = c || F.Iy;
  8469. this.textureAtlas = new F.Vj;
  8470. this.textureAtlas.sa(a, c);
  8471. this.Sf();
  8472. this.shaderProgram = F.Jd.oc(F.Pi);
  8473. return p
  8474. },
  8475. $E: function(a, c) {
  8476. a.batchNode = this;
  8477. a.atlasIndex = c;
  8478. a.dirty = p;
  8479. var d = this.textureAtlas;
  8480. d.totalQuads >= d.capacity && this.mx();
  8481. d.aF(a.quad, c);
  8482. this.yd.splice(c, 0, a);
  8483. var d = c + 1,
  8484. e = this.yd;
  8485. if (e && 0 < e.length)
  8486. for (; d < e.length; d++) e[d].atlasIndex++;
  8487. var e = a.children,
  8488. f;
  8489. if (e) {
  8490. d = 0;
  8491. for (l = e.length ||
  8492. 0; d < l; d++)(f = e[d]) && this.$E(f, this.VY(f, f.zIndex))
  8493. }
  8494. },
  8495. appendChild: q,
  8496. tU: function(a) {
  8497. this.Ud = p;
  8498. a.batchNode = this;
  8499. a.dirty = p;
  8500. this.yd.push(a);
  8501. a.atlasIndex = this.yd.length - 1;
  8502. a = a.children;
  8503. for (var c = 0, d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8504. },
  8505. uU: function(a) {
  8506. this.Ud = p;
  8507. a.batchNode = this;
  8508. a.dirty = p;
  8509. this.yd.push(a);
  8510. var c = this.yd.length - 1;
  8511. a.atlasIndex = c;
  8512. var d = this.textureAtlas;
  8513. d.totalQuads == d.capacity && this.mx();
  8514. d.aF(a.quad, c);
  8515. a = a.children;
  8516. c = 0;
  8517. for (d = a.length || 0; c < d; c++) this.appendChild(a[c])
  8518. },
  8519. Im: q,
  8520. mX: function(a) {
  8521. a.batchNode =
  8522. q;
  8523. var c = this.yd,
  8524. d = c.indexOf(a);
  8525. if (-1 != d) {
  8526. c.splice(d, 1);
  8527. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8528. }
  8529. if (a = a.children) {
  8530. c = 0;
  8531. for (d = a.length || 0; c < d; c++) a[c] && this.Im(a[c])
  8532. }
  8533. },
  8534. nX: function(a) {
  8535. this.textureAtlas.wO(a.atlasIndex);
  8536. a.batchNode = q;
  8537. var c = this.yd,
  8538. d = c.indexOf(a);
  8539. if (-1 != d) {
  8540. c.splice(d, 1);
  8541. for (var e = c.length; d < e; ++d) c[d].atlasIndex--
  8542. }
  8543. if (a = a.children) {
  8544. c = 0;
  8545. for (d = a.length || 0; c < d; c++) a[c] && this.Im(a[c])
  8546. }
  8547. },
  8548. Oa: q,
  8549. or: A("Kk"),
  8550. wB: function() {
  8551. return this.textureAtlas.texture
  8552. },
  8553. pb: q,
  8554. VC: function(a) {
  8555. this.Kk = a;
  8556. for (var c =
  8557. this.u, d = 0; d < c.length; d++) c[d].texture = a
  8558. },
  8559. WC: function(a) {
  8560. this.textureAtlas.texture = a;
  8561. this.Sf()
  8562. },
  8563. S: q,
  8564. gm: function(a) {
  8565. var c = a || F.m;
  8566. if (this.yc) {
  8567. c.save();
  8568. this.transform(a);
  8569. var d = this.u;
  8570. if (d) {
  8571. this.Wc();
  8572. for (a = 0; a < d.length; a++) d[a] && d[a].S(c)
  8573. }
  8574. c.restore()
  8575. }
  8576. },
  8577. ls: function(a) {
  8578. a = a || F.m;
  8579. if (this.yc) {
  8580. F.Bm();
  8581. var c = this.grid;
  8582. c && c.tf() && (c.ts(), this.uy());
  8583. this.Wc();
  8584. this.transform(a);
  8585. this.Y(a);
  8586. c && c.tf() && c.qs(this);
  8587. F.Am();
  8588. this.arrivalOrder = 0
  8589. }
  8590. },
  8591. Q: q,
  8592. wA: function(a, c, d) {
  8593. F.assert(a != q, F.i.dQ);
  8594. a instanceof F.aa ? (c = c == q ? a.zIndex :
  8595. c, d = d == q ? a.tag : d, F.t.prototype.Q.call(this, a, c, d), this.appendChild(a), this.Ka()) : F.log(F.i.bQ)
  8596. },
  8597. rU: function(a, c, d) {
  8598. F.assert(a != q, F.i.SS);
  8599. a instanceof F.aa ? a.texture != this.textureAtlas.texture ? F.log(F.i.RS) : (c = c == q ? a.zIndex : c, d = d == q ? a.tag : d, F.t.prototype.Q.call(this, a, c, d), this.appendChild(a), this.Ka()) : F.log(F.i.QS)
  8600. },
  8601. Jg: q,
  8602. kX: function(a) {
  8603. var c = this.yd;
  8604. if (c && 0 < c.length)
  8605. for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = q);
  8606. F.t.prototype.Jg.call(this, a);
  8607. this.yd.length = 0
  8608. },
  8609. lX: function(a) {
  8610. var c = this.yd;
  8611. if (c && 0 < c.length)
  8612. for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = q);
  8613. F.t.prototype.Jg.call(this, a);
  8614. this.yd.length = 0;
  8615. this.textureAtlas.uO()
  8616. },
  8617. Wc: q,
  8618. eY: function() {
  8619. if (this.Ud) {
  8620. var a, c = 0,
  8621. d = this.u,
  8622. e = d.length,
  8623. f;
  8624. for (a = 1; a < e; a++) {
  8625. var g = d[a],
  8626. c = a - 1;
  8627. for (f = d[c]; 0 <= c && (g.yb < f.yb || g.yb == f.yb && g.arrivalOrder < f.arrivalOrder);) d[c + 1] = f, c -= 1, f = d[c];
  8628. d[c + 1] = g
  8629. }
  8630. 0 < d.length && this.rg(d, F.t.Af.Wc);
  8631. this.Ud = r
  8632. }
  8633. },
  8634. fY: function() {
  8635. if (this.Ud) {
  8636. var a = this.u,
  8637. c, d = 0,
  8638. e = a.length,
  8639. f;
  8640. for (c = 1; c < e; c++) {
  8641. var g = a[c],
  8642. d = c - 1;
  8643. for (f = a[d]; 0 <= d && (g.yb <
  8644. f.yb || g.yb == f.yb && g.arrivalOrder < f.arrivalOrder);) a[d + 1] = f, d -= 1, f = a[d];
  8645. a[d + 1] = g
  8646. }
  8647. if (0 < a.length) {
  8648. this.rg(a, F.t.Af.Wc);
  8649. for (c = d = 0; c < a.length; c++) d = this.HL(a[c], d)
  8650. }
  8651. this.Ud = r
  8652. }
  8653. },
  8654. Y: q,
  8655. Wi: function() {
  8656. 0 !== this.textureAtlas.totalQuads && (this.Ib.Nc(), this.Ib.Ze(), this.rg(this.u, F.t.Af.$e), F.Eh(this.q.src, this.q.U), this.textureAtlas.zM())
  8657. }
  8658. });
  8659. M = F.yf.prototype;
  8660. F.B === F.$ ? (M.ctor = M.$q, M.GP = M.zY, M.rx = M.qW, M.sa = M.CB, M.appendChild = M.uU, M.Im = M.nX, M.Oa = M.wB, M.pb = M.WC, M.S = M.ls, M.Q = M.rU, M.Jg = M.lX, M.Wc = M.fY, M.Y = M.Wi) : (M.ctor = M.Zq, M.GP = M.yY, M.rx = M.pW, M.sa = M.BB, M.appendChild = M.tU, M.Im = M.mX, M.Oa = M.or, M.pb = M.VC, M.S = M.gm, M.Jg = M.kX, M.Q = M.wA, M.Wc = M.eY, M.Y = F.t.prototype.Y);
  8661. F.j(M, "texture", M.Oa, M.pb);
  8662. F.j(M, "descendants", M.q_);
  8663. F.yf.create = function(a, c) {
  8664. return new F.yf(a, c)
  8665. };
  8666. F.ZP = F.aa.extend({
  8667. ae: q,
  8668. Ae: q,
  8669. ctor: function() {
  8670. F.aa.prototype.ctor.call(this);
  8671. var a = document.createElement("canvas");
  8672. a.width = a.height = 10;
  8673. this.ae = a;
  8674. this.Ae = a.getContext("2d");
  8675. var c = new F.ea;
  8676. c.Ed(a);
  8677. c.Wb();
  8678. this.pb(c)
  8679. },
  8680. uaa: A("Ae"),
  8681. taa: A("ae"),
  8682. zO: function(a, c) {
  8683. c === k && (c = a.height, a = a.width);
  8684. var d = this.ae;
  8685. d.width = a;
  8686. d.height = c;
  8687. this.Oa().Wb();
  8688. this.vb(F.rect(0, 0, a, c), r)
  8689. }
  8690. });
  8691. F.kg = F.ma.extend({
  8692. ko: q,
  8693. Qd: 0,
  8694. wo: q,
  8695. ctor: function(a, c, d) {
  8696. this.ko = a || q;
  8697. this.Qd = c || 0;
  8698. this.wo = d || q
  8699. },
  8700. l: function() {
  8701. var a = new F.kg;
  8702. a.vi(this.ko.l(), this.Qd, this.wo);
  8703. return a
  8704. },
  8705. Pw: function() {
  8706. return F.l(this)
  8707. },
  8708. copy: function() {
  8709. var a = new F.kg;
  8710. a.vi(this.ko.l(), this.Qd, this.wo);
  8711. return a
  8712. },
  8713. vi: function(a, c, d) {
  8714. this.ko = a;
  8715. this.Qd = c;
  8716. this.wo = d;
  8717. return p
  8718. },
  8719. wj: A("ko"),
  8720. bl: y("ko"),
  8721. Iaa: A("Qd"),
  8722. hia: y("Qd"),
  8723. Lca: A("wo"),
  8724. Nja: y("wo")
  8725. });
  8726. F.kg.create = function(a, c, d) {
  8727. return new F.kg(a, c, d)
  8728. };
  8729. F.il = F.ma.extend({
  8730. Rd: q,
  8731. bj: 0,
  8732. Ul: r,
  8733. p: 0,
  8734. Qd: 0,
  8735. pi: 0,
  8736. ctor: function(a, c, d) {
  8737. this.Rd = [];
  8738. if (a === k) this.EN(q, 0);
  8739. else {
  8740. var e = a[0];
  8741. e && (e instanceof F.zf ? this.EN(a, c, d) : e instanceof F.kg && this.nx(a, c, d))
  8742. }
  8743. },
  8744. eba: A("Rd"),
  8745. tia: y("Rd"),
  8746. PD: function(a) {
  8747. var c = new F.kg;
  8748. c.vi(a, 1, q);
  8749. this.Rd.push(c);
  8750. this.pi++
  8751. },
  8752. Q8: function(a) {
  8753. a = F.Fa.Hc(a);
  8754. var c = F.rect(0, 0, 0, 0);
  8755. c.width = a.width;
  8756. c.height = a.height;
  8757. a = F.zf.create(a, c);
  8758. this.PD(a)
  8759. },
  8760. R8: function(a, c) {
  8761. var d = F.zf.create(a, c);
  8762. this.PD(d)
  8763. },
  8764. nx: function(a, c, d) {
  8765. F.zo(a, F.kg);
  8766. this.Qd = c;
  8767. this.bj =
  8768. d === k ? 1 : d;
  8769. this.pi = 0;
  8770. c = this.Rd;
  8771. for (d = c.length = 0; d < a.length; d++) {
  8772. var e = a[d];
  8773. c.push(e);
  8774. this.pi += e.Qd
  8775. }
  8776. return p
  8777. },
  8778. l: function() {
  8779. var a = new F.il;
  8780. a.nx(this.WI(), this.Qd, this.bj);
  8781. a.my(this.Ul);
  8782. return a
  8783. },
  8784. Pw: function() {
  8785. var a = new F.il;
  8786. a.nx(this.WI(), this.Qd, this.bj);
  8787. a.my(this.Ul);
  8788. return a
  8789. },
  8790. WI: function() {
  8791. for (var a = [], c = 0; c < this.Rd.length; c++) a.push(this.Rd[c].l());
  8792. return a
  8793. },
  8794. copy: function() {
  8795. return this.Pw(q)
  8796. },
  8797. uba: A("bj"),
  8798. Fia: y("bj"),
  8799. my: y("Ul"),
  8800. dca: A("Ul"),
  8801. Qo: function() {
  8802. return this.pi * this.Qd
  8803. },
  8804. Haa: A("Qd"),
  8805. gia: y("Qd"),
  8806. Eca: A("pi"),
  8807. EN: function(a, c, d) {
  8808. F.zo(a, F.zf);
  8809. this.bj = d === k ? 1 : d;
  8810. this.Qd = c || 0;
  8811. this.pi = 0;
  8812. c = this.Rd;
  8813. c.length = 0;
  8814. if (a) {
  8815. for (d = 0; d < a.length; d++) {
  8816. var e = a[d],
  8817. f = new F.kg;
  8818. f.vi(e, 1, q);
  8819. c.push(f)
  8820. }
  8821. this.pi += a.length
  8822. }
  8823. return p
  8824. },
  8825. ay: t(),
  8826. Ei: t()
  8827. });
  8828. F.il.create = function(a, c, d) {
  8829. return new F.il(a, c, d)
  8830. };
  8831. F.Ew = {
  8832. kn: {},
  8833. OL: function(a, c) {
  8834. this.kn[c] = a
  8835. },
  8836. lha: function(a) {
  8837. a && this.kn[a] && delete this.kn[a]
  8838. },
  8839. JM: function(a) {
  8840. return this.kn[a] ? this.kn[a] : q
  8841. },
  8842. qU: function(a, c) {
  8843. var d = a.animations;
  8844. if (d) {
  8845. var e = 1,
  8846. f = a.properties;
  8847. if (f)
  8848. for (var e = f.format != q ? parseInt(f.format) : e, f = f.spritesheets, g = F.cl, h = F.path, m = 0; m < f.length; m++) g.FY(h.Co(c, f[m]));
  8849. switch (e) {
  8850. case 1:
  8851. this.bX(d);
  8852. break;
  8853. case 2:
  8854. this.cX(d);
  8855. break;
  8856. default:
  8857. F.log(F.i.MY)
  8858. }
  8859. } else F.log(F.i.LY)
  8860. },
  8861. J8: function(a) {
  8862. F.assert(a, F.i.UY);
  8863. var c = F.V.Dd(a);
  8864. c ? this.qU(c, a) : F.log(F.i.TY)
  8865. },
  8866. bX: function(a) {
  8867. var c = F.cl,
  8868. d;
  8869. for (d in a) {
  8870. var e = a[d],
  8871. f = e.frames,
  8872. e = parseFloat(e.delay) || 0,
  8873. g = q;
  8874. if (f) {
  8875. for (var g = [], h = 0; h < f.length; h++) {
  8876. var m = c.wj(f[h]);
  8877. if (m) {
  8878. var n = new F.kg;
  8879. n.vi(m, 1, q);
  8880. g.push(n)
  8881. } else F.log(F.i.OY, d, f[h])
  8882. }
  8883. 0 === g.length ? F.log(F.i.PY, d) : (g.length != f.length && F.log(F.i.QY, d), g = F.il.create(g, e, 1), F.Ew.OL(g, d))
  8884. } else F.log(F.i.NY, d)
  8885. }
  8886. },
  8887. cX: function(a) {
  8888. var c = F.cl,
  8889. d;
  8890. for (d in a) {
  8891. var e = a[d],
  8892. f = parseInt(e.loops),
  8893. f = e.loop ? F.oq : isNaN(f) ? 1 : f,
  8894. g = e.restoreOriginalFrame && e.restoreOriginalFrame == p ? p : r,
  8895. h = e.frames;
  8896. if (h) {
  8897. for (var m = [], n = 0; n < h.length; n++) {
  8898. var s = h[n],
  8899. u = s.spriteframe,
  8900. v = c.wj(u);
  8901. if (v) {
  8902. var u = parseFloat(s.delayUnits) || 0,
  8903. s = s.notification,
  8904. x = new F.kg;
  8905. x.vi(v, u, s);
  8906. m.push(x)
  8907. } else F.log(F.i.SY, d, u)
  8908. }
  8909. e = parseFloat(e.delayPerUnit) || 0;
  8910. h = new F.il;
  8911. h.nx(m, e, f);
  8912. h.my(g);
  8913. F.Ew.OL(h, d)
  8914. } else F.log(F.i.RY, d)
  8915. }
  8916. },
  8917. hk: function() {
  8918. this.kn = {}
  8919. }
  8920. };
  8921. F.zf = F.ma.extend({
  8922. la: q,
  8923. jf: q,
  8924. He: q,
  8925. ke: r,
  8926. ia: q,
  8927. Lf: q,
  8928. Mf: q,
  8929. L: q,
  8930. po: "",
  8931. oa: r,
  8932. nv: q,
  8933. ctor: function(a, c, d, e, f) {
  8934. this.la = F.d(0, 0);
  8935. this.Lf = F.d(0, 0);
  8936. this.jf = F.size(0, 0);
  8937. this.ke = r;
  8938. this.Mf = F.size(0, 0);
  8939. this.po = "";
  8940. this.L = q;
  8941. this.oa = r;
  8942. a !== k && c !== k && (d === k || e === k || f === k ? this.sa(a, c) : this.sa(a, c, d, e, f))
  8943. },
  8944. xt: A("oa"),
  8945. Wd: function(a, c) {
  8946. this.nv == q && (this.nv = []);
  8947. this.nv.push({
  8948. yh: a,
  8949. Vf: c
  8950. })
  8951. },
  8952. Od: function() {
  8953. var a = this.nv;
  8954. if (a) {
  8955. for (var c = 0, d = a.length; c < d; c++) {
  8956. var e = a[c];
  8957. e.yh.call(e.Vf, this)
  8958. }
  8959. a.length = 0
  8960. }
  8961. },
  8962. W_: function() {
  8963. var a = this.He;
  8964. return F.rect(a.x,
  8965. a.y, a.width, a.height)
  8966. },
  8967. dja: function(a) {
  8968. this.He || (this.He = F.rect(0, 0, 0, 0));
  8969. this.He.x = a.x;
  8970. this.He.y = a.y;
  8971. this.He.width = a.width;
  8972. this.He.height = a.height;
  8973. this.ia = F.Gj(a)
  8974. },
  8975. Ada: A("ke"),
  8976. fja: y("ke"),
  8977. Dh: function() {
  8978. var a = this.ia;
  8979. return F.rect(a.x, a.y, a.width, a.height)
  8980. },
  8981. ZO: function(a) {
  8982. this.ia || (this.ia = F.rect(0, 0, 0, 0));
  8983. this.ia.x = a.x;
  8984. this.ia.y = a.y;
  8985. this.ia.width = a.width;
  8986. this.ia.height = a.height;
  8987. this.He = F.lt(this.ia)
  8988. },
  8989. Gba: A("Lf"),
  8990. Oia: function(a) {
  8991. this.Lf.x = a.x;
  8992. this.Lf.y = a.y;
  8993. F.gC(this.Lf, this.la)
  8994. },
  8995. Mba: A("Mf"),
  8996. Sia: function(a) {
  8997. this.Mf.width =
  8998. a.width;
  8999. this.Mf.height = a.height
  9000. },
  9001. Lba: A("jf"),
  9002. Ria: function(a) {
  9003. this.jf.width = a.width;
  9004. this.jf.height = a.height
  9005. },
  9006. Oa: function() {
  9007. if (this.L) return this.L;
  9008. if ("" !== this.po) {
  9009. var a = F.Fa.Hc(this.po);
  9010. a && (this.oa = a.uc);
  9011. return a
  9012. }
  9013. return q
  9014. },
  9015. pb: function(a) {
  9016. if (this.L != a) {
  9017. var c = a.uc;
  9018. this.oa = c;
  9019. this.L = a;
  9020. c || a.Wd(function(a) {
  9021. this.oa = p;
  9022. if (this.ke && F.B === F.Ca) {
  9023. var c = a.Eb,
  9024. c = F.kE(c, this.Dh()),
  9025. f = new F.ea;
  9026. f.Ed(c);
  9027. f.Wb();
  9028. this.pb(f);
  9029. c = this.Dh();
  9030. this.ZO(F.rect(0, 0, c.width, c.height))
  9031. }
  9032. c = this.ia;
  9033. 0 === c.width && 0 === c.height && (c = a.width,
  9034. a = a.height, this.ia.width = c, this.ia.height = a, this.He = F.lt(this.ia), this.Mf.width = this.He.width, this.Mf.height = this.He.height, this.jf.width = c, this.jf.height = a);
  9035. this.Od()
  9036. }, this)
  9037. }
  9038. },
  9039. UM: A("la"),
  9040. ky: function(a) {
  9041. this.la.x = a.x;
  9042. this.la.y = a.y
  9043. },
  9044. l: function() {
  9045. var a = new F.zf;
  9046. a.sa(this.po, this.He, this.ke, this.Lf, this.Mf);
  9047. a.pb(this.L);
  9048. return a
  9049. },
  9050. Pw: function() {
  9051. var a = new F.zf;
  9052. a.sa(this.po, this.He, this.ke, this.Lf, this.Mf);
  9053. a.pb(this.L);
  9054. return a
  9055. },
  9056. copy: function() {
  9057. return this.Pw()
  9058. },
  9059. sa: function(a, c, d, e, f) {
  9060. 2 === arguments.length &&
  9061. (c = F.lt(c));
  9062. e = e || F.d(0, 0);
  9063. f = f || c;
  9064. d = d || r;
  9065. "string" == typeof a ? (this.L = q, this.po = a) : a instanceof F.ea && this.pb(a);
  9066. if (a = this.Oa()) {
  9067. var g, h;
  9068. d ? (g = c.x + c.height, h = c.y + c.width) : (g = c.x + c.width, h = c.y + c.height);
  9069. g > a.width && F.error(F.i.Cz, a.url);
  9070. h > a.height && F.error(F.i.Bz, a.url)
  9071. }
  9072. this.He = c;
  9073. this.ia = F.Gj(c);
  9074. this.Lf.x = e.x;
  9075. this.Lf.y = e.y;
  9076. F.gC(e, this.la);
  9077. this.Mf.width = f.width;
  9078. this.Mf.height = f.height;
  9079. F.sL(f, this.jf);
  9080. this.ke = d;
  9081. return p
  9082. }
  9083. });
  9084. F.zf.create = function(a, c, d, e, f) {
  9085. return new F.zf(a, c, d, e, f)
  9086. };
  9087. F.zf.R7 = function(a, c, d, e, f) {
  9088. var g = new F.zf;
  9089. g.L = a;
  9090. g.He = c;
  9091. g.ia = F.Gj(c);
  9092. g.Lf.x = e.x;
  9093. g.Lf.y = e.y;
  9094. F.gC(g.Lf, g.la);
  9095. g.Mf.width = f.width;
  9096. g.Mf.height = f.height;
  9097. F.sL(g.Mf, g.jf);
  9098. g.ke = d;
  9099. return g
  9100. };
  9101. F.cl = {
  9102. BI: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  9103. dU: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  9104. rh: {},
  9105. nj: {},
  9106. Mn: {},
  9107. RK: function(a) {
  9108. a = this.dU.exec(a);
  9109. return !a ? F.rect(0, 0, 0, 0) : F.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4]))
  9110. },
  9111. HK: function(a) {
  9112. a = this.BI.exec(a);
  9113. return !a ? F.d(0, 0) : F.d(parseFloat(a[1]), parseFloat(a[2]))
  9114. },
  9115. ZC: function(a) {
  9116. a = this.BI.exec(a);
  9117. return !a ? F.size(0, 0) :
  9118. F.size(parseFloat(a[1]), parseFloat(a[2]))
  9119. },
  9120. DV: function(a) {
  9121. var c = F.V.Dd(a);
  9122. F.assert(c, F.i.c4, a);
  9123. F.V.Ei(a);
  9124. if (c.Tn) return this.Mn[a] = c;
  9125. var d = c.frames,
  9126. e = c.metadata || c.meta,
  9127. c = {},
  9128. f = {},
  9129. g = 0;
  9130. e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.w0 = e.textureFileName || e.textureFileName || e.image);
  9131. for (var h in d) {
  9132. var m = d[h];
  9133. if (m) {
  9134. e = {};
  9135. if (0 == g) {
  9136. e.rect = F.rect(m.x, m.y, m.width, m.height);
  9137. e.dy = r;
  9138. e.offset = F.d(m.offsetX, m.offsetY);
  9139. var n = m.originalWidth,
  9140. m = m.originalHeight;
  9141. (!n || !m) && F.log(F.i.b4);
  9142. n = Math.abs(n);
  9143. m = Math.abs(m);
  9144. e.size =
  9145. F.size(n, m)
  9146. } else if (1 == g || 2 == g) e.rect = this.RK(m.frame), e.dy = m.rotated || r, e.offset = this.HK(m.offset), e.size = this.ZC(m.sourceSize);
  9147. else if (3 == g) {
  9148. var n = this.ZC(m.spriteSize),
  9149. s = this.RK(m.textureRect);
  9150. n && (s = F.rect(s.x, s.y, n.width, n.height));
  9151. e.rect = s;
  9152. e.dy = m.textureRotated || r;
  9153. e.offset = this.HK(m.spriteOffset);
  9154. e.size = this.ZC(m.spriteSourceSize);
  9155. e.IY = m.aliases
  9156. } else n = m.frame, s = m.sourceSize, h = m.filename || h, e.rect = F.rect(n.x, n.y, n.w, n.h), e.dy = m.rotated || r, e.offset = F.d(0, 0), e.size = F.size(s.w, s.h);
  9157. c[h] = e
  9158. }
  9159. }
  9160. return this.Mn[a] = {
  9161. Tn: p,
  9162. frames: c,
  9163. H1: f
  9164. }
  9165. },
  9166. FY: function(a, c) {
  9167. F.assert(a, F.i.e4);
  9168. var d = this.Mn[a] || F.V.Dd(a);
  9169. if (d && d.frames) {
  9170. var e = this.Mn[a] || this.DV(a),
  9171. d = e.frames,
  9172. e = e.H1;
  9173. c ? c instanceof F.ea || ("string" == typeof c ? c = F.Fa.Hc(c) : F.assert(0, F.i.f4)) : c = F.Fa.Hc(F.path.Co(a, e.w0 || ".png"));
  9174. var e = this.nj,
  9175. f = this.rh,
  9176. g;
  9177. for (g in d) {
  9178. var h = d[g],
  9179. m = f[g];
  9180. if (!m) {
  9181. m = F.zf.create(c, h.rect, h.dy, h.offset, h.size);
  9182. if (h = h.IY)
  9183. for (var n = 0, s = h.length; n < s; n++) {
  9184. var u = h[n];
  9185. e[u] && F.log(F.i.d4, u);
  9186. e[u] = g
  9187. }
  9188. F.B === F.Ca && m.ke && m.Oa().uc && (h = m.Oa().Eb, h = F.kE(h,
  9189. m.W_()), n = new F.ea, n.Ed(h), n.Wb(), m.pb(n), h = m.ia, m.ZO(F.rect(0, 0, h.width, h.height)));
  9190. f[g] = m
  9191. }
  9192. }
  9193. }
  9194. },
  9195. I7: function(a) {
  9196. a = a.frames;
  9197. for (var c in a) this.rh[c] && F.log(F.i.a4, c)
  9198. },
  9199. PD: function(a, c) {
  9200. this.rh[c] = a
  9201. },
  9202. sha: function() {
  9203. this.rh = {};
  9204. this.nj = {}
  9205. },
  9206. rha: function(a) {
  9207. a && (this.nj[a] && delete this.nj[a], this.rh[a] && delete this.rh[a])
  9208. },
  9209. tha: function(a) {
  9210. var c = this.rh,
  9211. d = this.nj;
  9212. if (a = this.Mn[a]) {
  9213. a = a.frames;
  9214. for (var e in a)
  9215. if (c[e]) {
  9216. delete c[e];
  9217. for (var f in d) d[f] == e && delete d[f]
  9218. }
  9219. }
  9220. },
  9221. uha: function(a) {
  9222. var c = this.rh,
  9223. d = this.nj,
  9224. e;
  9225. for (e in c) {
  9226. var f = c[e];
  9227. if (f && f.Oa() == a) {
  9228. delete c[e];
  9229. for (var g in d) d[g] == e && delete d[g]
  9230. }
  9231. }
  9232. },
  9233. wj: function(a) {
  9234. var c = this.rh[a];
  9235. if (!c) {
  9236. var d = this.nj[a];
  9237. d && ((c = this.rh[d.toString()]) || delete this.nj[a])
  9238. }
  9239. c || F.log(F.i.g4, a);
  9240. return c
  9241. },
  9242. hk: function() {
  9243. this.rh = {};
  9244. this.nj = {};
  9245. this.Mn = {}
  9246. }
  9247. };
  9248. F.Fo = {
  9249. S5: 0,
  9250. Q6: 1,
  9251. INT: 2,
  9252. O5: 3,
  9253. p5: 4,
  9254. Ar: 0,
  9255. FW: 0,
  9256. oD: r,
  9257. tw: r,
  9258. mD: r,
  9259. nD: r,
  9260. pD: r,
  9261. g8: 0,
  9262. RB: 0,
  9263. Fu: "",
  9264. hs: {},
  9265. Tn: r,
  9266. tr: function() {
  9267. var a = this.hs;
  9268. a["cocos2d.x.version"] = F.Oy;
  9269. a["cocos2d.x.compiled_with_profiler"] = r;
  9270. a["cocos2d.x.compiled_with_gl_state_cache"] = F.Wg;
  9271. this.Tn = p
  9272. },
  9273. zba: A("Ar"),
  9274. yba: A("FW"),
  9275. Aba: A("RB"),
  9276. eka: A("tw"),
  9277. fka: A("oD"),
  9278. dka: E(r),
  9279. gka: E(r),
  9280. aka: E(r),
  9281. bka: A("mD"),
  9282. cka: A("nD"),
  9283. hka: A("pD"),
  9284. Do: function(a) {
  9285. return -1 < this.Fu.indexOf(a)
  9286. },
  9287. Nca: function(a, c) {
  9288. this.Tn || this.tr();
  9289. var d = this.hs;
  9290. return d[a] ? d[a] : c
  9291. },
  9292. Pja: function(a,
  9293. c) {
  9294. this.hs[a] = c
  9295. },
  9296. JZ: function() {
  9297. 0 === F.Wg && (F.log(""), F.log(F.i.lZ), F.log(""))
  9298. },
  9299. f_: function() {
  9300. if (F.B !== F.Ca) {
  9301. this.Tn || this.tr();
  9302. var a = F.m,
  9303. c = this.hs;
  9304. c["gl.vendor"] = a.getParameter(a.VENDOR);
  9305. c["gl.renderer"] = a.getParameter(a.RENDERER);
  9306. c["gl.version"] = a.getParameter(a.VERSION);
  9307. this.Fu = "";
  9308. for (var d = a.getSupportedExtensions(), e = 0; e < d.length; e++) this.Fu += d[e] + " ";
  9309. this.Ar = a.getParameter(a.MAX_TEXTURE_SIZE);
  9310. c["gl.max_texture_size"] = this.Ar;
  9311. this.RB = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  9312. c["gl.max_texture_units"] =
  9313. this.RB;
  9314. this.oD = this.Do("GL_IMG_texture_compression_pvrtc");
  9315. c["gl.supports_PVRTC"] = this.oD;
  9316. this.tw = r;
  9317. c["gl.supports_NPOT"] = this.tw;
  9318. this.mD = this.Do("GL_IMG_texture_format_BGRA888");
  9319. c["gl.supports_BGRA8888"] = this.mD;
  9320. this.nD = this.Do("GL_EXT_discard_framebuffer");
  9321. c["gl.supports_discard_framebuffer"] = this.nD;
  9322. this.pD = this.Do("vertex_array_object");
  9323. c["gl.supports_vertex_array_object"] = this.pD;
  9324. F.Eo()
  9325. }
  9326. },
  9327. Ffa: function(a) {
  9328. this.Tn || this.tr();
  9329. var c = F.V.Dd(a);
  9330. c || b("Please load the resource first : " + a);
  9331. F.assert(c,
  9332. F.i.nZ, a);
  9333. if (c = c.data)
  9334. for (var d in c) this.hs[d] = c[d];
  9335. else F.log(F.i.mZ, a)
  9336. }
  9337. };
  9338. F.C.Ly = function() {
  9339. F.Q5 = F.ma.extend({
  9340. Bka: t()
  9341. });
  9342. var a = F.Xa.prototype;
  9343. a.Mm = function(a) {
  9344. var d = this.T;
  9345. this.iP();
  9346. var e = this.ih,
  9347. f = e.pe.x / e.qa,
  9348. g = e.pe.y / e.Ra;
  9349. switch (a) {
  9350. case F.Xa.aS:
  9351. F.yi(F.Ni);
  9352. F.Xo();
  9353. e = new F.ca;
  9354. F.iF(e, 0, d.width, 0, d.height, -1024, 1024);
  9355. F.Yo(e);
  9356. F.yi(F.Mi);
  9357. F.Xo();
  9358. break;
  9359. case F.Xa.iH:
  9360. var h = this.Is(),
  9361. m = new F.ca,
  9362. e = new F.ca;
  9363. F.yi(F.Ni);
  9364. F.Xo();
  9365. F.n1(m, d.width / d.height, 2 * h);
  9366. F.Yo(m);
  9367. F.yi(F.Mi);
  9368. F.Xo();
  9369. h = F.$o(q, -f + d.width / 2, -g + d.height / 2, h);
  9370. d = F.$o(q, -f + d.width / 2, -g + d.height / 2, 0);
  9371. f = F.$o(q, 0, 1, 0);
  9372. F.KN(e, h, d,
  9373. f);
  9374. F.Yo(e);
  9375. break;
  9376. case F.Xa.bS:
  9377. break;
  9378. default:
  9379. F.log(F.i.xQ)
  9380. }
  9381. this.ki = a;
  9382. F.ua.dispatchEvent(this.ov);
  9383. F.XO()
  9384. };
  9385. a.KO = function(a) {
  9386. var d = F.m;
  9387. a ? (d.clearDepth(1), d.enable(d.DEPTH_TEST), d.depthFunc(d.LEQUAL)) : d.disable(d.DEPTH_TEST)
  9388. };
  9389. a.TF = function(a) {
  9390. this.T.width = F.Za.width;
  9391. this.T.height = F.Za.height;
  9392. this.ih = a || F.view;
  9393. a = F.Fo;
  9394. a.f_();
  9395. a.JZ();
  9396. this.zn();
  9397. this.QO();
  9398. F.ua && F.ua.se(p)
  9399. };
  9400. a.hk = function() {
  9401. var a = F.m;
  9402. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  9403. };
  9404. a.DA = function() {
  9405. F.Bm()
  9406. };
  9407. a.xA = function() {
  9408. F.Am()
  9409. };
  9410. a.zn = function() {
  9411. if (F.Ph) {
  9412. if (!(F.Xa.SJ ==
  9413. q || F.Xa.SJ == r)) {
  9414. var a = new F.ea;
  9415. a.Ed(F.Xa.Ln);
  9416. a.Wb();
  9417. var d = F.view.AE().height / 320;
  9418. 0 === d && (d = this.T.height / 320);
  9419. var e = new F.Ph;
  9420. e.NC(p);
  9421. e.pd("00.0", a, 12, 32, ".");
  9422. e.scale = d;
  9423. this.Bf = e;
  9424. e = new F.Ph;
  9425. e.NC(p);
  9426. e.pd("0.000", a, 12, 32, ".");
  9427. e.scale = d;
  9428. this.Cf = e;
  9429. e = new F.Ph;
  9430. e.NC(p);
  9431. e.pd("000", a, 12, 32, ".");
  9432. e.scale = d;
  9433. this.Ff = e;
  9434. a = F.Jy;
  9435. this.Ff.G(a.x, 34 * d + a.y);
  9436. this.Cf.G(a.x, 17 * d + a.y);
  9437. this.Bf.G(a)
  9438. }
  9439. } else this.$U()
  9440. };
  9441. a.$U = function() {
  9442. var a = 0,
  9443. a = this.T.width > this.T.height ? 0 | 24 * (this.T.height / 320) : 0 | 24 * (this.T.width / 320);
  9444. this.Bf =
  9445. F.Z.create("000.0", "Arial", a);
  9446. this.Cf = F.Z.create("0.000", "Arial", a);
  9447. this.Ff = F.Z.create("0000", "Arial", a);
  9448. a = F.Jy;
  9449. this.Ff.G(this.Ff.width / 2 + a.x, 5 * this.Ff.height / 2 + a.y);
  9450. this.Cf.G(this.Cf.width / 2 + a.x, 3 * this.Cf.height / 2 + a.y);
  9451. this.Bf.G(this.Bf.width / 2 + a.x, this.Bf.height / 2 + a.y)
  9452. };
  9453. a.oZ = function(a) {
  9454. var d = new F.ca;
  9455. F.QG(d);
  9456. var e = new F.ca;
  9457. F.m1(e, d);
  9458. var d = d.c[14] / d.c[15],
  9459. f = this.ih.AE(),
  9460. g = new F.ub;
  9461. F.UN(g, new F.ub(2 * a.x / f.width - 1, 1 - 2 * a.y / f.height, d), e);
  9462. return F.d(g.x, g.y)
  9463. };
  9464. a.qZ = function(a) {
  9465. var d = new F.ca;
  9466. F.QG(d);
  9467. var e = new F.ub;
  9468. F.UN(e, new F.ub(a.x, a.y, 0), d);
  9469. a = this.ih.AE();
  9470. return F.d(a.width * (0.5 * e.x + 0.5), a.height * (0.5 * -e.y + 0.5))
  9471. };
  9472. a.Gs = function() {
  9473. return this.ih.Gs()
  9474. };
  9475. a.ME = function() {
  9476. return this.ih.ME()
  9477. };
  9478. a.Is = function() {
  9479. return this.T.height / 1.1566
  9480. };
  9481. a.iP = function() {
  9482. var a = this.ih;
  9483. if (a) {
  9484. var d = this.T;
  9485. a.R3(-a.pe.x / a.qa, -a.pe.y / a.Ra, d.width, d.height)
  9486. }
  9487. };
  9488. a.Iba = A("ih");
  9489. a.Zba = A("ki");
  9490. a.P2 = function() {
  9491. F.Eh(F.hc, F.gc)
  9492. };
  9493. a.QO = function() {
  9494. this.P2();
  9495. this.KO(r);
  9496. this.Mm(this.ki);
  9497. F.m.clearColor(0, 0, 0, 1)
  9498. }
  9499. };
  9500. F.Wf = 0;
  9501. F.QG = function(a) {
  9502. var c = new F.ca;
  9503. F.wx(F.Ni, c);
  9504. var d = new F.ca;
  9505. F.wx(F.Mi, d);
  9506. F.zi(a, c, d)
  9507. };
  9508. F.Xa = F.ma.extend({
  9509. b8: r,
  9510. Dr: r,
  9511. mc: r,
  9512. Xv: r,
  9513. Bk: r,
  9514. Rq: 0,
  9515. VB: 0,
  9516. ki: 0,
  9517. jn: 0,
  9518. Zg: 1,
  9519. er: r,
  9520. ik: 0,
  9521. jB: 0,
  9522. Bf: q,
  9523. Cf: q,
  9524. Ff: q,
  9525. T: q,
  9526. vk: q,
  9527. di: q,
  9528. Nv: q,
  9529. ih: q,
  9530. ni: q,
  9531. tC: q,
  9532. Ec: q,
  9533. Rd: 0,
  9534. ww: 0,
  9535. GC: 0,
  9536. O7: q,
  9537. Pf: q,
  9538. qg: q,
  9539. ov: q,
  9540. dB: q,
  9541. fB: q,
  9542. eB: q,
  9543. ctor: function() {
  9544. var a = this;
  9545. a.vk = Date.now();
  9546. F.ua.OD(F.Ic.Mp, function() {
  9547. a.vk = Date.now()
  9548. })
  9549. },
  9550. M: function() {
  9551. this.VB = this.Rq = 1 / F.uZ;
  9552. this.ni = [];
  9553. this.ki = F.Xa.cS;
  9554. this.tC = q;
  9555. this.jB = this.jn = 0;
  9556. this.er = r;
  9557. this.ww = this.Rd = 0;
  9558. this.vk = Date.now();
  9559. this.Xv = this.mc = r;
  9560. this.T = F.size(0, 0);
  9561. this.ih = q;
  9562. this.Zg = 1;
  9563. this.Pf = new F.uq;
  9564. this.qg = F.sG ?
  9565. new F.sG : q;
  9566. this.Pf.KF(this.qg, F.uq.ku, r);
  9567. this.dB = new F.Ji(F.Xa.EQ);
  9568. this.dB.setUserData(this);
  9569. this.fB = new F.Ji(F.Xa.GQ);
  9570. this.fB.setUserData(this);
  9571. this.eB = new F.Ji(F.Xa.FQ);
  9572. this.eB.setUserData(this);
  9573. this.ov = new F.Ji(F.Xa.HQ);
  9574. this.ov.setUserData(this);
  9575. return p
  9576. },
  9577. eZ: function() {
  9578. var a = Date.now();
  9579. this.Dr ? (this.ik = 0, this.Dr = r) : this.ik = (a - this.vk) / 1E3;
  9580. 0 < F.Ic.Oe[F.Ic.Ug.xs] && 0.2 < this.ik && (this.ik = 1 / 60);
  9581. this.vk = a
  9582. },
  9583. HZ: function() {
  9584. this.eZ();
  9585. this.mc || (this.Pf.update(this.ik), F.ua.dispatchEvent(this.eB));
  9586. this.hk();
  9587. this.di && this.p3();
  9588. this.DA && this.DA();
  9589. this.Ec && (this.Ec.S(), F.ua.dispatchEvent(this.fB));
  9590. this.Nv && this.Nv.S();
  9591. this.er && this.dY();
  9592. this.xA && this.xA();
  9593. F.ua.dispatchEvent(this.dB);
  9594. this.ww++;
  9595. this.er && this.FU()
  9596. },
  9597. DA: q,
  9598. xA: q,
  9599. end: function() {
  9600. this.Xv = p
  9601. },
  9602. Daa: A("Zg"),
  9603. Cba: A("Nv"),
  9604. Rca: A("T"),
  9605. Hs: function() {
  9606. return F.size(this.T.width * this.Zg, this.T.height * this.Zg)
  9607. },
  9608. pause: function() {
  9609. this.mc || (this.VB = this.Rq, this.IO(0.25), this.mc = p)
  9610. },
  9611. Iga: function() {
  9612. F.assert(this.Ec, F.i.uQ);
  9613. this.ni.pop();
  9614. var a = this.ni.length;
  9615. 0 == a ? this.end() :
  9616. (this.Bk = p, this.di = this.ni[a - 1])
  9617. },
  9618. k2: function() {
  9619. F.Ew.hk();
  9620. F.cl.hk();
  9621. F.Fa.hk()
  9622. },
  9623. l2: function() {
  9624. this.Sk().Ct();
  9625. F.ua && F.ua.se(r);
  9626. this.Ec && (this.Ec.Yf(), this.Ec.Ab(), this.Ec.Ne());
  9627. this.di = this.Ec = q;
  9628. this.ni.length = 0;
  9629. this.qP();
  9630. this.k2();
  9631. F.Eo()
  9632. },
  9633. m2: function(a) {
  9634. F.assert(a, F.i.KG);
  9635. this.Bk = r;
  9636. this.ni.push(a);
  9637. this.di = a
  9638. },
  9639. IF: function(a) {
  9640. F.assert(a, F.i.KG);
  9641. if (this.Ec) {
  9642. var c = this.ni.length;
  9643. 0 === c ? (this.Bk = p, this.ni[c] = a) : (this.Bk = p, this.ni[c - 1] = a);
  9644. this.di = a
  9645. } else this.m2(a), this.oP()
  9646. },
  9647. mp: function() {
  9648. this.mc && (this.IO(this.VB), (this.vk = Date.now()) || F.log(F.i.wQ), this.mc = r, this.ik = 0)
  9649. },
  9650. cia: function(a) {
  9651. a != this.Zg && (this.Zg = a, this.zn())
  9652. },
  9653. fia: t(),
  9654. Kia: y("Dr"),
  9655. p3: function() {
  9656. var a = r,
  9657. c = r;
  9658. F.wa && (a = this.Ec ? this.Ec instanceof F.wa : r, c = this.di ? this.di instanceof F.wa : r);
  9659. if (!c) {
  9660. if (c = this.Ec) c.Yf(), c.Ab();
  9661. this.Bk && c && c.Ne()
  9662. }
  9663. this.Ec = this.di;
  9664. this.di = q;
  9665. !a && this.Ec != q && (this.Ec.da(), this.Ec.Ih())
  9666. },
  9667. Mia: y("Nv"),
  9668. p_: A("tC"),
  9669. Y2: y("tC"),
  9670. dY: function() {
  9671. this.Rd++;
  9672. this.jn += this.ik;
  9673. this.Bf && this.Cf && this.Ff ? (this.jn > F.rQ && (this.Cf.string = this.GC.toFixed(3),
  9674. this.jB = this.Rd / this.jn, this.jn = this.Rd = 0, this.Bf.string = this.jB.toFixed(1), this.Ff.string = (0 | F.Wf).toString()), this.Bf.S(), this.Cf.S(), this.Ff.S()) : this.zn();
  9675. F.Wf = 0
  9676. },
  9677. Dda: A("Bk"),
  9678. fca: A("Ec"),
  9679. oaa: A("Rq"),
  9680. qda: A("er"),
  9681. b3: y("er"),
  9682. kca: A("GC"),
  9683. vda: A("Dr"),
  9684. xda: A("mc"),
  9685. Fca: A("ww"),
  9686. Jga: function() {
  9687. this.f2(1)
  9688. },
  9689. f2: function(a) {
  9690. F.assert(this.Ec, F.i.vQ);
  9691. var c = this.ni,
  9692. d = c.length;
  9693. if (0 == d) this.end();
  9694. else if (!(a > d)) {
  9695. for (; d > a;) {
  9696. var e = c.pop();
  9697. e.running && (e.Yf(), e.Ab());
  9698. e.Ne();
  9699. d--
  9700. }
  9701. this.di = c[c.length - 1];
  9702. this.Bk = r
  9703. }
  9704. },
  9705. Sk: A("Pf"),
  9706. cP: function(a) {
  9707. this.Pf != a && (this.Pf = a)
  9708. },
  9709. Uw: A("qg"),
  9710. HO: function(a) {
  9711. this.qg != a && (this.qg = a)
  9712. },
  9713. Jaa: A("ik"),
  9714. zn: q,
  9715. FU: function() {
  9716. this.GC = (Date.now() - this.vk) / 1E3
  9717. }
  9718. });
  9719. F.Xa.HQ = "director_projection_changed";
  9720. F.Xa.EQ = "director_after_draw";
  9721. F.Xa.GQ = "director_after_visit";
  9722. F.Xa.FQ = "director_after_update";
  9723. F.yQ = F.Xa.extend({
  9724. sx: r,
  9725. oP: function() {
  9726. this.Dr = p;
  9727. this.sx = r
  9728. },
  9729. ZN: function() {
  9730. this.Xv ? (this.Xv = r, this.l2()) : this.sx || this.HZ()
  9731. },
  9732. qP: function() {
  9733. this.sx = p
  9734. },
  9735. IO: function(a) {
  9736. this.Rq = a;
  9737. this.sx || (this.qP(), this.oP())
  9738. }
  9739. });
  9740. F.Xa.fG = q;
  9741. F.Xa.FM = p;
  9742. F.Xa.qB = function() {
  9743. F.Xa.FM && (F.Xa.FM = r, F.Xa.fG = new F.yQ, F.Xa.fG.M());
  9744. return F.Xa.fG
  9745. };
  9746. F.uZ = 60;
  9747. F.Xa.aS = 0;
  9748. F.Xa.iH = 1;
  9749. F.Xa.bS = 3;
  9750. F.Xa.cS = F.Xa.iH;
  9751. F.B === F.Ca ? (M = F.Xa.prototype, M.Mm = function(a) {
  9752. this.ki = a;
  9753. F.ua.dispatchEvent(this.ov)
  9754. }, M.KO = t(), M.TF = function(a) {
  9755. this.T.width = F.Za.width;
  9756. this.T.height = F.Za.height;
  9757. this.ih = a || F.view;
  9758. F.ua && F.ua.se(p)
  9759. }, M.hk = function() {
  9760. var a = this.ih.pe;
  9761. F.m.clearRect(-a.x, a.y, a.width, -a.height)
  9762. }, M.zn = function() {
  9763. var a = 0,
  9764. a = this.T.width > this.T.height ? 0 | 24 * (this.T.height / 320) : 0 | 24 * (this.T.width / 320);
  9765. this.Bf = F.Z.create("000.0", "Arial", a);
  9766. this.Cf = F.Z.create("0.000", "Arial", a);
  9767. this.Ff = F.Z.create("0000", "Arial", a);
  9768. a = F.Jy;
  9769. this.Ff.G(this.Ff.width /
  9770. 2 + a.x, 5 * this.Ff.height / 2 + a.y);
  9771. this.Cf.G(this.Cf.width / 2 + a.x, 3 * this.Cf.height / 2 + a.y);
  9772. this.Bf.G(this.Bf.width / 2 + a.x, this.Bf.height / 2 + a.y)
  9773. }, M.Gs = A("T"), M.ME = function() {
  9774. return F.d(0, 0)
  9775. }) : (F.Xa.Ln = new Image, F.Ja(F.Xa.Ln, "load", function() {
  9776. F.Xa.SJ = p
  9777. }), F.Ln && (F.Xa.Ln.src = F.Ln), F.assert("function" === typeof F.C.Ly, F.i.Qc, "CCDirectorWebGL.js"), F.C.Ly(), delete F.C.Ly);
  9778. F.Kp = F.ma.extend({
  9779. ir: q,
  9780. jr: q,
  9781. kr: q,
  9782. tn: q,
  9783. un: q,
  9784. vn: q,
  9785. es: q,
  9786. fs: q,
  9787. gs: q,
  9788. jb: q,
  9789. Jv: q,
  9790. ctor: function() {
  9791. this.Jv = new F.ca;
  9792. this.restore()
  9793. },
  9794. description: function() {
  9795. return "\x3cCCCamera | center \x3d(" + this.tn + "," + this.un + "," + this.vn + ")\x3e"
  9796. },
  9797. LO: y("jb"),
  9798. cF: A("jb"),
  9799. restore: function() {
  9800. this.ir = this.jr = 0;
  9801. this.kr = F.Kp.Is();
  9802. this.es = this.tn = this.un = this.vn = 0;
  9803. this.fs = 1;
  9804. this.gs = 0;
  9805. F.Cm(this.Jv);
  9806. this.jb = r
  9807. },
  9808. Vs: function() {
  9809. if (this.jb) {
  9810. var a = new F.ub,
  9811. c = new F.ub,
  9812. d = new F.ub;
  9813. F.$o(a, this.ir, this.jr, this.kr);
  9814. F.$o(c, this.tn, this.un, this.vn);
  9815. F.$o(d, this.es, this.fs, this.gs);
  9816. F.KN(this.Jv, a, c, d);
  9817. this.jb = r
  9818. }
  9819. F.Yo(this.Jv)
  9820. },
  9821. mia: function(a, c, d) {
  9822. this.PO(a, c, d)
  9823. },
  9824. PO: function(a, c, d) {
  9825. this.ir = a;
  9826. this.jr = c;
  9827. this.kr = d;
  9828. this.jb = p
  9829. },
  9830. Wha: function(a, c, d) {
  9831. this.U2(a, c, d)
  9832. },
  9833. U2: function(a, c, d) {
  9834. this.tn = a;
  9835. this.un = c;
  9836. this.vn = d;
  9837. this.jb = p
  9838. },
  9839. Mja: function(a, c, d) {
  9840. this.N3(a, c, d)
  9841. },
  9842. N3: function(a, c, d) {
  9843. this.es = a;
  9844. this.fs = c;
  9845. this.gs = d;
  9846. this.jb = p
  9847. },
  9848. Zaa: function() {
  9849. return {
  9850. x: this.ir,
  9851. y: this.jr,
  9852. e: this.kr
  9853. }
  9854. },
  9855. RM: function() {
  9856. return {
  9857. x: this.ir,
  9858. y: this.jr,
  9859. e: this.kr
  9860. }
  9861. },
  9862. waa: function() {
  9863. return {
  9864. x: this.tn,
  9865. y: this.un,
  9866. e: this.vn
  9867. }
  9868. },
  9869. MM: function() {
  9870. return {
  9871. x: this.tn,
  9872. y: this.un,
  9873. e: this.vn
  9874. }
  9875. },
  9876. Kca: function() {
  9877. return {
  9878. x: this.es,
  9879. y: this.fs,
  9880. e: this.gs
  9881. }
  9882. },
  9883. k0: function() {
  9884. return {
  9885. x: this.es,
  9886. y: this.fs,
  9887. e: this.gs
  9888. }
  9889. },
  9890. z7: t()
  9891. });
  9892. F.Kp.Is = function() {
  9893. return F.eu
  9894. };
  9895. F.J6 = F.ku + 1;
  9896. F.zo = function(a, c) {
  9897. if (a && 0 < a.length)
  9898. for (var d = 0; d < a.length; d++)
  9899. if (!(a[d] instanceof c)) return F.log(F.i.zo), r;
  9900. return p
  9901. };
  9902. F.Me = function(a, c) {
  9903. for (var d = 0, e = a.length; d < e; d++)
  9904. if (a[d] == c) {
  9905. a.splice(d, 1);
  9906. break
  9907. }
  9908. };
  9909. F.d9 = function(a, c) {
  9910. for (var d = 0, e = c.length; d < e; d++) F.Me(a, c[d])
  9911. };
  9912. F.c9 = function(a, c, d) {
  9913. a.splice.apply(a, [d, 0].concat(c));
  9914. return a
  9915. };
  9916. F.WG = function(a, c, d) {
  9917. this.next = this.Kga = q;
  9918. this.target = a;
  9919. this.j2 = c;
  9920. this.paused = d;
  9921. this.Kx = r
  9922. };
  9923. F.RG = function(a, c, d) {
  9924. this.list = a;
  9925. this.tm = c;
  9926. this.target = d;
  9927. this.hx = q
  9928. };
  9929. F.TQ = function(a, c) {
  9930. this.Hi = q;
  9931. this.target = a;
  9932. this.zp = 0;
  9933. this.ws = this.vs = q;
  9934. this.paused = c;
  9935. this.hx = q
  9936. };
  9937. F.PH = F.ma.extend({
  9938. uk: 0,
  9939. be: q,
  9940. me: q,
  9941. kb: 0,
  9942. eL: r,
  9943. Dw: r,
  9944. ro: 0,
  9945. yC: 0,
  9946. dv: 0,
  9947. kba: A("uk"),
  9948. setInterval: y("uk"),
  9949. vaa: A("be"),
  9950. ctor: function(a, c, d, e, f) {
  9951. this.me = a;
  9952. this.be = c;
  9953. this.kb = -1;
  9954. this.uk = d || 0;
  9955. this.dv = f || 0;
  9956. this.Dw = 0 < this.dv;
  9957. this.yC = e == q ? F.oq : e;
  9958. this.eL = this.yC == F.oq
  9959. },
  9960. ZA: function() {
  9961. if ("string" == typeof this.be) this.me[this.be](this.kb);
  9962. else this.be.call(this.me, this.kb)
  9963. },
  9964. update: function(a) {
  9965. if (-1 == this.kb) this.ro = this.kb = 0;
  9966. else {
  9967. var c = this.me,
  9968. d = this.be;
  9969. this.kb += a;
  9970. this.eL && !this.Dw ? this.kb >= this.uk && (c && d && this.ZA(), this.kb =
  9971. 0) : (this.Dw ? this.kb >= this.dv && (c && d && this.ZA(), this.kb -= this.dv, this.ro += 1, this.Dw = r) : this.kb >= this.uk && (c && d && this.ZA(), this.kb = 0, this.ro += 1), this.ro > this.yC && F.I.Sk().CP(c, d))
  9972. }
  9973. }
  9974. });
  9975. F.uq = F.ma.extend({
  9976. cs: 1,
  9977. fm: q,
  9978. Zi: q,
  9979. Pu: q,
  9980. Yi: q,
  9981. E7: q,
  9982. xd: q,
  9983. Yh: r,
  9984. xw: r,
  9985. ctor: function() {
  9986. this.cs = 1;
  9987. this.fm = [
  9988. [],
  9989. [],
  9990. []
  9991. ];
  9992. this.Zi = {};
  9993. this.Pu = [];
  9994. this.Yi = {};
  9995. this.Sq = [];
  9996. this.xd = q;
  9997. this.xw = this.Yh = r
  9998. },
  9999. xC: function(a) {
  10000. delete this.Yi[a.target.xa];
  10001. F.Me(this.Sq, a);
  10002. a.PH = q;
  10003. a.target = q
  10004. },
  10005. WK: function(a) {
  10006. if (a = this.Zi[a.target.xa]) F.Me(a.list, a.tm), delete this.Zi[a.target.xa], F.Me(this.Pu, a), a.tm = q, a.target = q
  10007. },
  10008. LK: function(a, c, d, e) {
  10009. e = new F.WG(c, d, e);
  10010. if (a) {
  10011. for (var f = a.length - 1, g = 0; g <= f && !(d < a[g].j2); g++);
  10012. a.splice(g, 0, e)
  10013. } else a = [],
  10014. a.push(e);
  10015. d = new F.RG(a, e, c);
  10016. this.Pu.push(d);
  10017. this.Zi[c.xa] = d;
  10018. return a
  10019. },
  10020. vU: function(a, c, d) {
  10021. d = new F.WG(c, 0, d);
  10022. a.push(d);
  10023. a = new F.RG(a, d, c);
  10024. this.Pu.push(a);
  10025. this.Zi[c.xa] = a
  10026. },
  10027. xja: y("cs"),
  10028. Dca: A("cs"),
  10029. update: function(a) {
  10030. var c = this.fm,
  10031. d = this.Sq,
  10032. e, f, g;
  10033. this.xw = p;
  10034. 1 != this.cs && (a *= this.cs);
  10035. f = 0;
  10036. for (g = c.length; f < g && 0 <= f; f++)
  10037. for (var h = this.fm[f], m = 0, n = h.length; m < n; m++) e = h[m], !e.paused && !e.Kx && e.target.update(a);
  10038. f = 0;
  10039. for (g = d.length; f < g; f++) {
  10040. e = d[f];
  10041. if (!e) break;
  10042. this.xd = e;
  10043. this.Yh = r;
  10044. if (!e.paused)
  10045. for (e.zp = 0; e.zp < e.Hi.length; e.zp++) e.vs =
  10046. e.Hi[e.zp], e.ws = r, e.vs.update(a), e.vs = q;
  10047. this.Yh && 0 == e.Hi.length && (this.xC(e), f--)
  10048. }
  10049. f = 0;
  10050. for (g = c.length; f < g; f++) {
  10051. h = this.fm[f];
  10052. m = 0;
  10053. for (n = h.length; m < n;) {
  10054. e = h[m];
  10055. if (!e) break;
  10056. e.Kx ? this.WK(e) : m++
  10057. }
  10058. }
  10059. this.xw = r;
  10060. this.xd = q
  10061. },
  10062. L2: function(a, c, d, e, f, g) {
  10063. F.assert(c, F.i.DS);
  10064. F.assert(a, F.i.ES);
  10065. d = d || 0;
  10066. e = e == q ? F.oq : e;
  10067. f = f || 0;
  10068. g = g || r;
  10069. var h = this.Yi[a.xa];
  10070. h || (h = new F.TQ(a, g), this.Sq.push(h), this.Yi[a.xa] = h);
  10071. if (h.Hi == q) h.Hi = [];
  10072. else
  10073. for (var m = 0; m < h.Hi.length; m++)
  10074. if (g = h.Hi[m], c == g.be) {
  10075. F.log(F.i.CS, g.uk.toFixed(4), d.toFixed(4));
  10076. g.uk =
  10077. d;
  10078. return
  10079. }
  10080. g = new F.PH(a, c, d, e, f);
  10081. h.Hi.push(g)
  10082. },
  10083. KF: function(a, c, d) {
  10084. if (a !== q) {
  10085. var e = this.fm,
  10086. f = this.Zi[a.xa];
  10087. f ? f.tm.Kx = r : 0 == c ? this.vU(e[1], a, d) : 0 > c ? e[0] = this.LK(e[0], a, c, d) : e[2] = this.LK(e[2], a, c, d)
  10088. }
  10089. },
  10090. CP: function(a, c) {
  10091. if (!(a == q || c == q)) {
  10092. var d = this.Yi[a.xa];
  10093. if (d)
  10094. for (var e = d.Hi, f = 0, g = e.length; f < g; f++) {
  10095. var h = e[f];
  10096. if (c == h.be) {
  10097. h == d.vs && !d.ws && (d.ws = p);
  10098. e.splice(f, 1);
  10099. d.zp >= f && d.zp--;
  10100. 0 == e.length && (this.xd == d ? this.Yh = p : this.xC(d));
  10101. break
  10102. }
  10103. }
  10104. }
  10105. },
  10106. Dt: function(a) {
  10107. a != q && (a = this.Zi[a.xa], a != q && (this.xw ? a.tm.Kx = p : this.WK(a.tm)))
  10108. },
  10109. BP: function(a) {
  10110. if (a != q) {
  10111. var c = this.Yi[a.xa];
  10112. if (c) {
  10113. var d = c.Hi;
  10114. !c.ws && 0 <= d.indexOf(c.vs) && (c.ws = p);
  10115. d.length = 0;
  10116. this.xd == c ? this.Yh = p : this.xC(c)
  10117. }
  10118. this.Dt(a)
  10119. }
  10120. },
  10121. Ct: function() {
  10122. this.A4(F.uq.ku)
  10123. },
  10124. A4: function(a) {
  10125. for (var c = this.Sq, d = this.fm, e = 0, f = c.length; e < f; e++) this.BP(c[e].target);
  10126. for (e = 2; 0 <= e; e--)
  10127. if (!(1 == e && 0 < a || 0 == e && 0 <= a))
  10128. for (var c = d[e], f = 0, g = c.length; f < g; f++) this.Dt(c[f].target)
  10129. },
  10130. Dga: function() {
  10131. return this.Y1(F.uq.ku)
  10132. },
  10133. Y1: function() {
  10134. for (var a = [], c, d = this.Sq, e = this.fm, f = 0, g = d.length; f < g; f++)
  10135. if (c = d[f]) c.paused =
  10136. p, a.push(c.target);
  10137. f = 0;
  10138. for (g = e.length; f < g; f++)
  10139. for (var d = e[f], h = 0, m = d.length; h < m; h++)
  10140. if (c = d[h]) c.paused = p, a.push(c.target);
  10141. return a
  10142. },
  10143. J2: function(a) {
  10144. if (a)
  10145. for (var c = 0; c < a.length; c++) this.Ij(a[c])
  10146. },
  10147. ip: function(a) {
  10148. F.assert(a, F.i.AS);
  10149. var c = this.Yi[a.xa];
  10150. c && (c.paused = p);
  10151. (a = this.Zi[a.xa]) && (a.tm.paused = p)
  10152. },
  10153. Ij: function(a) {
  10154. F.assert(a, F.i.BS);
  10155. var c = this.Yi[a.xa];
  10156. c && (c.paused = r);
  10157. (a = this.Zi[a.xa]) && (a.tm.paused = r)
  10158. },
  10159. Gda: function(a) {
  10160. F.assert(a, F.i.zS);
  10161. return (a = this.Yi[a.xa]) ? a.paused : r
  10162. }
  10163. });
  10164. F.uq.ku = -2147483648;
  10165. F.eH = 2 * Math.PI;
  10166. F.LG = F.ma.extend({
  10167. HA: [],
  10168. m: q,
  10169. ctor: y("m"),
  10170. EZ: function(a, c) {
  10171. c || (c = 1);
  10172. var d = F.view.qa,
  10173. e = F.d(a.x * d, a.y * F.view.Ra);
  10174. this.m.beginPath();
  10175. this.m.arc(e.x, -e.y, c * d, 0, 2 * Math.PI, r);
  10176. this.m.closePath();
  10177. this.m.fill()
  10178. },
  10179. FZ: function(a, c, d) {
  10180. if (a != q) {
  10181. d || (d = 1);
  10182. c = this.m;
  10183. var e = F.view.qa,
  10184. f = F.view.Ra;
  10185. c.beginPath();
  10186. for (var g = 0, h = a.length; g < h; g++) c.arc(a[g].x * e, -a[g].y * f, d * e, 0, 2 * Math.PI, r);
  10187. c.closePath();
  10188. c.fill()
  10189. }
  10190. },
  10191. vj: function(a, c) {
  10192. var d = this.m,
  10193. e = F.view.qa,
  10194. f = F.view.Ra;
  10195. d.beginPath();
  10196. d.moveTo(a.x * e, -a.y * f);
  10197. d.lineTo(c.x * e, -c.y * f);
  10198. d.closePath();
  10199. d.stroke()
  10200. },
  10201. rE: function(a, c) {
  10202. this.vj(F.d(a.x, a.y), F.d(c.x, a.y));
  10203. this.vj(F.d(c.x, a.y), F.d(c.x, c.y));
  10204. this.vj(F.d(c.x, c.y), F.d(a.x, c.y));
  10205. this.vj(F.d(a.x, c.y), F.d(a.x, a.y))
  10206. },
  10207. AM: function(a, c, d) {
  10208. a = [a, F.d(c.x, a.y), c, F.d(a.x, c.y)];
  10209. this.tE(a, 4, d)
  10210. },
  10211. Yd: function(a, c, d, e) {
  10212. e = e || r;
  10213. if (a != q) {
  10214. 3 > a.length && b(Error("Polygon's point must greater than 2"));
  10215. var f = a[0];
  10216. c = this.m;
  10217. var g = F.view.qa,
  10218. h = F.view.Ra;
  10219. c.beginPath();
  10220. c.moveTo(f.x * g, -f.y * h);
  10221. for (var f = 1, m = a.length; f < m; f++) c.lineTo(a[f].x * g, -a[f].y * h);
  10222. d && c.closePath();
  10223. e ? c.fill() : c.stroke()
  10224. }
  10225. },
  10226. tE: function(a, c, d) {
  10227. this.qp(d.r, d.g, d.b, d.a);
  10228. this.Yd(a, c, p, p)
  10229. },
  10230. nE: function(a, c, d, e, f) {
  10231. f = f || r;
  10232. e = this.m;
  10233. var g = F.view.qa,
  10234. h = F.view.Ra;
  10235. e.beginPath();
  10236. e.arc(0 | a.x * g, 0 | -(a.y * h), c * g, -d, -(d - 2 * Math.PI), r);
  10237. f && e.lineTo(0 | a.x * g, 0 | -(a.y * h));
  10238. e.stroke()
  10239. },
  10240. qE: function(a, c, d, e) {
  10241. for (var f = this.HA, g = f.length = 0, h = 0; h < e; h++) f.push(F.d(Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y)), g += 1 / e;
  10242. f.push(F.d(d.x, d.y));
  10243. this.Yd(f, e + 1, r, r)
  10244. },
  10245. oE: function(a, c, d, e, f) {
  10246. for (var g =
  10247. this.HA, h = g.length = 0, m = 0; m < f; m++) g.push(F.d(Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y)), h += 1 / f;
  10248. g.push(F.d(e.x, e.y));
  10249. this.Yd(g, f + 1, r, r)
  10250. },
  10251. mE: function(a, c) {
  10252. this.qm(a, 0.5, c)
  10253. },
  10254. qm: function(a, c, d) {
  10255. F.m.strokeStyle = "rgba(255,255,255,1)";
  10256. var e = this.HA;
  10257. e.length = 0;
  10258. for (var f, g, h = 1 / a.length, m = 0; m < d + 1; m++) g = m / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = F.mQ(F.dd(a, f - 1), F.dd(a, f - 0), F.dd(a, f + 1), F.dd(a, f + 2), c, g),
  10259. e.push(f);
  10260. this.Yd(e, d + 1, r, r)
  10261. },
  10262. drawImage: function(a, c, d, e, f) {
  10263. switch (arguments.length) {
  10264. case 2:
  10265. this.m.drawImage(a, c.x, -(c.y + a.height));
  10266. break;
  10267. case 3:
  10268. this.m.drawImage(a, c.x, -(c.y + d.height), d.width, d.height);
  10269. break;
  10270. case 5:
  10271. this.m.drawImage(a, c.x, c.y, d.width, d.height, e.x, -(e.y + f.height), f.width, f.height);
  10272. break;
  10273. default:
  10274. b(Error("Argument must be non-nil"))
  10275. }
  10276. },
  10277. IZ: function(a, c, d) {
  10278. a = a || this.m;
  10279. c *= F.view.qa;
  10280. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10281. a.fillStyle = d + ",1)";
  10282. var e = c / 10;
  10283. a.beginPath();
  10284. a.moveTo(-c, c);
  10285. a.lineTo(0,
  10286. e);
  10287. a.lineTo(c, c);
  10288. a.lineTo(e, 0);
  10289. a.lineTo(c, -c);
  10290. a.lineTo(0, -e);
  10291. a.lineTo(-c, -c);
  10292. a.lineTo(-e, 0);
  10293. a.lineTo(-c, c);
  10294. a.closePath();
  10295. a.fill();
  10296. var f = a.createRadialGradient(0, 0, e, 0, 0, c);
  10297. f.addColorStop(0, d + ", 1)");
  10298. f.addColorStop(0.3, d + ", 0.8)");
  10299. f.addColorStop(1, d + ", 0.0)");
  10300. a.fillStyle = f;
  10301. a.beginPath();
  10302. a.arc(0, 0, c - e, 0, F.eH, r);
  10303. a.closePath();
  10304. a.fill()
  10305. },
  10306. BZ: function(a, c, d) {
  10307. a = a || this.m;
  10308. c *= F.view.qa;
  10309. d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b);
  10310. var e = a.createRadialGradient(0, 0, c / 10, 0, 0, c);
  10311. e.addColorStop(0, d + ", 1)");
  10312. e.addColorStop(0.3,
  10313. d + ", 0.8)");
  10314. e.addColorStop(0.6, d + ", 0.4)");
  10315. e.addColorStop(1, d + ", 0.0)");
  10316. a.fillStyle = e;
  10317. a.beginPath();
  10318. a.arc(0, 0, c, 0, F.eH, r);
  10319. a.closePath();
  10320. a.fill()
  10321. },
  10322. fillText: function(a, c, d) {
  10323. this.m.fillText(a, c, -d)
  10324. },
  10325. qp: function(a, c, d, e) {
  10326. this.m.fillStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")";
  10327. this.m.strokeStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")"
  10328. },
  10329. t3: t(),
  10330. RF: function(a) {
  10331. this.m.lineWidth = a * F.view.qa
  10332. }
  10333. });
  10334. F.BQ = F.ma.extend({
  10335. m: q,
  10336. ur: r,
  10337. wc: q,
  10338. Wh: -1,
  10339. bf: q,
  10340. iC: -1,
  10341. hC: -1,
  10342. ctor: function(a) {
  10343. a == q && (a = F.m);
  10344. !a instanceof WebGLRenderingContext && b("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext");
  10345. this.m = a;
  10346. this.bf = new Float32Array([1, 1, 1, 1])
  10347. },
  10348. Aj: function() {
  10349. this.ur || (this.wc = F.Jd.oc(F.Gz), this.Wh = this.m.getUniformLocation(this.wc.ym(), "u_color"), this.iC = this.m.getUniformLocation(this.wc.ym(), "u_pointSize"), this.ur = p)
  10350. },
  10351. b$: function() {
  10352. this.ur = r
  10353. },
  10354. EZ: function(a) {
  10355. this.Aj();
  10356. var c = this.m;
  10357. this.wc.Nc();
  10358. this.wc.Ze();
  10359. F.Jc(F.Md);
  10360. c.uniform4fv(this.Wh, this.bf);
  10361. this.wc.st(this.iC, this.hC);
  10362. var d = c.createBuffer();
  10363. c.bindBuffer(c.ARRAY_BUFFER, d);
  10364. c.bufferData(c.ARRAY_BUFFER, new Float32Array([a.x, a.y]), c.STATIC_DRAW);
  10365. c.vertexAttribPointer(F.qb, 2, c.FLOAT, r, 0, 0);
  10366. c.drawArrays(c.POINTS, 0, 1);
  10367. c.deleteBuffer(d);
  10368. F.Xf()
  10369. },
  10370. FZ: function(a) {
  10371. if (a && 0 != a.length) {
  10372. this.Aj();
  10373. var c = this.m;
  10374. this.wc.Nc();
  10375. this.wc.Ze();
  10376. F.Jc(F.Md);
  10377. c.uniform4fv(this.Wh, this.bf);
  10378. this.wc.st(this.iC, this.hC);
  10379. var d = c.createBuffer();
  10380. c.bindBuffer(c.ARRAY_BUFFER,
  10381. d);
  10382. c.bufferData(c.ARRAY_BUFFER, this.Wv(a), c.STATIC_DRAW);
  10383. c.vertexAttribPointer(F.qb, 2, c.FLOAT, r, 0, 0);
  10384. c.drawArrays(c.POINTS, 0, a.length);
  10385. c.deleteBuffer(d);
  10386. F.Xf()
  10387. }
  10388. },
  10389. Wv: function(a) {
  10390. for (var c = new Float32Array(2 * a.length), d = 0; d < a.length; d++) c[2 * d] = a[d].x, c[2 * d + 1] = a[d].y;
  10391. return c
  10392. },
  10393. vj: function(a, c) {
  10394. this.Aj();
  10395. var d = this.m;
  10396. this.wc.Nc();
  10397. this.wc.Ze();
  10398. F.Jc(F.Md);
  10399. d.uniform4fv(this.Wh, this.bf);
  10400. var e = d.createBuffer();
  10401. d.bindBuffer(d.ARRAY_BUFFER, e);
  10402. d.bufferData(d.ARRAY_BUFFER, this.Wv([a, c]), d.STATIC_DRAW);
  10403. d.vertexAttribPointer(F.qb,
  10404. 2, d.FLOAT, r, 0, 0);
  10405. d.drawArrays(d.LINES, 0, 2);
  10406. d.deleteBuffer(e);
  10407. F.Xf()
  10408. },
  10409. rE: function(a, c) {
  10410. this.vj(F.d(a.x, a.y), F.d(c.x, a.y));
  10411. this.vj(F.d(c.x, a.y), F.d(c.x, c.y));
  10412. this.vj(F.d(c.x, c.y), F.d(a.x, c.y));
  10413. this.vj(F.d(a.x, c.y), F.d(a.x, a.y))
  10414. },
  10415. AM: function(a, c, d) {
  10416. a = [a, F.d(c.x, a.y), c, F.d(a.x, c.y)];
  10417. this.tE(a, 4, d)
  10418. },
  10419. Yd: function(a, c, d) {
  10420. this.Aj();
  10421. c = this.m;
  10422. this.wc.Nc();
  10423. this.wc.Ze();
  10424. F.Jc(F.Md);
  10425. c.uniform4fv(this.Wh, this.bf);
  10426. var e = c.createBuffer();
  10427. c.bindBuffer(c.ARRAY_BUFFER, e);
  10428. c.bufferData(c.ARRAY_BUFFER, this.Wv(a), c.STATIC_DRAW);
  10429. c.vertexAttribPointer(F.qb, 2, c.FLOAT, r, 0, 0);
  10430. d ? c.drawArrays(c.LINE_LOOP, 0, a.length) : c.drawArrays(c.LINE_STRIP, 0, a.length);
  10431. c.deleteBuffer(e);
  10432. F.Xf()
  10433. },
  10434. tE: function(a, c, d) {
  10435. this.Aj();
  10436. d && this.qp(d.r, d.g, d.b, d.a);
  10437. c = this.m;
  10438. this.wc.Nc();
  10439. this.wc.Ze();
  10440. F.Jc(F.Md);
  10441. c.uniform4fv(this.Wh, this.bf);
  10442. d = c.createBuffer();
  10443. c.bindBuffer(c.ARRAY_BUFFER, d);
  10444. c.bufferData(c.ARRAY_BUFFER, this.Wv(a), c.STATIC_DRAW);
  10445. c.vertexAttribPointer(F.qb, 2, c.FLOAT, r, 0, 0);
  10446. c.drawArrays(c.TRIANGLE_FAN, 0, a.length);
  10447. c.deleteBuffer(d);
  10448. F.Xf()
  10449. },
  10450. nE: function(a,
  10451. c, d, e, f) {
  10452. this.Aj();
  10453. var g = 1;
  10454. f && g++;
  10455. var h = 2 * Math.PI / e;
  10456. if (f = new Float32Array(2 * (e + 2))) {
  10457. for (var m = 0; m <= e; m++) {
  10458. var n = m * h,
  10459. s = c * Math.sin(n + d) + a.y;
  10460. f[2 * m] = c * Math.cos(n + d) + a.x;
  10461. f[2 * m + 1] = s
  10462. }
  10463. f[2 * (e + 1)] = a.x;
  10464. f[2 * (e + 1) + 1] = a.y;
  10465. a = this.m;
  10466. this.wc.Nc();
  10467. this.wc.Ze();
  10468. F.Jc(F.Md);
  10469. a.uniform4fv(this.Wh, this.bf);
  10470. c = a.createBuffer();
  10471. a.bindBuffer(a.ARRAY_BUFFER, c);
  10472. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10473. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0);
  10474. a.drawArrays(a.LINE_STRIP, 0, e + g);
  10475. a.deleteBuffer(c);
  10476. F.Xf()
  10477. }
  10478. },
  10479. qE: function(a, c, d,
  10480. e) {
  10481. this.Aj();
  10482. for (var f = new Float32Array(2 * (e + 1)), g = 0, h = 0; h < e; h++) f[2 * h] = Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, f[2 * h + 1] = Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y, g += 1 / e;
  10483. f[2 * e] = d.x;
  10484. f[2 * e + 1] = d.y;
  10485. a = this.m;
  10486. this.wc.Nc();
  10487. this.wc.Ze();
  10488. F.Jc(F.Md);
  10489. a.uniform4fv(this.Wh, this.bf);
  10490. c = a.createBuffer();
  10491. a.bindBuffer(a.ARRAY_BUFFER, c);
  10492. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  10493. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0);
  10494. a.drawArrays(a.LINE_STRIP, 0, e + 1);
  10495. a.deleteBuffer(c);
  10496. F.Xf()
  10497. },
  10498. oE: function(a, c, d, e, f) {
  10499. this.Aj();
  10500. for (var g = new Float32Array(2 * (f + 1)), h = 0, m = 0; m < f; m++) g[2 * m] = Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, g[2 * m + 1] = Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y, h += 1 / f;
  10501. g[2 * f] = e.x;
  10502. g[2 * f + 1] = e.y;
  10503. a = this.m;
  10504. this.wc.Nc();
  10505. this.wc.Ze();
  10506. F.Jc(F.Md);
  10507. a.uniform4fv(this.Wh, this.bf);
  10508. c = a.createBuffer();
  10509. a.bindBuffer(a.ARRAY_BUFFER, c);
  10510. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  10511. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0);
  10512. a.drawArrays(a.LINE_STRIP, 0, f + 1);
  10513. a.deleteBuffer(c);
  10514. F.Xf()
  10515. },
  10516. mE: function(a, c) {
  10517. this.qm(a, 0.5, c)
  10518. },
  10519. qm: function(a, c, d) {
  10520. this.Aj();
  10521. for (var e = new Float32Array(2 * (d + 1)), f, g, h = 1 / a.length, m = 0; m < d + 1; m++) g = m / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = F.mQ(F.dd(a, f - 1), F.dd(a, f), F.dd(a, f + 1), F.dd(a, f + 2), c, g), e[2 * m] = f.x, e[2 * m + 1] = f.y;
  10522. a = this.m;
  10523. this.wc.Nc();
  10524. this.wc.Ze();
  10525. F.Jc(F.Md);
  10526. a.uniform4fv(this.Wh, this.bf);
  10527. c = a.createBuffer();
  10528. a.bindBuffer(a.ARRAY_BUFFER, c);
  10529. a.bufferData(a.ARRAY_BUFFER, e, a.STATIC_DRAW);
  10530. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0);
  10531. a.drawArrays(a.LINE_STRIP,
  10532. 0, d + 1);
  10533. a.deleteBuffer(c);
  10534. F.Xf()
  10535. },
  10536. qp: function(a, c, d, e) {
  10537. this.bf[0] = a / 255;
  10538. this.bf[1] = c / 255;
  10539. this.bf[2] = d / 255;
  10540. this.bf[3] = e / 255
  10541. },
  10542. t3: function(a) {
  10543. this.hC = a * F.rb()
  10544. },
  10545. RF: function(a) {
  10546. this.m.lineWidth && this.m.lineWidth(a)
  10547. }
  10548. });
  10549. F.C.mA = function() {
  10550. var a = F.Z.prototype;
  10551. a.Wa = F.aa.prototype.Wa;
  10552. a.mf = function() {
  10553. this.nb = p;
  10554. var a = this.Zl,
  10555. d = this.$l;
  10556. this.iw = "rgba(128,128,128," + this.mj + ")";
  10557. this.rv = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)";
  10558. this.nw = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + ", 1)"
  10559. };
  10560. a.Ob = F.aa.prototype.Ob;
  10561. a.va = F.aa.prototype.va;
  10562. a.Mb = F.aa.prototype.Mb;
  10563. a.WE = function(a, d) {
  10564. if (!F.aa.prototype.M.call(this)) return r;
  10565. this.shaderProgram = F.Jd.oc(F.Z.mU);
  10566. this.yD(d, r);
  10567. this.string = a;
  10568. return p
  10569. };
  10570. a.gy = function(a) {
  10571. var d = this.$l;
  10572. if (d.r !=
  10573. a.r || d.g != a.g || d.b != a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.mf(), this.nb = p
  10574. };
  10575. a.Y = function(a) {
  10576. if (this.Jb && "" != this.Jb) {
  10577. a = a || F.m;
  10578. var d = this.L;
  10579. d && d.uc && (this.Ib.Nc(), this.Ib.Ze(), F.Eh(this.q.src, this.q.U), F.qe(d), F.Jc(F.xl), a.bindBuffer(a.ARRAY_BUFFER, this.Yv), this.Fe && (a.bufferData(a.ARRAY_BUFFER, this.Ub.Fw, a.STATIC_DRAW), this.Fe = r), a.vertexAttribPointer(F.qb, 3, a.FLOAT, r, 24, 0), a.vertexAttribPointer(F.ud, 2, a.FLOAT, r, 24, 16), a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0,
  10580. 4));
  10581. if (1 === F.Rj) a = this.Ub, a = [F.d(a.N.k.x, a.N.k.y), F.d(a.F.k.x, a.F.k.y), F.d(a.O.k.x, a.O.k.y), F.d(a.K.k.x, a.K.k.y)], F.Ce.Yd(a, 4, p);
  10582. else if (2 === F.Rj) {
  10583. a = this.mN().x8;
  10584. var d = this.offsetX,
  10585. e = this.offsetY;
  10586. a = [F.d(d, e), F.d(d + a.width, e), F.d(d + a.width, e + a.height), F.d(d, e + a.height)];
  10587. F.Ce.Yd(a, 4, p)
  10588. }
  10589. F.Wf++
  10590. }
  10591. };
  10592. a.vb = F.aa.prototype.vb
  10593. };
  10594. F.C.sz = function() {
  10595. var a = F.Z.prototype;
  10596. F.j(a, "color", a.Pe, a.Wa);
  10597. F.j(a, "opacity", a.Qe, a.va);
  10598. F.j(a, "string", a.Tk, a.Mc);
  10599. F.j(a, "textAlign", a.B_, a.j3);
  10600. F.j(a, "verticalAlign", a.o0, a.Q3);
  10601. F.j(a, "fontSize", a.CE, a.iy);
  10602. F.j(a, "fontName", a.BE, a.hy);
  10603. F.j(a, "font", a.CV, a.DX);
  10604. F.j(a, "boundingWidth", a.oB, a.xX);
  10605. F.j(a, "boundingHeight", a.zV, a.wX);
  10606. F.j(a, "fillStyle", a.BV, a.gy);
  10607. F.j(a, "strokeStyle", a.XV, a.ZX);
  10608. F.j(a, "lineWidth", a.KV, a.HX);
  10609. F.j(a, "shadowOffsetX", a.SV, a.PX);
  10610. F.j(a, "shadowOffsetY", a.TV, a.QX);
  10611. F.j(a, "shadowOpacity",
  10612. a.UV, a.RX);
  10613. F.j(a, "shadowBlur", a.RV, a.OX)
  10614. };
  10615. F.Z = F.aa.extend({
  10616. kc: q,
  10617. tk: F.xq,
  10618. Nk: F.Kq,
  10619. $b: q,
  10620. Sb: 0,
  10621. Jb: "",
  10622. aC: q,
  10623. Yn: r,
  10624. $g: q,
  10625. kd: r,
  10626. Bd: q,
  10627. mj: 0,
  10628. Ek: 0,
  10629. iw: q,
  10630. Cg: r,
  10631. Zl: q,
  10632. pj: 0,
  10633. nw: q,
  10634. $l: q,
  10635. rv: q,
  10636. jD: 0,
  10637. kD: 0,
  10638. nb: r,
  10639. Fv: q,
  10640. Gv: q,
  10641. tK: q,
  10642. tb: "LabelTTF",
  10643. ctor: function(a, c, d, e, f, g) {
  10644. F.aa.prototype.ctor.call(this);
  10645. this.kc = F.size(0, 0);
  10646. this.tk = F.tu;
  10647. this.Nk = F.Kq;
  10648. this.Qa = r;
  10649. this.$g = "";
  10650. this.$b = "Arial";
  10651. this.kd = this.Yn = r;
  10652. this.Bd = F.d(0, 0);
  10653. this.Ek = this.mj = 0;
  10654. this.iw = "rgba(128, 128, 128, 0.5)";
  10655. this.Cg = r;
  10656. this.Zl = F.color(255, 255, 255, 255);
  10657. this.pj = 0;
  10658. this.nw = "";
  10659. this.$l = F.color(255, 255, 255, 255);
  10660. this.rv =
  10661. "rgba(255,255,255,1)";
  10662. this.kD = this.jD = 0;
  10663. this.nb = r;
  10664. this.tK = [];
  10665. this.mf();
  10666. c && c instanceof F.PG ? this.WE(a, c) : F.Z.prototype.pd.call(this, a, c, d, e, f, g)
  10667. },
  10668. M: function() {
  10669. return this.pd(" ", this.$b, this.Sb)
  10670. },
  10671. GW: function() {
  10672. this.rB().font = this.$g
  10673. },
  10674. Br: function(a) {
  10675. return this.rB().measureText(a).width
  10676. },
  10677. JU: function(a, c) {
  10678. var d = this.Br(a),
  10679. e = Math.floor(a.length * c / d),
  10680. f = a.indexOf("\n");
  10681. if (0.8 * e >= f && 0 < f) return f + 1;
  10682. if (d < c) return a.length;
  10683. for (var d = r, f = c + 1, g = -1, h = e, m, n = F.Z.LU, s = F.Z.qX, u = F.Z.IU, v = a.substr(e); m = n.exec(v);) {
  10684. h +=
  10685. m[0].length;
  10686. f = this.Br(a.substr(0, h));
  10687. if ("\n" == m[2] && f < c) {
  10688. d = p;
  10689. g = h;
  10690. break
  10691. }
  10692. if (f > c) {
  10693. -1 != g && (d = p);
  10694. break
  10695. }
  10696. g = h;
  10697. v = a.substr(h)
  10698. }
  10699. if (d) return g;
  10700. v = a.substr(0, e);
  10701. for (g = e; m = s.exec(v);)
  10702. if (g = m[1].length, v = m[1], f = this.Br(v), f < c) {
  10703. u.test(m[2]) && g++;
  10704. break
  10705. }
  10706. return g || 1
  10707. },
  10708. description: function() {
  10709. return "\x3ccc.LabelTTF | FontName \x3d" + this.$b + " FontSize \x3d " + this.Sb.toFixed(1) + "\x3e"
  10710. },
  10711. Wa: q,
  10712. mf: q,
  10713. Ob: q,
  10714. va: q,
  10715. Mb: q,
  10716. Aka: function(a) {
  10717. F.ja.prototype.Mb.call(this, a);
  10718. this.mf()
  10719. },
  10720. Tk: A("Jb"),
  10721. B_: A("tk"),
  10722. o0: A("Nk"),
  10723. Naa: function() {
  10724. return F.size(this.kc.width,
  10725. this.kc.height)
  10726. },
  10727. CE: A("Sb"),
  10728. BE: A("$b"),
  10729. pd: function(a, c, d, e, f, g) {
  10730. a = a ? a + "" : "";
  10731. d = d || 16;
  10732. e = e || F.size(0, d);
  10733. f = f || F.tu;
  10734. g = g || F.Kq;
  10735. this.Qa = r;
  10736. this.kc = F.size(e.width, e.height);
  10737. this.$b = c || "Arial";
  10738. this.tk = f;
  10739. this.Nk = g;
  10740. this.Sb = d;
  10741. this.$g = this.Sb + "px '" + c + "'";
  10742. this.$h = F.Z.Mq(c, this.Sb);
  10743. this.string = a;
  10744. this.mf();
  10745. this.Cw();
  10746. this.nb = r;
  10747. return p
  10748. },
  10749. WE: q,
  10750. rja: function(a) {
  10751. a && this.yD(a, p)
  10752. },
  10753. xca: function() {
  10754. return this.hX(r)
  10755. },
  10756. SZ: function(a, c, d, e) {
  10757. d = d || 0.5;
  10758. r === this.kd && (this.kd = p);
  10759. var f = this.Bd;
  10760. if (f && f.x != a || f.Le != c) f.x = a, f.y = c;
  10761. this.mj !=
  10762. d && (this.mj = d);
  10763. this.mf();
  10764. this.Ek != e && (this.Ek = e);
  10765. this.nb = p
  10766. },
  10767. SV: function() {
  10768. return this.Bd.x
  10769. },
  10770. PX: function(a) {
  10771. r === this.kd && (this.kd = p);
  10772. this.Bd.x != a && (this.Bd.x = a, this.nb = p)
  10773. },
  10774. TV: function() {
  10775. return this.Bd.Le
  10776. },
  10777. QX: function(a) {
  10778. r === this.kd && (this.kd = p);
  10779. this.Bd.Le != a && (this.Bd.Le = a, this.nb = p)
  10780. },
  10781. W7: function() {
  10782. return F.d(this.Bd.x, this.Bd.y)
  10783. },
  10784. u8: function(a) {
  10785. r === this.kd && (this.kd = p);
  10786. if (this.Bd.x != a.x || this.Bd.y != a.y) this.Bd.x = a.x, this.Bd.y = a.y, this.nb = p
  10787. },
  10788. UV: A("mj"),
  10789. RX: function(a) {
  10790. r === this.kd && (this.kd = p);
  10791. this.mj !=
  10792. a && (this.mj = a, this.mf(), this.nb = p)
  10793. },
  10794. RV: A("Ek"),
  10795. OX: function(a) {
  10796. r === this.kd && (this.kd = p);
  10797. this.Ek != a && (this.Ek = a, this.nb = p)
  10798. },
  10799. S9: function() {
  10800. this.kd && (this.kd = r, this.nb = p)
  10801. },
  10802. TZ: function(a, c) {
  10803. this.Cg === r && (this.Cg = p);
  10804. var d = this.Zl;
  10805. if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.mf();
  10806. this.pj !== c && (this.pj = c || 0);
  10807. this.nb = p
  10808. },
  10809. XV: A("Zl"),
  10810. ZX: function(a) {
  10811. this.Cg === r && (this.Cg = p);
  10812. var c = this.Zl;
  10813. if (c.r !== a.r || c.g !== a.g || c.b !== a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.mf(), this.nb = p
  10814. },
  10815. KV: A("pj"),
  10816. HX: function(a) {
  10817. this.Cg ===
  10818. r && (this.Cg = p);
  10819. this.pj !== a && (this.pj = a || 0, this.nb = p)
  10820. },
  10821. T9: function() {
  10822. this.Cg && (this.Cg = r, this.nb = p)
  10823. },
  10824. gy: q,
  10825. BV: A("$l"),
  10826. yD: function(a, c) {
  10827. a.eaa ? (this.kc.width = a.boundingWidth, this.kc.height = a.boundingHeight) : (this.kc.width = 0, this.kc.height = 0);
  10828. this.tk = a.textAlign;
  10829. this.Nk = a.verticalAlign;
  10830. this.$b = a.fontName;
  10831. this.Sb = a.fontSize || 12;
  10832. this.$g = this.Sb + "px '" + this.$b + "'";
  10833. this.$h = F.Z.Mq(this.$b, this.Sb);
  10834. a.kP && this.SZ(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur);
  10835. a.jG && this.TZ(a.strokeStyle, a.lineWidth);
  10836. this.gy(a.fillStyle);
  10837. c && this.Cw()
  10838. },
  10839. hX: function(a) {
  10840. var c = new F.PG;
  10841. a ? (c.fontSize = this.Sb, c.boundingWidth = F.rb() * this.kc.width, c.boundingHeight = F.rb() * this.kc.height) : (c.fontSize = this.Sb, c.boundingWidth = this.kc.width, c.boundingHeight = this.kc.height);
  10842. c.fontName = this.$b;
  10843. c.textAlign = this.tk;
  10844. c.verticalAlign = this.Nk;
  10845. if (this.Cg) {
  10846. c.jG = p;
  10847. var d = this.Zl;
  10848. c.strokeStyle = F.color(d.r, d.g, d.b);
  10849. c.lineWidth = this.pj
  10850. } else c.jG = r;
  10851. this.kd ? (c.kP = p, c.shadowBlur = this.Ek, c.shadowOpacity = this.mj, c.shadowOffsetX = (a ? F.rb() : 1) * this.Bd.x,
  10852. c.shadowOffsetY = (a ? F.rb() : 1) * this.Bd.y) : c.kd = r;
  10853. a = this.$l;
  10854. c.fillStyle = F.color(a.r, a.g, a.b);
  10855. return c
  10856. },
  10857. $h: 18,
  10858. Mc: function(a) {
  10859. a = String(a);
  10860. this.aC != a && (this.aC = a + "", this.Aw(), this.nb = p)
  10861. },
  10862. Aw: function() {
  10863. this.Jb = this.aC
  10864. },
  10865. j3: function(a) {
  10866. a !== this.tk && (this.tk = a, this.nb = p)
  10867. },
  10868. Q3: function(a) {
  10869. a != this.Nk && (this.Nk = a, this.nb = p)
  10870. },
  10871. iia: function(a) {
  10872. if (a.width != this.kc.width || a.height != this.kc.height) this.kc = a, this.Aw(), this.nb = p
  10873. },
  10874. oB: function() {
  10875. return this.kc.width
  10876. },
  10877. xX: function(a) {
  10878. a != this.kc.width && (this.kc.width = a, this.Aw(),
  10879. this.nb = p)
  10880. },
  10881. zV: function() {
  10882. return this.kc.height
  10883. },
  10884. wX: function(a) {
  10885. a != this.kc.height && (this.kc.height = a, this.Aw(), this.nb = p)
  10886. },
  10887. iy: function(a) {
  10888. this.Sb !== a && (this.Sb = a, this.$g = a + "px '" + this.$b + "'", this.$h = F.Z.Mq(this.$b, a), this.nb = p)
  10889. },
  10890. hy: function(a) {
  10891. this.$b && this.$b != a && (this.$b = a, this.$g = this.Sb + "px '" + a + "'", this.$h = F.Z.Mq(a, this.Sb), this.nb = p)
  10892. },
  10893. CV: A("$g"),
  10894. DX: function(a) {
  10895. var c = F.Z.oV.exec(a);
  10896. c && (this.Sb = parseInt(c[1]), this.$b = c[2], this.$g = a, this.$h = F.Z.Mq(this.$b, this.Sb), this.nb = p)
  10897. },
  10898. iV: function(a) {
  10899. if (a) {
  10900. var c =
  10901. this.jD,
  10902. d = this.kD,
  10903. e = this.P.height - d,
  10904. f = this.Nk,
  10905. g = this.tk,
  10906. h = this.$h,
  10907. m = this.pj;
  10908. a.setTransform(1, 0, 0, 1, 0 + 0.5 * c, e + 0.5 * d);
  10909. a.font != this.$g && (a.font = this.$g);
  10910. a.fillStyle = this.rv;
  10911. var n = d = 0,
  10912. s = this.Cg;
  10913. s && (a.lineWidth = 2 * m, a.strokeStyle = this.nw);
  10914. this.kd && (m = this.Bd, a.shadowColor = this.iw, a.shadowOffsetX = m.x, a.shadowOffsetY = -m.y, a.shadowBlur = this.Ek);
  10915. a.textBaseline = F.Z.oY[f];
  10916. a.textAlign = F.Z.nY[g];
  10917. c = this.P.width - c;
  10918. d = g === F.JH ? d + c : g === F.xq ? d + c / 2 : d + 0;
  10919. if (this.Yn) {
  10920. g = this.oj.length;
  10921. f === F.wI ? n = h + e - h * g : f === F.cU && (n = h / 2 +
  10922. (e - h * g) / 2);
  10923. for (f = 0; f < g; f++) c = this.oj[f], m = -e + h * f + n, s && a.strokeText(c, d, m), a.fillText(c, d, m)
  10924. } else f !== F.wI && (n = f === F.Kq ? n - e : n - 0.5 * e), s && a.strokeText(this.Jb, d, n), a.fillText(this.Jb, d, n)
  10925. }
  10926. },
  10927. rB: function() {
  10928. if (this.Gv) return this.Gv;
  10929. if (!this.Fv) {
  10930. var a = F.Nb("canvas"),
  10931. c = new F.ea;
  10932. c.Ed(a);
  10933. this.texture = c;
  10934. this.Fv = a
  10935. }
  10936. return this.Gv = this.Fv.getContext("2d")
  10937. },
  10938. Bw: function() {
  10939. var a = this.kc.width,
  10940. c, d, e = this.tK;
  10941. e.length = 0;
  10942. this.Yn = r;
  10943. this.GW();
  10944. if (0 !== a) {
  10945. var f = this.Jb;
  10946. this.oj = [];
  10947. c = 0;
  10948. for (d = this.Jb.length; c < d;) {
  10949. var g = this.JU(f.substr(c),
  10950. a);
  10951. this.oj.push(f.substr(c, g));
  10952. c += g
  10953. }
  10954. } else {
  10955. this.oj = this.Jb.split("\n");
  10956. c = 0;
  10957. for (d = this.oj.length; c < d; c++) e.push(this.Br(this.oj[c]))
  10958. }
  10959. 0 < this.oj.length && (this.Yn = p);
  10960. d = c = 0;
  10961. this.Cg && (c = d = 2 * this.pj);
  10962. this.kd && (f = this.Bd, c += 2 * Math.abs(f.x), d += 2 * Math.abs(f.y));
  10963. a = 0 === a ? this.Yn ? F.size(0 | Math.max.apply(Math, e) + c, 0 | this.$h * this.oj.length + d) : F.size(0 | this.Br(this.Jb) + c, 0 | this.$h + d) : 0 === this.kc.height ? this.Yn ? F.size(0 | a + c, 0 | this.$h * this.oj.length + d) : F.size(0 | a + c, 0 | this.$h + d) : F.size(0 | a + c, 0 | this.kc.height + d);
  10964. this.Zd(a);
  10965. this.jD = c;
  10966. this.kD = d;
  10967. e = this.Rc;
  10968. this.eb.x = 0.5 * c + (a.width - c) * e.x;
  10969. this.eb.y = 0.5 * d + (a.height - d) * e.y
  10970. },
  10971. fc: function() {
  10972. this.nb && this.Bw();
  10973. return F.aa.prototype.fc.call(this)
  10974. },
  10975. ah: function() {
  10976. this.nb && this.Bw();
  10977. return F.aa.prototype.ah.call(this)
  10978. },
  10979. rk: function() {
  10980. this.nb && this.Bw();
  10981. return F.aa.prototype.rk.call(this)
  10982. },
  10983. Cw: function() {
  10984. var a = this.rB(),
  10985. c = this.Fv,
  10986. d = this.P;
  10987. if (0 === this.Jb.length) return c.width = 1, c.height = d.height, this.vb(F.rect(0, 0, 1, d.height)), p;
  10988. a.font = this.$g;
  10989. this.Bw();
  10990. var e = d.width,
  10991. d = d.height,
  10992. f = c.width ==
  10993. e && c.height == d;
  10994. c.width = e;
  10995. c.height = d;
  10996. f && a.clearRect(0, 0, e, d);
  10997. this.iV(a);
  10998. this.L && this.L.Wb();
  10999. this.vb(F.rect(0, 0, e, d));
  11000. return p
  11001. },
  11002. S: function(a) {
  11003. this.Jb && "" != this.Jb && (this.nb && (this.nb = r, this.Cw()), F.aa.prototype.S.call(this, a || F.m))
  11004. },
  11005. Y: q,
  11006. lL: function(a) {
  11007. var c = this.W ? this.textureAtlas.texture : this.L;
  11008. if (c) {
  11009. var d = c.pixelsWidth,
  11010. e = c.pixelsHeight,
  11011. f, g = this.Ub;
  11012. this.bd ? (F.Wm ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) /
  11013. e), this.Qb && (e = f, f = a, a = e), this.Rb && (e = c, c = d, d = e), g.F.n.fa = c, g.F.n.ga = f, g.O.n.fa = c, g.O.n.ga = a, g.N.n.fa = d, g.N.n.ga = f, g.K.n.fa = d, g.K.n.ga = a) : (F.Wm ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Qb && (e = c, c = d, d = e), this.Rb && (e = f, f = a, a = e), g.F.n.fa = c, g.F.n.ga = a, g.O.n.fa = d, g.O.n.ga = a, g.N.n.fa = c, g.N.n.ga = f, g.K.n.fa = d, g.K.n.ga = f);
  11014. this.Fe = p
  11015. }
  11016. }
  11017. });
  11018. F.B === F.Ca ? (M = F.Z.prototype, M.Wa = function(a) {
  11019. F.ja.prototype.Wa.call(this, a);
  11020. this.mf()
  11021. }, M.mf = function() {
  11022. this.nb = p;
  11023. var a = this.Da,
  11024. c = this.Ba,
  11025. d = this.Zl,
  11026. e = this.$l;
  11027. this.iw = "rgba(" + (0 | 0.5 * a.r) + "," + (0 | 0.5 * a.g) + "," + (0 | 0.5 * a.b) + "," + this.mj + ")";
  11028. this.rv = "rgba(" + (0 | a.r / 255 * e.r) + "," + (0 | a.g / 255 * e.g) + "," + (0 | a.b / 255 * e.b) + ", " + c / 255 + ")";
  11029. this.nw = "rgba(" + (0 | a.r / 255 * d.r) + "," + (0 | a.g / 255 * d.g) + "," + (0 | a.b / 255 * d.b) + ", " + c / 255 + ")"
  11030. }, M.Ob = function(a) {
  11031. F.ja.prototype.Ob.call(this, a);
  11032. this.mf()
  11033. }, M.va = function(a) {
  11034. this.Sd !== a && (F.aa.prototype.va.call(this,
  11035. a), this.mf(), this.nb = p)
  11036. }, M.Mb = F.aa.prototype.Mb, M.WE = function(a, c) {
  11037. this.yD(c, r);
  11038. this.string = a;
  11039. return p
  11040. }, M.gy = function(a) {
  11041. var c = this.$l;
  11042. if (c.r != a.r || c.g != a.g || c.b != a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.mf(), this.nb = p
  11043. }, M.Y = F.aa.prototype.Y, M.vb = function(a, c, d) {
  11044. this.bd = c || r;
  11045. this.Zd(d || a);
  11046. this.eG(a);
  11047. c = this.qo;
  11048. c.x = a.x;
  11049. c.y = a.y;
  11050. c.width = a.width;
  11051. c.height = a.height;
  11052. c.Dp = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y);
  11053. a = this.uh;
  11054. this.Qb && (a.x = -a.x);
  11055. this.Rb && (a.y = -a.y);
  11056. this.Fb.x = a.x + (this.P.width - this.ia.width) / 2;
  11057. this.Fb.y =
  11058. a.y + (this.P.height - this.ia.height) / 2;
  11059. this.W && (this.dirty = p)
  11060. }, M = q) : (F.assert("function" === typeof F.C.mA, F.i.Qc, "LabelTTFWebGL.js"), F.C.mA(), delete F.C.mA);
  11061. F.assert("function" === typeof F.C.sz, F.i.Qc, "LabelTTFPropertyDefine.js");
  11062. F.C.sz();
  11063. delete F.C.sz;
  11064. F.Z.nY = ["left", "center", "right"];
  11065. F.Z.oY = ["top", "middle", "bottom"];
  11066. F.Z.LU = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11067. F.Z.qX = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;
  11068. F.Z.IU = /[\s\-\/\\\:]/;
  11069. F.Z.oV = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  11070. F.Z.create = function(a, c, d, e, f, g) {
  11071. return new F.Z(a, c, d, e, f, g)
  11072. };
  11073. F.Z.mU = F.bU ? F.Pi : F.Ez;
  11074. F.Z.ck = F.Nb("div");
  11075. F.Z.ck.style.fontFamily = "Arial";
  11076. F.Z.ck.style.position = "absolute";
  11077. F.Z.ck.style.left = "-100px";
  11078. F.Z.ck.style.top = "-100px";
  11079. F.Z.ck.style.lineHeight = "normal";
  11080. document.body ? document.body.appendChild(F.Z.ck) : F.Ja(window, "load", function() {
  11081. this.removeEventListener("load", arguments.callee, r);
  11082. document.body.appendChild(F.Z.ck)
  11083. }, r);
  11084. F.Z.Mq = function(a, c) {
  11085. var d = F.Z.DI[a + "." + c];
  11086. if (0 < d) return d;
  11087. var e = F.Z.ck;
  11088. e.innerHTML = "ajghl~!";
  11089. e.style.fontFamily = a;
  11090. e.style.fontSize = c + "px";
  11091. d = e.clientHeight;
  11092. F.Z.DI[a + "." + c] = d;
  11093. e.innerHTML = "";
  11094. return d
  11095. };
  11096. F.Z.DI = {};
  11097. F.SQ = F.ma.extend({
  11098. zc: q,
  11099. target: q,
  11100. jm: 0,
  11101. qf: q,
  11102. om: r,
  11103. paused: r,
  11104. hx: q,
  11105. ctor: function() {
  11106. this.zc = [];
  11107. this.target = q;
  11108. this.jm = 0;
  11109. this.qf = q;
  11110. this.paused = this.om = r;
  11111. this.hx = q
  11112. }
  11113. });
  11114. F.sG = F.ma.extend({
  11115. dh: q,
  11116. ln: q,
  11117. xd: q,
  11118. Yh: r,
  11119. s8: function(a, c) {
  11120. for (var d = 0; d < a.length; d++)
  11121. if (c == a[d].target) return a[d];
  11122. return q
  11123. },
  11124. ctor: function() {
  11125. this.dh = {};
  11126. this.ln = [];
  11127. this.xd = q;
  11128. this.Yh = r
  11129. },
  11130. DY: function(a, c, d) {
  11131. a || b("cc.ActionManager.addAction(): action must be non-null");
  11132. c || b("cc.ActionManager.addAction(): action must be non-null");
  11133. var e = this.dh[c.xa];
  11134. e || (e = new F.SQ, e.paused = d, e.target = c, this.dh[c.xa] = e, this.ln.push(e));
  11135. this.pU(e);
  11136. e.zc.push(a);
  11137. a.A(c)
  11138. },
  11139. fha: function() {
  11140. for (var a = this.ln, c = 0; c < a.length; c++) {
  11141. var d =
  11142. a[c];
  11143. d && this.tO(d.target, p)
  11144. }
  11145. },
  11146. tO: function(a, c) {
  11147. if (a != q) {
  11148. var d = this.dh[a.xa];
  11149. d && (-1 !== d.zc.indexOf(d.qf) && !d.om && (d.om = p), d.zc.length = 0, this.xd == d && !c ? this.Yh = p : this.TA(d))
  11150. }
  11151. },
  11152. sO: function(a) {
  11153. if (a != q) {
  11154. var c = this.dh[a.originalTarget.xa];
  11155. if (c)
  11156. for (var d = 0; d < c.zc.length; d++) {
  11157. if (c.zc[d] == a) {
  11158. c.zc.splice(d, 1);
  11159. break
  11160. }
  11161. } else F.log(F.i.RP)
  11162. }
  11163. },
  11164. s2: function(a, c) {
  11165. a == F.Sm && F.log(F.i.tG);
  11166. F.assert(c, F.i.tG);
  11167. var d = this.dh[c.xa];
  11168. if (d)
  11169. for (var e = d.zc.length, f = 0; f < e; ++f) {
  11170. var g = d.zc[f];
  11171. if (g && g.Es() === a && g.originalTarget == c) {
  11172. this.jX(f,
  11173. d);
  11174. break
  11175. }
  11176. }
  11177. },
  11178. wE: function(a, c) {
  11179. a == F.Sm && F.log(F.i.PP);
  11180. var d = this.dh[c.xa];
  11181. if (d) {
  11182. if (d.zc != q)
  11183. for (var e = 0; e < d.zc.length; ++e) {
  11184. var f = d.zc[e];
  11185. if (f && f.Es() === a) return f
  11186. }
  11187. F.log(F.i.QP, a)
  11188. }
  11189. return q
  11190. },
  11191. K1: function(a) {
  11192. return (a = this.dh[a.xa]) ? a.zc ? a.zc.length : 0 : 0
  11193. },
  11194. ip: function(a) {
  11195. (a = this.dh[a.xa]) && (a.paused = p)
  11196. },
  11197. Ij: function(a) {
  11198. (a = this.dh[a.xa]) && (a.paused = r)
  11199. },
  11200. Cga: function() {
  11201. for (var a = [], c = this.ln, d = 0; d < c.length; d++) {
  11202. var e = c[d];
  11203. e && !e.paused && (e.paused = p, a.push(e.target))
  11204. }
  11205. return a
  11206. },
  11207. J2: function(a) {
  11208. if (a)
  11209. for (var c = 0; c < a.length; c++) a[c] &&
  11210. this.Ij(a[c])
  11211. },
  11212. Pga: function() {
  11213. F.I.Sk().Dt(this)
  11214. },
  11215. jX: function(a, c) {
  11216. c.zc[a] == c.qf && !c.om && (c.om = p);
  11217. c.zc.splice(a, 1);
  11218. c.jm >= a && c.jm--;
  11219. 0 == c.zc.length && (this.xd == c ? this.Yh = p : this.TA(c))
  11220. },
  11221. TA: function(a) {
  11222. a && (delete this.dh[a.target.xa], F.Me(this.ln, a), a.zc = q, a.target = q)
  11223. },
  11224. pU: function(a) {
  11225. a.zc == q && (a.zc = [])
  11226. },
  11227. update: function(a) {
  11228. for (var c = this.ln, d, e = 0; e < c.length; e++) {
  11229. d = this.xd = c[e];
  11230. if (!d.paused)
  11231. for (d.jm = 0; d.jm < d.zc.length; d.jm++)
  11232. if (d.qf = d.zc[d.jm], d.qf) {
  11233. d.om = r;
  11234. d.qf.step(a * (d.qf.Tr ? d.qf.le : 1));
  11235. if (d.om) d.qf = q;
  11236. else if (d.qf.Hg()) {
  11237. d.qf.stop();
  11238. var f = d.qf;
  11239. d.qf = q;
  11240. this.sO(f)
  11241. }
  11242. d.qf = q
  11243. }
  11244. this.Yh && 0 === d.zc.length && this.TA(d)
  11245. }
  11246. }
  11247. });
  11248. F.Zea = Number;
  11249. F.Pda = Number;
  11250. F.Qda = Number;
  11251. F.bn = 0;
  11252. F.cn = 1;
  11253. F.jF = 3.141592;
  11254. F.q1 = 0.017453;
  11255. F.r1 = 57.295779;
  11256. F.Aa = 0.015625;
  11257. F.Kc = function(a) {
  11258. return a * a
  11259. };
  11260. F.Qs = function(a) {
  11261. return a * F.q1
  11262. };
  11263. F.Uea = function(a) {
  11264. return a * F.r1
  11265. };
  11266. F.zx = function(a, c) {
  11267. return a < c ? a : c
  11268. };
  11269. F.yx = function(a, c) {
  11270. return a > c ? a : c
  11271. };
  11272. F.Oda = function(a, c) {
  11273. return a + F.Aa > c && a - F.Aa < c
  11274. };
  11275. F.Gh = function() {
  11276. this.y = this.x = 0
  11277. };
  11278. F.cfa = function(a, c, d) {
  11279. a.x = c;
  11280. a.y = d;
  11281. return a
  11282. };
  11283. F.Bx = function(a) {
  11284. return Math.sqrt(F.Kc(a.x) + F.Kc(a.y))
  11285. };
  11286. F.dfa = function(a) {
  11287. return F.Kc(a.x) + F.Kc(a.y)
  11288. };
  11289. F.x1 = function(a, c) {
  11290. var d = 1 / F.Bx(c),
  11291. e = new F.Gh;
  11292. e.x = c.x * d;
  11293. e.y = c.y * d;
  11294. a.x = e.x;
  11295. a.y = e.y
  11296. };
  11297. F.$ea = function(a, c, d) {
  11298. a.x = c.x + d.x;
  11299. a.y = c.y + d.y;
  11300. return a
  11301. };
  11302. F.bfa = function(a, c) {
  11303. return a.x * c.x + a.y * c.y
  11304. };
  11305. F.Cx = function(a, c, d) {
  11306. a.x = c.x - d.x;
  11307. a.y = c.y - d.y;
  11308. return a
  11309. };
  11310. F.ffa = function(a, c, d) {
  11311. var e = new F.Gh;
  11312. e.x = c.x * d.c[0] + c.y * d.c[3] + d.c[6];
  11313. e.y = c.x * d.c[1] + c.y * d.c[4] + d.c[7];
  11314. a.x = e.x;
  11315. a.y = e.y;
  11316. return a
  11317. };
  11318. F.gfa = E(q);
  11319. F.efa = function(a, c, d) {
  11320. a.x = c.x * d;
  11321. a.y = c.y * d;
  11322. return a
  11323. };
  11324. F.afa = function(a, c) {
  11325. return a.x < c.x + F.Aa && a.x > c.x - F.Aa && a.y < c.y + F.Aa && a.y > c.y - F.Aa
  11326. };
  11327. F.ub = function(a, c, d) {
  11328. this.x = a || 0;
  11329. this.y = c || 0;
  11330. this.e = d || 0
  11331. };
  11332. F.$o = function(a, c, d, e) {
  11333. if (!a) return new F.ub(c, d, e);
  11334. a.x = c;
  11335. a.y = d;
  11336. a.e = e;
  11337. return a
  11338. };
  11339. F.SN = function(a) {
  11340. return Math.sqrt(F.Kc(a.x) + F.Kc(a.y) + F.Kc(a.e))
  11341. };
  11342. F.TN = function(a) {
  11343. return F.Kc(a.x) + F.Kc(a.y) + F.Kc(a.e)
  11344. };
  11345. F.uf = function(a, c) {
  11346. var d = 1 / F.SN(c);
  11347. a.x = c.x * d;
  11348. a.y = c.y * d;
  11349. a.e = c.e * d
  11350. };
  11351. F.Wk = function(a, c, d) {
  11352. a.x = c.y * d.e - c.e * d.y;
  11353. a.y = c.e * d.x - c.x * d.e;
  11354. a.e = c.x * d.y - c.y * d.x
  11355. };
  11356. F.lF = function(a, c) {
  11357. return a.x * c.x + a.y * c.y + a.e * c.e
  11358. };
  11359. F.RN = function(a, c, d) {
  11360. a.x = c.x + d.x;
  11361. a.y = c.y + d.y;
  11362. a.e = c.e + d.e
  11363. };
  11364. F.nF = function(a, c, d) {
  11365. a.x = c.x - d.x;
  11366. a.y = c.y - d.y;
  11367. a.e = c.e - d.e
  11368. };
  11369. F.lfa = function(a, c, d) {
  11370. a.x = c.x * d.c[0] + c.y * d.c[4] + c.e * d.c[8] + d.c[12];
  11371. a.y = c.x * d.c[1] + c.y * d.c[5] + c.e * d.c[9] + d.c[13];
  11372. a.e = c.x * d.c[2] + c.y * d.c[6] + c.e * d.c[10] + d.c[14];
  11373. return a
  11374. };
  11375. F.mfa = function(a, c, d) {
  11376. a.x = c.x * d.c[0] + c.y * d.c[4] + c.e * d.c[8];
  11377. a.y = c.x * d.c[1] + c.y * d.c[5] + c.e * d.c[9];
  11378. a.e = c.x * d.c[2] + c.y * d.c[6] + c.e * d.c[10];
  11379. return a
  11380. };
  11381. F.UN = function(a, c, d) {
  11382. var e = new F.VN,
  11383. f = new F.VN;
  11384. F.y1(f, c.x, c.y, c.e);
  11385. F.WN(e, f, d);
  11386. a.x = e.x / e.H;
  11387. a.y = e.y / e.H;
  11388. a.e = e.e / e.H
  11389. };
  11390. F.mF = function(a, c, d) {
  11391. a.x = c.x * d;
  11392. a.y = c.y * d;
  11393. a.e = c.e * d;
  11394. return a
  11395. };
  11396. F.hfa = function(a, c) {
  11397. return a.x < c.x + F.Aa && a.x > c.x - F.Aa && a.y < c.y + F.Aa && a.y > c.y - F.Aa && a.e < c.e + F.Aa && a.e > c.e - F.Aa ? 1 : 0
  11398. };
  11399. F.ifa = function(a, c, d) {
  11400. c = new F.ub(c.x - d.c[12], c.y - d.c[13], c.e - d.c[14]);
  11401. a.x = c.x * d.c[0] + c.y * d.c[1] + c.e * d.c[2];
  11402. a.y = c.x * d.c[4] + c.y * d.c[5] + c.e * d.c[6];
  11403. a.e = c.x * d.c[8] + c.y * d.c[9] + c.e * d.c[10];
  11404. return a
  11405. };
  11406. F.jfa = function(a, c, d) {
  11407. a.x = c.x * d.c[0] + c.y * d.c[1] + c.e * d.c[2];
  11408. a.y = c.x * d.c[4] + c.y * d.c[5] + c.e * d.c[6];
  11409. a.e = c.x * d.c[8] + c.y * d.c[9] + c.e * d.c[10];
  11410. return a
  11411. };
  11412. F.Rs = function(a, c) {
  11413. a != c && (a.x = c.x, a.y = c.y, a.e = c.e)
  11414. };
  11415. F.nfa = function(a) {
  11416. a.x = 0;
  11417. a.y = 0;
  11418. a.e = 0;
  11419. return a
  11420. };
  11421. F.kfa = function(a) {
  11422. if (!a) return q;
  11423. var c = new Float32Array(3);
  11424. c[0] = a.x;
  11425. c[1] = a.y;
  11426. c[2] = a.e;
  11427. return c
  11428. };
  11429. F.VN = function() {
  11430. this.H = this.e = this.y = this.x = 0
  11431. };
  11432. F.y1 = function(a, c, d, e) {
  11433. a.x = c;
  11434. a.y = d;
  11435. a.e = e;
  11436. a.H = 1
  11437. };
  11438. F.ofa = function(a, c, d) {
  11439. a.x = c.x + d.x;
  11440. a.y = c.y + d.y;
  11441. a.e = c.e + d.e;
  11442. a.H = c.H + d.H;
  11443. return a
  11444. };
  11445. F.rfa = function(a, c) {
  11446. return a.x * c.x + a.y * c.y + a.e * c.e + a.H * c.H
  11447. };
  11448. F.z1 = function(a) {
  11449. return Math.sqrt(F.Kc(a.x) + F.Kc(a.y) + F.Kc(a.e) + F.Kc(a.H))
  11450. };
  11451. F.sfa = function(a) {
  11452. return F.Kc(a.x) + F.Kc(a.y) + F.Kc(a.e) + F.Kc(a.H)
  11453. };
  11454. F.tfa = aa();
  11455. F.A1 = function(a, c) {
  11456. var d = 1 / F.z1(c);
  11457. a.x *= d;
  11458. a.y *= d;
  11459. a.e *= d;
  11460. a.H *= d
  11461. };
  11462. F.ufa = function(a, c, d) {
  11463. F.A1(a, c);
  11464. a.x *= d;
  11465. a.y *= d;
  11466. a.e *= d;
  11467. a.H *= d;
  11468. return a
  11469. };
  11470. F.vfa = function(a, c, d) {
  11471. a.x = c.x - d.x;
  11472. a.y = c.y - d.y;
  11473. a.e = c.e - d.e;
  11474. a.H = c.H - d.H;
  11475. return a
  11476. };
  11477. F.WN = function(a, c, d) {
  11478. a.x = c.x * d.c[0] + c.y * d.c[4] + c.e * d.c[8] + c.H * d.c[12];
  11479. a.y = c.x * d.c[1] + c.y * d.c[5] + c.e * d.c[9] + c.H * d.c[13];
  11480. a.e = c.x * d.c[2] + c.y * d.c[6] + c.e * d.c[10] + c.H * d.c[14];
  11481. a.H = c.x * d.c[3] + c.y * d.c[7] + c.e * d.c[11] + c.H * d.c[15]
  11482. };
  11483. F.xfa = function(a, c, d, e, f, g) {
  11484. for (var h = 0; h < g;) F.WN(a + h * c, d + h * e, f), ++h;
  11485. return a
  11486. };
  11487. F.pfa = function(a, c) {
  11488. return a.x < c.x + F.Aa && a.x > c.x - F.Aa && a.y < c.y + F.Aa && a.y > c.y - F.Aa && a.e < c.e + F.Aa && a.e > c.e - F.Aa && a.H < c.H + F.Aa && a.H > c.H - F.Aa
  11489. };
  11490. F.qfa = function(a, c) {
  11491. if (a == c) return F.log("destVec and srcVec are same object"), a;
  11492. a.x = c.x;
  11493. a.y = c.y;
  11494. a.e = c.e;
  11495. a.H = c.H;
  11496. return a
  11497. };
  11498. F.wfa = function(a) {
  11499. if (!a) return q;
  11500. var c = new Float32Array(4);
  11501. c[0] = a.x;
  11502. c[1] = a.y;
  11503. c[2] = a.e;
  11504. c[3] = a.H;
  11505. return c
  11506. };
  11507. F.Vea = function(a) {
  11508. this.start = a || new F.Gh;
  11509. this.start = a || new F.Gh
  11510. };
  11511. F.Wea = function(a, c, d, e, f) {
  11512. a.start.x = c;
  11513. a.start.y = d;
  11514. a.dir.x = e;
  11515. a.dir.y = f
  11516. };
  11517. F.kF = function(a, c, d, e) {
  11518. var f = a.start.x,
  11519. g = a.start.y,
  11520. h = a.start.x + a.dir.x;
  11521. a = a.start.y + a.dir.y;
  11522. var m = c.x,
  11523. n = c.y,
  11524. s = d.x,
  11525. u = d.y,
  11526. v = (u - n) * (h - f) - (s - m) * (a - g);
  11527. if (v > -F.Aa && v < F.Aa) return F.bn;
  11528. n = ((s - m) * (g - n) - (u - n) * (f - m)) / v;
  11529. m = f + n * (h - f);
  11530. n = g + n * (a - g);
  11531. if (m < F.zx(c.x, d.x) - F.Aa || m > F.yx(c.x, d.x) + F.Aa || n < F.zx(c.y, d.y) - F.Aa || n > F.yx(c.y, d.y) + F.Aa || m < F.zx(f, h) - F.Aa || m > F.yx(f, h) + F.Aa || n < F.zx(g, a) - F.Aa || n > F.yx(g, a) + F.Aa) return F.bn;
  11532. e.x = m;
  11533. e.y = n;
  11534. return F.cn
  11535. };
  11536. F.XD = function(a, c, d) {
  11537. var e = new F.Gh;
  11538. F.Cx(e, c, a);
  11539. d.x = -e.y;
  11540. d.y = e.x;
  11541. F.x1(d, d)
  11542. };
  11543. F.Yea = function(a, c, d, e, f, g) {
  11544. var h = new F.Gh,
  11545. m = new F.Gh,
  11546. n = new F.Gh,
  11547. s = 1E4,
  11548. u = F.bn,
  11549. v;
  11550. F.kF(a, c, d, h) && (v = new F.Gh, u = F.cn, v = F.Bx(F.Cx(v, h, a.start)), v < s && (m.x = h.x, m.y = h.y, s = v, F.XD(c, d, n)));
  11551. F.kF(a, d, e, h) && (v = new F.Gh, u = F.cn, v = F.Bx(F.Cx(v, h, a.start)), v < s && (m.x = h.x, m.y = h.y, s = v, F.XD(d, e, n)));
  11552. F.kF(a, e, c, h) && (v = new F.Gh, u = F.cn, v = F.Bx(F.Cx(v, h, a.start)), v < s && (m.x = h.x, m.y = h.y, F.XD(e, c, n)));
  11553. u && (f.x = m.x, f.y = m.y, g && (g.x = n.x, g.y = n.y));
  11554. return u
  11555. };
  11556. F.Xea = function() {
  11557. F.log("cc.kmRay2IntersectCircle() has not been implemented.")
  11558. };
  11559. var Float32Array = Float32Array || Array;
  11560. F.xx = function() {
  11561. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0])
  11562. };
  11563. F.Yda = function(a, c) {
  11564. for (var d = 0; 9 > d; d++) a.c[d] = c;
  11565. return a
  11566. };
  11567. F.j1 = function(a, c) {
  11568. a.c[0] = c.c[4] * c.c[8] - c.c[5] * c.c[7];
  11569. a.c[1] = c.c[2] * c.c[7] - c.c[1] * c.c[8];
  11570. a.c[2] = c.c[1] * c.c[5] - c.c[2] * c.c[4];
  11571. a.c[3] = c.c[5] * c.c[6] - c.c[3] * c.c[8];
  11572. a.c[4] = c.c[0] * c.c[8] - c.c[2] * c.c[6];
  11573. a.c[5] = c.c[2] * c.c[3] - c.c[0] * c.c[5];
  11574. a.c[6] = c.c[3] * c.c[7] - c.c[4] * c.c[6];
  11575. a.c[8] = c.c[0] * c.c[4] - c.c[1] * c.c[3]
  11576. };
  11577. F.JN = function(a) {
  11578. a.c[1] = a.c[2] = a.c[3] = a.c[5] = a.c[6] = a.c[7] = 0;
  11579. a.c[0] = a.c[4] = a.c[8] = 1
  11580. };
  11581. F.Zda = function(a, c, d) {
  11582. var e = new F.xx;
  11583. if (0 === c) return q;
  11584. c = 1 / c;
  11585. F.j1(e, d);
  11586. F.k1(a, e, c);
  11587. return a
  11588. };
  11589. F.xx.yB = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
  11590. F.$da = function(a) {
  11591. for (var c = 0; 9 > c; c++)
  11592. if (F.xx.yB[c] !== a.c[c]) return r;
  11593. return p
  11594. };
  11595. F.kea = function(a, c) {
  11596. var d, e;
  11597. for (d = 0; 3 > d; ++d)
  11598. for (e = 0; 3 > e; ++e) a.c[3 * d + e] = c.c[3 * e + d];
  11599. return a
  11600. };
  11601. F.Xda = function(a) {
  11602. var c;
  11603. c = a.c[0] * a.c[4] * a.c[8] + a.c[1] * a.c[5] * a.c[6] + a.c[2] * a.c[3] * a.c[7];
  11604. return c -= a.c[2] * a.c[4] * a.c[6] + a.c[0] * a.c[5] * a.c[7] + a.c[1] * a.c[3] * a.c[8]
  11605. };
  11606. F.aea = function(a, c, d) {
  11607. c = c.c;
  11608. d = d.c;
  11609. a.c[0] = c[0] * d[0] + c[3] * d[1] + c[6] * d[2];
  11610. a.c[1] = c[1] * d[0] + c[4] * d[1] + c[7] * d[2];
  11611. a.c[2] = c[2] * d[0] + c[5] * d[1] + c[8] * d[2];
  11612. a.c[3] = c[0] * d[3] + c[3] * d[4] + c[6] * d[5];
  11613. a.c[4] = c[1] * d[3] + c[4] * d[4] + c[7] * d[5];
  11614. a.c[5] = c[2] * d[3] + c[5] * d[4] + c[8] * d[5];
  11615. a.c[6] = c[0] * d[6] + c[3] * d[7] + c[6] * d[8];
  11616. a.c[7] = c[1] * d[6] + c[4] * d[7] + c[7] * d[8];
  11617. a.c[8] = c[2] * d[6] + c[5] * d[7] + c[8] * d[8];
  11618. return a
  11619. };
  11620. F.k1 = function(a, c, d) {
  11621. for (var e = 0; 9 > e; e++) a.c[e] = c.c[e] * d
  11622. };
  11623. F.cea = function(a, c, d) {
  11624. var e = Math.cos(d);
  11625. d = Math.sin(d);
  11626. a.c[0] = e + c.x * c.x * (1 - e);
  11627. a.c[1] = c.e * d + c.y * c.x * (1 - e);
  11628. a.c[2] = -c.y * d + c.e * c.x * (1 - e);
  11629. a.c[3] = -c.e * d + c.x * c.y * (1 - e);
  11630. a.c[4] = e + c.y * c.y * (1 - e);
  11631. a.c[5] = c.x * d + c.e * c.y * (1 - e);
  11632. a.c[6] = c.y * d + c.x * c.e * (1 - e);
  11633. a.c[7] = -c.x * d + c.y * c.e * (1 - e);
  11634. a.c[8] = e + c.e * c.e * (1 - e);
  11635. return a
  11636. };
  11637. F.Wda = function(a, c) {
  11638. if (a == c) return F.log("cc.kmMat3Assign(): pOut equals pIn"), a;
  11639. for (var d = 0; 9 > d; d++) a.c[d] = c.c[d];
  11640. return a
  11641. };
  11642. F.Vda = function(a, c) {
  11643. if (a == c) return p;
  11644. for (var d = 0; 9 > d; ++d)
  11645. if (!(a.c[d] + F.Aa > c.c[d] && a.c[d] - F.Aa < c.c[d])) return r;
  11646. return p
  11647. };
  11648. F.fea = function(a, c) {
  11649. a.c[0] = 1;
  11650. a.c[1] = 0;
  11651. a.c[2] = 0;
  11652. a.c[3] = 0;
  11653. a.c[4] = Math.cos(c);
  11654. a.c[5] = Math.sin(c);
  11655. a.c[6] = 0;
  11656. a.c[7] = -Math.sin(c);
  11657. a.c[8] = Math.cos(c);
  11658. return a
  11659. };
  11660. F.gea = function(a, c) {
  11661. a.c[0] = Math.cos(c);
  11662. a.c[1] = 0;
  11663. a.c[2] = -Math.sin(c);
  11664. a.c[3] = 0;
  11665. a.c[4] = 1;
  11666. a.c[5] = 0;
  11667. a.c[6] = Math.sin(c);
  11668. a.c[7] = 0;
  11669. a.c[8] = Math.cos(c);
  11670. return a
  11671. };
  11672. F.hea = function(a, c) {
  11673. a.c[0] = Math.cos(c);
  11674. a.c[1] = -Math.sin(c);
  11675. a.c[2] = 0;
  11676. a.c[3] = Math.sin(c);
  11677. a.c[4] = Math.cos(c);
  11678. a.c[5] = 0;
  11679. a.c[6] = 0;
  11680. a.c[7] = 0;
  11681. a.c[8] = 1;
  11682. return a
  11683. };
  11684. F.bea = function(a, c) {
  11685. a.c[0] = Math.cos(c);
  11686. a.c[1] = Math.sin(c);
  11687. a.c[2] = 0;
  11688. a.c[3] = -Math.sin(c);
  11689. a.c[4] = Math.cos(c);
  11690. a.c[5] = 0;
  11691. a.c[6] = 0;
  11692. a.c[7] = 0;
  11693. a.c[8] = 1;
  11694. return a
  11695. };
  11696. F.iea = function(a, c, d) {
  11697. F.JN(a);
  11698. a.c[0] = c;
  11699. a.c[4] = d;
  11700. return a
  11701. };
  11702. F.jea = function(a, c, d) {
  11703. F.JN(a);
  11704. a.c[6] = c;
  11705. a.c[7] = d;
  11706. return a
  11707. };
  11708. F.dea = function(a, c) {
  11709. if (!c || !a) return q;
  11710. a.c[0] = 1 - 2 * (c.y * c.y + c.e * c.e);
  11711. a.c[1] = 2 * (c.x * c.y - c.H * c.e);
  11712. a.c[2] = 2 * (c.x * c.e + c.H * c.y);
  11713. a.c[3] = 2 * (c.x * c.y + c.H * c.e);
  11714. a.c[4] = 1 - 2 * (c.x * c.x + c.e * c.e);
  11715. a.c[5] = 2 * (c.y * c.e - c.H * c.x);
  11716. a.c[6] = 2 * (c.x * c.e - c.H * c.y);
  11717. a.c[7] = 2 * (c.y * c.e + c.H * c.x);
  11718. a.c[8] = 1 - 2 * (c.x * c.x + c.y * c.y);
  11719. return a
  11720. };
  11721. F.eea = function(a, c, d) {
  11722. F.PN(k, d);
  11723. F.QN(k, a);
  11724. return a
  11725. };
  11726. F.ca = function() {
  11727. this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
  11728. };
  11729. F.nea = function(a, c) {
  11730. a.c[0] = a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[5] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[10] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = a.c[15] = c
  11731. };
  11732. F.Cm = function(a) {
  11733. a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = 0;
  11734. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1
  11735. };
  11736. F.ca.If = function(a, c, d) {
  11737. return a.c[c + 4 * d]
  11738. };
  11739. F.ca.Ck = function(a, c, d, e) {
  11740. a.c[c + 4 * d] = e
  11741. };
  11742. F.ca.Jk = function(a, c, d, e, f) {
  11743. var g = F.ca.If(a, c, d);
  11744. F.ca.Ck(a, c, d, F.ca.If(a, e, f));
  11745. F.ca.Ck(a, e, f, g)
  11746. };
  11747. F.ca.qV = function(a, c) {
  11748. var d, e = 0,
  11749. f = 0,
  11750. g, h, m, n = [0, 0, 0, 0],
  11751. s = [0, 0, 0, 0],
  11752. u = [0, 0, 0, 0];
  11753. for (d = 0; 4 > d; d++) {
  11754. for (g = m = 0; 4 > g; g++)
  11755. if (1 != u[g])
  11756. for (h = 0; 4 > h; h++) 0 == u[h] && Math.abs(F.ca.If(a, g, h)) >= m && (m = Math.abs(F.ca.If(a, g, h)), f = g, e = h);
  11757. ++u[e];
  11758. if (f != e) {
  11759. for (g = 0; 4 > g; g++) F.ca.Jk(a, f, g, e, g);
  11760. for (g = 0; 4 > g; g++) F.ca.Jk(c, f, g, e, g)
  11761. }
  11762. s[d] = f;
  11763. n[d] = e;
  11764. if (0 == F.ca.If(a, e, e)) return F.bn;
  11765. h = 1 / F.ca.If(a, e, e);
  11766. F.ca.Ck(a, e, e, 1);
  11767. for (g = 0; 4 > g; g++) F.ca.Ck(a, e, g, F.ca.If(a, e, g) * h);
  11768. for (g = 0; 4 > g; g++) F.ca.Ck(c, e, g, F.ca.If(c, e, g) * h);
  11769. for (h = 0; 4 > h; h++)
  11770. if (h !=
  11771. e) {
  11772. m = F.ca.If(a, h, e);
  11773. F.ca.Ck(a, h, e, 0);
  11774. for (g = 0; 4 > g; g++) F.ca.Ck(a, h, g, F.ca.If(a, h, g) - F.ca.If(a, e, g) * m);
  11775. for (g = 0; 4 > g; g++) F.ca.Ck(c, h, g, F.ca.If(a, h, g) - F.ca.If(c, e, g) * m)
  11776. }
  11777. }
  11778. for (g = 3; 0 <= g; g--)
  11779. if (s[g] != n[g])
  11780. for (h = 0; 4 > h; h++) F.ca.Jk(a, h, s[g], h, n[g]);
  11781. return F.cn
  11782. };
  11783. F.ca.yB = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
  11784. F.m1 = function(a, c) {
  11785. var d = new F.ca,
  11786. e = new F.ca;
  11787. F.zj(d, c);
  11788. F.Cm(e);
  11789. F.ca.qV(d, e) != F.bn && F.zj(a, d)
  11790. };
  11791. F.rea = function(a) {
  11792. for (var c = 0; 16 > c; c++)
  11793. if (F.ca.yB[c] != a.c[c]) return r;
  11794. return p
  11795. };
  11796. F.zea = function(a, c) {
  11797. var d, e, f = a.c,
  11798. g = c.c;
  11799. for (e = 0; 4 > e; ++e)
  11800. for (d = 0; 4 > d; ++d) f[4 * e + d] = g[4 * d + e];
  11801. return a
  11802. };
  11803. F.zi = function(a, c, d) {
  11804. a = a.c;
  11805. var e = c.c[0],
  11806. f = c.c[1],
  11807. g = c.c[2],
  11808. h = c.c[3],
  11809. m = c.c[4],
  11810. n = c.c[5],
  11811. s = c.c[6],
  11812. u = c.c[7],
  11813. v = c.c[8],
  11814. x = c.c[9],
  11815. w = c.c[10],
  11816. z = c.c[11],
  11817. B = c.c[12],
  11818. C = c.c[13],
  11819. D = c.c[14];
  11820. c = c.c[15];
  11821. var L = d.c[0],
  11822. O = d.c[1],
  11823. H = d.c[2],
  11824. I = d.c[3],
  11825. K = d.c[4],
  11826. G = d.c[5],
  11827. J = d.c[6],
  11828. Q = d.c[7],
  11829. R = d.c[8],
  11830. P = d.c[9],
  11831. $ = d.c[10],
  11832. T = d.c[11],
  11833. Y = d.c[12],
  11834. ba = d.c[13],
  11835. N = d.c[14];
  11836. d = d.c[15];
  11837. a[0] = L * e + O * m + H * v + I * B;
  11838. a[1] = L * f + O * n + H * x + I * C;
  11839. a[2] = L * g + O * s + H * w + I * D;
  11840. a[3] = L * h + O * u + H * z + I * c;
  11841. a[4] = K * e + G * m + J * v + Q * B;
  11842. a[5] = K * f + G * n + J * x + Q * C;
  11843. a[6] = K * g + G * s + J * w + Q * D;
  11844. a[7] = K * h + G * u + J * z + Q *
  11845. c;
  11846. a[8] = R * e + P * m + $ * v + T * B;
  11847. a[9] = R * f + P * n + $ * x + T * C;
  11848. a[10] = R * g + P * s + $ * w + T * D;
  11849. a[11] = R * h + P * u + $ * z + T * c;
  11850. a[12] = Y * e + ba * m + N * v + d * B;
  11851. a[13] = Y * f + ba * n + N * x + d * C;
  11852. a[14] = Y * g + ba * s + N * w + d * D;
  11853. a[15] = Y * h + ba * u + N * z + d * c
  11854. };
  11855. F.L_ = function() {
  11856. var a = F.Zk.top.c,
  11857. c = F.Cj.top.c,
  11858. d = new Float32Array(16);
  11859. d[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3];
  11860. d[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3];
  11861. d[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3];
  11862. d[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3];
  11863. d[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7];
  11864. d[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7];
  11865. d[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7];
  11866. d[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7];
  11867. d[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11];
  11868. d[9] = a[1] * c[8] +
  11869. a[5] * c[9] + a[9] * c[10] + a[13] * c[11];
  11870. d[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11];
  11871. d[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11];
  11872. d[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15];
  11873. d[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15];
  11874. d[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15];
  11875. d[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15];
  11876. return d
  11877. };
  11878. F.xba = function(a, c, d) {
  11879. a = a.c;
  11880. c = c.c;
  11881. var e = d.c;
  11882. e[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3];
  11883. e[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3];
  11884. e[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3];
  11885. e[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3];
  11886. e[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7];
  11887. e[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7];
  11888. e[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7];
  11889. e[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7];
  11890. e[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11];
  11891. e[9] = a[1] * c[8] + a[5] * c[9] + a[9] * c[10] + a[13] *
  11892. c[11];
  11893. e[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11];
  11894. e[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11];
  11895. e[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15];
  11896. e[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15];
  11897. e[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15];
  11898. e[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15];
  11899. return d.c
  11900. };
  11901. F.zj = function(a, c) {
  11902. if (a == c) F.log("cc.kmMat4Assign(): pOut equals pIn");
  11903. else {
  11904. var d = a.c,
  11905. e = c.c;
  11906. d[0] = e[0];
  11907. d[1] = e[1];
  11908. d[2] = e[2];
  11909. d[3] = e[3];
  11910. d[4] = e[4];
  11911. d[5] = e[5];
  11912. d[6] = e[6];
  11913. d[7] = e[7];
  11914. d[8] = e[8];
  11915. d[9] = e[9];
  11916. d[10] = e[10];
  11917. d[11] = e[11];
  11918. d[12] = e[12];
  11919. d[13] = e[13];
  11920. d[14] = e[14];
  11921. d[15] = e[15]
  11922. }
  11923. };
  11924. F.lea = function(a, c) {
  11925. if (a == c) return F.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), p;
  11926. for (var d = 0; 16 > d; d++)
  11927. if (!(a.c[d] + F.Aa > c.c[d] && a.c[d] - F.Aa < c.c[d])) return r;
  11928. return p
  11929. };
  11930. F.wea = function(a, c) {
  11931. a.c[0] = 1;
  11932. a.c[1] = 0;
  11933. a.c[2] = 0;
  11934. a.c[3] = 0;
  11935. a.c[4] = 0;
  11936. a.c[5] = Math.cos(c);
  11937. a.c[6] = Math.sin(c);
  11938. a.c[7] = 0;
  11939. a.c[8] = 0;
  11940. a.c[9] = -Math.sin(c);
  11941. a.c[10] = Math.cos(c);
  11942. a.c[11] = 0;
  11943. a.c[12] = 0;
  11944. a.c[13] = 0;
  11945. a.c[14] = 0;
  11946. a.c[15] = 1;
  11947. return a
  11948. };
  11949. F.xea = function(a, c) {
  11950. a.c[0] = Math.cos(c);
  11951. a.c[1] = 0;
  11952. a.c[2] = -Math.sin(c);
  11953. a.c[3] = 0;
  11954. a.c[4] = 0;
  11955. a.c[5] = 1;
  11956. a.c[6] = 0;
  11957. a.c[7] = 0;
  11958. a.c[8] = Math.sin(c);
  11959. a.c[9] = 0;
  11960. a.c[10] = Math.cos(c);
  11961. a.c[11] = 0;
  11962. a.c[12] = 0;
  11963. a.c[13] = 0;
  11964. a.c[14] = 0;
  11965. a.c[15] = 1;
  11966. return a
  11967. };
  11968. F.yea = function(a, c) {
  11969. a.c[0] = Math.cos(c);
  11970. a.c[1] = Math.sin(c);
  11971. a.c[2] = 0;
  11972. a.c[3] = 0;
  11973. a.c[4] = -Math.sin(c);
  11974. a.c[5] = Math.cos(c);
  11975. a.c[6] = 0;
  11976. a.c[7] = 0;
  11977. a.c[8] = 0;
  11978. a.c[9] = 0;
  11979. a.c[10] = 1;
  11980. a.c[11] = 0;
  11981. a.c[12] = 0;
  11982. a.c[13] = 0;
  11983. a.c[14] = 0;
  11984. a.c[15] = 1;
  11985. return a
  11986. };
  11987. F.sea = function(a, c, d, e) {
  11988. var f = Math.cos(c);
  11989. c = Math.sin(c);
  11990. var g = Math.cos(d);
  11991. d = Math.sin(d);
  11992. var h = Math.cos(e);
  11993. e = Math.sin(e);
  11994. var m = c * d,
  11995. n = f * d;
  11996. a.c[0] = g * h;
  11997. a.c[4] = g * e;
  11998. a.c[8] = -d;
  11999. a.c[1] = m * h - f * e;
  12000. a.c[5] = m * e + f * h;
  12001. a.c[9] = c * g;
  12002. a.c[2] = n * h + c * e;
  12003. a.c[6] = n * e - c * h;
  12004. a.c[10] = f * g;
  12005. a.c[3] = a.c[7] = a.c[11] = 0;
  12006. a.c[15] = 1;
  12007. return a
  12008. };
  12009. F.tea = function(a, c) {
  12010. a.c[0] = 1 - 2 * (c.y * c.y + c.e * c.e);
  12011. a.c[1] = 2 * (c.x * c.y + c.e * c.H);
  12012. a.c[2] = 2 * (c.x * c.e - c.y * c.H);
  12013. a.c[3] = 0;
  12014. a.c[4] = 2 * (c.x * c.y - c.e * c.H);
  12015. a.c[5] = 1 - 2 * (c.x * c.x + c.e * c.e);
  12016. a.c[6] = 2 * (c.e * c.y + c.x * c.H);
  12017. a.c[7] = 0;
  12018. a.c[8] = 2 * (c.x * c.e + c.y * c.H);
  12019. a.c[9] = 2 * (c.y * c.e - c.x * c.H);
  12020. a.c[10] = 1 - 2 * (c.x * c.x + c.y * c.y);
  12021. a.c[11] = 0;
  12022. a.c[12] = 0;
  12023. a.c[13] = 0;
  12024. a.c[14] = 0;
  12025. a.c[15] = 1;
  12026. return a
  12027. };
  12028. F.vea = function(a, c, d) {
  12029. a.c[0] = c.c[0];
  12030. a.c[1] = c.c[1];
  12031. a.c[2] = c.c[2];
  12032. a.c[3] = 0;
  12033. a.c[4] = c.c[3];
  12034. a.c[5] = c.c[4];
  12035. a.c[6] = c.c[5];
  12036. a.c[7] = 0;
  12037. a.c[8] = c.c[6];
  12038. a.c[9] = c.c[7];
  12039. a.c[10] = c.c[8];
  12040. a.c[11] = 0;
  12041. a.c[12] = d.x;
  12042. a.c[13] = d.y;
  12043. a.c[14] = d.e;
  12044. a.c[15] = 1;
  12045. return a
  12046. };
  12047. F.p1 = function(a, c, d, e) {
  12048. a.c[0] = c;
  12049. a.c[5] = d;
  12050. a.c[10] = e;
  12051. a.c[15] = 1;
  12052. a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = 0
  12053. };
  12054. F.LN = function(a, c, d, e) {
  12055. a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1;
  12056. a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = 0;
  12057. a.c[12] = c;
  12058. a.c[13] = d;
  12059. a.c[14] = e
  12060. };
  12061. F.qea = function(a, c) {
  12062. a.x = c.c[4];
  12063. a.y = c.c[5];
  12064. a.e = c.c[6];
  12065. F.uf(a, a);
  12066. return a
  12067. };
  12068. F.pea = function(a, c) {
  12069. a.x = c.c[0];
  12070. a.y = c.c[1];
  12071. a.e = c.c[2];
  12072. F.uf(a, a);
  12073. return a
  12074. };
  12075. F.oea = function(a, c) {
  12076. a.x = c.c[8];
  12077. a.y = c.c[9];
  12078. a.e = c.c[10];
  12079. F.uf(a, a);
  12080. return a
  12081. };
  12082. F.n1 = function(a, c, d) {
  12083. var e = F.Qs(30),
  12084. f = d - 0.1,
  12085. g = Math.sin(e);
  12086. 0 == f || (0 == g || 0 == c) || (e = Math.cos(e) / g, F.Cm(a), a.c[0] = e / c, a.c[5] = e, a.c[10] = -(d + 0.1) / f, a.c[11] = -1, a.c[14] = -0.2 * d / f, a.c[15] = 0)
  12087. };
  12088. F.iF = function(a, c, d, e, f, g, h) {
  12089. F.Cm(a);
  12090. a.c[0] = 2 / (d - c);
  12091. a.c[5] = 2 / (f - e);
  12092. a.c[10] = -2 / (h - g);
  12093. a.c[12] = -((d + c) / (d - c));
  12094. a.c[13] = -((f + e) / (f - e));
  12095. a.c[14] = -((h + g) / (h - g))
  12096. };
  12097. F.KN = function(a, c, d, e) {
  12098. var f = new F.ub,
  12099. g = new F.ub,
  12100. h = new F.ub,
  12101. m = new F.ub,
  12102. n = new F.ca;
  12103. F.nF(f, d, c);
  12104. F.uf(f, f);
  12105. F.Rs(g, e);
  12106. F.uf(g, g);
  12107. F.Wk(h, f, g);
  12108. F.uf(h, h);
  12109. F.Wk(m, h, f);
  12110. F.uf(h, h);
  12111. F.Cm(a);
  12112. a.c[0] = h.x;
  12113. a.c[4] = h.y;
  12114. a.c[8] = h.e;
  12115. a.c[1] = m.x;
  12116. a.c[5] = m.y;
  12117. a.c[9] = m.e;
  12118. a.c[2] = -f.x;
  12119. a.c[6] = -f.y;
  12120. a.c[10] = -f.e;
  12121. F.LN(n, -c.x, -c.y, -c.e);
  12122. F.zi(a, a, n)
  12123. };
  12124. F.o1 = function(a, c, d) {
  12125. var e = Math.cos(d);
  12126. d = Math.sin(d);
  12127. var f = new F.ub;
  12128. F.uf(f, c);
  12129. a.c[0] = e + f.x * f.x * (1 - e);
  12130. a.c[1] = f.e * d + f.y * f.x * (1 - e);
  12131. a.c[2] = -f.y * d + f.e * f.x * (1 - e);
  12132. a.c[3] = 0;
  12133. a.c[4] = -f.e * d + f.x * f.y * (1 - e);
  12134. a.c[5] = e + f.y * f.y * (1 - e);
  12135. a.c[6] = f.x * d + f.e * f.y * (1 - e);
  12136. a.c[7] = 0;
  12137. a.c[8] = f.y * d + f.x * f.e * (1 - e);
  12138. a.c[9] = -f.x * d + f.y * f.e * (1 - e);
  12139. a.c[10] = e + f.e * f.e * (1 - e);
  12140. a.c[11] = 0;
  12141. a.c[12] = 0;
  12142. a.c[13] = 0;
  12143. a.c[14] = 0;
  12144. a.c[15] = 1
  12145. };
  12146. F.l1 = function(a, c) {
  12147. a.c[0] = c.c[0];
  12148. a.c[1] = c.c[1];
  12149. a.c[2] = c.c[2];
  12150. a.c[3] = c.c[4];
  12151. a.c[4] = c.c[5];
  12152. a.c[5] = c.c[6];
  12153. a.c[6] = c.c[8];
  12154. a.c[7] = c.c[9];
  12155. a.c[8] = c.c[10]
  12156. };
  12157. F.mea = function(a, c, d) {
  12158. switch (d) {
  12159. case F.hR:
  12160. a.a = c.c[3] - c.c[0];
  12161. a.b = c.c[7] - c.c[4];
  12162. a.D = c.c[11] - c.c[8];
  12163. a.J = c.c[15] - c.c[12];
  12164. break;
  12165. case F.fR:
  12166. a.a = c.c[3] + c.c[0];
  12167. a.b = c.c[7] + c.c[4];
  12168. a.D = c.c[11] + c.c[8];
  12169. a.J = c.c[15] + c.c[12];
  12170. break;
  12171. case F.dR:
  12172. a.a = c.c[3] + c.c[1];
  12173. a.b = c.c[7] + c.c[5];
  12174. a.D = c.c[11] + c.c[9];
  12175. a.J = c.c[15] + c.c[13];
  12176. break;
  12177. case F.iR:
  12178. a.a = c.c[3] - c.c[1];
  12179. a.b = c.c[7] - c.c[5];
  12180. a.D = c.c[11] - c.c[9];
  12181. a.J = c.c[15] - c.c[13];
  12182. break;
  12183. case F.eR:
  12184. a.a = c.c[3] - c.c[2];
  12185. a.b = c.c[7] - c.c[6];
  12186. a.D = c.c[11] - c.c[10];
  12187. a.J = c.c[15] - c.c[14];
  12188. break;
  12189. case F.gR:
  12190. a.a =
  12191. c.c[3] + c.c[2];
  12192. a.b = c.c[7] + c.c[6];
  12193. a.D = c.c[11] + c.c[10];
  12194. a.J = c.c[15] + c.c[14];
  12195. break;
  12196. default:
  12197. F.log("cc.kmMat4ExtractPlane(): Invalid plane index")
  12198. }
  12199. c = Math.sqrt(a.a * a.a + a.b * a.b + a.D * a.D);
  12200. a.a /= c;
  12201. a.b /= c;
  12202. a.D /= c;
  12203. a.J /= c;
  12204. return a
  12205. };
  12206. F.uea = function(a, c, d) {
  12207. c = new fa;
  12208. var e = new F.xx;
  12209. F.l1(e, d);
  12210. F.PN(c, e);
  12211. F.QN(c, a);
  12212. return a
  12213. };
  12214. F.fR = 0;
  12215. F.hR = 1;
  12216. F.dR = 2;
  12217. F.iR = 3;
  12218. F.gR = 4;
  12219. F.eR = 5;
  12220. F.Aea = function(a, c, d, e) {
  12221. this.a = a || 0;
  12222. this.b = c || 0;
  12223. this.D = d || 0;
  12224. this.J = e || 0
  12225. };
  12226. F.ZR = 0;
  12227. F.YR = 1;
  12228. F.$R = 2;
  12229. F.Cea = function(a, c) {
  12230. return a.a * c.x + a.b * c.y + a.D * c.e + a.J * c.H
  12231. };
  12232. F.Dea = function(a, c) {
  12233. return a.a * c.x + a.b * c.y + a.D * c.e + a.J
  12234. };
  12235. F.Eea = function(a, c) {
  12236. return a.a * c.x + a.b * c.y + a.D * c.e
  12237. };
  12238. F.Fea = function(a, c, d) {
  12239. a.a = d.x;
  12240. a.b = d.y;
  12241. a.D = d.e;
  12242. a.J = -F.lF(d, c);
  12243. return a
  12244. };
  12245. F.Gea = function(a, c, d, e) {
  12246. var f = new F.ub,
  12247. g = new F.ub,
  12248. h = new F.ub;
  12249. F.nF(g, d, c);
  12250. F.nF(h, e, c);
  12251. F.Wk(f, g, h);
  12252. F.uf(f, f);
  12253. a.a = f.x;
  12254. a.b = f.y;
  12255. a.D = f.e;
  12256. a.J = F.lF(F.mF(f, f, -1), c);
  12257. return a
  12258. };
  12259. F.Hea = function() {
  12260. b("cc.kmPlaneIntersectLine() hasn't been implemented.")
  12261. };
  12262. F.Iea = function(a, c) {
  12263. var d = new F.ub;
  12264. d.x = c.a;
  12265. d.y = c.b;
  12266. d.e = c.D;
  12267. var e = 1 / F.SN(d);
  12268. F.uf(d, d);
  12269. a.a = d.x;
  12270. a.b = d.y;
  12271. a.D = d.e;
  12272. a.J = c.J * e;
  12273. return a
  12274. };
  12275. F.Jea = function() {
  12276. F.log("cc.kmPlaneScale() has not been implemented.")
  12277. };
  12278. F.Bea = function(a, c) {
  12279. var d = a.a * c.x + a.b * c.y + a.D * c.e + a.J;
  12280. return 0.001 < d ? F.ZR : -0.001 > d ? F.YR : F.$R
  12281. };
  12282. function fa() {
  12283. this.H = this.e = this.y = this.x = 0
  12284. }
  12285. F.t1 = function(a, c) {
  12286. a.x = -c.x;
  12287. a.y = -c.y;
  12288. a.e = -c.e;
  12289. a.H = c.H;
  12290. return a
  12291. };
  12292. F.u1 = function(a, c) {
  12293. return a.H * c.H + a.x * c.x + a.y * c.y + a.e * c.e
  12294. };
  12295. F.Lea = aa();
  12296. F.v1 = function(a) {
  12297. a.x = 0;
  12298. a.y = 0;
  12299. a.e = 0;
  12300. a.H = 1
  12301. };
  12302. F.Mea = function(a, c) {
  12303. var d = F.MN(c),
  12304. e = new fa;
  12305. if (Math.abs(d) > F.Aa) return a.x = 0, a.y = 0, a.e = 0, a.H = 0, a;
  12306. F.Ax(a, F.t1(e, c), 1 / d);
  12307. return a
  12308. };
  12309. F.Nea = function(a) {
  12310. return 0 == a.x && 0 == a.y && 0 == a.e && 1 == a.H
  12311. };
  12312. F.MN = function(a) {
  12313. return Math.sqrt(F.w1(a))
  12314. };
  12315. F.w1 = function(a) {
  12316. return a.x * a.x + a.y * a.y + a.e * a.e + a.H * a.H
  12317. };
  12318. F.Oea = aa();
  12319. F.Pea = function(a, c, d) {
  12320. a.H = c.H * d.H - c.x * d.x - c.y * d.y - c.e * d.e;
  12321. a.x = c.H * d.x + c.x * d.H + c.y * d.e - c.e * d.y;
  12322. a.y = c.H * d.y + c.y * d.H + c.e * d.x - c.x * d.e;
  12323. a.e = c.H * d.e + c.e * d.H + c.x * d.y - c.y * d.x;
  12324. return a
  12325. };
  12326. F.NN = function(a, c) {
  12327. var d = F.MN(c);
  12328. Math.abs(d) <= F.Aa && b("cc.kmQuaternionNormalize(): pIn is an invalid value");
  12329. F.Ax(a, c, 1 / d)
  12330. };
  12331. F.ON = function(a, c) {
  12332. var d = 0.5 * F.jF,
  12333. e = Math.sin(d);
  12334. a.H = Math.cos(d);
  12335. a.x = c.x * e;
  12336. a.y = c.y * e;
  12337. a.e = c.e * e
  12338. };
  12339. F.PN = function(a, c) {
  12340. var d, e, f, g;
  12341. d = [];
  12342. e = g = 0;
  12343. if (c) {
  12344. d[0] = c.c[0];
  12345. d[1] = c.c[3];
  12346. d[2] = c.c[6];
  12347. d[4] = c.c[1];
  12348. d[5] = c.c[4];
  12349. d[6] = c.c[7];
  12350. d[8] = c.c[2];
  12351. d[9] = c.c[5];
  12352. d[10] = c.c[8];
  12353. d[15] = 1;
  12354. var h = d[0];
  12355. e = h[0] + h[5] + h[10] + 1;
  12356. e > F.Aa ? (g = 2 * Math.sqrt(e), d = (h[9] - h[6]) / g, e = (h[2] - h[8]) / g, f = (h[4] - h[1]) / g, g *= 0.25) : h[0] > h[5] && h[0] > h[10] ? (g = 2 * Math.sqrt(1 + h[0] - h[5] - h[10]), d = 0.25 * g, e = (h[4] + h[1]) / g, f = (h[2] + h[8]) / g, g = (h[9] - h[6]) / g) : h[5] > h[10] ? (g = 2 * Math.sqrt(1 + h[5] - h[0] - h[10]), d = (h[4] + h[1]) / g, e = 0.25 * g, f = (h[9] + h[6]) / g, g = (h[2] - h[8]) / g) : (g = 2 * Math.sqrt(1 +
  12357. h[10] - h[0] - h[5]), d = (h[2] + h[8]) / g, e = (h[9] + h[6]) / g, f = 0.25 * g, g = (h[4] - h[1]) / g);
  12358. a.x = d;
  12359. a.y = e;
  12360. a.e = f;
  12361. a.H = g
  12362. }
  12363. };
  12364. F.Sea = function(a, c, d, e) {
  12365. var f, g, h, m, n;
  12366. f = F.Qs(d) / 2;
  12367. g = F.Qs(c) / 2;
  12368. h = F.Qs(e) / 2;
  12369. e = Math.cos(f);
  12370. c = Math.cos(g);
  12371. d = Math.cos(h);
  12372. f = Math.sin(f);
  12373. g = Math.sin(g);
  12374. h = Math.sin(h);
  12375. m = c * d;
  12376. n = g * h;
  12377. a.H = e * m + f * n;
  12378. a.x = f * m - e * n;
  12379. a.y = e * g * d + f * c * h;
  12380. a.e = e * c * h - f * g * d;
  12381. F.NN(a, a);
  12382. return a
  12383. };
  12384. F.Tea = function(a, c, d, e) {
  12385. if (c.x == d.x && c.y == d.y && c.e == d.e && c.H == d.H) return a.x = c.x, a.y = c.y, a.e = c.e, a.H = c.H, a;
  12386. var f = F.u1(c, d),
  12387. g = Math.acos(f),
  12388. f = Math.sqrt(1 - F.Kc(f)),
  12389. h = Math.sin(e * g) / f,
  12390. m = new fa,
  12391. n = new fa;
  12392. F.Ax(m, c, Math.sin((1 - e) * g) / f);
  12393. F.Ax(n, d, h);
  12394. F.s1(a, m, n);
  12395. return a
  12396. };
  12397. F.QN = function(a, c) {
  12398. var d;
  12399. d = Math.sqrt(F.Kc(a.x) + F.Kc(a.y) + F.Kc(a.e));
  12400. d > -F.Aa && d < F.Aa || d < 2 * F.jF + F.Aa && d > 2 * F.jF - F.Aa ? (c.x = 0, c.y = 0, c.e = 1) : (c.x = a.x / d, c.y = a.y / d, c.e = a.e / d, F.uf(c, c))
  12401. };
  12402. F.Ax = function(a, c, d) {
  12403. a.x = c.x * d;
  12404. a.y = c.y * d;
  12405. a.e = c.e * d;
  12406. a.H = c.H * d
  12407. };
  12408. F.Kea = function(a, c) {
  12409. a.x = c.x;
  12410. a.y = c.y;
  12411. a.e = c.e;
  12412. a.H = c.H;
  12413. return a
  12414. };
  12415. F.s1 = function(a, c, d) {
  12416. a.x = c.x + d.x;
  12417. a.y = c.y + d.y;
  12418. a.e = c.e + d.e;
  12419. a.H = c.H + d.H
  12420. };
  12421. F.Rea = function(a, c, d, e) {
  12422. var f = new F.ub,
  12423. g = new F.ub;
  12424. F.Rs(f, c);
  12425. F.Rs(g, d);
  12426. F.uf(f, f);
  12427. F.uf(g, g);
  12428. d = F.lF(f, g);
  12429. if (1 <= d) return F.v1(a), a; - 0.999999 > d ? Math.abs(F.TN(e)) < F.Aa ? F.ON(a, e) : (f = new F.ub, g = new F.ub, g.x = 1, g.y = 0, g.e = 0, F.Wk(f, g, c), Math.abs(F.TN(f)) < F.Aa && (g = new F.ub, g.x = 0, g.y = 1, g.e = 0, F.Wk(f, g, c)), F.uf(f, f), F.ON(a, f)) : (c = Math.sqrt(2 * (1 + d)), e = 1 / c, d = new F.ub, F.Wk(d, f, g), a.x = d.x * e, a.y = d.y * e, a.e = d.e * e, a.H = 0.5 * c, F.NN(a, a));
  12430. return a
  12431. };
  12432. F.Qea = function(a, c, d) {
  12433. var e = new F.ub,
  12434. f = new F.ub,
  12435. g = new F.ub;
  12436. g.x = c.x;
  12437. g.y = c.y;
  12438. g.e = c.e;
  12439. F.Wk(e, g, d);
  12440. F.Wk(f, g, e);
  12441. F.mF(e, e, 2 * c.H);
  12442. F.mF(f, f, 2);
  12443. F.RN(a, d, e);
  12444. F.RN(a, a, f);
  12445. return a
  12446. };
  12447. F.Kda = function(a, c) {
  12448. this.min = a || new F.ub;
  12449. this.max = c || new F.ub
  12450. };
  12451. F.Mda = function(a, c) {
  12452. return a.x >= c.min.x && a.x <= c.max.x && a.y >= c.min.y && a.y <= c.max.y && a.e >= c.min.e && a.e <= c.max.e ? F.cn : F.bn
  12453. };
  12454. F.Lda = function(a, c) {
  12455. F.Rs(a.min, c.min);
  12456. F.Rs(a.max, c.max);
  12457. return a
  12458. };
  12459. F.Nda = function() {
  12460. F.log("cc.kmAABBScale hasn't been supported.")
  12461. };
  12462. F.Dx = function(a, c, d, e) {
  12463. this.top = d;
  12464. this.stack = e
  12465. };
  12466. F.Dx.e6 = 30;
  12467. F.oF = function(a) {
  12468. a.stack = [];
  12469. a.top = q
  12470. };
  12471. F.Ex = function(a, c) {
  12472. a.stack.push(a.top);
  12473. a.top = new F.ca;
  12474. F.zj(a.top, c)
  12475. };
  12476. F.yfa = function(a) {
  12477. a.top = a.stack.pop()
  12478. };
  12479. F.pF = function(a) {
  12480. a.stack = q;
  12481. a.top = q
  12482. };
  12483. F.Mi = 5888;
  12484. F.Ni = 5889;
  12485. F.TG = 5890;
  12486. F.Cj = new F.Dx;
  12487. F.Zk = new F.Dx;
  12488. F.yt = new F.Dx;
  12489. F.Vb = q;
  12490. F.ZE = r;
  12491. F.C1 = function() {
  12492. if (!F.ZE) {
  12493. var a = new F.ca;
  12494. F.oF(F.Cj);
  12495. F.oF(F.Zk);
  12496. F.oF(F.yt);
  12497. F.Vb = F.Cj;
  12498. F.ZE = p;
  12499. F.Cm(a);
  12500. F.Ex(F.Cj, a);
  12501. F.Ex(F.Zk, a);
  12502. F.Ex(F.yt, a)
  12503. }
  12504. };
  12505. F.C1();
  12506. F.i1 = function() {
  12507. F.pF(F.Cj);
  12508. F.pF(F.Zk);
  12509. F.pF(F.yt);
  12510. F.ZE = r;
  12511. F.Vb = q
  12512. };
  12513. F.Bm = function() {
  12514. F.Ex(F.Vb, F.Vb.top)
  12515. };
  12516. F.Sda = function(a) {
  12517. F.Vb.stack.push(F.Vb.top);
  12518. F.zj(a, F.Vb.top);
  12519. F.Vb.top = a
  12520. };
  12521. F.Am = function() {
  12522. F.Vb.top = F.Vb.stack.pop()
  12523. };
  12524. F.yi = function(a) {
  12525. switch (a) {
  12526. case F.Mi:
  12527. F.Vb = F.Cj;
  12528. break;
  12529. case F.Ni:
  12530. F.Vb = F.Zk;
  12531. break;
  12532. case F.TG:
  12533. F.Vb = F.yt;
  12534. break;
  12535. default:
  12536. b("Invalid matrix mode specified")
  12537. }
  12538. };
  12539. F.Xo = function() {
  12540. F.Cm(F.Vb.top)
  12541. };
  12542. F.Rda = function(a) {
  12543. F.zj(F.Vb.top, a)
  12544. };
  12545. F.Yo = function(a) {
  12546. F.zi(F.Vb.top, F.Vb.top, a)
  12547. };
  12548. F.Zo = function(a, c) {
  12549. var d = new F.ca;
  12550. F.LN(d, a, c, 0);
  12551. F.zi(F.Vb.top, F.Vb.top, d)
  12552. };
  12553. F.Tda = function(a, c, d, e) {
  12554. c = new F.ub(c, d, e);
  12555. d = new F.ca;
  12556. F.o1(d, c, F.Qs(a));
  12557. F.zi(F.Vb.top, F.Vb.top, d)
  12558. };
  12559. F.Uda = function(a, c, d) {
  12560. var e = new F.ca;
  12561. F.p1(e, a, c, d);
  12562. F.zi(F.Vb.top, F.Vb.top, e)
  12563. };
  12564. F.wx = function(a, c) {
  12565. switch (a) {
  12566. case F.Mi:
  12567. F.zj(c, F.Cj.top);
  12568. break;
  12569. case F.Ni:
  12570. F.zj(c, F.Zk.top);
  12571. break;
  12572. case F.TG:
  12573. F.zj(c, F.yt.top);
  12574. break;
  12575. default:
  12576. b("Invalid matrix mode specified")
  12577. }
  12578. };
  12579. F.uS = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  12580. F.vS = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";
  12581. F.iS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  12582. F.lS = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";
  12583. F.jS = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  12584. F.kS = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";
  12585. F.qS = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  12586. F.tS = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  12587. F.rS = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  12588. F.sS = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  12589. F.mS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  12590. F.nS = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  12591. F.pS = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  12592. F.BH = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  12593. F.oS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  12594. F.O6 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";
  12595. F.Jd = {
  12596. Qz: 0,
  12597. Rz: 1,
  12598. Oz: 2,
  12599. Pz: 3,
  12600. Tz: 4,
  12601. Sz: 5,
  12602. Uz: 6,
  12603. NH: 7,
  12604. l7: 8,
  12605. jd: {},
  12606. tr: function() {
  12607. this.E1();
  12608. return p
  12609. },
  12610. Ee: function(a, c) {
  12611. switch (c) {
  12612. case this.Qz:
  12613. a.wi(F.BH, F.pS);
  12614. a.od(F.fl, F.qb);
  12615. a.od(F.Ep, F.ye);
  12616. a.od(F.Tm, F.ud);
  12617. break;
  12618. case this.Rz:
  12619. a.wi(F.BH, F.oS);
  12620. a.od(F.fl, F.qb);
  12621. a.od(F.Ep, F.ye);
  12622. a.od(F.Tm, F.ud);
  12623. break;
  12624. case this.Oz:
  12625. a.wi(F.lS, F.iS);
  12626. a.od(F.fl, F.qb);
  12627. a.od(F.Ep, F.ye);
  12628. break;
  12629. case this.Pz:
  12630. a.wi(F.tS, F.qS);
  12631. a.od(F.fl, F.qb);
  12632. a.od(F.Tm, F.ud);
  12633. break;
  12634. case this.Tz:
  12635. a.wi(F.sS, F.rS);
  12636. a.od(F.fl, F.qb);
  12637. a.od(F.Tm, F.ud);
  12638. break;
  12639. case this.Sz:
  12640. a.wi(F.nS,
  12641. F.mS);
  12642. a.od(F.fl, F.qb);
  12643. a.od(F.Ep, F.ye);
  12644. a.od(F.Tm, F.ud);
  12645. break;
  12646. case this.Uz:
  12647. a.wi(F.vS, F.uS);
  12648. a.od("aVertex", F.qb);
  12649. break;
  12650. case this.NH:
  12651. a.wi(F.kS, F.jS);
  12652. a.od(F.fl, F.qb);
  12653. a.od(F.Tm, F.ud);
  12654. a.od(F.Ep, F.ye);
  12655. break;
  12656. default:
  12657. F.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  12658. return
  12659. }
  12660. a.link();
  12661. a.F4()
  12662. },
  12663. E1: function() {
  12664. var a = new F.Nh;
  12665. this.Ee(a, this.Qz);
  12666. this.jd[F.Pi] = a;
  12667. this.jd.ShaderPositionTextureColor = a;
  12668. a = new F.Nh;
  12669. this.Ee(a, this.Rz);
  12670. this.jd[F.ru] = a;
  12671. this.jd.ShaderPositionTextureColorAlphaTest = a;
  12672. a = new F.Nh;
  12673. this.Ee(a, this.Oz);
  12674. this.jd[F.qu] = a;
  12675. this.jd.ShaderPositionColor = a;
  12676. a = new F.Nh;
  12677. this.Ee(a, this.Pz);
  12678. this.jd[F.tq] = a;
  12679. this.jd.ShaderPositionTexture = a;
  12680. a = new F.Nh;
  12681. this.Ee(a, this.Tz);
  12682. this.jd[F.Fz] = a;
  12683. this.jd.ShaderPositionTextureUColor = a;
  12684. a = new F.Nh;
  12685. this.Ee(a, this.Sz);
  12686. this.jd[F.Ez] = a;
  12687. this.jd.ShaderPositionTextureA8Color = a;
  12688. a = new F.Nh;
  12689. this.Ee(a, this.Uz);
  12690. this.jd[F.Gz] = a;
  12691. this.jd.ShaderPositionUColor = a;
  12692. a = new F.Nh;
  12693. this.Ee(a, this.NH);
  12694. this.jd[F.AH] = a;
  12695. this.jd.ShaderPositionLengthTextureColor = a
  12696. },
  12697. eha: function() {
  12698. var a = this.oc(F.Pi);
  12699. a.reset();
  12700. this.Ee(a, this.Qz);
  12701. a = this.oc(F.ru);
  12702. a.reset();
  12703. this.Ee(a, this.Rz);
  12704. a = this.oc(F.qu);
  12705. a.reset();
  12706. this.Ee(a, this.Oz);
  12707. a = this.oc(F.tq);
  12708. a.reset();
  12709. this.Ee(a, this.Pz);
  12710. a = this.oc(F.Fz);
  12711. a.reset();
  12712. this.Ee(a, this.Tz);
  12713. a = this.oc(F.Ez);
  12714. a.reset();
  12715. this.Ee(a, this.Sz);
  12716. a = this.oc(F.Gz);
  12717. a.reset();
  12718. this.Ee(a, this.Uz)
  12719. },
  12720. oc: function(a) {
  12721. return this.jd[a]
  12722. },
  12723. ym: function(a) {
  12724. return this.jd[a]
  12725. },
  12726. P8: function(a, c) {
  12727. this.jd[c] = a
  12728. }
  12729. };
  12730. F.UQ = function() {
  12731. this.location = this.value = k;
  12732. this.hx = {}
  12733. };
  12734. F.Nh = F.ma.extend({
  12735. ha: q,
  12736. Hb: q,
  12737. nf: q,
  12738. wg: q,
  12739. zb: q,
  12740. bh: q,
  12741. LL: r,
  12742. Ke: function(a, c) {
  12743. if (a == q) return r;
  12744. for (var d = p, e = q, f = 0; f < this.bh.length; f++) this.bh[f].location == a && (e = this.bh[f]);
  12745. e ? e.value == c ? d = r : e.value = c : (e = new F.UQ, e.location = a, e.value = c, this.bh.push(e));
  12746. return d
  12747. },
  12748. N7: function() {
  12749. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.Hb.toString() + ", VertexShader \x3d " + this.nf.toString() + ", FragmentShader \x3d " + this.wg.toString() + "\x3e"
  12750. },
  12751. UI: function(a, c, d) {
  12752. if (!d || !a) return r;
  12753. this.ha.shaderSource(a,
  12754. "precision highp float; \nuniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \n//CC INCLUDES END \n" + d);
  12755. this.ha.compileShader(a);
  12756. d = this.ha.getShaderParameter(a, this.ha.COMPILE_STATUS);
  12757. d || (F.log("cocos2d: ERROR: Failed to compile shader:\n" + this.ha.getShaderSource(a)), c == this.ha.VERTEX_SHADER ?
  12758. F.log("cocos2d: \n" + this.K4()) : F.log("cocos2d: \n" + this.e_()));
  12759. return 1 == d
  12760. },
  12761. ctor: function(a, c, d) {
  12762. this.zb = [];
  12763. this.bh = [];
  12764. this.ha = d || F.m;
  12765. a && c && this.M(a, c)
  12766. },
  12767. Q9: function() {
  12768. this.bh = this.zb = this.wg = this.nf = q;
  12769. this.ha.deleteProgram(this.Hb)
  12770. },
  12771. wi: function(a, c) {
  12772. var d = this.ha;
  12773. this.Hb = d.createProgram();
  12774. this.wg = this.nf = q;
  12775. a && (this.nf = d.createShader(d.VERTEX_SHADER), this.UI(this.nf, d.VERTEX_SHADER, a) || F.log("cocos2d: ERROR: Failed to compile vertex shader"));
  12776. c && (this.wg = d.createShader(d.FRAGMENT_SHADER), this.UI(this.wg,
  12777. d.FRAGMENT_SHADER, c) || F.log("cocos2d: ERROR: Failed to compile fragment shader"));
  12778. this.nf && d.attachShader(this.Hb, this.nf);
  12779. F.Eo();
  12780. this.wg && d.attachShader(this.Hb, this.wg);
  12781. this.bh.length = 0;
  12782. F.Eo();
  12783. return p
  12784. },
  12785. pd: function(a, c) {
  12786. return this.wi(a, c)
  12787. },
  12788. K0: function(a, c) {
  12789. var d = F.V.Dd(a);
  12790. d || b("Please load the resource firset : " + a);
  12791. var e = F.V.Dd(c);
  12792. e || b("Please load the resource firset : " + c);
  12793. return this.wi(d, e)
  12794. },
  12795. M: function(a, c) {
  12796. return this.K0(a, c)
  12797. },
  12798. od: function(a, c) {
  12799. this.ha.bindAttribLocation(this.Hb, c, a)
  12800. },
  12801. link: function() {
  12802. if (!this.Hb) return F.log("cc.GLProgram.link(): Cannot link invalid program"),
  12803. r;
  12804. this.ha.linkProgram(this.Hb);
  12805. this.nf && this.ha.deleteShader(this.nf);
  12806. this.wg && this.ha.deleteShader(this.wg);
  12807. this.wg = this.nf = q;
  12808. return F.Ic.Oe[F.Ic.Ug.xs] && !this.ha.getProgramParameter(this.Hb, this.ha.LINK_STATUS) ? (F.log("cocos2d: ERROR: Failed to link program: " + this.ha.getProgramInfoLog(this.Hb)), F.r0(this.Hb), this.Hb = q, r) : p
  12809. },
  12810. Nc: function() {
  12811. F.OE(this.Hb)
  12812. },
  12813. F4: function() {
  12814. this.zb[F.dA] = this.ha.getUniformLocation(this.Hb, F.WT);
  12815. this.zb[F.cA] = this.ha.getUniformLocation(this.Hb, F.UT);
  12816. this.zb[F.Jq] = this.ha.getUniformLocation(this.Hb,
  12817. F.VT);
  12818. this.zb[F.hA] = this.ha.getUniformLocation(this.Hb, F.$T);
  12819. this.zb[F.gA] = this.ha.getUniformLocation(this.Hb, F.ZT);
  12820. this.zb[F.bA] = this.ha.getUniformLocation(this.Hb, F.TT);
  12821. this.LL = this.zb[F.hA] != q || this.zb[F.gA] != q || this.zb[F.bA] != q;
  12822. this.zb[F.eA] = this.ha.getUniformLocation(this.Hb, F.XT);
  12823. this.zb[F.fA] = this.ha.getUniformLocation(this.Hb, F.YT);
  12824. this.Nc();
  12825. this.hP(this.zb[F.fA], 0)
  12826. },
  12827. Hca: function(a) {
  12828. a || b("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null");
  12829. this.Hb || b("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized");
  12830. return this.ha.getUniformLocation(this.Hb, a)
  12831. },
  12832. Ica: function() {
  12833. return this.zb[F.Jq]
  12834. },
  12835. Jca: function() {
  12836. return this.zb[F.fA]
  12837. },
  12838. hP: function(a, c) {
  12839. this.Ke(a, c) && this.ha.uniform1i(a, c)
  12840. },
  12841. Eja: function(a, c, d) {
  12842. this.Ke(a, [c, d]) && this.ha.uniform2i(a, c, d)
  12843. },
  12844. Hja: function(a, c, d, e) {
  12845. this.Ke(a, [c, d, e]) && this.ha.uniform3i(a, c, d, e)
  12846. },
  12847. Kja: function(a, c, d, e, f) {
  12848. this.Ke(a, [c, d, e, f]) && this.ha.uniform4i(a, c, d, e, f)
  12849. },
  12850. Fja: function(a, c) {
  12851. this.Ke(a, c) && this.ha.uniform2iv(a, c)
  12852. },
  12853. Ija: function(a, c) {
  12854. this.Ke(a, c) && this.ha.uniform3iv(a, c)
  12855. },
  12856. Lja: function(a,
  12857. c) {
  12858. this.Ke(a, c) && this.ha.uniform4iv(a, c)
  12859. },
  12860. Cja: function(a, c) {
  12861. this.hP(a, c)
  12862. },
  12863. st: function(a, c) {
  12864. this.Ke(a, c) && this.ha.uniform1f(a, c)
  12865. },
  12866. L3: function(a, c, d) {
  12867. this.Ke(a, [c, d]) && this.ha.uniform2f(a, c, d)
  12868. },
  12869. M3: function(a, c, d, e) {
  12870. this.Ke(a, [c, d, e]) && this.ha.uniform3f(a, c, d, e)
  12871. },
  12872. tt: function(a, c, d, e, f) {
  12873. this.Ke(a, [c, d, e, f]) && this.ha.uniform4f(a, c, d, e, f)
  12874. },
  12875. Dja: function(a, c) {
  12876. this.Ke(a, c) && this.ha.uniform2fv(a, c)
  12877. },
  12878. Gja: function(a, c) {
  12879. this.Ke(a, c) && this.ha.uniform3fv(a, c)
  12880. },
  12881. Jja: function(a, c) {
  12882. this.Ke(a, c) && this.ha.uniform4fv(a,
  12883. c)
  12884. },
  12885. dG: function(a, c) {
  12886. this.Ke(a, c) && this.ha.uniformMatrix4fv(a, r, c)
  12887. },
  12888. Bja: function() {
  12889. if (!(2 > arguments.length)) switch (arguments.length) {
  12890. case 2:
  12891. this.st(arguments[0], arguments[1]);
  12892. break;
  12893. case 3:
  12894. this.L3(arguments[0], arguments[1], arguments[2]);
  12895. break;
  12896. case 4:
  12897. this.M3(arguments[0], arguments[1], arguments[2], arguments[3]);
  12898. break;
  12899. case 5:
  12900. this.tt(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  12901. }
  12902. },
  12903. ut: function() {
  12904. var a = new F.ca,
  12905. c = new F.ca,
  12906. d = new F.ca;
  12907. F.wx(F.Ni, a);
  12908. F.wx(F.Mi, c);
  12909. F.zi(d, a, c);
  12910. this.dG(this.zb[F.dA],
  12911. a.c, 1);
  12912. this.dG(this.zb[F.cA], c.c, 1);
  12913. this.dG(this.zb[F.Jq], d.c, 1);
  12914. this.LL && (a = F.I, a = a.ww * a.Rq, this.tt(this.zb[F.hA], a / 10, a, 2 * a, 4 * a), this.tt(this.zb[F.gA], a / 8, a / 4, a / 2, Math.sin(a)), this.tt(this.zb[F.bA], a / 8, a / 4, a / 2, Math.cos(a))); - 1 != this.zb[F.eA] && this.tt(this.zb[F.eA], Math.random(), Math.random(), Math.random(), Math.random())
  12915. },
  12916. zja: function() {
  12917. this.ha.uniformMatrix4fv(this.zb[F.Jq], r, F.L_())
  12918. },
  12919. Aja: function(a) {
  12920. F.zi(a, F.Zk.top, F.Cj.top);
  12921. this.ha.uniformMatrix4fv(this.zb[F.Jq], r, a.c)
  12922. },
  12923. Ze: function() {
  12924. this.ha.uniformMatrix4fv(this.zb[F.cA],
  12925. r, F.Cj.top.c);
  12926. this.ha.uniformMatrix4fv(this.zb[F.dA], r, F.Zk.top.c)
  12927. },
  12928. K4: function() {
  12929. return this.ha.getShaderInfoLog(this.nf)
  12930. },
  12931. Oca: function() {
  12932. return this.ha.getShaderInfoLog(this.nf)
  12933. },
  12934. cba: function() {
  12935. return this.ha.getShaderInfoLog(this.nf)
  12936. },
  12937. e_: function() {
  12938. return this.ha.getShaderInfoLog(this.wg)
  12939. },
  12940. Mga: function() {
  12941. return this.ha.getProgramInfoLog(this.Hb)
  12942. },
  12943. Yba: function() {
  12944. return this.ha.getProgramInfoLog(this.Hb)
  12945. },
  12946. reset: function() {
  12947. this.wg = this.nf = q;
  12948. this.zb.length = 0;
  12949. this.ha.deleteProgram(this.Hb);
  12950. this.Hb =
  12951. q;
  12952. for (var a = 0; a < this.bh.length; a++) this.bh[a].value = q, this.bh[a] = q;
  12953. this.bh.length = 0
  12954. },
  12955. ym: A("Hb"),
  12956. ay: t(),
  12957. Ei: t()
  12958. });
  12959. F.Nh.create = function(a, c) {
  12960. return new F.Nh(a, c)
  12961. };
  12962. F.$I = -1;
  12963. F.CD = r;
  12964. F.BD = r;
  12965. F.DD = r;
  12966. F.Wg && (F.tR = 16, F.br = -1, F.ar = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], F.pn = -1, F.on = -1, F.jU = 0, F.Kz && (F.DL = 0));
  12967. F.Yca = function() {
  12968. F.i1();
  12969. F.$I = -1;
  12970. F.CD = r;
  12971. F.BD = r;
  12972. F.DD = r;
  12973. if (F.Wg) {
  12974. F.br = -1;
  12975. for (var a = 0; a < F.tR; a++) F.ar[a] = -1;
  12976. F.pn = -1;
  12977. F.on = -1;
  12978. F.jU = 0
  12979. }
  12980. };
  12981. F.OE = function(a) {
  12982. a !== F.br && (F.br = a, F.m.useProgram(a))
  12983. };
  12984. F.Wg || (F.OE = function(a) {
  12985. F.m.useProgram(a)
  12986. });
  12987. F.r0 = function(a) {
  12988. F.Wg && a === F.br && (F.br = -1);
  12989. gl.deleteProgram(a)
  12990. };
  12991. F.Eh = function(a, c) {
  12992. if (a !== F.pn || c !== F.on) F.pn = a, F.on = c, F.ey(a, c)
  12993. };
  12994. F.ey = function(a, c) {
  12995. var d = F.m;
  12996. a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), F.m.blendFunc(a, c))
  12997. };
  12998. F.oN = function(a, c) {
  12999. if (a !== F.pn || c !== F.on) {
  13000. F.pn = a;
  13001. F.on = c;
  13002. var d = F.m;
  13003. a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), d.blendFuncSeparate(d.SRC_ALPHA, c, a, c))
  13004. }
  13005. };
  13006. F.Wg || (F.Eh = F.ey);
  13007. F.Vca = function() {
  13008. var a = F.m;
  13009. a.blendEquation(a.FUNC_ADD);
  13010. F.Wg ? F.ey(F.pn, F.on) : F.ey(a.hc, a.gc)
  13011. };
  13012. F.XO = function() {
  13013. F.$I = -1
  13014. };
  13015. F.Jc = function(a) {
  13016. var c = F.m,
  13017. d = a & F.Md;
  13018. d !== F.CD && (d ? c.enableVertexAttribArray(F.qb) : c.disableVertexAttribArray(F.qb), F.CD = d);
  13019. d = a & F.Cu;
  13020. d !== F.BD && (d ? c.enableVertexAttribArray(F.ye) : c.disableVertexAttribArray(F.ye), F.BD = d);
  13021. a &= F.hn;
  13022. a !== F.DD && (a ? c.enableVertexAttribArray(F.ud) : c.disableVertexAttribArray(F.ud), F.DD = a)
  13023. };
  13024. F.qe = function(a) {
  13025. F.NE(0, a)
  13026. };
  13027. F.NE = function(a, c) {
  13028. if (F.ar[a] != c) {
  13029. F.ar[a] = c;
  13030. var d = F.m;
  13031. d.activeTexture(d.TEXTURE0 + a);
  13032. c ? d.bindTexture(d.TEXTURE_2D, c.Vd) : d.bindTexture(d.TEXTURE_2D, q)
  13033. }
  13034. };
  13035. F.Wg || (F.NE = function(a, c) {
  13036. var d = F.m;
  13037. d.activeTexture(d.TEXTURE0 + a);
  13038. c ? d.bindTexture(d.TEXTURE_2D, c.Vd) : d.bindTexture(d.TEXTURE_2D, q)
  13039. });
  13040. F.Wca = function(a) {
  13041. F.s0(a)
  13042. };
  13043. F.s0 = function(a) {
  13044. F.Wg && a == F.ar[0] && (F.ar[0] = -1);
  13045. F.m.deleteTexture(a)
  13046. };
  13047. F.Uca = function(a) {
  13048. F.Kz && (F.Wg && F.DL != a) && (F.DL = a)
  13049. };
  13050. F.Xca = t();
  13051. F.Z5 = 0;
  13052. F.a6 = 1;
  13053. F.b6 = 2;
  13054. F.Qj = function(a) {
  13055. a -= 1;
  13056. a |= a >> 1;
  13057. a |= a >> 2;
  13058. a |= a >> 4;
  13059. a |= a >> 8;
  13060. return (a | a >> 16) + 1
  13061. };
  13062. F.en = F.t.extend({
  13063. sprite: q,
  13064. Lw: 0,
  13065. cE: 0,
  13066. rs: r,
  13067. ae: q,
  13068. Ae: q,
  13069. qv: 0,
  13070. cr: 0,
  13071. fi: 0,
  13072. L: q,
  13073. bs: q,
  13074. rY: q,
  13075. hi: F.ea.Oi,
  13076. Ui: q,
  13077. dE: 0,
  13078. OA: q,
  13079. tb: "RenderTexture",
  13080. ctor: q,
  13081. Zq: function(a, c, d, e) {
  13082. F.t.prototype.ctor.call(this);
  13083. this.Ui = F.color(255, 255, 255, 255);
  13084. this.OA = "rgba(255,255,255,1)";
  13085. this.ae = F.Nb("canvas");
  13086. this.Ae = this.ae.getContext("2d");
  13087. this.anchorY = this.anchorX = 0;
  13088. a !== k && c !== k && (d = d || F.ea.Oi, this.qx(a, c, d, e || 0))
  13089. },
  13090. $q: function(a, c, d, e) {
  13091. F.t.prototype.ctor.call(this);
  13092. this.Ui = F.color(0, 0, 0, 0);
  13093. a !== k && c !== k && (d = d || F.ea.Oi, this.qx(a, c, d, e ||
  13094. 0))
  13095. },
  13096. Ne: q,
  13097. NU: function() {
  13098. F.t.prototype.Ab.call(this);
  13099. this.ae = this.Ae = q
  13100. },
  13101. OU: function() {
  13102. F.t.prototype.Ab.call(this);
  13103. this.bs = q;
  13104. var a = F.m;
  13105. a.deleteFramebuffer(this.qv);
  13106. this.cr && a.deleteRenderbuffer(this.cr);
  13107. this.rY = q
  13108. },
  13109. gN: A("sprite"),
  13110. ny: y("sprite"),
  13111. qx: q,
  13112. lW: function(a, c) {
  13113. var d = this.ae,
  13114. e = F.rb();
  13115. d.width = 0 | a * e;
  13116. d.height = 0 | c * e;
  13117. this.Ae.translate(0, d.height);
  13118. e = new F.ea;
  13119. e.Ed(d);
  13120. e.Wb();
  13121. this.sprite = F.aa.create(e);
  13122. return p
  13123. },
  13124. mW: function(a, c, d, e) {
  13125. d == F.ea.kq && F.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  13126. var f = F.m,
  13127. g = F.rb();
  13128. a = 0 | a * g;
  13129. c = 0 | c * g;
  13130. this.fi = f.getParameter(f.FRAMEBUFFER_BINDING);
  13131. var h;
  13132. F.Fo.tw ? (g = a, h = c) : (g = F.Qj(a), h = F.Qj(c));
  13133. for (var m = new Uint8Array(4 * g * h), n = 0; n < 4 * g * h; n++) m[n] = 0;
  13134. this.hi = d;
  13135. this.L = new F.ea;
  13136. if (!this.L) return r;
  13137. n = this.L;
  13138. n.Ms(m, this.hi, g, h, F.size(a, c));
  13139. d = f.getParameter(f.RENDERBUFFER_BINDING);
  13140. if (F.Fo.Do("GL_QCOM")) {
  13141. this.bs = new F.ea;
  13142. if (!this.bs) return r;
  13143. this.bs.Ms(m, this.hi, g, h, F.size(a, c))
  13144. }
  13145. this.qv = f.createFramebuffer();
  13146. f.bindFramebuffer(f.FRAMEBUFFER, this.qv);
  13147. f.framebufferTexture2D(f.FRAMEBUFFER,
  13148. f.COLOR_ATTACHMENT0, f.TEXTURE_2D, n.Vd, 0);
  13149. 0 != e && (this.cr = f.createRenderbuffer(), f.bindRenderbuffer(f.RENDERBUFFER, this.cr), f.renderbufferStorage(f.RENDERBUFFER, e, g, h), f.framebufferRenderbuffer(f.FRAMEBUFFER, f.DEPTH_ATTACHMENT, f.RENDERBUFFER, this.cr));
  13150. f.checkFramebufferStatus(f.FRAMEBUFFER) !== f.FRAMEBUFFER_COMPLETE && F.log("Could not attach texture to the framebuffer");
  13151. n.LF();
  13152. a = this.sprite = F.aa.create(n);
  13153. a.scaleY = -1;
  13154. a.Ue(f.ONE, f.ONE_MINUS_SRC_ALPHA);
  13155. f.bindRenderbuffer(f.RENDERBUFFER, d);
  13156. f.bindFramebuffer(f.FRAMEBUFFER,
  13157. this.fi);
  13158. this.rs = r;
  13159. this.Q(a);
  13160. return p
  13161. },
  13162. xh: q,
  13163. zU: function() {
  13164. F.m = this.Ae;
  13165. F.view.jL()
  13166. },
  13167. AU: function() {
  13168. F.yi(F.Ni);
  13169. F.Bm();
  13170. F.yi(F.Mi);
  13171. F.Bm();
  13172. var a = F.I;
  13173. a.Mm(a.ki);
  13174. var c = this.L.P,
  13175. d = F.I.Hs(),
  13176. a = d.width / c.width,
  13177. d = d.height / c.height,
  13178. e = F.m;
  13179. e.viewport(0, 0, c.width, c.height);
  13180. c = new F.ca;
  13181. F.iF(c, -1 / a, 1 / a, -1 / d, 1 / d, -1, 1);
  13182. F.Yo(c);
  13183. this.fi = e.getParameter(e.FRAMEBUFFER_BINDING);
  13184. e.bindFramebuffer(e.FRAMEBUFFER, this.qv);
  13185. F.Fo.Do("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.bs.Vd, 0), e.clear(e.COLOR_BUFFER_BIT |
  13186. e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.L.Vd, 0))
  13187. },
  13188. bZ: function(a, c, d, e, f, g) {
  13189. var h = F.m;
  13190. f = f || h.COLOR_BUFFER_BIT;
  13191. g = g || h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT;
  13192. this.EA(a, c, d, e, f, g, h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT | h.STENCIL_BUFFER_BIT)
  13193. },
  13194. EA: q,
  13195. BU: function(a, c, d, e) {
  13196. this.xh();
  13197. a = a || 0;
  13198. c = c || 0;
  13199. d = d || 0;
  13200. e = isNaN(e) ? 1 : e;
  13201. var f = this.Ae,
  13202. g = this.ae;
  13203. f.save();
  13204. f.fillStyle = "rgba(" + (0 | a) + "," + (0 | c) + "," + (0 | d) + "," + e / 255 + ")";
  13205. f.clearRect(0, 0, g.width, -g.height);
  13206. f.fillRect(0,
  13207. 0, g.width, -g.height);
  13208. f.restore()
  13209. },
  13210. CU: function(a, c, d, e, f, g, h) {
  13211. this.xh();
  13212. var m = F.m,
  13213. n = [0, 0, 0, 0],
  13214. s = 0,
  13215. u = 0;
  13216. h & m.COLOR_BUFFER_BIT && (n = m.getParameter(m.COLOR_CLEAR_VALUE), m.clearColor(a, c, d, e));
  13217. h & m.DEPTH_BUFFER_BIT && (s = m.getParameter(m.DEPTH_CLEAR_VALUE), m.clearDepth(f));
  13218. h & m.STENCIL_BUFFER_BIT && (u = m.getParameter(m.STENCIL_CLEAR_VALUE), m.clearStencil(g));
  13219. m.clear(h);
  13220. h & m.COLOR_BUFFER_BIT && m.clearColor(n[0], n[1], n[2], n[3]);
  13221. h & m.DEPTH_BUFFER_BIT && m.clearDepth(s);
  13222. h & m.STENCIL_BUFFER_BIT && m.clearStencil(u)
  13223. },
  13224. end: q,
  13225. jV: function() {
  13226. F.m = F.EW;
  13227. F.view.XK()
  13228. },
  13229. kV: function() {
  13230. var a = F.m,
  13231. c = F.I;
  13232. a.bindFramebuffer(a.FRAMEBUFFER, this.fi);
  13233. c.iP();
  13234. F.yi(F.Ni);
  13235. F.Am();
  13236. F.yi(F.Mi);
  13237. F.Am()
  13238. },
  13239. clear: function(a, c, d, e) {
  13240. this.bZ(a, c, d, e);
  13241. this.end()
  13242. },
  13243. clearRect: q,
  13244. RU: function(a, c, d, e) {
  13245. this.Ae.clearRect(a, c, d, -e)
  13246. },
  13247. SU: t(),
  13248. clearDepth: q,
  13249. PU: function() {
  13250. F.log("clearDepth isn't supported on Cocos2d-Html5")
  13251. },
  13252. QU: function(a) {
  13253. this.xh();
  13254. var c = F.m,
  13255. d = c.getParameter(c.DEPTH_CLEAR_VALUE);
  13256. c.clearDepth(a);
  13257. c.clear(c.DEPTH_BUFFER_BIT);
  13258. c.clearDepth(d);
  13259. this.end()
  13260. },
  13261. clearStencil: q,
  13262. TU: function() {
  13263. F.log("clearDepth isn't supported on Cocos2d-Html5")
  13264. },
  13265. UU: function(a) {
  13266. var c = F.m,
  13267. d = c.getParameter(c.STENCIL_CLEAR_VALUE);
  13268. c.clearStencil(a);
  13269. c.clear(c.STENCIL_BUFFER_BIT);
  13270. c.clearStencil(d)
  13271. },
  13272. S: q,
  13273. gm: function(a) {
  13274. this.yc && (a = a || F.m, a.save(), this.Y(a), this.transform(a), this.sprite.S(), a.restore(), this.arrivalOrder = 0)
  13275. },
  13276. ls: function(a) {
  13277. if (this.yc) {
  13278. F.Bm();
  13279. var c = this.grid;
  13280. c && c.tf() && (c.ts(), this.uy());
  13281. this.transform(a);
  13282. this.sprite.S();
  13283. this.Y(a);
  13284. c && c.tf() && c.qs(this);
  13285. F.Am();
  13286. this.arrivalOrder = 0
  13287. }
  13288. },
  13289. Y: q,
  13290. Dl: function(a) {
  13291. a = a || F.m;
  13292. if (this.rs) {
  13293. this.xh();
  13294. if (this.Lw) {
  13295. var c = this.ae;
  13296. a.save();
  13297. a.fillStyle = this.OA;
  13298. a.clearRect(0, 0, c.width, -c.height);
  13299. a.fillRect(0, 0, c.width, -c.height);
  13300. a.restore()
  13301. }
  13302. this.Wc();
  13303. a = this.u;
  13304. for (var c = a.length, d = this.sprite, e = 0; e < c; e++) {
  13305. var f = a[e];
  13306. f != d && f.S()
  13307. }
  13308. this.end()
  13309. }
  13310. },
  13311. Wi: function() {
  13312. var a = F.m;
  13313. if (this.rs) {
  13314. this.xh();
  13315. var c = this.Lw;
  13316. if (c) {
  13317. var d = [0, 0, 0, 0],
  13318. e = 0,
  13319. f = 0;
  13320. c & a.COLOR_BUFFER_BIT && (d = a.getParameter(a.COLOR_CLEAR_VALUE), a.clearColor(this.Ui.r / 255, this.Ui.g / 255, this.Ui.b / 255, this.Ui.a / 255));
  13321. c & a.DEPTH_BUFFER_BIT && (e = a.getParameter(a.DEPTH_CLEAR_VALUE), a.clearDepth(this.cE));
  13322. c & a.STENCIL_BUFFER_BIT && (f = a.getParameter(a.STENCIL_CLEAR_VALUE), a.clearStencil(this.dE));
  13323. a.clear(c);
  13324. c & a.COLOR_BUFFER_BIT && a.clearColor(d[0], d[1], d[2], d[3]);
  13325. c & a.DEPTH_BUFFER_BIT && a.clearDepth(e);
  13326. c & a.STENCIL_BUFFER_BIT && a.clearStencil(f)
  13327. }
  13328. this.Wc();
  13329. a = this.u;
  13330. for (c = 0; c < a.length; c++) d = a[c], d != this.sprite && d.S();
  13331. this.end()
  13332. }
  13333. },
  13334. Nfa: function() {
  13335. F.log("saveToFile isn't supported on cocos2d-html5");
  13336. return q
  13337. },
  13338. h8: function(a, c, d,
  13339. e, f) {
  13340. for (var g = 0; g < f; g++) a[c + g] = d[e + g]
  13341. },
  13342. Fha: function() {
  13343. F.log("saveToFile isn't supported on Cocos2d-Html5")
  13344. },
  13345. Bfa: function() {
  13346. F.log("listenToBackground isn't supported on Cocos2d-Html5")
  13347. },
  13348. Cfa: function() {
  13349. F.log("listenToForeground isn't supported on Cocos2d-Html5")
  13350. },
  13351. Aaa: A("Lw"),
  13352. Yha: y("Lw"),
  13353. m_: A("Ui"),
  13354. NF: q,
  13355. yX: function(a) {
  13356. var c = this.Ui;
  13357. c.r = a.r;
  13358. c.g = a.g;
  13359. c.b = a.b;
  13360. c.a = a.a;
  13361. this.OA = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")"
  13362. },
  13363. zX: function(a) {
  13364. var c = this.Ui;
  13365. c.r = a.r;
  13366. c.g = a.g;
  13367. c.b = a.b;
  13368. c.a = a.a
  13369. },
  13370. zaa: A("cE"),
  13371. Xha: y("cE"),
  13372. Baa: A("dE"),
  13373. Zha: y("dE"),
  13374. kda: A("rs"),
  13375. Qha: y("rs")
  13376. });
  13377. M = F.en.prototype;
  13378. F.B == F.$ ? (M.ctor = M.$q, M.Ne = M.OU, M.qx = M.mW, M.xh = M.AU, M.EA = M.CU, M.end = M.kV, M.clearRect = M.SU, M.clearDepth = M.QU, M.clearStencil = M.UU, M.S = M.ls, M.Y = M.Wi, M.NF = M.zX) : (M.ctor = M.Zq, M.Ne = M.NU, M.qx = M.lW, M.xh = M.zU, M.EA = M.BU, M.end = M.jV, M.clearRect = M.RU, M.clearDepth = M.PU, M.clearStencil = M.TU, M.S = M.gm, M.Y = M.Dl, M.NF = M.yX);
  13379. F.j(M, "clearColorVal", M.m_, M.NF);
  13380. F.en.create = function(a, c, d, e) {
  13381. return new F.en(a, c, d, e)
  13382. };
  13383. F.Ph = F.Ii.extend({
  13384. Jb: q,
  13385. OB: q,
  13386. oa: r,
  13387. hb: q,
  13388. tb: "LabelAtlas",
  13389. ctor: function(a, c, d, e, f) {
  13390. F.Ii.prototype.ctor.call(this);
  13391. c && F.Ph.prototype.pd.call(this, a, c, d, e, f)
  13392. },
  13393. xt: A("oa"),
  13394. Wd: function(a, c) {
  13395. this.hb || (this.hb = []);
  13396. this.hb.push({
  13397. yh: a,
  13398. Vf: c
  13399. })
  13400. },
  13401. Od: function() {
  13402. if (this.hb) {
  13403. this.oa = p;
  13404. for (var a = this.hb, c = 0, d = a.length; c < d; c++) {
  13405. var e = a[c];
  13406. e.yh.call(e.Vf, this)
  13407. }
  13408. a.length = 0
  13409. }
  13410. },
  13411. pd: function(a, c, d, e, f) {
  13412. var g = a + "",
  13413. h, m;
  13414. if (d === k) {
  13415. d = F.V.Dd(c);
  13416. if (1 !== parseInt(d.version, 10)) return F.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
  13417. r;
  13418. c = F.path.Co(c, d.textureFilename);
  13419. e = F.rb();
  13420. h = parseInt(d.itemWidth, 10) / e;
  13421. m = parseInt(d.itemHeight, 10) / e;
  13422. d = String.fromCharCode(parseInt(d.firstChar, 10))
  13423. } else h = d || 0, m = e || 0, d = f || " ";
  13424. var n = q,
  13425. n = c instanceof F.ea ? c : F.Fa.Hc(c);
  13426. (this.oa = c = n.uc) || n.Wd(function() {
  13427. this.sa(n, h, m, g.length);
  13428. this.string = g;
  13429. this.Od()
  13430. }, this);
  13431. return this.sa(n, h, m, g.length) ? (this.OB = d, this.string = g, p) : r
  13432. },
  13433. Wa: function(a) {
  13434. F.Ii.prototype.Wa.call(this, a);
  13435. this.Bp()
  13436. },
  13437. Tk: A("Jb"),
  13438. Y: function(a) {
  13439. F.Ii.prototype.Y.call(this, a);
  13440. F.kR && (a = this.size,
  13441. a = [F.d(0, 0), F.d(a.width, 0), F.d(a.width, a.height), F.d(0, a.height)], F.Ce.Yd(a, 4, p))
  13442. },
  13443. wA: function(a, c, d) {
  13444. a.xW = p;
  13445. F.ja.prototype.Q.call(this, a, c, d)
  13446. },
  13447. Bp: q,
  13448. sY: function() {
  13449. for (var a = this.Jb || "", c = a.length, d = this.texture, e = this.bi, f = this.gh, g = 0; g < c; g++) {
  13450. var h = a.charCodeAt(g) - this.OB.charCodeAt(0),
  13451. h = F.rect(parseInt(h % this.Zn, 10) * e, parseInt(h / this.Zn, 10) * f, e, f),
  13452. m = a.charCodeAt(g),
  13453. n = this.Bh(g);
  13454. n ? 32 == m ? (n.M(), n.vb(F.rect(0, 0, 10, 10), r, F.size(0, 0))) : (n.sa(d, h), n.visible = p, n.opacity = this.Ba) : (n = new F.aa, 32 == m ? (n.M(),
  13455. n.vb(F.rect(0, 0, 10, 10), r, F.size(0, 0))) : n.sa(d, h), F.ja.prototype.Q.call(this, n, 0, g));
  13456. n.G(g * e + e / 2, f / 2)
  13457. }
  13458. },
  13459. tY: function() {
  13460. var a = this.Jb,
  13461. c = a.length,
  13462. d = this.textureAtlas,
  13463. e = d.texture,
  13464. f = e.pixelsWidth,
  13465. e = e.pixelsHeight,
  13466. g = this.bi,
  13467. h = this.gh;
  13468. this.zv || (g = this.bi * F.rb(), h = this.gh * F.rb());
  13469. c > d.vd && F.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  13470. for (var m = d.quads, n = this.Da, n = {
  13471. r: n.r,
  13472. g: n.g,
  13473. b: n.b,
  13474. a: this.Ba
  13475. }, s = this.bi, u = 0; u < c; u++) {
  13476. var v = a.charCodeAt(u) - this.OB.charCodeAt(0),
  13477. x = v % this.Zn,
  13478. w = 0 | v / this.Zn,
  13479. z;
  13480. F.Wm ? (x = (2 * x * g + 1) / (2 * f), v = x + (2 * g - 2) / (2 * f), w = (2 * w * h + 1) / (2 * e), z = w + (2 * h - 2) / (2 * e)) : (x = x * g / f, v = x + g / f, w = w * h / e, z = w + h / e);
  13481. var B = m[u],
  13482. C = B.N,
  13483. D = B.K,
  13484. L = B.F,
  13485. B = B.O;
  13486. C.n.fa = x;
  13487. C.n.ga = w;
  13488. D.n.fa = v;
  13489. D.n.ga = w;
  13490. L.n.fa = x;
  13491. L.n.ga = z;
  13492. B.n.fa = v;
  13493. B.n.ga = z;
  13494. L.k.x = u * s;
  13495. L.k.y = 0;
  13496. L.k.e = 0;
  13497. B.k.x = u * s + s;
  13498. B.k.y = 0;
  13499. B.k.e = 0;
  13500. C.k.x = u * s;
  13501. C.k.y = this.gh;
  13502. C.k.e = 0;
  13503. D.k.x = u * s + s;
  13504. D.k.y = this.gh;
  13505. D.k.e = 0;
  13506. C.v = n;
  13507. D.v = n;
  13508. L.v = n;
  13509. B.v = n
  13510. }
  13511. 0 < c && (d.dirty = p, a = d.totalQuads, c > a && d.tN(c - a))
  13512. },
  13513. Mc: q,
  13514. WX: function(a) {
  13515. a = String(a);
  13516. var c = a.length;
  13517. this.Jb = a;
  13518. this.width = c * this.bi;
  13519. this.height =
  13520. this.gh;
  13521. if (this.u) {
  13522. a = this.u;
  13523. for (var c = a.length, d = 0; d < c; d++) {
  13524. var e = a[d];
  13525. e && !e.xW && (e.visible = r)
  13526. }
  13527. }
  13528. this.Bp();
  13529. this.quadsToDraw = c
  13530. },
  13531. YX: function(a) {
  13532. a = String(a);
  13533. var c = a.length;
  13534. c > this.textureAtlas.totalQuads && this.textureAtlas.FF(c);
  13535. this.Jb = a;
  13536. this.width = c * this.bi;
  13537. this.height = this.gh;
  13538. this.Bp();
  13539. this.quadsToDraw = c
  13540. },
  13541. va: q,
  13542. QC: function(a) {
  13543. if (this.Ba !== a) {
  13544. F.Ii.prototype.va.call(this, a);
  13545. for (var c = this.u, d = 0, e = c.length; d < e; d++) c[d] && (c[d].opacity = a)
  13546. }
  13547. },
  13548. RC: function(a) {
  13549. this.Sd !== a && F.Ii.prototype.va.call(this, a)
  13550. }
  13551. });
  13552. M = F.Ph.prototype;
  13553. F.B === F.$ ? (M.Bp = M.tY, M.Mc = M.YX, M.va = M.RC) : (M.Bp = M.sY, M.Mc = M.WX, M.va = M.QC, M.Q = M.wA);
  13554. F.j(M, "opacity", M.Qe, M.va);
  13555. F.j(M, "string", M.Tk, M.Mc);
  13556. F.Ph.create = function(a, c, d, e, f) {
  13557. return new F.Ph(a, c, d, e, f)
  13558. };
  13559. F.g6 = -1;
  13560. F.$y = F.yf.extend({
  13561. wb: p,
  13562. Qa: r,
  13563. Jb: "",
  13564. Df: q,
  13565. tv: "",
  13566. Un: "",
  13567. Pq: F.xq,
  13568. ms: -1,
  13569. sK: r,
  13570. Av: q,
  13571. ZK: q,
  13572. Ba: 255,
  13573. Td: 255,
  13574. Da: q,
  13575. bc: q,
  13576. wd: p,
  13577. ce: p,
  13578. oa: r,
  13579. hb: q,
  13580. tb: "LabelBMFont",
  13581. kL: function(a, c) {
  13582. c ? this.Un = a : this.Jb = a;
  13583. var d = this.u;
  13584. if (d)
  13585. for (var e = 0; e < d.length; e++) {
  13586. var f = d[e];
  13587. f && f.jP(r)
  13588. }
  13589. this.oa && (this.Qw(), c && this.hg())
  13590. },
  13591. ctor: function(a, c, d, e, f) {
  13592. F.yf.prototype.ctor.call(this);
  13593. this.Av = F.d(0, 0);
  13594. this.Da = F.color(255, 255, 255, 255);
  13595. this.bc = F.color(255, 255, 255, 255);
  13596. this.ZK = [];
  13597. this.pd(a, c, d, e, f)
  13598. },
  13599. xt: A("oa"),
  13600. Wd: function(a, c) {
  13601. this.hb || (this.hb = []);
  13602. this.hb.push({
  13603. yh: a,
  13604. Vf: c
  13605. })
  13606. },
  13607. Od: function() {
  13608. if (this.hb) {
  13609. for (var a = this.hb, c = 0, d = a.length; c < d; c++) {
  13610. var e = a[c];
  13611. e.yh.call(e.Vf, this)
  13612. }
  13613. a.length = 0
  13614. }
  13615. },
  13616. Y: function(a) {
  13617. F.yf.prototype.Y.call(this, a);
  13618. if (F.lR) {
  13619. a = this.fc();
  13620. var c = F.d(0 | -this.eb.x, 0 | -this.eb.y);
  13621. a = [F.d(c.x, c.y), F.d(c.x + a.width, c.y), F.d(c.x + a.width, c.y + a.height), F.d(c.x, c.y + a.height)];
  13622. F.Ce.qp(0, 255, 0, 255);
  13623. F.Ce.Yd(a, 4, p)
  13624. }
  13625. },
  13626. Wa: function(a) {
  13627. var c = this.Da,
  13628. d = this.bc;
  13629. d.r == a.r && d.g == a.g && d.b == a.b && d.a == a.a || (c.r = d.r = a.r, c.g = d.g = a.g, c.b = d.b = a.b, this.oa && this.wd &&
  13630. (c = F.color.WHITE, (d = this.Tb) && (d.wb && d.cascadeColor) && (c = d.xm()), this.Ob(c)), a.a !== k && !a.os && this.va(a.a))
  13631. },
  13632. re: A("Qa"),
  13633. Hd: function(a) {
  13634. this.Qa = a;
  13635. if (a = this.u)
  13636. for (var c = 0; c < a.length; c++) {
  13637. var d = a[c];
  13638. d && d.wb && (d.opacityModifyRGB = this.Qa)
  13639. }
  13640. },
  13641. Qe: A("Td"),
  13642. NM: A("Ba"),
  13643. va: function(a) {
  13644. this.Ba = this.Td = a;
  13645. if (this.ce) {
  13646. var c = 255,
  13647. d = this.Tb;
  13648. d && (d.wb && d.cascadeOpacity) && (c = d.Ba);
  13649. this.Mb(c)
  13650. }
  13651. this.Da.a = this.bc.a = a
  13652. },
  13653. Mb: function(a) {
  13654. this.Ba = this.Td * a / 255;
  13655. a = this.u;
  13656. for (var c = 0; c < a.length; c++) {
  13657. var d = a[c];
  13658. F.B == F.$ ? d.Mb(this.Ba) :
  13659. (F.ja.prototype.Mb.call(d, this.Ba), d.Ka())
  13660. }
  13661. this.gk()
  13662. },
  13663. Os: E(r),
  13664. pp: y("ce"),
  13665. Pe: function() {
  13666. var a = this.bc;
  13667. return F.color(a.r, a.g, a.b, a.a)
  13668. },
  13669. xm: A("Da"),
  13670. Ob: function(a) {
  13671. var c = this.Da,
  13672. d = this.bc;
  13673. c.r = d.r * a.r / 255;
  13674. c.g = d.g * a.g / 255;
  13675. c.b = d.b * a.b / 255;
  13676. a = this.u;
  13677. for (c = 0; c < a.length; c++) d = a[c], F.B == F.$ ? d.Ob(this.Da) : (F.ja.prototype.Ob.call(d, this.Da), d.Ka());
  13678. this.gk()
  13679. },
  13680. gk: function() {
  13681. if (F.B != F.$) {
  13682. var a, c = this.texture;
  13683. if (c && 0 < c.width && (a = c.Eb))
  13684. if (c = F.Fa.bx(this.ie.Eb)) a instanceof HTMLCanvasElement && !this.bd ? F.No(a, c, this.Da,
  13685. q, a) : (a = F.No(a, c, this.Da), c = new F.ea, c.Ed(a), c.Wb(), this.texture = c)
  13686. }
  13687. },
  13688. Ns: E(r),
  13689. op: y("wd"),
  13690. M: function() {
  13691. return this.pd(q, q, q, q, q)
  13692. },
  13693. pd: function(a, c, d, e, f) {
  13694. a = a || "";
  13695. this.Df && F.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  13696. if (c) {
  13697. var g = F.V.Dd(c);
  13698. if (!g) return F.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), r;
  13699. this.Df = g;
  13700. this.tv = c;
  13701. c = F.Fa.Hc(g.TL);
  13702. (this.oa = g = c.uc) || c.Wd(function(a) {
  13703. this.oa = p;
  13704. this.sa(a, this.Un.length);
  13705. this.Mc(this.Un, p);
  13706. this.Od()
  13707. },
  13708. this)
  13709. } else c = new F.ea, g = new Image, c.Ed(g), this.oa = r;
  13710. return this.sa(c, a.length) ? (this.Pq = e || F.tu, this.Av = f || F.d(0, 0), this.ms = d == q ? -1 : d, this.Ba = this.Td = 255, this.Da = F.color(255, 255, 255, 255), this.bc = F.color(255, 255, 255, 255), this.wd = this.ce = p, this.P.width = 0, this.P.height = 0, this.Fi(0.5, 0.5), F.B === F.$ && (d = this.textureAtlas.texture, this.Qa = d.ti(), e = this.ZK = new F.aa, e.sa(d, F.rect(0, 0, 0, 0), r), e.batchNode = this), this.Mc(a, p), p) : r
  13711. },
  13712. Qw: function() {
  13713. var a = F.B,
  13714. c = a === F.Ca ? this.texture : this.textureAtlas.texture,
  13715. d = 0,
  13716. e = F.size(0, 0),
  13717. f = 0,
  13718. g = 1,
  13719. h = this.Jb,
  13720. m = h ? h.length : 0;
  13721. if (0 !== m) {
  13722. var n, s = this.Df,
  13723. u = s.c1,
  13724. v = s.fE,
  13725. x = s.d_;
  13726. for (n = 0; n < m - 1; n++) 10 == h.charCodeAt(n) && g++;
  13727. var w = v * g,
  13728. g = -(v - v * g),
  13729. z = -1;
  13730. for (n = 0; n < m; n++)
  13731. if (v = h.charCodeAt(n), 0 != v)
  13732. if (10 === v) d = 0, g -= s.fE;
  13733. else {
  13734. var B = u[z << 16 | v & 65535] || 0,
  13735. C = x[v];
  13736. if (C) {
  13737. var D = F.rect(C.rect.x, C.rect.y, C.rect.width, C.rect.height),
  13738. D = F.Gj(D);
  13739. D.x += this.Av.x;
  13740. D.y += this.Av.y;
  13741. (z = this.Bh(n)) ? 32 === v && a === F.Ca ? z.vb(D, r, F.size(0, 0)) : (z.vb(D, r), z.visible = p): (z = new F.aa, 32 === v && a === F.Ca && (D = F.rect(0, 0, 0, 0)), z.sa(c,
  13742. D, r), z.TB = p, this.Q(z, 0, n));
  13743. z.opacityModifyRGB = this.Qa;
  13744. F.B == F.$ ? (z.Ob(this.Da), z.Mb(this.Ba)) : (F.ja.prototype.Ob.call(z, this.Da), F.ja.prototype.Mb.call(z, this.Ba), z.Ka());
  13745. D = F.d(d + C.LP + 0.5 * C.rect.width + B, g + (s.fE - C.MP) - 0.5 * D.height * F.rb());
  13746. z.G(F.zF(D));
  13747. d += C.O4 + B;
  13748. z = v;
  13749. f < d && (f = d)
  13750. } else F.log("cocos2d: LabelBMFont: character not found " + h[n])
  13751. }
  13752. e.width = f;
  13753. e.height = w;
  13754. this.Zd(F.mP(e))
  13755. }
  13756. },
  13757. Cka: function(a) {
  13758. var c = this.u;
  13759. if (c)
  13760. for (var d = 0, e = c.length; d < e; d++) {
  13761. var f = c[d];
  13762. f && (f.visible = r)
  13763. }
  13764. this.Df && this.Qw();
  13765. a || this.hg()
  13766. },
  13767. Tk: A("Un"),
  13768. Mc: function(a, c) {
  13769. a = String(a);
  13770. c == q && (c = p);
  13771. if (a == q || "string" != typeof a) a += "";
  13772. this.Un = a;
  13773. this.kL(a, c)
  13774. },
  13775. XX: function(a) {
  13776. this.Mc(a, r)
  13777. },
  13778. Uha: function(a) {
  13779. this.Mc(a, p)
  13780. },
  13781. hg: function() {
  13782. this.string = this.Un;
  13783. if (0 < this.ms) {
  13784. for (var a = this.Jb.length, c = [], d = [], e = 1, f = 0, g = r, h = r, m = -1, n = -1, s = 0, u, v = 0, x = this.u.length; v < x; v++) {
  13785. for (var w = 0; !(u = this.Bh(v + s + w));) w++;
  13786. s += w;
  13787. if (f >= a) break;
  13788. var z = this.Jb[f];
  13789. h || (n = this.sB(u), h = p);
  13790. g || (m = n, g = p);
  13791. if (10 == z.charCodeAt(0)) {
  13792. d.push("\n");
  13793. c = c.concat(d);
  13794. d.length = 0;
  13795. g = h = r;
  13796. m = n = -1;
  13797. v--;
  13798. s -=
  13799. w;
  13800. e++;
  13801. if (f >= a) break;
  13802. n || (n = this.sB(u), h = p);
  13803. m || (m = n, g = p);
  13804. f++
  13805. } else if (F.fF(z)) d.push(z), c = c.concat(d), d.length = 0, h = r, n = -1, f++;
  13806. else if (this.JV(u) - m > this.ms)
  13807. if (this.sK) {
  13808. F.HP(d);
  13809. d.push("\n");
  13810. c = c.concat(d);
  13811. d.length = 0;
  13812. g = h = r;
  13813. m = n = -1;
  13814. e++;
  13815. if (f >= a) break;
  13816. n || (n = this.sB(u), h = p);
  13817. m || (m = n, g = p);
  13818. v--
  13819. } else d.push(z), -1 != c.lastIndexOf(" ") ? F.HP(c) : c = [], 0 < c.length && c.push("\n"), e++, g = r, m = -1, f++;
  13820. else d.push(z), f++
  13821. }
  13822. c = c.concat(d);
  13823. v = c.length;
  13824. u = "";
  13825. for (f = 0; f < v; ++f) u += c[f];
  13826. u += String.fromCharCode(0);
  13827. this.kL(u, r)
  13828. }
  13829. if (this.Pq != F.tu) {
  13830. c =
  13831. f = 0;
  13832. a = this.Jb.length;
  13833. d = [];
  13834. for (e = 0; e < a; e++)
  13835. if (10 == this.Jb[e].charCodeAt(0) || 0 == this.Jb[e].charCodeAt(0))
  13836. if (v = 0, g = d.length, 0 == g) c++;
  13837. else {
  13838. if (u = f + g - 1 + c, !(0 > u) && (v = this.Bh(u), v != q)) {
  13839. v = v.Re() + v.ah() / 2;
  13840. h = 0;
  13841. switch (this.Pq) {
  13842. case F.xq:
  13843. h = this.width / 2 - v / 2;
  13844. break;
  13845. case F.JH:
  13846. h = this.width - v
  13847. }
  13848. if (0 != h)
  13849. for (v = 0; v < g; v++)
  13850. if (u = f + v + c, !(0 > u) && (u = this.Bh(u))) u.x += h;
  13851. f += g;
  13852. c++;
  13853. d.length = 0
  13854. }
  13855. } else d.push(this.Jb[f])
  13856. }
  13857. },
  13858. O2: function(a) {
  13859. this.Pq = a;
  13860. this.hg()
  13861. },
  13862. tV: A("Pq"),
  13863. T2: function(a) {
  13864. this.ms = a;
  13865. this.hg()
  13866. },
  13867. oB: A("ms"),
  13868. Eia: function(a) {
  13869. this.sK =
  13870. a;
  13871. this.hg()
  13872. },
  13873. rp: function(a, c) {
  13874. F.t.prototype.rp.call(this, a, c);
  13875. this.hg()
  13876. },
  13877. pt: function(a) {
  13878. F.t.prototype.pt.call(this, a);
  13879. this.hg()
  13880. },
  13881. qt: function(a) {
  13882. F.t.prototype.qt.call(this, a);
  13883. this.hg()
  13884. },
  13885. oia: function(a) {
  13886. if (a != q && a != this.tv) {
  13887. var c = F.V.Dd(a);
  13888. c ? (this.tv = a, this.Df = c, a = F.Fa.Hc(c.TL), this.oa = c = a.uc, this.texture = a, F.B === F.Ca && (this.ie = this.texture), c ? this.Qw() : a.Wd(function(a) {
  13889. this.oa = p;
  13890. this.texture = a;
  13891. this.Qw();
  13892. this.gk();
  13893. this.hg();
  13894. this.Od()
  13895. }, this)) : F.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  13896. }
  13897. },
  13898. aba: A("tv"),
  13899. Fi: function(a, c) {
  13900. F.t.prototype.Fi.call(this, a, c);
  13901. this.hg()
  13902. },
  13903. hL: function(a) {
  13904. F.t.prototype.hL.call(this, a);
  13905. this.hg()
  13906. },
  13907. IC: function(a) {
  13908. F.t.prototype.IC.call(this, a);
  13909. this.hg()
  13910. },
  13911. JC: function(a) {
  13912. F.t.prototype.JC.call(this, a);
  13913. this.hg()
  13914. },
  13915. F7: t(),
  13916. a8: function(a, c) {
  13917. var d = 0;
  13918. if (this.XU.d1) {
  13919. var e = this.XU.d1[(a << 16 | c & 65535).toString()];
  13920. e && (d = e.a9)
  13921. }
  13922. return d
  13923. },
  13924. sB: function(a) {
  13925. return a.Re() * this.qa - a.ah() * this.qa * a.Rc.x
  13926. },
  13927. JV: function(a) {
  13928. return a.Re() * this.qa + a.ah() * this.qa * a.Rc.x
  13929. }
  13930. });
  13931. M = F.$y.prototype;
  13932. F.j(M, "opacityModifyRGB", M.re, M.Hd);
  13933. F.j(M, "opacity", M.Qe, M.va);
  13934. F.j(M, "cascadeOpacity", M.Os, M.pp);
  13935. F.j(M, "color", M.Pe, M.Wa);
  13936. F.j(M, "cascadeColor", M.Ns, M.op);
  13937. F.j(M, "string", M.Tk, M.XX);
  13938. F.j(M, "boundingWidth", M.oB, M.T2);
  13939. F.j(M, "textAlign", M.tV, M.O2);
  13940. F.$y.create = function(a, c, d, e, f) {
  13941. return new F.$y(a, c, d, e, f)
  13942. };
  13943. F.fF = function(a) {
  13944. a = a.charCodeAt(0);
  13945. return 9 <= a && 13 >= a || 32 == a || 133 == a || 160 == a || 5760 == a || 8192 <= a && 8202 >= a || 8232 == a || 8233 == a || 8239 == a || 8287 == a || 12288 == a
  13946. };
  13947. F.HP = function(a) {
  13948. var c = a.length;
  13949. if (!(0 >= c) && (c -= 1, F.fF(a[c]))) {
  13950. for (var d = c - 1; 0 <= d; --d)
  13951. if (F.fF(a[d])) c = d;
  13952. else break;
  13953. F.I4(a, c)
  13954. }
  13955. };
  13956. F.I4 = function(a, c) {
  13957. var d = a.length;
  13958. c >= d || 0 > c || a.splice(c, d)
  13959. };
  13960. F.mV = {
  13961. WQ: /info [^\n]*(\n|$)/gi,
  13962. lQ: /common [^\n]*(\n|$)/gi,
  13963. VR: /page [^\n]*(\n|$)/gi,
  13964. kQ: /char [^\n]*(\n|$)/gi,
  13965. cR: /kerning [^\n]*(\n|$)/gi,
  13966. YQ: /\w+=[^ \r\n]+/gi,
  13967. XQ: /^[\-]?\d+$/,
  13968. Hr: function(a) {
  13969. a = a.match(this.YQ);
  13970. var c = {};
  13971. if (a)
  13972. for (var d = 0, e = a.length; d < e; d++) {
  13973. var f = a[d],
  13974. g = f.indexOf("\x3d"),
  13975. h = f.substring(0, g),
  13976. f = f.substring(g + 1);
  13977. f.match(this.XQ) ? f = parseInt(f) : '"' == f[0] && (f = f.substring(1, f.length - 1));
  13978. c[h] = f
  13979. }
  13980. return c
  13981. },
  13982. U1: function(a, c) {
  13983. var d = {};
  13984. this.Hr(a.match(this.WQ)[0]);
  13985. var e = this.Hr(a.match(this.lQ)[0]);
  13986. d.fE = e.lineHeight;
  13987. if (F.B === F.$) {
  13988. var f = F.Fo.Ar;
  13989. (e.scaleW > f.width || e.scaleH > f.height) && F.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  13990. }
  13991. 1 !== e.pages && F.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  13992. e = this.Hr(a.match(this.VR)[0]);
  13993. 0 !== e.id && F.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  13994. d.TL = F.path.Co(c, e.file);
  13995. for (var g = a.match(this.kQ), h = d.d_ = {}, e = 0, f = g.length; e < f; e++) {
  13996. var m = this.Hr(g[e]);
  13997. h[m.id] = {
  13998. rect: {
  13999. x: m.x,
  14000. y: m.y,
  14001. width: m.width,
  14002. height: m.height
  14003. },
  14004. LP: m.xoffset,
  14005. MP: m.yoffset,
  14006. O4: m.xadvance
  14007. }
  14008. }
  14009. g = d.c1 = {};
  14010. if (h = a.match(this.cR)) {
  14011. e = 0;
  14012. for (f = h.length; e < f; e++) m = this.Hr(h[e]), g[m.first << 16 | m.second & 65535] = m.amount
  14013. }
  14014. return d
  14015. },
  14016. load: function(a, c, d, e) {
  14017. var f = this;
  14018. F.V.Ix(a, function(a, d) {
  14019. if (a) return e(a);
  14020. e(q, f.U1(d, c))
  14021. })
  14022. }
  14023. };
  14024. F.V.Hj(["fnt"], F.mV);
  14025. F.$G = F.ja.extend({
  14026. texture: q,
  14027. Ko: r,
  14028. Gi: r,
  14029. q: q,
  14030. Zr: 0,
  14031. hB: 0,
  14032. Nl: 0,
  14033. QB: 0,
  14034. wk: 0,
  14035. rC: 0,
  14036. kC: q,
  14037. jC: q,
  14038. Sa: q,
  14039. xn: q,
  14040. Rf: q,
  14041. cd: q,
  14042. yn: q,
  14043. oo: q,
  14044. tb: "MotionStreak",
  14045. ctor: function(a, c, d, e, f) {
  14046. F.ja.prototype.ctor.call(this);
  14047. this.zg = F.d(0, 0);
  14048. this.q = new F.Nj(F.SRC_ALPHA, F.ONE_MINUS_SRC_ALPHA);
  14049. this.ED = F.m.createBuffer();
  14050. this.Gi = this.Ko = r;
  14051. this.texture = q;
  14052. this.rC = this.wk = this.QB = this.Nl = this.hB = this.Zr = 0;
  14053. this.oo = this.yn = this.cd = this.Rf = this.xn = this.Sa = this.jC = this.kC = q;
  14054. f !== k && this.B0(a, c, d, e, f)
  14055. },
  14056. Oa: A("texture"),
  14057. pb: function(a) {
  14058. this.texture !=
  14059. a && (this.texture = a)
  14060. },
  14061. Ah: A("q"),
  14062. Ue: function(a, c) {
  14063. c === k ? this.q = a : (this.q.src = a, this.q.U = c)
  14064. },
  14065. Qe: function() {
  14066. F.log("cc.MotionStreak.getOpacity has not been supported.");
  14067. return 0
  14068. },
  14069. va: function() {
  14070. F.log("cc.MotionStreak.setOpacity has not been supported.")
  14071. },
  14072. Hd: t(),
  14073. re: E(r),
  14074. Ab: function() {
  14075. F.t.prototype.Ab.call(this);
  14076. this.cd && F.m.deleteBuffer(this.cd);
  14077. this.oo && F.m.deleteBuffer(this.oo);
  14078. this.yn && F.m.deleteBuffer(this.yn)
  14079. },
  14080. sda: A("Ko"),
  14081. nia: y("Ko"),
  14082. Eda: A("Gi"),
  14083. kja: y("Gi"),
  14084. B0: function(a, c, d, e, f) {
  14085. f || b("cc.MotionStreak.initWithFade(): Invalid filename or texture");
  14086. "string" === typeof f && (f = F.Fa.Hc(f));
  14087. F.t.prototype.G.call(this, F.d(0, 0));
  14088. this.anchorY = this.anchorX = 0;
  14089. this.ignoreAnchor = p;
  14090. this.Gi = r;
  14091. this.Ko = p;
  14092. this.Nl = -1 == c ? d / 5 : c;
  14093. this.Nl *= this.Nl;
  14094. this.Zr = d;
  14095. this.hB = 1 / a;
  14096. a = (0 | 60 * a) + 2;
  14097. this.wk = 0;
  14098. this.jC = new Float32Array(a);
  14099. this.kC = new Float32Array(2 * a);
  14100. this.Sa = new Float32Array(4 * a);
  14101. this.Rf = new Float32Array(4 * a);
  14102. this.xn = new Uint8Array(8 * a);
  14103. this.QB = a;
  14104. a = F.m;
  14105. this.cd = a.createBuffer();
  14106. this.oo = a.createBuffer();
  14107. this.yn = a.createBuffer();
  14108. this.q.src = a.SRC_ALPHA;
  14109. this.q.U = a.ONE_MINUS_SRC_ALPHA;
  14110. this.shaderProgram = F.Jd.oc(F.Pi);
  14111. this.texture = f;
  14112. this.color = e;
  14113. this.M2();
  14114. a.bindBuffer(a.ARRAY_BUFFER, this.cd);
  14115. a.bufferData(a.ARRAY_BUFFER, this.Sa, a.DYNAMIC_DRAW);
  14116. a.bindBuffer(a.ARRAY_BUFFER, this.oo);
  14117. a.bufferData(a.ARRAY_BUFFER, this.Rf, a.DYNAMIC_DRAW);
  14118. a.bindBuffer(a.ARRAY_BUFFER, this.yn);
  14119. a.bufferData(a.ARRAY_BUFFER, this.xn, a.DYNAMIC_DRAW);
  14120. return p
  14121. },
  14122. vka: function(a) {
  14123. this.color = a;
  14124. for (var c = this.xn, d = 0, e = 2 * this.wk; d < e; d++) c[4 * d] = a.r, c[4 * d + 1] = a.g, c[4 * d + 2] = a.b
  14125. },
  14126. reset: function() {
  14127. this.wk = 0
  14128. },
  14129. G: function(a, c) {
  14130. this.Gi =
  14131. p;
  14132. c === k ? (this.zg.x = a.x, this.zg.y = a.y) : (this.zg.x = a, this.zg.y = c)
  14133. },
  14134. Re: function() {
  14135. return this.zg.x
  14136. },
  14137. VO: function(a) {
  14138. this.zg.x = a;
  14139. this.Gi || (this.Gi = p)
  14140. },
  14141. Gg: function() {
  14142. return this.zg.y
  14143. },
  14144. UF: function(a) {
  14145. this.zg.y = a;
  14146. this.Gi || (this.Gi = p)
  14147. },
  14148. Y: function(a) {
  14149. !(1 >= this.wk) && (this.texture && this.texture.uc) && (a = a || F.m, F.Ws(this), F.Jc(F.xl), F.Eh(this.q.src, this.q.U), F.qe(this.texture), a.bindBuffer(a.ARRAY_BUFFER, this.cd), a.bufferData(a.ARRAY_BUFFER, this.Sa, a.DYNAMIC_DRAW), a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, 0, 0), a.bindBuffer(a.ARRAY_BUFFER,
  14150. this.oo), a.bufferData(a.ARRAY_BUFFER, this.Rf, a.DYNAMIC_DRAW), a.vertexAttribPointer(F.ud, 2, a.FLOAT, r, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.yn), a.bufferData(a.ARRAY_BUFFER, this.xn, a.DYNAMIC_DRAW), a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * this.wk), F.Wf++)
  14151. },
  14152. update: function(a) {
  14153. if (this.Gi) {
  14154. a *= this.hB;
  14155. var c, d, e, f, g = 0,
  14156. h = this.wk,
  14157. m = this.jC,
  14158. n = this.kC,
  14159. s = this.Sa,
  14160. u = this.xn;
  14161. for (e = 0; e < h; e++) m[e] -= a, 0 >= m[e] ? g++ : (c = e - g, 0 < g ? (m[c] = m[e], n[2 * c] = n[2 * e], n[2 * c + 1] = n[2 * e + 1], f = 2 * e,
  14162. d = 2 * c, s[2 * d] = s[2 * f], s[2 * d + 1] = s[2 * f + 1], s[2 * (d + 1)] = s[2 * (f + 1)], s[2 * (d + 1) + 1] = s[2 * (f + 1) + 1], f *= 4, d *= 4, u[d + 0] = u[f + 0], u[d + 1] = u[f + 1], u[d + 2] = u[f + 2], u[d + 4] = u[f + 4], u[d + 5] = u[f + 5], u[d + 6] = u[f + 6]) : d = 8 * c, c = 255 * m[c], u[d + 3] = c, u[d + 7] = c);
  14163. h -= g;
  14164. e = p;
  14165. if (h >= this.QB) e = r;
  14166. else if (0 < h && (a = F.gO(F.d(n[2 * (h - 1)], n[2 * (h - 1) + 1]), this.zg) < this.Nl, d = 1 == h ? r : F.gO(F.d(n[2 * (h - 2)], n[2 * (h - 2) + 1]), this.zg) < 2 * this.Nl, a || d)) e = r;
  14167. e && (n[2 * h] = this.zg.x, n[2 * h + 1] = this.zg.y, m[h] = 1, m = 8 * h, e = this.Da, u[m] = e.r, u[m + 1] = e.g, u[m + 2] = e.b, u[m + 4] = e.r, u[m + 5] = e.g, u[m +
  14168. 6] = e.b, u[m + 3] = 255, u[m + 7] = 255, 0 < h && this.Ko && (1 < h ? F.pG(n, this.Zr, this.Sa, h, 1) : F.pG(n, this.Zr, this.Sa, 0, 2)), h++);
  14169. this.Ko || F.pG(n, this.Zr, this.Sa, 0, h);
  14170. if (h && this.rC != h) {
  14171. n = 1 / h;
  14172. u = this.Rf;
  14173. for (e = 0; e < h; e++) u[4 * e] = 0, u[4 * e + 1] = n * e, u[2 * (2 * e + 1)] = 1, u[2 * (2 * e + 1) + 1] = n * e;
  14174. this.rC = h
  14175. }
  14176. this.wk = h
  14177. }
  14178. }
  14179. });
  14180. F.$G.create = function(a, c, d, e, f) {
  14181. return new F.$G(a, c, d, e, f)
  14182. };
  14183. F.iz = F.t.extend({
  14184. grid: q,
  14185. me: q,
  14186. Cs: A("grid"),
  14187. i3: y("grid"),
  14188. $F: y("me"),
  14189. Q: function(a, c, d) {
  14190. F.t.prototype.Q.call(this, a, c, d);
  14191. a && !this.me && (this.me = a)
  14192. },
  14193. S: function() {
  14194. if (this.yc) {
  14195. var a = F.B == F.$,
  14196. c = this.grid;
  14197. a && (c && c.dk) && c.ts();
  14198. this.transform();
  14199. var d = this.u;
  14200. if (d && 0 < d.length) {
  14201. var e = d.length;
  14202. this.Wc();
  14203. for (i = 0; i < e; i++) {
  14204. var f = d[i];
  14205. f && f.S()
  14206. }
  14207. }
  14208. a && (c && c.dk) && c.qs(this.me)
  14209. }
  14210. },
  14211. qY: function() {
  14212. var a = this.tD,
  14213. c = F.Vb.top,
  14214. d = this.Te(),
  14215. e = a.c;
  14216. e[0] = d.a;
  14217. e[4] = d.D;
  14218. e[12] = d.La;
  14219. e[1] = d.b;
  14220. e[5] = d.J;
  14221. e[13] = d.Ma;
  14222. e[14] = this.ks;
  14223. F.zi(c, c, a);
  14224. if (this.Ti !=
  14225. q && (!this.grid || !this.grid.tf())) a = this.eb.x, c = this.eb.y, 0 !== a || 0 !== c ? (F.Hz || (a |= 0, c |= 0), F.Zo(a, c), this.Ti.Vs(), F.Zo(-a, -c)) : this.Ti.Vs()
  14226. }
  14227. });
  14228. M = F.iz.prototype;
  14229. F.B === F.$ && (M.transform = M.qY);
  14230. F.j(M, "target", q, M.$F);
  14231. F.iz.create = function() {
  14232. return new F.iz
  14233. };
  14234. F.Fka = function() {
  14235. return {
  14236. x: 0,
  14237. y: 0
  14238. }
  14239. };
  14240. F.el = function(a, c) {
  14241. return {
  14242. x: a,
  14243. y: c
  14244. }
  14245. };
  14246. F.te = function(a, c) {
  14247. return F.el(a.x + c.x, a.y + c.y)
  14248. };
  14249. F.pc = function(a, c) {
  14250. return F.el(a.x - c.x, a.y - c.y)
  14251. };
  14252. F.rd = function(a, c) {
  14253. return F.el(a.x * c, a.y * c)
  14254. };
  14255. F.Cp = function(a) {
  14256. return F.el(-a.y, a.x)
  14257. };
  14258. F.ig = function(a) {
  14259. return F.el(-a.x, -a.y)
  14260. };
  14261. F.IP = function(a, c) {
  14262. return a.x * c.x + a.y * c.y
  14263. };
  14264. F.Eka = function(a) {
  14265. return F.el(Math.cos(a), Math.sin(a))
  14266. };
  14267. F.Ft = function(a) {
  14268. a = F.Ig(F.d(a.x, a.y));
  14269. return F.el(a.x, a.y)
  14270. };
  14271. F.ze = function(a) {
  14272. return F.el(a.x, a.y)
  14273. };
  14274. F.Ia = function(a) {
  14275. return {
  14276. fa: a.x,
  14277. ga: a.y
  14278. }
  14279. };
  14280. F.zQ = F.t.extend({
  14281. cb: q,
  14282. q: q,
  14283. Zc: 1,
  14284. ef: q,
  14285. tb: "DrawNodeCanvas",
  14286. ctor: function() {
  14287. F.t.prototype.ctor.call(this);
  14288. this.cb = [];
  14289. this.ef = F.color(255, 255, 255, 255);
  14290. this.q = new F.Nj(F.hc, F.gc);
  14291. this.M()
  14292. },
  14293. Ah: A("q"),
  14294. Ue: function(a, c) {
  14295. c === k ? (this.q.src = a.src, this.q.U = a.U) : (this.q.src = a, this.q.U = c)
  14296. },
  14297. RF: y("Zc"),
  14298. G_: A("Zc"),
  14299. qp: function(a) {
  14300. var c = this.ef;
  14301. c.r = a.r;
  14302. c.g = a.g;
  14303. c.b = a.b;
  14304. c.a = a.a == q ? 255 : a.a
  14305. },
  14306. Cd: function() {
  14307. return F.color(this.ef.r, this.ef.g, this.ef.b, this.ef.a)
  14308. },
  14309. rE: function(a, c, d, e, f) {
  14310. e = e || this.Zc;
  14311. f = f || this.Cd();
  14312. f.a == q && (f.a =
  14313. 255);
  14314. a = [a, F.d(c.x, a.y), c, F.d(a.x, c.y)];
  14315. c = new F.Yj(F.Ld.Uj);
  14316. c.jg = a;
  14317. c.lineWidth = e;
  14318. c.Bj = f;
  14319. c.tx = p;
  14320. c.Vk = p;
  14321. c.lineCap = "butt";
  14322. if (c.fillColor = d) d.a == q && (d.a = 255), c.dF = p;
  14323. this.cb.push(c)
  14324. },
  14325. nE: function(a, c, d, e, f, g, h) {
  14326. g = g || this.Zc;
  14327. h = h || this.Cd();
  14328. h.a == q && (h.a = 255);
  14329. for (var m = 2 * Math.PI / e, n = [], s = 0; s <= e; s++) {
  14330. var u = s * m;
  14331. n.push(F.d(c * Math.cos(u + d) + a.x, c * Math.sin(u + d) + a.y))
  14332. }
  14333. f && n.push(F.d(a.x, a.y));
  14334. a = new F.Yj(F.Ld.Uj);
  14335. a.jg = n;
  14336. a.lineWidth = g;
  14337. a.Bj = h;
  14338. a.tx = p;
  14339. a.Vk = p;
  14340. this.cb.push(a)
  14341. },
  14342. qE: function(a, c, d, e, f, g) {
  14343. f = f || this.Zc;
  14344. g = g || this.Cd();
  14345. g.a == q && (g.a = 255);
  14346. for (var h = [], m = 0, n = 0; n < e; n++) h.push(F.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * c.x + m * m * d.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * c.y + m * m * d.y)), m += 1 / e;
  14347. h.push(F.d(d.x, d.y));
  14348. a = new F.Yj(F.Ld.Uj);
  14349. a.jg = h;
  14350. a.lineWidth = f;
  14351. a.Bj = g;
  14352. a.Vk = p;
  14353. a.lineCap = "round";
  14354. this.cb.push(a)
  14355. },
  14356. oE: function(a, c, d, e, f, g, h) {
  14357. g = g || this.Zc;
  14358. h = h || this.Cd();
  14359. h.a == q && (h.a = 255);
  14360. for (var m = [], n = 0, s = 0; s < f; s++) m.push(F.d(Math.pow(1 - n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * c.x + 3 * (1 - n) * n * n * d.x + n * n * n * e.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * c.y + 3 * (1 - n) * n * n *
  14361. d.y + n * n * n * e.y)), n += 1 / f;
  14362. m.push(F.d(e.x, e.y));
  14363. a = new F.Yj(F.Ld.Uj);
  14364. a.jg = m;
  14365. a.lineWidth = g;
  14366. a.Bj = h;
  14367. a.Vk = p;
  14368. a.lineCap = "round";
  14369. this.cb.push(a)
  14370. },
  14371. mE: function(a, c, d, e) {
  14372. this.qm(a, 0.5, c, d, e)
  14373. },
  14374. qm: function(a, c, d, e, f) {
  14375. e = e || this.Zc;
  14376. f = f || this.Cd();
  14377. f.a == q && (f.a = 255);
  14378. for (var g = [], h, m, n = 1 / a.length, s = 0; s < d + 1; s++) m = s / d, 1 == m ? (h = a.length - 1, m = 1) : (h = 0 | m / n, m = (m - n * h) / n), h = F.bE(F.dd(a, h - 1), F.dd(a, h - 0), F.dd(a, h + 1), F.dd(a, h + 2), c, m), g.push(h);
  14379. a = new F.Yj(F.Ld.Uj);
  14380. a.jg = g;
  14381. a.lineWidth = e;
  14382. a.Bj = f;
  14383. a.Vk = p;
  14384. a.lineCap = "round";
  14385. this.cb.push(a)
  14386. },
  14387. pE: function(a, c, d) {
  14388. d = d || this.Cd();
  14389. d.a == q && (d.a = 255);
  14390. var e = new F.Yj(F.Ld.MH);
  14391. e.jg = [a];
  14392. e.lineWidth = c;
  14393. e.fillColor = d;
  14394. this.cb.push(e)
  14395. },
  14396. CZ: function(a, c, d) {
  14397. if (a && 0 != a.length) {
  14398. d = d || this.Cd();
  14399. d.a == q && (d.a = 255);
  14400. for (var e = 0, f = a.length; e < f; e++) this.pE(a[e], c, d)
  14401. }
  14402. },
  14403. sE: function(a, c, d, e) {
  14404. d = d || this.Zc;
  14405. e = e || this.Cd();
  14406. e.a == q && (e.a = 255);
  14407. var f = new F.Yj(F.Ld.Uj);
  14408. f.jg = [a, c];
  14409. f.lineWidth = 2 * d;
  14410. f.Bj = e;
  14411. f.Vk = p;
  14412. f.lineCap = "round";
  14413. this.cb.push(f)
  14414. },
  14415. GZ: function(a, c, d, e) {
  14416. d = d || this.Zc;
  14417. e = e || this.Cd();
  14418. e.a == q && (e.a = 255);
  14419. var f = new F.Yj(F.Ld.Uj);
  14420. f.jg = a;
  14421. f.fillColor = c;
  14422. f.lineWidth = d;
  14423. f.Bj = e;
  14424. f.tx = p;
  14425. f.Vk = p;
  14426. f.lineCap = "round";
  14427. c && (f.dF = p);
  14428. this.cb.push(f)
  14429. },
  14430. Yd: function(a, c, d, e) {
  14431. for (var f = [], g = 0; g < a.length; g++) f.push(F.d(a[g].x, a[g].y));
  14432. return this.GZ(f, c, d, e)
  14433. },
  14434. Y: function(a) {
  14435. a = a || F.m;
  14436. this.q && (this.q.src == F.SRC_ALPHA && this.q.U == F.ONE) && (a.globalCompositeOperation = "lighter");
  14437. for (var c = 0; c < this.cb.length; c++) {
  14438. var d = this.cb[c];
  14439. switch (d.type) {
  14440. case F.Ld.MH:
  14441. this.fV(a, d);
  14442. break;
  14443. case F.Ld.oT:
  14444. this.hV(a, d);
  14445. break;
  14446. case F.Ld.Uj:
  14447. this.gV(a, d)
  14448. }
  14449. }
  14450. },
  14451. fV: function(a, c) {
  14452. var d =
  14453. c.fillColor,
  14454. e = c.jg[0],
  14455. f = c.lineWidth,
  14456. g = F.view.qa,
  14457. h = F.view.Ra;
  14458. a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14459. a.beginPath();
  14460. a.arc(e.x * g, -e.y * h, f * g, 0, 2 * Math.PI, r);
  14461. a.closePath();
  14462. a.fill()
  14463. },
  14464. hV: function(a, c) {
  14465. var d = c.Bj,
  14466. e = c.jg[0],
  14467. f = c.jg[1],
  14468. g = c.lineWidth,
  14469. h = c.lineCap,
  14470. m = F.view.qa,
  14471. n = F.view.Ra;
  14472. a.strokeStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")";
  14473. a.lineWidth = g * m;
  14474. a.beginPath();
  14475. a.lineCap = h;
  14476. a.moveTo(e.x * m, -e.y * n);
  14477. a.lineTo(f.x * m, -f.y * n);
  14478. a.stroke()
  14479. },
  14480. gV: function(a, c) {
  14481. var d = c.jg,
  14482. e =
  14483. c.lineCap,
  14484. f = c.fillColor,
  14485. g = c.lineWidth,
  14486. h = c.Bj,
  14487. m = c.tx,
  14488. n = c.dF,
  14489. s = c.Vk;
  14490. if (d != q) {
  14491. var u = d[0],
  14492. v = F.view.qa,
  14493. x = F.view.Ra;
  14494. a.lineCap = e;
  14495. f && (a.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")");
  14496. g && (a.lineWidth = g * v);
  14497. h && (a.strokeStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")");
  14498. a.beginPath();
  14499. a.moveTo(u.x * v, -u.y * x);
  14500. e = 1;
  14501. for (f = d.length; e < f; e++) a.lineTo(d[e].x * v, -d[e].y * x);
  14502. m && a.closePath();
  14503. n && a.fill();
  14504. s && a.stroke()
  14505. }
  14506. },
  14507. clear: function() {
  14508. this.cb.length = 0
  14509. }
  14510. });
  14511. F.AQ = F.t.extend({
  14512. sn: 0,
  14513. cb: q,
  14514. tj: q,
  14515. AL: q,
  14516. zL: q,
  14517. Zc: 1,
  14518. ef: q,
  14519. q: q,
  14520. jb: r,
  14521. tb: "DrawNodeWebGL",
  14522. Ah: A("q"),
  14523. Ue: function(a, c) {
  14524. c === k ? (this.q.src = a.src, this.q.U = a.U) : (this.q.src = a, this.q.U = c)
  14525. },
  14526. ctor: function() {
  14527. F.t.prototype.ctor.call(this);
  14528. this.cb = [];
  14529. this.q = new F.Nj(F.hc, F.gc);
  14530. this.ef = F.color(255, 255, 255, 255);
  14531. this.M()
  14532. },
  14533. M: function() {
  14534. return F.t.prototype.M.call(this) ? (this.shaderProgram = F.Jd.oc(F.AH), this.hr(64), this.AL = F.m.createBuffer(), this.jb = p) : r
  14535. },
  14536. RF: y("Zc"),
  14537. G_: A("Zc"),
  14538. qp: function(a) {
  14539. var c = this.ef;
  14540. c.r = a.r;
  14541. c.g = a.g;
  14542. c.b =
  14543. a.b;
  14544. c.a = a.a
  14545. },
  14546. Cd: function() {
  14547. return F.color(this.ef.r, this.ef.g, this.ef.b, this.ef.a)
  14548. },
  14549. rE: function(a, c, d, e, f) {
  14550. e = e || this.Zc;
  14551. f = f || this.Cd();
  14552. f.a == q && (f.a = 255);
  14553. a = [a, F.d(c.x, a.y), c, F.d(a.x, c.y)];
  14554. d == q ? this.hv(a, e, f, p) : this.Yd(a, d, e, f)
  14555. },
  14556. nE: function(a, c, d, e, f, g, h) {
  14557. g = g || this.Zc;
  14558. h = h || this.Cd();
  14559. h.a == q && (h.a = 255);
  14560. var m = 2 * Math.PI / e,
  14561. n = [],
  14562. s;
  14563. for (s = 0; s <= e; s++) {
  14564. var u = s * m;
  14565. n.push(F.d(c * Math.cos(u + d) + a.x, c * Math.sin(u + d) + a.y))
  14566. }
  14567. f && n.push(F.d(a.x, a.y));
  14568. g *= 0.5;
  14569. s = 0;
  14570. for (a = n.length; s < a - 1; s++) this.sE(n[s], n[s + 1], g, h)
  14571. },
  14572. qE: function(a,
  14573. c, d, e, f, g) {
  14574. f = f || this.Zc;
  14575. g = g || this.Cd();
  14576. g.a == q && (g.a = 255);
  14577. for (var h = [], m = 0, n = 0; n < e; n++) h.push(F.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * c.x + m * m * d.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * c.y + m * m * d.y)), m += 1 / e;
  14578. h.push(F.d(d.x, d.y));
  14579. this.hv(h, f, g, r)
  14580. },
  14581. oE: function(a, c, d, e, f, g, h) {
  14582. g = g || this.Zc;
  14583. h = h || this.Cd();
  14584. h.a == q && (h.a = 255);
  14585. for (var m = [], n = 0, s = 0; s < f; s++) m.push(F.d(Math.pow(1 - n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * c.x + 3 * (1 - n) * n * n * d.x + n * n * n * e.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * c.y + 3 * (1 - n) * n * n * d.y + n * n * n * e.y)), n += 1 / f;
  14586. m.push(F.d(e.x,
  14587. e.y));
  14588. this.hv(m, g, h, r)
  14589. },
  14590. mE: function(a, c, d, e) {
  14591. this.qm(a, 0.5, c, d, e)
  14592. },
  14593. qm: function(a, c, d, e, f) {
  14594. e = e || this.Zc;
  14595. f = f || this.Cd();
  14596. f.a == q && (f.a = 255);
  14597. for (var g = [], h, m, n = 1 / a.length, s = 0; s < d + 1; s++) m = s / d, 1 == m ? (h = a.length - 1, m = 1) : (h = 0 | m / n, m = (m - n * h) / n), h = F.bE(F.dd(a, h - 1), F.dd(a, h - 0), F.dd(a, h + 1), F.dd(a, h + 2), c, m), g.push(h);
  14598. e *= 0.5;
  14599. a = 0;
  14600. for (c = g.length; a < c - 1; a++) this.sE(g[a], g[a + 1], e, f)
  14601. },
  14602. pX: function() {
  14603. var a = F.m;
  14604. F.Jc(F.xl);
  14605. a.bindBuffer(a.ARRAY_BUFFER, this.AL);
  14606. this.jb && (a.bufferData(a.ARRAY_BUFFER, this.tj, a.STREAM_DRAW), this.jb =
  14607. r);
  14608. var c = F.td.BYTES_PER_ELEMENT;
  14609. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, c, 0);
  14610. a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, c, 8);
  14611. a.vertexAttribPointer(F.ud, 2, a.FLOAT, r, c, 12);
  14612. a.drawArrays(a.TRIANGLES, 0, 3 * this.cb.length);
  14613. F.Xf()
  14614. },
  14615. hr: function(a) {
  14616. var c = this.cb;
  14617. if (c.length + a > this.sn) {
  14618. var d = F.Zb.BYTES_PER_ELEMENT;
  14619. this.sn += Math.max(this.sn, a);
  14620. if (c == q || 0 === c.length) this.cb = [], this.tj = new ArrayBuffer(d * this.sn), this.zL = new Uint8Array(this.tj);
  14621. else {
  14622. a = [];
  14623. for (var e = new ArrayBuffer(d * this.sn), f = 0; f < c.length; f++) a[f] =
  14624. new F.Zb(c[f].a, c[f].b, c[f].D, e, f * d);
  14625. this.zL = new Uint8Array(e);
  14626. this.tj = e;
  14627. this.cb = a
  14628. }
  14629. }
  14630. },
  14631. Y: function() {
  14632. F.Eh(this.q.src, this.q.U);
  14633. this.Ib.Nc();
  14634. this.Ib.ut();
  14635. this.pX()
  14636. },
  14637. pE: function(a, c, d) {
  14638. d = d || this.Cd();
  14639. d.a == q && (d.a = 255);
  14640. var e = {
  14641. r: 0 | d.r,
  14642. g: 0 | d.g,
  14643. b: 0 | d.b,
  14644. a: 0 | d.a
  14645. };
  14646. d = {
  14647. k: {
  14648. x: a.x - c,
  14649. y: a.y - c
  14650. },
  14651. v: e,
  14652. n: {
  14653. fa: -1,
  14654. ga: -1
  14655. }
  14656. };
  14657. var f = {
  14658. k: {
  14659. x: a.x - c,
  14660. y: a.y + c
  14661. },
  14662. v: e,
  14663. n: {
  14664. fa: -1,
  14665. ga: 1
  14666. }
  14667. },
  14668. g = {
  14669. k: {
  14670. x: a.x + c,
  14671. y: a.y + c
  14672. },
  14673. v: e,
  14674. n: {
  14675. fa: 1,
  14676. ga: 1
  14677. }
  14678. };
  14679. a = {
  14680. k: {
  14681. x: a.x + c,
  14682. y: a.y - c
  14683. },
  14684. v: e,
  14685. n: {
  14686. fa: 1,
  14687. ga: -1
  14688. }
  14689. };
  14690. this.hr(6);
  14691. this.cb.push(new F.Zb(d, f, g, this.tj, this.cb.length * F.Zb.BYTES_PER_ELEMENT));
  14692. this.cb.push(new F.Zb(d, g, a, this.tj, this.cb.length * F.Zb.BYTES_PER_ELEMENT));
  14693. this.jb = p
  14694. },
  14695. CZ: function(a, c, d) {
  14696. if (a && 0 != a.length) {
  14697. d = d || this.Cd();
  14698. d.a == q && (d.a = 255);
  14699. for (var e = 0, f = a.length; e < f; e++) this.pE(a[e], c, d)
  14700. }
  14701. },
  14702. sE: function(a, c, d, e) {
  14703. e = e || this.Cd();
  14704. e.a == q && (e.a = 255);
  14705. d = d || 0.5 * this.Zc;
  14706. this.hr(18);
  14707. e = {
  14708. r: 0 | e.r,
  14709. g: 0 | e.g,
  14710. b: 0 | e.b,
  14711. a: 0 | e.a
  14712. };
  14713. var f = F.ze(a);
  14714. c = F.ze(c);
  14715. a = F.Ft(F.Cp(F.pc(c, f)));
  14716. var g = F.Cp(a),
  14717. h = F.rd(a, d);
  14718. d = F.rd(g, d);
  14719. var m = F.te(c, F.pc(h, d)),
  14720. n = F.pc(c, h),
  14721. s = F.te(c, h),
  14722. u = F.pc(f, h),
  14723. v = F.te(f, h),
  14724. x = F.pc(f, F.pc(h,
  14725. d)),
  14726. f = F.te(f, F.te(h, d)),
  14727. w = F.Zb.BYTES_PER_ELEMENT,
  14728. z = this.tj,
  14729. B = this.cb;
  14730. B.push(new F.Zb({
  14731. k: F.pc(c, F.te(h, d)),
  14732. v: e,
  14733. n: F.Ia(F.ig(F.te(a, g)))
  14734. }, {
  14735. k: m,
  14736. v: e,
  14737. n: F.Ia(F.pc(a, g))
  14738. }, {
  14739. k: n,
  14740. v: e,
  14741. n: F.Ia(F.ig(a))
  14742. }, z, B.length * w));
  14743. B.push(new F.Zb({
  14744. k: s,
  14745. v: e,
  14746. n: F.Ia(a)
  14747. }, {
  14748. k: m,
  14749. v: e,
  14750. n: F.Ia(F.pc(a, g))
  14751. }, {
  14752. k: n,
  14753. v: e,
  14754. n: F.Ia(F.ig(a))
  14755. }, z, B.length * w));
  14756. B.push(new F.Zb({
  14757. k: s,
  14758. v: e,
  14759. n: F.Ia(a)
  14760. }, {
  14761. k: u,
  14762. v: e,
  14763. n: F.Ia(F.ig(a))
  14764. }, {
  14765. k: n,
  14766. v: e,
  14767. n: F.Ia(F.ig(a))
  14768. }, z, B.length * w));
  14769. B.push(new F.Zb({
  14770. k: s,
  14771. v: e,
  14772. n: F.Ia(a)
  14773. }, {
  14774. k: u,
  14775. v: e,
  14776. n: F.Ia(F.ig(a))
  14777. }, {
  14778. k: v,
  14779. v: e,
  14780. n: F.Ia(a)
  14781. }, z, B.length *
  14782. w));
  14783. B.push(new F.Zb({
  14784. k: x,
  14785. v: e,
  14786. n: F.Ia(F.pc(g, a))
  14787. }, {
  14788. k: u,
  14789. v: e,
  14790. n: F.Ia(F.ig(a))
  14791. }, {
  14792. k: v,
  14793. v: e,
  14794. n: F.Ia(a)
  14795. }, z, B.length * w));
  14796. B.push(new F.Zb({
  14797. k: x,
  14798. v: e,
  14799. n: F.Ia(F.pc(g, a))
  14800. }, {
  14801. k: f,
  14802. v: e,
  14803. n: F.Ia(F.te(a, g))
  14804. }, {
  14805. k: v,
  14806. v: e,
  14807. n: F.Ia(a)
  14808. }, z, B.length * w));
  14809. this.jb = p
  14810. },
  14811. Yd: function(a, c, d, e) {
  14812. if (c == q) this.hv(a, d, e, p);
  14813. else {
  14814. c.a == q && (c.a = 255);
  14815. e.a == q && (e.a = 255);
  14816. d = d || this.Zc;
  14817. d *= 0.5;
  14818. c = {
  14819. r: 0 | c.r,
  14820. g: 0 | c.g,
  14821. b: 0 | c.b,
  14822. a: 0 | c.a
  14823. };
  14824. e = {
  14825. r: 0 | e.r,
  14826. g: 0 | e.g,
  14827. b: 0 | e.b,
  14828. a: 0 | e.a
  14829. };
  14830. var f = [],
  14831. g, h, m, n, s = a.length;
  14832. for (g = 0; g < s; g++) {
  14833. h = F.ze(a[(g - 1 + s) % s]);
  14834. m = F.ze(a[g]);
  14835. n = F.ze(a[(g + 1) % s]);
  14836. var u = F.Ft(F.Cp(F.pc(m, h)));
  14837. m = F.Ft(F.Cp(F.pc(n, m)));
  14838. f[g] = {
  14839. offset: F.rd(F.te(u, m), 1 / (F.IP(u, m) + 1)),
  14840. Xk: m
  14841. }
  14842. }
  14843. u = 0 < d;
  14844. this.hr(3 * (3 * s - 2));
  14845. var v = F.Zb.BYTES_PER_ELEMENT,
  14846. x = this.tj,
  14847. w = this.cb,
  14848. z = u == r ? 0.5 : 0;
  14849. for (g = 0; g < s - 2; g++) h = F.pc(F.ze(a[0]), F.rd(f[0].offset, z)), m = F.pc(F.ze(a[g + 1]), F.rd(f[g + 1].offset, z)), n = F.pc(F.ze(a[g + 2]), F.rd(f[g + 2].offset, z)), w.push(new F.Zb({
  14850. k: h,
  14851. v: c,
  14852. n: F.Ia({
  14853. x: 0,
  14854. y: 0
  14855. })
  14856. }, {
  14857. k: m,
  14858. v: c,
  14859. n: F.Ia({
  14860. x: 0,
  14861. y: 0
  14862. })
  14863. }, {
  14864. k: n,
  14865. v: c,
  14866. n: F.Ia({
  14867. x: 0,
  14868. y: 0
  14869. })
  14870. }, x, w.length * v));
  14871. for (g = 0; g < s; g++) {
  14872. z = (g + 1) % s;
  14873. h = F.ze(a[g]);
  14874. m = F.ze(a[z]);
  14875. n = f[g].Xk;
  14876. var B = f[g].offset,
  14877. C = f[z].offset,
  14878. z = u ? F.pc(h, F.rd(B, d)) : F.pc(h, F.rd(B, 0.5)),
  14879. D = u ? F.pc(m, F.rd(C, d)) : F.pc(m, F.rd(C, 0.5));
  14880. h = u ? F.te(h, F.rd(B, d)) : F.te(h, F.rd(B, 0.5));
  14881. m = u ? F.te(m, F.rd(C, d)) : F.te(m, F.rd(C, 0.5));
  14882. u ? (w.push(new F.Zb({
  14883. k: z,
  14884. v: e,
  14885. n: F.Ia(F.ig(n))
  14886. }, {
  14887. k: D,
  14888. v: e,
  14889. n: F.Ia(F.ig(n))
  14890. }, {
  14891. k: m,
  14892. v: e,
  14893. n: F.Ia(n)
  14894. }, x, w.length * v)), w.push(new F.Zb({
  14895. k: z,
  14896. v: e,
  14897. n: F.Ia(F.ig(n))
  14898. }, {
  14899. k: h,
  14900. v: e,
  14901. n: F.Ia(n)
  14902. }, {
  14903. k: m,
  14904. v: e,
  14905. n: F.Ia(n)
  14906. }, x, w.length * v))) : (w.push(new F.Zb({
  14907. k: z,
  14908. v: c,
  14909. n: F.Ia({
  14910. x: 0,
  14911. y: 0
  14912. })
  14913. }, {
  14914. k: D,
  14915. v: c,
  14916. n: F.Ia({
  14917. x: 0,
  14918. y: 0
  14919. })
  14920. }, {
  14921. k: m,
  14922. v: c,
  14923. n: F.Ia(n)
  14924. },
  14925. x, w.length * v)), w.push(new F.Zb({
  14926. k: z,
  14927. v: c,
  14928. n: F.Ia({
  14929. x: 0,
  14930. y: 0
  14931. })
  14932. }, {
  14933. k: h,
  14934. v: c,
  14935. n: F.Ia(n)
  14936. }, {
  14937. k: m,
  14938. v: c,
  14939. n: F.Ia(n)
  14940. }, x, w.length * v)))
  14941. }
  14942. this.jb = p
  14943. }
  14944. },
  14945. hv: function(a, c, d, e) {
  14946. c = c || this.Zc;
  14947. d = d || this.ef;
  14948. d.a == q && (d.a = 255);
  14949. c *= 0.5;
  14950. if (!(0 >= c)) {
  14951. d = {
  14952. r: 0 | d.r,
  14953. g: 0 | d.g,
  14954. b: 0 | d.b,
  14955. a: 0 | d.a
  14956. };
  14957. var f = [],
  14958. g, h, m, n, s = a.length;
  14959. for (g = 0; g < s; g++) {
  14960. h = F.ze(a[(g - 1 + s) % s]);
  14961. m = F.ze(a[g]);
  14962. n = F.ze(a[(g + 1) % s]);
  14963. var u = F.Ft(F.Cp(F.pc(m, h)));
  14964. m = F.Ft(F.Cp(F.pc(n, m)));
  14965. f[g] = {
  14966. offset: F.rd(F.te(u, m), 1 / (F.IP(u, m) + 1)),
  14967. Xk: m
  14968. }
  14969. }
  14970. this.hr(3 * (3 * s - 2));
  14971. n = F.Zb.BYTES_PER_ELEMENT;
  14972. var u = this.tj,
  14973. v = this.cb;
  14974. e = e ? s : s - 1;
  14975. for (g = 0; g < e; g++) {
  14976. var x = (g + 1) % s;
  14977. h = F.ze(a[g]);
  14978. m = F.ze(a[x]);
  14979. var w = f[g].Xk,
  14980. z = f[g].offset,
  14981. x = f[x].offset,
  14982. B = F.pc(h, F.rd(z, c));
  14983. h = F.te(h, F.rd(z, c));
  14984. z = F.te(m, F.rd(x, c));
  14985. v.push(new F.Zb({
  14986. k: B,
  14987. v: d,
  14988. n: F.Ia(F.ig(w))
  14989. }, {
  14990. k: F.pc(m, F.rd(x, c)),
  14991. v: d,
  14992. n: F.Ia(F.ig(w))
  14993. }, {
  14994. k: z,
  14995. v: d,
  14996. n: F.Ia(w)
  14997. }, u, v.length * n));
  14998. v.push(new F.Zb({
  14999. k: B,
  15000. v: d,
  15001. n: F.Ia(F.ig(w))
  15002. }, {
  15003. k: h,
  15004. v: d,
  15005. n: F.Ia(w)
  15006. }, {
  15007. k: z,
  15008. v: d,
  15009. n: F.Ia(w)
  15010. }, u, v.length * n))
  15011. }
  15012. this.jb = p
  15013. }
  15014. },
  15015. clear: function() {
  15016. this.cb.length = 0;
  15017. this.jb = p
  15018. }
  15019. });
  15020. F.Ld = F.B == F.$ ? F.AQ : F.zQ;
  15021. F.Ld.create = function() {
  15022. return new F.Ld
  15023. };
  15024. F.Yj = function(a) {
  15025. this.type = a;
  15026. this.fillColor = this.jg = q;
  15027. this.lineWidth = 0;
  15028. this.Bj = q;
  15029. this.lineCap = "butt";
  15030. this.Vk = this.dF = this.tx = r
  15031. };
  15032. F.Ld.MH = 0;
  15033. F.Ld.oT = 1;
  15034. F.Ld.Uj = 2;
  15035. F.wt = -1;
  15036. F.WO = function(a, c) {
  15037. a.shaderProgram = c;
  15038. var d = a.children;
  15039. if (d)
  15040. for (var e = 0; e < d.length; e++) F.WO(d[e], c)
  15041. };
  15042. F.Yb = F.t.extend({
  15043. km: 0,
  15044. Fh: r,
  15045. ld: q,
  15046. aK: r,
  15047. ctor: function(a) {
  15048. F.t.prototype.ctor.call(this);
  15049. this.ld = q;
  15050. this.km = 0;
  15051. this.Fh = r;
  15052. F.Yb.prototype.M.call(this, a || q)
  15053. },
  15054. M: q,
  15055. tb: "ClippingNode",
  15056. fW: function(a) {
  15057. this.ld = a;
  15058. this.km = 1;
  15059. this.Fh = r;
  15060. F.Yb.DB = p;
  15061. F.Yb.DB && (F.wt = F.m.getParameter(F.m.STENCIL_BITS), 0 >= F.wt && F.log("Stencil buffer is not enabled."), F.Yb.DB = r);
  15062. return p
  15063. },
  15064. eW: function(a) {
  15065. this.ld = a;
  15066. this.km = 1;
  15067. this.Fh = r
  15068. },
  15069. da: function() {
  15070. F.t.prototype.da.call(this);
  15071. this.ld.da()
  15072. },
  15073. Ih: function() {
  15074. F.t.prototype.Ih.call(this);
  15075. this.ld.Ih()
  15076. },
  15077. Yf: function() {
  15078. this.ld.Yf();
  15079. F.t.prototype.Yf.call(this)
  15080. },
  15081. Ab: function() {
  15082. this.ld.Ab();
  15083. F.t.prototype.Ab.call(this)
  15084. },
  15085. S: q,
  15086. ls: function(a) {
  15087. var c = a || F.m;
  15088. if (1 > F.wt) F.t.prototype.S.call(this, a);
  15089. else if (!this.ld || !this.ld.visible) this.Fh && F.t.prototype.S.call(this, a);
  15090. else if (F.Yb.yr = -1, F.Yb.yr + 1 == F.wt) F.Yb.JD = p, F.Yb.JD && (F.log("Nesting more than " + F.wt + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), F.Yb.JD = r), F.t.prototype.S.call(this, a);
  15091. else {
  15092. F.Yb.yr++;
  15093. var d =
  15094. 1 << F.Yb.yr,
  15095. e = d | d - 1,
  15096. f = c.isEnabled(c.STENCIL_TEST),
  15097. g = c.getParameter(c.STENCIL_WRITEMASK),
  15098. h = c.getParameter(c.STENCIL_FUNC),
  15099. m = c.getParameter(c.STENCIL_REF),
  15100. n = c.getParameter(c.STENCIL_VALUE_MASK),
  15101. s = c.getParameter(c.STENCIL_FAIL),
  15102. u = c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),
  15103. v = c.getParameter(c.STENCIL_PASS_DEPTH_PASS);
  15104. c.enable(c.STENCIL_TEST);
  15105. c.stencilMask(d);
  15106. var x = c.getParameter(c.DEPTH_WRITEMASK);
  15107. c.depthMask(r);
  15108. c.stencilFunc(c.NEVER, d, d);
  15109. c.stencilOp(!this.Fh ? c.ZERO : c.REPLACE, c.KEEP, c.KEEP);
  15110. F.Ce.AM(F.d(0,
  15111. 0), F.Q1(), F.color(255, 255, 255, 255));
  15112. c.stencilFunc(c.NEVER, d, d);
  15113. c.stencilOp(!this.Fh ? c.REPLACE : c.ZERO, c.KEEP, c.KEEP);
  15114. if (1 > this.km) {
  15115. var d = F.Jd.oc(F.ru),
  15116. w = c.getUniformLocation(d.ym(), F.tI);
  15117. F.OE(d.ym());
  15118. d.st(w, this.km);
  15119. F.WO(this.ld, d)
  15120. }
  15121. F.Bm();
  15122. this.transform();
  15123. this.ld.S();
  15124. F.Am();
  15125. c.depthMask(x);
  15126. c.stencilFunc(c.EQUAL, e, e);
  15127. c.stencilOp(c.KEEP, c.KEEP, c.KEEP);
  15128. F.t.prototype.S.call(this, a);
  15129. c.stencilFunc(h, m, n);
  15130. c.stencilOp(s, u, v);
  15131. c.stencilMask(g);
  15132. f || c.disable(c.STENCIL_TEST);
  15133. F.Yb.yr--
  15134. }
  15135. },
  15136. gm: function(a) {
  15137. if (!this.ld ||
  15138. !this.ld.visible) this.Fh && F.t.prototype.S.call(this, a);
  15139. else {
  15140. a = a || F.m;
  15141. var c = a.canvas;
  15142. if (this.JA() || this.ld instanceof F.aa) {
  15143. var d = F.Yb.VV();
  15144. d.width = c.width;
  15145. d.height = c.height;
  15146. d.getContext("2d").drawImage(c, 0, 0);
  15147. a.save();
  15148. F.t.prototype.S.call(this, a);
  15149. a.globalCompositeOperation = this.Fh ? "destination-out" : "destination-in";
  15150. this.transform(a);
  15151. this.ld.S();
  15152. a.restore();
  15153. a.save();
  15154. a.setTransform(1, 0, 0, 1, 0, 0);
  15155. a.globalCompositeOperation = "destination-over";
  15156. a.drawImage(d, 0, 0)
  15157. } else {
  15158. var d = this.u,
  15159. e;
  15160. a.save();
  15161. this.transform(a);
  15162. this.ld.S(a);
  15163. this.Fh && (a.save(), a.setTransform(1, 0, 0, 1, 0, 0), a.moveTo(0, 0), a.lineTo(0, c.height), a.lineTo(c.width, c.height), a.lineTo(c.width, 0), a.lineTo(0, 0), a.restore());
  15164. a.clip();
  15165. this.JA(p);
  15166. var f = d.length;
  15167. if (0 < f) {
  15168. this.Wc();
  15169. for (c = 0; c < f; c++)
  15170. if (e = d[c], 0 > e.yb) e.S(a);
  15171. else break;
  15172. for (this.Y(a); c < f; c++) d[c].S(a)
  15173. } else this.Y(a);
  15174. this.JA(r)
  15175. }
  15176. a.restore()
  15177. }
  15178. },
  15179. h0: A("ld"),
  15180. ZF: q,
  15181. VX: y("ld"),
  15182. UX: function(a) {
  15183. this.ld = a;
  15184. var c = F.m;
  15185. !(a instanceof F.aa) && a instanceof F.Ld && (a.Y = function() {
  15186. var d = F.view.qa,
  15187. e = F.view.Ra;
  15188. c.beginPath();
  15189. for (var f = 0; f < a.cb.length; f++) {
  15190. var g = a.cb[f].jg,
  15191. h = g[0];
  15192. c.moveTo(h.x * d, -h.y * e);
  15193. for (var h = 1, m = g.length; h < m; h++) c.lineTo(g[h].x * d, -g[h].y * e)
  15194. }
  15195. })
  15196. },
  15197. jaa: A("km"),
  15198. Pha: y("km"),
  15199. tda: A("Fh"),
  15200. yia: y("Fh"),
  15201. JA: function(a) {
  15202. if (a === p || a === r) F.Yb.prototype.aK = a;
  15203. return F.Yb.prototype.aK
  15204. }
  15205. });
  15206. M = F.Yb.prototype;
  15207. F.B === F.$ ? (M.M = M.fW, M.S = M.ls, M.ZF = M.VX) : (M.M = M.eW, M.S = M.gm, M.ZF = M.UX);
  15208. F.j(M, "stencil", M.h0, M.ZF);
  15209. F.Yb.DB = q;
  15210. F.Yb.JD = q;
  15211. F.Yb.yr = q;
  15212. F.Yb.qL = q;
  15213. F.Yb.VV = function() {
  15214. return F.Yb.qL || (F.Yb.qL = document.createElement("canvas"))
  15215. };
  15216. F.Yb.create = function(a) {
  15217. return new F.Yb(a)
  15218. };
  15219. F.Zm = F.ma.extend({
  15220. dk: r,
  15221. li: 0,
  15222. X: q,
  15223. L: q,
  15224. Bg: q,
  15225. On: q,
  15226. Jl: r,
  15227. Ib: q,
  15228. VA: 0,
  15229. jb: r,
  15230. ctor: function(a, c, d) {
  15231. F.NA();
  15232. this.dk = r;
  15233. this.li = 0;
  15234. this.L = this.X = q;
  15235. this.Bg = F.d(0, 0);
  15236. this.On = q;
  15237. this.Jl = r;
  15238. this.Ib = q;
  15239. this.VA = 0;
  15240. this.jb = r;
  15241. a !== k && this.px(a, c, d)
  15242. },
  15243. tf: A("dk"),
  15244. setActive: function(a) {
  15245. this.dk = a;
  15246. a || (a = F.I, a.Mm(a.ki))
  15247. },
  15248. eca: A("li"),
  15249. y3: y("li"),
  15250. z_: function() {
  15251. return F.size(this.X.width, this.X.height)
  15252. },
  15253. via: function(a) {
  15254. this.X.width = parseInt(a.width);
  15255. this.X.height = parseInt(a.height)
  15256. },
  15257. IE: function() {
  15258. return F.d(this.Bg.x, this.Bg.y)
  15259. },
  15260. lja: function(a) {
  15261. this.Bg.x =
  15262. a.x;
  15263. this.Bg.y = a.y
  15264. },
  15265. Hda: A("Jl"),
  15266. sja: function(a) {
  15267. this.Jl != a && (this.Jl = a, this.Jw())
  15268. },
  15269. px: function(a, c, d) {
  15270. if (!c) {
  15271. var e = F.I.Hs(),
  15272. f = F.Qj(e.width),
  15273. g = F.Qj(e.height),
  15274. h = new Uint8Array(4 * f * g);
  15275. if (!h) return F.log("cocos2d: CCGrid: not enough memory."), r;
  15276. c = new F.ea;
  15277. c.Ms(h, F.ea.Oi, f, g, e);
  15278. if (!c) return F.log("cocos2d: CCGrid: error creating texture"), r
  15279. }
  15280. this.dk = r;
  15281. this.li = 0;
  15282. this.X = a;
  15283. this.L = c;
  15284. this.Jl = d || r;
  15285. this.Bg.x = this.L.width / a.width;
  15286. this.Bg.y = this.L.height / a.height;
  15287. this.On = new F.QQ;
  15288. if (!this.On) return r;
  15289. this.On.t0(this.L);
  15290. this.Ib = F.Jd.oc(F.tq);
  15291. this.Jw();
  15292. return p
  15293. },
  15294. ts: function() {
  15295. this.VA = F.I.ki;
  15296. this.N2();
  15297. this.On.aZ(this.L)
  15298. },
  15299. qs: function(a) {
  15300. this.On.HY(this.L);
  15301. F.I.Mm(this.VA);
  15302. if (a.wm().cF()) {
  15303. var c = a.eb;
  15304. F.Zo(c.x, c.y);
  15305. a.wm().Vs();
  15306. F.Zo(-c.x, -c.y)
  15307. }
  15308. F.qe(this.L);
  15309. this.SD()
  15310. },
  15311. SD: function() {
  15312. F.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  15313. },
  15314. HF: function() {
  15315. F.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  15316. },
  15317. Jw: function() {
  15318. F.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  15319. },
  15320. N2: function() {
  15321. var a =
  15322. F.I.Hs();
  15323. F.m.viewport(0, 0, a.width, a.height);
  15324. F.yi(F.Ni);
  15325. F.Xo();
  15326. var c = new F.ca;
  15327. F.iF(c, 0, a.width, 0, a.height, -1, 1);
  15328. F.Yo(c);
  15329. F.yi(F.Mi);
  15330. F.Xo();
  15331. F.XO()
  15332. }
  15333. });
  15334. F.Zm.create = function(a, c, d) {
  15335. return new F.Zm(a, c, d)
  15336. };
  15337. F.Vy = F.Zm.extend({
  15338. Dg: q,
  15339. Sa: q,
  15340. dj: q,
  15341. lb: q,
  15342. Qf: q,
  15343. cd: q,
  15344. Jf: q,
  15345. ctor: function(a, c, d) {
  15346. F.Zm.prototype.ctor.call(this);
  15347. this.Jf = this.cd = this.Qf = this.lb = this.dj = this.Sa = this.Dg = q;
  15348. a !== k && this.px(a, c, d)
  15349. },
  15350. KP: function(a) {
  15351. (a.x !== (0 | a.x) || a.y !== (0 | a.y)) && F.log("cc.Grid3D.vertex() : Numbers must be integers");
  15352. a = 0 | 3 * (a.x * (this.X.height + 1) + a.y);
  15353. var c = this.Sa;
  15354. return new F.jc(c[a], c[a + 1], c[a + 2])
  15355. },
  15356. Lc: function(a) {
  15357. (a.x !== (0 | a.x) || a.y !== (0 | a.y)) && F.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  15358. a = 0 | 3 * (a.x * (this.X.height +
  15359. 1) + a.y);
  15360. var c = this.dj;
  15361. return new F.jc(c[a], c[a + 1], c[a + 2])
  15362. },
  15363. Id: function(a, c) {
  15364. (a.x !== (0 | a.x) || a.y !== (0 | a.y)) && F.log("cc.Grid3D.setVertex() : Numbers must be integers");
  15365. var d = 0 | 3 * (a.x * (this.X.height + 1) + a.y),
  15366. e = this.Sa;
  15367. e[d] = c.x;
  15368. e[d + 1] = c.y;
  15369. e[d + 2] = c.e;
  15370. this.jb = p
  15371. },
  15372. SD: function() {
  15373. var a = this.X.width * this.X.height;
  15374. F.Jc(F.Md | F.hn);
  15375. this.Ib.Nc();
  15376. this.Ib.ut();
  15377. var c = F.m,
  15378. d = this.jb;
  15379. c.bindBuffer(c.ARRAY_BUFFER, this.cd);
  15380. d && c.bufferData(c.ARRAY_BUFFER, this.Sa, c.DYNAMIC_DRAW);
  15381. c.vertexAttribPointer(F.qb, 3, c.FLOAT, r, 0, 0);
  15382. c.bindBuffer(c.ARRAY_BUFFER, this.Qf);
  15383. d && c.bufferData(c.ARRAY_BUFFER, this.Dg, c.DYNAMIC_DRAW);
  15384. c.vertexAttribPointer(F.ud, 2, c.FLOAT, r, 0, 0);
  15385. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Jf);
  15386. d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW);
  15387. c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0);
  15388. d && (this.jb = r);
  15389. F.Xf()
  15390. },
  15391. HF: function() {
  15392. if (0 < this.li) {
  15393. for (var a = this.dj, c = this.Sa, d = 0, e = this.Sa.length; d < e; d++) a[d] = c[d];
  15394. --this.li
  15395. }
  15396. },
  15397. Jw: function() {
  15398. var a = F.m,
  15399. c = this.L.pixelsWidth,
  15400. d = this.L.pixelsHeight,
  15401. e = this.L.P.height,
  15402. f = this.X,
  15403. g = (f.width + 1) * (f.height + 1);
  15404. this.Sa = new Float32Array(3 * g);
  15405. this.Dg = new Float32Array(2 * g);
  15406. this.lb = new Uint16Array(6 * f.width * f.height);
  15407. this.cd && a.deleteBuffer(this.cd);
  15408. this.cd = a.createBuffer();
  15409. this.Qf && a.deleteBuffer(this.Qf);
  15410. this.Qf = a.createBuffer();
  15411. this.Jf && a.deleteBuffer(this.Jf);
  15412. this.Jf = a.createBuffer();
  15413. for (var h, m, n = this.lb, s = this.Dg, u = this.Jl, v = this.Sa, g = 0; g < f.width; ++g)
  15414. for (h = 0; h < f.height; ++h) {
  15415. var x = h * f.width + g;
  15416. m = g * this.Bg.x;
  15417. var w = m + this.Bg.x,
  15418. z = h * this.Bg.y,
  15419. B = z + this.Bg.y,
  15420. C = g * (f.height + 1) +
  15421. h,
  15422. D = (g + 1) * (f.height + 1) + h,
  15423. L = (g + 1) * (f.height + 1) + (h + 1),
  15424. O = g * (f.height + 1) + (h + 1);
  15425. n[6 * x] = C;
  15426. n[6 * x + 1] = D;
  15427. n[6 * x + 2] = O;
  15428. n[6 * x + 3] = D;
  15429. n[6 * x + 4] = L;
  15430. n[6 * x + 5] = O;
  15431. var x = [3 * C, 3 * D, 3 * L, 3 * O],
  15432. H = [{
  15433. x: m,
  15434. y: z,
  15435. e: 0
  15436. }, {
  15437. x: w,
  15438. y: z,
  15439. e: 0
  15440. }, {
  15441. x: w,
  15442. y: B,
  15443. e: 0
  15444. }, {
  15445. x: m,
  15446. y: B,
  15447. e: 0
  15448. }],
  15449. C = [2 * C, 2 * D, 2 * L, 2 * O],
  15450. w = [F.d(m, z), F.d(w, z), F.d(w, B), F.d(m, B)];
  15451. for (m = 0; 4 > m; ++m) v[x[m]] = H[m].x, v[x[m] + 1] = H[m].y, v[x[m] + 2] = H[m].e, s[C[m]] = w[m].x / c, s[C[m] + 1] = u ? (e - w[m].y) / d : w[m].y / d
  15452. }
  15453. this.dj = new Float32Array(this.Sa);
  15454. a.bindBuffer(a.ARRAY_BUFFER, this.cd);
  15455. a.bufferData(a.ARRAY_BUFFER, this.Sa,
  15456. a.DYNAMIC_DRAW);
  15457. a.bindBuffer(a.ARRAY_BUFFER, this.Qf);
  15458. a.bufferData(a.ARRAY_BUFFER, this.Dg, a.DYNAMIC_DRAW);
  15459. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Jf);
  15460. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW);
  15461. this.jb = p
  15462. }
  15463. });
  15464. F.Vy.create = function(a, c, d) {
  15465. return new F.Vy(a, c, d)
  15466. };
  15467. F.Xz = F.Zm.extend({
  15468. Dg: q,
  15469. Sa: q,
  15470. dj: q,
  15471. lb: q,
  15472. Qf: q,
  15473. cd: q,
  15474. Jf: q,
  15475. ctor: function(a, c, d) {
  15476. F.Zm.prototype.ctor.call(this);
  15477. this.Jf = this.cd = this.Qf = this.lb = this.dj = this.Sa = this.Dg = q;
  15478. a !== k && this.px(a, c, d)
  15479. },
  15480. uP: function(a) {
  15481. (a.x !== (0 | a.x) || a.y !== (0 | a.y)) && F.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  15482. a = 12 * (this.X.height * a.x + a.y);
  15483. var c = this.Sa;
  15484. return new F.nu(new F.jc(c[a], c[a + 1], c[a + 2]), new F.jc(c[a + 3], c[a + 4], c[a + 5]), new F.jc(c[a + 6], c[a + 7], c[a + 8]), new F.jc(c[a + 9], c[a + 10], c[a + 11]))
  15485. },
  15486. Zf: function(a) {
  15487. (a.x !== (0 |
  15488. a.x) || a.y !== (0 | a.y)) && F.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  15489. a = 12 * (this.X.height * a.x + a.y);
  15490. var c = this.dj;
  15491. return new F.nu(new F.jc(c[a], c[a + 1], c[a + 2]), new F.jc(c[a + 3], c[a + 4], c[a + 5]), new F.jc(c[a + 6], c[a + 7], c[a + 8]), new F.jc(c[a + 9], c[a + 10], c[a + 11]))
  15492. },
  15493. Ye: function(a, c) {
  15494. (a.x !== (0 | a.x) || a.y !== (0 | a.y)) && F.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  15495. var d = 12 * (this.X.height * a.x + a.y),
  15496. e = this.Sa;
  15497. e[d] = c.F.x;
  15498. e[d + 1] = c.F.y;
  15499. e[d + 2] = c.F.e;
  15500. e[d + 3] = c.O.x;
  15501. e[d + 4] = c.O.y;
  15502. e[d + 5] = c.O.e;
  15503. e[d + 6] = c.N.x;
  15504. e[d + 7] = c.N.y;
  15505. e[d + 8] = c.N.e;
  15506. e[d + 9] = c.K.x;
  15507. e[d + 10] = c.K.y;
  15508. e[d + 11] = c.K.e;
  15509. this.jb = p
  15510. },
  15511. SD: function() {
  15512. var a = this.X.width * this.X.height;
  15513. this.Ib.Nc();
  15514. this.Ib.ut();
  15515. var c = F.m,
  15516. d = this.jb;
  15517. F.Jc(F.Md | F.hn);
  15518. c.bindBuffer(c.ARRAY_BUFFER, this.cd);
  15519. d && c.bufferData(c.ARRAY_BUFFER, this.Sa, c.DYNAMIC_DRAW);
  15520. c.vertexAttribPointer(F.qb, 3, c.FLOAT, r, 0, this.Sa);
  15521. c.bindBuffer(c.ARRAY_BUFFER, this.Qf);
  15522. d && c.bufferData(c.ARRAY_BUFFER, this.Dg, c.DYNAMIC_DRAW);
  15523. c.vertexAttribPointer(F.ud, 2, c.FLOAT, r, 0, this.Dg);
  15524. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,
  15525. this.Jf);
  15526. d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW);
  15527. c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0);
  15528. d && (this.jb = r);
  15529. F.Xf()
  15530. },
  15531. HF: function() {
  15532. if (0 < this.li) {
  15533. for (var a = this.Sa, c = this.dj, d = 0; d < a.length; d++) c[d] = a[d];
  15534. --this.li
  15535. }
  15536. },
  15537. Jw: function() {
  15538. var a = this.L.pixelsWidth,
  15539. c = this.L.pixelsHeight,
  15540. d = this.L.P.height,
  15541. e = this.X,
  15542. f = e.width * e.height;
  15543. this.Sa = new Float32Array(12 * f);
  15544. this.Dg = new Float32Array(8 * f);
  15545. this.lb = new Uint16Array(6 * f);
  15546. var g = F.m;
  15547. this.cd && g.deleteBuffer(this.cd);
  15548. this.cd = g.createBuffer();
  15549. this.Qf && g.deleteBuffer(this.Qf);
  15550. this.Qf = g.createBuffer();
  15551. this.Jf && g.deleteBuffer(this.Jf);
  15552. this.Jf = g.createBuffer();
  15553. var h, m, n = 0,
  15554. s = this.Bg,
  15555. u = this.Sa,
  15556. v = this.Dg,
  15557. x = this.Jl;
  15558. for (h = 0; h < e.width; h++)
  15559. for (m = 0; m < e.height; m++) {
  15560. var w = h * s.x,
  15561. z = w + s.x,
  15562. B = m * s.y,
  15563. C = B + s.y;
  15564. u[12 * n] = w;
  15565. u[12 * n + 1] = B;
  15566. u[12 * n + 2] = 0;
  15567. u[12 * n + 3] = z;
  15568. u[12 * n + 4] = B;
  15569. u[12 * n + 5] = 0;
  15570. u[12 * n + 6] = w;
  15571. u[12 * n + 7] = C;
  15572. u[12 * n + 8] = 0;
  15573. u[12 * n + 9] = z;
  15574. u[12 * n + 10] = C;
  15575. u[12 * n + 11] = 0;
  15576. var D = B,
  15577. L = C;
  15578. x && (D = d - B, L = d - C);
  15579. v[8 * n] = w / a;
  15580. v[8 * n + 1] = D / c;
  15581. v[8 * n + 2] = z / a;
  15582. v[8 * n + 3] = D / c;
  15583. v[8 * n + 4] = w / a;
  15584. v[8 * n + 5] = L / c;
  15585. v[8 *
  15586. n + 6] = z / a;
  15587. v[8 * n + 7] = L / c;
  15588. n++
  15589. }
  15590. a = this.lb;
  15591. for (h = 0; h < f; h++) a[6 * h + 0] = 4 * h + 0, a[6 * h + 1] = 4 * h + 1, a[6 * h + 2] = 4 * h + 2, a[6 * h + 3] = 4 * h + 1, a[6 * h + 4] = 4 * h + 2, a[6 * h + 5] = 4 * h + 3;
  15592. this.dj = new Float32Array(this.Sa);
  15593. g.bindBuffer(g.ARRAY_BUFFER, this.cd);
  15594. g.bufferData(g.ARRAY_BUFFER, this.Sa, g.DYNAMIC_DRAW);
  15595. g.bindBuffer(g.ARRAY_BUFFER, this.Qf);
  15596. g.bufferData(g.ARRAY_BUFFER, this.Dg, g.DYNAMIC_DRAW);
  15597. g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Jf);
  15598. g.bufferData(g.ELEMENT_ARRAY_BUFFER, this.lb, g.DYNAMIC_DRAW);
  15599. this.jb = p
  15600. }
  15601. });
  15602. F.Xz.create = function(a, c, d) {
  15603. return new F.Xz(a, c, d)
  15604. };
  15605. F.QQ = F.ma.extend({
  15606. Eu: q,
  15607. fi: q,
  15608. AK: q,
  15609. Nn: q,
  15610. ctor: function() {
  15611. F.NA();
  15612. this.Nn = F.m;
  15613. this.AK = [0, 0, 0, 0];
  15614. this.fi = q;
  15615. this.Eu = this.Nn.createFramebuffer()
  15616. },
  15617. t0: function(a) {
  15618. var c = this.Nn;
  15619. this.fi = c.getParameter(c.FRAMEBUFFER_BINDING);
  15620. c.bindFramebuffer(c.FRAMEBUFFER, this.Eu);
  15621. c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, a.Vd, 0);
  15622. c.checkFramebufferStatus(c.FRAMEBUFFER) != c.FRAMEBUFFER_COMPLETE && F.log("Frame Grabber: could not attach texture to frmaebuffer");
  15623. c.bindFramebuffer(c.FRAMEBUFFER, this.fi)
  15624. },
  15625. aZ: function() {
  15626. var a = this.Nn;
  15627. this.fi = a.getParameter(a.FRAMEBUFFER_BINDING);
  15628. a.bindFramebuffer(a.FRAMEBUFFER, this.Eu);
  15629. this.AK = a.getParameter(a.COLOR_CLEAR_VALUE);
  15630. a.clearColor(0, 0, 0, 0);
  15631. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  15632. },
  15633. HY: function() {
  15634. var a = this.Nn;
  15635. a.bindFramebuffer(a.FRAMEBUFFER, this.fi);
  15636. a.colorMask(p, p, p, p)
  15637. },
  15638. O9: function() {
  15639. this.Nn.deleteFramebuffer(this.Eu)
  15640. }
  15641. });
  15642. F.Sm = -1;
  15643. F.fd = F.ma.extend({
  15644. originalTarget: q,
  15645. target: q,
  15646. tag: F.Sm,
  15647. ctor: function() {
  15648. this.target = this.originalTarget = q;
  15649. this.tag = F.Sm
  15650. },
  15651. copy: function() {
  15652. F.log("copy is deprecated. Please use clone instead.");
  15653. return this.l()
  15654. },
  15655. l: function() {
  15656. var a = new F.fd;
  15657. a.originalTarget = q;
  15658. a.target = q;
  15659. a.tag = this.tag;
  15660. return a
  15661. },
  15662. Hg: E(p),
  15663. A: function(a) {
  15664. this.target = this.originalTarget = a
  15665. },
  15666. stop: function() {
  15667. this.target = q
  15668. },
  15669. step: function() {
  15670. F.log("[Action step]. override me")
  15671. },
  15672. update: function() {
  15673. F.log("[Action update]. override me")
  15674. },
  15675. vca: A("target"),
  15676. $F: y("target"),
  15677. Nba: A("originalTarget"),
  15678. Tia: y("originalTarget"),
  15679. Es: A("tag"),
  15680. oy: y("tag"),
  15681. ay: t(),
  15682. Ei: t()
  15683. });
  15684. F.fd.create = function() {
  15685. return new F.fd
  15686. };
  15687. F.Li = F.fd.extend({
  15688. p: 0,
  15689. ctor: function() {
  15690. F.fd.prototype.ctor.call(this);
  15691. this.p = 0
  15692. },
  15693. Qo: function() {
  15694. return this.p * (this.dc || 1)
  15695. },
  15696. $f: y("p"),
  15697. reverse: function() {
  15698. F.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  15699. return q
  15700. },
  15701. l: function() {
  15702. return new F.Li
  15703. }
  15704. });
  15705. F.wq = F.fd.extend({
  15706. le: 0,
  15707. mb: q,
  15708. ctor: function(a, c) {
  15709. F.fd.prototype.ctor.call(this);
  15710. this.le = 0;
  15711. this.mb = q;
  15712. a && this.ba(a, c)
  15713. },
  15714. $w: A("le"),
  15715. We: y("le"),
  15716. ba: function(a, c) {
  15717. a || b("cc.Speed.initWithAction(): action must be non nil");
  15718. this.mb = a;
  15719. this.le = c;
  15720. return p
  15721. },
  15722. l: function() {
  15723. var a = new F.wq;
  15724. a.ba(this.mb.l(), this.le);
  15725. return a
  15726. },
  15727. A: function(a) {
  15728. F.fd.prototype.A.call(this, a);
  15729. this.mb.A(a)
  15730. },
  15731. stop: function() {
  15732. this.mb.stop();
  15733. F.fd.prototype.stop.call(this)
  15734. },
  15735. step: function(a) {
  15736. this.mb.step(a * this.le)
  15737. },
  15738. Hg: function() {
  15739. return this.mb.Hg()
  15740. },
  15741. reverse: function() {
  15742. return F.wq.create(this.mb.reverse(), this.le)
  15743. },
  15744. RO: function(a) {
  15745. this.mb != a && (this.mb = a)
  15746. },
  15747. DE: A("mb")
  15748. });
  15749. F.wq.create = function(a, c) {
  15750. return new F.wq(a, c)
  15751. };
  15752. F.gu = F.fd.extend({
  15753. Jn: q,
  15754. qn: r,
  15755. Tu: r,
  15756. xv: q,
  15757. lr: q,
  15758. Dm: 0,
  15759. Jm: 0,
  15760. Om: 0,
  15761. lm: 0,
  15762. MD: q,
  15763. ctor: function(a, c) {
  15764. F.fd.prototype.ctor.call(this);
  15765. this.Jn = q;
  15766. this.Tu = this.qn = r;
  15767. this.lr = this.xv = q;
  15768. this.lm = this.Om = this.Jm = this.Dm = 0;
  15769. this.MD = F.rect(0, 0, 0, 0);
  15770. a && (c ? this.Wo(a, c) : this.Wo(a))
  15771. },
  15772. l: function() {
  15773. var a = new F.gu,
  15774. c = this.MD;
  15775. a.Wo(this.Jn, new F.wH(c.x, c.y, c.width, c.height));
  15776. return a
  15777. },
  15778. oda: A("qn"),
  15779. Tha: y("qn"),
  15780. Wo: function(a, c) {
  15781. a || b("cc.Follow.initWithAction(): followedNode must be non nil");
  15782. c = c || F.rect(0, 0, 0, 0);
  15783. this.Jn = a;
  15784. this.MD = c;
  15785. this.qn = !F.wC(c);
  15786. this.Tu = r;
  15787. var d = F.I.T;
  15788. this.lr = F.d(d.width, d.height);
  15789. this.xv = F.Ci(this.lr, 0.5);
  15790. this.qn && (this.Dm = -(c.x + c.width - this.lr.x), this.Jm = -c.x, this.Om = -c.y, this.lm = -(c.y + c.height - this.lr.y), this.Jm < this.Dm && (this.Jm = this.Dm = (this.Dm + this.Jm) / 2), this.Om < this.lm && (this.Om = this.lm = (this.Om + this.lm) / 2), this.Om == this.lm && this.Dm == this.Jm && (this.Tu = p));
  15791. return p
  15792. },
  15793. step: function() {
  15794. var a = this.Jn.x,
  15795. c = this.Jn.y,
  15796. a = this.xv.x - a,
  15797. c = this.xv.y - c;
  15798. this.qn ? this.Tu || this.target.G(F.Vc(a, this.Dm, this.Jm), F.Vc(c, this.lm,
  15799. this.Om)) : this.target.G(a, c)
  15800. },
  15801. Hg: function() {
  15802. return !this.Jn.running
  15803. },
  15804. stop: function() {
  15805. this.target = q;
  15806. F.fd.prototype.stop.call(this)
  15807. }
  15808. });
  15809. F.gu.create = function(a, c) {
  15810. return new F.gu(a, c)
  15811. };
  15812. F.z = F.Li.extend({
  15813. kb: 0,
  15814. sv: r,
  15815. vg: q,
  15816. dc: 1,
  15817. Nr: r,
  15818. fo: r,
  15819. le: 1,
  15820. Tr: r,
  15821. ctor: function(a) {
  15822. this.dc = this.le = 1;
  15823. this.Nr = r;
  15824. this.MAX_VALUE = 2;
  15825. this.Tr = this.fo = r;
  15826. F.Li.prototype.ctor.call(this);
  15827. a !== k && this.f(a)
  15828. },
  15829. Qaa: A("kb"),
  15830. f: function(a) {
  15831. this.p = 0 === a ? F.eu : a;
  15832. this.kb = 0;
  15833. return this.sv = p
  15834. },
  15835. Hg: function() {
  15836. return this.kb >= this.p
  15837. },
  15838. ya: function(a) {
  15839. a.Nr = this.Nr;
  15840. a.le = this.le;
  15841. a.dc = this.dc;
  15842. a.vg = this.vg;
  15843. a.Tr = this.Tr;
  15844. a.fo = this.fo
  15845. },
  15846. je: function(a) {
  15847. if (this.vg) {
  15848. a.vg = [];
  15849. for (var c = 0; c < this.vg.length; c++) a.vg.push(this.vg[c].reverse())
  15850. }
  15851. },
  15852. l: function() {
  15853. var a =
  15854. new F.z(this.p);
  15855. this.ya(a);
  15856. return a
  15857. },
  15858. Ta: function(a) {
  15859. this.vg ? this.vg.length = 0 : this.vg = [];
  15860. for (var c = 0; c < arguments.length; c++) this.vg.push(arguments[c]);
  15861. return this
  15862. },
  15863. gd: function(a) {
  15864. var c = this.vg;
  15865. if (!c || 0 === c.length) return a;
  15866. for (var d = 0, e = c.length; d < e; d++) a = c[d].Ta(a);
  15867. return a
  15868. },
  15869. step: function(a) {
  15870. this.sv ? (this.sv = r, this.kb = 0) : this.kb += a;
  15871. a = this.kb / (1.192092896E-7 < this.p ? this.p : 1.192092896E-7);
  15872. a = 1 > a ? a : 1;
  15873. this.update(0 < a ? a : 0);
  15874. this.fo && (1 < this.dc && this.Hg()) && (this.Nr || this.dc--, this.A(this.target), this.step(this.kb -
  15875. this.p))
  15876. },
  15877. A: function(a) {
  15878. F.fd.prototype.A.call(this, a);
  15879. this.kb = 0;
  15880. this.sv = p
  15881. },
  15882. reverse: function() {
  15883. F.log("cc.IntervalAction: reverse not implemented.");
  15884. return q
  15885. },
  15886. Km: function() {
  15887. F.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  15888. },
  15889. vm: function() {
  15890. F.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  15891. return 0
  15892. },
  15893. speed: function(a) {
  15894. if (0 >= a) return F.log("The speed parameter error"), this;
  15895. this.Tr = p;
  15896. this.le *= a;
  15897. return this
  15898. },
  15899. $w: A("le"),
  15900. We: function(a) {
  15901. this.le =
  15902. a;
  15903. return this
  15904. },
  15905. repeat: function(a) {
  15906. a = Math.round(a);
  15907. if (isNaN(a) || 1 > a) return F.log("The repeat parameter error"), this;
  15908. this.fo = p;
  15909. this.dc *= a;
  15910. return this
  15911. },
  15912. B2: function() {
  15913. this.fo = p;
  15914. this.dc = this.MAX_VALUE;
  15915. this.Nr = p;
  15916. return this
  15917. }
  15918. });
  15919. F.z.create = function(a) {
  15920. return new F.z(a)
  15921. };
  15922. F.Ha = F.z.extend({
  15923. Vh: q,
  15924. uL: q,
  15925. xr: 0,
  15926. ctor: function(a) {
  15927. F.z.prototype.ctor.call(this);
  15928. this.Vh = [];
  15929. var c = a instanceof Array ? a : arguments,
  15930. d = c.length - 1;
  15931. 0 <= d && c[d] == q && F.log("parameters should not be ending with null in Javascript");
  15932. if (0 <= d) {
  15933. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = F.Ha.Ri(e, c[f]));
  15934. this.zm(e, c[d])
  15935. }
  15936. },
  15937. zm: function(a, c) {
  15938. (!a || !c) && b("cc.Sequence.initWithTwoActions(): arguments must all be non nil");
  15939. this.f(a.p + c.p);
  15940. this.Vh[0] = a;
  15941. this.Vh[1] = c;
  15942. return p
  15943. },
  15944. l: function() {
  15945. var a = new F.Ha;
  15946. this.ya(a);
  15947. a.zm(this.Vh[0].l(),
  15948. this.Vh[1].l());
  15949. return a
  15950. },
  15951. A: function(a) {
  15952. F.z.prototype.A.call(this, a);
  15953. this.uL = this.Vh[0].p / this.p;
  15954. this.xr = -1
  15955. },
  15956. stop: function() {
  15957. -1 !== this.xr && this.Vh[this.xr].stop();
  15958. F.fd.prototype.stop.call(this)
  15959. },
  15960. update: function(a) {
  15961. a = this.gd(a);
  15962. var c = 0,
  15963. d = this.uL,
  15964. e = this.Vh,
  15965. f = this.xr;
  15966. a < d ? (a = 0 !== d ? a / d : 1, 0 === c && 1 === f && (e[1].update(0), e[1].stop())) : (c = 1, a = 1 === d ? 1 : (a - d) / (1 - d), -1 === f && (e[0].A(this.target), e[0].update(1), e[0].stop()), f || (e[0].update(1), e[0].stop()));
  15967. f === c && e[c].Hg() || (f !== c && e[c].A(this.target), e[c].update(a),
  15968. this.xr = c)
  15969. },
  15970. reverse: function() {
  15971. var a = F.Ha.Ri(this.Vh[1].reverse(), this.Vh[0].reverse());
  15972. this.ya(a);
  15973. this.je(a);
  15974. return a
  15975. }
  15976. });
  15977. F.Ha.create = function(a) {
  15978. var c = a instanceof Array ? a : arguments;
  15979. 0 < c.length && c[c.length - 1] == q && F.log("parameters should not be ending with null in Javascript");
  15980. for (var d = c[0], e = 1; e < c.length; e++) c[e] && (d = F.Ha.Ri(d, c[e]));
  15981. return d
  15982. };
  15983. F.Ha.Ri = function(a, c) {
  15984. var d = new F.Ha;
  15985. d.zm(a, c);
  15986. return d
  15987. };
  15988. F.qq = F.z.extend({
  15989. dc: 0,
  15990. Lk: 0,
  15991. UB: 0,
  15992. JI: r,
  15993. mb: q,
  15994. ctor: function(a, c) {
  15995. F.z.prototype.ctor.call(this);
  15996. c !== k && this.ba(a, c)
  15997. },
  15998. ba: function(a, c) {
  15999. return this.f(a.p * c) ? (this.dc = c, this.mb = a, a instanceof F.ue && (this.JI = p, this.dc -= 1), this.Lk = 0, p) : r
  16000. },
  16001. l: function() {
  16002. var a = new F.qq;
  16003. this.ya(a);
  16004. a.ba(this.mb.l(), this.dc);
  16005. return a
  16006. },
  16007. A: function(a) {
  16008. this.Lk = 0;
  16009. this.UB = this.mb.p / this.p;
  16010. F.z.prototype.A.call(this, a);
  16011. this.mb.A(a)
  16012. },
  16013. stop: function() {
  16014. this.mb.stop();
  16015. F.fd.prototype.stop.call(this)
  16016. },
  16017. update: function(a) {
  16018. a = this.gd(a);
  16019. var c = this.mb,
  16020. d = this.p,
  16021. e = this.dc,
  16022. f = this.UB;
  16023. if (a >= f) {
  16024. for (; a > f && this.Lk < e;) c.update(1), this.Lk++, c.stop(), c.A(this.target), this.UB = f += c.p / d;
  16025. 1 <= a && this.Lk < e && this.Lk++;
  16026. this.JI || (this.Lk === e ? (c.update(1), c.stop()) : c.update(a - (f - c.p / d)))
  16027. } else c.update(a * e % 1)
  16028. },
  16029. Hg: function() {
  16030. return this.Lk == this.dc
  16031. },
  16032. reverse: function() {
  16033. var a = F.qq.create(this.mb.reverse(), this.dc);
  16034. this.ya(a);
  16035. this.je(a);
  16036. return a
  16037. },
  16038. RO: function(a) {
  16039. this.mb != a && (this.mb = a)
  16040. },
  16041. DE: A("mb")
  16042. });
  16043. F.qq.create = function(a, c) {
  16044. return new F.qq(a, c)
  16045. };
  16046. F.rq = F.z.extend({
  16047. mb: q,
  16048. ctor: function(a) {
  16049. F.z.prototype.ctor.call(this);
  16050. this.mb = q;
  16051. a && this.ba(a)
  16052. },
  16053. ba: function(a) {
  16054. a || b("cc.RepeatForever.initWithAction(): action must be non null");
  16055. this.mb = a;
  16056. return p
  16057. },
  16058. l: function() {
  16059. var a = new F.rq;
  16060. this.ya(a);
  16061. a.ba(this.mb.l());
  16062. return a
  16063. },
  16064. A: function(a) {
  16065. F.z.prototype.A.call(this, a);
  16066. this.mb.A(a)
  16067. },
  16068. step: function(a) {
  16069. var c = this.mb;
  16070. c.step(a);
  16071. c.Hg() && (c.A(this.target), c.step(c.kb - c.p))
  16072. },
  16073. Hg: E(r),
  16074. reverse: function() {
  16075. var a = F.rq.create(this.mb.reverse());
  16076. this.ya(a);
  16077. this.je(a);
  16078. return a
  16079. },
  16080. RO: function(a) {
  16081. this.mb != a && (this.mb = a)
  16082. },
  16083. DE: A("mb")
  16084. });
  16085. F.rq.create = function(a) {
  16086. return new F.rq(a)
  16087. };
  16088. F.xe = F.z.extend({
  16089. cj: q,
  16090. uj: q,
  16091. ctor: function(a) {
  16092. F.z.prototype.ctor.call(this);
  16093. this.uj = this.cj = q;
  16094. var c = a instanceof Array ? a : arguments,
  16095. d = c.length - 1;
  16096. 0 <= d && c[d] == q && F.log("parameters should not be ending with null in Javascript");
  16097. if (0 <= d) {
  16098. for (var e = c[0], f = 1; f < d; f++) c[f] && (e = F.xe.Ri(e, c[f]));
  16099. this.zm(e, c[d])
  16100. }
  16101. },
  16102. zm: function(a, c) {
  16103. (!a || !c) && b("cc.Spawn.initWithTwoActions(): arguments must all be non null");
  16104. var d = r,
  16105. e = a.p,
  16106. f = c.p;
  16107. this.f(Math.max(e, f)) && (this.cj = a, this.uj = c, e > f ? this.uj = F.Ha.Ri(c, F.Oc.create(e - f)) : e <
  16108. f && (this.cj = F.Ha.Ri(a, F.Oc.create(f - e))), d = p);
  16109. return d
  16110. },
  16111. l: function() {
  16112. var a = new F.xe;
  16113. this.ya(a);
  16114. a.zm(this.cj.l(), this.uj.l());
  16115. return a
  16116. },
  16117. A: function(a) {
  16118. F.z.prototype.A.call(this, a);
  16119. this.cj.A(a);
  16120. this.uj.A(a)
  16121. },
  16122. stop: function() {
  16123. this.cj.stop();
  16124. this.uj.stop();
  16125. F.fd.prototype.stop.call(this)
  16126. },
  16127. update: function(a) {
  16128. a = this.gd(a);
  16129. this.cj && this.cj.update(a);
  16130. this.uj && this.uj.update(a)
  16131. },
  16132. reverse: function() {
  16133. var a = F.xe.Ri(this.cj.reverse(), this.uj.reverse());
  16134. this.ya(a);
  16135. this.je(a);
  16136. return a
  16137. }
  16138. });
  16139. F.xe.create = function(a) {
  16140. var c = a instanceof Array ? a : arguments;
  16141. 0 < c.length && c[c.length - 1] == q && F.log("parameters should not be ending with null in Javascript");
  16142. for (var d = c[0], e = 1; e < c.length; e++) c[e] != q && (d = F.xe.Ri(d, c[e]));
  16143. return d
  16144. };
  16145. F.xe.Ri = function(a, c) {
  16146. var d = new F.xe;
  16147. d.zm(a, c);
  16148. return d
  16149. };
  16150. F.ou = F.z.extend({
  16151. iv: 0,
  16152. Ur: 0,
  16153. dJ: 0,
  16154. aB: 0,
  16155. lo: 0,
  16156. eJ: 0,
  16157. ctor: function(a, c, d) {
  16158. F.z.prototype.ctor.call(this);
  16159. c !== k && this.f(a, c, d)
  16160. },
  16161. f: function(a, c, d) {
  16162. return F.z.prototype.f.call(this, a) ? (this.iv = c || 0, this.aB = d || this.iv, p) : r
  16163. },
  16164. l: function() {
  16165. var a = new F.ou;
  16166. this.ya(a);
  16167. a.f(this.p, this.iv, this.aB);
  16168. return a
  16169. },
  16170. A: function(a) {
  16171. F.z.prototype.A.call(this, a);
  16172. var c = a.rotationX % 360,
  16173. d = this.iv - c;
  16174. 180 < d && (d -= 360); - 180 > d && (d += 360);
  16175. this.Ur = c;
  16176. this.dJ = d;
  16177. this.lo = a.rotationY % 360;
  16178. a = this.aB - this.lo;
  16179. 180 < a && (a -= 360); - 180 > a && (a += 360);
  16180. this.eJ =
  16181. a
  16182. },
  16183. reverse: function() {
  16184. F.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  16185. },
  16186. update: function(a) {
  16187. a = this.gd(a);
  16188. this.target && (this.target.rotationX = this.Ur + this.dJ * a, this.target.rotationY = this.lo + this.eJ * a)
  16189. }
  16190. });
  16191. F.ou.create = function(a, c, d) {
  16192. return new F.ou(a, c, d)
  16193. };
  16194. F.fn = F.z.extend({
  16195. Yg: 0,
  16196. Ur: 0,
  16197. Ou: 0,
  16198. lo: 0,
  16199. ctor: function(a, c, d) {
  16200. F.z.prototype.ctor.call(this);
  16201. c !== k && this.f(a, c, d)
  16202. },
  16203. f: function(a, c, d) {
  16204. return F.z.prototype.f.call(this, a) ? (this.Yg = c || 0, this.Ou = d || this.Yg, p) : r
  16205. },
  16206. l: function() {
  16207. var a = new F.fn;
  16208. this.ya(a);
  16209. a.f(this.p, this.Yg, this.Ou);
  16210. return a
  16211. },
  16212. A: function(a) {
  16213. F.z.prototype.A.call(this, a);
  16214. this.Ur = a.rotationX;
  16215. this.lo = a.rotationY
  16216. },
  16217. update: function(a) {
  16218. a = this.gd(a);
  16219. this.target && (this.target.rotationX = this.Ur + this.Yg * a, this.target.rotationY = this.lo + this.Ou * a)
  16220. },
  16221. reverse: function() {
  16222. var a =
  16223. F.fn.create(this.p, -this.Yg, -this.Ou);
  16224. this.ya(a);
  16225. this.je(a);
  16226. return a
  16227. }
  16228. });
  16229. F.fn.create = function(a, c, d) {
  16230. var e = new F.fn;
  16231. e.f(a, c, d);
  16232. return e
  16233. };
  16234. F.wf = F.z.extend({
  16235. ii: q,
  16236. Fc: q,
  16237. Tc: q,
  16238. ctor: function(a, c, d) {
  16239. F.z.prototype.ctor.call(this);
  16240. this.ii = F.d(0, 0);
  16241. this.Fc = F.d(0, 0);
  16242. this.Tc = F.d(0, 0);
  16243. c !== k && this.f(a, c, d)
  16244. },
  16245. f: function(a, c, d) {
  16246. return F.z.prototype.f.call(this, a) ? (c.x !== k && (d = c.y, c = c.x), this.ii.x = c, this.ii.y = d, p) : r
  16247. },
  16248. l: function() {
  16249. var a = new F.wf;
  16250. this.ya(a);
  16251. a.f(this.p, this.ii);
  16252. return a
  16253. },
  16254. A: function(a) {
  16255. F.z.prototype.A.call(this, a);
  16256. var c = a.Re();
  16257. a = a.Gg();
  16258. this.Tc.x = c;
  16259. this.Tc.y = a;
  16260. this.Fc.x = c;
  16261. this.Fc.y = a
  16262. },
  16263. update: function(a) {
  16264. a = this.gd(a);
  16265. if (this.target) {
  16266. var c =
  16267. this.ii.x * a;
  16268. a *= this.ii.y;
  16269. var d = this.Fc;
  16270. if (F.Lt) {
  16271. var e = this.target.Gg(),
  16272. f = this.Tc;
  16273. d.x = d.x + this.target.Re() - f.x;
  16274. d.y = d.y + e - f.y;
  16275. c += d.x;
  16276. a += d.y;
  16277. f.x = c;
  16278. f.y = a;
  16279. this.target.G(c, a)
  16280. } else this.target.G(d.x + c, d.y + a)
  16281. }
  16282. },
  16283. reverse: function() {
  16284. var a = F.wf.create(this.p, F.d(-this.ii.x, -this.ii.y));
  16285. this.ya(a);
  16286. this.je(a);
  16287. return a
  16288. }
  16289. });
  16290. F.wf.create = function(a, c, d) {
  16291. return new F.wf(a, c, d)
  16292. };
  16293. F.jq = F.wf.extend({
  16294. Gf: q,
  16295. ctor: function(a, c, d) {
  16296. F.wf.prototype.ctor.call(this);
  16297. this.Gf = F.d(0, 0);
  16298. c !== k && this.f(a, c, d)
  16299. },
  16300. f: function(a, c, d) {
  16301. return F.wf.prototype.f.call(this, a, c, d) ? (c.x !== k && (d = c.y, c = c.x), this.Gf.x = c, this.Gf.y = d, p) : r
  16302. },
  16303. l: function() {
  16304. var a = new F.jq;
  16305. this.ya(a);
  16306. a.f(this.p, this.Gf);
  16307. return a
  16308. },
  16309. A: function(a) {
  16310. F.wf.prototype.A.call(this, a);
  16311. this.ii.x = this.Gf.x - a.Re();
  16312. this.ii.y = this.Gf.y - a.Gg()
  16313. }
  16314. });
  16315. F.jq.create = function(a, c, d) {
  16316. return new F.jq(a, c, d)
  16317. };
  16318. F.Sj = F.z.extend({
  16319. ph: 0,
  16320. qh: 0,
  16321. kw: 0,
  16322. lw: 0,
  16323. lv: 0,
  16324. mv: 0,
  16325. cf: 0,
  16326. df: 0,
  16327. ctor: function(a, c, d) {
  16328. F.z.prototype.ctor.call(this);
  16329. d !== k && this.f(a, c, d)
  16330. },
  16331. f: function(a, c, d) {
  16332. var e = r;
  16333. F.z.prototype.f.call(this, a) && (this.lv = c, this.mv = d, e = p);
  16334. return e
  16335. },
  16336. l: function() {
  16337. var a = new F.Sj;
  16338. this.ya(a);
  16339. a.f(this.p, this.lv, this.mv);
  16340. return a
  16341. },
  16342. A: function(a) {
  16343. F.z.prototype.A.call(this, a);
  16344. this.kw = a.skewX % 180;
  16345. this.cf = this.lv - this.kw;
  16346. 180 < this.cf && (this.cf -= 360); - 180 > this.cf && (this.cf += 360);
  16347. this.lw = a.skewY % 360;
  16348. this.df = this.mv - this.lw;
  16349. 180 < this.df && (this.df -=
  16350. 360); - 180 > this.df && (this.df += 360)
  16351. },
  16352. update: function(a) {
  16353. a = this.gd(a);
  16354. this.target.skewX = this.kw + this.cf * a;
  16355. this.target.skewY = this.lw + this.df * a
  16356. }
  16357. });
  16358. F.Sj.create = function(a, c, d) {
  16359. return new F.Sj(a, c, d)
  16360. };
  16361. F.vq = F.Sj.extend({
  16362. ctor: function(a, c, d) {
  16363. F.Sj.prototype.ctor.call(this);
  16364. d !== k && this.f(a, c, d)
  16365. },
  16366. f: function(a, c, d) {
  16367. var e = r;
  16368. F.Sj.prototype.f.call(this, a, c, d) && (this.ph = c, this.qh = d, e = p);
  16369. return e
  16370. },
  16371. l: function() {
  16372. var a = new F.vq;
  16373. this.ya(a);
  16374. a.f(this.p, this.ph, this.qh);
  16375. return a
  16376. },
  16377. A: function(a) {
  16378. F.Sj.prototype.A.call(this, a);
  16379. this.cf = this.ph;
  16380. this.df = this.qh;
  16381. this.lv = this.kw + this.cf;
  16382. this.mv = this.lw + this.df
  16383. },
  16384. reverse: function() {
  16385. var a = F.vq.create(this.p, -this.ph, -this.qh);
  16386. this.ya(a);
  16387. this.je(a);
  16388. return a
  16389. }
  16390. });
  16391. F.vq.create = function(a, c, d) {
  16392. var e = new F.vq;
  16393. e && e.f(a, c, d);
  16394. return e
  16395. };
  16396. F.Oh = F.z.extend({
  16397. Fc: q,
  16398. Zh: q,
  16399. sr: 0,
  16400. aj: 0,
  16401. Tc: q,
  16402. ctor: function(a, c, d, e, f) {
  16403. F.z.prototype.ctor.call(this);
  16404. this.Fc = F.d(0, 0);
  16405. this.Tc = F.d(0, 0);
  16406. this.Zh = F.d(0, 0);
  16407. e !== k && this.f(a, c, d, e, f)
  16408. },
  16409. f: function(a, c, d, e, f) {
  16410. return F.z.prototype.f.call(this, a) ? (f === k && (f = e, e = d, d = c.y, c = c.x), this.Zh.x = c, this.Zh.y = d, this.sr = e, this.aj = f, p) : r
  16411. },
  16412. l: function() {
  16413. var a = new F.Oh;
  16414. this.ya(a);
  16415. a.f(this.p, this.Zh, this.sr, this.aj);
  16416. return a
  16417. },
  16418. A: function(a) {
  16419. F.z.prototype.A.call(this, a);
  16420. var c = a.Re();
  16421. a = a.Gg();
  16422. this.Tc.x = c;
  16423. this.Tc.y = a;
  16424. this.Fc.x = c;
  16425. this.Fc.y =
  16426. a
  16427. },
  16428. update: function(a) {
  16429. a = this.gd(a);
  16430. if (this.target) {
  16431. var c = a * this.aj % 1,
  16432. c = 4 * this.sr * c * (1 - c),
  16433. c = c + this.Zh.y * a;
  16434. a *= this.Zh.x;
  16435. var d = this.Fc;
  16436. if (F.Lt) {
  16437. var e = this.target.Gg(),
  16438. f = this.Tc;
  16439. d.x = d.x + this.target.Re() - f.x;
  16440. d.y = d.y + e - f.y;
  16441. a += d.x;
  16442. c += d.y;
  16443. f.x = a;
  16444. f.y = c;
  16445. this.target.G(a, c)
  16446. } else this.target.G(d.x + a, d.y + c)
  16447. }
  16448. },
  16449. reverse: function() {
  16450. var a = F.Oh.create(this.p, F.d(-this.Zh.x, -this.Zh.y), this.sr, this.aj);
  16451. this.ya(a);
  16452. this.je(a);
  16453. return a
  16454. }
  16455. });
  16456. F.Oh.create = function(a, c, d, e, f) {
  16457. return new F.Oh(a, c, d, e, f)
  16458. };
  16459. F.hu = F.Oh.extend({
  16460. Gf: q,
  16461. ctor: function(a, c, d, e, f) {
  16462. F.Oh.prototype.ctor.call(this);
  16463. this.Gf = F.d(0, 0);
  16464. e !== k && this.f(a, c, d, e, f)
  16465. },
  16466. f: function(a, c, d, e, f) {
  16467. return F.Oh.prototype.f.call(this, a, c, d, e, f) ? (f === k && (d = c.y, c = c.x), this.Gf.x = c, this.Gf.y = d, p) : r
  16468. },
  16469. A: function(a) {
  16470. F.Oh.prototype.A.call(this, a);
  16471. this.Zh.x = this.Gf.x - this.Fc.x;
  16472. this.Zh.y = this.Gf.y - this.Fc.y
  16473. },
  16474. l: function() {
  16475. var a = new F.hu;
  16476. this.ya(a);
  16477. a.f(this.p, this.Gf, this.sr, this.aj);
  16478. return a
  16479. }
  16480. });
  16481. F.hu.create = function(a, c, d, e, f) {
  16482. return new F.hu(a, c, d, e, f)
  16483. };
  16484. F.YL = function(a, c, d, e) {
  16485. return 0 * Math.pow(1 - e, 3) + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d
  16486. };
  16487. F.Mj = F.z.extend({
  16488. Df: q,
  16489. Fc: q,
  16490. Tc: q,
  16491. ctor: function(a, c) {
  16492. F.z.prototype.ctor.call(this);
  16493. this.Df = [];
  16494. this.Fc = F.d(0, 0);
  16495. this.Tc = F.d(0, 0);
  16496. c && this.f(a, c)
  16497. },
  16498. f: function(a, c) {
  16499. return F.z.prototype.f.call(this, a) ? (this.Df = c, p) : r
  16500. },
  16501. l: function() {
  16502. var a = new F.Mj;
  16503. this.ya(a);
  16504. for (var c = [], d = 0; d < this.Df.length; d++) {
  16505. var e = this.Df[d];
  16506. c.push(F.d(e.x, e.y))
  16507. }
  16508. a.f(this.p, c);
  16509. return a
  16510. },
  16511. A: function(a) {
  16512. F.z.prototype.A.call(this, a);
  16513. var c = a.Re();
  16514. a = a.Gg();
  16515. this.Tc.x = c;
  16516. this.Tc.y = a;
  16517. this.Fc.x = c;
  16518. this.Fc.y = a
  16519. },
  16520. update: function(a) {
  16521. a = this.gd(a);
  16522. if (this.target) {
  16523. var c =
  16524. this.Df,
  16525. d = F.YL(c[0].x, c[1].x, c[2].x, a);
  16526. a = F.YL(c[0].y, c[1].y, c[2].y, a);
  16527. c = this.Fc;
  16528. if (F.Lt) {
  16529. var e = this.target.Gg(),
  16530. f = this.Tc;
  16531. c.x = c.x + this.target.Re() - f.x;
  16532. c.y = c.y + e - f.y;
  16533. d += c.x;
  16534. a += c.y;
  16535. f.x = d;
  16536. f.y = a;
  16537. this.target.G(d, a)
  16538. } else this.target.G(c.x + d, c.y + a)
  16539. }
  16540. },
  16541. reverse: function() {
  16542. var a = this.Df,
  16543. a = [F.Dj(a[1], F.vF(a[2])), F.Dj(a[0], F.vF(a[2])), F.vF(a[2])],
  16544. a = F.Mj.create(this.p, a);
  16545. this.ya(a);
  16546. this.je(a);
  16547. return a
  16548. }
  16549. });
  16550. F.Mj.create = function(a, c) {
  16551. return new F.Mj(a, c)
  16552. };
  16553. F.Ht = F.Mj.extend({
  16554. vw: q,
  16555. ctor: function(a, c) {
  16556. F.Mj.prototype.ctor.call(this);
  16557. this.vw = [];
  16558. c && this.f(a, c)
  16559. },
  16560. f: function(a, c) {
  16561. return F.z.prototype.f.call(this, a) ? (this.vw = c, p) : r
  16562. },
  16563. l: function() {
  16564. var a = new F.Ht;
  16565. this.ya(a);
  16566. a.f(this.p, this.vw);
  16567. return a
  16568. },
  16569. A: function(a) {
  16570. F.Mj.prototype.A.call(this, a);
  16571. a = this.Fc;
  16572. var c = this.vw,
  16573. d = this.Df;
  16574. d[0] = F.Gd(c[0], a);
  16575. d[1] = F.Gd(c[1], a);
  16576. d[2] = F.Gd(c[2], a)
  16577. }
  16578. });
  16579. F.Ht.create = function(a, c) {
  16580. return new F.Ht(a, c)
  16581. };
  16582. F.sd = F.z.extend({
  16583. qa: 1,
  16584. Ra: 1,
  16585. Wr: 1,
  16586. Xr: 1,
  16587. Fn: 0,
  16588. Gn: 0,
  16589. cf: 0,
  16590. df: 0,
  16591. ctor: function(a, c, d) {
  16592. F.z.prototype.ctor.call(this);
  16593. c !== k && this.f(a, c, d)
  16594. },
  16595. f: function(a, c, d) {
  16596. return F.z.prototype.f.call(this, a) ? (this.Fn = c, this.Gn = d != q ? d : c, p) : r
  16597. },
  16598. l: function() {
  16599. var a = new F.sd;
  16600. this.ya(a);
  16601. a.f(this.p, this.Fn, this.Gn);
  16602. return a
  16603. },
  16604. A: function(a) {
  16605. F.z.prototype.A.call(this, a);
  16606. this.Wr = a.scaleX;
  16607. this.Xr = a.scaleY;
  16608. this.cf = this.Fn - this.Wr;
  16609. this.df = this.Gn - this.Xr
  16610. },
  16611. update: function(a) {
  16612. a = this.gd(a);
  16613. this.target && (this.target.scaleX = this.Wr + this.cf *
  16614. a, this.target.scaleY = this.Xr + this.df * a)
  16615. }
  16616. });
  16617. F.sd.create = function(a, c, d) {
  16618. var e = new F.sd;
  16619. e.f(a, c, d);
  16620. return e
  16621. };
  16622. F.gn = F.sd.extend({
  16623. A: function(a) {
  16624. F.sd.prototype.A.call(this, a);
  16625. this.cf = this.Wr * this.Fn - this.Wr;
  16626. this.df = this.Xr * this.Gn - this.Xr
  16627. },
  16628. reverse: function() {
  16629. var a = F.gn.create(this.p, 1 / this.Fn, 1 / this.Gn);
  16630. this.ya(a);
  16631. this.je(a);
  16632. return a
  16633. },
  16634. l: function() {
  16635. var a = new F.gn;
  16636. this.ya(a);
  16637. a.f(this.p, this.Fn, this.Gn);
  16638. return a
  16639. }
  16640. });
  16641. F.gn.create = function(a, c, d) {
  16642. return new F.gn(a, c, d)
  16643. };
  16644. F.Ip = F.z.extend({
  16645. dc: 0,
  16646. DK: r,
  16647. ctor: function(a, c) {
  16648. F.z.prototype.ctor.call(this);
  16649. c !== k && this.f(a, c)
  16650. },
  16651. f: function(a, c) {
  16652. return F.z.prototype.f.call(this, a) ? (this.dc = c, p) : r
  16653. },
  16654. l: function() {
  16655. var a = new F.Ip;
  16656. this.ya(a);
  16657. a.f(this.p, this.dc);
  16658. return a
  16659. },
  16660. update: function(a) {
  16661. a = this.gd(a);
  16662. if (this.target && !this.Hg()) {
  16663. var c = 1 / this.dc;
  16664. this.target.visible = a % c > c / 2
  16665. }
  16666. },
  16667. A: function(a) {
  16668. F.z.prototype.A.call(this, a);
  16669. this.DK = a.visible
  16670. },
  16671. stop: function() {
  16672. this.target.visible = this.DK;
  16673. F.z.prototype.stop.call(this)
  16674. },
  16675. reverse: function() {
  16676. var a =
  16677. F.Ip.create(this.p, this.dc);
  16678. this.ya(a);
  16679. this.je(a);
  16680. return a
  16681. }
  16682. });
  16683. F.Ip.create = function(a, c) {
  16684. var d = new F.Ip;
  16685. d.f(a, c);
  16686. return d
  16687. };
  16688. F.Ki = F.z.extend({
  16689. uo: 0,
  16690. vv: 0,
  16691. ctor: function(a, c) {
  16692. F.z.prototype.ctor.call(this);
  16693. c !== k && this.f(a, c)
  16694. },
  16695. f: function(a, c) {
  16696. return F.z.prototype.f.call(this, a) ? (this.uo = c, p) : r
  16697. },
  16698. l: function() {
  16699. var a = new F.Ki;
  16700. this.ya(a);
  16701. a.f(this.p, this.uo);
  16702. return a
  16703. },
  16704. update: function(a) {
  16705. a = this.gd(a);
  16706. if (this.target.wb) {
  16707. var c = this.vv !== k ? this.vv : 255;
  16708. this.target.opacity = c + (this.uo - c) * a
  16709. }
  16710. },
  16711. A: function(a) {
  16712. F.z.prototype.A.call(this, a);
  16713. this.target.wb && (this.vv = a.opacity)
  16714. }
  16715. });
  16716. F.Ki.create = function(a, c) {
  16717. return new F.Ki(a, c)
  16718. };
  16719. F.Xm = F.Ki.extend({
  16720. EC: q,
  16721. reverse: function() {
  16722. var a = new F.Ym;
  16723. a.f(this.p, 0);
  16724. this.ya(a);
  16725. this.je(a);
  16726. return a
  16727. },
  16728. l: function() {
  16729. var a = new F.Xm;
  16730. this.ya(a);
  16731. a.f(this.p, this.uo);
  16732. return a
  16733. },
  16734. A: function(a) {
  16735. this.EC && (this.uo = this.EC.vv);
  16736. F.Ki.prototype.A.call(this, a)
  16737. }
  16738. });
  16739. F.Xm.create = function(a) {
  16740. return new F.Xm(a, 255)
  16741. };
  16742. F.Ym = F.Ki.extend({
  16743. reverse: function() {
  16744. var a = new F.Xm;
  16745. a.EC = this;
  16746. a.f(this.p, 255);
  16747. this.ya(a);
  16748. this.je(a);
  16749. return a
  16750. },
  16751. l: function() {
  16752. var a = new F.Ym;
  16753. this.ya(a);
  16754. a.f(this.p, this.uo);
  16755. return a
  16756. }
  16757. });
  16758. F.Ym.create = function(a) {
  16759. var c = new F.Ym;
  16760. c.f(a, 0);
  16761. return c
  16762. };
  16763. F.Bu = F.z.extend({
  16764. md: q,
  16765. Sc: q,
  16766. ctor: function(a, c, d, e) {
  16767. F.z.prototype.ctor.call(this);
  16768. this.md = F.color(0, 0, 0);
  16769. this.Sc = F.color(0, 0, 0);
  16770. e !== k && this.f(a, c, d, e)
  16771. },
  16772. f: function(a, c, d, e) {
  16773. return F.z.prototype.f.call(this, a) ? (this.md = F.color(c, d, e), p) : r
  16774. },
  16775. l: function() {
  16776. var a = new F.Bu;
  16777. this.ya(a);
  16778. var c = this.md;
  16779. a.f(this.p, c.r, c.g, c.b);
  16780. return a
  16781. },
  16782. A: function(a) {
  16783. F.z.prototype.A.call(this, a);
  16784. this.target.wb && (this.Sc = this.target.color)
  16785. },
  16786. update: function(a) {
  16787. a = this.gd(a);
  16788. var c = this.Sc,
  16789. d = this.md;
  16790. c && this.target.wb && (this.target.color =
  16791. F.color(c.r + (d.r - c.r) * a, c.g + (d.g - c.g) * a, c.b + (d.b - c.b) * a))
  16792. }
  16793. });
  16794. F.Bu.create = function(a, c, d, e) {
  16795. return new F.Bu(a, c, d, e)
  16796. };
  16797. F.Eq = F.z.extend({
  16798. gv: 0,
  16799. fv: 0,
  16800. ev: 0,
  16801. VJ: 0,
  16802. UJ: 0,
  16803. TJ: 0,
  16804. ctor: function(a, c, d, e) {
  16805. F.z.prototype.ctor.call(this);
  16806. e !== k && this.f(a, c, d, e)
  16807. },
  16808. f: function(a, c, d, e) {
  16809. return F.z.prototype.f.call(this, a) ? (this.gv = c, this.fv = d, this.ev = e, p) : r
  16810. },
  16811. l: function() {
  16812. var a = new F.Eq;
  16813. this.ya(a);
  16814. a.f(this.p, this.gv, this.fv, this.ev);
  16815. return a
  16816. },
  16817. A: function(a) {
  16818. F.z.prototype.A.call(this, a);
  16819. a.wb && (a = a.color, this.VJ = a.r, this.UJ = a.g, this.TJ = a.b)
  16820. },
  16821. update: function(a) {
  16822. a = this.gd(a);
  16823. this.target.wb && (this.target.color = F.color(this.VJ + this.gv * a, this.UJ +
  16824. this.fv * a, this.TJ + this.ev * a))
  16825. },
  16826. reverse: function() {
  16827. var a = F.Eq.create(this.p, -this.gv, -this.fv, -this.ev);
  16828. this.ya(a);
  16829. this.je(a);
  16830. return a
  16831. }
  16832. });
  16833. F.Eq.create = function(a, c, d, e) {
  16834. return new F.Eq(a, c, d, e)
  16835. };
  16836. F.Oc = F.z.extend({
  16837. update: t(),
  16838. reverse: function() {
  16839. var a = F.Oc.create(this.p);
  16840. this.ya(a);
  16841. this.je(a);
  16842. return a
  16843. },
  16844. l: function() {
  16845. var a = new F.Oc;
  16846. this.ya(a);
  16847. a.f(this.p);
  16848. return a
  16849. }
  16850. });
  16851. F.Oc.create = function(a) {
  16852. return new F.Oc(a)
  16853. };
  16854. F.sl = F.z.extend({
  16855. ej: q,
  16856. ctor: function(a) {
  16857. F.z.prototype.ctor.call(this);
  16858. this.ej = q;
  16859. a && this.ba(a)
  16860. },
  16861. ba: function(a) {
  16862. a || b("cc.ReverseTime.initWithAction(): action must be non null");
  16863. a == this.ej && b("cc.ReverseTime.initWithAction(): the action was already passed in.");
  16864. return F.z.prototype.f.call(this, a.p) ? (this.ej = a, p) : r
  16865. },
  16866. l: function() {
  16867. var a = new F.sl;
  16868. this.ya(a);
  16869. a.ba(this.ej.l());
  16870. return a
  16871. },
  16872. A: function(a) {
  16873. F.z.prototype.A.call(this, a);
  16874. this.ej.A(a)
  16875. },
  16876. update: function(a) {
  16877. a = this.gd(a);
  16878. this.ej && this.ej.update(1 - a)
  16879. },
  16880. reverse: function() {
  16881. return this.ej.l()
  16882. },
  16883. stop: function() {
  16884. this.ej.stop();
  16885. F.fd.prototype.stop.call(this)
  16886. }
  16887. });
  16888. F.sl.create = function(a) {
  16889. return new F.sl(a)
  16890. };
  16891. F.Gp = F.z.extend({
  16892. fk: q,
  16893. Er: 0,
  16894. $B: q,
  16895. pv: 0,
  16896. bD: q,
  16897. ctor: function(a) {
  16898. F.z.prototype.ctor.call(this);
  16899. this.bD = [];
  16900. a && this.vN(a)
  16901. },
  16902. JM: A("fk"),
  16903. Q2: y("fk"),
  16904. vN: function(a) {
  16905. a || b("cc.Animate.initWithAnimation(): animation must be non-NULL");
  16906. var c = a.Qo();
  16907. if (this.f(c * a.bj)) {
  16908. this.Er = 0;
  16909. this.Q2(a);
  16910. this.$B = q;
  16911. this.pv = 0;
  16912. var d = this.bD,
  16913. e = d.length = 0,
  16914. f = c / a.pi;
  16915. a = a.Rd;
  16916. F.zo(a, F.kg);
  16917. for (var g = 0; g < a.length; g++) {
  16918. var h = e * f / c,
  16919. e = e + a[g].Qd;
  16920. d.push(h)
  16921. }
  16922. return p
  16923. }
  16924. return r
  16925. },
  16926. l: function() {
  16927. var a = new F.Gp;
  16928. this.ya(a);
  16929. a.vN(this.fk.l());
  16930. return a
  16931. },
  16932. A: function(a) {
  16933. F.z.prototype.A.call(this,
  16934. a);
  16935. this.fk.Ul && (this.$B = a.zZ());
  16936. this.pv = this.Er = 0
  16937. },
  16938. update: function(a) {
  16939. a = this.gd(a);
  16940. 1 > a && (a *= this.fk.bj, (0 | a) > this.pv && (this.Er = 0, this.pv++), a %= 1);
  16941. for (var c = this.fk.Rd, d = c.length, e = this.bD, f = this.Er; f < d; f++)
  16942. if (e[f] <= a) this.target.bl(c[f].wj()), this.Er = f + 1;
  16943. else break
  16944. },
  16945. reverse: function() {
  16946. var a = this.fk,
  16947. c = a.Rd,
  16948. d = [];
  16949. F.zo(c, F.kg);
  16950. if (0 < c.length)
  16951. for (var e = c.length - 1; 0 <= e; e--) {
  16952. var f = c[e];
  16953. if (!f) break;
  16954. d.push(f.l())
  16955. }
  16956. c = F.il.create(d, a.Qd, a.bj);
  16957. c.my(a.Ul);
  16958. a = F.Gp.create(c);
  16959. this.ya(a);
  16960. this.je(a);
  16961. return a
  16962. },
  16963. stop: function() {
  16964. this.fk.Ul &&
  16965. this.target && this.target.bl(this.$B);
  16966. F.fd.prototype.stop.call(this)
  16967. }
  16968. });
  16969. F.Gp.create = function(a) {
  16970. return new F.Gp(a)
  16971. };
  16972. F.zu = F.z.extend({
  16973. Nq: q,
  16974. Kn: q,
  16975. ctor: function(a, c) {
  16976. F.z.prototype.ctor.call(this);
  16977. c && this.Wo(a, c)
  16978. },
  16979. Wo: function(a, c) {
  16980. return this.f(c.p) ? (this.Kn = a, this.Nq = c, p) : r
  16981. },
  16982. l: function() {
  16983. var a = new F.zu;
  16984. this.ya(a);
  16985. a.Wo(this.Kn, this.Nq.l());
  16986. return a
  16987. },
  16988. A: function(a) {
  16989. F.z.prototype.A.call(this, a);
  16990. this.Nq.A(this.Kn)
  16991. },
  16992. stop: function() {
  16993. this.Nq.stop()
  16994. },
  16995. update: function(a) {
  16996. a = this.gd(a);
  16997. this.Nq.update(a)
  16998. },
  16999. bba: A("Kn"),
  17000. pia: function(a) {
  17001. this.Kn != a && (this.Kn = a)
  17002. }
  17003. });
  17004. F.zu.create = function(a, c) {
  17005. return new F.zu(a, c)
  17006. };
  17007. F.ue = F.Li.extend({
  17008. Hg: E(p),
  17009. step: function() {
  17010. this.update(1)
  17011. },
  17012. update: t(),
  17013. reverse: function() {
  17014. return this.l()
  17015. },
  17016. l: function() {
  17017. return new F.ue
  17018. }
  17019. });
  17020. F.xf = F.ue.extend({
  17021. update: function() {
  17022. this.target.visible = p
  17023. },
  17024. reverse: function() {
  17025. return F.Xg.create()
  17026. },
  17027. l: function() {
  17028. return new F.xf
  17029. }
  17030. });
  17031. F.xf.create = function() {
  17032. return new F.xf
  17033. };
  17034. F.Xg = F.ue.extend({
  17035. update: function() {
  17036. this.target.visible = r
  17037. },
  17038. reverse: function() {
  17039. return F.xf.create()
  17040. },
  17041. l: function() {
  17042. return new F.Xg
  17043. }
  17044. });
  17045. F.Xg.create = function() {
  17046. return new F.Xg
  17047. };
  17048. F.Fq = F.ue.extend({
  17049. update: function() {
  17050. this.target.visible = !this.target.visible
  17051. },
  17052. reverse: function() {
  17053. return new F.Fq
  17054. },
  17055. l: function() {
  17056. return new F.Fq
  17057. }
  17058. });
  17059. F.Fq.create = function() {
  17060. return new F.Fq
  17061. };
  17062. F.pq = F.ue.extend({
  17063. Dv: p,
  17064. ctor: function(a) {
  17065. F.Li.prototype.ctor.call(this);
  17066. a !== k && this.M(a)
  17067. },
  17068. update: function() {
  17069. this.target.$k(this.Dv)
  17070. },
  17071. M: function(a) {
  17072. this.Dv = a;
  17073. return p
  17074. },
  17075. reverse: function() {
  17076. return new F.pq(this.Dv)
  17077. },
  17078. l: function() {
  17079. return new F.pq(this.Dv)
  17080. }
  17081. });
  17082. F.pq.create = function(a) {
  17083. return new F.pq(a)
  17084. };
  17085. F.eq = F.ue.extend({
  17086. Qb: r,
  17087. ctor: function(a) {
  17088. F.Li.prototype.ctor.call(this);
  17089. this.Qb = r;
  17090. a !== k && this.xN(a)
  17091. },
  17092. xN: function(a) {
  17093. this.Qb = a;
  17094. return p
  17095. },
  17096. update: function() {
  17097. this.target.flippedX = this.Qb
  17098. },
  17099. reverse: function() {
  17100. return F.eq.create(!this.Qb)
  17101. },
  17102. l: function() {
  17103. var a = new F.eq;
  17104. a.xN(this.Qb);
  17105. return a
  17106. }
  17107. });
  17108. F.eq.create = function(a) {
  17109. return new F.eq(a)
  17110. };
  17111. F.fq = F.ue.extend({
  17112. Rb: r,
  17113. ctor: function(a) {
  17114. F.Li.prototype.ctor.call(this);
  17115. this.Rb = r;
  17116. a !== k && this.yN(a)
  17117. },
  17118. yN: function(a) {
  17119. this.Rb = a;
  17120. return p
  17121. },
  17122. update: function() {
  17123. this.target.flippedY = this.Rb
  17124. },
  17125. reverse: function() {
  17126. return F.fq.create(!this.Rb)
  17127. },
  17128. l: function() {
  17129. var a = new F.fq;
  17130. a.yN(this.Rb);
  17131. return a
  17132. }
  17133. });
  17134. F.fq.create = function(a) {
  17135. return new F.fq(a)
  17136. };
  17137. F.mu = F.ue.extend({
  17138. vh: 0,
  17139. Le: 0,
  17140. ctor: function(a, c) {
  17141. F.Li.prototype.ctor.call(this);
  17142. this.Le = this.vh = 0;
  17143. a !== k && (a.x !== k && (c = a.y, a = a.x), this.DN(a, c))
  17144. },
  17145. DN: function(a, c) {
  17146. this.vh = a;
  17147. this.Le = c;
  17148. return p
  17149. },
  17150. update: function() {
  17151. this.target.G(this.vh, this.Le)
  17152. },
  17153. l: function() {
  17154. var a = new F.mu;
  17155. a.DN(this.vh, this.Le);
  17156. return a
  17157. }
  17158. });
  17159. F.mu.create = function(a, c) {
  17160. return new F.mu(a, c)
  17161. };
  17162. F.Pb = F.ue.extend({
  17163. jj: q,
  17164. Vu: q,
  17165. mr: q,
  17166. Bn: q,
  17167. ctor: function(a, c, d) {
  17168. F.Li.prototype.ctor.call(this);
  17169. a !== k && (c === k ? this.ox(a) : this.ox(a, c, d))
  17170. },
  17171. ox: function(a, c, d) {
  17172. c ? (this.Bn = d, this.Vu = a, this.jj = c) : a && (this.mr = a);
  17173. return p
  17174. },
  17175. execute: function() {
  17176. this.Vu != q ? this.Vu.call(this.jj, this.target, this.Bn) : this.mr && this.mr.call(q, this.target)
  17177. },
  17178. update: function() {
  17179. this.execute()
  17180. },
  17181. wca: A("jj"),
  17182. qja: function(a) {
  17183. a != this.jj && (this.jj && (this.jj = q), this.jj = a)
  17184. },
  17185. l: function() {
  17186. var a = new F.Pb;
  17187. this.jj ? a.ox(this.Vu, this.jj, this.Bn) : this.mr &&
  17188. a.ox(this.mr);
  17189. return a
  17190. }
  17191. });
  17192. F.Pb.create = function(a, c, d) {
  17193. return new F.Pb(a, c, d)
  17194. };
  17195. F.zy = F.z.extend({
  17196. KA: 0,
  17197. LA: 0,
  17198. MA: 0,
  17199. MJ: 0,
  17200. NJ: 0,
  17201. OJ: 0,
  17202. EL: 0,
  17203. FL: 0,
  17204. GL: 0,
  17205. ctor: function() {
  17206. F.z.prototype.ctor.call(this);
  17207. this.GL = this.FL = this.EL = this.OJ = this.NJ = this.MJ = this.MA = this.LA = this.KA = 0
  17208. },
  17209. A: function(a) {
  17210. F.z.prototype.A.call(this, a);
  17211. a = a.wm();
  17212. var c = a.MM();
  17213. this.KA = c.x;
  17214. this.LA = c.y;
  17215. this.MA = c.e;
  17216. c = a.RM();
  17217. this.MJ = c.x;
  17218. this.NJ = c.y;
  17219. this.OJ = c.e;
  17220. a = a.k0();
  17221. this.EL = a.x;
  17222. this.FL = a.y;
  17223. this.GL = a.e
  17224. },
  17225. l: function() {
  17226. return new F.zy
  17227. },
  17228. reverse: function() {
  17229. return F.sl.create(this)
  17230. }
  17231. });
  17232. F.$d = F.zy.extend({
  17233. Ge: 0,
  17234. UA: 0,
  17235. Qq: 0,
  17236. bJ: 0,
  17237. Yg: 0,
  17238. aJ: 0,
  17239. PK: 0,
  17240. NK: 0,
  17241. OK: 0,
  17242. MK: 0,
  17243. ctor: function(a, c, d, e, f, g, h) {
  17244. F.zy.prototype.ctor.call(this);
  17245. h !== k && this.f(a, c, d, e, f, g, h)
  17246. },
  17247. f: function(a, c, d, e, f, g, h) {
  17248. return F.z.prototype.f.call(this, a) ? (this.Ge = c, this.UA = d, this.Qq = e, this.bJ = f, this.Yg = g, this.aJ = h, this.NK = F.Uf(f), this.MK = F.Uf(h), p) : r
  17249. },
  17250. Z3: function() {
  17251. var a = this.target.wm(),
  17252. c = a.RM(),
  17253. d = a.MM(),
  17254. a = c.x - d.x,
  17255. e = c.y - d.y,
  17256. c = c.e - d.e,
  17257. d = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2) + Math.pow(c, 2)),
  17258. f = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2));
  17259. 0 ===
  17260. f && (f = F.eu);
  17261. 0 === d && (d = F.eu);
  17262. return {
  17263. J1: d / F.Kp.Is(),
  17264. P4: Math.acos(c / d),
  17265. azimuth: 0 > a ? Math.PI - Math.asin(e / f) : Math.asin(e / f)
  17266. }
  17267. },
  17268. A: function(a) {
  17269. F.z.prototype.A.call(this, a);
  17270. a = this.Z3();
  17271. isNaN(this.Ge) && (this.Ge = a.J1);
  17272. isNaN(this.Qq) && (this.Qq = F.BF(a.P4));
  17273. isNaN(this.Yg) && (this.Yg = F.BF(a.azimuth));
  17274. this.PK = F.Uf(this.Qq);
  17275. this.OK = F.Uf(this.Yg)
  17276. },
  17277. l: function() {
  17278. var a = new F.$d;
  17279. a.f(this.p, this.Ge, this.UA, this.Qq, this.bJ, this.Yg, this.aJ);
  17280. return a
  17281. },
  17282. update: function(a) {
  17283. a = this.gd(a);
  17284. var c = (this.Ge + this.UA * a) * F.Kp.Is(),
  17285. d = this.PK +
  17286. this.NK * a,
  17287. e = this.OK + this.MK * a;
  17288. a = Math.sin(d) * Math.cos(e) * c + this.KA;
  17289. e = Math.sin(d) * Math.sin(e) * c + this.LA;
  17290. c = Math.cos(d) * c + this.MA;
  17291. this.target.wm().PO(a, e, c)
  17292. }
  17293. });
  17294. F.$d.create = function(a, c, d, e, f, g, h) {
  17295. return new F.$d(a, c, d, e, f, g, h)
  17296. };
  17297. F.Pa = F.z.extend({
  17298. s: q,
  17299. ctor: function(a) {
  17300. F.z.prototype.ctor.call(this);
  17301. a && this.ba(a)
  17302. },
  17303. ba: function(a) {
  17304. a || b("cc.ActionEase.initWithAction(): action must be non nil");
  17305. return this.f(a.Qo()) ? (this.s = a, p) : r
  17306. },
  17307. l: function() {
  17308. var a = new F.Pa;
  17309. a.ba(this.s.l());
  17310. return a
  17311. },
  17312. A: function(a) {
  17313. F.z.prototype.A.call(this, a);
  17314. this.s.A(this.target)
  17315. },
  17316. stop: function() {
  17317. this.s.stop();
  17318. F.z.prototype.stop.call(this)
  17319. },
  17320. update: function(a) {
  17321. this.s.update(a)
  17322. },
  17323. reverse: function() {
  17324. return F.Pa.create(this.s.reverse())
  17325. },
  17326. DE: A("s")
  17327. });
  17328. F.Pa.create = function(a) {
  17329. return new F.Pa(a)
  17330. };
  17331. F.nl = F.Pa.extend({
  17332. ac: 0,
  17333. ctor: function(a, c) {
  17334. F.Pa.prototype.ctor.call(this);
  17335. c !== k && this.ba(a, c)
  17336. },
  17337. bja: y("ac"),
  17338. aca: A("ac"),
  17339. ba: function(a, c) {
  17340. return F.Pa.prototype.ba.call(this, a) ? (this.ac = c, p) : r
  17341. },
  17342. l: function() {
  17343. var a = new F.nl;
  17344. a.ba(this.s.l(), this.ac);
  17345. return a
  17346. },
  17347. reverse: function() {
  17348. return F.nl.create(this.s.reverse(), 1 / this.ac)
  17349. }
  17350. });
  17351. F.nl.create = function(a, c) {
  17352. return new F.nl(a, c)
  17353. };
  17354. F.$t = F.nl.extend({
  17355. update: function(a) {
  17356. this.s.update(Math.pow(a, this.ac))
  17357. },
  17358. reverse: function() {
  17359. return F.$t.create(this.s.reverse(), 1 / this.ac)
  17360. },
  17361. l: function() {
  17362. var a = new F.$t;
  17363. a.ba(this.s.l(), this.ac);
  17364. return a
  17365. }
  17366. });
  17367. F.$t.create = function(a, c) {
  17368. return new F.$t(a, c)
  17369. };
  17370. F.OZ = function(a) {
  17371. return {
  17372. ac: a,
  17373. Ta: function(a) {
  17374. return Math.pow(a, this.ac)
  17375. },
  17376. reverse: function() {
  17377. return F.OZ(1 / this.ac)
  17378. }
  17379. }
  17380. };
  17381. F.ml = F.nl.extend({
  17382. update: function(a) {
  17383. this.s.update(Math.pow(a, 1 / this.ac))
  17384. },
  17385. reverse: function() {
  17386. return F.ml.create(this.s.reverse(), 1 / this.ac)
  17387. },
  17388. l: function() {
  17389. var a = new F.ml;
  17390. a.ba(this.s.l(), this.ac);
  17391. return a
  17392. }
  17393. });
  17394. F.ml.create = function(a, c) {
  17395. return new F.ml(a, c)
  17396. };
  17397. F.QZ = function(a) {
  17398. return {
  17399. ac: a,
  17400. Ta: function(a) {
  17401. return Math.pow(a, 1 / this.ac)
  17402. },
  17403. reverse: function() {
  17404. return F.QZ(1 / this.ac)
  17405. }
  17406. }
  17407. };
  17408. F.Up = F.nl.extend({
  17409. update: function(a) {
  17410. a *= 2;
  17411. 1 > a ? this.s.update(0.5 * Math.pow(a, this.ac)) : this.s.update(1 - 0.5 * Math.pow(2 - a, this.ac))
  17412. },
  17413. l: function() {
  17414. var a = new F.Up;
  17415. a.ba(this.s.l(), this.ac);
  17416. return a
  17417. },
  17418. reverse: function() {
  17419. return F.Up.create(this.s.reverse(), this.ac)
  17420. }
  17421. });
  17422. F.Up.create = function(a, c) {
  17423. return new F.Up(a, c)
  17424. };
  17425. F.PZ = function(a) {
  17426. return {
  17427. ac: a,
  17428. Ta: function(a) {
  17429. a *= 2;
  17430. return 1 > a ? 0.5 * Math.pow(a, this.ac) : 1 - 0.5 * Math.pow(2 - a, this.ac)
  17431. },
  17432. reverse: function() {
  17433. return F.PZ(this.ac)
  17434. }
  17435. }
  17436. };
  17437. F.Xt = F.Pa.extend({
  17438. update: function(a) {
  17439. this.s.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  17440. },
  17441. reverse: function() {
  17442. return F.Zt.create(this.s.reverse())
  17443. },
  17444. l: function() {
  17445. var a = new F.Xt;
  17446. a.ba(this.s.l());
  17447. return a
  17448. }
  17449. });
  17450. F.Xt.create = function(a) {
  17451. return new F.Xt(a)
  17452. };
  17453. F.vJ = {
  17454. Ta: function(a) {
  17455. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  17456. },
  17457. reverse: function() {
  17458. return F.xJ
  17459. }
  17460. };
  17461. F.r$ = function() {
  17462. return F.vJ
  17463. };
  17464. F.Zt = F.Pa.extend({
  17465. update: function(a) {
  17466. this.s.update(1 == a ? 1 : -Math.pow(2, -10 * a) + 1)
  17467. },
  17468. reverse: function() {
  17469. return F.Xt.create(this.s.reverse())
  17470. },
  17471. l: function() {
  17472. var a = new F.Zt;
  17473. a.ba(this.s.l());
  17474. return a
  17475. }
  17476. });
  17477. F.Zt.create = function(a) {
  17478. return new F.Zt(a)
  17479. };
  17480. F.xJ = {
  17481. Ta: function(a) {
  17482. return 1 == a ? 1 : -Math.pow(2, -10 * a) + 1
  17483. },
  17484. reverse: function() {
  17485. return F.vJ
  17486. }
  17487. };
  17488. F.t$ = function() {
  17489. return F.xJ
  17490. };
  17491. F.Yt = F.Pa.extend({
  17492. update: function(a) {
  17493. 1 != a && 0 !== a && (a *= 2, a = 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2));
  17494. this.s.update(a)
  17495. },
  17496. reverse: function() {
  17497. return F.Yt.create(this.s.reverse())
  17498. },
  17499. l: function() {
  17500. var a = new F.Yt;
  17501. a.ba(this.s.l());
  17502. return a
  17503. }
  17504. });
  17505. F.Yt.create = function(a) {
  17506. return new F.Yt(a)
  17507. };
  17508. F.wJ = {
  17509. Ta: function(a) {
  17510. return 1 !== a && 0 !== a ? (a *= 2, 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)) : a
  17511. },
  17512. reverse: function() {
  17513. return F.wJ
  17514. }
  17515. };
  17516. F.s$ = function() {
  17517. return F.wJ
  17518. };
  17519. F.au = F.Pa.extend({
  17520. update: function(a) {
  17521. a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1;
  17522. this.s.update(a)
  17523. },
  17524. reverse: function() {
  17525. return F.cu.create(this.s.reverse())
  17526. },
  17527. l: function() {
  17528. var a = new F.au;
  17529. a.ba(this.s.l());
  17530. return a
  17531. }
  17532. });
  17533. F.au.create = function(a) {
  17534. return new F.au(a)
  17535. };
  17536. F.HJ = {
  17537. Ta: function(a) {
  17538. return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1
  17539. },
  17540. reverse: function() {
  17541. return F.JJ
  17542. }
  17543. };
  17544. F.D$ = function() {
  17545. return F.HJ
  17546. };
  17547. F.cu = F.Pa.extend({
  17548. update: function(a) {
  17549. a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2);
  17550. this.s.update(a)
  17551. },
  17552. reverse: function() {
  17553. return F.au.create(this.s.reverse())
  17554. },
  17555. l: function() {
  17556. var a = new F.cu;
  17557. a.ba(this.s.l());
  17558. return a
  17559. }
  17560. });
  17561. F.cu.create = function(a) {
  17562. return new F.cu(a)
  17563. };
  17564. F.JJ = {
  17565. Ta: function(a) {
  17566. return 0 === a || 1 == a ? a : Math.sin(a * Math.PI / 2)
  17567. },
  17568. reverse: function() {
  17569. return F.HJ
  17570. }
  17571. };
  17572. F.F$ = function() {
  17573. return F.JJ
  17574. };
  17575. F.bu = F.Pa.extend({
  17576. update: function(a) {
  17577. a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1);
  17578. this.s.update(a)
  17579. },
  17580. l: function() {
  17581. var a = new F.bu;
  17582. a.ba(this.s.l());
  17583. return a
  17584. },
  17585. reverse: function() {
  17586. return F.bu.create(this.s.reverse())
  17587. }
  17588. });
  17589. F.bu.create = function(a) {
  17590. return new F.bu(a)
  17591. };
  17592. F.IJ = {
  17593. Ta: function(a) {
  17594. return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1)
  17595. },
  17596. reverse: function() {
  17597. return F.IJ
  17598. }
  17599. };
  17600. F.E$ = function() {
  17601. return F.IJ
  17602. };
  17603. F.Um = F.Pa.extend({
  17604. Gb: 0.3,
  17605. ctor: function(a, c) {
  17606. F.Pa.prototype.ctor.call(this);
  17607. a && this.ba(a, c)
  17608. },
  17609. Sba: A("Gb"),
  17610. Yia: y("Gb"),
  17611. ba: function(a, c) {
  17612. F.Pa.prototype.ba.call(this, a);
  17613. this.Gb = c == q ? 0.3 : c;
  17614. return p
  17615. },
  17616. reverse: function() {
  17617. F.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  17618. return q
  17619. },
  17620. l: function() {
  17621. var a = new F.Um;
  17622. a.ba(this.s.l(), this.Gb);
  17623. return a
  17624. }
  17625. });
  17626. F.Um.create = function(a, c) {
  17627. return new F.Um(a, c)
  17628. };
  17629. F.Ut = F.Um.extend({
  17630. update: function(a) {
  17631. var c = 0;
  17632. 0 === a || 1 === a ? c = a : (c = this.Gb / 4, a -= 1, c = -Math.pow(2, 10 * a) * Math.sin(2 * (a - c) * Math.PI / this.Gb));
  17633. this.s.update(c)
  17634. },
  17635. reverse: function() {
  17636. return F.Wt.create(this.s.reverse(), this.Gb)
  17637. },
  17638. l: function() {
  17639. var a = new F.Ut;
  17640. a.ba(this.s.l(), this.Gb);
  17641. return a
  17642. }
  17643. });
  17644. F.Ut.create = function(a, c) {
  17645. return new F.Ut(a, c)
  17646. };
  17647. F.tJ = {
  17648. Ta: function(a) {
  17649. if (0 === a || 1 === a) return a;
  17650. a -= 1;
  17651. return -Math.pow(2, 10 * a) * Math.sin(2 * (a - 0.075) * Math.PI / 0.3)
  17652. },
  17653. reverse: function() {
  17654. return F.uJ
  17655. }
  17656. };
  17657. F.LZ = function(a) {
  17658. return a && 0.3 !== a ? {
  17659. Gb: a,
  17660. Ta: function(a) {
  17661. if (0 === a || 1 === a) return a;
  17662. a -= 1;
  17663. return -Math.pow(2, 10 * a) * Math.sin(2 * (a - this.Gb / 4) * Math.PI / this.Gb)
  17664. },
  17665. reverse: function() {
  17666. return F.NZ(this.Gb)
  17667. }
  17668. } : F.tJ
  17669. };
  17670. F.Wt = F.Um.extend({
  17671. update: function(a) {
  17672. var c = 0,
  17673. c = 0 === a || 1 == a ? a : Math.pow(2, -10 * a) * Math.sin(2 * (a - this.Gb / 4) * Math.PI / this.Gb) + 1;
  17674. this.s.update(c)
  17675. },
  17676. reverse: function() {
  17677. return F.Ut.create(this.s.reverse(), this.Gb)
  17678. },
  17679. l: function() {
  17680. var a = new F.Wt;
  17681. a.ba(this.s.l(), this.Gb);
  17682. return a
  17683. }
  17684. });
  17685. F.Wt.create = function(a, c) {
  17686. return new F.Wt(a, c)
  17687. };
  17688. F.uJ = {
  17689. Ta: function(a) {
  17690. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin(2 * (a - 0.075) * Math.PI / 0.3) + 1
  17691. },
  17692. reverse: function() {
  17693. return F.tJ
  17694. }
  17695. };
  17696. F.NZ = function(a) {
  17697. return a && 0.3 !== a ? {
  17698. Gb: a,
  17699. Ta: function(a) {
  17700. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin(2 * (a - this.Gb / 4) * Math.PI / this.Gb) + 1
  17701. },
  17702. reverse: function() {
  17703. return F.LZ(this.Gb)
  17704. }
  17705. } : F.uJ
  17706. };
  17707. F.Vt = F.Um.extend({
  17708. update: function(a) {
  17709. var c = 0,
  17710. c = this.Gb;
  17711. if (0 === a || 1 == a) c = a;
  17712. else {
  17713. c || (c = this.Gb = 0.3 * 1.5);
  17714. var d = c / 4;
  17715. a = 2 * a - 1;
  17716. c = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin(2 * (a - d) * Math.PI / c) : 0.5 * Math.pow(2, -10 * a) * Math.sin(2 * (a - d) * Math.PI / c) + 1
  17717. }
  17718. this.s.update(c)
  17719. },
  17720. reverse: function() {
  17721. return F.Vt.create(this.s.reverse(), this.Gb)
  17722. },
  17723. l: function() {
  17724. var a = new F.Vt;
  17725. a.ba(this.s.l(), this.Gb);
  17726. return a
  17727. }
  17728. });
  17729. F.Vt.create = function(a, c) {
  17730. return new F.Vt(a, c)
  17731. };
  17732. F.MZ = function(a) {
  17733. return {
  17734. Gb: a || 0.3,
  17735. Ta: function(a) {
  17736. var d = 0,
  17737. d = this.Gb;
  17738. if (0 === a || 1 === a) d = a;
  17739. else {
  17740. d || (d = this.Gb = 0.3 * 1.5);
  17741. var e = d / 4;
  17742. a = 2 * a - 1;
  17743. d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin(2 * (a - e) * Math.PI / d) : 0.5 * Math.pow(2, -10 * a) * Math.sin(2 * (a - e) * Math.PI / d) + 1
  17744. }
  17745. return d
  17746. },
  17747. reverse: function() {
  17748. return F.MZ(this.Gb)
  17749. }
  17750. }
  17751. };
  17752. F.ll = F.Pa.extend({
  17753. Iw: function(a) {
  17754. if (a < 1 / 2.75) return 7.5625 * a * a;
  17755. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  17756. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  17757. a -= 2.625 / 2.75;
  17758. return 7.5625 * a * a + 0.984375
  17759. },
  17760. l: function() {
  17761. var a = new F.ll;
  17762. a.ba(this.s.l());
  17763. return a
  17764. },
  17765. reverse: function() {
  17766. return F.ll.create(this.s.reverse())
  17767. }
  17768. });
  17769. F.ll.create = function(a) {
  17770. return new F.ll(a)
  17771. };
  17772. F.Rt = F.ll.extend({
  17773. update: function(a) {
  17774. this.s.update(1 - this.Iw(1 - a))
  17775. },
  17776. reverse: function() {
  17777. return F.Tt.create(this.s.reverse())
  17778. },
  17779. l: function() {
  17780. var a = new F.Rt;
  17781. a.ba(this.s.l());
  17782. return a
  17783. }
  17784. });
  17785. F.Rt.create = function(a) {
  17786. return new F.Rt(a)
  17787. };
  17788. F.Su = function(a) {
  17789. if (a < 1 / 2.75) return 7.5625 * a * a;
  17790. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  17791. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  17792. a -= 2.625 / 2.75;
  17793. return 7.5625 * a * a + 0.984375
  17794. };
  17795. F.kJ = {
  17796. Ta: function(a) {
  17797. return 1 - F.Su(1 - a)
  17798. },
  17799. reverse: function() {
  17800. return F.mJ
  17801. }
  17802. };
  17803. F.i$ = function() {
  17804. return F.kJ
  17805. };
  17806. F.Tt = F.ll.extend({
  17807. update: function(a) {
  17808. this.s.update(this.Iw(a))
  17809. },
  17810. reverse: function() {
  17811. return F.Rt.create(this.s.reverse())
  17812. },
  17813. l: function() {
  17814. var a = new F.Tt;
  17815. a.ba(this.s.l());
  17816. return a
  17817. }
  17818. });
  17819. F.Tt.create = function(a) {
  17820. return new F.Tt(a)
  17821. };
  17822. F.mJ = {
  17823. Ta: function(a) {
  17824. return F.Su(a)
  17825. },
  17826. reverse: function() {
  17827. return F.kJ
  17828. }
  17829. };
  17830. F.k$ = function() {
  17831. return F.mJ
  17832. };
  17833. F.St = F.ll.extend({
  17834. update: function(a) {
  17835. var c = 0,
  17836. c = 0.5 > a ? 0.5 * (1 - this.Iw(1 - 2 * a)) : 0.5 * this.Iw(2 * a - 1) + 0.5;
  17837. this.s.update(c)
  17838. },
  17839. l: function() {
  17840. var a = new F.St;
  17841. a.ba(this.s.l());
  17842. return a
  17843. },
  17844. reverse: function() {
  17845. return F.St.create(this.s.reverse())
  17846. }
  17847. });
  17848. F.St.create = function(a) {
  17849. return new F.St(a)
  17850. };
  17851. F.lJ = {
  17852. Ta: function(a) {
  17853. return a = 0.5 > a ? 0.5 * (1 - F.Su(1 - 2 * a)) : 0.5 * F.Su(2 * a - 1) + 0.5
  17854. },
  17855. reverse: function() {
  17856. return F.lJ
  17857. }
  17858. };
  17859. F.j$ = function() {
  17860. return F.lJ
  17861. };
  17862. F.Ot = F.Pa.extend({
  17863. update: function(a) {
  17864. this.s.update(0 === a || 1 == a ? a : a * a * (2.70158 * a - 1.70158))
  17865. },
  17866. reverse: function() {
  17867. return F.Qt.create(this.s.reverse())
  17868. },
  17869. l: function() {
  17870. var a = new F.Ot;
  17871. a.ba(this.s.l());
  17872. return a
  17873. }
  17874. });
  17875. F.Ot.create = function(a) {
  17876. return new F.Ot(a)
  17877. };
  17878. F.hJ = {
  17879. Ta: function(a) {
  17880. return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)
  17881. },
  17882. reverse: function() {
  17883. return F.jJ
  17884. }
  17885. };
  17886. F.f$ = function() {
  17887. return F.hJ
  17888. };
  17889. F.Qt = F.Pa.extend({
  17890. update: function(a) {
  17891. a -= 1;
  17892. this.s.update(a * a * (2.70158 * a + 1.70158) + 1)
  17893. },
  17894. reverse: function() {
  17895. return F.Ot.create(this.s.reverse())
  17896. },
  17897. l: function() {
  17898. var a = new F.Qt;
  17899. a.ba(this.s.l());
  17900. return a
  17901. }
  17902. });
  17903. F.Qt.create = function(a) {
  17904. return new F.Qt(a)
  17905. };
  17906. F.jJ = {
  17907. Ta: function(a) {
  17908. a -= 1;
  17909. return a * a * (2.70158 * a + 1.70158) + 1
  17910. },
  17911. reverse: function() {
  17912. return F.hJ
  17913. }
  17914. };
  17915. F.h$ = function() {
  17916. return F.jJ
  17917. };
  17918. F.Pt = F.Pa.extend({
  17919. update: function(a) {
  17920. a *= 2;
  17921. 1 > a ? this.s.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.s.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1))
  17922. },
  17923. l: function() {
  17924. var a = new F.Pt;
  17925. a.ba(this.s.l());
  17926. return a
  17927. },
  17928. reverse: function() {
  17929. return F.Pt.create(this.s.reverse())
  17930. }
  17931. });
  17932. F.Pt.create = function(a) {
  17933. return new F.Pt(a)
  17934. };
  17935. F.iJ = {
  17936. Ta: function(a) {
  17937. a *= 2;
  17938. if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2;
  17939. a -= 2;
  17940. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  17941. },
  17942. reverse: function() {
  17943. return F.iJ
  17944. }
  17945. };
  17946. F.g$ = function() {
  17947. return F.iJ
  17948. };
  17949. F.Np = F.Pa.extend({
  17950. Rv: q,
  17951. Sv: q,
  17952. Tv: q,
  17953. Uv: q,
  17954. ctor: function(a) {
  17955. F.Pa.prototype.ctor.call(this, a)
  17956. },
  17957. pa: function(a, c, d, e, f) {
  17958. return Math.pow(1 - f, 3) * a + 3 * f * Math.pow(1 - f, 2) * c + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e
  17959. },
  17960. update: function(a) {
  17961. this.s.update(this.pa(this.Rv, this.Sv, this.Tv, this.Uv, a))
  17962. },
  17963. l: function() {
  17964. var a = new F.Np;
  17965. a.ba(this.s.l());
  17966. a.JO(this.Rv, this.Sv, this.Tv, this.Uv);
  17967. return a
  17968. },
  17969. reverse: function() {
  17970. var a = F.Np.create(this.s.reverse());
  17971. a.JO(this.Uv, this.Tv, this.Sv, this.Rv);
  17972. return a
  17973. },
  17974. JO: function(a, c, d, e) {
  17975. this.Rv =
  17976. a || 0;
  17977. this.Sv = c || 0;
  17978. this.Tv = d || 0;
  17979. this.Uv = e || 0
  17980. }
  17981. });
  17982. F.Np.create = function(a) {
  17983. return new F.Np(a)
  17984. };
  17985. F.KZ = function(a, c, d, e) {
  17986. return {
  17987. Ta: function(f) {
  17988. return F.Np.prototype.pa(a, c, d, e, f)
  17989. },
  17990. reverse: function() {
  17991. return F.KZ(e, d, c, a)
  17992. }
  17993. }
  17994. };
  17995. F.Vp = F.Pa.extend({
  17996. pa: function(a) {
  17997. return Math.pow(a, 2)
  17998. },
  17999. update: function(a) {
  18000. this.s.update(this.pa(a))
  18001. },
  18002. l: function() {
  18003. var a = new F.Vp;
  18004. a.ba(this.s.l());
  18005. return a
  18006. },
  18007. reverse: function() {
  18008. return F.Vp.create(this.s.reverse())
  18009. }
  18010. });
  18011. F.Vp.create = function(a) {
  18012. return new F.Vp(a)
  18013. };
  18014. F.yJ = {
  18015. Ta: F.Vp.prototype.pa,
  18016. reverse: function() {
  18017. return F.yJ
  18018. }
  18019. };
  18020. F.u$ = function() {
  18021. return F.yJ
  18022. };
  18023. F.Xp = F.Pa.extend({
  18024. pa: function(a) {
  18025. return -a * (a - 2)
  18026. },
  18027. update: function(a) {
  18028. this.s.update(this.pa(a))
  18029. },
  18030. l: function() {
  18031. var a = new F.Xp;
  18032. a.ba();
  18033. return a
  18034. },
  18035. reverse: function() {
  18036. return F.Xp.create(this.s.reverse())
  18037. }
  18038. });
  18039. F.Xp.create = function(a) {
  18040. return new F.Xp(a)
  18041. };
  18042. F.AJ = {
  18043. Ta: F.Xp.prototype.pa,
  18044. reverse: function() {
  18045. return F.AJ
  18046. }
  18047. };
  18048. F.w$ = function() {
  18049. return F.AJ
  18050. };
  18051. F.Wp = F.Pa.extend({
  18052. pa: function(a) {
  18053. var c = a;
  18054. a *= 2;
  18055. 1 > a ? c = 0.5 * a * a : (--a, c = -0.5 * (a * (a - 2) - 1));
  18056. return c
  18057. },
  18058. update: function(a) {
  18059. this.s.update(this.pa(a))
  18060. },
  18061. l: function() {
  18062. var a = new F.Wp;
  18063. a.ba(this.s.l());
  18064. return a
  18065. },
  18066. reverse: function() {
  18067. return F.Wp.create(this.s.reverse())
  18068. }
  18069. });
  18070. F.Wp.create = function(a) {
  18071. return new F.Wp(a)
  18072. };
  18073. F.zJ = {
  18074. Ta: F.Wp.prototype.pa,
  18075. reverse: function() {
  18076. return F.zJ
  18077. }
  18078. };
  18079. F.v$ = function() {
  18080. return F.zJ
  18081. };
  18082. F.Yp = F.Pa.extend({
  18083. pa: function(a) {
  18084. return a * a * a * a
  18085. },
  18086. update: function(a) {
  18087. this.s.update(this.pa(a))
  18088. },
  18089. l: function() {
  18090. var a = new F.Yp;
  18091. a.ba(this.s.l());
  18092. return a
  18093. },
  18094. reverse: function() {
  18095. return F.Yp.create(this.s.reverse())
  18096. }
  18097. });
  18098. F.Yp.create = function(a) {
  18099. return new F.Yp(a)
  18100. };
  18101. F.BJ = {
  18102. Ta: F.Yp.prototype.pa,
  18103. reverse: function() {
  18104. return F.BJ
  18105. }
  18106. };
  18107. F.x$ = function() {
  18108. return F.BJ
  18109. };
  18110. F.$p = F.Pa.extend({
  18111. pa: function(a) {
  18112. a -= 1;
  18113. return -(a * a * a * a - 1)
  18114. },
  18115. update: function(a) {
  18116. this.s.update(this.pa(a))
  18117. },
  18118. l: function() {
  18119. var a = new F.$p;
  18120. a.ba(this.s.l());
  18121. return a
  18122. },
  18123. reverse: function() {
  18124. return F.$p.create(this.s.reverse())
  18125. }
  18126. });
  18127. F.$p.create = function(a) {
  18128. return new F.$p(a)
  18129. };
  18130. F.DJ = {
  18131. Ta: F.$p.prototype.pa,
  18132. reverse: function() {
  18133. return F.DJ
  18134. }
  18135. };
  18136. F.z$ = function() {
  18137. return F.DJ
  18138. };
  18139. F.Zp = F.Pa.extend({
  18140. pa: function(a) {
  18141. a *= 2;
  18142. if (1 > a) return 0.5 * a * a * a * a;
  18143. a -= 2;
  18144. return -0.5 * (a * a * a * a - 2)
  18145. },
  18146. update: function(a) {
  18147. this.s.update(this.pa(a))
  18148. },
  18149. l: function() {
  18150. var a = new F.Zp;
  18151. a.ba(this.s.l());
  18152. return a
  18153. },
  18154. reverse: function() {
  18155. return F.Zp.create(this.s.reverse())
  18156. }
  18157. });
  18158. F.Zp.create = function(a) {
  18159. return new F.Zp(a)
  18160. };
  18161. F.CJ = {
  18162. Ta: F.Zp.prototype.pa,
  18163. reverse: function() {
  18164. return F.CJ
  18165. }
  18166. };
  18167. F.y$ = function() {
  18168. return F.CJ
  18169. };
  18170. F.aq = F.Pa.extend({
  18171. pa: function(a) {
  18172. return a * a * a * a * a
  18173. },
  18174. update: function(a) {
  18175. this.s.update(this.pa(a))
  18176. },
  18177. l: function() {
  18178. var a = new F.aq;
  18179. a.ba(this.s.l());
  18180. return a
  18181. },
  18182. reverse: function() {
  18183. return F.aq.create(this.s.reverse())
  18184. }
  18185. });
  18186. F.aq.create = function(a) {
  18187. return new F.aq(a)
  18188. };
  18189. F.EJ = {
  18190. Ta: F.aq.prototype.pa,
  18191. reverse: function() {
  18192. return F.EJ
  18193. }
  18194. };
  18195. F.A$ = function() {
  18196. return F.EJ
  18197. };
  18198. F.cq = F.Pa.extend({
  18199. pa: function(a) {
  18200. a -= 1;
  18201. return a * a * a * a * a + 1
  18202. },
  18203. update: function(a) {
  18204. this.s.update(this.pa(a))
  18205. },
  18206. l: function() {
  18207. var a = new F.cq;
  18208. a.ba(this.s.l());
  18209. return a
  18210. },
  18211. reverse: function() {
  18212. return F.cq.create(this.s.reverse())
  18213. }
  18214. });
  18215. F.cq.create = function(a) {
  18216. return new F.cq(a)
  18217. };
  18218. F.GJ = {
  18219. Ta: F.cq.prototype.pa,
  18220. reverse: function() {
  18221. return F.GJ
  18222. }
  18223. };
  18224. F.C$ = function() {
  18225. return F.GJ
  18226. };
  18227. F.bq = F.Pa.extend({
  18228. pa: function(a) {
  18229. a *= 2;
  18230. if (1 > a) return 0.5 * a * a * a * a * a;
  18231. a -= 2;
  18232. return 0.5 * (a * a * a * a * a + 2)
  18233. },
  18234. update: function(a) {
  18235. this.s.update(this.pa(a))
  18236. },
  18237. l: function() {
  18238. var a = new F.bq;
  18239. a.ba(this.s.l());
  18240. return a
  18241. },
  18242. reverse: function() {
  18243. return F.bq.create(this.s.reverse())
  18244. }
  18245. });
  18246. F.bq.create = function(a) {
  18247. return new F.bq(a)
  18248. };
  18249. F.FJ = {
  18250. Ta: F.bq.prototype.pa,
  18251. reverse: function() {
  18252. return F.FJ
  18253. }
  18254. };
  18255. F.B$ = function() {
  18256. return F.FJ
  18257. };
  18258. F.Op = F.Pa.extend({
  18259. pa: function(a) {
  18260. return -1 * (Math.sqrt(1 - a * a) - 1)
  18261. },
  18262. update: function(a) {
  18263. this.s.update(this.pa(a))
  18264. },
  18265. l: function() {
  18266. var a = new F.Op;
  18267. a.ba(this.s.l());
  18268. return a
  18269. },
  18270. reverse: function() {
  18271. return F.Op.create(this.s.reverse())
  18272. }
  18273. });
  18274. F.Op.create = function(a) {
  18275. return new F.Op(a)
  18276. };
  18277. F.nJ = {
  18278. Ta: F.Op.prototype.pa,
  18279. reverse: function() {
  18280. return F.nJ
  18281. }
  18282. };
  18283. F.l$ = function() {
  18284. return F.nJ
  18285. };
  18286. F.Qp = F.Pa.extend({
  18287. pa: function(a) {
  18288. a -= 1;
  18289. return Math.sqrt(1 - a * a)
  18290. },
  18291. update: function(a) {
  18292. this.s.update(this.pa(a))
  18293. },
  18294. l: function() {
  18295. var a = new F.Qp;
  18296. a.ba(this.s.l());
  18297. return a
  18298. },
  18299. reverse: function() {
  18300. return F.Qp.create(this.s.reverse())
  18301. }
  18302. });
  18303. F.Qp.create = function(a) {
  18304. return new F.Qp(a)
  18305. };
  18306. F.pJ = {
  18307. Ta: F.Qp.prototype.pa,
  18308. reverse: function() {
  18309. return F.pJ
  18310. }
  18311. };
  18312. F.n$ = function() {
  18313. return F.pJ
  18314. };
  18315. F.Pp = F.Pa.extend({
  18316. pa: function(a) {
  18317. a *= 2;
  18318. if (1 > a) return -0.5 * (Math.sqrt(1 - a * a) - 1);
  18319. a -= 2;
  18320. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  18321. },
  18322. update: function(a) {
  18323. this.s.update(this.pa(a))
  18324. },
  18325. l: function() {
  18326. var a = new F.Pp;
  18327. a.ba(this.s.l());
  18328. return a
  18329. },
  18330. reverse: function() {
  18331. return F.Pp.create(this.s.reverse())
  18332. }
  18333. });
  18334. F.Pp.create = function(a) {
  18335. return new F.Pp(a)
  18336. };
  18337. F.oJ = {
  18338. Ta: F.Pp.prototype.pa,
  18339. reverse: function() {
  18340. return F.oJ
  18341. }
  18342. };
  18343. F.m$ = function() {
  18344. return F.oJ
  18345. };
  18346. F.Rp = F.Pa.extend({
  18347. pa: function(a) {
  18348. return a * a * a
  18349. },
  18350. update: function(a) {
  18351. this.s.update(this.pa(a))
  18352. },
  18353. l: function() {
  18354. var a = new F.Rp;
  18355. a.ba(this.s.l());
  18356. return a
  18357. },
  18358. reverse: function() {
  18359. return F.Rp.create(this.s.reverse())
  18360. }
  18361. });
  18362. F.Rp.create = function(a) {
  18363. return new F.Rp(a)
  18364. };
  18365. F.qJ = {
  18366. Ta: F.Rp.prototype.pa,
  18367. reverse: function() {
  18368. return F.qJ
  18369. }
  18370. };
  18371. F.o$ = function() {
  18372. return F.qJ
  18373. };
  18374. F.Tp = F.Pa.extend({
  18375. pa: function(a) {
  18376. a -= 1;
  18377. return a * a * a + 1
  18378. },
  18379. update: function(a) {
  18380. this.s.update(this.pa(a))
  18381. },
  18382. l: function() {
  18383. var a = new F.Tp;
  18384. a.ba(this.s.l());
  18385. return a
  18386. },
  18387. reverse: function() {
  18388. return F.Tp.create(this.s.reverse())
  18389. }
  18390. });
  18391. F.Tp.create = function(a) {
  18392. return new F.Tp(a)
  18393. };
  18394. F.sJ = {
  18395. Ta: F.Tp.prototype.pa,
  18396. reverse: function() {
  18397. return F.sJ
  18398. }
  18399. };
  18400. F.q$ = function() {
  18401. return F.sJ
  18402. };
  18403. F.Sp = F.Pa.extend({
  18404. pa: function(a) {
  18405. a *= 2;
  18406. if (1 > a) return 0.5 * a * a * a;
  18407. a -= 2;
  18408. return 0.5 * (a * a * a + 2)
  18409. },
  18410. update: function(a) {
  18411. this.s.update(this.pa(a))
  18412. },
  18413. l: function() {
  18414. var a = new F.Sp;
  18415. a.ba(this.s.l());
  18416. return a
  18417. },
  18418. reverse: function() {
  18419. return F.Sp.create(this.s.reverse())
  18420. }
  18421. });
  18422. F.Sp.create = function(a) {
  18423. return new F.Sp(a)
  18424. };
  18425. F.rJ = {
  18426. Ta: F.Sp.prototype.pa,
  18427. reverse: function() {
  18428. return F.rJ
  18429. }
  18430. };
  18431. F.p$ = function() {
  18432. return F.rJ
  18433. };
  18434. F.bE = function(a, c, d, e, f, g) {
  18435. var h = g * g,
  18436. m = h * g,
  18437. n = (1 - f) / 2;
  18438. f = n * (-m + 2 * h - g);
  18439. var s = n * (-m + h) + (2 * m - 3 * h + 1);
  18440. g = n * (m - 2 * h + g) + (-2 * m + 3 * h);
  18441. h = n * (m - h);
  18442. return F.d(a.x * f + c.x * s + d.x * g + e.x * h, a.y * f + c.y * s + d.y * g + e.y * h)
  18443. };
  18444. F.BO = function(a) {
  18445. for (var c = [], d = a.length - 1; 0 <= d; d--) c.push(F.d(a[d].x, a[d].y));
  18446. return c
  18447. };
  18448. F.Ow = function(a) {
  18449. for (var c = [], d = 0; d < a.length; d++) c.push(F.d(a[d].x, a[d].y));
  18450. return c
  18451. };
  18452. F.dd = function(a, c) {
  18453. var d = Math.min(a.length - 1, Math.max(c, 0));
  18454. return a[d]
  18455. };
  18456. F.zha = function(a) {
  18457. for (var c = a.length, d = 0 | c / 2, e = 0; e < d; ++e) {
  18458. var f = a[e];
  18459. a[e] = a[c - e - 1];
  18460. a[c - e - 1] = f
  18461. }
  18462. };
  18463. F.Vg = F.z.extend({
  18464. jh: q,
  18465. cJ: 0,
  18466. no: 0,
  18467. Tc: q,
  18468. II: q,
  18469. ctor: function(a, c, d) {
  18470. F.z.prototype.ctor.call(this);
  18471. this.jh = [];
  18472. d !== k && this.f(a, c, d)
  18473. },
  18474. f: function(a, c, d) {
  18475. (!c || 0 == c.length) && b("Invalid configuration. It must at least have one control point");
  18476. return F.z.prototype.f.call(this, a) ? (this.u3(c), this.no = d, p) : r
  18477. },
  18478. l: function() {
  18479. var a = new F.Vg;
  18480. a.f(this.p, F.Ow(this.jh), this.no);
  18481. return a
  18482. },
  18483. A: function(a) {
  18484. F.z.prototype.A.call(this, a);
  18485. this.cJ = 1 / (this.jh.length - 1);
  18486. this.Tc = F.d(this.target.Re(), this.target.Gg());
  18487. this.II = F.d(0, 0)
  18488. },
  18489. update: function(a) {
  18490. a = this.gd(a);
  18491. var c, d = this.jh;
  18492. if (1 == a) c = d.length - 1, a = 1;
  18493. else {
  18494. var e = this.cJ;
  18495. c = 0 | a / e;
  18496. a = (a - e * c) / e
  18497. }
  18498. c = F.bE(F.dd(d, c - 1), F.dd(d, c - 0), F.dd(d, c + 1), F.dd(d, c + 2), this.no, a);
  18499. if (F.Lt && (d = this.target.Re() - this.Tc.x, a = this.target.Gg() - this.Tc.y, 0 != d || 0 != a)) e = this.II, d = e.x + d, a = e.y + a, e.x = d, e.y = a, c.x += d, c.y += a;
  18500. this.FP(c)
  18501. },
  18502. reverse: function() {
  18503. var a = F.BO(this.jh);
  18504. return F.Vg.create(this.p, a, this.no)
  18505. },
  18506. FP: function(a) {
  18507. this.target.G(a);
  18508. this.Tc = a
  18509. },
  18510. Tba: A("jh"),
  18511. u3: y("jh")
  18512. });
  18513. F.Vg.create = function(a, c, d) {
  18514. return new F.Vg(a, c, d)
  18515. };
  18516. F.kl = F.Vg.extend({
  18517. Fc: q,
  18518. ctor: function(a, c, d) {
  18519. F.Vg.prototype.ctor.call(this);
  18520. this.Fc = F.d(0, 0);
  18521. d !== k && this.f(a, c, d)
  18522. },
  18523. A: function(a) {
  18524. F.Vg.prototype.A.call(this, a);
  18525. this.Fc.x = a.Re();
  18526. this.Fc.y = a.Gg()
  18527. },
  18528. reverse: function() {
  18529. for (var a = this.jh.slice(), c, d = a[0], e = 1; e < a.length; ++e) c = a[e], a[e] = F.Gd(c, d), d = c;
  18530. a = F.BO(a);
  18531. d = a[a.length - 1];
  18532. a.pop();
  18533. d.x = -d.x;
  18534. d.y = -d.y;
  18535. a.unshift(d);
  18536. for (e = 1; e < a.length; ++e) c = a[e], c.x = -c.x, c.y = -c.y, c.x += d.x, c.y += d.y, d = a[e] = c;
  18537. return F.kl.create(this.p, a, this.no)
  18538. },
  18539. FP: function(a) {
  18540. var c = this.Fc,
  18541. d =
  18542. a.x + c.x;
  18543. a = a.y + c.y;
  18544. this.Tc.x = d;
  18545. this.Tc.y = a;
  18546. this.target.G(d, a)
  18547. },
  18548. l: function() {
  18549. var a = new F.kl;
  18550. a.f(this.p, F.Ow(this.jh), this.no);
  18551. return a
  18552. }
  18553. });
  18554. F.kl.create = function(a, c, d) {
  18555. return new F.kl(a, c, d)
  18556. };
  18557. F.Jt = F.Vg.extend({
  18558. ctor: function(a, c) {
  18559. c && this.f(a, c)
  18560. },
  18561. f: function(a, c) {
  18562. return F.Vg.prototype.f.call(this, a, c, 0.5)
  18563. },
  18564. l: function() {
  18565. var a = new F.Jt;
  18566. a.f(this.p, F.Ow(this.jh));
  18567. return a
  18568. }
  18569. });
  18570. F.Jt.create = function(a, c) {
  18571. return new F.Jt(a, c)
  18572. };
  18573. F.It = F.kl.extend({
  18574. ctor: function(a, c) {
  18575. F.kl.prototype.ctor.call(this);
  18576. c && this.f(a, c)
  18577. },
  18578. f: function(a, c) {
  18579. return F.Vg.prototype.f.call(this, a, c, 0.5)
  18580. },
  18581. l: function() {
  18582. var a = new F.It;
  18583. a.f(this.p, F.Ow(this.jh));
  18584. return a
  18585. }
  18586. });
  18587. F.It.create = function(a, c) {
  18588. return new F.It(a, c)
  18589. };
  18590. F.f5 = F.ma.extend({
  18591. E4: t()
  18592. });
  18593. F.Fp = F.z.extend({
  18594. key: "",
  18595. Tw: 0,
  18596. ty: 0,
  18597. ys: 0,
  18598. ctor: function(a, c, d, e) {
  18599. F.z.prototype.ctor.call(this);
  18600. this.key = "";
  18601. e !== k && this.f(a, c, d, e)
  18602. },
  18603. f: function(a, c, d, e) {
  18604. return F.z.prototype.f.call(this, a) ? (this.key = c, this.ty = e, this.Tw = d, p) : r
  18605. },
  18606. A: function(a) {
  18607. (!a || !a.E4) && b("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function");
  18608. F.z.prototype.A.call(this, a);
  18609. this.ys = this.ty - this.Tw
  18610. },
  18611. update: t(),
  18612. reverse: function() {
  18613. return F.Fp.create(this.duration, this.key, this.ty, this.Tw)
  18614. },
  18615. l: function() {
  18616. var a = new F.Fp;
  18617. a.f(this.p, this.key, this.Tw, this.ty);
  18618. return a
  18619. }
  18620. });
  18621. F.Fp.create = function(a, c, d, e) {
  18622. var f = new F.Fp;
  18623. return f.f(a, c, d, e) ? f : q
  18624. };
  18625. F.action = F.fd.create;
  18626. F.speed = F.wq.create;
  18627. F.daa = F.gu.create;
  18628. F.jga = F.$d.create;
  18629. F.q9 = F.Vg.create;
  18630. F.p9 = F.kl.create;
  18631. F.s9 = F.Jt.create;
  18632. F.r9 = F.It.create;
  18633. F.show = F.xf.create;
  18634. F.bda = F.Xg.create;
  18635. F.wka = F.Fq.create;
  18636. F.qha = F.pq.create;
  18637. F.baa = F.eq.create;
  18638. F.caa = F.fq.create;
  18639. F.Gga = F.mu.create;
  18640. F.fZ = F.Pb.create;
  18641. F.G8 = F.z.create;
  18642. F.GO = F.Ha.create;
  18643. F.repeat = F.qq.create;
  18644. F.B2 = F.rq.create;
  18645. F.Zja = F.xe.create;
  18646. F.Eha = F.ou.create;
  18647. F.Dha = F.fn.create;
  18648. F.moveBy = F.wf.create;
  18649. F.moveTo = F.jq.create;
  18650. F.Xja = F.Sj.create;
  18651. F.Wja = F.vq.create;
  18652. F.Ida = F.Oh.create;
  18653. F.Jda = F.hu.create;
  18654. F.h9 = F.Mj.create;
  18655. F.i9 = F.Ht.create;
  18656. F.DO = F.sd.create;
  18657. F.Hha = F.gn.create;
  18658. F.blink = F.Ip.create;
  18659. F.Y$ = F.Ki.create;
  18660. F.W$ = F.Xm.create;
  18661. F.X$ = F.Ym.create;
  18662. F.uka = F.Bu.create;
  18663. F.tka = F.Eq.create;
  18664. F.M9 = F.Oc.create;
  18665. F.Aha = F.sl.create;
  18666. F.b9 = F.Gp.create;
  18667. F.lka = F.zu.create;
  18668. F.H8 = F.Fp.create;
  18669. F.ic = F.z.extend({
  18670. X: q,
  18671. ctor: function(a, c) {
  18672. F.NA();
  18673. F.z.prototype.ctor.call(this);
  18674. this.X = F.size(0, 0);
  18675. c && this.f(a, c)
  18676. },
  18677. l: function() {
  18678. var a = new F.ic,
  18679. c = this.X;
  18680. a.f(this.p, F.size(c.width, c.height));
  18681. return a
  18682. },
  18683. A: function(a) {
  18684. F.z.prototype.A.call(this, a);
  18685. var c = this.Cs(),
  18686. d = this.target;
  18687. (a = d.grid) && 0 < a.li ? (c = a.z_(), a.tf() && (c.width == this.X.width && c.height == this.X.height) && a.HF()) : (a && a.tf() && a.setActive(r), d.grid = c, d.grid.setActive(p))
  18688. },
  18689. reverse: function() {
  18690. return F.sl.create(this)
  18691. },
  18692. f: function(a, c) {
  18693. return F.z.prototype.f.call(this,
  18694. a) ? (this.X.width = c.width, this.X.height = c.height, p) : r
  18695. },
  18696. Cs: function() {
  18697. F.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  18698. }
  18699. });
  18700. F.ic.create = function(a, c) {
  18701. return new F.ic(a, c)
  18702. };
  18703. F.Xc = F.ic.extend({
  18704. Cs: function() {
  18705. return F.Vy.create(this.X)
  18706. },
  18707. KP: function(a) {
  18708. return this.target.grid.KP(a)
  18709. },
  18710. Lc: function(a) {
  18711. return this.target.grid.Lc(a)
  18712. },
  18713. Id: function(a, c) {
  18714. this.target.grid.Id(a, c)
  18715. }
  18716. });
  18717. F.Xc.create = function(a, c) {
  18718. return new F.Xc(a, c)
  18719. };
  18720. F.sc = F.ic.extend({
  18721. uP: function(a) {
  18722. return this.target.grid.uP(a)
  18723. },
  18724. Zf: function(a) {
  18725. return this.target.grid.Zf(a)
  18726. },
  18727. Ye: function(a, c) {
  18728. this.target.grid.Ye(a, c)
  18729. },
  18730. Cs: function() {
  18731. return F.Xz.create(this.X)
  18732. }
  18733. });
  18734. F.sc.create = function(a, c) {
  18735. return new F.sc(a, c)
  18736. };
  18737. F.ul = F.ue.extend({
  18738. A: function(a) {
  18739. F.ue.prototype.A.call(this, a);
  18740. (a = this.target.grid) && a.tf() && a.setActive(r)
  18741. }
  18742. });
  18743. F.ul.create = function() {
  18744. return new F.ul
  18745. };
  18746. F.xH = F.ue.extend({
  18747. dc: q,
  18748. ctor: function(a) {
  18749. F.ue.prototype.ctor.call(this);
  18750. a !== k && this.J0(a)
  18751. },
  18752. J0: function(a) {
  18753. this.dc = a;
  18754. return p
  18755. },
  18756. A: function(a) {
  18757. F.ue.prototype.A.call(this, a);
  18758. this.target.grid && this.target.grid.tf() && this.target.grid.y3(this.target.grid.li + this.dc)
  18759. }
  18760. });
  18761. F.xH.create = function(a) {
  18762. return new F.xH(a)
  18763. };
  18764. F.yI = F.Xc.extend({
  18765. pf: 0,
  18766. ab: 0,
  18767. bb: 0,
  18768. ctor: function(a, c, d, e) {
  18769. F.ic.prototype.ctor.call(this);
  18770. e !== k && this.f(a, c, d, e)
  18771. },
  18772. Oo: A("ab"),
  18773. np: y("ab"),
  18774. vm: A("bb"),
  18775. Km: y("bb"),
  18776. f: function(a, c, d, e) {
  18777. return F.Xc.prototype.f.call(this, a, c) ? (this.pf = d, this.ab = e, this.bb = 1, p) : r
  18778. },
  18779. update: function(a) {
  18780. for (var c = this.X, d = this.ab, e = F.d(0, 0), f = this.bb, g = this.pf, h = 0; h < c.width + 1; ++h)
  18781. for (var m = 0; m < c.height + 1; ++m) {
  18782. e.x = h;
  18783. e.y = m;
  18784. var n = this.Lc(e);
  18785. n.e += Math.sin(2 * Math.PI * a * g + 0.01 * (n.y + n.x)) * d * f;
  18786. this.Id(e, n)
  18787. }
  18788. }
  18789. });
  18790. F.yI.create = function(a, c, d, e) {
  18791. return new F.yI(a, c, d, e)
  18792. };
  18793. F.Uy = F.Xc.extend({
  18794. ctor: function(a) {
  18795. a !== k ? F.ic.prototype.ctor.call(this, a, F.size(1, 1)) : F.ic.prototype.ctor.call(this)
  18796. },
  18797. f: function(a) {
  18798. return F.Xc.prototype.f.call(this, a, F.size(1, 1))
  18799. },
  18800. px: function(a, c) {
  18801. return 1 != a.width || 1 != a.height ? (F.log("Grid size must be (1,1)"), r) : F.Xc.prototype.f.call(this, c, a)
  18802. },
  18803. update: function(a) {
  18804. var c = Math.PI * a;
  18805. a = Math.sin(c);
  18806. var d = Math.cos(c / 2),
  18807. c = new F.jc,
  18808. e = F.d(0, 0);
  18809. e.x = e.y = 1;
  18810. var f = this.Lc(e);
  18811. e.x = e.y = 0;
  18812. var e = this.Lc(e),
  18813. g = f.x,
  18814. h = e.x,
  18815. m, n;
  18816. g > h ? (f = F.d(0, 0), e = F.d(0, 1), m = F.d(1, 0), n =
  18817. F.d(1, 1)) : (m = F.d(0, 0), n = F.d(0, 1), f = F.d(1, 0), e = F.d(1, 1), g = h);
  18818. c.x = g - g * d;
  18819. c.e = Math.abs(parseFloat(g * a / 4));
  18820. a = this.Lc(f);
  18821. a.x = c.x;
  18822. a.e += c.e;
  18823. this.Id(f, a);
  18824. a = this.Lc(e);
  18825. a.x = c.x;
  18826. a.e += c.e;
  18827. this.Id(e, a);
  18828. a = this.Lc(m);
  18829. a.x -= c.x;
  18830. a.e -= c.e;
  18831. this.Id(m, a);
  18832. a = this.Lc(n);
  18833. a.x -= c.x;
  18834. a.e -= c.e;
  18835. this.Id(n, a)
  18836. }
  18837. });
  18838. F.Uy.create = function(a) {
  18839. return new F.Uy(a)
  18840. };
  18841. F.OG = F.Uy.extend({
  18842. ctor: function(a) {
  18843. a !== k ? F.ic.prototype.ctor.call(this, a, F.size(1, 1)) : F.ic.prototype.ctor.call(this)
  18844. },
  18845. update: function(a) {
  18846. var c = Math.PI * a;
  18847. a = Math.sin(c);
  18848. var d = Math.cos(c / 2),
  18849. c = new F.jc,
  18850. e = F.d(0, 0);
  18851. e.x = e.y = 1;
  18852. var f = this.Lc(e);
  18853. e.x = e.y = 0;
  18854. var e = this.Lc(e),
  18855. g = f.y,
  18856. h = e.y,
  18857. m, n;
  18858. g > h ? (f = F.d(0, 0), e = F.d(0, 1), m = F.d(1, 0), n = F.d(1, 1)) : (e = F.d(0, 0), f = F.d(0, 1), n = F.d(1, 0), m = F.d(1, 1), g = h);
  18859. c.y = g - g * d;
  18860. c.e = Math.abs(parseFloat(g * a) / 4);
  18861. a = this.Lc(f);
  18862. a.y = c.y;
  18863. a.e += c.e;
  18864. this.Id(f, a);
  18865. a = this.Lc(e);
  18866. a.y -= c.y;
  18867. a.e -= c.e;
  18868. this.Id(e,
  18869. a);
  18870. a = this.Lc(m);
  18871. a.y = c.y;
  18872. a.e += c.e;
  18873. this.Id(m, a);
  18874. a = this.Lc(n);
  18875. a.y -= c.y;
  18876. a.e -= c.e;
  18877. this.Id(n, a)
  18878. }
  18879. });
  18880. F.OG.create = function(a) {
  18881. return new F.OG(a)
  18882. };
  18883. F.UG = F.Xc.extend({
  18884. za: q,
  18885. Ge: 0,
  18886. Hv: 0,
  18887. WU: r,
  18888. jb: r,
  18889. ctor: function(a, c, d, e) {
  18890. F.ic.prototype.ctor.call(this);
  18891. this.za = F.d(0, 0);
  18892. e !== k && this.f(a, c, d, e)
  18893. },
  18894. rba: A("Hv"),
  18895. Dia: y("Hv"),
  18896. bia: y("WU"),
  18897. Xw: A("za"),
  18898. G: function(a) {
  18899. F.yF(a, this.za) || (this.za.x = a.x, this.za.y = a.y, this.jb = p)
  18900. },
  18901. f: function(a, c, d, e) {
  18902. return F.Xc.prototype.f.call(this, a, c) ? (this.G(d), this.Ge = e, this.Hv = 0.7, this.jb = p) : r
  18903. },
  18904. update: function() {
  18905. if (this.jb) {
  18906. for (var a = this.X.width, c = this.X.height, d = this.Ge, e = this.Hv, f = F.d(0, 0), g = F.d(0, 0), h, m, n, s = 0; s < a + 1; ++s)
  18907. for (var u =
  18908. 0; u < c + 1; ++u) f.x = s, f.y = u, h = this.Lc(f), g.x = this.za.x - h.x, g.y = this.za.y - h.y, m = F.Yk(g), m < d && (m = d - m, m /= d, 0 == m && (m = 0.001), m = Math.log(m) * e, n = Math.exp(m) * d, m = F.Yk(g), 0 < m && (g.x /= m, g.y /= m, g.x *= n, g.y *= n, h.e += F.Yk(g) * e)), this.Id(f, h);
  18909. this.jb = r
  18910. }
  18911. }
  18912. });
  18913. F.UG.create = function(a, c, d, e) {
  18914. return new F.UG(a, c, d, e)
  18915. };
  18916. F.yH = F.Xc.extend({
  18917. za: q,
  18918. Ge: 0,
  18919. pf: 0,
  18920. ab: 0,
  18921. bb: 0,
  18922. ctor: function(a, c, d, e, f, g) {
  18923. F.ic.prototype.ctor.call(this);
  18924. this.za = F.d(0, 0);
  18925. g !== k && this.f(a, c, d, e, f, g)
  18926. },
  18927. Xw: A("za"),
  18928. G: function(a) {
  18929. this.za.x = a.x;
  18930. this.za.y = a.y
  18931. },
  18932. Oo: A("ab"),
  18933. np: y("ab"),
  18934. vm: A("bb"),
  18935. Km: y("bb"),
  18936. f: function(a, c, d, e, f, g) {
  18937. return F.Xc.prototype.f.call(this, a, c) ? (this.G(d), this.Ge = e, this.pf = f, this.ab = g, this.bb = 1, p) : r
  18938. },
  18939. update: function(a) {
  18940. for (var c = this.X.width, d = this.X.height, e = F.d(0, 0), f = this.Ge, g = this.pf, h = this.ab, m = this.bb, n, s, u = F.d(0, 0), v = 0; v < c + 1; ++v)
  18941. for (var x =
  18942. 0; x < d + 1; ++x) e.x = v, e.y = x, n = this.Lc(e), u.x = this.za.x - n.x, u.y = this.za.y - n.y, s = F.Yk(u), s < f && (s = f - s, n.e += Math.sin(2 * a * Math.PI * g + 0.1 * s) * h * m * Math.pow(s / f, 2)), this.Id(e, n)
  18943. }
  18944. });
  18945. F.yH.create = function(a, c, d, e, f, g) {
  18946. return new F.yH(a, c, d, e, f, g)
  18947. };
  18948. F.CH = F.Xc.extend({
  18949. Ak: 0,
  18950. Sr: r,
  18951. ctor: function(a, c, d, e) {
  18952. F.ic.prototype.ctor.call(this);
  18953. e !== k && this.f(a, c, d, e)
  18954. },
  18955. f: function(a, c, d, e) {
  18956. return F.Xc.prototype.f.call(this, a, c) ? (this.Ak = d, this.Sr = e, p) : r
  18957. },
  18958. update: function() {
  18959. for (var a = this.X.width, c = this.X.height, d = this.Ak, e = this.Sr, f = F.d(0, 0), g, h = 0; h < a + 1; ++h)
  18960. for (var m = 0; m < c + 1; ++m) f.x = h, f.y = m, g = this.Lc(f), g.x += F.Bb() % (2 * d) - d, g.y += F.Bb() % (2 * d) - d, e && (g.e += F.Bb() % (2 * d) - d), this.Id(f, g)
  18961. }
  18962. });
  18963. F.CH.create = function(a, c, d, e) {
  18964. return new F.CH(a, c, d, e)
  18965. };
  18966. F.VG = F.Xc.extend({
  18967. pf: 0,
  18968. ab: 0,
  18969. bb: 0,
  18970. ctor: function(a, c, d, e) {
  18971. F.ic.prototype.ctor.call(this);
  18972. e !== k && this.f(a, c, d, e)
  18973. },
  18974. Oo: A("ab"),
  18975. np: y("ab"),
  18976. vm: A("bb"),
  18977. Km: y("bb"),
  18978. f: function(a, c, d, e) {
  18979. return F.Xc.prototype.f.call(this, a, c) ? (this.pf = d, this.ab = e, this.bb = 1, p) : r
  18980. },
  18981. update: function(a) {
  18982. for (var c = this.X.width, d = this.X.height, e = F.d(0, 0), f = this.pf, g = this.ab, h = this.bb, m, n = 1; n < c; ++n)
  18983. for (var s = 1; s < d; ++s) e.x = n, e.y = s, m = this.Lc(e), m.x += Math.sin(2 * a * Math.PI * f + 0.01 * m.x) * g * h, m.y += Math.sin(2 * a * Math.PI * f + 0.01 * m.y) * g * h, this.Id(e,
  18984. m)
  18985. }
  18986. });
  18987. F.VG.create = function(a, c, d, e) {
  18988. return new F.VG(a, c, d, e)
  18989. };
  18990. F.xI = F.Xc.extend({
  18991. pf: 0,
  18992. ab: 0,
  18993. bb: 0,
  18994. NL: r,
  18995. eK: r,
  18996. ctor: function(a, c, d, e, f, g) {
  18997. F.ic.prototype.ctor.call(this);
  18998. g !== k && this.f(a, c, d, e, f, g)
  18999. },
  19000. Oo: A("ab"),
  19001. np: y("ab"),
  19002. vm: A("bb"),
  19003. Km: y("bb"),
  19004. f: function(a, c, d, e, f, g) {
  19005. return F.Xc.prototype.f.call(this, a, c) ? (this.pf = d, this.ab = e, this.bb = 1, this.eK = f, this.NL = g, p) : r
  19006. },
  19007. update: function(a) {
  19008. for (var c = this.X.width, d = this.X.height, e = F.d(0, 0), f = this.NL, g = this.eK, h = this.pf, m = this.ab, n = this.bb, s, u = 0; u < c + 1; ++u)
  19009. for (var v = 0; v < d + 1; ++v) e.x = u, e.y = v, s = this.Lc(e), f && (s.x += Math.sin(2 * a * Math.PI *
  19010. h + 0.01 * s.y) * m * n), g && (s.y += Math.sin(2 * a * Math.PI * h + 0.01 * s.x) * m * n), this.Id(e, s)
  19011. }
  19012. });
  19013. F.xI.create = function(a, c, d, e, f, g) {
  19014. return new F.xI(a, c, d, e, f, g)
  19015. };
  19016. F.sI = F.Xc.extend({
  19017. za: q,
  19018. BL: 0,
  19019. ab: 0,
  19020. bb: 0,
  19021. ctor: function(a, c, d, e, f) {
  19022. F.ic.prototype.ctor.call(this);
  19023. this.za = F.d(0, 0);
  19024. f !== k && this.f(a, c, d, e, f)
  19025. },
  19026. Xw: A("za"),
  19027. G: function(a) {
  19028. this.za.x = a.x;
  19029. this.za.y = a.y
  19030. },
  19031. Oo: A("ab"),
  19032. np: y("ab"),
  19033. vm: A("bb"),
  19034. Km: y("bb"),
  19035. f: function(a, c, d, e, f) {
  19036. return F.Xc.prototype.f.call(this, a, c) ? (this.G(d), this.BL = e, this.ab = f, this.bb = 1, p) : r
  19037. },
  19038. update: function(a) {
  19039. for (var c = this.za, d = this.X.width, e = this.X.height, f = F.d(0, 0), g = 0.1 * this.ab * this.bb, h = this.BL, m, n, s, u = F.d(0, 0), v = 0; v < d + 1; ++v)
  19040. for (var x = 0; x < e +
  19041. 1; ++x) f.x = v, f.y = x, m = this.Lc(f), u.x = v - d / 2, u.y = x - e / 2, n = F.Yk(u) * Math.cos(Math.PI / 2 + 2 * a * Math.PI * h) * g, s = Math.sin(n) * (m.y - c.y) + Math.cos(n) * (m.x - c.x), n = Math.cos(n) * (m.y - c.y) - Math.sin(n) * (m.x - c.x), m.x = c.x + s, m.y = c.y + n, this.Id(f, m)
  19042. }
  19043. });
  19044. F.sI.create = function(a, c, d, e, f) {
  19045. return new F.sI(a, c, d, e, f)
  19046. };
  19047. F.DH = F.sc.extend({
  19048. Ak: 0,
  19049. Sr: r,
  19050. ctor: function(a, c, d, e) {
  19051. F.ic.prototype.ctor.call(this);
  19052. e !== k && this.f(a, c, d, e)
  19053. },
  19054. f: function(a, c, d, e) {
  19055. return F.sc.prototype.f.call(this, a, c) ? (this.Ak = d, this.Sr = e, p) : r
  19056. },
  19057. update: function() {
  19058. for (var a = this.X, c = this.Ak, d = F.d(0, 0), e = 0; e < a.width; ++e)
  19059. for (var f = 0; f < a.height; ++f) {
  19060. d.x = e;
  19061. d.y = f;
  19062. var g = this.Zf(d);
  19063. g.F.x += F.Bb() % (2 * c) - c;
  19064. g.O.x += F.Bb() % (2 * c) - c;
  19065. g.N.x += F.Bb() % (2 * c) - c;
  19066. g.K.x += F.Bb() % (2 * c) - c;
  19067. g.F.y += F.Bb() % (2 * c) - c;
  19068. g.O.y += F.Bb() % (2 * c) - c;
  19069. g.N.y += F.Bb() % (2 * c) - c;
  19070. g.K.y += F.Bb() % (2 * c) - c;
  19071. this.Sr &&
  19072. (g.F.e += F.Bb() % (2 * c) - c, g.O.e += F.Bb() % (2 * c) - c, g.N.e += F.Bb() % (2 * c) - c, g.K.e += F.Bb() % (2 * c) - c);
  19073. this.Ye(d, g)
  19074. }
  19075. }
  19076. });
  19077. F.DH.create = function(a, c, d, e) {
  19078. return new F.DH(a, c, d, e)
  19079. };
  19080. F.EH = F.sc.extend({
  19081. Ak: 0,
  19082. ZB: r,
  19083. rL: r,
  19084. ctor: function(a, c, d, e) {
  19085. F.ic.prototype.ctor.call(this);
  19086. e !== k && this.f(a, c, d, e)
  19087. },
  19088. f: function(a, c, d, e) {
  19089. return F.sc.prototype.f.call(this, a, c) ? (this.ZB = r, this.Ak = d, this.rL = e, p) : r
  19090. },
  19091. update: function() {
  19092. if (this.ZB === r) {
  19093. for (var a = this.X, c = this.Ak, d, e = F.d(0, 0), f = 0; f < a.width; ++f)
  19094. for (var g = 0; g < a.height; ++g) e.x = f, e.y = g, d = this.Zf(e), d.F.x += F.Bb() % (2 * c) - c, d.O.x += F.Bb() % (2 * c) - c, d.N.x += F.Bb() % (2 * c) - c, d.K.x += F.Bb() % (2 * c) - c, d.F.y += F.Bb() % (2 * c) - c, d.O.y += F.Bb() % (2 * c) - c, d.N.y += F.Bb() % (2 * c) -
  19095. c, d.K.y += F.Bb() % (2 * c) - c, this.rL && (d.F.e += F.Bb() % (2 * c) - c, d.O.e += F.Bb() % (2 * c) - c, d.N.e += F.Bb() % (2 * c) - c, d.K.e += F.Bb() % (2 * c) - c), this.Ye(e, d);
  19096. this.ZB = p
  19097. }
  19098. }
  19099. });
  19100. F.EH.create = function(a, c, d, e) {
  19101. return new F.EH(a, c, d, e)
  19102. };
  19103. function ga() {
  19104. this.position = F.d(0, 0);
  19105. this.h4 = F.d(0, 0);
  19106. this.ys = F.d(0, 0)
  19107. }
  19108. F.FH = F.sc.extend({
  19109. HC: 0,
  19110. rj: 0,
  19111. oi: q,
  19112. Je: q,
  19113. ctor: function(a, c, d) {
  19114. F.ic.prototype.ctor.call(this);
  19115. this.oi = [];
  19116. this.Je = [];
  19117. d !== k && this.f(a, c, d)
  19118. },
  19119. f: function(a, c, d) {
  19120. return F.sc.prototype.f.call(this, a, c) ? (this.HC = d, this.oi.length = 0, this.Je.length = 0, p) : r
  19121. },
  19122. sp: function(a, c) {
  19123. for (var d = c - 1; 0 <= d; d--) {
  19124. var e = 0 | F.Bb() % (d + 1),
  19125. f = a[d];
  19126. a[d] = a[e];
  19127. a[e] = f
  19128. }
  19129. },
  19130. zE: function(a) {
  19131. var c = this.X,
  19132. d = a.width * c.height + a.height;
  19133. return F.size(this.oi[d] / c.height - a.width, this.oi[d] % c.height - a.height)
  19134. },
  19135. b2: function(a, c) {
  19136. var d = this.Zf(a),
  19137. e = this.target.grid.IE(),
  19138. f = c.position;
  19139. d.F.x += f.x * e.x;
  19140. d.F.y += f.y * e.y;
  19141. d.O.x += f.x * e.x;
  19142. d.O.y += f.y * e.y;
  19143. d.N.x += f.x * e.x;
  19144. d.N.y += f.y * e.y;
  19145. d.K.x += f.x * e.x;
  19146. d.K.y += f.y * e.y;
  19147. this.Ye(a, d)
  19148. },
  19149. A: function(a) {
  19150. F.sc.prototype.A.call(this, a);
  19151. a = this.X;
  19152. this.rj = a.width * a.height;
  19153. for (var c = this.oi, d = c.length = 0; d < this.rj; ++d) c[d] = d;
  19154. this.sp(c, this.rj);
  19155. for (var c = this.Je, d = c.length = 0, e = F.size(0, 0), f = 0; f < a.width; ++f)
  19156. for (var g = 0; g < a.height; ++g) c[d] = new ga, c[d].position = F.d(f, g), c[d].h4 = F.d(f, g), e.width = f, e.height = g, c[d].ys = this.zE(e), ++d
  19157. },
  19158. update: function(a) {
  19159. for (var c =
  19160. 0, d = this.X, e = this.Je, f, g = F.d(0, 0), h = 0; h < d.width; ++h)
  19161. for (var m = 0; m < d.height; ++m) g.x = h, g.y = m, f = e[c], f.position.x = f.ys.width * a, f.position.y = f.ys.height * a, this.b2(g, f), ++c
  19162. }
  19163. });
  19164. F.FH.create = function(a, c, d) {
  19165. return new F.FH(a, c, d)
  19166. };
  19167. F.dq = F.sc.extend({
  19168. sy: function(a, c) {
  19169. var d = this.X.width * c,
  19170. e = this.X.height * c;
  19171. return 0 == d + e ? 1 : Math.pow((a.width + a.height) / (d + e), 6)
  19172. },
  19173. oG: function(a) {
  19174. this.Ye(a, this.Zf(a))
  19175. },
  19176. nG: function(a) {
  19177. this.Ye(a, new F.nu)
  19178. },
  19179. yP: function(a, c) {
  19180. var d = this.Zf(a),
  19181. e = this.target.grid.IE();
  19182. d.F.x += e.x / 2 * (1 - c);
  19183. d.F.y += e.y / 2 * (1 - c);
  19184. d.O.x -= e.x / 2 * (1 - c);
  19185. d.O.y += e.y / 2 * (1 - c);
  19186. d.N.x += e.x / 2 * (1 - c);
  19187. d.N.y -= e.y / 2 * (1 - c);
  19188. d.K.x -= e.x / 2 * (1 - c);
  19189. d.K.y -= e.y / 2 * (1 - c);
  19190. this.Ye(a, d)
  19191. },
  19192. update: function(a) {
  19193. for (var c = this.X, d = F.d(0, 0), e = F.size(0, 0), f, g = 0; g < c.width; ++g)
  19194. for (var h =
  19195. 0; h < c.height; ++h) d.x = g, d.y = h, e.width = g, e.height = h, f = this.sy(e, a), 0 == f ? this.nG(d) : 1 > f ? this.yP(d, f) : this.oG(d)
  19196. }
  19197. });
  19198. F.dq.create = function(a, c) {
  19199. return new F.dq(a, c)
  19200. };
  19201. F.Sy = F.dq.extend({
  19202. sy: function(a, c) {
  19203. return 0 == a.width + a.height ? 1 : Math.pow((this.X.width * (1 - c) + this.X.height * (1 - c)) / (a.width + a.height), 6)
  19204. }
  19205. });
  19206. F.Sy.create = function(a, c) {
  19207. return new F.Sy(a, c)
  19208. };
  19209. F.fu = F.dq.extend({
  19210. sy: function(a, c) {
  19211. var d = this.X.height * c;
  19212. return 0 == d ? 1 : Math.pow(a.height / d, 6)
  19213. },
  19214. yP: function(a, c) {
  19215. var d = this.Zf(a),
  19216. e = this.target.grid.IE();
  19217. d.F.y += e.y / 2 * (1 - c);
  19218. d.O.y += e.y / 2 * (1 - c);
  19219. d.N.y -= e.y / 2 * (1 - c);
  19220. d.K.y -= e.y / 2 * (1 - c);
  19221. this.Ye(a, d)
  19222. }
  19223. });
  19224. F.fu.create = function(a, c) {
  19225. return new F.fu(a, c)
  19226. };
  19227. F.Ty = F.fu.extend({
  19228. sy: function(a, c) {
  19229. return 0 == a.height ? 1 : Math.pow(this.X.height * (1 - c) / a.height, 6)
  19230. }
  19231. });
  19232. F.Ty.create = function(a, c) {
  19233. return new F.Ty(a, c)
  19234. };
  19235. F.$z = F.sc.extend({
  19236. HC: q,
  19237. rj: 0,
  19238. oi: q,
  19239. ctor: function(a, c, d) {
  19240. F.ic.prototype.ctor.call(this);
  19241. this.oi = [];
  19242. c !== k && this.f(a, c, d)
  19243. },
  19244. f: function(a, c, d) {
  19245. return F.sc.prototype.f.call(this, a, c) ? (this.HC = d || 0, this.oi.length = 0, p) : r
  19246. },
  19247. sp: function(a, c) {
  19248. for (var d = c - 1; 0 <= d; d--) {
  19249. var e = 0 | F.Bb() % (d + 1),
  19250. f = a[d];
  19251. a[d] = a[e];
  19252. a[e] = f
  19253. }
  19254. },
  19255. oG: function(a) {
  19256. this.Ye(a, this.Zf(a))
  19257. },
  19258. nG: function(a) {
  19259. this.Ye(a, new F.nu)
  19260. },
  19261. A: function(a) {
  19262. F.sc.prototype.A.call(this, a);
  19263. this.rj = this.X.width * this.X.height;
  19264. a = this.oi;
  19265. for (var c = a.length = 0; c < this.rj; ++c) a[c] =
  19266. c;
  19267. this.sp(a, this.rj)
  19268. },
  19269. update: function(a) {
  19270. a = 0 | a * this.rj;
  19271. for (var c = this.X, d, e = F.d(0, 0), f = this.oi, g = 0; g < this.rj; g++) d = f[g], e.x = 0 | d / c.height, e.y = d % (0 | c.height), g < a ? this.nG(e) : this.oG(e)
  19272. }
  19273. });
  19274. F.$z.create = function(a, c, d) {
  19275. return new F.$z(a, c, d)
  19276. };
  19277. F.zI = F.sc.extend({
  19278. pf: 0,
  19279. ab: 0,
  19280. bb: 0,
  19281. ctor: function(a, c, d, e) {
  19282. F.ic.prototype.ctor.call(this);
  19283. e !== k && this.f(a, c, d, e)
  19284. },
  19285. Oo: A("ab"),
  19286. np: y("ab"),
  19287. vm: A("bb"),
  19288. Km: y("bb"),
  19289. f: function(a, c, d, e) {
  19290. return F.sc.prototype.f.call(this, a, c) ? (this.pf = d, this.ab = e, this.bb = 1, p) : r
  19291. },
  19292. update: function(a) {
  19293. for (var c = this.X, d = this.pf, e = this.ab, f = this.bb, g = F.d(0, 0), h, m = 0; m < c.width; m++)
  19294. for (var n = 0; n < c.height; n++) g.x = m, g.y = n, h = this.Zf(g), h.F.e = Math.sin(2 * a * Math.PI * d + 0.01 * (h.F.y + h.F.x)) * e * f, h.O.e = h.F.e, h.N.e = h.F.e, h.K.e = h.F.e, this.Ye(g, h)
  19295. }
  19296. });
  19297. F.zI.create = function(a, c, d, e) {
  19298. return new F.zI(a, c, d, e)
  19299. };
  19300. F.SG = F.sc.extend({
  19301. aj: 0,
  19302. ab: 0,
  19303. bb: 0,
  19304. ctor: function(a, c, d, e) {
  19305. F.ic.prototype.ctor.call(this);
  19306. e !== k && this.f(a, c, d, e)
  19307. },
  19308. Oo: A("ab"),
  19309. np: y("ab"),
  19310. vm: A("bb"),
  19311. Km: y("bb"),
  19312. f: function(a, c, d, e) {
  19313. return F.sc.prototype.f.call(this, a, c) ? (this.aj = d, this.ab = e, this.bb = 1, p) : r
  19314. },
  19315. update: function(a) {
  19316. var c = Math.sin(2 * Math.PI * a * this.aj) * this.ab * this.bb;
  19317. a = Math.sin(Math.PI * (2 * a * this.aj + 1)) * this.ab * this.bb;
  19318. for (var d = this.X, e = this.target.grid, f, g = F.d(0, 0), h = 0; h < d.width; h++)
  19319. for (var m = 0; m < d.height; m++) g.x = h, g.y = m, f = e.Zf(g), 0 == (h + m) % 2 ?
  19320. (f.F.e += c, f.O.e += c, f.N.e += c, f.K.e += c) : (f.F.e += a, f.O.e += a, f.N.e += a, f.K.e += a), e.Ye(g, f)
  19321. }
  19322. });
  19323. F.SG.create = function(a, c, d, e) {
  19324. return new F.SG(a, c, d, e)
  19325. };
  19326. F.Jz = F.sc.extend({
  19327. rX: 0,
  19328. ns: q,
  19329. ctor: function(a, c) {
  19330. F.ic.prototype.ctor.call(this);
  19331. c !== k && this.f(a, c)
  19332. },
  19333. f: function(a, c) {
  19334. this.rX = c;
  19335. return F.sc.prototype.f.call(this, a, F.size(1, c))
  19336. },
  19337. update: function(a) {
  19338. for (var c = this.X, d = this.ns.width, e, f, g = F.d(0, 0), h = 0; h < c.height; ++h) g.y = h, e = this.Zf(g), f = 1, 0 == h % 2 && (f = -1), e.F.x += f * d * a, e.O.x += f * d * a, e.N.x += f * d * a, e.K.x += f * d * a, this.Ye(g, e)
  19339. },
  19340. A: function(a) {
  19341. F.sc.prototype.A.call(this, a);
  19342. this.ns = F.I.Hs()
  19343. }
  19344. });
  19345. F.Jz.create = function(a, c) {
  19346. return new F.Jz(a, c)
  19347. };
  19348. F.Iz = F.sc.extend({
  19349. VU: 0,
  19350. ns: q,
  19351. ctor: function(a, c) {
  19352. F.ic.prototype.ctor.call(this);
  19353. c !== k && this.f(a, c)
  19354. },
  19355. f: function(a, c) {
  19356. this.VU = c;
  19357. return F.sc.prototype.f.call(this, a, F.size(c, 1))
  19358. },
  19359. update: function(a) {
  19360. for (var c = this.X.width, d = this.ns.height, e, f, g = F.d(0, 0), h = 0; h < c; ++h) g.x = h, e = this.Zf(g), f = 1, 0 == h % 2 && (f = -1), e.F.y += f * d * a, e.O.y += f * d * a, e.N.y += f * d * a, e.K.y += f * d * a, this.Ye(g, e)
  19361. },
  19362. A: function(a) {
  19363. F.sc.prototype.A.call(this, a);
  19364. this.ns = F.I.Hs()
  19365. }
  19366. });
  19367. F.Iz.create = function(a, c) {
  19368. return new F.Iz(a, c)
  19369. };
  19370. F.lu = F.Xc.extend({
  19371. update: function(a) {
  19372. var c = Math.max(0, a - 0.25),
  19373. c = -100 - 500 * c * c,
  19374. d = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a);
  19375. a = Math.sin(d);
  19376. for (var d = Math.cos(d), e = this.X, f = F.d(0, 0), g = 0; g <= e.width; ++g)
  19377. for (var h = 0; h <= e.height; ++h) {
  19378. f.x = g;
  19379. f.y = h;
  19380. var m = this.Lc(f),
  19381. n = Math.sqrt(m.x * m.x + (m.y - c) * (m.y - c)),
  19382. s = n * a,
  19383. u = Math.asin(m.x / n) / a,
  19384. v = Math.cos(u);
  19385. m.x = u <= Math.PI ? s * Math.sin(u) : 0;
  19386. m.y = n + c - s * (1 - v) * a;
  19387. m.e = s * (1 - v) * d / 7;
  19388. 0.5 > m.e && (m.e = 0.5);
  19389. this.Id(f, m)
  19390. }
  19391. }
  19392. });
  19393. F.lu.create = function(a, c) {
  19394. return new F.lu(a, c)
  19395. };
  19396. F.Ya = F.ja.extend({
  19397. nc: q,
  19398. gi: 0,
  19399. cc: q,
  19400. hh: q,
  19401. Al: q,
  19402. Ad: r,
  19403. tb: "ProgressTimer",
  19404. O_: function() {
  19405. return F.d(this.hh.x, this.hh.y)
  19406. },
  19407. o3: function(a) {
  19408. this.hh = F.fO(a)
  19409. },
  19410. g_: function() {
  19411. return F.d(this.Al.x, this.Al.y)
  19412. },
  19413. S2: function(a) {
  19414. this.Al = F.fO(a)
  19415. },
  19416. LE: A("nc"),
  19417. S_: A("gi"),
  19418. gN: A("cc"),
  19419. s3: function(a) {
  19420. this.gi != a && (this.gi = F.Vc(a, 0, 100), this.xD())
  19421. },
  19422. Hd: t(),
  19423. re: E(r),
  19424. U0: A("Ad"),
  19425. GA: function(a) {
  19426. if (a < F.Ya.HH) {
  19427. var c = F.Ya.jT;
  19428. return this.Ad ? F.d(c >> 7 - (a << 1) & 1, c >> 7 - ((a << 1) + 1) & 1) : F.d(c >> (a << 1) + 1 & 1, c >> (a << 1) & 1)
  19429. }
  19430. return F.d(0, 0)
  19431. },
  19432. Qv: q,
  19433. hD: 270,
  19434. bB: 270,
  19435. Ge: 0,
  19436. SA: r,
  19437. CA: q,
  19438. nd: 0,
  19439. xc: q,
  19440. of: q,
  19441. ED: q,
  19442. js: r,
  19443. ctor: q,
  19444. Zq: function() {
  19445. F.ja.prototype.ctor.call(this);
  19446. this.nc = F.Ya.Qh;
  19447. this.gi = 0;
  19448. this.hh = F.d(0, 0);
  19449. this.Al = F.d(0, 0);
  19450. this.Ad = r;
  19451. this.cc = q;
  19452. this.Qv = F.d(0, 0);
  19453. this.bB = this.hD = 270;
  19454. this.Ge = 0;
  19455. this.SA = r;
  19456. this.CA = F.rect(0, 0, 0, 0)
  19457. },
  19458. $q: function() {
  19459. F.ja.prototype.ctor.call(this);
  19460. this.nc = F.Ya.Qh;
  19461. this.gi = 0;
  19462. this.hh = F.d(0, 0);
  19463. this.Al = F.d(0, 0);
  19464. this.Ad = r;
  19465. this.cc = q;
  19466. this.ED = F.m.createBuffer();
  19467. this.nd = 0;
  19468. this.of = this.xc = q;
  19469. this.js = r
  19470. },
  19471. Wa: function(a) {
  19472. this.cc.color = a;
  19473. this.ec()
  19474. },
  19475. va: function(a) {
  19476. this.cc.opacity =
  19477. a;
  19478. this.ec()
  19479. },
  19480. Pe: function() {
  19481. return this.cc.color
  19482. },
  19483. Qe: function() {
  19484. return this.cc.opacity
  19485. },
  19486. $O: q,
  19487. MX: function(a) {
  19488. this.Ad !== a && (this.Ad = a)
  19489. },
  19490. NX: function(a) {
  19491. this.Ad !== a && (this.Ad = a, this.of = this.xc = q, this.nd = 0)
  19492. },
  19493. ny: q,
  19494. SX: function(a) {
  19495. this.cc != a && (this.cc = a, this.width = this.cc.width, this.height = this.cc.height)
  19496. },
  19497. TX: function(a) {
  19498. a && this.cc != a && (this.cc = a, this.width = a.width, this.height = a.height, this.xc && (this.of = this.xc = q, this.nd = 0))
  19499. },
  19500. cG: q,
  19501. $X: function(a) {
  19502. a !== this.nc && (this.nc = a)
  19503. },
  19504. aY: function(a) {
  19505. a !== this.nc && (this.xc &&
  19506. (this.of = this.xc = q, this.nd = 0), this.nc = a)
  19507. },
  19508. VF: q,
  19509. KX: function(a) {
  19510. this.Ad !== a && (this.Ad = a)
  19511. },
  19512. LX: function(a) {
  19513. this.Ad !== a && (this.Ad = a, this.of = this.xc = q, this.nd = 0)
  19514. },
  19515. ne: function(a) {
  19516. var c = this.cc;
  19517. if (!c) return {
  19518. fa: 0,
  19519. ga: 0
  19520. };
  19521. var d = c.quad,
  19522. e = F.d(d.F.n.fa, d.F.n.ga),
  19523. d = F.d(d.K.n.fa, d.K.n.ga);
  19524. c.textureRectRotated && (c = a.x, a.x = a.y, a.y = c);
  19525. return {
  19526. fa: e.x * (1 - a.x) + d.x * a.x,
  19527. ga: e.y * (1 - a.y) + d.y * a.y
  19528. }
  19529. },
  19530. oe: function(a) {
  19531. if (!this.cc) return {
  19532. x: 0,
  19533. y: 0
  19534. };
  19535. var c = this.cc.quad,
  19536. d = F.d(c.F.k.x, c.F.k.y),
  19537. c = F.d(c.K.k.x, c.K.k.y);
  19538. return {
  19539. x: d.x * (1 - a.x) +
  19540. c.x * a.x,
  19541. y: d.y * (1 - a.y) + c.y * a.y
  19542. }
  19543. },
  19544. VE: q,
  19545. jW: function(a) {
  19546. this.percentage = 0;
  19547. this.anchorY = this.anchorX = 0.5;
  19548. this.nc = F.Ya.Qh;
  19549. this.Ad = r;
  19550. this.midPoint = F.d(0.5, 0.5);
  19551. this.barChangeRate = F.d(1, 1);
  19552. this.sprite = a;
  19553. return p
  19554. },
  19555. kW: function(a) {
  19556. this.percentage = 0;
  19557. this.of = this.xc = q;
  19558. this.nd = 0;
  19559. this.anchorY = this.anchorX = 0.5;
  19560. this.nc = F.Ya.Qh;
  19561. this.Ad = r;
  19562. this.midPoint = F.d(0.5, 0.5);
  19563. this.barChangeRate = F.d(1, 1);
  19564. this.sprite = a;
  19565. this.shaderProgram = F.Jd.oc(F.Pi);
  19566. return p
  19567. },
  19568. Y: q,
  19569. Dl: function(a) {
  19570. a = a || F.m;
  19571. var c = this.cc;
  19572. c.Xn && (a.globalCompositeOperation =
  19573. "lighter");
  19574. var d = F.view.qa,
  19575. e = F.view.Ra;
  19576. a.globalAlpha = c.Ba / 255;
  19577. var f = c.ia,
  19578. g = c.P,
  19579. h = c.Fb,
  19580. m = c.$A,
  19581. n = 0 | h.x,
  19582. s = -h.y - f.height,
  19583. u = c.qo;
  19584. m.width = f.width * d;
  19585. m.height = f.height * e;
  19586. a.save();
  19587. c.Qb && (n = -h.x - f.width, a.scale(-1, 1));
  19588. c.Rb && (s = h.y, a.scale(1, -1));
  19589. n *= d;
  19590. s *= e;
  19591. this.nc == F.Ya.wl ? (f = this.CA, a.beginPath(), a.rect(f.x * d, f.y * e, f.width * d, f.height * e), a.clip(), a.closePath()) : this.nc == F.Ya.Qh && (f = this.Qv.x * d, h = this.Qv.y * e, a.beginPath(), a.arc(f, h, this.Ge * e, Math.PI / 180 * this.hD, Math.PI / 180 * this.bB, this.SA), a.lineTo(f, h), a.clip(),
  19592. a.closePath());
  19593. c.L && u.Dp ? (d = c.L.Eb, this.Xu ? a.drawImage(d, 0, 0, u.width, u.height, n, s, m.width, m.height) : a.drawImage(d, u.x, u.y, u.width, u.height, n, s, m.width, m.height)) : 0 !== g.width && (m = this.color, a.fillStyle = "rgba(" + m.r + "," + m.g + "," + m.b + ",1)", a.fillRect(n, s, g.width * d, g.height * e));
  19594. a.restore();
  19595. F.Xf()
  19596. },
  19597. Wi: function(a) {
  19598. a = a || F.m;
  19599. if (this.xc && this.cc) {
  19600. F.Ws(this);
  19601. var c = this.cc.Ah();
  19602. F.Eh(c.src, c.U);
  19603. F.Jc(F.xl);
  19604. F.qe(this.cc.texture);
  19605. a.bindBuffer(a.ARRAY_BUFFER, this.ED);
  19606. this.js && (a.bufferData(a.ARRAY_BUFFER, this.of, a.DYNAMIC_DRAW),
  19607. this.js = r);
  19608. c = F.td.BYTES_PER_ELEMENT;
  19609. a.vertexAttribPointer(F.qb, 2, a.FLOAT, r, c, 0);
  19610. a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, c, 8);
  19611. a.vertexAttribPointer(F.ud, 2, a.FLOAT, r, c, 12);
  19612. this.nc === F.Ya.Qh ? a.drawArrays(a.TRIANGLE_FAN, 0, this.nd) : this.nc == F.Ya.wl && (this.Ad ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.nd / 2), a.drawArrays(a.TRIANGLE_STRIP, 4, this.nd / 2), F.Wf++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.nd));
  19613. F.Wf++
  19614. }
  19615. },
  19616. AY: function() {
  19617. if (this.cc) {
  19618. var a, c = this.hh;
  19619. a = this.gi / 100;
  19620. var d = 2 * F.PI * (this.Ad ? a : 1 - a),
  19621. e = F.d(c.x,
  19622. 1),
  19623. f = F.S1(e, c, d),
  19624. d = 0;
  19625. if (0 == a) f = e, d = 0;
  19626. else if (1 == a) f = e, d = 4;
  19627. else {
  19628. var g = F.NQ,
  19629. h = F.Ya.HH;
  19630. for (a = 0; a <= h; ++a) {
  19631. var m = (a + (h - 1)) % h,
  19632. n = this.GA(a % h),
  19633. m = this.GA(m);
  19634. 0 == a ? m = F.iO(n, m, 1 - c.x) : 4 == a && (n = F.iO(n, m, 1 - c.x));
  19635. var s = F.d(0, 0);
  19636. if (F.uF(n, m, c, f, s) && (!(0 == a || 4 == a) || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < g) g = s.y, d = a
  19637. }
  19638. f = F.Dj(c, F.Ci(F.Gd(f, c), g))
  19639. }
  19640. g = p;
  19641. this.nd != d + 3 && (g = r, this.of = this.xc = q, this.nd = 0);
  19642. if (!this.xc) {
  19643. h = this.nd = d + 3;
  19644. n = F.td.BYTES_PER_ELEMENT;
  19645. this.of = new ArrayBuffer(h * n);
  19646. m = [];
  19647. for (a = 0; a < h; a++) m[a] = new F.td(q, q, q, this.of, a *
  19648. n);
  19649. this.xc = m;
  19650. if (!this.xc) {
  19651. F.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  19652. return
  19653. }
  19654. }
  19655. this.ec();
  19656. h = this.xc;
  19657. if (!g) {
  19658. h[0].n = this.ne(c);
  19659. h[0].k = this.oe(c);
  19660. h[1].n = this.ne(e);
  19661. h[1].k = this.oe(e);
  19662. for (a = 0; a < d; a++) c = this.GA(a), h[a + 2].n = this.ne(c), h[a + 2].k = this.oe(c)
  19663. }
  19664. h[this.nd - 1].n = this.ne(f);
  19665. h[this.nd - 1].k = this.oe(f)
  19666. }
  19667. },
  19668. uY: function() {
  19669. if (this.cc) {
  19670. var a, c = this.gi / 100,
  19671. d = this.Al,
  19672. d = F.Ci(F.d(1 - d.x + c * d.x, 1 - d.y + c * d.y), 0.5),
  19673. c = F.Gd(this.hh, d),
  19674. d = F.Dj(this.hh, d);
  19675. 0 > c.x && (d.x += -c.x, c.x = 0);
  19676. 1 < d.x && (c.x -= d.x - 1, d.x = 1);
  19677. 0 > c.y && (d.y += -c.y, c.y = 0);
  19678. 1 < d.y && (c.y -= d.y - 1, d.y = 1);
  19679. if (this.Ad) {
  19680. if (!this.xc) {
  19681. this.nd = 8;
  19682. var e = F.td.BYTES_PER_ELEMENT;
  19683. this.of = new ArrayBuffer(8 * e);
  19684. var f = [];
  19685. for (a = 0; 8 > a; a++) f[a] = new F.td(q, q, q, this.of, a * e);
  19686. f[0].n = this.ne(F.d(0, 1));
  19687. f[0].k = this.oe(F.d(0, 1));
  19688. f[1].n = this.ne(F.d(0, 0));
  19689. f[1].k = this.oe(F.d(0, 0));
  19690. f[6].n = this.ne(F.d(1, 1));
  19691. f[6].k = this.oe(F.d(1, 1));
  19692. f[7].n = this.ne(F.d(1, 0));
  19693. f[7].k = this.oe(F.d(1, 0));
  19694. this.xc = f
  19695. }
  19696. a = this.xc;
  19697. a[2].n = this.ne(F.d(c.x, d.y));
  19698. a[2].k = this.oe(F.d(c.x, d.y));
  19699. a[3].n = this.ne(F.d(c.x,
  19700. c.y));
  19701. a[3].k = this.oe(F.d(c.x, c.y));
  19702. a[4].n = this.ne(F.d(d.x, d.y));
  19703. a[4].k = this.oe(F.d(d.x, d.y));
  19704. a[5].n = this.ne(F.d(d.x, c.y));
  19705. a[5].k = this.oe(F.d(d.x, c.y))
  19706. } else {
  19707. if (!this.xc) {
  19708. this.nd = 4;
  19709. e = F.td.BYTES_PER_ELEMENT;
  19710. this.of = new ArrayBuffer(4 * e);
  19711. this.xc = [];
  19712. for (a = 0; 4 > a; a++) this.xc[a] = new F.td(q, q, q, this.of, a * e)
  19713. }
  19714. a = this.xc;
  19715. a[0].n = this.ne(F.d(c.x, d.y));
  19716. a[0].k = this.oe(F.d(c.x, d.y));
  19717. a[1].n = this.ne(F.d(c.x, c.y));
  19718. a[1].k = this.oe(F.d(c.x, c.y));
  19719. a[2].n = this.ne(F.d(d.x, d.y));
  19720. a[2].k = this.oe(F.d(d.x, d.y));
  19721. a[3].n = this.ne(F.d(d.x,
  19722. c.y));
  19723. a[3].k = this.oe(F.d(d.x, c.y))
  19724. }
  19725. this.ec()
  19726. }
  19727. },
  19728. ec: function() {
  19729. if (this.cc && this.xc) {
  19730. for (var a = this.cc.quad.N.v, c = this.xc, d = 0, e = this.nd; d < e; ++d) c[d].v = a;
  19731. this.js = p
  19732. }
  19733. },
  19734. xD: q,
  19735. wY: function() {
  19736. var a = this.cc,
  19737. c = a.width,
  19738. d = a.height,
  19739. e = this.hh;
  19740. if (this.nc == F.Ya.Qh) {
  19741. this.Ge = Math.round(Math.sqrt(c * c + d * d));
  19742. var f, g = r,
  19743. h = this.Qv;
  19744. h.x = c * e.x;
  19745. h.y = -d * e.y;
  19746. this.Ad ? (f = 270, e = 270 - 3.6 * this.gi) : (e = -90, f = -90 + 3.6 * this.gi);
  19747. a.Qb && (h.x -= c * 2 * this.hh.x, e = -e - 180, f = -f - 180, g = !g);
  19748. a.Rb && (h.y += d * 2 * this.hh.y, g = !g, e = -e, f = -f);
  19749. this.hD = e;
  19750. this.bB = f;
  19751. this.SA =
  19752. g
  19753. } else {
  19754. f = this.Al;
  19755. h = this.gi / 100;
  19756. g = this.CA;
  19757. f = F.size(c * (1 - f.x), d * (1 - f.y));
  19758. var h = F.size((c - f.width) * h, (d - f.height) * h),
  19759. h = F.size(f.width + h.width, f.height + h.height),
  19760. m = F.d(c * e.x, d * e.y);
  19761. f = m.x - h.width / 2;
  19762. 0.5 < e.x && h.width / 2 >= c - m.x && (f = c - h.width);
  19763. c = m.y - h.height / 2;
  19764. 0.5 < e.y && h.height / 2 >= d - m.y && (c = d - h.height);
  19765. g.x = 0;
  19766. d = 1;
  19767. a.Qb && (g.x -= h.width, d = -1);
  19768. 0 < f && (g.x += f * d);
  19769. g.y = 0;
  19770. d = 1;
  19771. a.Rb && (g.y += h.height, d = -1);
  19772. 0 < c && (g.y -= c * d);
  19773. g.width = h.width;
  19774. g.height = -h.height
  19775. }
  19776. },
  19777. xY: function() {
  19778. var a = this.nc;
  19779. a === F.Ya.Qh ? this.AY() : a === F.Ya.wl && this.uY();
  19780. this.js = p
  19781. }
  19782. });
  19783. M = F.Ya.prototype;
  19784. F.B == F.$ ? (M.ctor = M.$q, M.$O = M.NX, M.ny = M.TX, M.cG = M.aY, M.VF = M.LX, M.VE = M.kW, M.Y = M.Wi, M.xD = M.xY) : (M.ctor = M.Zq, M.$O = M.MX, M.ny = M.SX, M.cG = M.$X, M.VF = M.KX, M.VE = M.jW, M.Y = M.Dl, M.xD = F.Ya.prototype.wY);
  19785. F.j(M, "midPoint", M.O_, M.o3);
  19786. F.j(M, "barChangeRate", M.g_, M.S2);
  19787. F.j(M, "type", M.LE, M.cG);
  19788. F.j(M, "percentage", M.S_, M.s3);
  19789. F.j(M, "sprite", M.gN, M.ny);
  19790. F.j(M, "reverseDir", M.U0, M.VF);
  19791. F.Ya.create = function(a) {
  19792. var c = new F.Ya;
  19793. return c.VE(a) ? c : q
  19794. };
  19795. F.Ya.HH = 4;
  19796. F.Ya.jT = 75;
  19797. F.Ya.Qh = 0;
  19798. F.Ya.wl = 1;
  19799. F.oz = F.z.extend({
  19800. md: 0,
  19801. Sc: 0,
  19802. ctor: function(a, c) {
  19803. F.z.prototype.ctor.call(this);
  19804. this.Sc = this.md = 0;
  19805. c !== k && this.f(a, c)
  19806. },
  19807. f: function(a, c) {
  19808. return F.z.prototype.f.call(this, a) ? (this.md = c, p) : r
  19809. },
  19810. l: function() {
  19811. var a = new F.oz;
  19812. a.f(this.p, this.md);
  19813. return a
  19814. },
  19815. reverse: function() {
  19816. F.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  19817. return q
  19818. },
  19819. A: function(a) {
  19820. F.z.prototype.A.call(this, a);
  19821. this.Sc = a.percentage;
  19822. 100 == this.Sc && (this.Sc = 0)
  19823. },
  19824. update: function(a) {
  19825. this.target instanceof F.Ya && (this.target.percentage = this.Sc +
  19826. (this.md - this.Sc) * a)
  19827. }
  19828. });
  19829. F.oz.create = function(a, c) {
  19830. return new F.oz(a, c)
  19831. };
  19832. F.nq = F.z.extend({
  19833. md: 0,
  19834. Sc: 0,
  19835. ctor: function(a, c, d) {
  19836. F.z.prototype.ctor.call(this);
  19837. this.Sc = this.md = 0;
  19838. d !== k && this.f(a, c, d)
  19839. },
  19840. f: function(a, c, d) {
  19841. return F.z.prototype.f.call(this, a) ? (this.md = d, this.Sc = c, p) : r
  19842. },
  19843. l: function() {
  19844. var a = new F.nq;
  19845. a.f(this.p, this.Sc, this.md);
  19846. return a
  19847. },
  19848. reverse: function() {
  19849. return F.nq.create(this.p, this.md, this.Sc)
  19850. },
  19851. A: function(a) {
  19852. F.z.prototype.A.call(this, a)
  19853. },
  19854. update: function(a) {
  19855. this.target instanceof F.Ya && (this.target.percentage = this.Sc + (this.md - this.Sc) * a)
  19856. }
  19857. });
  19858. F.nq.create = function(a, c, d) {
  19859. return new F.nq(a, c, d)
  19860. };
  19861. F.sq = 4208917214;
  19862. F.r7 = F.ma.extend({
  19863. rf: t()
  19864. });
  19865. F.j7 = 0;
  19866. F.Tj = 1;
  19867. F.yu = 0;
  19868. F.i7 = 1;
  19869. F.wa = F.tl.extend({
  19870. na: q,
  19871. fb: q,
  19872. p: q,
  19873. fh: r,
  19874. nK: r,
  19875. tb: "TransitionScene",
  19876. ctor: function(a, c) {
  19877. F.tl.prototype.ctor.call(this);
  19878. a !== k && c !== k && this.f(a, c)
  19879. },
  19880. iL: function() {
  19881. this.vy(this.iL);
  19882. var a = F.I;
  19883. this.nK = a.Bk;
  19884. a.IF(this.na);
  19885. F.ua.se(p);
  19886. this.fb.visible = p
  19887. },
  19888. mi: function() {
  19889. this.fh = p
  19890. },
  19891. Y: function() {
  19892. this.fh ? (this.fb.S(), this.na.S()) : (this.na.S(), this.fb.S())
  19893. },
  19894. da: function() {
  19895. F.t.prototype.da.call(this);
  19896. F.ua.se(r);
  19897. this.fb.Yf();
  19898. this.na.da()
  19899. },
  19900. Ab: function() {
  19901. F.t.prototype.Ab.call(this);
  19902. F.ua.se(p);
  19903. this.fb.Ab();
  19904. this.na.Ih()
  19905. },
  19906. Ne: function() {
  19907. F.t.prototype.Ne.call(this);
  19908. this.nK && this.fb.Ne()
  19909. },
  19910. f: function(a, c) {
  19911. c || b("cc.TransitionScene.initWithDuration(): Argument scene must be non-nil");
  19912. return this.M() ? (this.p = a, this.ri({
  19913. x: 0,
  19914. y: 0,
  19915. anchorX: 0,
  19916. anchorY: 0
  19917. }), this.na = c, this.fb = F.I.Ec, this.fb || (this.fb = F.tl.create(), this.fb.M()), this.na == this.fb && b("cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"), this.mi(), p) : r
  19918. },
  19919. finish: function() {
  19920. this.na.ri({
  19921. visible: p,
  19922. x: 0,
  19923. y: 0,
  19924. scale: 1,
  19925. rotation: 0
  19926. });
  19927. F.B === F.$ && this.na.wm().restore();
  19928. this.fb.ri({
  19929. visible: r,
  19930. x: 0,
  19931. y: 0,
  19932. scale: 1,
  19933. rotation: 0
  19934. });
  19935. F.B === F.$ && this.fb.wm().restore();
  19936. this.nt(this.iL, 0)
  19937. },
  19938. ix: function() {
  19939. this.na.visible = p;
  19940. this.fb.visible = r
  19941. }
  19942. });
  19943. F.wa.create = function(a, c) {
  19944. return new F.wa(a, c)
  19945. };
  19946. F.Xj = F.wa.extend({
  19947. Pl: 0,
  19948. f: function(a, c, d) {
  19949. F.wa.prototype.f.call(this, a, c) && (this.Pl = d);
  19950. return p
  19951. }
  19952. });
  19953. F.Xj.create = function(a, c, d) {
  19954. var e = new F.Xj;
  19955. e.f(a, c, d);
  19956. return e
  19957. };
  19958. F.iI = F.wa.extend({
  19959. da: function() {
  19960. F.wa.prototype.da.call(this);
  19961. this.na.ri({
  19962. scale: 0.001,
  19963. anchorX: 0.5,
  19964. anchorY: 0.5
  19965. });
  19966. this.fb.ri({
  19967. scale: 1,
  19968. anchorX: 0.5,
  19969. anchorY: 0.5
  19970. });
  19971. var a = F.Ha.create(F.xe.create(F.gn.create(this.p / 2, 0.001), F.fn.create(this.p / 2, 720)), F.Oc.create(this.p / 2));
  19972. this.fb.ib(a);
  19973. this.na.ib(F.Ha.create(a.reverse(), F.Pb.create(this.finish, this)))
  19974. }
  19975. });
  19976. F.iI.create = function(a, c) {
  19977. var d = new F.iI;
  19978. return d != q && d.f(a, c) ? d : q
  19979. };
  19980. F.YH = F.wa.extend({
  19981. da: function() {
  19982. F.wa.prototype.da.call(this);
  19983. var a = F.I.T;
  19984. this.na.ri({
  19985. scale: 0.5,
  19986. x: a.width,
  19987. y: 0,
  19988. anchorX: 0.5,
  19989. anchorY: 0.5
  19990. });
  19991. this.fb.anchorX = 0.5;
  19992. this.fb.anchorY = 0.5;
  19993. var c = F.Oh.create(this.p / 4, F.d(-a.width, 0), a.width / 4, 2),
  19994. d = F.sd.create(this.p / 4, 1),
  19995. a = F.sd.create(this.p / 4, 0.5),
  19996. a = F.Ha.create(a, c),
  19997. c = F.Ha.create(c, d),
  19998. d = F.Oc.create(this.p / 2);
  19999. this.fb.ib(a);
  20000. this.na.ib(F.Ha.create(d, c, F.Pb.create(this.finish, this)))
  20001. }
  20002. });
  20003. F.YH.create = function(a, c) {
  20004. var d = new F.YH;
  20005. return d != q && d.f(a, c) ? d : q
  20006. };
  20007. F.Hq = F.wa.extend({
  20008. da: function() {
  20009. F.wa.prototype.da.call(this);
  20010. this.yj();
  20011. var a = this.action();
  20012. this.na.ib(F.Ha.create(this.rf(a), F.Pb.create(this.finish, this)))
  20013. },
  20014. yj: function() {
  20015. this.na.G(-F.I.T.width, 0)
  20016. },
  20017. action: function() {
  20018. return F.jq.create(this.p, F.d(0, 0))
  20019. },
  20020. rf: function(a) {
  20021. return F.ml.create(a, 2)
  20022. }
  20023. });
  20024. F.Hq.create = function(a, c) {
  20025. var d = new F.Hq;
  20026. return d != q && d.f(a, c) ? d : q
  20027. };
  20028. F.$H = F.Hq.extend({
  20029. yj: function() {
  20030. this.na.G(F.I.T.width, 0)
  20031. }
  20032. });
  20033. F.$H.create = function(a, c) {
  20034. var d = new F.$H;
  20035. return d != q && d.f(a, c) ? d : q
  20036. };
  20037. F.aI = F.Hq.extend({
  20038. yj: function() {
  20039. this.na.G(0, F.I.T.height)
  20040. }
  20041. });
  20042. F.aI.create = function(a, c) {
  20043. var d = new F.aI;
  20044. return d != q && d.f(a, c) ? d : q
  20045. };
  20046. F.ZH = F.Hq.extend({
  20047. yj: function() {
  20048. this.na.G(0, -F.I.T.height)
  20049. }
  20050. });
  20051. F.ZH.create = function(a, c) {
  20052. var d = new F.ZH;
  20053. return d != q && d.f(a, c) ? d : q
  20054. };
  20055. F.Lj = 0.5;
  20056. F.Iq = F.wa.extend({
  20057. mi: function() {
  20058. this.fh = r
  20059. },
  20060. da: function() {
  20061. F.wa.prototype.da.call(this);
  20062. this.yj();
  20063. var a = this.action(),
  20064. c = this.action(),
  20065. a = this.rf(a),
  20066. c = F.Ha.create(this.rf(c), F.Pb.create(this.finish, this));
  20067. this.na.ib(a);
  20068. this.fb.ib(c)
  20069. },
  20070. yj: function() {
  20071. this.na.G(-F.I.T.width + F.Lj, 0)
  20072. },
  20073. action: function() {
  20074. return F.wf.create(this.p, F.d(F.I.T.width - F.Lj, 0))
  20075. },
  20076. rf: function(a) {
  20077. return F.ml.create(a, 2)
  20078. }
  20079. });
  20080. F.Iq.create = function(a, c) {
  20081. var d = new F.Iq;
  20082. return d != q && d.f(a, c) ? d : q
  20083. };
  20084. F.lI = F.Iq.extend({
  20085. mi: function() {
  20086. this.fh = p
  20087. },
  20088. yj: function() {
  20089. this.na.G(F.I.T.width - F.Lj, 0)
  20090. },
  20091. action: function() {
  20092. return F.wf.create(this.p, F.d(-(F.I.T.width - F.Lj), 0))
  20093. }
  20094. });
  20095. F.lI.create = function(a, c) {
  20096. var d = new F.lI;
  20097. return d != q && d.f(a, c) ? d : q
  20098. };
  20099. F.kI = F.Iq.extend({
  20100. mi: function() {
  20101. this.fh = r
  20102. },
  20103. yj: function() {
  20104. this.na.G(0, F.I.T.height - F.Lj)
  20105. },
  20106. action: function() {
  20107. return F.wf.create(this.p, F.d(0, -(F.I.T.height - F.Lj)))
  20108. }
  20109. });
  20110. F.kI.create = function(a, c) {
  20111. var d = new F.kI;
  20112. return d != q && d.f(a, c) ? d : q
  20113. };
  20114. F.mI = F.Iq.extend({
  20115. mi: function() {
  20116. this.fh = p
  20117. },
  20118. yj: function() {
  20119. this.na.G(0, -(F.I.T.height - F.Lj))
  20120. },
  20121. action: function() {
  20122. return F.wf.create(this.p, F.d(0, F.I.T.height - F.Lj))
  20123. }
  20124. });
  20125. F.mI.create = function(a, c) {
  20126. var d = new F.mI;
  20127. return d != q && d.f(a, c) ? d : q
  20128. };
  20129. F.jI = F.wa.extend({
  20130. da: function() {
  20131. F.wa.prototype.da.call(this);
  20132. this.na.ri({
  20133. scale: 0.001,
  20134. anchorX: 2 / 3,
  20135. anchorY: 0.5
  20136. });
  20137. this.fb.ri({
  20138. scale: 1,
  20139. anchorX: 1 / 3,
  20140. anchorY: 0.5
  20141. });
  20142. var a = F.sd.create(this.p, 0.01),
  20143. c = F.sd.create(this.p, 1);
  20144. this.na.ib(this.rf(c));
  20145. this.fb.ib(F.Ha.create(this.rf(a), F.Pb.create(this.finish, this)))
  20146. },
  20147. rf: function(a) {
  20148. return F.ml.create(a, 2)
  20149. }
  20150. });
  20151. F.jI.create = function(a, c) {
  20152. var d = new F.jI;
  20153. return d != q && d.f(a, c) ? d : q
  20154. };
  20155. F.WH = F.Xj.extend({
  20156. da: function() {
  20157. F.wa.prototype.da.call(this);
  20158. var a, c;
  20159. this.na.visible = r;
  20160. var d;
  20161. this.Pl === F.Tj ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20162. a = F.Ha.create(F.Oc.create(this.p / 2), F.xf.create(), F.$d.create(this.p / 2, 1, 0, d, a, 0, 0), F.Pb.create(this.finish, this));
  20163. c = F.Ha.create(F.$d.create(this.p / 2, 1, 0, 0, c, 0, 0), F.Xg.create(), F.Oc.create(this.p / 2));
  20164. this.na.ib(a);
  20165. this.fb.ib(c)
  20166. }
  20167. });
  20168. F.WH.create = function(a, c, d) {
  20169. d == q && (d = F.Tj);
  20170. var e = new F.WH;
  20171. e.f(a, c, d);
  20172. return e
  20173. };
  20174. F.XH = F.Xj.extend({
  20175. da: function() {
  20176. F.wa.prototype.da.call(this);
  20177. var a, c;
  20178. this.na.visible = r;
  20179. var d;
  20180. this.Pl == F.yu ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20181. a = F.Ha.create(F.Oc.create(this.p / 2), F.xf.create(), F.$d.create(this.p / 2, 1, 0, d, a, 90, 0), F.Pb.create(this.finish, this));
  20182. c = F.Ha.create(F.$d.create(this.p / 2, 1, 0, 0, c, 90, 0), F.Xg.create(), F.Oc.create(this.p / 2));
  20183. this.na.ib(a);
  20184. this.fb.ib(c)
  20185. }
  20186. });
  20187. F.XH.create = function(a, c, d) {
  20188. d == q && (d = F.yu);
  20189. var e = new F.XH;
  20190. e.f(a, c, d);
  20191. return e
  20192. };
  20193. F.VH = F.Xj.extend({
  20194. da: function() {
  20195. F.wa.prototype.da.call(this);
  20196. var a, c;
  20197. this.na.visible = r;
  20198. var d;
  20199. this.Pl === F.Tj ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20200. a = F.Ha.create(F.Oc.create(this.p / 2), F.xf.create(), F.$d.create(this.p / 2, 1, 0, d, a, -45, 0), F.Pb.create(this.finish, this));
  20201. c = F.Ha.create(F.$d.create(this.p / 2, 1, 0, 0, c, 45, 0), F.Xg.create(), F.Oc.create(this.p / 2));
  20202. this.na.ib(a);
  20203. this.fb.ib(c)
  20204. }
  20205. });
  20206. F.VH.create = function(a, c, d) {
  20207. d == q && (d = F.Tj);
  20208. var e = new F.VH;
  20209. e.f(a, c, d);
  20210. return e
  20211. };
  20212. F.qI = F.Xj.extend({
  20213. da: function() {
  20214. F.wa.prototype.da.call(this);
  20215. var a, c;
  20216. this.na.visible = r;
  20217. var d;
  20218. this.Pl === F.Tj ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20219. a = F.Ha.create(F.Oc.create(this.p / 2), F.xe.create(F.$d.create(this.p / 2, 1, 0, d, a, 0, 0), F.sd.create(this.p / 2, 1), F.xf.create()), F.Pb.create(this.finish, this));
  20220. c = F.Ha.create(F.xe.create(F.$d.create(this.p / 2, 1, 0, 0, c, 0, 0), F.sd.create(this.p / 2, 0.5)), F.Xg.create(), F.Oc.create(this.p / 2));
  20221. this.na.scale = 0.5;
  20222. this.na.ib(a);
  20223. this.fb.ib(c)
  20224. }
  20225. });
  20226. F.qI.create = function(a, c, d) {
  20227. d == q && (d = F.Tj);
  20228. var e = new F.qI;
  20229. e.f(a, c, d);
  20230. return e
  20231. };
  20232. F.rI = F.Xj.extend({
  20233. da: function() {
  20234. F.wa.prototype.da.call(this);
  20235. var a, c;
  20236. this.na.visible = r;
  20237. var d;
  20238. this.Pl === F.yu ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20239. a = F.Ha.create(F.Oc.create(this.p / 2), F.xe.create(F.$d.create(this.p / 2, 1, 0, d, a, 90, 0), F.sd.create(this.p / 2, 1), F.xf.create()), F.Pb.create(this.finish, this));
  20240. c = F.Ha.create(F.xe.create(F.$d.create(this.p / 2, 1, 0, 0, c, 90, 0), F.sd.create(this.p / 2, 0.5)), F.Xg.create(), F.Oc.create(this.p / 2));
  20241. this.na.scale = 0.5;
  20242. this.na.ib(a);
  20243. this.fb.ib(c)
  20244. }
  20245. });
  20246. F.rI.create = function(a, c, d) {
  20247. d == q && (d = F.yu);
  20248. var e = new F.rI;
  20249. e.f(a, c, d);
  20250. return e
  20251. };
  20252. F.pI = F.Xj.extend({
  20253. da: function() {
  20254. F.wa.prototype.da.call(this);
  20255. var a, c;
  20256. this.na.visible = r;
  20257. var d;
  20258. this.Pl === F.Tj ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90);
  20259. a = F.Ha.create(F.Oc.create(this.p / 2), F.xe.create(F.$d.create(this.p / 2, 1, 0, d, a, -45, 0), F.sd.create(this.p / 2, 1), F.xf.create()), F.xf.create(), F.Pb.create(this.finish, this));
  20260. c = F.Ha.create(F.xe.create(F.$d.create(this.p / 2, 1, 0, 0, c, 45, 0), F.sd.create(this.p / 2, 0.5)), F.Xg.create(), F.Oc.create(this.p / 2));
  20261. this.na.scale = 0.5;
  20262. this.na.ib(a);
  20263. this.fb.ib(c)
  20264. }
  20265. });
  20266. F.pI.create = function(a, c, d) {
  20267. d == q && (d = F.Tj);
  20268. var e = new F.pI;
  20269. e.f(a, c, d);
  20270. return e
  20271. };
  20272. F.RH = F.wa.extend({
  20273. de: q,
  20274. ctor: function() {
  20275. F.wa.prototype.ctor.call(this);
  20276. this.de = F.color()
  20277. },
  20278. da: function() {
  20279. F.wa.prototype.da.call(this);
  20280. var a = F.Ac.create(this.de);
  20281. this.na.visible = r;
  20282. this.Q(a, 2, F.sq);
  20283. var a = this.Bh(F.sq),
  20284. c = F.Ha.create(F.Xm.create(this.p / 2), F.Pb.create(this.ix, this), F.Ym.create(this.p / 2), F.Pb.create(this.finish, this));
  20285. a.ib(c)
  20286. },
  20287. Ab: function() {
  20288. F.wa.prototype.Ab.call(this);
  20289. this.DF(F.sq, r)
  20290. },
  20291. f: function(a, c, d) {
  20292. d = d || F.color.BLACK;
  20293. F.wa.prototype.f.call(this, a, c) && (this.de.r = d.r, this.de.g = d.g, this.de.b =
  20294. d.b, this.de.a = 0);
  20295. return p
  20296. }
  20297. });
  20298. F.RH.create = function(a, c, d) {
  20299. var e = new F.RH;
  20300. e.f(a, c, d);
  20301. return e
  20302. };
  20303. F.QH = F.wa.extend({
  20304. da: function() {
  20305. F.wa.prototype.da.call(this);
  20306. var a = F.color(0, 0, 0, 0),
  20307. c = F.I.T,
  20308. a = F.Ac.create(a),
  20309. d = F.en.create(c.width, c.height);
  20310. if (q != d) {
  20311. d.sprite.anchorX = 0.5;
  20312. d.sprite.anchorY = 0.5;
  20313. d.ri({
  20314. x: c.width / 2,
  20315. y: c.height / 2,
  20316. anchorX: 0.5,
  20317. anchorY: 0.5
  20318. });
  20319. d.xh();
  20320. this.na.S();
  20321. d.end();
  20322. var e = F.en.create(c.width, c.height);
  20323. e.G(c.width / 2, c.height / 2);
  20324. e.sprite.anchorX = e.anchorX = 0.5;
  20325. e.sprite.anchorY = e.anchorY = 0.5;
  20326. e.xh();
  20327. this.fb.S();
  20328. e.end();
  20329. d.sprite.Ue(F.ONE, F.ONE);
  20330. e.sprite.Ue(F.SRC_ALPHA, F.ONE_MINUS_SRC_ALPHA);
  20331. a.Q(d);
  20332. a.Q(e);
  20333. d.sprite.opacity = 255;
  20334. e.sprite.opacity = 255;
  20335. c = F.Ha.create(F.Ki.create(this.p, 0), F.Pb.create(this.ix, this), F.Pb.create(this.finish, this));
  20336. e.sprite.ib(c);
  20337. this.Q(a, 2, F.sq)
  20338. }
  20339. },
  20340. Ab: function() {
  20341. this.DF(F.sq, r);
  20342. F.wa.prototype.Ab.call(this)
  20343. },
  20344. Y: t()
  20345. });
  20346. F.QH.create = function(a, c) {
  20347. var d = new F.QH;
  20348. d.f(a, c);
  20349. return d
  20350. };
  20351. F.oI = F.wa.extend({
  20352. mi: function() {
  20353. this.fh = r
  20354. },
  20355. da: function() {
  20356. F.wa.prototype.da.call(this);
  20357. var a = F.I.T,
  20358. a = F.$z.create(this.p, F.size(0 | 12 * (a.width / a.height), 12)),
  20359. a = this.rf(a);
  20360. this.fb.ib(F.Ha.create(a, F.Pb.create(this.finish, this), F.ul.create()))
  20361. },
  20362. rf: aa()
  20363. });
  20364. F.oI.create = function(a, c) {
  20365. var d = new F.oI;
  20366. return d != q && d.f(a, c) ? d : q
  20367. };
  20368. F.Zz = F.wa.extend({
  20369. da: function() {
  20370. F.wa.prototype.da.call(this);
  20371. this.na.visible = r;
  20372. var a = this.action(),
  20373. a = F.Ha.create(a, F.Pb.create(this.ix, this), a.reverse());
  20374. this.ib(F.Ha.create(this.rf(a), F.Pb.create(this.finish, this), F.ul.create()))
  20375. },
  20376. rf: function(a) {
  20377. return F.Up.create(a, 3)
  20378. },
  20379. action: function() {
  20380. return F.Iz.create(this.p / 2, 3)
  20381. }
  20382. });
  20383. F.Zz.create = function(a, c) {
  20384. var d = new F.Zz;
  20385. return d != q && d.f(a, c) ? d : q
  20386. };
  20387. F.nI = F.Zz.extend({
  20388. action: function() {
  20389. return F.Jz.create(this.p / 2, 3)
  20390. }
  20391. });
  20392. F.nI.create = function(a, c) {
  20393. var d = new F.nI;
  20394. return d != q && d.f(a, c) ? d : q
  20395. };
  20396. F.Gq = F.wa.extend({
  20397. mi: function() {
  20398. this.fh = r
  20399. },
  20400. da: function() {
  20401. F.wa.prototype.da.call(this);
  20402. var a = F.I.T,
  20403. a = this.xo(F.size(0 | 12 * (a.width / a.height), 12));
  20404. this.fb.ib(F.Ha.create(this.rf(a), F.Pb.create(this.finish, this), F.ul.create()))
  20405. },
  20406. rf: aa(),
  20407. xo: function(a) {
  20408. return F.dq.create(this.p, a)
  20409. }
  20410. });
  20411. F.Gq.create = function(a, c) {
  20412. var d = new F.Gq;
  20413. return d != q && d.f(a, c) ? d : q
  20414. };
  20415. F.SH = F.Gq.extend({
  20416. xo: function(a) {
  20417. return F.Sy.create(this.p, a)
  20418. }
  20419. });
  20420. F.SH.create = function(a, c) {
  20421. var d = new F.SH;
  20422. return d != q && d.f(a, c) ? d : q
  20423. };
  20424. F.UH = F.Gq.extend({
  20425. xo: function(a) {
  20426. return F.fu.create(this.p, a)
  20427. }
  20428. });
  20429. F.UH.create = function(a, c) {
  20430. var d = new F.UH;
  20431. return d != q && d.f(a, c) ? d : q
  20432. };
  20433. F.TH = F.Gq.extend({
  20434. xo: function(a) {
  20435. return F.Ty.create(this.p, a)
  20436. }
  20437. });
  20438. F.TH.create = function(a, c) {
  20439. var d = new F.TH;
  20440. return d != q && d.f(a, c) ? d : q
  20441. };
  20442. F.zH = 49153;
  20443. F.Wj = F.wa.extend({
  20444. md: 0,
  20445. Sc: 0,
  20446. dw: q,
  20447. tb: "TransitionProgress",
  20448. Wl: function(a, c, d) {
  20449. a.ri({
  20450. x: c,
  20451. y: d,
  20452. anchorX: 0.5,
  20453. anchorY: 0.5
  20454. })
  20455. },
  20456. da: function() {
  20457. F.wa.prototype.da.call(this);
  20458. this.pL();
  20459. var a = F.I.T,
  20460. c = F.en.create(a.width, a.height);
  20461. c.sprite.anchorX = 0.5;
  20462. c.sprite.anchorY = 0.5;
  20463. this.Wl(c, a.width / 2, a.height / 2);
  20464. c.clear(0, 0, 0, 1);
  20465. c.xh();
  20466. this.dw.S();
  20467. c.end();
  20468. this.dw == this.fb && this.ix();
  20469. a = this.Rl(c);
  20470. c = F.Ha.create(F.nq.create(this.p, this.Sc, this.md), F.Pb.create(this.finish, this));
  20471. a.ib(c);
  20472. this.Q(a, 2, F.zH)
  20473. },
  20474. Ab: function() {
  20475. this.DF(F.zH, p);
  20476. F.wa.prototype.Ab.call(this)
  20477. },
  20478. pL: function() {
  20479. this.dw = this.fb;
  20480. this.Sc = 100;
  20481. this.md = 0
  20482. },
  20483. Rl: function() {
  20484. F.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  20485. return q
  20486. },
  20487. mi: function() {
  20488. this.fh = r
  20489. }
  20490. });
  20491. F.Wj.create = function(a, c) {
  20492. var d = new F.Wj;
  20493. return d != q && d.f(a, c) ? d : q
  20494. };
  20495. F.fI = F.Wj.extend({
  20496. Rl: function(a) {
  20497. var c = F.I.T;
  20498. a = F.Ya.create(a.sprite);
  20499. F.B === F.$ && (a.sprite.flippedY = p);
  20500. a.type = F.Ya.Qh;
  20501. a.reverseDir = r;
  20502. a.percentage = 100;
  20503. this.Wl(a, c.width / 2, c.height / 2);
  20504. return a
  20505. }
  20506. });
  20507. F.fI.create = function(a, c) {
  20508. var d = new F.fI;
  20509. return d != q && d.f(a, c) ? d : q
  20510. };
  20511. F.gI = F.Wj.extend({
  20512. Rl: function(a) {
  20513. var c = F.I.T;
  20514. a = F.Ya.create(a.sprite);
  20515. F.B === F.$ && (a.sprite.flippedY = p);
  20516. a.type = F.Ya.Qh;
  20517. a.reverseDir = p;
  20518. a.percentage = 100;
  20519. this.Wl(a, c.width / 2, c.height / 2);
  20520. return a
  20521. }
  20522. });
  20523. F.gI.create = function(a, c) {
  20524. var d = new F.gI;
  20525. return d != q && d.f(a, c) ? d : q
  20526. };
  20527. F.cI = F.Wj.extend({
  20528. Rl: function(a) {
  20529. var c = F.I.T;
  20530. a = F.Ya.create(a.sprite);
  20531. F.B === F.$ && (a.sprite.flippedY = p);
  20532. a.type = F.Ya.wl;
  20533. a.midPoint = F.d(1, 0);
  20534. a.barChangeRate = F.d(1, 0);
  20535. a.percentage = 100;
  20536. this.Wl(a, c.width / 2, c.height / 2);
  20537. return a
  20538. }
  20539. });
  20540. F.cI.create = function(a, c) {
  20541. var d = new F.cI;
  20542. return d != q && d.f(a, c) ? d : q
  20543. };
  20544. F.hI = F.Wj.extend({
  20545. Rl: function(a) {
  20546. var c = F.I.T;
  20547. a = F.Ya.create(a.sprite);
  20548. F.B === F.$ && (a.sprite.flippedY = p);
  20549. a.type = F.Ya.wl;
  20550. a.midPoint = F.d(0, 0);
  20551. a.barChangeRate = F.d(0, 1);
  20552. a.percentage = 100;
  20553. this.Wl(a, c.width / 2, c.height / 2);
  20554. return a
  20555. }
  20556. });
  20557. F.hI.create = function(a, c) {
  20558. var d = new F.hI;
  20559. return d != q && d.f(a, c) ? d : q
  20560. };
  20561. F.dI = F.Wj.extend({
  20562. Rl: function(a) {
  20563. var c = F.I.T;
  20564. a = F.Ya.create(a.sprite);
  20565. F.B === F.$ && (a.sprite.flippedY = p);
  20566. a.type = F.Ya.wl;
  20567. a.midPoint = F.d(0.5, 0.5);
  20568. a.barChangeRate = F.d(1, 1);
  20569. a.percentage = 0;
  20570. this.Wl(a, c.width / 2, c.height / 2);
  20571. return a
  20572. },
  20573. mi: function() {
  20574. this.fh = r
  20575. },
  20576. pL: function() {
  20577. this.dw = this.na;
  20578. this.Sc = 0;
  20579. this.md = 100
  20580. }
  20581. });
  20582. F.dI.create = function(a, c) {
  20583. var d = new F.dI;
  20584. return d != q && d.f(a, c) ? d : q
  20585. };
  20586. F.eI = F.Wj.extend({
  20587. Rl: function(a) {
  20588. var c = F.I.T;
  20589. a = F.Ya.create(a.sprite);
  20590. F.B === F.$ && (a.sprite.flippedY = p);
  20591. a.type = F.Ya.wl;
  20592. a.midPoint = F.d(0.5, 0.5);
  20593. a.barChangeRate = F.d(1, 1);
  20594. a.percentage = 100;
  20595. this.Wl(a, c.width / 2, c.height / 2);
  20596. return a
  20597. }
  20598. });
  20599. F.eI.create = function(a, c) {
  20600. var d = new F.eI;
  20601. return d != q && d.f(a, c) ? d : q
  20602. };
  20603. F.bI = F.wa.extend({
  20604. Qu: p,
  20605. tb: "TransitionPageTurn",
  20606. f: function(a, c, d) {
  20607. this.Qu = d;
  20608. F.wa.prototype.f.call(this, a, c);
  20609. return p
  20610. },
  20611. xo: function(a) {
  20612. return this.Qu ? F.sl.create(F.lu.create(this.p, a)) : F.lu.create(this.p, a)
  20613. },
  20614. da: function() {
  20615. F.wa.prototype.da.call(this);
  20616. var a = F.I.T,
  20617. c;
  20618. a.width > a.height ? (a = 16, c = 12) : (a = 12, c = 16);
  20619. a = this.xo(F.size(a, c));
  20620. this.Qu ? (this.na.visible = r, this.na.ib(F.Ha.create(F.xf.create(), a, F.Pb.create(this.finish, this), F.ul.create()))) : this.fb.ib(F.Ha.create(a, F.Pb.create(this.finish, this), F.ul.create()))
  20621. },
  20622. mi: function() {
  20623. this.fh = this.Qu
  20624. }
  20625. });
  20626. F.bI.create = function(a, c, d) {
  20627. var e = new F.bI;
  20628. e.f(a, c, d);
  20629. return e
  20630. };
  20631. F.ka = {
  20632. name: "Jacob__Codec"
  20633. };
  20634. F.B4 = function() {
  20635. return F.ka.Ga.ex.apply(F.ka.Ga, arguments)
  20636. };
  20637. F.C4 = function() {
  20638. var a = F.ka.jl.mM.apply(F.ka.jl, arguments);
  20639. return F.ka.Ga.ex.apply(F.ka.Ga, [a])
  20640. };
  20641. F.EP = function(a, c) {
  20642. c = c || 1;
  20643. var d = this.C4(a),
  20644. e = [],
  20645. f, g, h;
  20646. f = 0;
  20647. for (h = d.length / c; f < h; f++) {
  20648. e[f] = 0;
  20649. for (g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g
  20650. }
  20651. return e
  20652. };
  20653. F.yka = function(a, c) {
  20654. c = c || 1;
  20655. var d = this.B4(a),
  20656. e = [],
  20657. f, g, h;
  20658. f = 0;
  20659. for (h = d.length / c; f < h; f++) {
  20660. e[f] = 0;
  20661. for (g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g
  20662. }
  20663. return e
  20664. };
  20665. F.V6 = function(a) {
  20666. a = a.split(",");
  20667. var c = [],
  20668. d;
  20669. for (d = 0; d < a.length; d++) c.push(parseInt(a[d]));
  20670. return c
  20671. };
  20672. F.ka.jl = {
  20673. name: "Jacob__Codec__Base64"
  20674. };
  20675. F.ka.jl.Ev = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  20676. F.ka.jl.mM = function(a) {
  20677. var c = [],
  20678. d, e, f, g, h, m = 0;
  20679. for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); m < a.length;) d = this.Ev.indexOf(a.charAt(m++)), e = this.Ev.indexOf(a.charAt(m++)), g = this.Ev.indexOf(a.charAt(m++)), h = this.Ev.indexOf(a.charAt(m++)), d = d << 2 | e >> 4, e = (e & 15) << 4 | g >> 2, f = (g & 3) << 6 | h, c.push(String.fromCharCode(d)), 64 != g && c.push(String.fromCharCode(e)), 64 != h && c.push(String.fromCharCode(f));
  20680. return c = c.join("")
  20681. };
  20682. F.ka.jl.nM = function(a, c) {
  20683. var d = this.mM(a),
  20684. e = [],
  20685. f, g, h;
  20686. f = 0;
  20687. for (h = d.length / c; f < h; f++) {
  20688. e[f] = 0;
  20689. for (g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g
  20690. }
  20691. return e
  20692. };
  20693. F.y4 = function(a) {
  20694. if (0 != a.length % 4) return q;
  20695. for (var c = a.length / 4, d = window.u7 ? new Uint32Array(c) : [], e = 0; e < c; e++) {
  20696. var f = 4 * e;
  20697. d[e] = a[f] + 256 * a[f + 1] + 65536 * a[f + 2] + 16777216 * a[f + 3]
  20698. }
  20699. return d
  20700. };
  20701. F.ka.Ga = function(a) {
  20702. this.data = a;
  20703. this.debug = r;
  20704. this.xj = k;
  20705. this.files = 0;
  20706. this.wy = [];
  20707. this.UD = Array(32768);
  20708. this.wh = 0;
  20709. this.Lx = r;
  20710. this.$L = 0;
  20711. this.si = 1;
  20712. this.Ao = 0;
  20713. this.cp = [];
  20714. this.DM = k;
  20715. this.Ss = Array(F.ka.Ga.nR);
  20716. this.pm = Array(32);
  20717. this.Bt = 0;
  20718. this.mz = q;
  20719. this.Hh = 0;
  20720. this.Lo = Array(17);
  20721. this.Lo[0] = 0;
  20722. this.IM = this.GM = k
  20723. };
  20724. F.ka.Ga.ex = function(a) {
  20725. return (new F.ka.Ga(a)).ex()[0][0]
  20726. };
  20727. F.ka.Ga.Wy = function() {
  20728. this.Hw = this.Gw = 0;
  20729. this.hF = q;
  20730. this.a1 = -1
  20731. };
  20732. F.ka.Ga.nR = 288;
  20733. F.ka.Ga.aH = 256;
  20734. F.ka.Ga.RD = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145,
  20735. 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255
  20736. ];
  20737. F.ka.Ga.iM = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0];
  20738. F.ka.Ga.jM = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99];
  20739. F.ka.Ga.hM = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  20740. F.ka.Ga.Go = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  20741. F.ka.Ga.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  20742. F.ka.Ga.prototype.ex = function() {
  20743. this.et = [];
  20744. ha(this);
  20745. return this.wy
  20746. };
  20747. F.ka.Ga.prototype.R = function() {
  20748. this.Ao += 8;
  20749. return this.$L < this.data.length ? this.data.charCodeAt(this.$L++) : -1
  20750. };
  20751. function ia(a) {
  20752. var c;
  20753. a.Ao++;
  20754. c = a.si & 1;
  20755. a.si >>= 1;
  20756. 0 == a.si && (a.si = a.R(), c = a.si & 1, a.si = a.si >> 1 | 128);
  20757. return c
  20758. }
  20759. function X(a, c) {
  20760. for (var d = 0, e = c; e--;) d = d << 1 | ia(a);
  20761. c && (d = F.ka.Ga.RD[d] >> 8 - c);
  20762. return d
  20763. }
  20764. function ka(a, c) {
  20765. a.UD[a.wh++] = c;
  20766. a.et.push(String.fromCharCode(c));
  20767. 32768 == a.wh && (a.wh = 0)
  20768. }
  20769. function la(a) {
  20770. for (;;) {
  20771. if (a.Lo[a.Hh] >= a.IM) return -1;
  20772. if (a.GM[a.Lo[a.Hh]] == a.Hh) return a.Lo[a.Hh]++;
  20773. a.Lo[a.Hh]++
  20774. }
  20775. }
  20776. function pa(a) {
  20777. var c = a.mz[a.Bt],
  20778. d;
  20779. if (17 == a.Hh) return -1;
  20780. a.Bt++;
  20781. a.Hh++;
  20782. d = la(a);
  20783. if (0 <= d) c.Gw = d;
  20784. else if (c.Gw = 32768, pa(a)) return -1;
  20785. d = la(a);
  20786. if (0 <= d) c.Hw = d, c.hF = q;
  20787. else if (c.Hw = 32768, c.hF = a.mz[a.Bt], c.a1 = a.Bt, pa(a)) return -1;
  20788. a.Hh--;
  20789. return 0
  20790. }
  20791. function qa(a, c, d, e) {
  20792. a.mz = c;
  20793. a.Bt = 0;
  20794. a.GM = e;
  20795. a.IM = d;
  20796. for (c = 0; 17 > c; c++) a.Lo[c] = 0;
  20797. a.Hh = 0;
  20798. return pa(a) ? -1 : 0
  20799. }
  20800. function ra(a, c) {
  20801. for (var d, e, f = 0, g = c[f];;)
  20802. if (d = ia(a)) {
  20803. if (!(g.Hw & 32768)) return g.Hw;
  20804. g = g.hF;
  20805. d = c.length;
  20806. for (e = 0; e < d; e++)
  20807. if (c[e] === g) {
  20808. f = e;
  20809. break
  20810. }
  20811. } else {
  20812. if (!(g.Gw & 32768)) return g.Gw;
  20813. f++;
  20814. g = c[f]
  20815. }
  20816. return -1
  20817. }
  20818. function sa(a) {
  20819. var c, d, e, f, g;
  20820. do
  20821. if (c = ia(a), e = X(a, 2), 0 == e) {
  20822. a.si = 1;
  20823. e = a.R();
  20824. e |= a.R() << 8;
  20825. d = a.R();
  20826. d |= a.R() << 8;
  20827. for ((e ^ ~d) & 65535 && document.write("BlockLen checksum mismatch\n"); e--;) d = a.R(), ka(a, d)
  20828. } else if (1 == e)
  20829. for (;;)
  20830. if (e = F.ka.Ga.RD[X(a, 7)] >> 1, 23 < e ? (e = e << 1 | ia(a), 199 < e ? (e -= 128, e = e << 1 | ia(a)) : (e -= 48, 143 < e && (e += 136))) : e += 256, 256 > e) ka(a, e);
  20831. else if (256 == e) break;
  20832. else {
  20833. var h;
  20834. e -= 257;
  20835. g = X(a, F.ka.Ga.jM[e]) + F.ka.Ga.iM[e];
  20836. e = F.ka.Ga.RD[X(a, 5)] >> 3;
  20837. 8 < F.ka.Ga.Go[e] ? (h = X(a, 8), h |= X(a, F.ka.Ga.Go[e] - 8) << 8) : h = X(a, F.ka.Ga.Go[e]);
  20838. h += F.ka.Ga.hM[e];
  20839. for (e = 0; e < g; e++) d = a.UD[a.wh - h & 32767], ka(a, d)
  20840. } else if (2 == e) {
  20841. var m = Array(320);
  20842. d = 257 + X(a, 5);
  20843. h = 1 + X(a, 5);
  20844. f = 4 + X(a, 4);
  20845. for (e = 0; 19 > e; e++) m[e] = 0;
  20846. for (e = 0; e < f; e++) m[F.ka.Ga.border[e]] = X(a, 3);
  20847. g = a.pm.length;
  20848. for (f = 0; f < g; f++) a.pm[f] = new F.ka.Ga.Wy;
  20849. if (qa(a, a.pm, 19, m)) {
  20850. a.wh = 0;
  20851. return
  20852. }
  20853. g = d + h;
  20854. f = 0;
  20855. for (var n = -1; f < g;)
  20856. if (n++, e = ra(a, a.pm), 16 > e) m[f++] = e;
  20857. else if (16 == e) {
  20858. var s;
  20859. e = 3 + X(a, 2);
  20860. if (f + e > g) {
  20861. a.wh = 0;
  20862. return
  20863. }
  20864. for (s = f ? m[f - 1] : 0; e--;) m[f++] = s
  20865. } else {
  20866. e = 17 == e ? 3 + X(a, 3) : 11 + X(a, 7);
  20867. if (f + e > g) {
  20868. a.wh = 0;
  20869. return
  20870. }
  20871. for (; e--;) m[f++] =
  20872. 0
  20873. }
  20874. g = a.Ss.length;
  20875. for (f = 0; f < g; f++) a.Ss[f] = new F.ka.Ga.Wy;
  20876. if (qa(a, a.Ss, d, m)) {
  20877. a.wh = 0;
  20878. return
  20879. }
  20880. g = a.Ss.length;
  20881. for (f = 0; f < g; f++) a.pm[f] = new F.ka.Ga.Wy;
  20882. e = [];
  20883. for (f = d; f < m.length; f++) e[f - d] = m[f];
  20884. if (qa(a, a.pm, h, e)) {
  20885. a.wh = 0;
  20886. return
  20887. }
  20888. for (;;)
  20889. if (e = ra(a, a.Ss), 256 <= e) {
  20890. e -= 256;
  20891. if (0 == e) break;
  20892. e--;
  20893. g = X(a, F.ka.Ga.jM[e]) + F.ka.Ga.iM[e];
  20894. e = ra(a, a.pm);
  20895. 8 < F.ka.Ga.Go[e] ? (h = X(a, 8), h |= X(a, F.ka.Ga.Go[e] - 8) << 8) : h = X(a, F.ka.Ga.Go[e]);
  20896. for (h += F.ka.Ga.hM[e]; g--;) d = a.UD[a.wh - h & 32767], ka(a, d)
  20897. } else ka(a, e)
  20898. }
  20899. while (!c);
  20900. a.wh = 0;
  20901. a.si = 1
  20902. }
  20903. function ha(a) {
  20904. a.et = [];
  20905. a.Lx = r;
  20906. var c = [];
  20907. c[0] = a.R();
  20908. c[1] = a.R();
  20909. 120 == c[0] && 218 == c[1] && (sa(a), a.wy[a.files] = [a.et.join(""), "geonext.gxt"], a.files++);
  20910. 31 == c[0] && 139 == c[1] && (ta(a), a.wy[a.files] = [a.et.join(""), "file"], a.files++);
  20911. if (80 == c[0] && 75 == c[1] && (a.Lx = p, c[2] = a.R(), c[3] = a.R(), 3 == c[2] && 4 == c[3])) {
  20912. c[0] = a.R();
  20913. c[1] = a.R();
  20914. a.xj = a.R();
  20915. a.xj |= a.R() << 8;
  20916. c = a.R();
  20917. c |= a.R() << 8;
  20918. a.R();
  20919. a.R();
  20920. a.R();
  20921. a.R();
  20922. a.R();
  20923. a.R();
  20924. a.R();
  20925. a.R();
  20926. a.R();
  20927. a.R();
  20928. a.R();
  20929. a.R();
  20930. var d = a.R(),
  20931. d = d | a.R() << 8,
  20932. e = a.R(),
  20933. e = e | a.R() << 8,
  20934. f = 0;
  20935. for (a.cp = []; d--;) {
  20936. var g =
  20937. a.R();
  20938. "/" == g | ":" == g ? f = 0 : f < F.ka.Ga.aH - 1 && (a.cp[f++] = String.fromCharCode(g))
  20939. }
  20940. a.DM || (a.DM = a.cp);
  20941. for (var f = 0; f < e;) a.R(), f++;
  20942. 8 == c && (sa(a), a.wy[a.files] = [a.et.join(""), a.cp.join("")], a.files++);
  20943. ta(a)
  20944. }
  20945. }
  20946. function ta(a) {
  20947. var c = [],
  20948. d;
  20949. a.xj & 8 && (c[0] = a.R(), c[1] = a.R(), c[2] = a.R(), c[3] = a.R(), a.R(), a.R(), a.R(), a.R(), a.R(), a.R(), a.R(), a.R());
  20950. a.Lx && ha(a);
  20951. c[0] = a.R();
  20952. if (8 == c[0]) {
  20953. a.xj = a.R();
  20954. a.R();
  20955. a.R();
  20956. a.R();
  20957. a.R();
  20958. a.R();
  20959. a.R();
  20960. if (a.xj & 4) {
  20961. c[0] = a.R();
  20962. c[2] = a.R();
  20963. a.Hh = c[0] + 256 * c[1];
  20964. for (c = 0; c < a.Hh; c++) a.R()
  20965. }
  20966. if (a.xj & 8) {
  20967. c = 0;
  20968. for (a.cp = []; d = a.R();) {
  20969. if ("7" == d || ":" == d) c = 0;
  20970. c < F.ka.Ga.aH - 1 && (a.cp[c++] = d)
  20971. }
  20972. }
  20973. if (a.xj & 16)
  20974. for (; a.R(););
  20975. a.xj & 2 && (a.R(), a.R());
  20976. sa(a);
  20977. a.R();
  20978. a.R();
  20979. a.R();
  20980. a.R();
  20981. a.Lx && ha(a)
  20982. }
  20983. };
  20984. /*
  20985. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  20986. (function() {
  20987. function a(a) {
  20988. b(a)
  20989. }
  20990. function c(a, c) {
  20991. var d = a.split("."),
  20992. e = H;
  20993. !(d[0] in e) && e.execScript && e.execScript("var " + d[0]);
  20994. for (var f; d.length && (f = d.shift());)!d.length && c !== L ? e[f] = c : e = e[f] ? e[f] : e[f] = {}
  20995. }
  20996. function d(a) {
  20997. if ("string" === typeof a) {
  20998. a = a.split("");
  20999. var c, d;
  21000. c = 0;
  21001. for (d = a.length; c < d; c++) a[c] = (a[c].charCodeAt(0) & 255) >>> 0
  21002. }
  21003. c = 1;
  21004. d = 0;
  21005. for (var e = a.length, f, g = 0; 0 < e;) {
  21006. f = 1024 < e ? 1024 : e;
  21007. e -= f;
  21008. do c += a[g++], d += c; while (--f);
  21009. c %= 65521;
  21010. d %= 65521
  21011. }
  21012. return (d << 16 | c) >>> 0
  21013. }
  21014. function e(c, d) {
  21015. this.index = "number" === typeof d ? d : 0;
  21016. this.Ks = 0;
  21017. this.buffer = c instanceof(I ? Uint8Array : Array) ? c : new(I ? Uint8Array : Array)(32768);
  21018. 2 * this.buffer.length <= this.index && a(Error("invalid index"));
  21019. this.buffer.length <= this.index && this.zh()
  21020. }
  21021. function f(a) {
  21022. this.buffer = new(I ? Uint16Array : Array)(2 * a);
  21023. this.length = 0
  21024. }
  21025. function g(a) {
  21026. var c = a.length,
  21027. d = 0,
  21028. e = Number.POSITIVE_INFINITY,
  21029. f, g, h, m, n, s, u, v, w;
  21030. for (v = 0; v < c; ++v) a[v] > d && (d = a[v]), a[v] < e && (e = a[v]);
  21031. f = 1 << d;
  21032. g = new(I ? Uint32Array : Array)(f);
  21033. h = 1;
  21034. m = 0;
  21035. for (n = 2; h <= d;) {
  21036. for (v = 0; v < c; ++v)
  21037. if (a[v] === h) {
  21038. s = 0;
  21039. u = m;
  21040. for (w = 0; w < h; ++w) s =
  21041. s << 1 | u & 1, u >>= 1;
  21042. for (w = s; w < f; w += n) g[w] = h << 16 | v;
  21043. ++m
  21044. }++h;
  21045. m <<= 1;
  21046. n <<= 1
  21047. }
  21048. return [g, d, e]
  21049. }
  21050. function h(a, c) {
  21051. this.Uo = $;
  21052. this.H = 0;
  21053. this.input = a;
  21054. this.b = 0;
  21055. c && (c.B1 && (this.H = c.B1), "number" === typeof c.gE && (this.Uo = c.gE), c.Rx && (this.a = I && c.Rx instanceof Array ? new Uint8Array(c.Rx) : c.Rx), "number" === typeof c.O1 && (this.b = c.O1));
  21056. this.a || (this.a = new(I ? Uint8Array : Array)(32768))
  21057. }
  21058. function m(a, c) {
  21059. this.length = a;
  21060. this.PQ = c
  21061. }
  21062. function n() {
  21063. var c = Y;
  21064. switch (O) {
  21065. case 3 === c:
  21066. return [257, c - 3, 0];
  21067. case 4 === c:
  21068. return [258, c - 4, 0];
  21069. case 5 === c:
  21070. return [259,
  21071. c - 5, 0
  21072. ];
  21073. case 6 === c:
  21074. return [260, c - 6, 0];
  21075. case 7 === c:
  21076. return [261, c - 7, 0];
  21077. case 8 === c:
  21078. return [262, c - 8, 0];
  21079. case 9 === c:
  21080. return [263, c - 9, 0];
  21081. case 10 === c:
  21082. return [264, c - 10, 0];
  21083. case 12 >= c:
  21084. return [265, c - 11, 1];
  21085. case 14 >= c:
  21086. return [266, c - 13, 1];
  21087. case 16 >= c:
  21088. return [267, c - 15, 1];
  21089. case 18 >= c:
  21090. return [268, c - 17, 1];
  21091. case 22 >= c:
  21092. return [269, c - 19, 2];
  21093. case 26 >= c:
  21094. return [270, c - 23, 2];
  21095. case 30 >= c:
  21096. return [271, c - 27, 2];
  21097. case 34 >= c:
  21098. return [272, c - 31, 2];
  21099. case 42 >= c:
  21100. return [273, c - 35, 3];
  21101. case 50 >= c:
  21102. return [274, c - 43, 3];
  21103. case 58 >= c:
  21104. return [275, c - 51, 3];
  21105. case 66 >= c:
  21106. return [276,
  21107. c - 59, 3
  21108. ];
  21109. case 82 >= c:
  21110. return [277, c - 67, 4];
  21111. case 98 >= c:
  21112. return [278, c - 83, 4];
  21113. case 114 >= c:
  21114. return [279, c - 99, 4];
  21115. case 130 >= c:
  21116. return [280, c - 115, 4];
  21117. case 162 >= c:
  21118. return [281, c - 131, 5];
  21119. case 194 >= c:
  21120. return [282, c - 163, 5];
  21121. case 226 >= c:
  21122. return [283, c - 195, 5];
  21123. case 257 >= c:
  21124. return [284, c - 227, 5];
  21125. case 258 === c:
  21126. return [285, c - 258, 0];
  21127. default:
  21128. a("invalid length: " + c)
  21129. }
  21130. }
  21131. function s(c, d) {
  21132. function e(c, d) {
  21133. var f = c.PQ,
  21134. g = [],
  21135. h = 0,
  21136. m;
  21137. m = ba[c.length];
  21138. g[h++] = m & 65535;
  21139. g[h++] = m >> 16 & 255;
  21140. g[h++] = m >> 24;
  21141. var n;
  21142. switch (O) {
  21143. case 1 === f:
  21144. n = [0, f - 1, 0];
  21145. break;
  21146. case 2 === f:
  21147. n = [1, f -
  21148. 2, 0
  21149. ];
  21150. break;
  21151. case 3 === f:
  21152. n = [2, f - 3, 0];
  21153. break;
  21154. case 4 === f:
  21155. n = [3, f - 4, 0];
  21156. break;
  21157. case 6 >= f:
  21158. n = [4, f - 5, 1];
  21159. break;
  21160. case 8 >= f:
  21161. n = [5, f - 7, 1];
  21162. break;
  21163. case 12 >= f:
  21164. n = [6, f - 9, 2];
  21165. break;
  21166. case 16 >= f:
  21167. n = [7, f - 13, 2];
  21168. break;
  21169. case 24 >= f:
  21170. n = [8, f - 17, 3];
  21171. break;
  21172. case 32 >= f:
  21173. n = [9, f - 25, 3];
  21174. break;
  21175. case 48 >= f:
  21176. n = [10, f - 33, 4];
  21177. break;
  21178. case 64 >= f:
  21179. n = [11, f - 49, 4];
  21180. break;
  21181. case 96 >= f:
  21182. n = [12, f - 65, 5];
  21183. break;
  21184. case 128 >= f:
  21185. n = [13, f - 97, 5];
  21186. break;
  21187. case 192 >= f:
  21188. n = [14, f - 129, 6];
  21189. break;
  21190. case 256 >= f:
  21191. n = [15, f - 193, 6];
  21192. break;
  21193. case 384 >= f:
  21194. n = [16, f - 257, 7];
  21195. break;
  21196. case 512 >= f:
  21197. n = [17, f - 385, 7];
  21198. break;
  21199. case 768 >= f:
  21200. n = [18, f - 513, 8];
  21201. break;
  21202. case 1024 >= f:
  21203. n = [19, f - 769, 8];
  21204. break;
  21205. case 1536 >= f:
  21206. n = [20, f - 1025, 9];
  21207. break;
  21208. case 2048 >= f:
  21209. n = [21, f - 1537, 9];
  21210. break;
  21211. case 3072 >= f:
  21212. n = [22, f - 2049, 10];
  21213. break;
  21214. case 4096 >= f:
  21215. n = [23, f - 3073, 10];
  21216. break;
  21217. case 6144 >= f:
  21218. n = [24, f - 4097, 11];
  21219. break;
  21220. case 8192 >= f:
  21221. n = [25, f - 6145, 11];
  21222. break;
  21223. case 12288 >= f:
  21224. n = [26, f - 8193, 12];
  21225. break;
  21226. case 16384 >= f:
  21227. n = [27, f - 12289, 12];
  21228. break;
  21229. case 24576 >= f:
  21230. n = [28, f - 16385, 13];
  21231. break;
  21232. case 32768 >= f:
  21233. n = [29, f - 24577, 13];
  21234. break;
  21235. default:
  21236. a("invalid distance")
  21237. }
  21238. m = n;
  21239. g[h++] = m[0];
  21240. g[h++] = m[1];
  21241. g[h++] = m[2];
  21242. f = 0;
  21243. for (h = g.length; f < h; ++f) w[x++] = g[f];
  21244. B[g[0]]++;
  21245. C[g[3]]++;
  21246. z = c.length + d - 1;
  21247. v = q
  21248. }
  21249. var f, g, h, n, s, u = {},
  21250. v, w = I ? new Uint16Array(2 * d.length) : [],
  21251. x = 0,
  21252. z = 0,
  21253. B = new(I ? Uint32Array : Array)(286),
  21254. C = new(I ? Uint32Array : Array)(30),
  21255. G = c.H,
  21256. D;
  21257. if (!I) {
  21258. for (h = 0; 285 >= h;) B[h++] = 0;
  21259. for (h = 0; 29 >= h;) C[h++] = 0
  21260. }
  21261. B[256] = 1;
  21262. f = 0;
  21263. for (g = d.length; f < g; ++f) {
  21264. h = s = 0;
  21265. for (n = 3; h < n && f + h !== g; ++h) s = s << 8 | d[f + h];
  21266. u[s] === L && (u[s] = []);
  21267. h = u[s];
  21268. if (!(0 < z--)) {
  21269. for (; 0 < h.length && 32768 < f - h[0];) h.shift();
  21270. if (f + 3 >= g) {
  21271. v && e(v, -1);
  21272. h = 0;
  21273. for (n = g - f; h < n; ++h) D = d[f + h], w[x++] = D, ++B[D];
  21274. break
  21275. }
  21276. if (0 < h.length) {
  21277. s = n = L;
  21278. var K = 0,
  21279. J = L,
  21280. H = L,
  21281. N = J = L,
  21282. Q = d.length,
  21283. H = 0,
  21284. N = h.length;
  21285. a: for (; H < N; H++) {
  21286. n = h[N - H - 1];
  21287. J = 3;
  21288. if (3 < K) {
  21289. for (J = K; 3 < J; J--)
  21290. if (d[n + J - 1] !== d[f + J - 1]) continue a;
  21291. J = K
  21292. }
  21293. for (; 258 > J && f + J < Q && d[n + J] === d[f + J];)++J;
  21294. J > K && (s = n, K = J);
  21295. if (258 === J) break
  21296. }
  21297. n = new m(K, f - s);
  21298. v ? v.length < n.length ? (D = d[f - 1], w[x++] = D, ++B[D], e(n, 0)) : e(v, -1) : n.length < G ? v = n : e(n, 0)
  21299. } else v ? e(v, -1) : (D = d[f], w[x++] = D, ++B[D])
  21300. }
  21301. h.push(f)
  21302. }
  21303. w[x++] = 256;
  21304. B[256]++;
  21305. c.jR = B;
  21306. c.bR = C;
  21307. return I ? w.subarray(0, x) : w
  21308. }
  21309. function u(a, c) {
  21310. function d(a) {
  21311. var c = w[a][x[a]];
  21312. c ===
  21313. u ? (d(a + 1), d(a + 1)) : --v[c];
  21314. ++x[a]
  21315. }
  21316. var e = a.length,
  21317. g = new f(572),
  21318. h = new(I ? Uint8Array : Array)(e),
  21319. m, n, s;
  21320. if (!I)
  21321. for (n = 0; n < e; n++) h[n] = 0;
  21322. for (n = 0; n < e; ++n) 0 < a[n] && g.push(n, a[n]);
  21323. e = Array(g.length / 2);
  21324. m = new(I ? Uint32Array : Array)(g.length / 2);
  21325. if (1 === e.length) return h[g.pop().index] = 1, h;
  21326. n = 0;
  21327. for (s = g.length / 2; n < s; ++n) e[n] = g.pop(), m[n] = e[n].value;
  21328. var u = m.length;
  21329. n = new(I ? Uint16Array : Array)(c);
  21330. var g = new(I ? Uint8Array : Array)(c),
  21331. v = new(I ? Uint8Array : Array)(u);
  21332. s = Array(c);
  21333. var w = Array(c),
  21334. x = Array(c),
  21335. z = (1 << c) - u,
  21336. B = 1 << c - 1,
  21337. C, G, D;
  21338. n[c -
  21339. 1] = u;
  21340. for (C = 0; C < c; ++C) z < B ? g[C] = 0 : (g[C] = 1, z -= B), z <<= 1, n[c - 2 - C] = (n[c - 1 - C] / 2 | 0) + u;
  21341. n[0] = g[0];
  21342. s[0] = Array(n[0]);
  21343. w[0] = Array(n[0]);
  21344. for (C = 1; C < c; ++C) n[C] > 2 * n[C - 1] + g[C] && (n[C] = 2 * n[C - 1] + g[C]), s[C] = Array(n[C]), w[C] = Array(n[C]);
  21345. for (z = 0; z < u; ++z) v[z] = c;
  21346. for (B = 0; B < n[c - 1]; ++B) s[c - 1][B] = m[B], w[c - 1][B] = B;
  21347. for (z = 0; z < c; ++z) x[z] = 0;
  21348. 1 === g[c - 1] && (--v[0], ++x[c - 1]);
  21349. for (C = c - 2; 0 <= C; --C) {
  21350. G = z = 0;
  21351. D = x[C + 1];
  21352. for (B = 0; B < n[C]; B++) G = s[C + 1][D] + s[C + 1][D + 1], G > m[z] ? (s[C][B] = G, w[C][B] = u, D += 2) : (s[C][B] = m[z], w[C][B] = z, ++z);
  21353. x[C] = 0;
  21354. 1 === g[C] && d(C)
  21355. }
  21356. m =
  21357. v;
  21358. n = 0;
  21359. for (s = e.length; n < s; ++n) h[e[n].index] = m[n];
  21360. return h
  21361. }
  21362. function v(c) {
  21363. var d = new(I ? Uint16Array : Array)(c.length),
  21364. e = [],
  21365. f = [],
  21366. g = 0,
  21367. h, m, n;
  21368. h = 0;
  21369. for (m = c.length; h < m; h++) e[c[h]] = (e[c[h]] | 0) + 1;
  21370. h = 1;
  21371. for (m = 16; h <= m; h++) f[h] = g, g += e[h] | 0, g > 1 << h && a("overcommitted"), g <<= 1;
  21372. 65536 > g && a("undercommitted");
  21373. h = 0;
  21374. for (m = c.length; h < m; h++) {
  21375. g = f[c[h]];
  21376. f[c[h]] += 1;
  21377. e = d[h] = 0;
  21378. for (n = c[h]; e < n; e++) d[h] = d[h] << 1 | g & 1, g >>>= 1
  21379. }
  21380. return d
  21381. }
  21382. function x(a, c) {
  21383. this.input = a;
  21384. this.a = new(I ? Uint8Array : Array)(32768);
  21385. this.Uo = N.ux;
  21386. var d = {},
  21387. e;
  21388. if ((c || !(c = {})) &&
  21389. "number" === typeof c.gE) this.Uo = c.gE;
  21390. for (e in c) d[e] = c[e];
  21391. d.Rx = this.a;
  21392. this.e = new h(this.input, d)
  21393. }
  21394. function w(c, d) {
  21395. this.vx = [];
  21396. this.Fx = 32768;
  21397. this.Fg = this.g = this.D = this.Wx = 0;
  21398. this.input = I ? new Uint8Array(c) : c;
  21399. this.JF = r;
  21400. this.Jx = ma;
  21401. this.yG = r;
  21402. if (d || !(d = {})) d.index && (this.D = d.index), d.VD && (this.Fx = d.VD), d.WD && (this.Jx = d.WD), d.mt && (this.yG = d.mt);
  21403. switch (this.Jx) {
  21404. case wa:
  21405. this.b = 32768;
  21406. this.a = new(I ? Uint8Array : Array)(32768 + this.Fx + 258);
  21407. break;
  21408. case ma:
  21409. this.b = 0;
  21410. this.a = new(I ? Uint8Array : Array)(this.Fx);
  21411. this.zh = this.aR;
  21412. this.kG = this.RQ;
  21413. this.Mx = this.VQ;
  21414. break;
  21415. default:
  21416. a(Error("invalid inflate mode"))
  21417. }
  21418. }
  21419. function z(c, d) {
  21420. for (var e = c.g, f = c.Fg, g = c.input, h = c.D, m; f < d;) m = g[h++], m === L && a(Error("input buffer is broken")), e |= m << f, f += 8;
  21421. c.g = e >>> d;
  21422. c.Fg = f - d;
  21423. c.D = h;
  21424. return e & (1 << d) - 1
  21425. }
  21426. function B(c, d) {
  21427. for (var e = c.g, f = c.Fg, g = c.input, h = c.D, m = d[0], n = d[1], s; f < n;) s = g[h++], s === L && a(Error("input buffer is broken")), e |= s << f, f += 8;
  21428. g = m[e & (1 << n) - 1];
  21429. m = g >>> 16;
  21430. c.g = e >> m;
  21431. c.Fg = f - m;
  21432. c.D = h;
  21433. return g & 65535
  21434. }
  21435. function C(a) {
  21436. function c(a, d, e) {
  21437. var f, g, h, m;
  21438. for (m = 0; m <
  21439. a;) switch (f = B(this, d), f) {
  21440. case 16:
  21441. for (h = 3 + z(this, 2); h--;) e[m++] = g;
  21442. break;
  21443. case 17:
  21444. for (h = 3 + z(this, 3); h--;) e[m++] = 0;
  21445. g = 0;
  21446. break;
  21447. case 18:
  21448. for (h = 11 + z(this, 7); h--;) e[m++] = 0;
  21449. g = 0;
  21450. break;
  21451. default:
  21452. g = e[m++] = f
  21453. }
  21454. return e
  21455. }
  21456. var d = z(a, 5) + 257,
  21457. e = z(a, 5) + 1,
  21458. f = z(a, 4) + 4,
  21459. h = new(I ? Uint8Array : Array)(Fa.length),
  21460. m;
  21461. for (m = 0; m < f; ++m) h[Fa[m]] = z(a, 3);
  21462. f = g(h);
  21463. h = new(I ? Uint8Array : Array)(d);
  21464. m = new(I ? Uint8Array : Array)(e);
  21465. a.Mx(g(c.call(a, d, f, h)), g(c.call(a, e, f, m)))
  21466. }
  21467. function D(c, d) {
  21468. var e, f;
  21469. this.input = c;
  21470. this.D = 0;
  21471. if (d || !(d = {})) d.index && (this.D = d.index),
  21472. d.JP && (this.sR = d.JP);
  21473. e = c[this.D++];
  21474. f = c[this.D++];
  21475. switch (e & 15) {
  21476. case ja:
  21477. this.method = ja;
  21478. break;
  21479. default:
  21480. a(Error("unsupported compression method"))
  21481. }
  21482. 0 !== ((e << 8) + f) % 31 && a(Error("invalid fcheck flag:" + ((e << 8) + f) % 31));
  21483. f & 32 && a(Error("fdict flag is not supported"));
  21484. this.qG = new w(c, {
  21485. index: this.D,
  21486. VD: d.VD,
  21487. WD: d.WD,
  21488. mt: d.mt
  21489. })
  21490. }
  21491. var L = k,
  21492. O = p,
  21493. H = this,
  21494. I = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  21495. e.prototype.zh = function() {
  21496. var a = this.buffer,
  21497. c, d = a.length,
  21498. e = new(I ? Uint8Array :
  21499. Array)(d << 1);
  21500. if (I) e.set(a);
  21501. else
  21502. for (c = 0; c < d; ++c) e[c] = a[c];
  21503. return this.buffer = e
  21504. };
  21505. e.prototype.J = function(a, c, d) {
  21506. var e = this.buffer,
  21507. f = this.index,
  21508. g = this.Ks,
  21509. h = e[f];
  21510. d && 1 < c && (a = 8 < c ? (P[a & 255] << 24 | P[a >>> 8 & 255] << 16 | P[a >>> 16 & 255] << 8 | P[a >>> 24 & 255]) >> 32 - c : P[a] >> 8 - c);
  21511. if (8 > c + g) h = h << c | a, g += c;
  21512. else
  21513. for (d = 0; d < c; ++d) h = h << 1 | a >> c - d - 1 & 1, 8 === ++g && (g = 0, e[f++] = P[h], h = 0, f === e.length && (e = this.zh()));
  21514. e[f] = h;
  21515. this.buffer = e;
  21516. this.Ks = g;
  21517. this.index = f
  21518. };
  21519. e.prototype.finish = function() {
  21520. var a = this.buffer,
  21521. c = this.index,
  21522. d;
  21523. 0 < this.Ks && (a[c] <<=
  21524. 8 - this.Ks, a[c] = P[a[c]], c++);
  21525. I ? d = a.subarray(0, c) : (a.length = c, d = a);
  21526. return d
  21527. };
  21528. var K = new(I ? Uint8Array : Array)(256),
  21529. G;
  21530. for (G = 0; 256 > G; ++G) {
  21531. for (var J = G, Q = J, R = 7, J = J >>> 1; J; J >>>= 1) Q <<= 1, Q |= J & 1, --R;
  21532. K[G] = (Q << R & 255) >>> 0
  21533. }
  21534. var P = K,
  21535. K = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636,
  21536. 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374,
  21537. 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776,
  21538. 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850,
  21539. 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567,
  21540. 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117
  21541. ];
  21542. I && new Uint32Array(K);
  21543. f.prototype.getParent = function(a) {
  21544. return 2 * ((a - 2) /
  21545. 4 | 0)
  21546. };
  21547. f.prototype.push = function(a, c) {
  21548. var d, e, f = this.buffer,
  21549. g;
  21550. d = this.length;
  21551. f[this.length++] = c;
  21552. for (f[this.length++] = a; 0 < d;)
  21553. if (e = this.getParent(d), f[d] > f[e]) g = f[d], f[d] = f[e], f[e] = g, g = f[d + 1], f[d + 1] = f[e + 1], f[e + 1] = g, d = e;
  21554. else break;
  21555. return this.length
  21556. };
  21557. f.prototype.pop = function() {
  21558. var a, c, d = this.buffer,
  21559. e, f, g;
  21560. c = d[0];
  21561. a = d[1];
  21562. this.length -= 2;
  21563. d[0] = d[this.length];
  21564. d[1] = d[this.length + 1];
  21565. for (g = 0;;) {
  21566. f = 2 * g + 2;
  21567. if (f >= this.length) break;
  21568. f + 2 < this.length && d[f + 2] > d[f] && (f += 2);
  21569. if (d[f] > d[g]) e = d[g], d[g] = d[f], d[f] = e, e = d[g + 1], d[g +
  21570. 1] = d[f + 1], d[f + 1] = e;
  21571. else break;
  21572. g = f
  21573. }
  21574. return {
  21575. index: a,
  21576. value: c,
  21577. length: this.length
  21578. }
  21579. };
  21580. var $ = 2,
  21581. K = {
  21582. NONE: 0,
  21583. r: 1,
  21584. ux: $,
  21585. w6: 3
  21586. },
  21587. T = [];
  21588. for (G = 0; 288 > G; G++) switch (O) {
  21589. case 143 >= G:
  21590. T.push([G + 48, 8]);
  21591. break;
  21592. case 255 >= G:
  21593. T.push([G - 144 + 400, 9]);
  21594. break;
  21595. case 279 >= G:
  21596. T.push([G - 256 + 0, 7]);
  21597. break;
  21598. case 287 >= G:
  21599. T.push([G - 280 + 192, 8]);
  21600. break;
  21601. default:
  21602. a("invalid literal: " + G)
  21603. }
  21604. h.prototype.Xk = function() {
  21605. var c, d, f, g, h = this.input;
  21606. switch (this.Uo) {
  21607. case 0:
  21608. f = 0;
  21609. for (g = h.length; f < g;) {
  21610. d = I ? h.subarray(f, f + 65535) : h.slice(f, f + 65535);
  21611. f += d.length;
  21612. var m = f === g,
  21613. n = L,
  21614. w = n = L,
  21615. w = n = L,
  21616. x = this.a,
  21617. z = this.b;
  21618. if (I) {
  21619. for (x = new Uint8Array(this.a.buffer); x.length <= z + d.length + 5;) x = new Uint8Array(x.length << 1);
  21620. x.set(this.a)
  21621. }
  21622. n = m ? 1 : 0;
  21623. x[z++] = n | 0;
  21624. n = d.length;
  21625. w = ~n + 65536 & 65535;
  21626. x[z++] = n & 255;
  21627. x[z++] = n >>> 8 & 255;
  21628. x[z++] = w & 255;
  21629. x[z++] = w >>> 8 & 255;
  21630. if (I) x.set(d, z), z += d.length, x = x.subarray(0, z);
  21631. else {
  21632. n = 0;
  21633. for (w = d.length; n < w; ++n) x[z++] = d[n];
  21634. x.length = z
  21635. }
  21636. this.b = z;
  21637. this.a = x
  21638. }
  21639. break;
  21640. case 1:
  21641. f = new e(new Uint8Array(this.a.buffer), this.b);
  21642. f.J(1, 1, O);
  21643. f.J(1, 2, O);
  21644. h = s(this, h);
  21645. d = 0;
  21646. for (m = h.length; d < m; d++)
  21647. if (g = h[d], e.prototype.J.apply(f,
  21648. T[g]), 256 < g) f.J(h[++d], h[++d], O), f.J(h[++d], 5), f.J(h[++d], h[++d], O);
  21649. else if (256 === g) break;
  21650. this.a = f.finish();
  21651. this.b = this.a.length;
  21652. break;
  21653. case $:
  21654. g = new e(new Uint8Array(this.a), this.b);
  21655. var B, C, D, G = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  21656. K, J, n = Array(19),
  21657. H, x = $;
  21658. g.J(1, 1, O);
  21659. g.J(x, 2, O);
  21660. h = s(this, h);
  21661. w = u(this.jR, 15);
  21662. K = v(w);
  21663. x = u(this.bR, 7);
  21664. z = v(x);
  21665. for (B = 286; 257 < B && 0 === w[B - 1]; B--);
  21666. for (C = 30; 1 < C && 0 === x[C - 1]; C--);
  21667. var N = B,
  21668. Q = C;
  21669. c = new(I ? Uint32Array : Array)(N + Q);
  21670. var P = new(I ? Uint32Array : Array)(316),
  21671. R, U;
  21672. J = new(I ?
  21673. Uint8Array : Array)(19);
  21674. for (H = D = 0; H < N; H++) c[D++] = w[H];
  21675. for (H = 0; H < Q; H++) c[D++] = x[H];
  21676. if (!I) {
  21677. H = 0;
  21678. for (Q = J.length; H < Q; ++H) J[H] = 0
  21679. }
  21680. H = R = 0;
  21681. for (Q = c.length; H < Q; H += D) {
  21682. for (D = 1; H + D < Q && c[H + D] === c[H]; ++D);
  21683. N = D;
  21684. if (0 === c[H])
  21685. if (3 > N)
  21686. for (; 0 < N--;) P[R++] = 0, J[0]++;
  21687. else
  21688. for (; 0 < N;) U = 138 > N ? N : 138, U > N - 3 && U < N && (U = N - 3), 10 >= U ? (P[R++] = 17, P[R++] = U - 3, J[17]++) : (P[R++] = 18, P[R++] = U - 11, J[18]++), N -= U;
  21689. else if (P[R++] = c[H], J[c[H]]++, N--, 3 > N)
  21690. for (; 0 < N--;) P[R++] = c[H], J[c[H]]++;
  21691. else
  21692. for (; 0 < N;) U = 6 > N ? N : 6, U > N - 3 && U < N && (U = N - 3), P[R++] = 16, P[R++] = U - 3, J[16]++,
  21693. N -= U
  21694. }
  21695. c = I ? P.subarray(0, R) : P.slice(0, R);
  21696. J = u(J, 7);
  21697. for (H = 0; 19 > H; H++) n[H] = J[G[H]];
  21698. for (D = 19; 4 < D && 0 === n[D - 1]; D--);
  21699. G = v(J);
  21700. g.J(B - 257, 5, O);
  21701. g.J(C - 1, 5, O);
  21702. g.J(D - 4, 4, O);
  21703. for (H = 0; H < D; H++) g.J(n[H], 3, O);
  21704. H = 0;
  21705. for (n = c.length; H < n; H++)
  21706. if (d = c[H], g.J(G[d], J[d], O), 16 <= d) {
  21707. H++;
  21708. switch (d) {
  21709. case 16:
  21710. m = 2;
  21711. break;
  21712. case 17:
  21713. m = 3;
  21714. break;
  21715. case 18:
  21716. m = 7;
  21717. break;
  21718. default:
  21719. a("invalid code: " + d)
  21720. }
  21721. g.J(c[H], m, O)
  21722. }
  21723. m = [K, w];
  21724. z = [z, x];
  21725. d = m[0];
  21726. m = m[1];
  21727. x = z[0];
  21728. K = z[1];
  21729. z = 0;
  21730. for (n = h.length; z < n; ++z)
  21731. if (f = h[z], g.J(d[f], m[f], O), 256 < f) g.J(h[++z], h[++z], O), w = h[++z], g.J(x[w],
  21732. K[w], O), g.J(h[++z], h[++z], O);
  21733. else if (256 === f) break;
  21734. this.a = g.finish();
  21735. this.b = this.a.length;
  21736. break;
  21737. default:
  21738. a("invalid compression type")
  21739. }
  21740. return this.a
  21741. };
  21742. G = [];
  21743. var Y;
  21744. for (Y = 3; 258 >= Y; Y++) J = n(), G[Y] = J[2] << 24 | J[1] << 16 | J[0];
  21745. var ba = I ? new Uint32Array(G) : G,
  21746. N = K;
  21747. x.prototype.Xk = function() {
  21748. var c, e, f, g, h = 0;
  21749. g = this.a;
  21750. c = ja;
  21751. switch (c) {
  21752. case ja:
  21753. e = Math.LOG2E * Math.log(32768) - 8;
  21754. break;
  21755. default:
  21756. a(Error("invalid compression method"))
  21757. }
  21758. e = e << 4 | c;
  21759. g[h++] = e;
  21760. switch (c) {
  21761. case ja:
  21762. switch (this.Uo) {
  21763. case N.NONE:
  21764. f = 0;
  21765. break;
  21766. case N.r:
  21767. f = 1;
  21768. break;
  21769. case N.ux:
  21770. f =
  21771. 2;
  21772. break;
  21773. default:
  21774. a(Error("unsupported compression type"))
  21775. }
  21776. break;
  21777. default:
  21778. a(Error("invalid compression method"))
  21779. }
  21780. c = f << 6 | 0;
  21781. g[h++] = c | 31 - (256 * e + c) % 31;
  21782. c = d(this.input);
  21783. this.e.b = h;
  21784. g = this.e.Xk();
  21785. h = g.length;
  21786. I && (g = new Uint8Array(g.buffer), g.length <= h + 4 && (this.a = new Uint8Array(g.length + 4), this.a.set(g), g = this.a), g = g.subarray(0, h + 4));
  21787. g[h++] = c >> 24 & 255;
  21788. g[h++] = c >> 16 & 255;
  21789. g[h++] = c >> 8 & 255;
  21790. g[h++] = c & 255;
  21791. return g
  21792. };
  21793. c("Zlib.Deflate", x);
  21794. c("Zlib.Deflate.compress", function(a, c) {
  21795. return (new x(a, c)).Xk()
  21796. });
  21797. c("Zlib.Deflate.CompressionType",
  21798. N);
  21799. c("Zlib.Deflate.CompressionType.NONE", N.NONE);
  21800. c("Zlib.Deflate.CompressionType.FIXED", N.r);
  21801. c("Zlib.Deflate.CompressionType.DYNAMIC", N.ux);
  21802. var wa = 0,
  21803. ma = 1,
  21804. K = {
  21805. oQ: wa,
  21806. aQ: ma
  21807. };
  21808. w.prototype.d = function() {
  21809. for (; !this.JF;) {
  21810. var c = z(this, 3);
  21811. c & 1 && (this.JF = O);
  21812. c >>>= 1;
  21813. switch (c) {
  21814. case 0:
  21815. var c = this.input,
  21816. d = this.D,
  21817. e = this.a,
  21818. f = this.b,
  21819. g = L,
  21820. h = L,
  21821. m = L,
  21822. n = e.length,
  21823. g = L;
  21824. this.Fg = this.g = 0;
  21825. g = c[d++];
  21826. g === L && a(Error("invalid uncompressed block header: LEN (first byte)"));
  21827. h = g;
  21828. g = c[d++];
  21829. g === L && a(Error("invalid uncompressed block header: LEN (second byte)"));
  21830. h |= g << 8;
  21831. g = c[d++];
  21832. g === L && a(Error("invalid uncompressed block header: NLEN (first byte)"));
  21833. m = g;
  21834. g = c[d++];
  21835. g === L && a(Error("invalid uncompressed block header: NLEN (second byte)"));
  21836. m |= g << 8;
  21837. h === ~m && a(Error("invalid uncompressed block header: length verify"));
  21838. d + h > c.length && a(Error("input buffer is broken"));
  21839. switch (this.Jx) {
  21840. case wa:
  21841. for (; f + h > e.length;) {
  21842. g = n - f;
  21843. h -= g;
  21844. if (I) e.set(c.subarray(d, d + g), f), f += g, d += g;
  21845. else
  21846. for (; g--;) e[f++] = c[d++];
  21847. this.b = f;
  21848. e = this.zh();
  21849. f = this.b
  21850. }
  21851. break;
  21852. case ma:
  21853. for (; f + h > e.length;) e = this.zh({
  21854. ga: 2
  21855. });
  21856. break;
  21857. default:
  21858. a(Error("invalid inflate mode"))
  21859. }
  21860. if (I) e.set(c.subarray(d, d + h), f), f += h, d += h;
  21861. else
  21862. for (; h--;) e[f++] = c[d++];
  21863. this.D = d;
  21864. this.b = f;
  21865. this.a = e;
  21866. break;
  21867. case 1:
  21868. this.Mx(Na, Oa);
  21869. break;
  21870. case 2:
  21871. C(this);
  21872. break;
  21873. default:
  21874. a(Error("unknown BTYPE: " + c))
  21875. }
  21876. }
  21877. return this.kG()
  21878. };
  21879. G = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  21880. var Fa = I ? new Uint16Array(G) : G;
  21881. G = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  21882. var Ga = I ? new Uint16Array(G) : G;
  21883. G = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
  21884. 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0
  21885. ];
  21886. var na = I ? new Uint8Array(G) : G;
  21887. G = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  21888. var Ha = I ? new Uint16Array(G) : G;
  21889. G = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  21890. var oa = I ? new Uint8Array(G) : G;
  21891. G = new(I ? Uint8Array : Array)(288);
  21892. J = 0;
  21893. for (Q = G.length; J < Q; ++J) G[J] = 143 >= J ? 8 : 255 >= J ? 9 : 279 >= J ? 7 : 8;
  21894. var Na = g(G);
  21895. G = new(I ? Uint8Array : Array)(30);
  21896. J = 0;
  21897. for (Q = G.length; J < Q; ++J) G[J] = 5;
  21898. var Oa = g(G);
  21899. w.prototype.Mx =
  21900. function(a, c) {
  21901. var d = this.a,
  21902. e = this.b;
  21903. this.fa = a;
  21904. for (var f = d.length - 258, g, h, m; 256 !== (g = B(this, a));)
  21905. if (256 > g) e >= f && (this.b = e, d = this.zh(), e = this.b), d[e++] = g;
  21906. else {
  21907. g -= 257;
  21908. m = Ga[g];
  21909. 0 < na[g] && (m += z(this, na[g]));
  21910. g = B(this, c);
  21911. h = Ha[g];
  21912. 0 < oa[g] && (h += z(this, oa[g]));
  21913. for (e >= f && (this.b = e, d = this.zh(), e = this.b); m--;) d[e] = d[e++-h]
  21914. }
  21915. for (; 8 <= this.Fg;) this.Fg -= 8, this.D--;
  21916. this.b = e
  21917. };
  21918. w.prototype.VQ = function(a, c) {
  21919. var d = this.a,
  21920. e = this.b;
  21921. this.fa = a;
  21922. for (var f = d.length, g, h, m; 256 !== (g = B(this, a));)
  21923. if (256 > g) e >= f && (d = this.zh(), f = d.length),
  21924. d[e++] = g;
  21925. else {
  21926. g -= 257;
  21927. m = Ga[g];
  21928. 0 < na[g] && (m += z(this, na[g]));
  21929. g = B(this, c);
  21930. h = Ha[g];
  21931. 0 < oa[g] && (h += z(this, oa[g]));
  21932. for (e + m > f && (d = this.zh(), f = d.length); m--;) d[e] = d[e++-h]
  21933. }
  21934. for (; 8 <= this.Fg;) this.Fg -= 8, this.D--;
  21935. this.b = e
  21936. };
  21937. w.prototype.zh = function() {
  21938. var a = new(I ? Uint8Array : Array)(this.b - 32768),
  21939. c = this.b - 32768,
  21940. d, e, f = this.a;
  21941. if (I) a.set(f.subarray(32768, a.length));
  21942. else {
  21943. d = 0;
  21944. for (e = a.length; d < e; ++d) a[d] = f[d + 32768]
  21945. }
  21946. this.vx.push(a);
  21947. this.Wx += a.length;
  21948. if (I) f.set(f.subarray(c, c + 32768));
  21949. else
  21950. for (d = 0; 32768 > d; ++d) f[d] = f[c + d];
  21951. this.b =
  21952. 32768;
  21953. return f
  21954. };
  21955. w.prototype.aR = function(a) {
  21956. var c, d = this.input.length / this.D + 1 | 0,
  21957. e, f, g, h = this.input,
  21958. m = this.a;
  21959. a && ("number" === typeof a.ga && (d = a.ga), "number" === typeof a.MQ && (d += a.MQ));
  21960. 2 > d ? (e = (h.length - this.D) / this.fa[2], g = 258 * (e / 2) | 0, f = g < m.length ? m.length + g : m.length << 1) : f = m.length * d;
  21961. I ? (c = new Uint8Array(f), c.set(m)) : c = m;
  21962. return this.a = c
  21963. };
  21964. w.prototype.kG = function() {
  21965. var a = 0,
  21966. c = this.a,
  21967. d = this.vx,
  21968. e, f = new(I ? Uint8Array : Array)(this.Wx + (this.b - 32768)),
  21969. g, h, m, n;
  21970. if (0 === d.length) return I ? this.a.subarray(32768, this.b) :
  21971. this.a.slice(32768, this.b);
  21972. g = 0;
  21973. for (h = d.length; g < h; ++g) {
  21974. e = d[g];
  21975. m = 0;
  21976. for (n = e.length; m < n; ++m) f[a++] = e[m]
  21977. }
  21978. g = 32768;
  21979. for (h = this.b; g < h; ++g) f[a++] = c[g];
  21980. this.vx = [];
  21981. return this.buffer = f
  21982. };
  21983. w.prototype.RQ = function() {
  21984. var a, c = this.b;
  21985. I ? this.yG ? (a = new Uint8Array(c), a.set(this.a.subarray(0, c))) : a = this.a.subarray(0, c) : (this.a.length > c && (this.a.length = c), a = this.a);
  21986. return this.buffer = a
  21987. };
  21988. D.prototype.d = function() {
  21989. var c = this.input,
  21990. e, f;
  21991. e = this.qG.d();
  21992. this.D = this.qG.D;
  21993. this.sR && (f = (c[this.D++] << 24 | c[this.D++] << 16 | c[this.D++] <<
  21994. 8 | c[this.D++]) >>> 0, f !== d(e) && a(Error("invalid adler-32 checksum")));
  21995. return e
  21996. };
  21997. c("Zlib.Inflate", D);
  21998. c("Zlib.Inflate.BufferType", K);
  21999. K.Q4 = K.aQ;
  22000. K.o5 = K.oQ;
  22001. c("Zlib.Inflate.prototype.decompress", D.prototype.d);
  22002. K = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  22003. I && new Uint16Array(K);
  22004. K = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  22005. I && new Uint16Array(K);
  22006. K = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0];
  22007. I && new Uint8Array(K);
  22008. K = [1, 2, 3, 4, 5, 7, 9, 13,
  22009. 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577
  22010. ];
  22011. I && new Uint16Array(K);
  22012. K = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  22013. I && new Uint8Array(K);
  22014. K = new(I ? Uint8Array : Array)(288);
  22015. G = 0;
  22016. for (J = K.length; G < J; ++G) K[G] = 143 >= G ? 8 : 255 >= G ? 9 : 279 >= G ? 7 : 8;
  22017. g(K);
  22018. K = new(I ? Uint8Array : Array)(30);
  22019. G = 0;
  22020. for (J = K.length; G < J; ++G) K[G] = 5;
  22021. g(K);
  22022. var ja = 8
  22023. }).call(this);
  22024. M = window;
  22025. M = M.y7 = M.Zlib;
  22026. M.JG = M.Deflate;
  22027. M.JG.E9 = M.JG.compress;
  22028. M.$m = M.Inflate;
  22029. M.$m.C5 = M.$m.BufferType;
  22030. M.$m.prototype.oM = M.$m.prototype.decompress;
  22031. F.XR = F.ma.extend({
  22032. ctor: function(a) {
  22033. var c, d, e, f;
  22034. this.data = a;
  22035. this.$a = 8;
  22036. this.wF = [];
  22037. this.lx = [];
  22038. this.Pm = {};
  22039. this.QD = q;
  22040. this.text = {};
  22041. for (e = q;;) {
  22042. c = this.Fj();
  22043. f = a = k;
  22044. f = [];
  22045. for (a = 0; 4 > a; ++a) f.push(String.fromCharCode(this.data[this.$a++]));
  22046. a = f.join("");
  22047. switch (a) {
  22048. case "IHDR":
  22049. this.width = this.Fj();
  22050. this.height = this.Fj();
  22051. this.Ao = this.data[this.$a++];
  22052. this.eE = this.data[this.$a++];
  22053. this.F9 = this.data[this.$a++];
  22054. this.Z$ = this.data[this.$a++];
  22055. this.jda = this.data[this.$a++];
  22056. break;
  22057. case "acTL":
  22058. this.QD = {
  22059. Zfa: this.Fj(),
  22060. $fa: this.Fj() ||
  22061. Infinity,
  22062. frames: []
  22063. };
  22064. break;
  22065. case "PLTE":
  22066. this.wF = this.ht(c);
  22067. break;
  22068. case "fcTL":
  22069. e && this.QD.frames.push(e);
  22070. this.$a += 4;
  22071. e = {
  22072. width: this.Fj(),
  22073. height: this.Fj(),
  22074. LP: this.Fj(),
  22075. MP: this.Fj()
  22076. };
  22077. a = this.oO();
  22078. c = this.oO() || 100;
  22079. e.L9 = 1E3 * a / c;
  22080. e.Z9 = this.data[this.$a++];
  22081. e.l9 = this.data[this.$a++];
  22082. e.data = [];
  22083. break;
  22084. case "IDAT":
  22085. case "fdAT":
  22086. "fdAT" === a && (this.$a += 4, c -= 4);
  22087. a = (e != q ? e.data : k) || this.lx;
  22088. for (f = 0; 0 <= c ? f < c : f > c; 0 <= c ? ++f : --f) a.push(this.data[this.$a++]);
  22089. break;
  22090. case "tRNS":
  22091. this.Pm = {};
  22092. switch (this.eE) {
  22093. case 3:
  22094. this.Pm.TE = this.ht(c);
  22095. c = 255 - this.Pm.TE.length;
  22096. if (0 < c)
  22097. for (a = 0; 0 <= c ? a < c : a > c; 0 <= c ? ++a : --a) this.Pm.TE.push(255);
  22098. break;
  22099. case 0:
  22100. this.Pm.$ca = this.ht(c)[0];
  22101. break;
  22102. case 2:
  22103. this.Pm.Cha = this.ht(c)
  22104. }
  22105. break;
  22106. case "tEXt":
  22107. f = this.ht(c);
  22108. c = f.indexOf(0);
  22109. a = String.fromCharCode.apply(String, f.slice(0, c));
  22110. this.text[a] = String.fromCharCode.apply(String, f.slice(c + 1));
  22111. break;
  22112. case "IEND":
  22113. e && this.QD.frames.push(e);
  22114. a: {
  22115. switch (this.eE) {
  22116. case 0:
  22117. case 3:
  22118. case 4:
  22119. e = 1;
  22120. break a;
  22121. case 2:
  22122. case 6:
  22123. e = 3;
  22124. break a
  22125. }
  22126. e = k
  22127. }
  22128. this.v = e;
  22129. this.rN = 4 === (d = this.eE) || 6 === d;
  22130. d = this.v + (this.rN ? 1 :
  22131. 0);
  22132. this.a2 = this.Ao * d;
  22133. a: {
  22134. switch (this.v) {
  22135. case 1:
  22136. d = "DeviceGray";
  22137. break a;
  22138. case 3:
  22139. d = "DeviceRGB";
  22140. break a
  22141. }
  22142. d = k
  22143. }
  22144. this.B9 = d;
  22145. Uint8Array != Array && (this.lx = new Uint8Array(this.lx));
  22146. return;
  22147. default:
  22148. this.$a += c
  22149. }
  22150. this.$a += 4;
  22151. this.$a > this.data.length && b(Error("Incomplete or corrupt PNG file"))
  22152. }
  22153. },
  22154. ht: function(a) {
  22155. var c, d;
  22156. d = [];
  22157. for (c = 0; 0 <= a ? c < a : c > a; 0 <= a ? ++c : --c) d.push(this.data[this.$a++]);
  22158. return d
  22159. },
  22160. Fj: function() {
  22161. var a, c, d, e;
  22162. a = this.data[this.$a++] << 24;
  22163. c = this.data[this.$a++] << 16;
  22164. d = this.data[this.$a++] << 8;
  22165. e = this.data[this.$a++];
  22166. return a | c | d | e
  22167. },
  22168. oO: function() {
  22169. var a, c;
  22170. a = this.data[this.$a++] << 8;
  22171. c = this.data[this.$a++];
  22172. return a | c
  22173. },
  22174. tZ: function(a) {
  22175. var c, d, e, f, g, h, m, n, s, u, v, x, w, z, B;
  22176. a == q && (a = this.lx);
  22177. if (0 === a.length) return new Uint8Array(0);
  22178. a = (new Zlib.$m(a, {
  22179. index: 0,
  22180. JP: r
  22181. })).oM();
  22182. n = this.a2 / 8;
  22183. x = n * this.width;
  22184. s = new Uint8Array(x * this.height);
  22185. h = a.length;
  22186. for (d = u = v = 0; u < h;) {
  22187. switch (a[u++]) {
  22188. case 0:
  22189. for (c = 0; c < x; c += 1) s[d++] = a[u++];
  22190. break;
  22191. case 1:
  22192. for (f = w = 0; w < x; f = w += 1) c = a[u++], g = f < n ? 0 : s[d - n], s[d++] = (c + g) % 256;
  22193. break;
  22194. case 2:
  22195. for (f = g = 0; g < x; f = g += 1) c = a[u++],
  22196. e = (f - f % n) / n, w = v && s[(v - 1) * x + e * n + f % n], s[d++] = (w + c) % 256;
  22197. break;
  22198. case 3:
  22199. for (f = B = 0; B < x; f = B += 1) c = a[u++], e = (f - f % n) / n, g = f < n ? 0 : s[d - n], w = v && s[(v - 1) * x + e * n + f % n], s[d++] = (c + Math.floor((g + w) / 2)) % 256;
  22200. break;
  22201. case 4:
  22202. for (f = B = 0; B < x; f = B += 1) c = a[u++], e = (f - f % n) / n, g = f < n ? 0 : s[d - n], 0 === v ? w = z = 0 : (w = s[(v - 1) * x + e * n + f % n], z = e && s[(v - 1) * x + (e - 1) * n + f % n]), m = g + w - z, f = Math.abs(m - g), e = Math.abs(m - w), m = Math.abs(m - z), g = f <= e && f <= m ? g : e <= m ? w : z, s[d++] = (c + g) % 256;
  22203. break;
  22204. default:
  22205. b(Error("Invalid filter algorithm: " + a[u - 1]))
  22206. }
  22207. v++
  22208. }
  22209. return s
  22210. },
  22211. rZ: function(a, c) {
  22212. var d,
  22213. e, f, g, h, m, n, s;
  22214. e = this.v;
  22215. s = q;
  22216. d = this.rN;
  22217. this.wF.length && (s = (f = this.bV) != q ? f : this.bV = this.sZ(), e = 4, d = p);
  22218. f = a.data || a;
  22219. n = f.length;
  22220. h = s || c;
  22221. g = m = 0;
  22222. if (1 === e)
  22223. for (; g < n;) e = s ? 4 * c[g / 4] : m, m = h[e++], f[g++] = m, f[g++] = m, f[g++] = m, f[g++] = d ? h[e++] : 255, m = e;
  22224. else
  22225. for (; g < n;) e = s ? 4 * c[g / 4] : m, f[g++] = h[e++], f[g++] = h[e++], f[g++] = h[e++], f[g++] = d ? h[e++] : 255, m = e
  22226. },
  22227. sZ: function() {
  22228. var a, c, d, e, f, g, h, m, n;
  22229. d = this.wF;
  22230. g = this.Pm.TE || [];
  22231. f = new Uint8Array((g.length || 0) + d.length);
  22232. c = h = a = e = 0;
  22233. for (m = d.length; h < m; c = h += 3) f[e++] = d[c], f[e++] = d[c + 1], f[e++] = d[c +
  22234. 2], f[e++] = (n = g[a++]) != q ? n : 255;
  22235. return f
  22236. },
  22237. A2: function(a) {
  22238. var c;
  22239. a.width = this.width;
  22240. a.height = this.height;
  22241. a = a.getContext("2d");
  22242. c = a.createImageData(this.width, this.height);
  22243. this.rZ(c, this.tZ());
  22244. return a.putImageData(c, 0, 0)
  22245. }
  22246. });
  22247. F.w4 = {
  22248. uK: r,
  22249. am: q,
  22250. iB: [],
  22251. getUint8: function(a) {
  22252. return this.am[a]
  22253. },
  22254. getUint16: function(a) {
  22255. return this.uK ? this.am[a + 1] << 8 | this.am[a] : this.am[a] << 8 | this.am[a + 1]
  22256. },
  22257. getUint32: function(a) {
  22258. var c = this.am;
  22259. return this.uK ? c[a + 3] << 24 | c[a + 2] << 16 | c[a + 1] << 8 | c[a] : c[a] << 24 | c[a + 1] << 16 | c[a + 2] << 8 | c[a + 3]
  22260. },
  22261. hZ: function() {
  22262. var a = this.getUint16(0);
  22263. 18761 === a ? this.qF = p : 19789 === a ? this.qF = r : (console.log(a), b(TypeError("Invalid byte order value.")));
  22264. return this.qF
  22265. },
  22266. v0: function() {
  22267. 42 !== this.getUint16(2) && b(RangeError("You forgot your towel!"));
  22268. return p
  22269. },
  22270. w_: function(a) {
  22271. var c = this.c_;
  22272. return a in c ? c[a] : q
  22273. },
  22274. u_: function(a) {
  22275. var c = this.b_;
  22276. if (a in c) return c[a];
  22277. console.log("Unknown Field Tag:", a);
  22278. return "Tag" + a
  22279. },
  22280. v_: function(a) {
  22281. return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(a) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(a) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(a) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(a) ? 8 : q
  22282. },
  22283. x_: function(a, c, d, e) {
  22284. a = [];
  22285. var f = this.v_(c);
  22286. if (4 >= f * d) this.qF === r ? a.push(e >>> 8 * (4 - f)) : a.push(e);
  22287. else
  22288. for (var g = 0; g < d; g++) {
  22289. var h =
  22290. f * g;
  22291. 8 <= f ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(c) ? (a.push(this.getUint32(e + h)), a.push(this.getUint32(e + h + 4))) : F.log("Can't handle this field type or size") : a.push(this.KM(f, e + h))
  22292. }
  22293. "ASCII" === c && a.forEach(function(a, c, d) {
  22294. d[c] = String.fromCharCode(a)
  22295. });
  22296. return a
  22297. },
  22298. KM: function(a, c) {
  22299. if (0 >= a) F.log("No bytes requested");
  22300. else {
  22301. if (1 >= a) return this.getUint8(c);
  22302. if (2 >= a) return this.getUint16(c);
  22303. if (3 >= a) return this.getUint32(c) >>> 8;
  22304. if (4 >= a) return this.getUint32(c);
  22305. F.log("Too many bytes requested")
  22306. }
  22307. },
  22308. h_: function(a,
  22309. c, d) {
  22310. d = d || 0;
  22311. c += Math.floor(d / 8);
  22312. var e = d + a;
  22313. a = 32 - a;
  22314. var f, g;
  22315. 0 >= e ? console.log("No bits requested") : 8 >= e ? (f = 24 + d, g = this.getUint8(c)) : 16 >= e ? (f = 16 + d, g = this.getUint16(c)) : 32 >= e ? (f = d, g = this.getUint32(c)) : console.log("Too many bits requested");
  22316. return {
  22317. bits: g << f >>> a,
  22318. byteOffset: c + Math.floor(e / 8),
  22319. bitOffset: e % 8
  22320. }
  22321. },
  22322. lO: function(a) {
  22323. var c = this.getUint16(a),
  22324. d = [];
  22325. a += 2;
  22326. for (var e = 0; e < c; a += 12, e++) {
  22327. var f = this.getUint16(a),
  22328. g = this.getUint16(a + 2),
  22329. h = this.getUint32(a + 4),
  22330. m = this.getUint32(a + 8),
  22331. f = this.u_(f),
  22332. g = this.w_(g),
  22333. h = this.x_(f,
  22334. g, h, m);
  22335. d[f] = {
  22336. type: g,
  22337. Lh: h
  22338. }
  22339. }
  22340. this.iB.push(d);
  22341. c = this.getUint32(a);
  22342. 0 !== c && this.lO(c)
  22343. },
  22344. mm: function(a, c) {
  22345. var d = Math.pow(2, 8 - c);
  22346. return Math.floor(a * d + (d - 1))
  22347. },
  22348. V1: function(a, c) {
  22349. c = c || F.Nb("canvas");
  22350. this.am = a;
  22351. this.canvas = c;
  22352. this.hZ();
  22353. if (this.v0()) {
  22354. var d = this.getUint32(4);
  22355. this.iB.length = 0;
  22356. this.lO(d);
  22357. var e = this.iB[0],
  22358. d = e.ImageWidth.Lh[0],
  22359. f = e.ImageLength.Lh[0];
  22360. this.canvas.width = d;
  22361. this.canvas.height = f;
  22362. var g = [],
  22363. h = e.Compression ? e.Compression.Lh[0] : 1,
  22364. m = e.SamplesPerPixel.Lh[0],
  22365. n = [],
  22366. s = 0,
  22367. u = r;
  22368. e.BitsPerSample.Lh.forEach(function(a,
  22369. c) {
  22370. n[c] = {
  22371. Bo: a,
  22372. gx: r,
  22373. us: k
  22374. };
  22375. 0 === a % 8 && (n[c].gx = p, n[c].us = a / 8);
  22376. s += a
  22377. }, this);
  22378. if (0 === s % 8) var u = p,
  22379. v = s / 8;
  22380. var x = e.StripOffsets.Lh,
  22381. w = x.length;
  22382. if (e.StripByteCounts) var z = e.StripByteCounts.Lh;
  22383. else F.log("Missing StripByteCounts!"), 1 === w ? z = [Math.ceil(d * f * s / 8)] : b(Error("Cannot recover from missing StripByteCounts"));
  22384. for (var B = 0; B < w; B++) {
  22385. var C = x[B];
  22386. g[B] = [];
  22387. for (var D = z[B], L = 0, O = 0, H = 1, I = p, K = [], G = 0, J = 0, Q = 0; L < D; L += H) switch (h) {
  22388. case 1:
  22389. H = 0;
  22390. for (K = []; H < m; H++) n[H].gx ? K.push(this.KM(n[H].us, C + L + n[H].us * H)) : (O = this.h_(n[H].Bo,
  22391. C + L, O), K.push(O.Ao), L = O.byteOffset - C, O = O.j9, b(RangeError("Cannot handle sub-byte bits per sample")));
  22392. g[B].push(K);
  22393. u ? H = v : (H = 0, b(RangeError("Cannot handle sub-byte bits per pixel")));
  22394. break;
  22395. case 32773:
  22396. if (I) {
  22397. var I = r,
  22398. R = 1,
  22399. P = 1,
  22400. H = this.getInt8(C + L);
  22401. 0 <= H && 127 >= H ? R = H + 1 : -127 <= H && -1 >= H ? P = -H + 1 : I = p
  22402. } else {
  22403. for (var $ = this.getUint8(C + L), H = 0; H < P; H++) n[J].gx ? (Q = Q << 8 * G | $, G++, G === n[J].us && (K.push(Q), Q = G = 0, J++)) : b(RangeError("Cannot handle sub-byte bits per sample")), J === m && (g[B].push(K), K = [], J = 0);
  22404. R--;
  22405. 0 === R && (I = p)
  22406. }
  22407. H = 1
  22408. }
  22409. }
  22410. if (c.getContext) {
  22411. v =
  22412. this.canvas.getContext("2d");
  22413. v.fillStyle = "rgba(255, 255, 255, 0)";
  22414. B = e.RowsPerStrip ? e.RowsPerStrip.Lh[0] : f;
  22415. z = g.length;
  22416. f %= B;
  22417. f = 0 === f ? B : f;
  22418. R = B;
  22419. u = 0;
  22420. P = e.PhotometricInterpretation.Lh[0];
  22421. h = [];
  22422. m = 0;
  22423. e.ExtraSamples && (h = e.ExtraSamples.Lh, m = h.length);
  22424. if (e.ColorMap) var T = e.ColorMap.Lh,
  22425. Y = Math.pow(2, n[0].Bo);
  22426. for (B = 0; B < z; B++) {
  22427. B + 1 === z && (R = f);
  22428. e = g[B].length;
  22429. u *= B;
  22430. for (w = x = 0; x < R, w < e; x++)
  22431. for (C = 0; C < d; C++, w++) {
  22432. K = g[B][w];
  22433. G = L = D = 0;
  22434. I = 1;
  22435. if (0 < m)
  22436. for (J = 0; J < m; J++)
  22437. if (1 === h[J] || 2 === h[J]) {
  22438. I = K[3 + J] / 256;
  22439. break
  22440. }
  22441. switch (P) {
  22442. case 0:
  22443. if (n[0].gx) var ba =
  22444. Math.pow(16, 2 * n[0].us);
  22445. K.forEach(function(a, c, d) {
  22446. d[c] = ba - a
  22447. });
  22448. case 1:
  22449. D = L = G = this.mm(K[0], n[0].Bo);
  22450. break;
  22451. case 2:
  22452. D = this.mm(K[0], n[0].Bo);
  22453. L = this.mm(K[1], n[1].Bo);
  22454. G = this.mm(K[2], n[2].Bo);
  22455. break;
  22456. case 3:
  22457. T === k && b(Error("Palette image missing color map"));
  22458. K = K[0];
  22459. D = this.mm(T[K], 16);
  22460. L = this.mm(T[Y + K], 16);
  22461. G = this.mm(T[2 * Y + K], 16);
  22462. break;
  22463. default:
  22464. b(RangeError("Unknown Photometric Interpretation:", P))
  22465. }
  22466. v.fillStyle = "rgba(" + D + ", " + L + ", " + G + ", " + I + ")";
  22467. v.fillRect(C, u + x, 1, 1)
  22468. }
  22469. u = R
  22470. }
  22471. }
  22472. return this.canvas
  22473. }
  22474. },
  22475. b_: {
  22476. 315: "Artist",
  22477. 258: "BitsPerSample",
  22478. 265: "CellLength",
  22479. 264: "CellWidth",
  22480. 320: "ColorMap",
  22481. 259: "Compression",
  22482. 33432: "Copyright",
  22483. 306: "DateTime",
  22484. 338: "ExtraSamples",
  22485. 266: "FillOrder",
  22486. 289: "FreeByteCounts",
  22487. 288: "FreeOffsets",
  22488. 291: "GrayResponseCurve",
  22489. 290: "GrayResponseUnit",
  22490. 316: "HostComputer",
  22491. 270: "ImageDescription",
  22492. 257: "ImageLength",
  22493. 256: "ImageWidth",
  22494. 271: "Make",
  22495. 281: "MaxSampleValue",
  22496. 280: "MinSampleValue",
  22497. 272: "Model",
  22498. 254: "NewSubfileType",
  22499. 274: "Orientation",
  22500. 262: "PhotometricInterpretation",
  22501. 284: "PlanarConfiguration",
  22502. 296: "ResolutionUnit",
  22503. 278: "RowsPerStrip",
  22504. 277: "SamplesPerPixel",
  22505. 305: "Software",
  22506. 279: "StripByteCounts",
  22507. 273: "StripOffsets",
  22508. 255: "SubfileType",
  22509. 263: "Threshholding",
  22510. 282: "XResolution",
  22511. 283: "YResolution",
  22512. 326: "BadFaxLines",
  22513. 327: "CleanFaxData",
  22514. 343: "ClipPath",
  22515. 328: "ConsecutiveBadFaxLines",
  22516. 433: "Decode",
  22517. 434: "DefaultImageColor",
  22518. 269: "DocumentName",
  22519. 336: "DotRange",
  22520. 321: "HalftoneHints",
  22521. 346: "Indexed",
  22522. 347: "JPEGTables",
  22523. 285: "PageName",
  22524. 297: "PageNumber",
  22525. 317: "Predictor",
  22526. 319: "PrimaryChromaticities",
  22527. 532: "ReferenceBlackWhite",
  22528. 339: "SampleFormat",
  22529. 559: "StripRowCounts",
  22530. 330: "SubIFDs",
  22531. 292: "T4Options",
  22532. 293: "T6Options",
  22533. 325: "TileByteCounts",
  22534. 323: "TileLength",
  22535. 324: "TileOffsets",
  22536. 322: "TileWidth",
  22537. 301: "TransferFunction",
  22538. 318: "WhitePoint",
  22539. 344: "XClipPathUnits",
  22540. 286: "XPosition",
  22541. 529: "YCbCrCoefficients",
  22542. 531: "YCbCrPositioning",
  22543. 530: "YCbCrSubSampling",
  22544. 345: "YClipPathUnits",
  22545. 287: "YPosition",
  22546. 37378: "ApertureValue",
  22547. 40961: "ColorSpace",
  22548. 36868: "DateTimeDigitized",
  22549. 36867: "DateTimeOriginal",
  22550. 34665: "Exif IFD",
  22551. 36864: "ExifVersion",
  22552. 33434: "ExposureTime",
  22553. 41728: "FileSource",
  22554. 37385: "Flash",
  22555. 40960: "FlashpixVersion",
  22556. 33437: "FNumber",
  22557. 42016: "ImageUniqueID",
  22558. 37384: "LightSource",
  22559. 37500: "MakerNote",
  22560. 37377: "ShutterSpeedValue",
  22561. 37510: "UserComment",
  22562. 33723: "IPTC",
  22563. 34675: "ICC Profile",
  22564. 700: "XMP",
  22565. 42112: "GDAL_METADATA",
  22566. 42113: "GDAL_NODATA",
  22567. 34377: "Photoshop"
  22568. },
  22569. c_: {
  22570. 1: "BYTE",
  22571. 2: "ASCII",
  22572. 3: "SHORT",
  22573. 4: "LONG",
  22574. 5: "RATIONAL",
  22575. 6: "SBYTE",
  22576. 7: "UNDEFINED",
  22577. 8: "SSHORT",
  22578. 9: "SLONG",
  22579. 10: "SRATIONAL",
  22580. 11: "FLOAT",
  22581. 12: "DOUBLE"
  22582. }
  22583. };
  22584. F.ng = function(a, c, d, e, f, g, h, m, n, s, u, v) {
  22585. this.$a = a ? a : F.d(0, 0);
  22586. this.qy = c ? c : F.d(0, 0);
  22587. this.color = d ? d : {
  22588. r: 0,
  22589. g: 0,
  22590. b: 0,
  22591. a: 255
  22592. };
  22593. this.zs = e ? e : {
  22594. r: 0,
  22595. g: 0,
  22596. b: 0,
  22597. a: 255
  22598. };
  22599. this.size = f || 0;
  22600. this.lE = g || 0;
  22601. this.rotation = h || 0;
  22602. this.uM = m || 0;
  22603. this.dl = n || 0;
  22604. this.atlasIndex = s || 0;
  22605. this.Xb = u ? u : new F.ng.fz;
  22606. this.Fd = v ? v : new F.ng.gz;
  22607. this.HN = r;
  22608. this.Bs = F.d(0, 0)
  22609. };
  22610. F.ng.fz = function(a, c, d) {
  22611. this.dir = a ? a : F.d(0, 0);
  22612. this.radialAccel = c || 0;
  22613. this.tangentialAccel = d || 0
  22614. };
  22615. F.ng.gz = function(a, c, d, e) {
  22616. this.Eg = a || 0;
  22617. this.qM = c || 0;
  22618. this.gt = d || 0;
  22619. this.tM = e || 0
  22620. };
  22621. F.ng.Au = [F.d(), F.d(), F.d(), F.d()];
  22622. F.o = F.t.extend({
  22623. fC: "",
  22624. kb: 0,
  22625. gJ: r,
  22626. Xb: q,
  22627. Fd: q,
  22628. tb: "ParticleSystem",
  22629. lC: F.d(0, 0),
  22630. yk: q,
  22631. El: 0,
  22632. kf: 0,
  22633. W: q,
  22634. atlasIndex: 0,
  22635. dm: r,
  22636. Nu: 0,
  22637. Rw: q,
  22638. py: q,
  22639. Vn: r,
  22640. qd: 0,
  22641. duration: 0,
  22642. jo: q,
  22643. zk: q,
  22644. Se: 0,
  22645. bp: 0,
  22646. Eg: 0,
  22647. yo: 0,
  22648. up: 0,
  22649. vp: 0,
  22650. sm: 0,
  22651. Ho: 0,
  22652. sh: q,
  22653. Gk: q,
  22654. De: q,
  22655. kk: q,
  22656. wp: 0,
  22657. xp: 0,
  22658. Io: 0,
  22659. Jo: 0,
  22660. rm: 0,
  22661. ob: 0,
  22662. L: q,
  22663. q: q,
  22664. Qa: r,
  22665. Di: q,
  22666. ss: r,
  22667. Ea: 0,
  22668. Dc: q,
  22669. lb: q,
  22670. tc: q,
  22671. Kr: q,
  22672. oa: q,
  22673. ad: q,
  22674. ctor: function(a) {
  22675. F.t.prototype.ctor.call(this);
  22676. this.Ea = F.o.gb;
  22677. this.Xb = new F.o.fz;
  22678. this.Fd = new F.o.gz;
  22679. this.q = {
  22680. src: F.hc,
  22681. U: F.gc
  22682. };
  22683. this.yk = [];
  22684. this.jo = F.d(0, 0);
  22685. this.zk = F.d(0, 0);
  22686. this.sh = F.color(255, 255, 255,
  22687. 255);
  22688. this.Gk = F.color(255, 255, 255, 255);
  22689. this.De = F.color(255, 255, 255, 255);
  22690. this.kk = F.color(255, 255, 255, 255);
  22691. this.fC = "";
  22692. this.kb = 0;
  22693. this.gJ = r;
  22694. this.lC = F.d(0, 0);
  22695. this.kf = this.El = 0;
  22696. this.W = q;
  22697. this.atlasIndex = 0;
  22698. this.dm = r;
  22699. this.Nu = 0;
  22700. this.Rw = F.o.wS;
  22701. this.py = F.o.UP;
  22702. this.Vn = r;
  22703. this.ob = this.rm = this.Jo = this.Io = this.xp = this.wp = this.Ho = this.sm = this.vp = this.up = this.yo = this.Eg = this.bp = this.Se = this.duration = this.qd = 0;
  22704. this.L = q;
  22705. this.Qa = r;
  22706. this.Di = F.o.Dq;
  22707. this.ss = r;
  22708. this.tc = [0, 0];
  22709. this.Dc = [];
  22710. this.lb = [];
  22711. this.Kr = F.rect(0, 0, 0, 0);
  22712. this.oa =
  22713. p;
  22714. F.B === F.$ && (this.ad = q);
  22715. !a || "number" === typeof a ? (a = a || 100, this.c3(F.o.IH), this.Va(a)) : a && this.Uk(a)
  22716. },
  22717. UE: function() {
  22718. for (var a = this.lb, c = 0, d = this.ob; c < d; ++c) {
  22719. var e = 6 * c,
  22720. f = 4 * c;
  22721. a[e + 0] = f + 0;
  22722. a[e + 1] = f + 1;
  22723. a[e + 2] = f + 2;
  22724. a[e + 5] = f + 1;
  22725. a[e + 4] = f + 2;
  22726. a[e + 3] = f + 3
  22727. }
  22728. },
  22729. uN: function(a) {
  22730. var c = F.rb(),
  22731. d = F.rect(a.x * c, a.y * c, a.width * c, a.height * c),
  22732. e = a.width,
  22733. f = a.height;
  22734. this.L && (e = this.L.pixelsWidth, f = this.L.pixelsHeight);
  22735. if (F.B !== F.Ca) {
  22736. F.Wm ? (a = (2 * d.x + 1) / (2 * e), c = (2 * d.y + 1) / (2 * f), e = a + (2 * d.width - 2) / (2 * e), d = c + (2 * d.height - 2) / (2 * f)) : (a = d.x / e,
  22737. c = d.y / f, e = a + d.width / e, d = c + d.height / f);
  22738. var f = d,
  22739. d = c,
  22740. c = f,
  22741. g = 0,
  22742. h = 0;
  22743. this.W ? (f = this.W.textureAtlas.quads, g = this.atlasIndex, h = this.atlasIndex + this.ob) : (f = this.Dc, g = 0, h = this.ob);
  22744. for (; g < h; g++) {
  22745. f[g] || (f[g] = F.vI());
  22746. var m = f[g];
  22747. m.F.n.fa = a;
  22748. m.F.n.ga = c;
  22749. m.O.n.fa = e;
  22750. m.O.n.ga = c;
  22751. m.N.n.fa = a;
  22752. m.N.n.ga = d;
  22753. m.K.n.fa = e;
  22754. m.K.n.ga = d
  22755. }
  22756. }
  22757. },
  22758. xE: A("W"),
  22759. al: function(a) {
  22760. if (this.W != a) {
  22761. var c = this.W;
  22762. if (this.W = a)
  22763. for (var d = this.yk, e = 0; e < this.ob; e++) d[e].atlasIndex = e;
  22764. a ? c || (this.W.textureAtlas.ZU(this.Dc, this.atlasIndex), F.m.deleteBuffer(this.tc[1])) :
  22765. (this.LI(), this.UE(), this.pb(c.Oa()), this.Xl())
  22766. }
  22767. },
  22768. Po: A("atlasIndex"),
  22769. MF: y("atlasIndex"),
  22770. Oaa: A("Rw"),
  22771. c3: y("Rw"),
  22772. lca: A("py"),
  22773. ija: y("py"),
  22774. tf: A("Vn"),
  22775. Rba: A("qd"),
  22776. Xia: y("qd"),
  22777. Qo: A("duration"),
  22778. $f: y("duration"),
  22779. f0: function() {
  22780. return {
  22781. x: this.jo.x,
  22782. y: this.jo.y
  22783. }
  22784. },
  22785. E3: y("jo"),
  22786. FE: function() {
  22787. return {
  22788. x: this.zk.x,
  22789. y: this.zk.y
  22790. }
  22791. },
  22792. Rg: y("zk"),
  22793. sba: A("Se"),
  22794. Pg: y("Se"),
  22795. tba: A("bp"),
  22796. Qg: y("bp"),
  22797. maa: A("Eg"),
  22798. Kg: y("Eg"),
  22799. naa: A("yo"),
  22800. Lg: y("yo"),
  22801. SM: function() {
  22802. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  22803. var a = this.Xb.gravity;
  22804. return F.d(a.x, a.y)
  22805. },
  22806. bg: function(a) {
  22807. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  22808. this.Xb.gravity = a
  22809. },
  22810. $w: function() {
  22811. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  22812. return this.Xb.speed
  22813. },
  22814. We: function(a) {
  22815. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  22816. this.Xb.speed = a
  22817. },
  22818. fN: function() {
  22819. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  22820. return this.Xb.speedVar
  22821. },
  22822. eg: function(a) {
  22823. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  22824. this.Xb.speedVar = a
  22825. },
  22826. kN: function() {
  22827. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  22828. return this.Xb.tangentialAccel
  22829. },
  22830. Jj: function(a) {
  22831. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  22832. this.Xb.tangentialAccel = a
  22833. },
  22834. lN: function() {
  22835. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  22836. return this.Xb.tangentialAccelVar
  22837. },
  22838. Kj: function(a) {
  22839. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  22840. this.Xb.tangentialAccelVar = a
  22841. },
  22842. ZM: function() {
  22843. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  22844. return this.Xb.radialAccel
  22845. },
  22846. cg: function(a) {
  22847. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  22848. this.Xb.radialAccel = a
  22849. },
  22850. $M: function() {
  22851. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  22852. return this.Xb.radialAccelVar
  22853. },
  22854. dg: function(a) {
  22855. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  22856. this.Xb.radialAccelVar = a
  22857. },
  22858. Y_: function() {
  22859. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  22860. return this.Xb.rotationIsDir
  22861. },
  22862. z3: function(a) {
  22863. this.Ea !== F.o.gb && F.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  22864. this.Xb.rotationIsDir = a
  22865. },
  22866. iN: function() {
  22867. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  22868. return this.Fd.startRadius
  22869. },
  22870. eP: function(a) {
  22871. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  22872. this.Fd.startRadius = a
  22873. },
  22874. jN: function() {
  22875. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  22876. return this.Fd.startRadiusVar
  22877. },
  22878. fP: function(a) {
  22879. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  22880. this.Fd.startRadiusVar = a
  22881. },
  22882. PM: function() {
  22883. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  22884. return this.Fd.endRadius
  22885. },
  22886. NO: function(a) {
  22887. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  22888. this.Fd.endRadius = a
  22889. },
  22890. QM: function() {
  22891. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  22892. return this.Fd.endRadiusVar
  22893. },
  22894. OO: function(a) {
  22895. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  22896. this.Fd.endRadiusVar = a
  22897. },
  22898. aN: function() {
  22899. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  22900. return this.Fd.by
  22901. },
  22902. aP: function(a) {
  22903. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  22904. this.Fd.by = a
  22905. },
  22906. bN: function() {
  22907. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  22908. return this.Fd.cy
  22909. },
  22910. bP: function(a) {
  22911. this.Ea !== F.o.af && F.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  22912. this.Fd.cy = a
  22913. },
  22914. rp: function(a, c) {
  22915. this.dm = p;
  22916. F.t.prototype.rp.call(this, a, c)
  22917. },
  22918. WF: function(a) {
  22919. this.dm =
  22920. p;
  22921. F.t.prototype.WF.call(this, a)
  22922. },
  22923. pt: function(a) {
  22924. this.dm = p;
  22925. F.t.prototype.pt.call(this, a)
  22926. },
  22927. qt: function(a) {
  22928. this.dm = p;
  22929. F.t.prototype.qt.call(this, a)
  22930. },
  22931. oca: A("up"),
  22932. Sg: y("up"),
  22933. pca: A("vp"),
  22934. Tg: y("vp"),
  22935. Taa: A("sm"),
  22936. Og: y("sm"),
  22937. Uaa: A("Ho"),
  22938. e3: y("Ho"),
  22939. ax: function() {
  22940. return F.color(this.sh.r, this.sh.g, this.sh.b, this.sh.a)
  22941. },
  22942. Xe: function(a) {
  22943. this.sh = F.color(a)
  22944. },
  22945. hN: function() {
  22946. return F.color(this.Gk.r, this.Gk.g, this.Gk.b, this.Gk.a)
  22947. },
  22948. fg: function(a) {
  22949. this.Gk = F.color(a)
  22950. },
  22951. Ww: function() {
  22952. return F.color(this.De.r, this.De.g, this.De.b,
  22953. this.De.a)
  22954. },
  22955. Ve: function(a) {
  22956. this.De = F.color(a)
  22957. },
  22958. OM: function() {
  22959. return F.color(this.kk.r, this.kk.g, this.kk.b, this.kk.a)
  22960. },
  22961. ag: function(a) {
  22962. this.kk = F.color(a)
  22963. },
  22964. qca: A("wp"),
  22965. G3: y("wp"),
  22966. rca: A("xp"),
  22967. H3: y("xp"),
  22968. Vaa: A("Io"),
  22969. f3: y("Io"),
  22970. Waa: A("Jo"),
  22971. g3: y("Jo"),
  22972. Raa: A("rm"),
  22973. Mg: y("rm"),
  22974. j0: A("ob"),
  22975. K3: function(a) {
  22976. if (F.B === F.Ca) this.ob = 200 > a ? a : 200;
  22977. else {
  22978. if (a > this.Nu) {
  22979. var c = F.Db.BYTES_PER_ELEMENT;
  22980. this.lb = new Uint16Array(6 * a);
  22981. var d = new ArrayBuffer(a * c),
  22982. e = this.yk;
  22983. e.length = 0;
  22984. for (var f = this.Dc, g = f.length = 0; g < a; g++) e[g] = new F.ng,
  22985. f[g] = new F.Db(q, q, q, q, d, g * c);
  22986. this.ob = this.Nu = a;
  22987. if (this.W)
  22988. for (c = 0; c < a; c++) e[c].atlasIndex = c;
  22989. this.ad = d;
  22990. this.UE();
  22991. this.Xl();
  22992. this.L && this.uN(F.rect(0, 0, this.L.width, this.L.height))
  22993. } else this.ob = a;
  22994. this.D2()
  22995. }
  22996. },
  22997. Oa: A("L"),
  22998. pb: function(a) {
  22999. a.uc ? this.bG(a, F.rect(0, 0, a.width, a.height)) : (this.oa = r, a.Wd(function(a) {
  23000. this.oa = p;
  23001. this.bG(a, F.rect(0, 0, a.width, a.height))
  23002. }, this))
  23003. },
  23004. Ah: A("q"),
  23005. Ue: function(a, c) {
  23006. if (c === k) this.q != a && (this.q = a, this.Sf());
  23007. else if (this.q.src != a || this.q.U != c) this.q = {
  23008. src: a,
  23009. U: c
  23010. }, this.Sf()
  23011. },
  23012. re: A("Qa"),
  23013. Hd: y("Qa"),
  23014. O0: function() {
  23015. return this.q.src == F.SRC_ALPHA && this.q.U == F.ONE || this.q.src == F.ONE && this.q.U == F.ONE
  23016. },
  23017. Jh: function(a) {
  23018. var c = this.q;
  23019. a ? (c.src = F.SRC_ALPHA, c.U = F.ONE) : F.B === F.$ ? this.L && !this.L.ti() ? (c.src = F.SRC_ALPHA, c.U = F.ONE_MINUS_SRC_ALPHA) : (c.src = F.hc, c.U = F.gc) : (c.src = F.hc, c.U = F.gc)
  23020. },
  23021. Vba: A("Di"),
  23022. Zia: y("Di"),
  23023. mda: A("ss"),
  23024. Rha: y("ss"),
  23025. Saa: A("Ea"),
  23026. Ng: y("Ea"),
  23027. M: function() {
  23028. return this.Va(150)
  23029. },
  23030. Uk: function(a) {
  23031. this.fC = a;
  23032. a = F.V.Dd(a);
  23033. return !a ? (F.log("cc.ParticleSystem.initWithFile(): Particles: file not found"),
  23034. r) : this.z0(a, "")
  23035. },
  23036. i_: function() {
  23037. return F.rect(0, 0, F.Za.width, F.Za.height)
  23038. },
  23039. z0: function(a) {
  23040. var c = r,
  23041. d = q,
  23042. d = this.CY,
  23043. e = parseInt(d("maxParticles", a));
  23044. if (this.Va(e)) {
  23045. this.Eg = parseFloat(d("angle", a));
  23046. this.yo = parseFloat(d("angleVariance", a));
  23047. this.duration = parseFloat(d("duration", a));
  23048. this.q.src = parseInt(d("blendFuncSource", a));
  23049. this.q.U = parseInt(d("blendFuncDestination", a));
  23050. c = this.sh;
  23051. c.r = 255 * parseFloat(d("startColorRed", a));
  23052. c.g = 255 * parseFloat(d("startColorGreen", a));
  23053. c.b = 255 * parseFloat(d("startColorBlue", a));
  23054. c.a = 255 * parseFloat(d("startColorAlpha", a));
  23055. c = this.Gk;
  23056. c.r = 255 * parseFloat(d("startColorVarianceRed", a));
  23057. c.g = 255 * parseFloat(d("startColorVarianceGreen", a));
  23058. c.b = 255 * parseFloat(d("startColorVarianceBlue", a));
  23059. c.a = 255 * parseFloat(d("startColorVarianceAlpha", a));
  23060. c = this.De;
  23061. c.r = 255 * parseFloat(d("finishColorRed", a));
  23062. c.g = 255 * parseFloat(d("finishColorGreen", a));
  23063. c.b = 255 * parseFloat(d("finishColorBlue", a));
  23064. c.a = 255 * parseFloat(d("finishColorAlpha", a));
  23065. c = this.kk;
  23066. c.r = 255 * parseFloat(d("finishColorVarianceRed", a));
  23067. c.g =
  23068. 255 * parseFloat(d("finishColorVarianceGreen", a));
  23069. c.b = 255 * parseFloat(d("finishColorVarianceBlue", a));
  23070. c.a = 255 * parseFloat(d("finishColorVarianceAlpha", a));
  23071. this.up = parseFloat(d("startParticleSize", a));
  23072. this.vp = parseFloat(d("startParticleSizeVariance", a));
  23073. this.sm = parseFloat(d("finishParticleSize", a));
  23074. this.Ho = parseFloat(d("finishParticleSizeVariance", a));
  23075. this.G(parseFloat(d("sourcePositionx", a)), parseFloat(d("sourcePositiony", a)));
  23076. this.zk.x = parseFloat(d("sourcePositionVariancex", a));
  23077. this.zk.y = parseFloat(d("sourcePositionVariancey",
  23078. a));
  23079. this.wp = parseFloat(d("rotationStart", a));
  23080. this.xp = parseFloat(d("rotationStartVariance", a));
  23081. this.Io = parseFloat(d("rotationEnd", a));
  23082. this.Jo = parseFloat(d("rotationEndVariance", a));
  23083. this.Ea = parseInt(d("emitterType", a));
  23084. if (this.Ea == F.o.gb) c = this.Xb, c.gravity.x = parseFloat(d("gravityx", a)), c.gravity.y = parseFloat(d("gravityy", a)), c.speed = parseFloat(d("speed", a)), c.speedVar = parseFloat(d("speedVariance", a)), e = d("radialAcceleration", a), c.radialAccel = e ? parseFloat(e) : 0, e = d("radialAccelVariance", a), c.radialAccelVar =
  23085. e ? parseFloat(e) : 0, e = d("tangentialAcceleration", a), c.tangentialAccel = e ? parseFloat(e) : 0, e = d("tangentialAccelVariance", a), c.tangentialAccelVar = e ? parseFloat(e) : 0, e = d("rotationIsDir", a).toLowerCase(), c.rotationIsDir = e != q && ("true" === e || "1" === e);
  23086. else if (this.Ea == F.o.af) c = this.Fd, c.startRadius = parseFloat(d("maxRadius", a)), c.startRadiusVar = parseFloat(d("maxRadiusVariance", a)), c.endRadius = parseFloat(d("minRadius", a)), c.endRadiusVar = 0, c.by = parseFloat(d("rotatePerSecond", a)), c.cy = parseFloat(d("rotatePerSecondVariance",
  23087. a));
  23088. else return F.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), r;
  23089. this.Se = parseFloat(d("particleLifespan", a));
  23090. this.bp = parseFloat(d("particleLifespanVariance", a));
  23091. this.rm = this.ob / this.Se;
  23092. if (!this.W)
  23093. if (this.Qa = r, c = d("textureFileName", a), c = F.path.Co(this.fC, c), e = F.Fa.Nm(c)) this.pb(e);
  23094. else if ((a = d("textureImageData", a)) && 0 == a.length) {
  23095. e = F.Fa.Hc(c);
  23096. if (!e) return r;
  23097. this.pb(e)
  23098. } else {
  23099. d = F.EP(a, 1);
  23100. if (!d) return F.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),
  23101. r;
  23102. a = F.D_(d);
  23103. if (a !== F.NG && a !== F.Ry) return F.log("cc.ParticleSystem: unknown image format with Data"), r;
  23104. e = F.Nb("canvas");
  23105. a === F.Ry ? (new F.XR(d)).A2(e) : F.w4.V1(d, e);
  23106. F.Fa.dZ(c, e);
  23107. (a = F.Fa.Nm(c)) || F.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  23108. this.pb(a)
  23109. }
  23110. c = p
  23111. }
  23112. return c
  23113. },
  23114. Va: function(a) {
  23115. this.ob = a;
  23116. var c, d = this.yk;
  23117. for (c = d.length = 0; c < a; c++) d[c] = new F.ng;
  23118. if (!d) return F.log("Particle system: not enough memory"), r;
  23119. this.Nu = a;
  23120. if (this.W)
  23121. for (c = 0; c < this.ob; c++) d[c].atlasIndex = c;
  23122. this.Vn = p;
  23123. this.q.src =
  23124. F.hc;
  23125. this.q.U = F.gc;
  23126. this.Di = F.o.Dq;
  23127. this.Ea = F.o.gb;
  23128. this.dm = this.ss = r;
  23129. this.EO(1);
  23130. if (F.B === F.$) {
  23131. if (!this.LI()) return r;
  23132. this.UE();
  23133. this.Xl();
  23134. this.shaderProgram = F.Jd.oc(F.Pi)
  23135. }
  23136. return p
  23137. },
  23138. P9: function() {
  23139. this.DP()
  23140. },
  23141. EY: function() {
  23142. if (this.R0()) return r;
  23143. var a, c = this.yk;
  23144. F.B === F.Ca ? this.qd < c.length ? a = c[this.qd] : (a = new F.ng, c.push(a)) : a = c[this.qd];
  23145. this.x0(a);
  23146. ++this.qd;
  23147. return p
  23148. },
  23149. x0: function(a) {
  23150. var c = F.n2;
  23151. a.dl = this.Se + this.bp * c();
  23152. a.dl = Math.max(0, a.dl);
  23153. a.$a.x = this.jo.x + this.zk.x * c();
  23154. a.$a.y = this.jo.y + this.zk.y * c();
  23155. var d,
  23156. e;
  23157. d = this.sh;
  23158. var f = this.Gk,
  23159. g = this.De;
  23160. e = this.kk;
  23161. F.B === F.Ca ? (d = F.color(F.Vc(d.r + f.r * c(), 0, 255), F.Vc(d.g + f.g * c(), 0, 255), F.Vc(d.b + f.b * c(), 0, 255), F.Vc(d.a + f.a * c(), 0, 255)), e = F.color(F.Vc(g.r + e.r * c(), 0, 255), F.Vc(g.g + e.g * c(), 0, 255), F.Vc(g.b + e.b * c(), 0, 255), F.Vc(g.a + e.a * c(), 0, 255))) : (d = {
  23162. r: F.Vc(d.r + f.r * c(), 0, 255),
  23163. g: F.Vc(d.g + f.g * c(), 0, 255),
  23164. b: F.Vc(d.b + f.b * c(), 0, 255),
  23165. a: F.Vc(d.a + f.a * c(), 0, 255)
  23166. }, e = {
  23167. r: F.Vc(g.r + e.r * c(), 0, 255),
  23168. g: F.Vc(g.g + e.g * c(), 0, 255),
  23169. b: F.Vc(g.b + e.b * c(), 0, 255),
  23170. a: F.Vc(g.a + e.a * c(), 0, 255)
  23171. });
  23172. a.color = d;
  23173. f = a.zs;
  23174. g = a.dl;
  23175. f.r = (e.r - d.r) / g;
  23176. f.g = (e.g - d.g) / g;
  23177. f.b = (e.b - d.b) / g;
  23178. f.a = (e.a - d.a) / g;
  23179. d = this.up + this.vp * c();
  23180. d = Math.max(0, d);
  23181. a.size = d;
  23182. this.sm === F.o.og ? a.lE = 0 : (e = this.sm + this.Ho * c(), e = Math.max(0, e), a.lE = (e - d) / g);
  23183. d = this.wp + this.xp * c();
  23184. e = this.Io + this.Jo * c();
  23185. a.rotation = d;
  23186. a.uM = (e - d) / g;
  23187. this.Di == F.o.Dq ? a.qy = this.Nw(this.lC) : this.Di == F.o.Vz && (a.qy.x = this.za.x, a.qy.y = this.za.y);
  23188. d = F.Uf(this.Eg + this.yo * c());
  23189. if (this.Ea === F.o.gb) g = this.Xb, e = a.Xb, f = g.speed + g.speedVar * c(), e.dir.x = Math.cos(d), e.dir.y = Math.sin(d), F.hp(e.dir,
  23190. f), e.radialAccel = g.radialAccel + g.radialAccelVar * c(), e.tangentialAccel = g.tangentialAccel + g.tangentialAccelVar * c(), g.rotationIsDir && (a.rotation = -F.BF(F.T1(e.dir)));
  23191. else {
  23192. e = this.Fd;
  23193. a = a.Fd;
  23194. var f = e.startRadius + e.startRadiusVar * c(),
  23195. h = e.endRadius + e.endRadiusVar * c();
  23196. a.gt = f;
  23197. a.tM = e.endRadius === F.o.xS ? 0 : (h - f) / g;
  23198. a.Eg = d;
  23199. a.qM = F.Uf(e.by + e.cy * c())
  23200. }
  23201. },
  23202. m4: function() {
  23203. this.Vn = r;
  23204. this.kb = this.duration;
  23205. this.El = 0
  23206. },
  23207. D2: function() {
  23208. this.Vn = p;
  23209. this.kb = 0;
  23210. var a = this.yk;
  23211. for (this.kf = 0; this.kf < this.qd; ++this.kf) a[this.kf].dl = 0
  23212. },
  23213. R0: function() {
  23214. return this.qd >=
  23215. this.ob
  23216. },
  23217. D4: function(a, c) {
  23218. var d = q;
  23219. this.W ? (d = this.W.textureAtlas.quads[this.atlasIndex + a.atlasIndex], this.W.textureAtlas.dirty = p) : d = this.Dc[this.kf];
  23220. var e, f, g, h;
  23221. this.Qa ? (e = 0 | a.color.r * a.color.a / 255, f = 0 | a.color.g * a.color.a / 255, g = 0 | a.color.b * a.color.a / 255) : (e = 0 | a.color.r, f = 0 | a.color.g, g = 0 | a.color.b);
  23222. h = 0 | a.color.a;
  23223. var m = d.F.v;
  23224. m.r = e;
  23225. m.g = f;
  23226. m.b = g;
  23227. m.a = h;
  23228. m = d.O.v;
  23229. m.r = e;
  23230. m.g = f;
  23231. m.b = g;
  23232. m.a = h;
  23233. m = d.N.v;
  23234. m.r = e;
  23235. m.g = f;
  23236. m.b = g;
  23237. m.a = h;
  23238. m = d.K.v;
  23239. m.r = e;
  23240. m.g = f;
  23241. m.b = g;
  23242. m.a = h;
  23243. e = a.size / 2;
  23244. if (a.rotation) {
  23245. f = -e;
  23246. g = -e;
  23247. h = c.x;
  23248. var m = c.y,
  23249. n = -F.Uf(a.rotation),
  23250. s = Math.cos(n),
  23251. n = Math.sin(n);
  23252. d.F.k.x = f * s - g * n + h;
  23253. d.F.k.y = f * n + g * s + m;
  23254. d.O.k.x = e * s - g * n + h;
  23255. d.O.k.y = e * n + g * s + m;
  23256. d.N.k.x = f * s - e * n + h;
  23257. d.N.k.y = f * n + e * s + m;
  23258. d.K.k.x = e * s - e * n + h;
  23259. d.K.k.y = e * n + e * s + m
  23260. } else d.F.k.x = c.x - e, d.F.k.y = c.y - e, d.O.k.x = c.x + e, d.O.k.y = c.y - e, d.N.k.x = c.x - e, d.N.k.y = c.y + e, d.K.k.x = c.x + e, d.K.k.y = c.y + e
  23261. },
  23262. g2: function() {
  23263. if (F.B === F.$) {
  23264. var a = F.m;
  23265. a.bindBuffer(a.ARRAY_BUFFER, this.tc[0]);
  23266. a.bufferData(a.ARRAY_BUFFER, this.ad, a.DYNAMIC_DRAW)
  23267. }
  23268. },
  23269. update: function(a) {
  23270. if (this.Vn && this.rm) {
  23271. var c = 1 / this.rm;
  23272. this.qd < this.ob && (this.El +=
  23273. a);
  23274. for (; this.qd < this.ob && this.El > c;) this.EY(), this.El -= c;
  23275. this.kb += a; - 1 != this.duration && this.duration < this.kb && this.m4()
  23276. }
  23277. this.kf = 0;
  23278. c = F.ng.Au[0];
  23279. this.Di == F.o.Dq ? F.Ej(c, this.Nw(this.lC)) : this.Di == F.o.Vz && (c.x = this.za.x, c.y = this.za.y);
  23280. if (this.yc) {
  23281. for (var d = F.ng.Au[1], e = F.ng.Au[2], f = F.ng.Au[3], g = this.yk; this.kf < this.qd;) {
  23282. F.Ux(d);
  23283. F.Ux(e);
  23284. F.Ux(f);
  23285. var h = g[this.kf];
  23286. h.dl -= a;
  23287. if (0 < h.dl) {
  23288. if (this.Ea == F.o.gb) {
  23289. var m = f,
  23290. n = d,
  23291. s = e;
  23292. h.$a.x || h.$a.y ? (F.Ej(n, h.$a), F.R1(n)) : F.Ux(n);
  23293. F.Ej(s, n);
  23294. F.hp(n, h.Xb.radialAccel);
  23295. var u =
  23296. s.x;
  23297. s.x = -s.y;
  23298. s.y = u;
  23299. F.hp(s, h.Xb.tangentialAccel);
  23300. F.Ej(m, n);
  23301. F.Sx(m, s);
  23302. F.Sx(m, this.Xb.gravity);
  23303. F.hp(m, a);
  23304. F.Sx(h.Xb.dir, m);
  23305. F.Ej(m, h.Xb.dir);
  23306. F.hp(m, a);
  23307. F.Sx(h.$a, m)
  23308. } else m = h.Fd, m.Eg += m.qM * a, m.gt += m.tM * a, h.$a.x = -Math.cos(m.Eg) * m.gt, h.$a.y = -Math.sin(m.Eg) * m.gt; if (!this.gJ || F.B === F.Ca) h.color.r += h.zs.r * a, h.color.g += h.zs.g * a, h.color.b += h.zs.b * a, h.color.a += h.zs.a * a, h.HN = p;
  23309. h.size += h.lE * a;
  23310. h.size = Math.max(0, h.size);
  23311. h.rotation += h.uM * a;
  23312. m = d;
  23313. this.Di == F.o.Dq || this.Di == F.o.Vz ? (n = e, F.Ej(n, c), F.kO(n, h.qy), F.Ej(m, h.$a),
  23314. F.kO(m, n)) : F.Ej(m, h.$a);
  23315. this.W && (m.x += this.za.x, m.y += this.za.y);
  23316. F.B == F.$ ? this.D4(h, m) : F.Ej(h.Bs, m);
  23317. ++this.kf
  23318. } else if (h = h.atlasIndex, this.kf !== this.qd - 1 && (m = g[this.kf], g[this.kf] = g[this.qd - 1], g[this.qd - 1] = m), this.W && (this.W.yZ(this.atlasIndex + h), g[this.qd - 1].atlasIndex = h), --this.qd, 0 == this.qd && this.ss) {
  23319. this.DP();
  23320. this.Tb.removeChild(this, p);
  23321. return
  23322. }
  23323. }
  23324. this.dm = r
  23325. }
  23326. this.W || this.g2()
  23327. },
  23328. G4: function() {
  23329. this.update(0)
  23330. },
  23331. CY: function(a, c) {
  23332. if (c) {
  23333. var d = c[a];
  23334. return d != q ? d : ""
  23335. }
  23336. return ""
  23337. },
  23338. Sf: function() {
  23339. if (this.W) F.log("Can't change blending functions when the particle is being batched");
  23340. else {
  23341. var a = this.L;
  23342. if (a && a instanceof F.ea) {
  23343. this.Qa = r;
  23344. var c = this.q;
  23345. c.src == F.hc && c.U == F.gc && (a.ti() ? this.Qa = p : (c.src = F.SRC_ALPHA, c.U = F.ONE_MINUS_SRC_ALPHA))
  23346. }
  23347. }
  23348. },
  23349. l: function() {
  23350. var a = new F.o;
  23351. if (a.Va(this.ob)) {
  23352. a.Kg(this.Eg);
  23353. a.Lg(this.yo);
  23354. a.$f(this.Qo());
  23355. var c = this.Ah();
  23356. a.Ue(c.src, c.U);
  23357. a.Xe(this.ax());
  23358. a.fg(this.hN());
  23359. a.Ve(this.Ww());
  23360. a.ag(this.OM());
  23361. a.Sg(this.up);
  23362. a.Tg(this.vp);
  23363. a.Og(this.sm);
  23364. a.e3(this.Ho);
  23365. a.G(F.d(this.x, this.y));
  23366. a.Rg(F.d(this.FE().x, this.FE().y));
  23367. a.G3(this.wp || 0);
  23368. a.H3(this.xp || 0);
  23369. a.f3(this.Io ||
  23370. 0);
  23371. a.g3(this.Jo || 0);
  23372. a.Ng(this.Ea);
  23373. this.Ea == F.o.gb ? (c = this.SM(), a.bg(F.d(c.x, c.y)), a.We(this.$w()), a.eg(this.fN()), a.cg(this.ZM()), a.dg(this.$M()), a.Jj(this.kN()), a.Kj(this.lN())) : this.Ea == F.o.af && (a.eP(this.iN()), a.fP(this.jN()), a.NO(this.PM()), a.OO(this.QM()), a.aP(this.aN()), a.bP(this.bN()));
  23374. a.Pg(this.Se);
  23375. a.Qg(this.bp);
  23376. a.Mg(this.rm);
  23377. if (!this.W && (a.Hd(this.re()), c = this.Oa())) {
  23378. var d = c.fc();
  23379. a.bG(c, F.rect(0, 0, d.width, d.height))
  23380. }
  23381. }
  23382. return a
  23383. },
  23384. a3: function(a) {
  23385. var c = a.Lf;
  23386. (0 != c.x || 0 != c.y) && F.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  23387. F.B === F.$ && (!this.L || a.Oa().Vd != this.L.Vd) && this.pb(a.Oa())
  23388. },
  23389. bG: function(a, c) {
  23390. var d = this.L;
  23391. if (F.B === F.$) {
  23392. if ((!d || a.Vd != d.Vd) && d != a) this.L = a, this.Sf()
  23393. } else if ((!d || a != d) && d != a) this.L = a, this.Sf();
  23394. this.Kr = c;
  23395. this.uN(c)
  23396. },
  23397. Y: function(a) {
  23398. this.oa && !this.W && (F.B === F.Ca ? this.Dl(a) : this.Wi(a), F.Wf++)
  23399. },
  23400. Dl: function(a) {
  23401. a = a || F.m;
  23402. a.save();
  23403. a.globalCompositeOperation = this.O0() ? "lighter" : "source-over";
  23404. for (var c = 0; c < this.qd; c++) {
  23405. var d = this.yk[c],
  23406. e = 0 | 0.5 * d.size;
  23407. if (this.Rw == F.o.IH) {
  23408. if (e = this.L.Eb, e.width && e.height) {
  23409. a.save();
  23410. a.globalAlpha = d.color.a / 255;
  23411. a.translate(0 | d.Bs.x, -(0 | d.Bs.y));
  23412. var f = 4 * Math.floor(d.size / 4),
  23413. g = this.Kr.width,
  23414. h = this.Kr.height;
  23415. a.scale(Math.max(1 / g * f, 1E-6), Math.max(1 / h * f, 1E-6));
  23416. d.rotation && a.rotate(F.Uf(d.rotation));
  23417. a.translate(-(0 | g / 2), -(0 | h / 2));
  23418. if (d.HN && (f = F.Fa.bx(e))) f.zt || (f.zt = F.Nb("canvas"), f.zt.width = e.width, f.zt.height = e.height), F.No(e, f, d.color, this.Kr, f.zt), e = f.zt;
  23419. a.drawImage(e, 0, 0);
  23420. a.restore()
  23421. }
  23422. } else a.save(), a.globalAlpha = d.color.a / 255, a.translate(0 | d.Bs.x, -(0 | d.Bs.y)), this.py == F.o.yS ? (d.rotation &&
  23423. a.rotate(F.Uf(d.rotation)), F.Ce.IZ(a, e, d.color)) : F.Ce.BZ(a, e, d.color), a.restore()
  23424. }
  23425. a.restore()
  23426. },
  23427. Wi: function(a) {
  23428. this.L && (a = a || F.m, this.Ib.Nc(), this.Ib.Ze(), F.qe(this.L), F.oN(this.q.src, this.q.U), F.Jc(F.xl), a.bindBuffer(a.ARRAY_BUFFER, this.tc[0]), a.vertexAttribPointer(F.qb, 3, a.FLOAT, r, 24, 0), a.vertexAttribPointer(F.ye, 4, a.UNSIGNED_BYTE, p, 24, 12), a.vertexAttribPointer(F.ud, 2, a.FLOAT, r, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.tc[1]), a.drawElements(a.TRIANGLES, 6 * this.kf, a.UNSIGNED_SHORT, 0))
  23429. },
  23430. Afa: function() {
  23431. F.Kz ||
  23432. this.Xl()
  23433. },
  23434. w8: t(),
  23435. Xl: function() {
  23436. if (F.B != F.Ca) {
  23437. var a = F.m;
  23438. this.tc[0] = a.createBuffer();
  23439. a.bindBuffer(a.ARRAY_BUFFER, this.tc[0]);
  23440. a.bufferData(a.ARRAY_BUFFER, this.ad, a.DYNAMIC_DRAW);
  23441. this.tc[1] = a.createBuffer();
  23442. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.tc[1]);
  23443. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW)
  23444. }
  23445. },
  23446. LI: function() {
  23447. if (F.B === F.Ca) return p;
  23448. if (this.W) return F.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), r;
  23449. var a = F.Db.BYTES_PER_ELEMENT,
  23450. c = this.ob,
  23451. d = this.Dc;
  23452. d.length = 0;
  23453. this.lb = new Uint16Array(6 * c);
  23454. for (var e = new ArrayBuffer(a * c), f = 0; f < c; f++) d[f] = new F.Db(q, q, q, q, e, f * a);
  23455. if (!d || !this.lb) return F.log("cocos2d: Particle system: not enough memory"), r;
  23456. this.ad = e;
  23457. return p
  23458. }
  23459. });
  23460. M = F.o.prototype;
  23461. F.j(M, "opacityModifyRGB", M.re, M.Hd);
  23462. F.j(M, "batchNode", M.xE, M.al);
  23463. F.j(M, "active", M.tf);
  23464. F.j(M, "sourcePos", M.f0, M.E3);
  23465. F.j(M, "posVar", M.FE, M.Rg);
  23466. F.j(M, "gravity", M.SM, M.bg);
  23467. F.j(M, "speed", M.$w, M.We);
  23468. F.j(M, "speedVar", M.fN, M.eg);
  23469. F.j(M, "tangentialAccel", M.kN, M.Jj);
  23470. F.j(M, "tangentialAccelVar", M.lN, M.Kj);
  23471. F.j(M, "radialAccel", M.ZM, M.cg);
  23472. F.j(M, "radialAccelVar", M.$M, M.dg);
  23473. F.j(M, "rotationIsDir", M.Y_, M.z3);
  23474. F.j(M, "startRadius", M.iN, M.eP);
  23475. F.j(M, "startRadiusVar", M.jN, M.fP);
  23476. F.j(M, "endRadius", M.PM, M.NO);
  23477. F.j(M, "endRadiusVar", M.QM, M.OO);
  23478. F.j(M, "rotatePerS", M.aN, M.aP);
  23479. F.j(M, "rotatePerSVar", M.bN, M.bP);
  23480. F.j(M, "startColor", M.ax, M.Xe);
  23481. F.j(M, "startColorVar", M.hN, M.fg);
  23482. F.j(M, "endColor", M.Ww, M.Ve);
  23483. F.j(M, "endColorVar", M.OM, M.ag);
  23484. F.j(M, "totalParticles", M.j0, M.K3);
  23485. F.j(M, "texture", M.Oa, M.pb);
  23486. F.o.create = function(a) {
  23487. return new F.o(a)
  23488. };
  23489. F.o.fz = function(a, c, d, e, f, g, h, m) {
  23490. this.gravity = a ? a : F.d(0, 0);
  23491. this.speed = c || 0;
  23492. this.speedVar = d || 0;
  23493. this.tangentialAccel = e || 0;
  23494. this.tangentialAccelVar = f || 0;
  23495. this.radialAccel = g || 0;
  23496. this.radialAccelVar = h || 0;
  23497. this.rotationIsDir = m || r
  23498. };
  23499. F.o.gz = function(a, c, d, e, f, g) {
  23500. this.startRadius = a || 0;
  23501. this.startRadiusVar = c || 0;
  23502. this.endRadius = d || 0;
  23503. this.endRadiusVar = e || 0;
  23504. this.by = f || 0;
  23505. this.cy = g || 0
  23506. };
  23507. F.o.wS = 0;
  23508. F.o.IH = 1;
  23509. F.o.yS = 0;
  23510. F.o.UP = 1;
  23511. F.o.Mh = -1;
  23512. F.o.og = -1;
  23513. F.o.xS = -1;
  23514. F.o.gb = 0;
  23515. F.o.af = 1;
  23516. F.o.Dq = 0;
  23517. F.o.Vz = 1;
  23518. F.o.k7 = 2;
  23519. F.lH = F.o.extend({
  23520. M: function() {
  23521. return this.Va(F.B === F.$ ? 300 : 150)
  23522. },
  23523. Va: function(a) {
  23524. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.cg(0), this.dg(0), this.We(60), this.eg(20), this.Kg(90), this.Lg(10), this.G(F.I.T.width / 2, 60), this.Rg(F.d(40, 20)), this.Pg(3), this.Qg(0.25), this.Sg(54), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(194, 64, 31, 255)), this.fg(F.color(0, 0, 0, 0)), this.Ve(F.color(0, 0, 0, 255)), this.ag(F.color(0, 0, 0, 0)), this.Jh(p), p) : r
  23525. }
  23526. });
  23527. F.lH.create = function() {
  23528. var a = new F.lH;
  23529. return a.M() ? a : q
  23530. };
  23531. F.mH = F.o.extend({
  23532. M: function() {
  23533. return this.Va(F.B === F.$ ? 1500 : 150)
  23534. },
  23535. Va: function(a) {
  23536. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, -90)), this.cg(0), this.dg(0), this.We(180), this.eg(50), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Kg(90), this.Lg(20), this.Pg(3.5), this.Qg(1), this.Mg(this.ob / this.Se), this.Xe(F.color(128, 128, 128, 255)), this.fg(F.color(128, 128, 128, 255)), this.Ve(F.color(26, 26, 26, 51)), this.ag(F.color(26, 26, 26, 51)), this.Sg(8), this.Tg(2), this.Og(F.o.og), this.Jh(r),
  23537. p) : r
  23538. }
  23539. });
  23540. F.mH.create = function() {
  23541. var a = new F.mH;
  23542. return a.M() ? a : q
  23543. };
  23544. F.uH = F.o.extend({
  23545. M: function() {
  23546. return this.Va(F.B === F.$ ? 350 : 150)
  23547. },
  23548. Va: function(a) {
  23549. return F.o.prototype.Va.call(this, a) ? (this.Jh(p), this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.cg(0), this.dg(0), this.We(20), this.eg(5), this.Kg(90), this.Lg(360), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(1), this.Qg(0.5), this.Sg(30), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(194, 64, 31, 255)), this.fg(F.color(0, 0, 0, 0)), this.Ve(F.color(0, 0, 0, 255)), this.ag(F.color(0, 0, 0,
  23550. 0)), p) : r
  23551. }
  23552. });
  23553. F.uH.create = function() {
  23554. var a = new F.uH;
  23555. return a.M() ? a : q
  23556. };
  23557. F.oH = F.o.extend({
  23558. M: function() {
  23559. return this.Va(F.B === F.$ ? 200 : 100)
  23560. },
  23561. Va: function(a) {
  23562. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.We(60), this.eg(10), this.cg(-80), this.dg(0), this.Jj(80), this.Kj(0), this.Kg(90), this.Lg(360), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(4), this.Qg(1), this.Sg(37), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(31, 64, 194, 255)), this.fg(F.color(0, 0, 0, 0)), this.Ve(F.color(0, 0, 0, 255)), this.ag(F.color(0,
  23563. 0, 0, 0)), this.Jh(p), p) : r
  23564. }
  23565. });
  23566. F.oH.create = function() {
  23567. var a = new F.oH;
  23568. return a.M() ? a : q
  23569. };
  23570. F.nH = F.o.extend({
  23571. M: function() {
  23572. return this.Va(F.B === F.$ ? 250 : 100)
  23573. },
  23574. Va: function(a) {
  23575. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.We(80), this.eg(10), this.cg(-60), this.dg(0), this.Jj(15), this.Kj(0), this.Kg(90), this.Lg(360), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(4), this.Qg(1), this.Sg(30), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(128, 128, 128, 255)), this.fg(F.color(128, 128, 128, 128)), this.Ve(F.color(0, 0, 0, 255)),
  23576. this.ag(F.color(0, 0, 0, 0)), this.Jh(p), p) : r
  23577. }
  23578. });
  23579. F.nH.create = function() {
  23580. var a = new F.nH;
  23581. return a.M() ? a : q
  23582. };
  23583. F.pH = F.o.extend({
  23584. M: function() {
  23585. return this.Va(F.B === F.$ ? 150 : 100)
  23586. },
  23587. Va: function(a) {
  23588. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(-200, 200)), this.We(15), this.eg(5), this.cg(0), this.dg(0), this.Jj(0), this.Kj(0), this.Kg(90), this.Lg(360), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(2), this.Qg(1), this.Sg(60), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(51, 102, 179)), this.fg(F.color(0, 0, 51, 26)), this.Ve(F.color(0, 0, 0, 255)), this.ag(F.color(0,
  23589. 0, 0, 0)), this.Jh(p), p) : r
  23590. }
  23591. });
  23592. F.pH.create = function() {
  23593. var a = new F.pH;
  23594. return a.M() ? a : q
  23595. };
  23596. F.tH = F.o.extend({
  23597. M: function() {
  23598. return this.Va(F.B === F.$ ? 500 : 100)
  23599. },
  23600. Va: function(a) {
  23601. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.We(150), this.eg(0), this.cg(-380), this.dg(0), this.Jj(45), this.Kj(0), this.Kg(90), this.Lg(0), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(12), this.Qg(0), this.Sg(20), this.Tg(0), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(128, 128, 128, 255)), this.fg(F.color(128, 128, 128, 0)), this.Ve(F.color(128, 128, 128, 255)),
  23602. this.ag(F.color(128, 128, 128, 0)), this.Jh(r), p) : r
  23603. }
  23604. });
  23605. F.tH.create = function() {
  23606. var a = new F.tH;
  23607. return a.M() ? a : q
  23608. };
  23609. F.kH = F.o.extend({
  23610. M: function() {
  23611. return this.Va(F.B === F.$ ? 700 : 300)
  23612. },
  23613. Va: function(a) {
  23614. return F.o.prototype.Va.call(this, a) ? (this.$f(0.1), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.We(70), this.eg(40), this.cg(0), this.dg(0), this.Jj(0), this.Kj(0), this.Kg(90), this.Lg(360), a = F.I.T, this.G(a.width / 2, a.height / 2), this.Rg(F.d(0, 0)), this.Pg(5), this.Qg(2), this.Sg(15), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Qo()), this.Xe(F.color(179, 26, 51, 255)), this.fg(F.color(128, 128, 128, 0)), this.Ve(F.color(128, 128, 128, 0)), this.ag(F.color(128,
  23615. 128, 128, 0)), this.Jh(r), p) : r
  23616. }
  23617. });
  23618. F.kH.create = function() {
  23619. var a = new F.kH;
  23620. return a.M() ? a : q
  23621. };
  23622. F.rH = F.o.extend({
  23623. M: function() {
  23624. return this.Va(F.B === F.$ ? 200 : 100)
  23625. },
  23626. Va: function(a) {
  23627. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, 0)), this.cg(0), this.dg(0), this.We(25), this.eg(10), this.Kg(90), this.Lg(5), this.G(F.I.T.width / 2, 0), this.Rg(F.d(20, 0)), this.Pg(4), this.Qg(1), this.Sg(60), this.Tg(10), this.Og(F.o.og), this.Mg(this.ob / this.Se), this.Xe(F.color(204, 204, 204, 255)), this.fg(F.color(5, 5, 5, 0)), this.Ve(F.color(0, 0, 0, 255)), this.ag(F.color(0, 0, 0, 0)), this.Jh(r), p) : r
  23628. }
  23629. });
  23630. F.rH.create = function() {
  23631. var a = new F.rH;
  23632. return a.M() ? a : q
  23633. };
  23634. F.sH = F.o.extend({
  23635. M: function() {
  23636. return this.Va(F.B === F.$ ? 700 : 250)
  23637. },
  23638. Va: function(a) {
  23639. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(0, -1)), this.We(5), this.eg(1), this.cg(0), this.dg(1), this.Jj(0), this.Kj(1), a = F.I.T, this.G(a.width / 2, a.height + 10), this.Rg(F.d(a.width / 2, 0)), this.Kg(-90), this.Lg(5), this.Pg(45), this.Qg(15), this.Sg(10), this.Tg(5), this.Og(F.o.og), this.Mg(10), this.Xe(F.color(255, 255, 255, 255)), this.fg(F.color(0, 0, 0, 0)), this.Ve(F.color(255, 255, 255, 0)), this.ag(F.color(0,
  23640. 0, 0, 0)), this.Jh(r), p) : r
  23641. }
  23642. });
  23643. F.sH.create = function() {
  23644. var a = new F.sH;
  23645. return a.M() ? a : q
  23646. };
  23647. F.qH = F.o.extend({
  23648. M: function() {
  23649. return this.Va(F.B === F.$ ? 1E3 : 300)
  23650. },
  23651. Va: function(a) {
  23652. return F.o.prototype.Va.call(this, a) ? (this.$f(F.o.Mh), this.Ng(F.o.gb), this.bg(F.d(10, -10)), this.cg(0), this.dg(1), this.Jj(0), this.Kj(1), this.We(130), this.eg(30), this.Kg(-90), this.Lg(5), a = F.I.T, this.G(a.width / 2, a.height), this.Rg(F.d(a.width / 2, 0)), this.Pg(4.5), this.Qg(0), this.Sg(4), this.Tg(2), this.Og(F.o.og), this.Mg(20), this.Xe(F.color(179, 204, 255, 255)), this.fg(F.color(0, 0, 0, 0)), this.Ve(F.color(179, 204, 255, 128)), this.ag(F.color(0,
  23653. 0, 0, 0)), this.Jh(r), p) : r
  23654. }
  23655. });
  23656. F.qH.create = function() {
  23657. var a = new F.qH;
  23658. return a.M() ? a : q
  23659. };
  23660. F.I6 = 500;
  23661. F.lz = F.t.extend({
  23662. textureAtlas: q,
  23663. o7: p,
  23664. q: q,
  23665. tb: "ParticleBatchNode",
  23666. ctor: function(a, c) {
  23667. F.t.prototype.ctor.call(this);
  23668. this.q = {
  23669. src: F.hc,
  23670. U: F.gc
  23671. };
  23672. "string" == typeof a ? this.M(a, c) : a instanceof F.ea && this.sa(a, c)
  23673. },
  23674. sa: function(a, c) {
  23675. this.textureAtlas = new F.Vj;
  23676. this.textureAtlas.sa(a, c);
  23677. this.u.length = 0;
  23678. F.B === F.$ && (this.shaderProgram = F.Jd.oc(F.Pi));
  23679. return p
  23680. },
  23681. Uk: function(a, c) {
  23682. var d = F.Fa.Hc(a);
  23683. return this.sa(d, c)
  23684. },
  23685. M: function(a, c) {
  23686. var d = F.n7.jba().Hc(a);
  23687. return this.sa(d, c)
  23688. },
  23689. Q: function(a, c, d) {
  23690. a || b("cc.ParticleBatchNode.addChild() : child should be non-null");
  23691. a instanceof
  23692. F.o || b("cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children");
  23693. c = c == q ? a.zIndex : c;
  23694. d = d == q ? a.tag : d;
  23695. a.Oa() != this.textureAtlas.texture && b("cc.ParticleSystem.addChild() : the child is not using the same texture id");
  23696. var e = a.Ah();
  23697. if (0 === this.u.length) this.Ue(e);
  23698. else if (e.src != this.q.src || e.U != this.q.U) {
  23699. F.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  23700. return
  23701. }
  23702. c = this.sU(a, c, d);
  23703. d = 0;
  23704. 0 != c ? (c = this.u[c - 1], d = c.Po() + c.ob) : d = 0;
  23705. this.$E(a,
  23706. d);
  23707. a.al(this)
  23708. },
  23709. $E: function(a, c) {
  23710. var d = a.ob,
  23711. e = this.textureAtlas,
  23712. f = e.totalQuads;
  23713. a.MF(c);
  23714. f + d > e.vd && (this.cW(f + d), e.EM(e.vd - d, d));
  23715. a.Po() + d != f && e.$N(c, c + d);
  23716. e.tN(d);
  23717. this.wD()
  23718. },
  23719. removeChild: function(a, c) {
  23720. if (a != q)
  23721. if (a instanceof F.o || b("cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"), -1 == this.u.indexOf(a)) F.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  23722. else {
  23723. F.t.prototype.removeChild.call(this, a, c);
  23724. var d = this.textureAtlas;
  23725. d.y2(a.Po(),
  23726. a.ob);
  23727. d.EM(d.totalQuads, a.ob);
  23728. a.al(q);
  23729. this.wD()
  23730. }
  23731. },
  23732. lp: function(a, c) {
  23733. a || b("cc.ParticleBatchNode.reorderChild(): child should be non-null");
  23734. a instanceof F.o || b("cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children");
  23735. if (-1 === this.u.indexOf(a)) F.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  23736. else if (c != a.zIndex) {
  23737. if (1 < this.u.length) {
  23738. var d = this.AV(a, c);
  23739. if (d.bO != d.aO) {
  23740. this.u.splice(d.bO, 1);
  23741. this.u.splice(d.aO, 0, a);
  23742. d = a.Po();
  23743. this.wD();
  23744. for (var e = 0, f =
  23745. this.u, g = 0; g < f.length; g++)
  23746. if (f[g] == a) {
  23747. e = a.Po();
  23748. break
  23749. }
  23750. this.textureAtlas.$N(d, a.ob, e);
  23751. a.G4()
  23752. }
  23753. }
  23754. a.fw(c)
  23755. }
  23756. },
  23757. u2: function(a, c) {
  23758. this.removeChild(this.u[i], c)
  23759. },
  23760. Jg: function(a) {
  23761. for (var c = this.u, d = 0; d < c.length; d++) c[d].al(q);
  23762. F.t.prototype.Jg.call(this, a);
  23763. this.textureAtlas.uO()
  23764. },
  23765. yZ: function(a) {
  23766. a = this.textureAtlas.quads[a];
  23767. a.O.k.x = a.O.k.y = a.K.k.x = a.K.k.y = a.N.k.x = a.N.k.y = a.F.k.x = a.F.k.y = 0;
  23768. this.textureAtlas.Dk(p)
  23769. },
  23770. Y: function() {
  23771. F.B !== F.Ca && 0 != this.textureAtlas.totalQuads && (F.Ws(this), F.oN(this.q.src, this.q.U), this.textureAtlas.zM())
  23772. },
  23773. Oa: function() {
  23774. return this.textureAtlas.texture
  23775. },
  23776. pb: function(a) {
  23777. this.textureAtlas.texture = a;
  23778. var c = this.q;
  23779. a && (!a.ti() && c.src == F.hc && c.U == F.gc) && (c.src = F.SRC_ALPHA, c.U = F.ONE_MINUS_SRC_ALPHA)
  23780. },
  23781. Ue: function(a, c) {
  23782. c === k ? (this.q.src = a.src, this.q.U = a.U) : (this.q.src = a, this.q.src = c)
  23783. },
  23784. Ah: function() {
  23785. return {
  23786. src: this.q.src,
  23787. U: this.q.U
  23788. }
  23789. },
  23790. S: function(a) {
  23791. F.B !== F.Ca && this.yc && (F.Bm(), this.grid && this.grid.tf() && (this.grid.ts(), this.uy()), this.transform(a), this.Y(a), this.grid && this.grid.tf() && this.grid.qs(this), F.Am())
  23792. },
  23793. wD: function() {
  23794. for (var a = 0, c = this.u, d = 0; d < c.length; d++) {
  23795. var e = c[d];
  23796. e.MF(a);
  23797. a += e.ob
  23798. }
  23799. },
  23800. cW: function(a) {
  23801. F.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.vd + "] to [" + a + "].");
  23802. this.textureAtlas.FF(a) || F.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  23803. },
  23804. sX: function(a) {
  23805. for (var c = this.u, d = c.length, e = 0; e < d; e++)
  23806. if (c[e].zIndex > a) return e;
  23807. return d
  23808. },
  23809. AV: function(a, c) {
  23810. for (var d = r, e = r, f = 0, g = 0, h = 0, m = this.u, n = m.length,
  23811. s = 0; s < n; s++) {
  23812. var u = m[s];
  23813. if (u.zIndex > c && !e && (f = s, e = p, d && e)) break;
  23814. if (a == u && (g = s, d = p, e || (h = -1), d && e)) break
  23815. }
  23816. e || (f = n);
  23817. return {
  23818. aO: f + h,
  23819. bO: g
  23820. }
  23821. },
  23822. sU: function(a, c, d) {
  23823. a || b("cc.ParticleBatchNode._addChildHelper(): child should be non-null");
  23824. if (a.parent) return F.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), q;
  23825. this.u || (this.u = []);
  23826. var e = this.sX(c);
  23827. this.u.splice(e, 0, a);
  23828. a.tag = d;
  23829. a.fw(c);
  23830. a.parent = this;
  23831. this.nh && (a.da(), a.Ih());
  23832. return e
  23833. },
  23834. Sf: function() {
  23835. this.textureAtlas.texture.ti() ||
  23836. (this.q.src = F.SRC_ALPHA, this.q.U = F.ONE_MINUS_SRC_ALPHA)
  23837. },
  23838. JE: A("textureAtlas"),
  23839. aG: y("textureAtlas")
  23840. });
  23841. M = F.lz.prototype;
  23842. F.j(M, "texture", M.Oa, M.pb);
  23843. F.lz.create = function(a, c) {
  23844. return new F.lz(a, c)
  23845. };
  23846. F.d6 = function(a, c, d) {
  23847. this.xh = a || F.rect(0, 0, 0, 0);
  23848. this.end = c || F.rect(0, 0, 0, 0);
  23849. this.duration = d || 0
  23850. };
  23851. F.c6 = F.ma.extend({
  23852. ctor: function() {
  23853. F.ui.QL(this)
  23854. },
  23855. Yx: function() {
  23856. F.ui.Yx(this)
  23857. },
  23858. WY: function() {
  23859. return F.ui.UL(this)
  23860. },
  23861. wM: function() {
  23862. return F.ui.vM(this)
  23863. },
  23864. ZD: E(r),
  23865. wZ: t(),
  23866. $D: E(r),
  23867. xZ: t(),
  23868. GN: t(),
  23869. sM: t(),
  23870. yE: E(""),
  23871. h1: t(),
  23872. f1: t(),
  23873. g1: t(),
  23874. e1: t()
  23875. });
  23876. F.Xy = F.ma.extend({
  23877. lc: q,
  23878. Ua: q,
  23879. Vi: "",
  23880. Kl: q,
  23881. ctor: function() {
  23882. this.Ua = new F.Xy.$Q;
  23883. this.Kl = F.d(0, 0)
  23884. },
  23885. M: function() {
  23886. if (!F.Cb.xi) {
  23887. this.lc = F.sb("#imeDispatcherInput");
  23888. this.lc || (this.lc = F.NP(), this.lc.setAttribute("type", "text"), this.lc.setAttribute("id", "imeDispatcherInput"), this.lc.mt(0, 0), this.lc.zP(0, 0), this.lc.style.opacity = "0", this.lc.style.fontSize = "1px", this.lc.setAttribute("tabindex", 2), this.lc.style.position = "absolute", this.lc.style.top = 0, this.lc.style.left = 0, document.body.appendChild(this.lc));
  23889. var a =
  23890. this;
  23891. F.Ja(this.lc, "input", function() {
  23892. a.sC(a.lc.value)
  23893. }, r);
  23894. F.Ja(this.lc, "keydown", function(c) {
  23895. c.keyCode === F.gq.o4 ? (c.stopPropagation(), c.preventDefault()) : c.keyCode == F.gq.CM && (a.As("\n", 1), c.stopPropagation(), c.preventDefault())
  23896. }, r);
  23897. /msie/i.test(navigator.userAgent) && F.Ja(this.lc, "keyup", function(c) {
  23898. c.keyCode == F.gq.WL && a.sC(a.lc.value)
  23899. }, r);
  23900. F.Ja(window, "mousedown", function(c) {
  23901. var d = c.pageY || 0;
  23902. a.Kl.x = c.pageX || 0;
  23903. a.Kl.y = d
  23904. }, r)
  23905. }
  23906. },
  23907. sC: function(a) {
  23908. var c, d;
  23909. c = this.Vi.length < a.length ? this.Vi.length : a.length;
  23910. for (d =
  23911. 0; d < c && a[d] === this.Vi[d]; d++);
  23912. var e = this.Vi.length - d,
  23913. f = a.length - d;
  23914. for (c = 0; c < e; c++) this.xM();
  23915. for (c = 0; c < f; c++) this.As(a[d + c], 1);
  23916. this.Vi = a
  23917. },
  23918. As: function(a, c) {
  23919. this.Ua && a && !(0 >= c) && this.Ua.ee && this.Ua.ee.GN(a, c)
  23920. },
  23921. xM: function() {
  23922. this.Ua && this.Ua.ee && this.Ua.ee.sM()
  23923. },
  23924. yE: function() {
  23925. if (this.Ua && this.Ua.ee) {
  23926. var a = this.Ua.ee.yE();
  23927. return a ? a : ""
  23928. }
  23929. return ""
  23930. },
  23931. Y9: function() {
  23932. if (this.Ua)
  23933. for (var a = 0; a < this.Ua.ug.length; a++);
  23934. },
  23935. W9: function() {
  23936. if (this.Ua)
  23937. for (var a = 0; a < this.Ua.ug.length; a++);
  23938. },
  23939. X9: function() {
  23940. if (this.Ua)
  23941. for (var a =
  23942. 0; a < this.Ua.ug.length; a++);
  23943. },
  23944. V9: function() {
  23945. if (this.Ua)
  23946. for (var a = 0; a < this.Ua.ug.length; a++);
  23947. },
  23948. QL: function(a) {
  23949. a && this.Ua && (-1 < this.Ua.ug.indexOf(a) || this.Ua.ug.splice(0, 0, a))
  23950. },
  23951. UL: function(a) {
  23952. if (!this.Ua || !a || -1 == this.Ua.ug.indexOf(a)) return r;
  23953. if (this.Ua.ee) {
  23954. if (!this.Ua.ee.$D() || !a.ZD()) return r;
  23955. this.Ua.ee = q;
  23956. this.QJ(a);
  23957. return p
  23958. }
  23959. if (!a.ZD()) return r;
  23960. this.QJ(a);
  23961. return p
  23962. },
  23963. QJ: function(a) {
  23964. F.Cb.xi ? (this.Ua.ee = a, this.Vi = a.string || "", a = prompt("please enter your word:", this.Vi), a != q && this.sC(a), this.As("\n", 1)) :
  23965. (this.Ua.ee = a, this.Vi = a.string || "", this.lc.focus(), this.lc.value = this.Vi, this.eV())
  23966. },
  23967. eV: function() {
  23968. /msie/i.test(navigator.userAgent) ? (this.lc.style.left = this.Kl.x + "px", this.lc.style.top = this.Kl.y + "px") : this.lc.zP(this.Kl.x, this.Kl.y)
  23969. },
  23970. vM: function(a) {
  23971. if (!this.Ua || !a || this.Ua.ee != a || !a.$D()) return r;
  23972. this.Ua.ee = q;
  23973. F.Za.focus();
  23974. return p
  23975. },
  23976. Yx: function(a) {
  23977. this.Ua && a && -1 != this.Ua.ug.indexOf(a) && (this.Ua.ee && a == this.Ua.ee && (this.Ua.ee = q), F.Me(this.Ua.ug, a))
  23978. },
  23979. Lga: function(a) {
  23980. 32 > a ? a == F.gq.WL ? this.xM() : a == F.gq.CM &&
  23981. this.As("\n", 1) : 255 > a && this.As(String.fromCharCode(a), 1)
  23982. }
  23983. });
  23984. F.Xy.$Q = F.ma.extend({
  23985. ee: q,
  23986. ug: q,
  23987. ctor: function() {
  23988. this.ug = []
  23989. },
  23990. $$: function(a) {
  23991. for (var c = 0; c < this.ug.length; c++)
  23992. if (this.ug[c] == a) return c;
  23993. return q
  23994. }
  23995. });
  23996. F.ui = new F.Xy;
  23997. document.body ? F.ui.M() : F.Ja(window, "load", function() {
  23998. F.ui.M()
  23999. }, r);
  24000. F.m7 = F.ma.extend({
  24001. ega: E(r),
  24002. gga: E(r),
  24003. hga: E(r),
  24004. fga: E(r),
  24005. cga: E(r)
  24006. });
  24007. F.Wz = F.Z.extend({
  24008. rM: q,
  24009. Mw: q,
  24010. c8: q,
  24011. Kf: "",
  24012. Ql: "",
  24013. Wu: 0,
  24014. tb: "TextFieldTTF",
  24015. ctor: function(a, c, d, e, f) {
  24016. this.Mw = F.color(127, 127, 127);
  24017. F.ui.QL(this);
  24018. F.Z.prototype.ctor.call(this);
  24019. f !== k ? (this.F0("", c, d, e, f), a && this.ot(a)) : e === k && d !== k && (this.pd("", c, d), a && this.ot(a))
  24020. },
  24021. p_: A("rM"),
  24022. Y2: y("rM"),
  24023. j_: A("Wu"),
  24024. Caa: A("Mw"),
  24025. $ha: y("Mw"),
  24026. F0: function(a, c, d, e, f) {
  24027. switch (arguments.length) {
  24028. case 5:
  24029. return a && this.ot(a), this.pd(this.Ql, e, f, c, d);
  24030. case 3:
  24031. return a && this.ot(a), this.pd(this.Ql, arguments[1], arguments[2]);
  24032. default:
  24033. b("Argument must be non-nil ")
  24034. }
  24035. },
  24036. Mc: function(a) {
  24037. this.Kf = (a = String(a)) || "";
  24038. this.Kf.length ? F.Z.prototype.Mc.call(this, this.Kf) : F.Z.prototype.Mc.call(this, this.Ql);
  24039. this.Wu = this.Kf.length
  24040. },
  24041. Tk: A("Kf"),
  24042. ot: function(a) {
  24043. this.Ql = a || "";
  24044. this.Kf.length || F.Z.prototype.Mc.call(this, this.Ql)
  24045. },
  24046. T_: A("Ql"),
  24047. Y: function(a) {
  24048. a = a || F.m;
  24049. if (this.Kf && 0 < this.Kf.length) F.Z.prototype.Y.call(this, a);
  24050. else {
  24051. var c = this.color;
  24052. this.color = this.Mw;
  24053. F.B === F.Ca && this.Cw();
  24054. F.Z.prototype.Y.call(this, a);
  24055. this.color = c
  24056. }
  24057. },
  24058. S: function(a) {
  24059. this._super(a)
  24060. },
  24061. WY: function() {
  24062. return F.ui.UL(this)
  24063. },
  24064. wM: function() {
  24065. return F.ui.vM(this)
  24066. },
  24067. ZD: E(p),
  24068. wZ: t(),
  24069. $D: E(p),
  24070. xZ: t(),
  24071. sM: function() {
  24072. var a = this.Kf.length;
  24073. 0 != a && (1 >= a ? (this.Kf = "", this.Wu = 0, F.Z.prototype.Mc.call(this, this.Ql)) : this.string = this.Kf.substring(0, a - 1))
  24074. },
  24075. Yx: function() {
  24076. F.ui.Yx(this)
  24077. },
  24078. GN: function(a) {
  24079. var c = a;
  24080. a = c.indexOf("\n"); - 1 < a && (c = c.substring(0, a));
  24081. 0 < c.length && (c = this.Kf + c, this.Wu = c.length, this.string = c); - 1 != a && this.wM()
  24082. },
  24083. yE: A("Kf"),
  24084. h1: t(),
  24085. f1: t(),
  24086. g1: t(),
  24087. e1: t()
  24088. });
  24089. M = F.Wz.prototype;
  24090. F.j(M, "charCount", M.j_);
  24091. F.j(M, "placeHolder", M.T_, M.ot);
  24092. F.Wz.create = function(a, c, d, e, f) {
  24093. return new F.Wz(a, c, d, e, f)
  24094. };
  24095. F.wv = F.ZQ;
  24096. F.rr = "Arial";
  24097. F.ZJ = r;
  24098. F.Bc = F.ja.extend({
  24099. ff: r,
  24100. me: q,
  24101. be: q,
  24102. vr: r,
  24103. tb: "MenuItem",
  24104. ctor: function(a, c) {
  24105. var d = F.ja.prototype;
  24106. d.ctor.call(this);
  24107. this.be = this.me = q;
  24108. this.ff = this.vr = r;
  24109. d.Fi.call(this, 0.5, 0.5);
  24110. this.me = c || q;
  24111. if (this.be = a || q) this.ff = p
  24112. },
  24113. Cda: A("vr"),
  24114. Hd: t(),
  24115. re: E(r),
  24116. $F: function(a, c) {
  24117. this.me = c;
  24118. this.be = a
  24119. },
  24120. isEnabled: A("ff"),
  24121. se: y("ff"),
  24122. Ls: function(a, c) {
  24123. this.anchorY = this.anchorX = 0.5;
  24124. this.me = c;
  24125. this.be = a;
  24126. this.ff = p;
  24127. this.vr = r;
  24128. return p
  24129. },
  24130. rect: function() {
  24131. var a = this.za,
  24132. c = this.P,
  24133. d = this.Rc;
  24134. return F.rect(a.x - c.width * d.x, a.y - c.height * d.y, c.width,
  24135. c.height)
  24136. },
  24137. selected: function() {
  24138. this.vr = p
  24139. },
  24140. Kh: function() {
  24141. this.vr = r
  24142. },
  24143. Vha: function(a, c) {
  24144. this.me = c;
  24145. this.be = a
  24146. },
  24147. ps: function() {
  24148. if (this.ff) {
  24149. var a = this.me,
  24150. c = this.be;
  24151. if (c)
  24152. if (a && "string" == typeof c) a[c](this);
  24153. else a && "function" == typeof c ? c.call(a, this) : c(this)
  24154. }
  24155. }
  24156. });
  24157. M = F.Bc.prototype;
  24158. F.j(M, "enabled", M.isEnabled, M.se);
  24159. F.Bc.create = function(a, c) {
  24160. return new F.Bc(a, c)
  24161. };
  24162. F.ql = F.Bc.extend({
  24163. Dn: q,
  24164. xb: q,
  24165. XW: 0,
  24166. Wq: q,
  24167. ctor: function(a, c, d) {
  24168. F.Bc.prototype.ctor.call(this, c, d);
  24169. this.xb = this.Dn = q;
  24170. this.XW = 0;
  24171. this.Wq = q;
  24172. a && (this.Gr = 1, this.Wq = F.color.WHITE, this.Dn = F.color(126, 126, 126), this.jy(a), this.cascadeOpacity = this.cascadeColor = p)
  24173. },
  24174. r_: A("Dn"),
  24175. Z2: y("Dn"),
  24176. F_: A("xb"),
  24177. jy: function(a) {
  24178. a && (this.Q(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height);
  24179. this.xb && this.removeChild(this.xb, p);
  24180. this.xb = a
  24181. },
  24182. se: function(a) {
  24183. if (this.ff != a) {
  24184. var c = this.xb;
  24185. a ? c.color = this.Wq : (this.Wq = c.color,
  24186. c.color = this.Dn)
  24187. }
  24188. F.Bc.prototype.se.call(this, a)
  24189. },
  24190. va: function(a) {
  24191. this.xb.opacity = a
  24192. },
  24193. Qe: function() {
  24194. return this.xb.opacity
  24195. },
  24196. Wa: function(a) {
  24197. this.xb.color = a
  24198. },
  24199. Pe: function() {
  24200. return this.xb.color
  24201. },
  24202. BN: function(a, c, d) {
  24203. this.Ls(c, d);
  24204. this.Gr = 1;
  24205. this.Wq = F.color.WHITE;
  24206. this.Dn = F.color(126, 126, 126);
  24207. this.jy(a);
  24208. return this.cascadeOpacity = this.cascadeColor = p
  24209. },
  24210. Mc: function(a) {
  24211. this.xb.string = a;
  24212. this.width = this.xb.width;
  24213. this.height = this.xb.height
  24214. },
  24215. Tk: function() {
  24216. return this.xb.string
  24217. },
  24218. ps: function() {
  24219. this.ff && (this.gG(), this.scale =
  24220. this.Gr, F.Bc.prototype.ps.call(this))
  24221. },
  24222. selected: function() {
  24223. if (this.ff) {
  24224. F.Bc.prototype.selected.call(this);
  24225. var a = this.wE(F.Du);
  24226. a ? this.i4(a) : this.Gr = this.scale;
  24227. a = F.sd.create(0.1, 1.2 * this.Gr);
  24228. a.oy(F.Du);
  24229. this.ib(a)
  24230. }
  24231. },
  24232. Kh: function() {
  24233. if (this.ff) {
  24234. F.Bc.prototype.Kh.call(this);
  24235. this.j4(F.Du);
  24236. var a = F.sd.create(0.1, this.Gr);
  24237. a.oy(F.Du);
  24238. this.ib(a)
  24239. }
  24240. }
  24241. });
  24242. M = F.ql.prototype;
  24243. F.j(M, "string", M.Tk, M.Mc);
  24244. F.j(M, "disabledColor", M.r_, M.Z2);
  24245. F.j(M, "label", M.F_, M.jy);
  24246. F.ql.create = function(a, c, d) {
  24247. return new F.ql(a, c, d)
  24248. };
  24249. F.YG = F.ql.extend({
  24250. ctor: function(a, c, d, e, f, g, h) {
  24251. var m;
  24252. a && 0 < a.length && (m = F.Ph.create(a, c, d, e, f));
  24253. F.ql.prototype.ctor.call(this, m, g, h)
  24254. },
  24255. pd: function(a, c, d, e, f, g, h) {
  24256. (!a || 0 == a.length) && b("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0");
  24257. var m = new F.Ph;
  24258. m.pd(a, c, d, e, f);
  24259. this.BN(m, g, h);
  24260. return p
  24261. }
  24262. });
  24263. F.YG.create = function(a, c, d, e, f, g, h) {
  24264. return new F.YG(a, c, d, e, f, g, h)
  24265. };
  24266. F.pl = F.ql.extend({
  24267. Sb: q,
  24268. $b: q,
  24269. ctor: function(a, c, d) {
  24270. var e;
  24271. a && 0 < a.length ? (this.$b = F.rr, this.Sb = F.wv, e = F.Z.create(a, this.$b, this.Sb)) : (this.Sb = 0, this.$b = "");
  24272. F.ql.prototype.ctor.call(this, e, c, d)
  24273. },
  24274. pd: function(a, c, d) {
  24275. (!a || 0 == a.length) && b("Value should be non-null and its length should be greater than 0");
  24276. this.$b = F.rr;
  24277. this.Sb = F.wv;
  24278. a = F.Z.create(a, this.$b, this.Sb);
  24279. this.BN(a, c, d);
  24280. return p
  24281. },
  24282. iy: function(a) {
  24283. this.Sb = a;
  24284. this.QK()
  24285. },
  24286. CE: A("Sb"),
  24287. hy: function(a) {
  24288. this.$b = a;
  24289. this.QK()
  24290. },
  24291. BE: A("$b"),
  24292. QK: function() {
  24293. var a = F.Z.create(this.xb.string,
  24294. this.$b, this.Sb);
  24295. this.jy(a)
  24296. }
  24297. });
  24298. F.pl.iy = function(a) {
  24299. F.wv = a
  24300. };
  24301. F.pl.fontSize = function() {
  24302. return F.wv
  24303. };
  24304. F.pl.hy = function(a) {
  24305. F.ZJ && (F.rr = "");
  24306. F.rr = a;
  24307. F.ZJ = p
  24308. };
  24309. M = F.pl.prototype;
  24310. F.j(M, "fontSize", M.CE, M.iy);
  24311. F.j(M, "fontName", M.BE, M.hy);
  24312. F.pl.fontName = function() {
  24313. return F.rr
  24314. };
  24315. F.pl.create = function(a, c, d) {
  24316. return new F.pl(a, c, d)
  24317. };
  24318. F.rl = F.Bc.extend({
  24319. hd: q,
  24320. Ie: q,
  24321. Be: q,
  24322. ctor: function(a, c, d, e, f) {
  24323. F.Bc.prototype.ctor.call(this);
  24324. this.Be = this.Ie = this.hd = q;
  24325. if (c !== k) {
  24326. var g, h, m;
  24327. f !== k ? (g = d, m = e, h = f) : e !== k && "function" === typeof e ? (g = d, m = e) : e !== k && "function" === typeof d ? (h = e, m = d, g = c) : d === k && (g = c);
  24328. this.CN(a, c, g, m, h)
  24329. }
  24330. },
  24331. R_: A("hd"),
  24332. SF: function(a) {
  24333. this.hd != a && (a && (this.Q(a, 0, F.uR), a.anchorX = 0, a.anchorY = 0), this.hd && this.removeChild(this.hd, p), this.hd = a, this.width = this.hd.width, this.height = this.hd.height, this.yw(), a.xt && !a.oa && a.Wd(function(a) {
  24334. this.width =
  24335. a.width;
  24336. this.height = a.height
  24337. }, this))
  24338. },
  24339. b0: A("Ie"),
  24340. XF: function(a) {
  24341. this.Ie != a && (a && (this.Q(a, 0, F.hS), a.anchorX = 0, a.anchorY = 0), this.Ie && this.removeChild(this.Ie, p), this.Ie = a, this.yw())
  24342. },
  24343. s_: A("Be"),
  24344. PF: function(a) {
  24345. this.Be != a && (a && (this.Q(a, 0, F.sQ), a.anchorX = 0, a.anchorY = 0), this.Be && this.removeChild(this.Be, p), this.Be = a, this.yw())
  24346. },
  24347. CN: function(a, c, d, e, f) {
  24348. this.Ls(e, f);
  24349. this.SF(a);
  24350. this.XF(c);
  24351. this.PF(d);
  24352. if (a = this.hd) this.width = a.width, this.height = a.height, a.xt && !a.oa && a.Wd(function(a) {
  24353. this.width = a.width;
  24354. this.height =
  24355. a.height;
  24356. this.cascadeOpacity = this.cascadeColor = p
  24357. }, this);
  24358. return this.cascadeOpacity = this.cascadeColor = p
  24359. },
  24360. Wa: function(a) {
  24361. this.hd.color = a;
  24362. this.Ie && (this.Ie.color = a);
  24363. this.Be && (this.Be.color = a)
  24364. },
  24365. Pe: function() {
  24366. return this.hd.color
  24367. },
  24368. va: function(a) {
  24369. this.hd.opacity = a;
  24370. this.Ie && (this.Ie.opacity = a);
  24371. this.Be && (this.Be.opacity = a)
  24372. },
  24373. Qe: function() {
  24374. return this.hd.opacity
  24375. },
  24376. selected: function() {
  24377. F.Bc.prototype.selected.call(this);
  24378. this.hd && (this.Be && (this.Be.visible = r), this.Ie ? (this.hd.visible = r, this.Ie.visible = p) : this.hd.visible =
  24379. p)
  24380. },
  24381. Kh: function() {
  24382. F.Bc.prototype.Kh.call(this);
  24383. this.hd && (this.hd.visible = p, this.Ie && (this.Ie.visible = r), this.Be && (this.Be.visible = r))
  24384. },
  24385. se: function(a) {
  24386. this.ff != a && (F.Bc.prototype.se.call(this, a), this.yw())
  24387. },
  24388. yw: function() {
  24389. var a = this.hd,
  24390. c = this.Ie,
  24391. d = this.Be;
  24392. this.ff ? (a && (a.visible = p), c && (c.visible = r), d && (d.visible = r)) : d ? (a && (a.visible = r), c && (c.visible = r), d && (d.visible = p)) : (a && (a.visible = p), c && (c.visible = r))
  24393. }
  24394. });
  24395. M = F.rl.prototype;
  24396. F.j(M, "normalImage", M.R_, M.SF);
  24397. F.j(M, "selectedImage", M.b0, M.XF);
  24398. F.j(M, "disabledImage", M.s_, M.PF);
  24399. F.rl.create = function(a, c, d, e, f) {
  24400. return new F.rl(a, c, d, e, f || k)
  24401. };
  24402. F.ZG = F.rl.extend({
  24403. ctor: function(a, c, d, e, f) {
  24404. var g = q,
  24405. h = q,
  24406. m = q,
  24407. n = q,
  24408. s = q;
  24409. a === k ? F.rl.prototype.ctor.call(this) : (g = F.aa.create(a), c && (h = F.aa.create(c)), e === k ? n = d : f === k ? (n = d, s = e) : f && (m = F.aa.create(d), n = e, s = f), F.rl.prototype.ctor.call(this, g, h, m, n, s))
  24410. },
  24411. Lia: function(a) {
  24412. this.SF(F.aa.create(a))
  24413. },
  24414. hja: function(a) {
  24415. this.XF(F.aa.create(a))
  24416. },
  24417. jia: function(a) {
  24418. this.PF(F.aa.create(a))
  24419. },
  24420. eda: function(a, c, d, e, f) {
  24421. var g = q,
  24422. h = q,
  24423. m = q;
  24424. a && (g = F.aa.create(a));
  24425. c && (h = F.aa.create(c));
  24426. d && (m = F.aa.create(d));
  24427. return this.CN(g, h, m, e, f)
  24428. }
  24429. });
  24430. F.ZG.create = function(a, c, d, e, f) {
  24431. return new F.ZG(a, c, d, e, f)
  24432. };
  24433. F.ez = F.Bc.extend({
  24434. ed: q,
  24435. Ag: 0,
  24436. Sd: q,
  24437. de: q,
  24438. ctor: function() {
  24439. var a = arguments.length,
  24440. c, d;
  24441. "function" === typeof arguments[a - 2] ? (c = arguments[a - 2], d = arguments[a - 1], a -= 2) : "function" === typeof arguments[a - 1] && (c = arguments[a - 1], a -= 1);
  24442. F.Bc.prototype.ctor.call(this, c, d);
  24443. this.Ag = 0;
  24444. this.ed = [];
  24445. this.Sd = 0;
  24446. this.de = F.color.WHITE;
  24447. if (0 < a) {
  24448. c = this.ed;
  24449. for (d = c.length = 0; d < a; d++) arguments[d] && c.push(arguments[d]);
  24450. this.Ag = F.aA;
  24451. this.rt(0);
  24452. this.op(p);
  24453. this.pp(p)
  24454. }
  24455. },
  24456. Qe: A("Sd"),
  24457. va: function(a) {
  24458. this.Sd = a;
  24459. if (this.ed && 0 < this.ed.length)
  24460. for (var c =
  24461. 0; c < this.ed.length; c++) this.ed[c].opacity = a;
  24462. this.de.a = a
  24463. },
  24464. Pe: function() {
  24465. var a = this.de;
  24466. return F.color(a.r, a.g, a.b, a.a)
  24467. },
  24468. Wa: function(a) {
  24469. var c = this.de;
  24470. c.r = a.r;
  24471. c.g = a.g;
  24472. c.b = a.b;
  24473. if (this.ed && 0 < this.ed.length)
  24474. for (c = 0; c < this.ed.length; c++) this.ed[c].Wa(a);
  24475. a.a !== k && !a.os && this.va(a.a)
  24476. },
  24477. c0: A("Ag"),
  24478. rt: function(a) {
  24479. if (a != this.Ag) {
  24480. this.Ag = a;
  24481. (a = this.Bh(F.CG)) && a.$k(r);
  24482. a = this.ed[this.Ag];
  24483. this.Q(a, 0, F.CG);
  24484. var c = a.width,
  24485. d = a.height;
  24486. this.width = c;
  24487. this.height = d;
  24488. a.G(c / 2, d / 2)
  24489. }
  24490. },
  24491. tca: A("ed"),
  24492. nja: y("ed"),
  24493. AN: function(a) {
  24494. var c =
  24495. a.length;
  24496. "function" === typeof a[a.length - 2] ? (this.Ls(a[a.length - 2], a[a.length - 1]), c -= 2) : "function" === typeof a[a.length - 1] ? (this.Ls(a[a.length - 1], q), c -= 1) : this.Ls(q, q);
  24497. for (var d = this.ed, e = d.length = 0; e < c; e++) a[e] && d.push(a[e]);
  24498. this.Ag = F.aA;
  24499. this.rt(0);
  24500. return this.cascadeOpacity = this.cascadeColor = p
  24501. },
  24502. S8: function(a) {
  24503. this.ed.push(a)
  24504. },
  24505. ps: function() {
  24506. this.ff && this.rt((this.Ag + 1) % this.ed.length);
  24507. F.Bc.prototype.ps.call(this)
  24508. },
  24509. selected: function() {
  24510. F.Bc.prototype.selected.call(this);
  24511. this.ed[this.Ag].selected()
  24512. },
  24513. Kh: function() {
  24514. F.Bc.prototype.Kh.call(this);
  24515. this.ed[this.Ag].Kh()
  24516. },
  24517. se: function(a) {
  24518. if (this.ff != a) {
  24519. F.Bc.prototype.se.call(this, a);
  24520. var c = this.ed;
  24521. if (c && 0 < c.length)
  24522. for (var d = 0; d < c.length; d++) c[d].enabled = a
  24523. }
  24524. },
  24525. Kha: function() {
  24526. return this.ed[this.Ag]
  24527. },
  24528. da: function() {
  24529. F.t.prototype.da.call(this);
  24530. this.rt(this.Ag)
  24531. }
  24532. });
  24533. M = F.ez.prototype;
  24534. F.j(M, "selectedIndex", M.c0, M.rt);
  24535. F.ez.create = function() {
  24536. 0 < arguments.length && arguments[arguments.length - 1] == q && F.log("parameters should not be ending with null in Javascript");
  24537. var a = new F.ez;
  24538. a.AN(Array.prototype.slice.apply(arguments));
  24539. return a
  24540. };
  24541. F.iq = 0;
  24542. F.hq = 1;
  24543. F.v6 = -128;
  24544. F.GG = 5;
  24545. F.Pj = F.vf.extend({
  24546. enabled: r,
  24547. de: q,
  24548. Sd: 0,
  24549. Uc: q,
  24550. th: -1,
  24551. yL: q,
  24552. tb: "Menu",
  24553. ctor: function(a) {
  24554. F.vf.prototype.ctor.call(this);
  24555. this.de = F.color.WHITE;
  24556. this.enabled = r;
  24557. this.Sd = 255;
  24558. this.Uc = q;
  24559. this.th = -1;
  24560. this.yL = F.ta.create({
  24561. event: F.ta.Cq,
  24562. yp: p,
  24563. Em: this.OW,
  24564. $s: this.SW,
  24565. fp: this.QW,
  24566. Zs: this.PW
  24567. });
  24568. 0 < arguments.length && arguments[arguments.length - 1] == q && F.log("parameters should not be ending with null in Javascript");
  24569. var c = arguments.length,
  24570. d;
  24571. if (0 == c) d = [];
  24572. else if (1 == c) d = a instanceof Array ? a : [a];
  24573. else if (1 < c) {
  24574. d = [];
  24575. for (var e = 0; e < c; e++) arguments[e] &&
  24576. d.push(arguments[e])
  24577. }
  24578. this.wN(d)
  24579. },
  24580. da: function() {
  24581. var a = this.yL;
  24582. a.lf || F.ua.addListener(a, this);
  24583. F.t.prototype.da.call(this)
  24584. },
  24585. Pe: function() {
  24586. var a = this.de;
  24587. return F.color(a.r, a.g, a.b, a.a)
  24588. },
  24589. Wa: function(a) {
  24590. var c = this.de;
  24591. c.r = a.r;
  24592. c.g = a.g;
  24593. c.b = a.b;
  24594. if ((c = this.u) && 0 < c.length)
  24595. for (var d = 0; d < c.length; d++) c[d].Wa(a);
  24596. a.a !== k && !a.os && this.va(a.a)
  24597. },
  24598. Qe: A("Sd"),
  24599. va: function(a) {
  24600. this.Sd = a;
  24601. var c = this.u;
  24602. if (c && 0 < c.length)
  24603. for (var d = 0; d < c.length; d++) c[d].va(a);
  24604. this.de.a = a
  24605. },
  24606. isEnabled: A("enabled"),
  24607. se: y("enabled"),
  24608. AN: function(a) {
  24609. var c = [];
  24610. if (a)
  24611. for (var d = 0; d < a.length; d++) a[d] && c.push(a[d]);
  24612. return this.wN(c)
  24613. },
  24614. wN: function(a) {
  24615. if (F.vf.prototype.M.call(this)) {
  24616. this.enabled = p;
  24617. var c = F.Gt;
  24618. this.G(c.width / 2, c.height / 2);
  24619. this.Zd(c);
  24620. this.Fi(0.5, 0.5);
  24621. this.jx(p);
  24622. if (a)
  24623. for (c = 0; c < a.length; c++) this.Q(a[c], c);
  24624. this.Uc = q;
  24625. this.th = F.iq;
  24626. return this.cascadeOpacity = this.cascadeColor = p
  24627. }
  24628. return r
  24629. },
  24630. Q: function(a, c, d) {
  24631. a instanceof F.Bc || b("cc.Menu.addChild() : Menu only supports MenuItem objects as children");
  24632. F.ve.prototype.Q.call(this, a, c, d)
  24633. },
  24634. Y8: function() {
  24635. this.RL(F.GG)
  24636. },
  24637. RL: function(a) {
  24638. var c = -a,
  24639. d = this.u,
  24640. e, f, g, h;
  24641. if (d && 0 < d.length) {
  24642. f = 0;
  24643. for (e = d.length; f < e; f++) c += d[f].height * d[f].scaleY + a;
  24644. var m = c / 2;
  24645. f = 0;
  24646. for (e = d.length; f < e; f++) h = d[f], g = h.height, c = h.scaleY, h.G(0, m - g * c / 2), m -= g * c + a
  24647. }
  24648. },
  24649. V8: function() {
  24650. this.JY(F.GG)
  24651. },
  24652. JY: function(a) {
  24653. var c = -a,
  24654. d = this.u,
  24655. e, f, g, h;
  24656. if (d && 0 < d.length) {
  24657. e = 0;
  24658. for (f = d.length; e < f; e++) c += d[e].width * d[e].scaleX + a;
  24659. var m = -c / 2;
  24660. e = 0;
  24661. for (f = d.length; e < f; e++) h = d[e], c = h.scaleX, g = d[e].width, h.G(m + g * c / 2, 0), m += g * c + a
  24662. }
  24663. },
  24664. W8: function() {
  24665. 0 < arguments.length && arguments[arguments.length -
  24666. 1] == q && F.log("parameters should not be ending with null in Javascript");
  24667. for (var a = [], c = 0; c < arguments.length; c++) a.push(arguments[c]);
  24668. var d = -5,
  24669. e = 0,
  24670. f = 0,
  24671. g = 0,
  24672. h, m, n, s = this.u;
  24673. if (s && 0 < s.length) {
  24674. c = 0;
  24675. for (n = s.length; c < n; c++)
  24676. if (!(e >= a.length) && (h = a[e])) m = s[c].height, f = f >= m || isNaN(m) ? f : m, ++g, g >= h && (d += f + 5, f = g = 0, ++e)
  24677. }
  24678. var u = F.I.T,
  24679. v = h = f = e = 0,
  24680. x = 0,
  24681. d = d / 2;
  24682. if (s && 0 < s.length) {
  24683. c = 0;
  24684. for (n = s.length; c < n; c++) {
  24685. var w = s[c];
  24686. 0 == h && (h = a[e], x = v = u.width / (1 + h));
  24687. m = w.rk();
  24688. f = f >= m || isNaN(m) ? f : m;
  24689. w.G(x - u.width / 2, d - m / 2);
  24690. x += v;
  24691. ++g;
  24692. g >= h && (d -= f +
  24693. 5, f = h = g = 0, ++e)
  24694. }
  24695. }
  24696. },
  24697. X8: function() {
  24698. 0 < arguments.length && arguments[arguments.length - 1] == q && F.log("parameters should not be ending with null in Javascript");
  24699. var a = [],
  24700. c;
  24701. for (c = 0; c < arguments.length; c++) a.push(arguments[c]);
  24702. var d = [],
  24703. e = [],
  24704. f = -10,
  24705. g = -5,
  24706. h = 0,
  24707. m = 0,
  24708. n = 0,
  24709. s, u, v, x, w = this.u;
  24710. if (w && 0 < w.length) {
  24711. c = 0;
  24712. for (v = w.length; c < v; c++)
  24713. if (u = w[c], !(h >= a.length) && (s = a[h])) x = u.width, m = m >= x || isNaN(x) ? m : x, g += u.height + 5, ++n, n >= s && (d.push(m), e.push(g), f += m + 10, m = n = 0, g = -5, ++h)
  24714. }
  24715. g = F.I.T;
  24716. s = m = h = 0;
  24717. var f = -f / 2,
  24718. z = 0;
  24719. if (w && 0 < w.length) {
  24720. c = 0;
  24721. for (v = w.length; c < v; c++) u = w[c], 0 == s && (s = a[h], z = e[h]), x = u.ah(), m = m >= x || isNaN(x) ? m : x, u.G(f + d[h] / 2, z - g.height / 2), z -= u.height + 10, ++n, n >= s && (f += m + 5, m = s = n = 0, ++h)
  24722. }
  24723. },
  24724. removeChild: function(a, c) {
  24725. a != q && (a instanceof F.Bc ? (this.Uc == a && (this.Uc = q), F.t.prototype.removeChild.call(this, a, c)) : F.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  24726. },
  24727. OW: function(a, c) {
  24728. var d = c.xd;
  24729. if (d.th != F.iq || !d.yc || !d.enabled) return r;
  24730. for (var e = d.parent; e != q; e = e.parent)
  24731. if (!e.yc) return r;
  24732. d.Uc = d.oK(a);
  24733. return d.Uc ?
  24734. (d.th = F.hq, d.Uc.selected(), p) : r
  24735. },
  24736. QW: function(a, c) {
  24737. var d = c.xd;
  24738. d.th !== F.hq ? F.log("cc.Menu.onTouchEnded(): invalid state") : (d.Uc && (d.Uc.Kh(), d.Uc.ps()), d.th = F.iq)
  24739. },
  24740. PW: function(a, c) {
  24741. var d = c.xd;
  24742. d.th !== F.hq ? F.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Uc && d.Uc.Kh(), d.th = F.iq)
  24743. },
  24744. SW: function(a, c) {
  24745. var d = c.xd;
  24746. if (d.th !== F.hq) F.log("cc.Menu.onTouchMoved(): invalid state");
  24747. else {
  24748. var e = d.oK(a);
  24749. e != d.Uc && (d.Uc && d.Uc.Kh(), d.Uc = e, d.Uc && d.Uc.selected())
  24750. }
  24751. },
  24752. Ab: function() {
  24753. this.th == F.hq && (this.Uc && (this.Uc.Kh(),
  24754. this.Uc = q), this.th = F.iq);
  24755. F.t.prototype.Ab.call(this)
  24756. },
  24757. Hd: t(),
  24758. re: E(r),
  24759. oK: function(a) {
  24760. a = a.Ds();
  24761. var c = this.u,
  24762. d;
  24763. if (c && 0 < c.length)
  24764. for (var e = 0; e < c.length; e++)
  24765. if (d = c[e], d.yc && d.isEnabled()) {
  24766. var f = d.iE(a),
  24767. g = d.rect();
  24768. g.x = 0;
  24769. g.y = 0;
  24770. if (F.qO(g, f)) return d
  24771. }
  24772. return q
  24773. }
  24774. });
  24775. M = F.Pj.prototype;
  24776. F.Pj.create = function(a) {
  24777. var c = arguments.length;
  24778. 0 < c && arguments[c - 1] == q && F.log("parameters should not be ending with null in Javascript");
  24779. return 0 == c ? new F.Pj : 1 == c ? new F.Pj(a) : new F.Pj(Array.prototype.slice.call(arguments, 0))
  24780. };
  24781. F.c7 = 0;
  24782. F.Y6 = 1;
  24783. F.b7 = 2;
  24784. F.Z6 = 3;
  24785. F.a7 = 4;
  24786. F.X6 = 5;
  24787. F.pka = function(a, c, d) {
  24788. var e = 2;
  24789. if (e + 1 > c) return r;
  24790. a = new F.$P(a);
  24791. a.ky(e);
  24792. d.type = a.R();
  24793. e += 10;
  24794. if (e + 4 + 1 > c) return r;
  24795. a.ky(e);
  24796. d.width = a.p2();
  24797. d.height = a.o2();
  24798. d.pixelDepth = a.R();
  24799. if (e + 5 + 1 > c) return r;
  24800. c = a.R();
  24801. d.HM = 0;
  24802. c & 32 && (d.HM = 1);
  24803. return p
  24804. };
  24805. F.qka = function(a, c, d) {
  24806. var e, f;
  24807. e = 0 | d.pixelDepth / 2;
  24808. f = d.height * d.width * e;
  24809. if (18 + f > c) return r;
  24810. d.sf = F.Hu(a, 18, 18 + f);
  24811. if (3 <= e)
  24812. for (a = 0; a < f; a += e) c = d.sf[a], d.sf[a] = d.sf[a + 2], d.sf[a + 2] = c;
  24813. return p
  24814. };
  24815. F.ska = function(a) {
  24816. var c, d;
  24817. if (8 !== a.pixelDepth) {
  24818. var e = a.pixelDepth / 8,
  24819. f = new Uint8Array(a.height * a.width);
  24820. if (f !== q) {
  24821. for (d = c = 0; d < a.width * a.height; c += e, d++) f[d] = 0.3 * a.sf[c] + 0.59 * a.sf[c + 1] + 0.11 * a.sf[c + 2];
  24822. a.pixelDepth = 8;
  24823. a.type = 3;
  24824. a.sf = f
  24825. }
  24826. }
  24827. };
  24828. F.nka = function(a) {
  24829. a && (a.sf = q)
  24830. };
  24831. F.rka = function(a, c, d) {
  24832. var e, f, g, h = 0,
  24833. m = 0,
  24834. n = 0,
  24835. s = [],
  24836. u = 0,
  24837. v = 18;
  24838. e = d.pixelDepth / 8;
  24839. f = d.height * d.width;
  24840. for (g = 0; g < f; g++) {
  24841. if (0 != u) u--, m = 0 != n;
  24842. else {
  24843. if (v + 1 > c) break;
  24844. u = a[v];
  24845. v += 1;
  24846. (n = u & 128) && (u -= 128);
  24847. m = 0
  24848. } if (!m) {
  24849. if (v + e > c) break;
  24850. s = F.Hu(a, v, v + e);
  24851. v += e;
  24852. 3 <= e && (m = s[0], s[0] = s[2], s[2] = m)
  24853. }
  24854. for (m = 0; m < e; m++) d.sf[h + m] = s[m];
  24855. h += e
  24856. }
  24857. return p
  24858. };
  24859. F.oka = function(a) {
  24860. for (var c = a.width * (a.pixelDepth / 8), d = 0; d < a.height / 2; d++) {
  24861. var e = F.Hu(a.sf, d * c, d * c + c);
  24862. F.EI(F.Hu(a.sf, (a.height - (d + 1)) * c, c), a.sf, d * c);
  24863. F.EI(e, a.sf, (a.height - (d + 1)) * c)
  24864. }
  24865. a.HM = 0
  24866. };
  24867. F.Hu = function(a, c, d) {
  24868. return a instanceof Array ? a.slice(c, d) : a.subarray(c, d)
  24869. };
  24870. F.EI = function(a, c, d) {
  24871. for (var e = 0; e < a.length; e++) c[d + e] = a[e]
  24872. };
  24873. F.$P = F.ma.extend({
  24874. mn: q,
  24875. la: 0,
  24876. ctor: y("mn"),
  24877. Sha: function(a) {
  24878. this.mn = a;
  24879. this.la = 0
  24880. },
  24881. paa: A("mn"),
  24882. MU: function(a) {
  24883. this.la + Math.ceil(a / 8) < this.Bn.length || b(Error("Index out of bound"))
  24884. },
  24885. aV: function(a, c) {
  24886. var d = a + c + 1,
  24887. e = d >> 3;
  24888. this.MU(d);
  24889. var d = Math.pow(2, c - 1) - 1,
  24890. f = this.vC(a + c, 1, e),
  24891. g = this.vC(a, c, e),
  24892. h = 0,
  24893. m = 2,
  24894. n = 0;
  24895. do
  24896. for (var s = this.Zv(++n, e), u = a % 8 || 8, v = 1 << u; v >>= 1;) s & v && (h += 1 / m), m *= 2; while (a -= u);
  24897. this.la += e;
  24898. return g == (d << 1) + 1 ? h ? NaN : f ? -Infinity : Infinity : (1 + -2 * f) * (g || h ? !g ? Math.pow(2, -d + 1) * h : Math.pow(2, g - d) * (1 + h) : 0)
  24899. },
  24900. Zv: function(a,
  24901. c) {
  24902. return this.Bn[this.la + c - a - 1]
  24903. },
  24904. cv: function(a, c) {
  24905. var d = this.vC(0, a, a / 8),
  24906. e = Math.pow(2, a);
  24907. this.la += a / 8;
  24908. return c && d >= e / 2 ? d - e : d
  24909. },
  24910. cY: function(a, c) {
  24911. for (++c; --c; a = 1073741824 == ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648);
  24912. return a
  24913. },
  24914. vC: function(a, c, d) {
  24915. var e = (a + c) % 8,
  24916. f = a % 8,
  24917. g = d - (a >> 3) - 1;
  24918. a = d + (-(a + c) >> 3);
  24919. var h = g - a;
  24920. c = this.Zv(g, d) >> f & (1 << (h ? 8 - f : c)) - 1;
  24921. for (h && e && (c += (this.Zv(a++, d) & (1 << e) - 1) << (h-- << 3) - f); h;) c += this.cY(this.Zv(a++, d), (h-- << 3) - f);
  24922. return c
  24923. },
  24924. Uga: function() {
  24925. return this.cv(32, p)
  24926. },
  24927. o2: function() {
  24928. return this.cv(32,
  24929. r)
  24930. },
  24931. Wga: function() {
  24932. return this.aV(23, 8)
  24933. },
  24934. Vga: function() {
  24935. return this.cv(16, p)
  24936. },
  24937. p2: function() {
  24938. return this.cv(16, r)
  24939. },
  24940. R: function() {
  24941. var a = this.Bn[this.la];
  24942. this.la += 1;
  24943. return a
  24944. },
  24945. Rga: function(a, c) {
  24946. return this.mn instanceof Array ? this.mn.slice(a, c) : this.mn.subarray(a, c)
  24947. },
  24948. ky: y("la"),
  24949. UM: A("la")
  24950. });
  24951. F.wu = 0;
  24952. F.uu = 1;
  24953. F.vu = 2;
  24954. F.Lz = F.ja.extend({
  24955. Lb: q,
  24956. rF: q,
  24957. ep: q,
  24958. $c: q,
  24959. Kb: q,
  24960. qj: q,
  24961. tb: "TMXTiledMap",
  24962. ctor: function(a, c) {
  24963. F.t.prototype.ctor.call(this);
  24964. this.$c = F.size(0, 0);
  24965. this.Kb = F.size(0, 0);
  24966. c !== k ? this.YE(a, c) : a !== k && this.XE(a)
  24967. },
  24968. EE: function() {
  24969. return F.size(this.$c.width, this.$c.height)
  24970. },
  24971. TO: function(a) {
  24972. this.$c.width = a.width;
  24973. this.$c.height = a.height
  24974. },
  24975. vB: function() {
  24976. return this.$c.width
  24977. },
  24978. PC: function(a) {
  24979. this.$c.width = a
  24980. },
  24981. uB: function() {
  24982. return this.$c.height
  24983. },
  24984. OC: function(a) {
  24985. this.$c.height = a
  24986. },
  24987. To: function() {
  24988. return F.size(this.Kb.width, this.Kb.height)
  24989. },
  24990. gP: function(a) {
  24991. this.Kb.width = a.width;
  24992. this.Kb.height = a.height
  24993. },
  24994. qr: function() {
  24995. return this.Kb.width
  24996. },
  24997. Rr: function(a) {
  24998. this.Kb.width = a
  24999. },
  25000. pr: function() {
  25001. return this.Kb.height
  25002. },
  25003. Qr: function(a) {
  25004. this.Kb.height = a
  25005. },
  25006. vba: A("rF"),
  25007. Gia: y("rF"),
  25008. TM: A("ep"),
  25009. UO: y("ep"),
  25010. Zw: A("Lb"),
  25011. ly: y("Lb"),
  25012. XE: function(a) {
  25013. (!a || 0 == a.length) && b("cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.");
  25014. this.height = this.width = 0;
  25015. a = F.zq.create(a);
  25016. if (!a) return r;
  25017. var c = a.bm;
  25018. (!c || 0 === c.length) && F.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  25019. this.QI(a);
  25020. return p
  25021. },
  25022. YE: function(a, c) {
  25023. this.height = this.width = 0;
  25024. var d = F.zq.create(a, c),
  25025. e = d.bm;
  25026. (!e || 0 === e.length) && F.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  25027. this.QI(d);
  25028. return p
  25029. },
  25030. QI: function(a) {
  25031. this.$c = a.EE();
  25032. this.Kb = a.To();
  25033. this.rF = a.orientation;
  25034. this.ep = a.TM();
  25035. this.Lb = a.Lb;
  25036. this.qj = a.qj;
  25037. var c = 0,
  25038. d = a.he;
  25039. if (d)
  25040. for (var e = q, f = 0, g = d.length; f < g; f++)
  25041. if ((e = d[f]) && e.visible) e = this.aX(e, a), this.Q(e, c, c), this.width = Math.max(this.width, e.width), this.height = Math.max(this.height,
  25042. e.height), c++
  25043. },
  25044. Z8: function() {
  25045. for (var a = [], c = this.u, d = 0, e = c.length; d < e; d++) {
  25046. var f = c[d];
  25047. f && f instanceof F.yq && a.push(f)
  25048. }
  25049. return a
  25050. },
  25051. lba: function(a) {
  25052. (!a || 0 === a.length) && b("cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.");
  25053. for (var c = this.u, d = 0; d < c.length; d++) {
  25054. var e = c[d];
  25055. if (e && e.Hx == a) return e
  25056. }
  25057. return q
  25058. },
  25059. Eba: function(a) {
  25060. (!a || 0 === a.length) && b("cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.");
  25061. if (this.ep)
  25062. for (var c = 0; c < this.ep.length; c++) {
  25063. var d =
  25064. this.ep[c];
  25065. if (d && d.Js == a) return d
  25066. }
  25067. return q
  25068. },
  25069. GE: function(a) {
  25070. return this.Lb[a.toString()]
  25071. },
  25072. Nga: function(a) {
  25073. return this.qj[a]
  25074. },
  25075. aX: function(a, c) {
  25076. var d = this.pY(a, c),
  25077. d = F.yq.create(d, a, c);
  25078. a.eO = r;
  25079. d.W3();
  25080. return d
  25081. },
  25082. pY: function(a, c) {
  25083. var d = a.ra,
  25084. e = c.bm;
  25085. if (e)
  25086. for (var f = e.length - 1; 0 <= f; f--) {
  25087. var g = e[f];
  25088. if (g)
  25089. for (var h = 0; h < d.height; h++)
  25090. for (var m = 0; m < d.width; m++) {
  25091. var n = a.Je[m + d.width * h];
  25092. if (0 != n && (n & F.Mz) >>> 0 >= g.um) return g
  25093. }
  25094. }
  25095. F.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles");
  25096. return q
  25097. }
  25098. });
  25099. M = F.Lz.prototype;
  25100. F.j(M, "mapWidth", M.vB, M.PC);
  25101. F.j(M, "mapHeight", M.uB, M.OC);
  25102. F.j(M, "tileWidth", M.qr, M.Rr);
  25103. F.j(M, "tileHeight", M.pr, M.Qr);
  25104. F.Lz.create = function(a, c) {
  25105. return new F.Lz(a, c)
  25106. };
  25107. F.mT = 0;
  25108. F.e7 = 1;
  25109. F.d7 = 2;
  25110. F.g7 = 3;
  25111. F.f7 = 4;
  25112. F.h7 = 5;
  25113. F.Aq = 2147483648;
  25114. F.Bq = 1073741824;
  25115. F.KH = 536870912;
  25116. F.LH = (F.Aq | F.Bq | F.KH) >>> 0;
  25117. F.Mz = ~F.LH >>> 0;
  25118. F.vl = F.ma.extend({
  25119. Lb: q,
  25120. name: "",
  25121. ra: q,
  25122. Je: q,
  25123. visible: q,
  25124. Sd: q,
  25125. eO: p,
  25126. Ml: 1E5,
  25127. Ll: 0,
  25128. offset: q,
  25129. ctor: function() {
  25130. this.Lb = [];
  25131. this.name = "";
  25132. this.ra = q;
  25133. this.Je = [];
  25134. this.visible = p;
  25135. this.Sd = 0;
  25136. this.eO = p;
  25137. this.Ml = 1E5;
  25138. this.Ll = 0;
  25139. this.offset = F.d(0, 0)
  25140. },
  25141. Zw: A("Lb"),
  25142. ly: y("Lb")
  25143. });
  25144. F.lT = F.ma.extend({
  25145. name: "",
  25146. um: 0,
  25147. Kb: q,
  25148. vt: 0,
  25149. margin: 0,
  25150. nP: "",
  25151. kx: q,
  25152. ctor: function() {
  25153. this.Kb = F.size(0, 0);
  25154. this.kx = F.size(0, 0)
  25155. },
  25156. it: function(a) {
  25157. var c = F.rect(0, 0, 0, 0);
  25158. c.width = this.Kb.width;
  25159. c.height = this.Kb.height;
  25160. a &= F.Mz;
  25161. a -= parseInt(this.um, 10);
  25162. var d = parseInt((this.kx.width - 2 * this.margin + this.vt) / (this.Kb.width + this.vt), 10);
  25163. c.x = parseInt(a % d * (this.Kb.width + this.vt) + this.margin, 10);
  25164. c.y = parseInt(parseInt(a / d, 10) * (this.Kb.height + this.vt) + this.margin, 10);
  25165. return c
  25166. }
  25167. });
  25168. F.zq = F.pu.extend({
  25169. Lb: q,
  25170. orientation: q,
  25171. parentElement: q,
  25172. Vx: q,
  25173. Gx: 0,
  25174. iG: r,
  25175. Ap: q,
  25176. jE: q,
  25177. Ov: q,
  25178. $c: q,
  25179. Kb: q,
  25180. he: q,
  25181. bm: q,
  25182. qj: q,
  25183. bw: "",
  25184. ZI: 0,
  25185. ctor: function(a, c) {
  25186. F.pu.prototype.ctor.apply(this);
  25187. this.$c = F.size(0, 0);
  25188. this.Kb = F.size(0, 0);
  25189. this.he = [];
  25190. this.bm = [];
  25191. this.Ov = [];
  25192. this.Lb = [];
  25193. this.qj = {};
  25194. this.ZI = 0;
  25195. c !== k ? this.YE(a, c) : a !== k && this.XE(a)
  25196. },
  25197. Kba: A("orientation"),
  25198. Qia: y("orientation"),
  25199. EE: function() {
  25200. return F.size(this.$c.width, this.$c.height)
  25201. },
  25202. TO: function(a) {
  25203. this.$c.width = a.width;
  25204. this.$c.height = a.height
  25205. },
  25206. vB: function() {
  25207. return this.$c.width
  25208. },
  25209. PC: function(a) {
  25210. this.$c.width = a
  25211. },
  25212. uB: function() {
  25213. return this.$c.height
  25214. },
  25215. OC: function(a) {
  25216. this.$c.height = a
  25217. },
  25218. To: function() {
  25219. return F.size(this.Kb.width, this.Kb.height)
  25220. },
  25221. gP: function(a) {
  25222. this.Kb.width = a.width;
  25223. this.Kb.height = a.height
  25224. },
  25225. qr: function() {
  25226. return this.Kb.width
  25227. },
  25228. Rr: function(a) {
  25229. this.Kb.width = a
  25230. },
  25231. pr: function() {
  25232. return this.Kb.height
  25233. },
  25234. Qr: function(a) {
  25235. this.Kb.height = a
  25236. },
  25237. qba: A("he"),
  25238. k3: function(a) {
  25239. this.he.push(a)
  25240. },
  25241. Cca: A("bm"),
  25242. J3: function(a) {
  25243. this.bm.push(a)
  25244. },
  25245. TM: A("Ov"),
  25246. UO: function(a) {
  25247. this.Ov.push(a)
  25248. },
  25249. Pba: A("parentElement"),
  25250. Via: y("parentElement"),
  25251. Qba: A("Vx"),
  25252. Wia: y("Vx"),
  25253. mba: A("Gx"),
  25254. zia: y("Gx"),
  25255. sca: A("iG"),
  25256. mja: y("iG"),
  25257. Zw: A("Lb"),
  25258. ly: y("Lb"),
  25259. XE: function(a) {
  25260. this.gK(a, q);
  25261. return this.xF(a)
  25262. },
  25263. YE: function(a, c) {
  25264. this.gK(q, c);
  25265. return this.W1(a)
  25266. },
  25267. xF: function(a, c) {
  25268. var d = (c = c || r) ? a : F.V.Dd(a);
  25269. d || b("Please load the resource first : " + a);
  25270. var e, f, d = this.cC(d).documentElement;
  25271. e = d.getAttribute("version");
  25272. f = d.getAttribute("orientation");
  25273. if ("map" == d.nodeName && ("1.0" != e && e !== q && F.log("cocos2d: TMXFormat: Unsupported TMX version:" + e), "orthogonal" ==
  25274. f ? this.orientation = F.wu : "isometric" == f ? this.orientation = F.vu : "hexagonal" == f ? this.orientation = F.uu : f !== q && F.log("cocos2d: TMXFomat: Unsupported orientation:" + f), e = F.size(0, 0), e.width = parseFloat(d.getAttribute("width")), e.height = parseFloat(d.getAttribute("height")), this.TO(e), e = F.size(0, 0), e.width = parseFloat(d.getAttribute("tilewidth")), e.height = parseFloat(d.getAttribute("tileheight")), this.gP(e), f = d.querySelectorAll("map \x3e properties \x3e property"))) {
  25275. var g = {};
  25276. for (e = 0; e < f.length; e++) g[f[e].getAttribute("name")] =
  25277. f[e].getAttribute("value");
  25278. this.Lb = g
  25279. }
  25280. g = d.getElementsByTagName("tileset");
  25281. "map" !== d.nodeName && (g = [], g.push(d));
  25282. for (e = 0; e < g.length; e++) {
  25283. f = g[e];
  25284. var h = f.getAttribute("source");
  25285. if (h) f = c ? F.path.join(this.bw, h) : F.path.Co(a, h), this.xF(f);
  25286. else {
  25287. h = new F.lT;
  25288. h.name = f.getAttribute("name") || "";
  25289. h.um = parseInt(f.getAttribute("firstgid")) || 0;
  25290. h.vt = parseInt(f.getAttribute("spacing")) || 0;
  25291. h.margin = parseInt(f.getAttribute("margin")) || 0;
  25292. var m = F.size(0, 0);
  25293. m.width = parseFloat(f.getAttribute("tilewidth"));
  25294. m.height = parseFloat(f.getAttribute("tileheight"));
  25295. h.Kb = m;
  25296. var m = f.getElementsByTagName("image")[0].getAttribute("source"),
  25297. n = -1;
  25298. this.Ap && (n = this.Ap.lastIndexOf("/"));
  25299. h.nP = -1 !== n ? this.Ap.substr(0, n + 1) + m : this.bw + (this.bw ? "/" : "") + m;
  25300. this.J3(h);
  25301. if (m = f.getElementsByTagName("tile"))
  25302. for (n = 0; n < m.length; n++) {
  25303. f = m[n];
  25304. this.Vx = parseInt(h.um) + parseInt(f.getAttribute("id") || 0);
  25305. var s = f.querySelectorAll("properties \x3e property");
  25306. if (s) {
  25307. var u = {};
  25308. for (f = 0; f < s.length; f++) {
  25309. var v = s[f].getAttribute("name");
  25310. u[v] = s[f].getAttribute("value")
  25311. }
  25312. this.qj[this.Vx] = u
  25313. }
  25314. }
  25315. }
  25316. }
  25317. if (g = d.getElementsByTagName("layer"))
  25318. for (e =
  25319. 0; e < g.length; e++) {
  25320. m = g[e];
  25321. n = m.getElementsByTagName("data")[0];
  25322. h = new F.vl;
  25323. h.name = m.getAttribute("name");
  25324. f = F.size(0, 0);
  25325. f.width = parseFloat(m.getAttribute("width"));
  25326. f.height = parseFloat(m.getAttribute("height"));
  25327. h.ra = f;
  25328. f = m.getAttribute("visible");
  25329. h.visible = "0" != f;
  25330. f = m.getAttribute("opacity") || 1;
  25331. h.Sd = f ? parseInt(255 * parseFloat(f)) : 255;
  25332. h.offset = F.d(parseFloat(m.getAttribute("x")) || 0, parseFloat(m.getAttribute("y")) || 0);
  25333. s = "";
  25334. for (f = 0; f < n.childNodes.length; f++) s += n.childNodes[f].nodeValue;
  25335. s = s.trim();
  25336. f = n.getAttribute("compression");
  25337. u = n.getAttribute("encoding");
  25338. if (f && "gzip" !== f && "zlib" !== f) return F.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), q;
  25339. switch (f) {
  25340. case "gzip":
  25341. h.Je = F.EP(s, 4);
  25342. break;
  25343. case "zlib":
  25344. f = new Zlib.$m(F.ka.jl.nM(s, 1));
  25345. h.Je = F.y4(f.oM());
  25346. break;
  25347. case q:
  25348. case "":
  25349. if ("base64" == u) h.Je = F.ka.jl.nM(s, 4);
  25350. else if ("csv" === u) {
  25351. h.Je = [];
  25352. f = s.split(",");
  25353. for (n = 0; n < f.length; n++) h.Je.push(parseInt(f[n]))
  25354. } else {
  25355. f = n.getElementsByTagName("tile");
  25356. h.Je = [];
  25357. for (n = 0; n < f.length; n++) h.Je.push(parseInt(f[n].getAttribute("gid")))
  25358. }
  25359. break;
  25360. default:
  25361. this.Gx == F.vl.rG && F.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  25362. }
  25363. if (m = m.querySelectorAll("properties \x3e property")) {
  25364. n = {};
  25365. for (f = 0; f < m.length; f++) n[m[f].getAttribute("name")] = m[f].getAttribute("value");
  25366. h.Lb = n
  25367. }
  25368. this.k3(h)
  25369. }
  25370. if (g = d.getElementsByTagName("objectgroup"))
  25371. for (e = 0; e < g.length; e++) {
  25372. m = g[e];
  25373. h = new F.kT;
  25374. h.Js = m.getAttribute("name");
  25375. h.v3(F.d(parseFloat(m.getAttribute("x")) * this.To().width || 0, parseFloat(m.getAttribute("y")) * this.To().height || 0));
  25376. if (n = m.querySelectorAll("objectgroup \x3e properties \x3e property"))
  25377. for (f =
  25378. 0; f < n.length; f++) s = {}, s[n[f].getAttribute("name")] = n[f].getAttribute("value"), h.Lb = s;
  25379. if (m = m.querySelectorAll("object"))
  25380. for (f = 0; f < m.length; f++) {
  25381. s = m[f];
  25382. n = {};
  25383. n.name = s.getAttribute("name") || "";
  25384. n.type = s.getAttribute("type") || "";
  25385. n.x = parseInt(s.getAttribute("x") || 0) + h.eo.x;
  25386. u = parseInt(s.getAttribute("y") || 0) + h.eo.y;
  25387. n.width = parseInt(s.getAttribute("width")) || 0;
  25388. n.height = parseInt(s.getAttribute("height")) || 0;
  25389. n.y = parseInt(this.EE().height * this.To().height) - u - n.height;
  25390. if (u = s.querySelectorAll("properties \x3e property"))
  25391. for (v =
  25392. 0; v < u.length; v++) n[u[v].getAttribute("name")] = u[v].getAttribute("value");
  25393. if ((u = s.querySelectorAll("polygon")) && 0 < u.length)(u = u[0].getAttribute("points")) && (n.polygonPoints = this.EK(u));
  25394. if ((s = s.querySelectorAll("polyline")) && 0 < s.length)(s = s[0].getAttribute("points")) && (n.polylinePoints = this.EK(s));
  25395. h.q3(n)
  25396. }
  25397. this.UO(h)
  25398. }
  25399. return d
  25400. },
  25401. EK: function(a) {
  25402. if (!a) return q;
  25403. var c = [];
  25404. a = a.split(" ");
  25405. for (var d = 0; d < a.length; d++) {
  25406. var e = a[d].split(",");
  25407. c.push({
  25408. x: e[0],
  25409. y: e[1]
  25410. })
  25411. }
  25412. return c
  25413. },
  25414. W1: function(a) {
  25415. return this.xF(a, p)
  25416. },
  25417. zca: A("qj"),
  25418. uja: function(a) {
  25419. this.qj.push(a)
  25420. },
  25421. Faa: A("jE"),
  25422. eia: y("jE"),
  25423. uca: A("Ap"),
  25424. pja: y("Ap"),
  25425. gK: function(a, c) {
  25426. this.bm.length = 0;
  25427. this.he.length = 0;
  25428. this.Ap = a;
  25429. c && (this.bw = c);
  25430. this.Ov.length = 0;
  25431. this.Lb.length = 0;
  25432. this.qj.length = 0;
  25433. this.jE = "";
  25434. this.iG = r;
  25435. this.Gx = F.vl.rG;
  25436. this.parentElement = F.mT;
  25437. this.ZI = 0
  25438. }
  25439. });
  25440. M = F.zq.prototype;
  25441. F.j(M, "mapWidth", M.vB, M.PC);
  25442. F.j(M, "mapHeight", M.uB, M.OC);
  25443. F.j(M, "tileWidth", M.qr, M.Rr);
  25444. F.j(M, "tileHeight", M.pr, M.Qr);
  25445. F.zq.create = function(a, c) {
  25446. return new F.zq(a, c)
  25447. };
  25448. F.V.Hj(["tmx", "tsx"], F.CL);
  25449. F.vl.rG = 1;
  25450. F.vl.a5 = 2;
  25451. F.vl.b5 = 4;
  25452. F.vl.c5 = 8;
  25453. F.kT = F.ma.extend({
  25454. Lb: q,
  25455. Js: "",
  25456. eo: q,
  25457. co: q,
  25458. ctor: function() {
  25459. this.Js = "";
  25460. this.eo = F.d(0, 0);
  25461. this.Lb = [];
  25462. this.co = []
  25463. },
  25464. Uba: A("eo"),
  25465. v3: function(a) {
  25466. this.eo.x = a.x;
  25467. this.eo.y = a.y
  25468. },
  25469. Zw: A("Lb"),
  25470. ly: function(a) {
  25471. this.Lb.push(a)
  25472. },
  25473. gba: function() {
  25474. return this.Js.toString()
  25475. },
  25476. wia: y("Js"),
  25477. Oga: function(a) {
  25478. return this.Lb[a]
  25479. },
  25480. bga: function(a) {
  25481. if (this.co && 0 < this.co.length)
  25482. for (var c = this.co, d = 0, e = c.length; d < e; d++) {
  25483. var f = c[d].name;
  25484. if (f && f == a) return c[d]
  25485. }
  25486. return q
  25487. },
  25488. Fba: A("co"),
  25489. q3: function(a) {
  25490. this.co.push(a)
  25491. }
  25492. });
  25493. F.yq = F.yf.extend({
  25494. Kd: q,
  25495. gg: q,
  25496. ap: q,
  25497. Lb: q,
  25498. Hx: "",
  25499. ra: q,
  25500. vc: q,
  25501. Sd: 255,
  25502. Ml: q,
  25503. Ll: q,
  25504. FD: q,
  25505. zD: q,
  25506. D7: q,
  25507. mh: q,
  25508. Nd: q,
  25509. Zg: q,
  25510. ae: q,
  25511. Ae: q,
  25512. IA: q,
  25513. ow: q,
  25514. pw: q,
  25515. Ik: 0,
  25516. lD: 0,
  25517. yK: 1E7,
  25518. tb: "TMXLayer",
  25519. ctor: function(a, c, d) {
  25520. F.yf.prototype.ctor.call(this);
  25521. this.yd = [];
  25522. this.ra = F.size(0, 0);
  25523. this.vc = F.size(0, 0);
  25524. if (F.B === F.Ca) {
  25525. var e = F.Za,
  25526. f = F.Nb("canvas");
  25527. f.width = e.width;
  25528. f.height = e.height;
  25529. this.ae = f;
  25530. this.Ae = this.ae.getContext("2d");
  25531. var g = new F.ea;
  25532. g.Ed(f);
  25533. g.Wb();
  25534. this.IA = g;
  25535. this.width = e.width;
  25536. this.height = e.height;
  25537. this.Si = this
  25538. }
  25539. d !== k && this.I0(a, c, d)
  25540. },
  25541. Zd: function(a,
  25542. c) {
  25543. var d = this.P;
  25544. F.t.prototype.Zd.call(this, a, c);
  25545. if (F.B === F.Ca) {
  25546. var e = this.ae,
  25547. f = F.rb();
  25548. e.width = 0 | 1.5 * d.width * f;
  25549. e.height = 0 | 1.5 * d.height * f;
  25550. this.Ae.translate(0, e.height);
  25551. d = this.IA.P;
  25552. d.width = e.width;
  25553. d.height = e.height;
  25554. d = e.width * e.height;
  25555. if (d > this.yK) {
  25556. this.ow || (this.ow = []);
  25557. this.pw || (this.pw = []);
  25558. this.Ik = Math.ceil(d / this.yK);
  25559. d = this.ow;
  25560. for (f = 0; f < this.Ik; f++) {
  25561. d[f] || (d[f] = document.createElement("canvas"), this.pw[f] = d[f].getContext("2d"));
  25562. var g = d[f];
  25563. g.width = this.lD = Math.round(e.width / this.Ik);
  25564. g.height = e.height
  25565. }
  25566. for (f =
  25567. this.Ik; f < d.length; f++) g.width = 0, g.height = 0
  25568. } else this.Ik = 0
  25569. }
  25570. },
  25571. Oa: q,
  25572. or: A("IA"),
  25573. S: q,
  25574. gm: function(a) {
  25575. var c = a || F.m;
  25576. if (this.yc) {
  25577. c.save();
  25578. this.transform(a);
  25579. var d, e = this.u;
  25580. if (this.sg) {
  25581. var f = F.view;
  25582. f.jL();
  25583. var g = this.Ae,
  25584. h = this.ae;
  25585. g.clearRect(0, 0, h.width, -h.height);
  25586. g.save();
  25587. g.translate(this.eb.x, -this.eb.y);
  25588. if (e) {
  25589. this.Wc();
  25590. for (d = 0; d < e.length; d++) e[d] && e[d].S(g)
  25591. }
  25592. g.restore();
  25593. if (0 < this.Ik) {
  25594. e = this.lD;
  25595. g = h.height;
  25596. for (d = 0; d < this.Ik; d++) this.pw[d].drawImage(h, d * e, 0, e, g, 0, 0, e, g)
  25597. }
  25598. f.XK();
  25599. this.sg = r
  25600. }
  25601. this.Y(a);
  25602. c.restore()
  25603. }
  25604. },
  25605. Y: q,
  25606. Dl: function(a) {
  25607. a = a || F.m;
  25608. var c = 0 | -this.eb.x,
  25609. d = 0 | -this.eb.y,
  25610. e = F.view,
  25611. f = this.ae;
  25612. if (f) {
  25613. var g = this.Ik,
  25614. h = f.height * e.Ra;
  25615. if (0 < g)
  25616. for (var f = this.ow, m = 0; m < g; m++) {
  25617. var n = f[m];
  25618. a.drawImage(f[m], 0, 0, n.width, n.height, c + m * this.lD, -(d + h), n.width * e.qa, h)
  25619. } else a.drawImage(f, 0, 0, f.width, f.height, c, -(d + h), f.width * e.qa, h)
  25620. }
  25621. },
  25622. pba: function() {
  25623. return F.size(this.ra.width, this.ra.height)
  25624. },
  25625. Cia: function(a) {
  25626. this.ra.width = a.width;
  25627. this.ra.height = a.height
  25628. },
  25629. IV: function() {
  25630. return this.ra.width
  25631. },
  25632. GX: function(a) {
  25633. this.ra.width = a
  25634. },
  25635. HV: function() {
  25636. return this.ra.height
  25637. },
  25638. FX: function(a) {
  25639. this.ra.height = a
  25640. },
  25641. wba: function() {
  25642. return F.size(this.vc.width, this.vc.height)
  25643. },
  25644. Hia: function(a) {
  25645. this.vc.width = a.width;
  25646. this.vc.height = a.height
  25647. },
  25648. qr: function() {
  25649. return this.vc.width
  25650. },
  25651. Rr: function(a) {
  25652. this.vc.width = a
  25653. },
  25654. pr: function() {
  25655. return this.vc.height
  25656. },
  25657. Qr: function(a) {
  25658. this.vc.height = a
  25659. },
  25660. Aca: A("Kd"),
  25661. vja: y("Kd"),
  25662. Bca: A("gg"),
  25663. wja: y("gg"),
  25664. oba: A("ap"),
  25665. Bia: y("ap"),
  25666. Zw: A("Lb"),
  25667. ly: y("Lb"),
  25668. I0: function(a, c, d) {
  25669. var e = c.ra,
  25670. f = 0.35 * parseInt(e.width * e.height) + 1,
  25671. g;
  25672. a && (g = F.Fa.Hc(a.nP));
  25673. return this.sa(g, f) ? (this.Hx =
  25674. c.name, this.ra = e, this.Kd = c.Je, this.Ml = c.Ml, this.Ll = c.Ll, this.Sd = c.Sd, this.Lb = c.Lb, this.Zg = F.I.Zg, this.gg = a, this.vc = d.To(), this.ap = d.orientation, a = this.EU(c.offset), this.G(F.zF(a)), this.Nd = [], this.Zd(F.mP(F.size(this.ra.width * this.vc.width, this.ra.height * this.vc.height))), this.zD = r, this.FD = 0, p) : r
  25675. },
  25676. dha: function() {
  25677. this.Kd && (this.Kd = q);
  25678. this.Nd && (this.Nd = q)
  25679. },
  25680. yca: function(a, c) {
  25681. a || b("cc.TMXLayer.getTileAt(): pos should be non-null");
  25682. c !== k && (a = F.d(a, c));
  25683. (a.x >= this.ra.width || a.y >= this.ra.height || 0 > a.x || 0 >
  25684. a.y) && b("cc.TMXLayer.getTileAt(): invalid position");
  25685. if (!this.Kd || !this.Nd) return F.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), q;
  25686. var d = q,
  25687. e = this.KE(a);
  25688. if (0 === e) return d;
  25689. var f = 0 | a.x + a.y * this.ra.width,
  25690. d = this.Bh(f);
  25691. d || (e = this.gg.it(e), e = F.Gj(e), d = new F.aa, d.sa(this.texture, e), d.batchNode = this, d.G(this.Yw(a)), d.vertexZ = this.ML(a), d.anchorX = 0, d.anchorY = 0, d.opacity = this.Sd, e = this.yA(f), this.GY(d, e, f));
  25692. return d
  25693. },
  25694. KE: function(a, c) {
  25695. a || b("cc.TMXLayer.getTileGIDAt(): pos should be non-null");
  25696. c !== k && (a = F.d(a, c));
  25697. (a.x >= this.ra.width || a.y >= this.ra.height || 0 > a.x || 0 > a.y) && b("cc.TMXLayer.getTileGIDAt(): invalid position");
  25698. return !this.Kd || !this.Nd ? (F.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), q) : (this.Kd[0 | a.x + a.y * this.ra.width] & F.Mz) >>> 0
  25699. },
  25700. i0: function(a, c) {
  25701. a || b("cc.TMXLayer.getTileFlagsAt(): pos should be non-null");
  25702. c !== k && (a = F.d(a, c));
  25703. (a.x >= this.ra.width || a.y >= this.ra.height || 0 > a.x || 0 > a.y) && b("cc.TMXLayer.getTileFlagsAt(): invalid position");
  25704. return !this.Kd ||
  25705. !this.Nd ? (F.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), q) : (this.Kd[0 | a.x + a.y * this.ra.width] & F.LH) >>> 0
  25706. },
  25707. tja: function(a, c, d, e) {
  25708. c || b("cc.TMXLayer.setTileGID(): pos should be non-null");
  25709. e !== k ? c = F.d(c, d) : e = d;
  25710. (c.x >= this.ra.width || c.y >= this.ra.height || 0 > c.x || 0 > c.y) && b("cc.TMXLayer.setTileGID(): invalid position");
  25711. if (!this.Kd || !this.Nd) F.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released");
  25712. else if (0 !== a && a < this.gg.um) F.log("cc.TMXLayer.setTileGID(): invalid gid:" +
  25713. a);
  25714. else {
  25715. e = e || 0;
  25716. this.oh();
  25717. d = this.i0(c);
  25718. var f = this.KE(c);
  25719. if (f != a || d != e)
  25720. if (d = (a | e) >>> 0, 0 === a) this.z2(c);
  25721. else if (0 === f) this.rW(d, c);
  25722. else {
  25723. var f = c.x + c.y * this.ra.width,
  25724. g = this.Bh(f);
  25725. g ? (a = this.gg.it(a), a = F.Gj(a), g.vb(a, r), e != q && this.hw(g, c, d), this.Kd[f] = d) : this.BY(d, c)
  25726. }
  25727. }
  25728. },
  25729. z2: function(a, c) {
  25730. a || b("cc.TMXLayer.removeTileAt(): pos should be non-null");
  25731. c !== k && (a = F.d(a, c));
  25732. (a.x >= this.ra.width || a.y >= this.ra.height || 0 > a.x || 0 > a.y) && b("cc.TMXLayer.removeTileAt(): invalid position");
  25733. if (!this.Kd || !this.Nd) F.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  25734. else if (0 !== this.KE(a)) {
  25735. F.B === F.Ca && this.oh();
  25736. var d = 0 | a.x + a.y * this.ra.width,
  25737. e = this.yA(d);
  25738. this.Kd[d] = 0;
  25739. this.Nd.splice(e, 1);
  25740. if (d = this.Bh(d)) F.yf.prototype.removeChild.call(this, d, p);
  25741. else if (F.B === F.$ && this.textureAtlas.wO(e), this.u)
  25742. for (var d = this.u, f = 0, g = d.length; f < g; f++) {
  25743. var h = d[f];
  25744. if (h) {
  25745. var m = h.atlasIndex;
  25746. m >= e && (h.atlasIndex = m - 1)
  25747. }
  25748. }
  25749. }
  25750. },
  25751. Yw: function(a, c) {
  25752. c !== k && (a = F.d(a, c));
  25753. var d = F.d(0, 0);
  25754. switch (this.ap) {
  25755. case F.wu:
  25756. d = this.gX(a);
  25757. break;
  25758. case F.vu:
  25759. d = this.fX(a);
  25760. break;
  25761. case F.uu:
  25762. d = this.eX(a)
  25763. }
  25764. return F.zF(d)
  25765. },
  25766. GE: function(a) {
  25767. return this.Lb[a]
  25768. },
  25769. W3: function() {
  25770. F.B === F.Ca ? this.gg.kx = this.ie.P : (this.gg.kx = this.textureAtlas.texture.P, this.textureAtlas.texture.LF());
  25771. this.$W();
  25772. F.B === F.Ca && this.oh();
  25773. for (var a = this.ra.height, c = this.ra.width, d = 0; d < a; d++)
  25774. for (var e = 0; e < c; e++) {
  25775. var f = this.Kd[e + c * d];
  25776. 0 !== f && (this.wU(f, F.d(e, d)), this.Ml = Math.min(f, this.Ml), this.Ll = Math.max(f, this.Ll))
  25777. }
  25778. this.Ll >= this.gg.um && this.Ml >= this.gg.um || F.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  25779. },
  25780. Q: function() {
  25781. F.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  25782. },
  25783. removeChild: function(a, c) {
  25784. if (a)
  25785. if (-1 === this.u.indexOf(a)) F.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  25786. else {
  25787. F.B === F.Ca && this.oh();
  25788. var d = a.atlasIndex;
  25789. this.Kd[this.Nd[d]] = 0;
  25790. this.Nd.splice(d, 1);
  25791. F.yf.prototype.removeChild.call(this, a, c)
  25792. }
  25793. },
  25794. nba: A("Hx"),
  25795. Aia: y("Hx"),
  25796. fX: function(a) {
  25797. return F.d(this.vc.width / 2 * (this.ra.width + a.x - a.y - 1), this.vc.height / 2 * (2 * this.ra.height - a.x - a.y - 2))
  25798. },
  25799. gX: function(a) {
  25800. return F.d(a.x * this.vc.width, (this.ra.height - a.y - 1) * this.vc.height)
  25801. },
  25802. eX: function(a) {
  25803. return F.d(3 *
  25804. a.x * this.vc.width / 4, (this.ra.height - a.y - 1) * this.vc.height + (1 == a.x % 2 ? -this.vc.height / 2 : 0))
  25805. },
  25806. EU: function(a) {
  25807. var c = F.d(0, 0);
  25808. switch (this.ap) {
  25809. case F.wu:
  25810. c = F.d(a.x * this.vc.width, -a.y * this.vc.height);
  25811. break;
  25812. case F.vu:
  25813. c = F.d(this.vc.width / 2 * (a.x - a.y), this.vc.height / 2 * (-a.x - a.y));
  25814. break;
  25815. case F.uu:
  25816. (0 !== a.x || 0 !== a.y) && F.log("offset for hexagonal map not implemented yet")
  25817. }
  25818. return c
  25819. },
  25820. wU: function(a, c) {
  25821. var d = this.gg.it(a),
  25822. d = F.Gj(d),
  25823. e = 0 | c.x + c.y * this.ra.width,
  25824. d = this.DC(d);
  25825. this.hw(d, c, a);
  25826. var f = this.Nd.length;
  25827. this.rx(d,
  25828. f);
  25829. this.Nd.splice(f, 0, e);
  25830. return d
  25831. },
  25832. rW: function(a, c) {
  25833. var d = this.gg.it(a),
  25834. d = F.Gj(d),
  25835. e = 0 | c.x + c.y * this.ra.width,
  25836. d = this.DC(d);
  25837. this.hw(d, c, a);
  25838. var f = this.yU(e);
  25839. this.rx(d, f);
  25840. this.Nd.splice(f, 0, e);
  25841. if (this.u)
  25842. for (var g = this.u, h = 0, m = g.length; h < m; h++) {
  25843. var n = g[h];
  25844. if (n) {
  25845. var s = n.atlasIndex;
  25846. s >= f && (n.atlasIndex = s + 1)
  25847. }
  25848. }
  25849. this.Kd[e] = a;
  25850. return d
  25851. },
  25852. BY: function(a, c) {
  25853. var d = this.gg.it(a),
  25854. e = this.Zg,
  25855. d = F.rect(d.x / e, d.y / e, d.width / e, d.height / e),
  25856. e = c.x + c.y * this.ra.width,
  25857. d = this.DC(d);
  25858. this.hw(d, c, a);
  25859. d.atlasIndex = this.yA(e);
  25860. d.dirty = p;
  25861. d.$e();
  25862. this.Kd[e] = a;
  25863. return d
  25864. },
  25865. $W: function() {
  25866. var a = this.GE("cc_vertexz");
  25867. if (a)
  25868. if ("automatic" == a) {
  25869. this.zD = p;
  25870. var c = this.GE("cc_alpha_func"),
  25871. a = 0;
  25872. c && (a = parseFloat(c));
  25873. F.B === F.$ && (this.shaderProgram = F.Jd.oc(F.ru), c = F.m.getUniformLocation(this.shaderProgram.ym(), F.tI), this.shaderProgram.Nc(), this.shaderProgram.st(c, a))
  25874. } else this.FD = parseInt(a, 10)
  25875. },
  25876. hw: function(a, c, d) {
  25877. var e = c.x + c.y * this.ra.width;
  25878. a.G(this.Yw(c));
  25879. F.B === F.$ ? a.vertexZ = this.ML(c) : a.tag = e;
  25880. a.anchorX = 0;
  25881. a.anchorY = 0;
  25882. a.opacity = this.Sd;
  25883. F.B === F.$ && (a.rotation =
  25884. 0);
  25885. a.fy(r);
  25886. a.QF(r);
  25887. (d & F.KH) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.Yw(c).x + a.width / 2, a.y = this.Yw(c).y + a.height / 2, c = (d & (F.Aq | F.Bq) >>> 0) >>> 0, c == F.Aq ? a.rotation = 90 : c == F.Bq ? a.rotation = 270 : (a.rotation = c == (F.Bq | F.Aq) >>> 0 ? 90 : 270, a.fy(p))) : ((d & F.Aq) >>> 0 && a.fy(p), (d & F.Bq) >>> 0 && a.QF(p))
  25888. },
  25889. DC: function(a) {
  25890. F.B === F.$ ? (this.mh ? (this.mh.batchNode = q, this.mh.vb(a, r)) : (this.mh = new F.aa, this.mh.sa(this.texture, a, r)), this.mh.batchNode = this) : (this.mh = new F.aa, this.mh.sa(this.Kk, a, r), this.mh.batchNode = this, this.mh.parent =
  25891. this);
  25892. return this.mh
  25893. },
  25894. ML: function(a) {
  25895. var c = 0,
  25896. d = 0;
  25897. if (this.zD) switch (this.ap) {
  25898. case F.vu:
  25899. d = this.ra.width + this.ra.height;
  25900. c = -(d - (a.x + a.y));
  25901. break;
  25902. case F.wu:
  25903. c = -(this.ra.height - a.y);
  25904. break;
  25905. case F.uu:
  25906. F.log("TMX Hexa zOrder not supported");
  25907. break;
  25908. default:
  25909. F.log("TMX invalid value")
  25910. } else c = this.FD;
  25911. return c
  25912. },
  25913. yA: function(a) {
  25914. var c;
  25915. if (this.Nd)
  25916. for (var d = this.Nd, e = 0, f = d.length; e < f && !(c = d[e], c == a); e++);
  25917. "number" != typeof c && F.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  25918. return e
  25919. },
  25920. yU: function(a) {
  25921. for (var c = this.Nd, d = 0, e = c.length; d < e && !(a < c[d]); d++);
  25922. return d
  25923. }
  25924. });
  25925. M = F.yq.prototype;
  25926. F.B == F.$ ? (M.Y = F.yf.prototype.Y, M.S = F.yf.prototype.S, M.Oa = F.yf.prototype.Oa) : (M.Y = M.Dl, M.S = M.gm, M.Oa = M.or);
  25927. F.j(M, "texture", M.Oa, M.pb);
  25928. F.j(M, "layerWidth", M.IV, M.GX);
  25929. F.j(M, "layerHeight", M.HV, M.FX);
  25930. F.j(M, "tileWidth", M.qr, M.Rr);
  25931. F.j(M, "tileHeight", M.pr, M.Qr);
  25932. F.yq.create = function(a, c, d) {
  25933. return new F.yq(a, c, d)
  25934. };
  25935. F.nz = F.ma.extend({
  25936. Mr: q,
  25937. la: q,
  25938. Vq: q,
  25939. bca: A("Mr"),
  25940. cja: y("Mr"),
  25941. UM: A("la"),
  25942. ky: y("la"),
  25943. xaa: A("Vq"),
  25944. V2: y("Vq"),
  25945. y0: function(a, c) {
  25946. this.Mr = a;
  25947. this.la = c;
  25948. this.Vq = q;
  25949. return p
  25950. }
  25951. });
  25952. F.nz.create = function(a, c) {
  25953. var d = new F.nz;
  25954. d.y0(a, c);
  25955. return d
  25956. };
  25957. F.jH = F.ja.extend({
  25958. Fm: q,
  25959. KB: q,
  25960. tb: "ParallaxNode",
  25961. Oba: A("Fm"),
  25962. Uia: y("Fm"),
  25963. ctor: function() {
  25964. F.ja.prototype.ctor.call(this);
  25965. this.Fm = [];
  25966. this.KB = F.d(-100, -100)
  25967. },
  25968. Q: function(a, c, d, e) {
  25969. if (3 === arguments.length) F.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  25970. else {
  25971. a || b("cc.ParallaxNode.addChild(): child should be non-null");
  25972. var f = F.nz.create(d, e);
  25973. f.V2(a);
  25974. this.Fm.push(f);
  25975. a.G(this.za.x * d.x + e.x, this.za.y * d.y + e.y);
  25976. F.ja.prototype.Q.call(this, a, c, a.tag)
  25977. }
  25978. },
  25979. removeChild: function(a, c) {
  25980. for (var d = this.Fm,
  25981. e = 0; e < d.length; e++)
  25982. if (d[e].Vq == a) {
  25983. d.splice(e, 1);
  25984. break
  25985. }
  25986. F.ja.prototype.removeChild.call(this, a, c)
  25987. },
  25988. Jg: function(a) {
  25989. this.Fm.length = 0;
  25990. F.ja.prototype.Jg.call(this, a)
  25991. },
  25992. S: function() {
  25993. var a = this.oU();
  25994. if (!F.yF(a, this.KB)) {
  25995. for (var c = this.Fm, d = 0, e = c.length; d < e; d++) {
  25996. var f = c[d];
  25997. f.Vq.G(-a.x + a.x * f.Mr.x + f.la.x, -a.y + a.y * f.Mr.y + f.la.y)
  25998. }
  25999. this.KB = a
  26000. }
  26001. F.ja.prototype.S.call(this)
  26002. },
  26003. oU: function() {
  26004. for (var a = this.za, c = this; c.parent != q;) c = c.parent, a = F.Dj(a, c.Xw());
  26005. return a
  26006. }
  26007. });
  26008. F.jH.create = function() {
  26009. return new F.jH
  26010. };
  26011. if (F.Cb.qw) {
  26012. var ua = F.Jka = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
  26013. F.jA = F.ma.extend({
  26014. Hn: q,
  26015. cb: q,
  26016. Yl: q,
  26017. LD: q,
  26018. src: q,
  26019. AF: q,
  26020. autoplay: q,
  26021. controls: q,
  26022. Ifa: q,
  26023. currentTime: 0,
  26024. startTime: 0,
  26025. duration: 0,
  26026. NB: q,
  26027. KD: 1,
  26028. Vv: 0,
  26029. mc: r,
  26030. Yr: p,
  26031. yg: -1,
  26032. ctor: function(a) {
  26033. this.Hn = {};
  26034. this.src = a;
  26035. this.LD = ua.createGain ? ua.createGain() : ua.createGainNode();
  26036. this.NW = this.MW.bind(this);
  26037. this.KW = this.JW.bind(this)
  26038. },
  26039. dC: function(a) {
  26040. var c = this.Yl = ua.createBufferSource(),
  26041. d = this.LD;
  26042. a = a || 0;
  26043. c.buffer = this.cb;
  26044. d.gain.value = this.KD;
  26045. c.connect(d);
  26046. d.connect(ua.destination);
  26047. c.loop = this.NB;
  26048. this.Yr = this.mc = r;
  26049. c.start ? c.start(0, a) : c.noteGrainOn ? (d = c.buffer.duration, this.loop ? c.noteGrainOn(0, a, d) : c.noteGrainOn(0, a, d - a)) : c.noteOn(0);
  26050. this.Vv = 0
  26051. },
  26052. xL: function() {
  26053. var a = this.Yl;
  26054. this.Yr || (a.stop ? a.stop(0) : a.Ofa(0), this.Yr = p)
  26055. },
  26056. play: function() {
  26057. if (-1 == this.yg) this.yg = 0;
  26058. else if (1 == this.yg) {
  26059. var a = this.Yl;
  26060. if (this.Yr || !(a && 2 == a.playbackState)) this.startTime = ua.currentTime, this.dC(0)
  26061. }
  26062. },
  26063. pause: function() {
  26064. this.Vv = ua.currentTime;
  26065. this.mc = p;
  26066. this.xL()
  26067. },
  26068. mp: function() {
  26069. this.mc &&
  26070. this.dC(this.cb ? (this.Vv - this.startTime) % this.cb.duration : 0)
  26071. },
  26072. stop: function() {
  26073. this.Vv = 0;
  26074. this.mc = r;
  26075. this.xL()
  26076. },
  26077. load: function() {
  26078. var a = this;
  26079. if (1 != a.yg) {
  26080. a.yg = -1;
  26081. a.played = r;
  26082. a.ended = p;
  26083. var c = new XMLHttpRequest;
  26084. c.open("GET", a.src, p);
  26085. c.responseType = "arraybuffer";
  26086. c.onload = function() {
  26087. ua.decodeAudioData(c.response, a.NW, a.KW)
  26088. };
  26089. c.send()
  26090. }
  26091. },
  26092. addEventListener: function(a, c) {
  26093. this.Hn[a] = c.bind(this)
  26094. },
  26095. removeEventListener: function(a) {
  26096. delete this.Hn[a]
  26097. },
  26098. n9: function() {
  26099. return F.Cb.qw
  26100. },
  26101. MW: function(a) {
  26102. this.cb = a;
  26103. a = this.Hn.success;
  26104. var c = this.Hn.canplaythrough;
  26105. a && a();
  26106. c && c();
  26107. (0 == this.yg || "autoplay" == this.autoplay || this.autoplay == p) && this.dC();
  26108. this.yg = 1
  26109. },
  26110. JW: function() {
  26111. var a = this.Hn.error;
  26112. a && a();
  26113. this.yg = -2
  26114. },
  26115. cloneNode: function() {
  26116. var a = new F.jA(this.src);
  26117. a.volume = this.volume;
  26118. a.yg = this.yg;
  26119. a.cb = this.cb;
  26120. (0 == a.yg || -1 == a.yg) && a.load();
  26121. return a
  26122. }
  26123. });
  26124. M = F.jA.prototype;
  26125. F.j(M, "loop", A("NB"), function(a) {
  26126. this.NB = a;
  26127. this.Yl && (this.Yl.loop = a)
  26128. });
  26129. F.j(M, "volume", A("KD"), function(a) {
  26130. this.KD = a;
  26131. this.LD.gain.value = a
  26132. });
  26133. F.j(M, "paused", A("mc"));
  26134. F.j(M, "ended",
  26135. function() {
  26136. var a = this.Yl;
  26137. return !this.mc && (this.Yr || !a || 3 == a.playbackState)
  26138. });
  26139. F.j(M, "played", function() {
  26140. var a = this.Yl;
  26141. return a && 2 == a.playbackState
  26142. })
  26143. }
  26144. F.wG = F.ma.extend({
  26145. aD: r,
  26146. Pd: q,
  26147. bv: q,
  26148. gf: 0,
  26149. MI: 0,
  26150. fe: {},
  26151. Tq: {},
  26152. kv: 1,
  26153. PB: 5,
  26154. jk: q,
  26155. Jr: [],
  26156. ctor: function() {
  26157. this.aD = 0 < F.zA.rw.length;
  26158. this.jk && (this.jk = this.jk.bind(this))
  26159. },
  26160. Mka: E(r),
  26161. Paa: A("kv"),
  26162. Hga: function(a, c) {
  26163. if (this.aD) {
  26164. var d = this.Pd;
  26165. d && this.Hk(d);
  26166. a != this.bv && (this.Pd = d = this.mB(a), this.bv = a);
  26167. d && (d.loop = c || r, this.eC(d))
  26168. }
  26169. },
  26170. mB: function(a) {
  26171. var c = F.V,
  26172. d = c.Dd(a);
  26173. d || (c.load(a), d = c.Dd(a));
  26174. return d
  26175. },
  26176. eC: function(a) {
  26177. a.ended || (a.stop ? a.stop() : (a.pause(), a.currentTime = 0));
  26178. this.gf = 2;
  26179. a.play()
  26180. },
  26181. l4: function(a) {
  26182. if (0 < this.gf) {
  26183. var c =
  26184. this.Pd;
  26185. c && this.Hk(c) && (a && F.V.Ei(this.bv), this.bv = this.Pd = q, this.gf = 0)
  26186. }
  26187. },
  26188. Hk: function(a) {
  26189. return a && !a.ended ? (a.stop ? a.stop() : a.duration && Infinity != a.duration ? a.currentTime = a.duration : a.pause(), p) : r
  26190. },
  26191. mO: function() {
  26192. 2 == this.gf && (this.Pd.pause(), this.gf = 1)
  26193. },
  26194. I2: function() {
  26195. 1 == this.gf && (this.hj(this.Pd), this.gf = 2)
  26196. },
  26197. hj: function(a) {
  26198. a && !a.ended && (a.mp ? a.mp() : a.play())
  26199. },
  26200. Bha: function() {
  26201. this.Pd && this.eC(this.Pd)
  26202. },
  26203. Bba: function() {
  26204. return 0 == this.gf ? 0 : this.Pd.volume
  26205. },
  26206. Iia: function(a) {
  26207. 0 < this.gf && (this.Pd.volume = Math.min(Math.max(a,
  26208. 0), 1))
  26209. },
  26210. eF: function() {
  26211. return 2 == this.gf && this.Pd && !this.Pd.ended
  26212. },
  26213. pB: function(a) {
  26214. var c = this.Tq[a];
  26215. c || (c = this.Tq[a] = []);
  26216. return c
  26217. },
  26218. XJ: function(a) {
  26219. var c;
  26220. if (!this.aD) return q;
  26221. for (var d = this.pB(a), e = 0, f = d.length; e < f; e++) {
  26222. var g = d[e];
  26223. if (g.ended) {
  26224. c = g;
  26225. c.currentTime = 0;
  26226. window.y9 && c.load();
  26227. break
  26228. }
  26229. }
  26230. if (!c) {
  26231. if (d.length >= this.PB) return F.log("Error: " + a + " greater than " + this.PB), q;
  26232. c = this.mB(a);
  26233. if (!c) return q;
  26234. c = c.cloneNode(p);
  26235. this.jk && F.Ja(c, "pause", this.jk);
  26236. c.volume = this.kv;
  26237. d.push(c)
  26238. }
  26239. return c
  26240. },
  26241. c2: function(a, c) {
  26242. var d =
  26243. this.XJ(a);
  26244. if (!d) return q;
  26245. d.loop = c || r;
  26246. d.play();
  26247. var e = this.MI++;
  26248. this.fe[e] = d;
  26249. return e
  26250. },
  26251. lia: function(a) {
  26252. a = this.kv = Math.min(Math.max(a, 0), 1);
  26253. var c = this.fe,
  26254. d;
  26255. for (d in c) c[d].volume = a
  26256. },
  26257. Z1: function(a) {
  26258. (a = this.fe[a]) && !a.ended && a.pause()
  26259. },
  26260. X1: function() {
  26261. var a = this.fe,
  26262. c;
  26263. for (c in a) {
  26264. var d = a[c];
  26265. d.ended || d.pause()
  26266. }
  26267. },
  26268. H2: function(a) {
  26269. this.hj(this.fe[a])
  26270. },
  26271. G2: function() {
  26272. var a = this.fe,
  26273. c;
  26274. for (c in a) this.hj(a[c])
  26275. },
  26276. k4: function(a) {
  26277. this.Hk(this.fe[a]);
  26278. delete this.fe[a]
  26279. },
  26280. pP: function() {
  26281. var a = this.fe,
  26282. c;
  26283. for (c in a) this.Hk(a[c]),
  26284. delete a[c]
  26285. },
  26286. z4: function(a) {
  26287. var c = F.V,
  26288. d = this.fe,
  26289. e = this.pB(a);
  26290. c.Ei(a);
  26291. if (0 != e.length) {
  26292. c = e[0].src;
  26293. delete this.Tq[a];
  26294. for (var f in d) d[f].src == c && (this.Hk(d[f]), delete d[f])
  26295. }
  26296. },
  26297. end: function() {
  26298. this.l4();
  26299. this.pP()
  26300. },
  26301. GK: function() {
  26302. var a = this.fe,
  26303. c, d;
  26304. for (d in a)
  26305. if ((c = a[d]) && !c.ended && !c.paused) this.Jr.push(c), c.pause();
  26306. this.eF() && (this.Jr.push(this.Pd), this.Pd.pause())
  26307. },
  26308. YK: function() {
  26309. for (var a = this.Jr, c = 0, d = a.length; c < d; c++) this.hj(a[c]);
  26310. a.length = 0
  26311. }
  26312. });
  26313. !F.Cb.qw && 0 > F.Cb.mY && (F.xG = F.wG.extend({
  26314. Ok: [],
  26315. Ir: [],
  26316. Ef: q,
  26317. PB: 2,
  26318. jv: {},
  26319. Ol: r,
  26320. In: 0,
  26321. FB: r,
  26322. eC: function(a) {
  26323. this.iD();
  26324. this._super(a)
  26325. },
  26326. I2: function() {
  26327. 1 == this.gf && (this.iD(), this.Ol = r, this.In = 0, this._super())
  26328. },
  26329. c2: function(a, c) {
  26330. var d = this.Ef,
  26331. e = c ? this.XJ(a) : this.WV(a);
  26332. if (!e) return q;
  26333. e.loop = c || r;
  26334. var f = this.MI++;
  26335. this.fe[f] = e;
  26336. this.eF() && (this.mO(), this.Ol = p);
  26337. d ? (d != e && this.Ok.push(this.An), this.Ok.push(f), d.pause()) : (this.Ef = e, this.An = f, e.play());
  26338. return f
  26339. },
  26340. Z1: function() {
  26341. F.log("pauseEffect not supported in single audio mode!")
  26342. },
  26343. X1: function() {
  26344. var a = this.Ok,
  26345. c = this.Ir,
  26346. d = this.Ef;
  26347. if (d) {
  26348. for (var e = 0, f = a.length; e < f; e++) c.push(a[e]);
  26349. a.length = 0;
  26350. c.push(this.An);
  26351. d.pause()
  26352. }
  26353. },
  26354. H2: function() {
  26355. F.log("resumeEffect not supported in single audio mode!")
  26356. },
  26357. G2: function() {
  26358. var a = this.Ok,
  26359. c = this.Ir;
  26360. this.eF() && (this.mO(), this.Ol = p);
  26361. for (var d = 0, e = c.length; d < e; d++) a.push(c[d]);
  26362. c.length = 0;
  26363. if (!this.Ef && 0 <= a.length && (a = a.pop(), c = this.fe[a])) this.An = a, this.Ef = c, this.hj(c)
  26364. },
  26365. k4: function(a) {
  26366. var c = this.Ef,
  26367. d = this.Ok,
  26368. e = this.Ir;
  26369. c && this.An == a ? this.Hk(c) : (c = d.indexOf(a),
  26370. 0 <= c ? d.splice(c, 1) : (c = e.indexOf(a), 0 <= c && e.splice(c, 1)))
  26371. },
  26372. pP: function() {
  26373. this.iD();
  26374. !this.Ef && this.Ol && (this.hj(this.Pd), this.gf = 2, this.Ol = r, this.In = 0)
  26375. },
  26376. z4: function(a) {
  26377. var c = F.V,
  26378. d = this.fe,
  26379. e = this.jv,
  26380. f = this.pB(a),
  26381. g = this.Ef;
  26382. c.Ei(a);
  26383. if (0 != f.length || e[a]) {
  26384. c = 0 < f.length ? f[0].src : e[a].src;
  26385. delete this.Tq[a];
  26386. delete e[a];
  26387. for (var h in d) d[h].src == c && delete d[h];
  26388. g && g.src == c && this.Hk(g)
  26389. }
  26390. },
  26391. WV: function(a) {
  26392. var c = this.jv[a],
  26393. d = this.Ok,
  26394. e = this.Ir,
  26395. f = this.fe;
  26396. if (c) c.currentTime = 0;
  26397. else {
  26398. c = this.mB(a);
  26399. if (!c) return q;
  26400. c = c.cloneNode(p);
  26401. this.jk && F.Ja(c, "pause", this.jk);
  26402. c.volume = this.kv;
  26403. this.jv[a] = c
  26404. }
  26405. a = 0;
  26406. for (var g = d.length; a < g;) f[d[a]] == c ? d.splice(a, 1) : a++;
  26407. a = 0;
  26408. for (g = e.length; a < g;) f[e[a]] == c ? e.splice(a, 1) : a++;
  26409. c.wr = p;
  26410. return c
  26411. },
  26412. iD: function() {
  26413. var a = this.Ef,
  26414. c = this.Tq,
  26415. d = this.jv,
  26416. e = this.Ok,
  26417. f = this.Ir;
  26418. if (a || !(0 == e.length && 0 == f.length)) {
  26419. for (var g in d) {
  26420. var h = d[g];
  26421. h.duration && Infinity != h.duration && (h.currentTime = h.duration)
  26422. }
  26423. e.length = 0;
  26424. f.length = 0;
  26425. for (g in c) {
  26426. d = c[g];
  26427. e = 0;
  26428. for (f = d.length; e < f; e++) h = d[e], h.loop = r, h.duration && Infinity != h.duration && (h.currentTime =
  26429. h.duration)
  26430. }
  26431. a && this.Hk(a)
  26432. }
  26433. },
  26434. jk: function() {
  26435. if (!this.FB) {
  26436. var a = this.ZV();
  26437. if (a) a.wr ? (delete a.wr, a.play()) : this.hj(a);
  26438. else if (this.Ol) {
  26439. a = this.Pd;
  26440. if (a.duration && Infinity != a.duration) {
  26441. var c = a.currentTime + this.In,
  26442. c = c - a.duration * (c / a.duration | 0);
  26443. a.currentTime = c
  26444. }
  26445. this.In = 0;
  26446. this.hj(a);
  26447. this.gf = 2;
  26448. this.Ol = r
  26449. }
  26450. }
  26451. },
  26452. ZV: function() {
  26453. var a = this.Ok,
  26454. c = this.fe,
  26455. d = this.Ef,
  26456. e = d ? d.currentTime - (d.startTime || 0) : 0;
  26457. for (this.In += e; 0 != a.length;) {
  26458. var f = a.pop();
  26459. if (d = c[f]) {
  26460. if (d.wr || d.loop || d.duration && d.currentTime + e < d.duration) return this.An =
  26461. f, this.Ef = d, !d.wr && (d.duration && Infinity != d.duration) && (a = d.currentTime + e, a -= d.duration * (a / d.duration | 0), d.currentTime = a), d.wr = r, d;
  26462. d.duration && Infinity != d.duration && (d.currentTime = d.duration)
  26463. }
  26464. }
  26465. return this.Ef = this.An = q
  26466. },
  26467. GK: function() {
  26468. var a = this.Ef;
  26469. this.FB = p;
  26470. if (a = 2 == this.gf ? this.Pd : a) this.Jr.push(a), a.pause()
  26471. },
  26472. YK: function() {
  26473. var a = this.Jr;
  26474. this.FB = r;
  26475. 0 < a.length && (this.hj(a[0]), a.length = 0)
  26476. }
  26477. }));
  26478. F.zA = {
  26479. rw: q,
  26480. Vw: function() {
  26481. return F.V.XY
  26482. },
  26483. LB: function(a, c, d, e, f, g, h) {
  26484. var m = this,
  26485. n = F.V,
  26486. s = F.path,
  26487. u = this.rw,
  26488. v = "";
  26489. if (0 == u.length) return h("can not support audio!");
  26490. if (-1 == e) v = (s.Rk(a) || "").toLowerCase(), m.YY(v) || (v = u[0], e = 0);
  26491. else if (e < u.length) v = u[e];
  26492. else return h("can not found the resource of audio! Last match url is : " + a); if (0 <= f.indexOf(v)) return m.LB(a, c, d, e + 1, f, g, h);
  26493. a = s.bM(a, v);
  26494. f.push(v);
  26495. g = m.yW(a, g, function(n) {
  26496. if (n) return m.LB(a, c, d, e + 1, f, g, h);
  26497. h(q, g)
  26498. }, e == u.length - 1);
  26499. n.Tf[c] = g
  26500. },
  26501. YY: function(a) {
  26502. return !a ?
  26503. r : 0 <= this.rw.indexOf(a.toLowerCase())
  26504. },
  26505. yW: function(a, c, d, e) {
  26506. var f = "file://" == location.origin ? Audio : F.jA || Audio;
  26507. 2 == arguments.length ? (d = c, c = new f) : 3 < arguments.length && !c && (c = new f);
  26508. c.src = a;
  26509. c.AF = "auto";
  26510. f = navigator.userAgent;
  26511. /Mobile/.test(f) && (/iPhone OS/.test(f) || /iPad/.test(f) || /Firefox/.test(f)) || /MSIE/.test(f) ? (c.load(), d(q, c)) : (F.Ja(c, "canplaythrough", function() {
  26512. d(q, c);
  26513. this.removeEventListener("canplaythrough", arguments.callee, r);
  26514. this.removeEventListener("error", arguments.callee, r)
  26515. }, r), F.Ja(c, "error",
  26516. function() {
  26517. d("load " + a + " failed");
  26518. e && (this.removeEventListener("canplaythrough", arguments.callee, r), this.removeEventListener("error", arguments.callee, r))
  26519. }, r), c.load());
  26520. return c
  26521. },
  26522. load: function(a, c, d, e) {
  26523. this.LB(a, c, d, -1, [], q, e)
  26524. }
  26525. };
  26526. F.zA.rw = function() {
  26527. var a = F.Nb("audio"),
  26528. c = [];
  26529. if (a.canPlayType) {
  26530. var d = function(c) {
  26531. c = a.canPlayType(c);
  26532. return "no" != c && "" != c
  26533. };
  26534. d('audio/ogg; codecs\x3d"vorbis"') && c.push(".ogg");
  26535. d("audio/mpeg") && c.push(".mp3");
  26536. d('audio/wav; codecs\x3d"1"') && c.push(".wav");
  26537. d("audio/mp4") && c.push(".mp4");
  26538. (d("audio/x-m4a") || d("audio/aac")) && c.push(".m4a")
  26539. }
  26540. return c
  26541. }();
  26542. F.V.Hj(["mp3", "ogg", "wav", "mp4", "m4a"], F.zA);
  26543. F.VL = F.xG ? new F.xG : new F.wG;
  26544. F.ua.OD(F.Ic.Nt, function() {
  26545. F.VL.GK()
  26546. });
  26547. F.ua.OD(F.Ic.Mp, function() {
  26548. F.VL.YK()
  26549. });
  26550. var va = [];
  26551. var xa = F.color.RED,
  26552. ya = F.color.GREEN,
  26553. za = F.color.ORANGE,
  26554. Aa = F.color(128, 52, 128, 255),
  26555. Ba = F.color(0, 150, 206, 255),
  26556. Ca = F.color(231, 231, 231, 255);
  26557. F.color(115, 117, 115, 255);
  26558. var Da = F.color(255, 170, 0, 255),
  26559. Ea = F.color(0, 190, 189, 255),
  26560. Ia = F.color(242, 48, 5, 255);
  26561. var Ja = {},
  26562. Ka = {
  26563. name: "Courier-Bold",
  26564. size: 80,
  26565. color: Ca
  26566. },
  26567. La = {
  26568. name: "Courier",
  26569. size: 60,
  26570. color: Ca
  26571. },
  26572. Ma = {
  26573. name: "Courier",
  26574. size: 60,
  26575. color: Ca
  26576. },
  26577. Pa = {
  26578. name: "Courier-Bold",
  26579. size: 60,
  26580. color: Ia
  26581. },
  26582. Qa = {
  26583. name: "Arial",
  26584. size: 100,
  26585. color: Ia
  26586. },
  26587. Ra = {
  26588. name: "Courier",
  26589. size: 40,
  26590. color: Ea
  26591. },
  26592. Sa = {
  26593. name: "Courier",
  26594. size: 30,
  26595. color: Ia
  26596. };
  26597. function Ta(a) {
  26598. a.sort(function() {
  26599. return 0.5 < Math.random() ? 1 : -1
  26600. })
  26601. }
  26602. function Ua() {
  26603. if (0 == arguments.length) return "";
  26604. var a = arguments;
  26605. return arguments[0].replace(/\{(\d+)\}/g, function(c, d) {
  26606. var e = parseInt(d);
  26607. return 0 > e || e >= a.length - 1 ? (F.log("invalid index: " + d), "") : a[e + 1]
  26608. })
  26609. }
  26610. function Va() {
  26611. if (_czc) {
  26612. for (var a = [], c = 0; c < arguments.length; c++) a.push(arguments[c]);
  26613. _czc.push(["_trackEvent", "maxarea"].concat(a))
  26614. }
  26615. }
  26616. function Wa(a, c) {
  26617. var d = a.slice(c + 1 || a.length);
  26618. a.length = 0 > c ? a.length + c : c;
  26619. a.push.apply(a, d)
  26620. };
  26621. function Xa(a) {
  26622. a.va(0);
  26623. var c = k,
  26624. c = F.ta.create({
  26625. event: F.ta.Cq,
  26626. yp: p,
  26627. gZ: r,
  26628. Em: E(p),
  26629. S3: function() {
  26630. c.gZ = p
  26631. },
  26632. fp: t()
  26633. });
  26634. a.ib(F.GO(F.Ki.create(0.5, 210), F.fZ(c.S3)));
  26635. F.ua.addListener(c, a)
  26636. }
  26637. function Ya(a, c, d, e) {
  26638. var f = F.Ac.create(a, c.width, c.height);
  26639. d && (a = F.Ac.create(F.color(a.r, a.g, a.b, a.a / 2), c.width, c.height), f = F.rl.create(f, a, d, e));
  26640. return f
  26641. }
  26642. function Za(a, c) {
  26643. var d = F.Z.create(a, c.name, c.size);
  26644. d.Wa(c.color);
  26645. return d
  26646. };
  26647. var $a = F.t.extend({
  26648. ds: k,
  26649. z8: k,
  26650. A8: k,
  26651. f8: k,
  26652. ao: k,
  26653. ctor: function() {
  26654. this._super();
  26655. var a = F.I.T,
  26656. c = Ya(Ea, F.size(a.width, 100));
  26657. this.Q(c);
  26658. c.G(F.d(-a.width / 2, -c.fc().height));
  26659. this.G(F.d(a.width / 2, a.height));
  26660. this.H4()
  26661. },
  26662. H4: function() {
  26663. this.ds ? this.ds.Mc("\u5168\u6c11\u62a2\u623f\u5b50") : (this.ds = Za("\u5168\u6c11\u62a2\u623f\u5b50", La), this.Q(this.ds), this.ds.UF(-50))
  26664. },
  26665. Tja: function(a) {
  26666. a ? this.ao || (this.ao = this.L7(Ja.Kfa, this.UW, r), this.Q(this.ao)) : this.ao && (this.ao.$k(), this.ao = k)
  26667. },
  26668. k8: function() {
  26669. Z.x9()
  26670. },
  26671. UW: function() {
  26672. window.open("http://littall.duapp.com/")
  26673. }
  26674. });
  26675. $a.show = function(a) {
  26676. var c = new $a;
  26677. a.Q(c, 10);
  26678. c.Uja(p)
  26679. };
  26680. var ab = F.t.extend({
  26681. tg: 0,
  26682. CI: 0,
  26683. cB: k,
  26684. xb: k,
  26685. IB: r,
  26686. ctor: function(a) {
  26687. this._super();
  26688. Z.V3(this);
  26689. this.tg = Z.fM;
  26690. this.xb = Za(this.tg.toString(), Ma);
  26691. this.Q(this.xb);
  26692. this.xb.Fi(F.d(0.5, 0.5));
  26693. this.cB = a;
  26694. this.GF()
  26695. },
  26696. hG: function() {
  26697. this.xb.Ct()
  26698. },
  26699. GF: function() {
  26700. this.tg = Z.fM;
  26701. this.IB = r;
  26702. this.lY()
  26703. },
  26704. lY: function() {
  26705. function a() {
  26706. c.tg--;
  26707. F.log(c.tg);
  26708. c.tg = 0 < c.tg ? c.tg : 0;
  26709. c.xb.Mc(c.tg.toString());
  26710. c.tg <= c.CI && (c.xb.vy(a), c.cB && !c.IB && (c.cB(), c.IB = p))
  26711. }
  26712. var c = this;
  26713. this.tg > this.CI && (this.xb.Mc(this.tg.toString()), this.xb.nt(a, 1))
  26714. }
  26715. });
  26716. var Z = new function() {
  26717. this.fM = 60;
  26718. var a = 3,
  26719. c = 2,
  26720. d = 2,
  26721. e = [xa, za, Da, ya, Ba, Aa];
  26722. this.lM = function(f, g) {
  26723. function h(a, c) {
  26724. var d = g ? Ya(a, z) : Ya(a, z, Z.M1, Z);
  26725. d.oy(c);
  26726. d.Fi(F.d(0, 0));
  26727. return d
  26728. }
  26729. var m = e[Math.floor(0 + Math.random() * (e.length - 0))],
  26730. x = a * a,
  26731. w = Math.ceil(x / c) + d,
  26732. z = F.size(100, 100),
  26733. B = [];
  26734. Ta(e);
  26735. for (var C = 0; C < e.length && B.length < c - 1; C++) e[C] !== m && B.push([e[C], 0]);
  26736. for (var D = g ? F.t.create() : F.Pj.create(), C = 0; C < w; C++) D.Q(h(m, w));
  26737. for (C = w; C < x && 0 < B.length; C++) m = Math.floor(0 + Math.random() * (B.length - 0)), B[m][1] == w - 1 ? (Wa(B, m), C--) :
  26738. (B[m][1]++, D.Q(h(B[m][0], 0)));
  26739. x = D.u;
  26740. Ta(x);
  26741. for (C = 0; C < a; C++)
  26742. for (w = 0; w < a; w++) x[C * a + w].G(F.d(z.height * (C + 0.5), z.height * (w + 0.5)));
  26743. D.G(F.d(f.width / 2 - 0.5 * (a + 1) * z.width, f.height / 2 - 0.5 * (a + 1) * z.height));
  26744. return D
  26745. };
  26746. this.Tca = E("\u5168\u6c11\u62a2\u623f\u5b50");
  26747. var f = k,
  26748. g = k;
  26749. this.V3 = function(a) {
  26750. g = a
  26751. };
  26752. this.U3 = function() {
  26753. g && g.hG()
  26754. };
  26755. this.T3 = function(a) {
  26756. f = a;
  26757. h = 0;
  26758. Va(Ja.I8);
  26759. g && g.GF()
  26760. };
  26761. var h = 0;
  26762. this.M1 = function(g) {
  26763. 0 >= g.Es() ? Z.cO(r) : (h += g.Es(), 1 < d ? d-- : (g = a * a, c < e.length ? (c++, d = Math.floor(g / 4)) : 6 > a && (a++, c = 2, d = Math.floor(g / 4))),
  26764. f.sp())
  26765. };
  26766. var m = r;
  26767. this.cO = function(a) {
  26768. m = a;
  26769. bb.show();
  26770. g && g.hG();
  26771. Va("game_over", m ? "time_is_up" : "wrong", 1)
  26772. };
  26773. this.C2 = function() {
  26774. a = 3;
  26775. d = c = 2;
  26776. f.$k();
  26777. cb.lP();
  26778. Va("replay");
  26779. g && (g.GF(), g.hG())
  26780. };
  26781. this.q0 = function() {
  26782. var a = Ua("我抢到了{0}平米的大房子,你也快点来抢~", h);
  26783. // Play68.setRankingScoreDesc(h);
  26784. F.log(a);
  26785. Va("statistics", "correct", h);
  26786. return {
  26787. xP: h,
  26788. Y0: m
  26789. }
  26790. };
  26791. this.Sja = t()
  26792. };
  26793. var db = F.ve.extend({
  26794. Y7: k,
  26795. YB: k,
  26796. n8: k,
  26797. C8: k,
  26798. m8: k,
  26799. J7: k,
  26800. ctor: function(a) {
  26801. this._super();
  26802. Z.U3();
  26803. var c = this.fc(),
  26804. d = Ya(Da, F.size(400, 100), this.N1, this),
  26805. e = F.Pj.create(d);
  26806. this.Q(e);
  26807. e.G(F.d(c.width / 2, 50));
  26808. e = Za("\u5f00\u62a2", Ka);
  26809. d.Q(e);
  26810. e.G(d.eb);
  26811. this.YB = a;
  26812. a = Z.lM(c, p);
  26813. this.Q(a);
  26814. a = Za("要抢就只抢最大的", Sa);
  26815. this.Q(a);
  26816. a.G(F.d(c.width / 2, 150));
  26817. a.ib(F.GO(F.DO(0.5, 2), F.DO(0.5, 1)))
  26818. },
  26819. N1: function() {
  26820. this.YB && this.YB()
  26821. }
  26822. });
  26823. var bb = F.Ac.extend({
  26824. ctor: function() {
  26825. this._super(F.color(0, 0, 0, 255));
  26826. Xa(this);
  26827. for (var a = F.Pj.create(), c = ["再抢一次", "叫朋友来抢"], d = [Da, Ea], e = [this.VW, this.WW], f = F.size(this.fc().width - 200, 100), g = 0; g < c.length; g++) {
  26828. var h = Ya(d[g], f, e[g], this),
  26829. m = Za(c[g], Ka);
  26830. h.Q(m);
  26831. m.G(h.eb);
  26832. a.Q(h)
  26833. }
  26834. this.Q(a);
  26835. a.G(F.d(this.fc().width / 2, f.height + 75));
  26836. a.RL(25);
  26837. a = Z.q0();
  26838. c = Za(a.Y0 ? "时间到了" : "不是最大的", Pa);
  26839. this.Q(c);
  26840. c.G(F.d(this.fc().width / 2, this.fc().height -
  26841. 200));
  26842. c = Za(a.xP.toString(), Qa);
  26843. this.Q(c);
  26844. c.G(F.d(this.fc().width / 2, this.fc().height / 2));
  26845. a = Za(Ua("\u62a2\u5230\u4e86{0}\u5e73\u7c73", a.xP), Ra);
  26846. this.Q(a);
  26847. a.G(F.d(this.fc().width / 2, this.fc().height / 2 - 100))
  26848. },
  26849. WW: function() {
  26850. prompt_share != k && prompt_share();
  26851. Va("share")
  26852. },
  26853. VW: function() {
  26854. Z.C2();
  26855. this.$k();
  26856. Va("replay")
  26857. }
  26858. });
  26859. bb.show = function() {
  26860. var a = F.I.Ec,
  26861. c = new bb;
  26862. a.Q(c, 5)
  26863. };
  26864. var eb = F.ve.extend({
  26865. ctor: function() {
  26866. this._super();
  26867. Z.T3(this);
  26868. this.Lv = k;
  26869. this.sp()
  26870. },
  26871. sp: function() {
  26872. this.Lv !== k && this.Lv.$k();
  26873. this.Lv = Z.lM(this.fc(), r);
  26874. this.Q(this.Lv)
  26875. }
  26876. }),
  26877. cb = F.tl.extend({
  26878. da: function() {
  26879. this._super();
  26880. var a = F.Ac.create(F.color.GRAY);
  26881. this.Q(a);
  26882. a = new $a;
  26883. this.Q(a, 10);
  26884. a = new ab(function() {
  26885. Z.cO(p)
  26886. });
  26887. this.Q(a);
  26888. a.G(F.d(this.fc().width / 2, this.fc().height - 150));
  26889. cb.lP(this)
  26890. }
  26891. });
  26892. cb.lP = function(a) {
  26893. var c = k,
  26894. d = a || F.I.Ec,
  26895. c = new db(function() {
  26896. c.$k();
  26897. var a = new eb;
  26898. d.Q(a, 1)
  26899. });
  26900. d.Q(c)
  26901. };
  26902. F.Ic.sF = function() {
  26903. F.view.OF(640, 1136, F.Cb.xi ? F.we.du : F.we.su);
  26904. F.view.E2(p);
  26905. F.cz.AF(va, function() {
  26906. F.I.IF(new cb)
  26907. }, this)
  26908. };
  26909. F.Ic.K2();
  26910. //@ sourceMappingURL=sourcemap